From 6913cbab1da09e6b5e5b152ca127db655cd1b508 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 16 Feb 2023 18:11:56 +0800 Subject: [PATCH] release 3.1.26 source code for python --- CHANGELOG.md | 168 ++ CHANGELOG_CN.md | 168 ++ huaweicloud-sdk-all/requirements.txt | 268 +-- huaweicloud-sdk-all/setup.py | 270 +-- .../v1/region/antiddos_region.py | 72 +- huaweicloud-sdk-antiddos/requirements.txt | 2 +- huaweicloud-sdk-antiddos/setup.py | 4 +- .../huaweicloudsdkaom/v1/region/aom_region.py | 72 +- .../huaweicloudsdkaom/v2/region/aom_region.py | 72 +- .../huaweicloudsdkaom/v3/aom_async_client.py | 6 +- .../huaweicloudsdkaom/v3/aom_client.py | 6 +- .../v3/model/biz_app_param.py | 12 +- .../v3/model/component_param.py | 6 +- .../v3/model/create_app_response.py | 40 +- .../huaweicloudsdkaom/v3/model/env_param.py | 6 +- .../model/list_resource_under_node_request.py | 12 +- .../v3/model/page_resource_list_param.py | 46 +- .../v3/model/show_app_by_name_request.py | 12 +- .../v3/model/waterfall_page_list_param.py | 6 +- .../huaweicloudsdkaom/v3/region/aom_region.py | 72 +- huaweicloud-sdk-aom/requirements.txt | 2 +- huaweicloud-sdk-aom/setup.py | 4 +- .../huaweicloudsdkaos/v1/region/aos_region.py | 8 +- huaweicloud-sdk-aos/requirements.txt | 2 +- huaweicloud-sdk-aos/setup.py | 4 +- .../v2/region/apig_region.py | 64 +- huaweicloud-sdk-apig/requirements.txt | 2 +- huaweicloud-sdk-apig/setup.py | 4 +- .../huaweicloudsdkapm/v1/region/apm_region.py | 4 +- huaweicloud-sdk-apm/requirements.txt | 2 +- huaweicloud-sdk-apm/setup.py | 4 +- .../huaweicloudsdkas/v1/region/as_region.py | 72 +- huaweicloud-sdk-as/requirements.txt | 2 +- huaweicloud-sdk-as/setup.py | 4 +- .../huaweicloudsdkbcs/v2/region/bcs_region.py | 28 +- huaweicloud-sdk-bcs/requirements.txt | 2 +- huaweicloud-sdk-bcs/setup.py | 4 +- .../huaweicloudsdkbms/v1/region/bms_region.py | 72 +- huaweicloud-sdk-bms/requirements.txt | 2 +- huaweicloud-sdk-bms/setup.py | 4 +- .../huaweicloudsdkbss/v2/region/bss_region.py | 4 +- huaweicloud-sdk-bss/requirements.txt | 2 +- huaweicloud-sdk-bss/setup.py | 4 +- .../v2/region/bssintl_region.py | 4 +- huaweicloud-sdk-bssintl/requirements.txt | 2 +- huaweicloud-sdk-bssintl/setup.py | 4 +- .../huaweicloudsdkcae/v1/region/cae_region.py | 8 +- huaweicloud-sdk-cae/requirements.txt | 2 +- huaweicloud-sdk-cae/setup.py | 4 +- .../v2/region/campusgo_region.py | 20 +- huaweicloud-sdk-campusgo/requirements.txt | 2 +- huaweicloud-sdk-campusgo/setup.py | 4 +- .../huaweicloudsdkcbh/v1/region/cbh_region.py | 24 +- huaweicloud-sdk-cbh/requirements.txt | 2 +- huaweicloud-sdk-cbh/setup.py | 4 +- .../huaweicloudsdkcbr/v1/region/cbr_region.py | 72 +- huaweicloud-sdk-cbr/requirements.txt | 2 +- huaweicloud-sdk-cbr/setup.py | 4 +- .../huaweicloudsdkcbs/v1/region/cbs_region.py | 8 +- huaweicloud-sdk-cbs/requirements.txt | 2 +- huaweicloud-sdk-cbs/setup.py | 4 +- .../huaweicloudsdkcc/v3/region/cc_region.py | 8 +- huaweicloud-sdk-cc/requirements.txt | 2 +- huaweicloud-sdk-cc/setup.py | 4 +- .../huaweicloudsdkcce/v3/region/cce_region.py | 76 +- huaweicloud-sdk-cce/requirements.txt | 2 +- huaweicloud-sdk-cce/setup.py | 4 +- .../huaweicloudsdkccm/v1/region/ccm_region.py | 8 +- huaweicloud-sdk-ccm/requirements.txt | 2 +- huaweicloud-sdk-ccm/setup.py | 4 +- .../huaweicloudsdkcdm/v1/region/cdm_region.py | 68 +- huaweicloud-sdk-cdm/requirements.txt | 2 +- huaweicloud-sdk-cdm/setup.py | 4 +- .../show_domain_location_stats_request.py | 12 +- .../v1/model/show_domain_stats_request.py | 12 +- .../huaweicloudsdkcdn/v1/region/cdn_region.py | 8 +- .../download_region_carrier_excel_request.py | 12 +- .../download_statistics_excel_request.py | 12 +- .../v2/model/show_bandwidth_calc_request.py | 12 +- .../show_domain_location_stats_request.py | 12 +- .../v2/model/show_domain_stats_request.py | 12 +- .../huaweicloudsdkcdn/v2/region/cdn_region.py | 8 +- huaweicloud-sdk-cdn/requirements.txt | 2 +- huaweicloud-sdk-cdn/setup.py | 4 +- .../huaweicloudsdkces/v1/region/ces_region.py | 68 +- .../huaweicloudsdkces/v2/region/ces_region.py | 68 +- huaweicloud-sdk-ces/requirements.txt | 2 +- huaweicloud-sdk-ces/setup.py | 4 +- .../huaweicloudsdkcfw/v1/region/cfw_region.py | 44 +- huaweicloud-sdk-cfw/requirements.txt | 2 +- huaweicloud-sdk-cfw/setup.py | 4 +- .../huaweicloudsdkcgs/v5/region/cgs_region.py | 4 +- huaweicloud-sdk-cgs/requirements.txt | 2 +- huaweicloud-sdk-cgs/setup.py | 4 +- .../v3/region/classroom_region.py | 4 +- huaweicloud-sdk-classroom/requirements.txt | 2 +- huaweicloud-sdk-classroom/setup.py | 4 +- .../v2/clouddeploy_async_client.py | 32 +- .../v2/clouddeploy_client.py | 32 +- .../v2/model/app_component_dao.py | 30 +- .../v2/model/config_info_do.py | 12 +- ...create_deploy_task_by_template_response.py | 6 +- .../v2/model/dynamic_config_info.py | 12 +- .../v2/model/env_execution_body.py | 18 +- .../v2/model/execute_record_v2_body.py | 36 +- .../v2/model/key_value_do.py | 12 +- ...st_deploy_task_history_by_date_response.py | 12 +- .../model/list_task_success_rate_response.py | 18 +- .../model/show_deploy_task_detail_response.py | 120 +- .../show_project_success_rate_request.py | 12 +- .../show_project_success_rate_response.py | 30 +- .../v2/model/start_deploy_task_response.py | 12 +- .../v2/model/task_info.py | 120 +- .../v2/model/task_success_rate.py | 18 +- .../v2/model/tasks_success_rate_query.py | 12 +- .../v2/model/template_task_request_body.py | 6 +- .../v2/region/clouddeploy_region.py | 28 +- huaweicloud-sdk-clouddeploy/requirements.txt | 2 +- huaweicloud-sdk-clouddeploy/setup.py | 4 +- .../huaweicloudsdkcloudide/v2/__init__.py | 5 +- .../v2/cloudide_async_client.py | 61 + .../v2/cloudide_client.py | 60 + .../v2/model/__init__.py | 5 +- .../v2/model/check_instance_access_request.py | 6 +- ..._ide_online_extension_version_property.py} | 54 +- .../create_extension_authorization_request.py | 6 +- .../v2/model/create_instance_by3rd_request.py | 6 +- .../v2/model/create_login_request.py | 24 +- .../v2/model/create_login_response.py | 118 ++ .../v2/model/expire_vo.py | 12 +- .../v2/model/extension_authorization.py | 6 +- .../v2/model/extension_version_snake.py | 14 +- .../v2/model/instance_param.py | 6 +- .../v2/model/login_schema.py | 123 +- .../show_extension_authorization_request.py | 6 +- .../show_instance_status_info_request.py | 6 +- .../model/update_instance_activity_request.py | 6 +- .../v2/model/upload_extension_file_request.py | 6 +- .../v2/region/cloudide_region.py | 4 +- huaweicloud-sdk-cloudide/requirements.txt | 2 +- huaweicloud-sdk-cloudide/setup.py | 4 +- .../v2/region/cloudpipeline_region.py | 24 +- .../requirements.txt | 2 +- huaweicloud-sdk-cloudpipeline/setup.py | 4 +- .../v1/region/cloudrtc_region.py | 4 +- .../v2/region/cloudrtc_region.py | 4 +- huaweicloud-sdk-cloudrtc/requirements.txt | 2 +- huaweicloud-sdk-cloudrtc/setup.py | 4 +- .../v2/region/cloudtable_region.py | 4 +- huaweicloud-sdk-cloudtable/requirements.txt | 2 +- huaweicloud-sdk-cloudtable/setup.py | 4 +- .../v1/region/cloudtest_region.py | 36 +- huaweicloud-sdk-cloudtest/requirements.txt | 2 +- huaweicloud-sdk-cloudtest/setup.py | 4 +- .../v2/region/codeartsartifact_region.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsartifact/setup.py | 4 +- .../v3/region/codeartsbuild_region.py | 40 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsbuild/setup.py | 4 +- .../v2/region/codecheck_region.py | 32 +- huaweicloud-sdk-codecheck/requirements.txt | 2 +- huaweicloud-sdk-codecheck/setup.py | 4 +- .../v5/region/codecraft_region.py | 4 +- huaweicloud-sdk-codecraft/requirements.txt | 2 +- huaweicloud-sdk-codecraft/setup.py | 4 +- .../v3/region/codehub_region.py | 36 +- huaweicloud-sdk-codehub/requirements.txt | 2 +- huaweicloud-sdk-codehub/setup.py | 4 +- huaweicloud-sdk-core/setup.py | 2 +- .../huaweicloudsdkcph/v1/region/cph_region.py | 32 +- huaweicloud-sdk-cph/requirements.txt | 2 +- huaweicloud-sdk-cph/setup.py | 4 +- .../v1/region/cpts_region.py | 48 +- huaweicloud-sdk-cpts/requirements.txt | 2 +- huaweicloud-sdk-cpts/setup.py | 4 +- .../huaweicloudsdkcse/v1/region/cse_region.py | 64 +- huaweicloud-sdk-cse/requirements.txt | 2 +- huaweicloud-sdk-cse/setup.py | 4 +- .../v1/region/csms_region.py | 52 +- huaweicloud-sdk-csms/requirements.txt | 2 +- huaweicloud-sdk-csms/setup.py | 4 +- .../huaweicloudsdkcss/v1/__init__.py | 7 +- .../huaweicloudsdkcss/v1/css_async_client.py | 78 +- .../huaweicloudsdkcss/v1/css_client.py | 77 +- .../huaweicloudsdkcss/v1/model/__init__.py | 7 +- .../v1/model/add_independent_node_request.py | 8 +- ...ode_request_body.py => change_mode_req.py} | 30 +- .../v1/model/change_mode_request.py | 8 +- .../v1/model/change_security_group_req.py | 117 ++ .../v1/model/change_security_group_request.py | 62 +- .../model/change_security_group_response.py | 87 + .../create_cluster_backup_strategy_body.py | 6 +- .../v1/model/create_cluster_body.py | 6 +- .../v1/model/independent_body_req.py | 173 ++ .../v1/model/independent_req.py | 96 +- .../v1/model/log_configuration.py | 6 +- .../v1/model/start_logs_req.py | 6 +- .../v1/model/start_vpecp_req.py | 6 +- .../v1/model/update_log_setting_req.py | 6 +- .../v1/model/update_snapshot_setting_req.py | 6 +- .../huaweicloudsdkcss/v1/region/css_region.py | 72 +- .../huaweicloudsdkcss/v2/region/css_region.py | 72 +- huaweicloud-sdk-css/requirements.txt | 2 +- huaweicloud-sdk-css/setup.py | 4 +- .../huaweicloudsdkcts/v3/model/obs_info.py | 64 +- .../v3/model/tracker_obs_info.py | 64 +- .../huaweicloudsdkcts/v3/region/cts_region.py | 76 +- huaweicloud-sdk-cts/requirements.txt | 2 +- huaweicloud-sdk-cts/setup.py | 4 +- .../huaweicloudsdkdas/v3/region/das_region.py | 28 +- huaweicloud-sdk-das/requirements.txt | 2 +- huaweicloud-sdk-das/setup.py | 4 +- .../v1/region/dbss_region.py | 68 +- huaweicloud-sdk-dbss/requirements.txt | 2 +- huaweicloud-sdk-dbss/setup.py | 4 +- .../huaweicloudsdkdc/v3/region/dc_region.py | 64 +- huaweicloud-sdk-dc/requirements.txt | 2 +- huaweicloud-sdk-dc/setup.py | 4 +- .../huaweicloudsdkdcs/v2/__init__.py | 5 + .../huaweicloudsdkdcs/v2/dcs_async_client.py | 124 ++ .../huaweicloudsdkdcs/v2/dcs_client.py | 122 ++ .../huaweicloudsdkdcs/v2/model/__init__.py | 5 + .../create_auto_expire_scan_task_request.py | 44 +- .../create_auto_expire_scan_task_response.py | 292 ++++ .../v2/model/create_custom_template_body.py | 320 ++++ .../model/create_custom_template_request.py | 114 ++ .../model/create_custom_template_response.py | 118 ++ .../v2/model/list_instances_request.py | 6 +- .../huaweicloudsdkdcs/v2/region/dcs_region.py | 72 +- huaweicloud-sdk-dcs/requirements.txt | 2 +- huaweicloud-sdk-dcs/setup.py | 4 +- .../huaweicloudsdkddm/v1/region/ddm_region.py | 44 +- huaweicloud-sdk-ddm/requirements.txt | 2 +- huaweicloud-sdk-ddm/setup.py | 4 +- .../huaweicloudsdkdds/v3/region/dds_region.py | 72 +- huaweicloud-sdk-dds/requirements.txt | 2 +- huaweicloud-sdk-dds/setup.py | 4 +- .../huaweicloudsdkdeh/v1/region/deh_region.py | 40 +- huaweicloud-sdk-deh/requirements.txt | 2 +- huaweicloud-sdk-deh/setup.py | 4 +- .../v1/region/devsecurity_region.py | 4 +- huaweicloud-sdk-devsecurity/requirements.txt | 2 +- huaweicloud-sdk-devsecurity/setup.py | 4 +- .../v1/region/devstar_region.py | 4 +- huaweicloud-sdk-devstar/requirements.txt | 2 +- huaweicloud-sdk-devstar/setup.py | 4 +- .../huaweicloudsdkdgc/v1/region/dgc_region.py | 32 +- huaweicloud-sdk-dgc/requirements.txt | 2 +- huaweicloud-sdk-dgc/setup.py | 4 +- .../huaweicloudsdkdlf/v1/region/dlf_region.py | 32 +- huaweicloud-sdk-dlf/requirements.txt | 2 +- huaweicloud-sdk-dlf/setup.py | 4 +- .../huaweicloudsdkdli/v1/region/dli_region.py | 68 +- huaweicloud-sdk-dli/requirements.txt | 2 +- huaweicloud-sdk-dli/setup.py | 4 +- .../huaweicloudsdkdms/v2/region/dms_region.py | 64 +- huaweicloud-sdk-dms/requirements.txt | 2 +- huaweicloud-sdk-dms/setup.py | 4 +- .../huaweicloudsdkdns/v2/region/dns_region.py | 60 +- huaweicloud-sdk-dns/requirements.txt | 2 +- huaweicloud-sdk-dns/setup.py | 4 +- .../v1/model/history_traffic_event_dto.py | 31 +- .../v1/region/dris_region.py | 4 +- huaweicloud-sdk-dris/requirements.txt | 2 +- huaweicloud-sdk-dris/setup.py | 4 +- .../huaweicloudsdkdrs/v3/region/drs_region.py | 72 +- .../huaweicloudsdkdrs/v5/region/drs_region.py | 72 +- huaweicloud-sdk-drs/requirements.txt | 2 +- huaweicloud-sdk-drs/setup.py | 4 +- .../huaweicloudsdkdsc/v1/region/dsc_region.py | 52 +- huaweicloud-sdk-dsc/requirements.txt | 2 +- huaweicloud-sdk-dsc/setup.py | 4 +- .../huaweicloudsdkdwr/v3/region/dwr_region.py | 4 +- huaweicloud-sdk-dwr/requirements.txt | 2 +- huaweicloud-sdk-dwr/setup.py | 4 +- .../huaweicloudsdkdws/v2/region/dws_region.py | 63 +- huaweicloud-sdk-dws/requirements.txt | 2 +- huaweicloud-sdk-dws/setup.py | 4 +- .../huaweicloudsdkecs/v2/region/ecs_region.py | 76 +- huaweicloud-sdk-ecs/requirements.txt | 2 +- huaweicloud-sdk-ecs/setup.py | 4 +- .../huaweicloudsdkeg/v1/region/eg_region.py | 4 +- huaweicloud-sdk-eg/requirements.txt | 2 +- huaweicloud-sdk-eg/setup.py | 4 +- .../v1/region/eihealth_region.py | 12 +- huaweicloud-sdk-eihealth/requirements.txt | 2 +- huaweicloud-sdk-eihealth/setup.py | 4 +- .../huaweicloudsdkeip/v2/region/eip_region.py | 68 +- .../huaweicloudsdkeip/v3/region/eip_region.py | 68 +- huaweicloud-sdk-eip/requirements.txt | 2 +- huaweicloud-sdk-eip/setup.py | 4 +- .../huaweicloudsdkelb/v2/region/elb_region.py | 68 +- .../huaweicloudsdkelb/v3/region/elb_region.py | 68 +- huaweicloud-sdk-elb/requirements.txt | 2 +- huaweicloud-sdk-elb/setup.py | 4 +- .../huaweicloudsdkeps/v1/region/eps_region.py | 4 +- huaweicloud-sdk-eps/requirements.txt | 2 +- huaweicloud-sdk-eps/setup.py | 4 +- .../huaweicloudsdker/v3/region/er_region.py | 36 +- huaweicloud-sdk-er/requirements.txt | 2 +- huaweicloud-sdk-er/setup.py | 4 +- .../huaweicloudsdkevs/v2/region/evs_region.py | 72 +- huaweicloud-sdk-evs/requirements.txt | 2 +- huaweicloud-sdk-evs/setup.py | 4 +- .../huaweicloudsdkfrs/v2/frs_async_client.py | 8 +- .../huaweicloudsdkfrs/v2/frs_client.py | 8 +- .../detect_live_by_file_intl_request_body.py | 35 +- .../model/detect_live_by_file_request_body.py | 35 +- .../v2/model/live_detect_base64_req.py | 93 +- .../v2/model/live_detect_url_req.py | 93 +- .../huaweicloudsdkfrs/v2/region/frs_region.py | 24 +- huaweicloud-sdk-frs/requirements.txt | 2 +- huaweicloud-sdk-frs/setup.py | 4 +- .../v2/region/functiongraph_region.py | 56 +- .../requirements.txt | 2 +- huaweicloud-sdk-functiongraph/setup.py | 4 +- .../huaweicloudsdkga/v1/region/ga_region.py | 8 +- huaweicloud-sdk-ga/requirements.txt | 2 +- huaweicloud-sdk-ga/setup.py | 4 +- .../v3/model/grant_database_permission.py | 3 +- .../v3/region/gaussdb_region.py | 36 +- huaweicloud-sdk-gaussdb/requirements.txt | 2 +- huaweicloud-sdk-gaussdb/setup.py | 4 +- .../v3/region/gaussdbfornosql_region.py | 28 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbfornosql/setup.py | 4 +- .../v3/model/open_gauss_datastore.py | 6 +- .../v3/model/open_gauss_datastore_response.py | 6 +- .../v3/region/gaussdbforopengauss_region.py | 52 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbforopengauss/setup.py | 4 +- .../huaweicloudsdkges/v1/region/ges_region.py | 28 +- .../huaweicloudsdkges/v2/region/ges_region.py | 28 +- huaweicloud-sdk-ges/requirements.txt | 2 +- huaweicloud-sdk-ges/setup.py | 4 +- .../huaweicloudsdkgsl/v3/region/gsl_region.py | 4 +- huaweicloud-sdk-gsl/requirements.txt | 2 +- huaweicloud-sdk-gsl/setup.py | 4 +- .../v1/region/hilens_region.py | 4 +- .../v3/region/hilens_region.py | 4 +- huaweicloud-sdk-hilens/requirements.txt | 2 +- huaweicloud-sdk-hilens/setup.py | 4 +- .../huaweicloudsdkhss/v1/region/hss_region.py | 68 +- .../huaweicloudsdkhss/v5/region/hss_region.py | 68 +- huaweicloud-sdk-hss/requirements.txt | 2 +- huaweicloud-sdk-hss/setup.py | 4 +- .../huaweicloudsdkiam/v3/region/iam_region.py | 68 +- huaweicloud-sdk-iam/requirements.txt | 2 +- huaweicloud-sdk-iam/setup.py | 4 +- .../huaweicloudsdkiec/v1/region/iec_region.py | 4 +- huaweicloud-sdk-iec/requirements.txt | 2 +- huaweicloud-sdk-iec/setup.py | 4 +- .../huaweicloudsdkief/v1/region/ief_region.py | 20 +- huaweicloud-sdk-ief/requirements.txt | 2 +- huaweicloud-sdk-ief/setup.py | 4 +- .../huaweicloudsdkies/v1/region/ies_region.py | 4 +- huaweicloud-sdk-ies/requirements.txt | 2 +- huaweicloud-sdk-ies/setup.py | 4 +- .../huaweicloudsdkimage/v2/__init__.py | 9 + .../v2/image_async_client.py | 122 ++ .../huaweicloudsdkimage/v2/image_client.py | 120 ++ .../huaweicloudsdkimage/v2/model/__init__.py | 9 + .../v2/model/image_super_resolution_req.py | 176 ++ .../image_super_resolution_response_result.py | 118 ++ .../v2/model/recapture_detect_req.py | 176 ++ .../model/recapture_detect_response_result.py | 205 +++ ...recapture_detect_response_result_detail.py | 147 ++ .../run_image_super_resolution_request.py | 114 ++ .../run_image_super_resolution_response.py | 30 +- .../v2/model/run_recapture_detect_request.py | 114 ++ .../v2/model/run_recapture_detect_response.py | 30 +- .../v2/region/image_region.py | 20 +- huaweicloud-sdk-image/requirements.txt | 2 +- huaweicloud-sdk-image/setup.py | 4 +- .../huaweicloudsdkimagesearch/v1/__init__.py | 32 - .../v1/imagesearch_async_client.py | 583 ------- .../v1/imagesearch_client.py | 573 ------- .../v1/model/__init__.py | 28 - .../v1/model/add_picture_request_req.py | 175 -- .../v1/model/create_instance_req.py | 232 --- .../v1/model/run_create_instance_response.py | 321 ---- .../v1/model/run_query_instance_response.py | 321 ---- .../v1/model/search_box_detail.py | 205 --- .../v1/model/search_picture_req.py | 288 ---- .../huaweicloudsdkimagesearch/v2/__init__.py | 41 + .../v2/imagesearch_async_client.py | 397 +++++ .../v2/imagesearch_client.py | 390 +++++ .../v2/model/__init__.py | 37 + .../v2/model/add_data_optional_param.py | 205 +++ .../v2/model/add_data_param.py | 345 ++++ .../v2/model/add_data_rest_info.py | 114 ++ .../v2/model/add_data_rest_info_image_info.py | 147 ++ .../add_data_rest_info_image_info_objects.py | 176 ++ .../v2/model/check_info.py | 172 ++ .../v2/model/check_param.py | 230 +++ .../v2/model/check_rest_info.py | 197 +++ .../v2/model/delete_info.py | 147 ++ .../v2/model/delete_param.py | 205 +++ .../v2/model/delete_rest_info.py | 143 ++ .../v2/model/delete_rest_info_items.py | 47 +- .../v2/model/item_source.py | 205 +++ .../v2/model/range_param.py | 147 ++ .../model/run_add_data_request.py} | 62 +- .../v2/model/run_add_data_response.py | 143 ++ .../v2/model/run_check_data_request.py | 142 ++ .../v2/model/run_check_data_response.py | 143 ++ .../v2/model/run_delete_data_request.py | 142 ++ .../v2/model/run_delete_data_response.py | 143 ++ .../model/run_search_request.py} | 62 +- .../v2/model/run_search_response.py | 143 ++ .../v2/model/run_update_data_request.py | 142 ++ .../model/run_update_data_response.py} | 22 +- .../v2/model/search_after_param.py | 147 ++ .../v2/model/search_info.py | 201 +++ .../v2/model/search_item.py | 172 ++ .../v2/model/search_optional_param.py | 234 +++ .../v2/model/search_param.py | 399 +++++ .../v2/model/search_rest_info.py | 168 ++ .../v2/model/search_rest_info_image_info.py | 205 +++ .../v2/model/update_param.py | 204 +++ .../{v1 => v2}/region/__init__.py | 0 .../{v1 => v2}/region/imagesearch_region.py | 12 +- huaweicloud-sdk-imagesearch/requirements.txt | 2 +- huaweicloud-sdk-imagesearch/setup.py | 4 +- .../huaweicloudsdkims/v2/region/ims_region.py | 72 +- huaweicloud-sdk-ims/requirements.txt | 2 +- huaweicloud-sdk-ims/setup.py | 4 +- .../v1/region/iotanalytics_region.py | 4 +- huaweicloud-sdk-iotanalytics/requirements.txt | 2 +- huaweicloud-sdk-iotanalytics/setup.py | 4 +- .../v5/region/iotda_region.py | 20 +- huaweicloud-sdk-iotda/requirements.txt | 2 +- huaweicloud-sdk-iotda/setup.py | 4 +- .../v2/region/iotedge_region.py | 4 +- huaweicloud-sdk-iotedge/requirements.txt | 2 +- huaweicloud-sdk-iotedge/setup.py | 4 +- .../huaweicloudsdkivs/v2/region/ivs_region.py | 8 +- huaweicloud-sdk-ivs/requirements.txt | 2 +- huaweicloud-sdk-ivs/setup.py | 4 +- .../v2/region/kafka_region.py | 72 +- huaweicloud-sdk-kafka/requirements.txt | 2 +- huaweicloud-sdk-kafka/setup.py | 4 +- .../huaweicloudsdkkms/v2/region/kms_region.py | 68 +- huaweicloud-sdk-kms/requirements.txt | 2 +- huaweicloud-sdk-kms/setup.py | 4 +- .../huaweicloudsdkkps/v3/region/kps_region.py | 52 +- 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 | 20 +- .../v2/region/live_region.py | 20 +- huaweicloud-sdk-live/requirements.txt | 2 +- huaweicloud-sdk-live/setup.py | 4 +- .../huaweicloudsdklts/v2/region/lts_region.py | 68 +- huaweicloud-sdk-lts/requirements.txt | 2 +- huaweicloud-sdk-lts/setup.py | 4 +- .../v1/region/mapds_region.py | 8 +- huaweicloud-sdk-mapds/requirements.txt | 2 +- huaweicloud-sdk-mapds/setup.py | 4 +- .../huaweicloudsdkmas/v1/region/mas_region.py | 56 +- huaweicloud-sdk-mas/requirements.txt | 2 +- huaweicloud-sdk-mas/setup.py | 4 +- .../v1/region/meeting_region.py | 8 +- huaweicloud-sdk-meeting/requirements.txt | 2 +- huaweicloud-sdk-meeting/setup.py | 4 +- .../v2/region/moderation_region.py | 20 +- .../v3/region/moderation_region.py | 20 +- huaweicloud-sdk-moderation/requirements.txt | 2 +- huaweicloud-sdk-moderation/setup.py | 4 +- .../huaweicloudsdkmpc/v1/region/mpc_region.py | 24 +- huaweicloud-sdk-mpc/requirements.txt | 2 +- huaweicloud-sdk-mpc/setup.py | 4 +- .../huaweicloudsdkmrs/v1/region/mrs_region.py | 68 +- .../huaweicloudsdkmrs/v2/region/mrs_region.py | 68 +- huaweicloud-sdk-mrs/requirements.txt | 2 +- huaweicloud-sdk-mrs/setup.py | 4 +- .../huaweicloudsdknat/v2/region/nat_region.py | 72 +- huaweicloud-sdk-nat/requirements.txt | 2 +- huaweicloud-sdk-nat/setup.py | 4 +- .../huaweicloudsdknlp/v2/region/nlp_region.py | 4 +- huaweicloud-sdk-nlp/requirements.txt | 2 +- huaweicloud-sdk-nlp/setup.py | 4 +- .../huaweicloudsdkocr/v1/region/ocr_region.py | 36 +- huaweicloud-sdk-ocr/requirements.txt | 2 +- huaweicloud-sdk-ocr/setup.py | 4 +- .../huaweicloudsdkoms/v2/region/oms_region.py | 40 +- huaweicloud-sdk-oms/requirements.txt | 2 +- huaweicloud-sdk-oms/setup.py | 4 +- .../huaweicloudsdkosm/v2/__init__.py | 86 + .../huaweicloudsdkosm/v2/model/__init__.py | 86 + .../huaweicloudsdkosm/v2/model/answer.py | 230 +++ .../v2/model/answer_detail.py | 197 +++ .../huaweicloudsdkosm/v2/model/answer_info.py | 234 +++ .../v2/model/answer_qa_pair.py | 321 ++++ .../huaweicloudsdkosm/v2/model/article.py | 350 ++++ .../v2/model/ask_question_req.py | 319 ++++ .../v2/model/cbs_flow_entry.py | 147 ++ .../v2/model/contact_way_info_v2.py | 346 ++++ .../v2/model/create_ask_question_request.py | 200 +++ .../v2/model/create_ask_question_response.py | 234 +++ .../v2/model/create_authorization_request.py | 62 +- .../v2/model/create_authorization_response.py | 90 +- .../model/create_diagnose_feedback_request.py | 114 ++ .../create_diagnose_feedback_response.py | 147 ++ .../v2/model/create_diagnose_job_request.py | 114 ++ .../v2/model/create_diagnose_job_response.py | 176 ++ .../v2/model/create_evaluate_request.py | 256 +++ .../v2/model/create_evaluate_response.py | 176 ++ .../v2/model/create_feedback_req.py | 174 ++ .../v2/model/create_feedback_request.py | 114 ++ .../v2/model/create_feedback_response.py | 147 ++ .../v2/model/create_feedback_v2_req.py | 250 +++ .../v2/model/create_qa_ask_request.py | 200 +++ .../v2/model/create_qa_ask_response.py | 284 +++ .../v2/model/create_qa_feedbacks_request.py | 229 +++ .../v2/model/create_qa_feedbacks_response.py | 176 ++ .../create_question_in_session_request.py | 228 +++ .../create_question_in_session_response.py | 234 +++ .../v2/model/create_session_request.py | 175 ++ .../v2/model/create_session_response.py | 176 ++ ...create_user_center_authorization_v2_req.py | 147 ++ .../v2/model/diagnose_record_vo.py | 350 ++++ .../v2/model/evaluate_request_req.py | 118 ++ .../v2/model/extend_question.py | 147 ++ .../v2/model/feedback_option.py | 147 ++ .../v2/model/intellectual_property_v2.py | 205 +++ .../v2/model/item_result_detail_vo.py | 321 ++++ .../v2/model/item_result_vo.py | 292 ++++ .../huaweicloudsdkosm/v2/model/lang_result.py | 147 ++ .../v2/model/list_articles_request.py | 229 +++ .../v2/model/list_articles_response.py | 176 ++ .../v2/model/list_diagnose_items_request.py | 114 ++ .../v2/model/list_diagnose_items_response.py | 176 ++ .../v2/model/list_diagnose_job_request.py | 46 +- .../v2/model/list_diagnose_job_response.py | 292 ++++ .../v2/model/list_diagnose_records_request.py | 176 ++ .../model/list_diagnose_records_response.py | 205 +++ .../v2/model/list_feedback_option_request.py | 233 +++ .../v2/model/list_feedback_option_response.py | 176 ++ .../v2/model/list_notices_request.py | 201 +++ .../v2/model/list_notices_response.py | 176 ++ .../v2/model/list_recommend_words_request.py | 263 +++ .../v2/model/list_recommend_words_response.py | 205 +++ .../v2/model/list_tools_request.py | 201 +++ .../v2/model/list_tools_response.py | 176 ++ .../huaweicloudsdkosm/v2/model/notice.py | 202 +++ .../huaweicloudsdkosm/v2/model/qa_ask_req.py | 349 ++++ .../v2/model/qa_feedback_req.py | 348 ++++ .../v2/model/qa_flow_hit_node_vo.py | 205 +++ .../v2/model/qa_flow_hit_result.py | 201 +++ .../v2/model/qa_graph_answer.py | 205 +++ .../huaweicloudsdkosm/v2/model/qa_pair.py | 292 ++++ .../v2/model/qabot_answer.py | 350 ++++ .../v2/model/query_associated_question_req.py | 175 ++ .../v2/model/query_diagnose_items_req.py | 147 ++ .../v2/model/recommend_word.py | 288 ++++ .../v2/model/relation_theme.py | 147 ++ .../v2/model/relevance_qapair.py | 176 ++ .../v2/model/search_articles_req.py | 204 +++ .../v2/model/search_notices_req.py | 78 +- .../v2/model/search_qa_pairs_req.py | 147 ++ .../v2/model/search_tools_req.py | 204 +++ .../v2/model/session_ask_question_req.py | 291 ++++ .../show_associated_questions_request.py | 200 +++ .../show_associated_questions_response.py | 176 ++ .../show_download_accessory_url_request.py | 203 +++ .../show_download_accessory_url_response.py | 176 ++ .../v2/model/show_qa_pair_detail_request.py | 203 +++ .../v2/model/show_qa_pair_detail_response.py | 172 ++ .../v2/model/show_qa_pairs_request.py | 228 +++ .../v2/model/show_qa_pairs_response.py | 176 ++ .../v2/model/show_theme_request.py | 262 +++ .../v2/model/show_theme_response.py | 234 +++ .../v2/model/simple_qa_pair.py | 176 ++ .../v2/model/submit_diagnose_job_req.py | 175 ++ .../huaweicloudsdkosm/v2/model/tool.py | 290 ++++ .../huaweicloudsdkosm/v2/osm_async_client.py | 1525 +++++++++++++++++ .../huaweicloudsdkosm/v2/osm_client.py | 1502 ++++++++++++++++ .../huaweicloudsdkosm/v2/region/osm_region.py | 4 +- huaweicloud-sdk-osm/requirements.txt | 2 +- huaweicloud-sdk-osm/setup.py | 4 +- .../v4/region/projectman_region.py | 36 +- huaweicloud-sdk-projectman/requirements.txt | 2 +- huaweicloud-sdk-projectman/setup.py | 4 +- .../v2/region/rabbitmq_region.py | 72 +- huaweicloud-sdk-rabbitmq/requirements.txt | 2 +- huaweicloud-sdk-rabbitmq/setup.py | 4 +- .../huaweicloudsdkrds/v3/region/rds_region.py | 72 +- huaweicloud-sdk-rds/requirements.txt | 2 +- huaweicloud-sdk-rds/setup.py | 4 +- .../huaweicloudsdkres/v1/region/res_region.py | 4 +- huaweicloud-sdk-res/requirements.txt | 2 +- huaweicloud-sdk-res/setup.py | 4 +- .../create_policy_assignments_request.py | 31 +- .../v1/model/create_stored_query_request.py | 31 +- .../v1/model/create_tracker_config_request.py | 31 +- .../model/delete_policy_assignment_request.py | 31 +- .../v1/model/delete_stored_query_request.py | 31 +- .../v1/model/delete_tracker_config_request.py | 33 +- .../disable_policy_assignment_request.py | 31 +- .../model/enable_policy_assignment_request.py | 31 +- .../v1/model/list_all_resources_request.py | 31 +- ...ist_built_in_policy_definitions_request.py | 31 +- .../model/list_policy_assignments_request.py | 33 +- ..._policy_states_by_assignment_id_request.py | 31 +- ...list_policy_states_by_domain_id_request.py | 31 +- ...st_policy_states_by_resource_id_request.py | 31 +- .../v1/model/list_providers_request.py | 31 +- .../v1/model/list_regions_request.py | 31 +- .../v1/model/list_resources_request.py | 31 +- .../v1/model/list_schemas_request.py | 31 +- .../v1/model/list_stored_queries_request.py | 31 +- ...luation_by_policy_assignment_id_request.py | 31 +- .../v1/model/run_query_request.py | 31 +- ...show_built_in_policy_definition_request.py | 31 +- ...aluation_state_by_assignment_id_request.py | 31 +- .../model/show_policy_assignment_request.py | 31 +- .../v1/model/show_resource_by_id_request.py | 31 +- .../v1/model/show_resource_history_request.py | 31 +- .../model/show_resource_relations_request.py | 31 +- .../v1/model/show_stored_query_request.py | 31 +- .../v1/model/show_tracker_config_request.py | 33 +- .../model/update_policy_assignment_request.py | 31 +- .../v1/model/update_policy_state_request.py | 31 +- .../v1/model/update_stored_query_request.py | 31 +- .../huaweicloudsdkrms/v1/region/rms_region.py | 4 +- .../huaweicloudsdkrms/v1/rms_async_client.py | 128 +- .../huaweicloudsdkrms/v1/rms_client.py | 128 +- huaweicloud-sdk-rms/requirements.txt | 2 +- huaweicloud-sdk-rms/setup.py | 4 +- .../huaweicloudsdkrocketmq/v2/__init__.py | 12 + .../v2/model/__init__.py | 12 + ...h_create_or_delete_rocketmq_tag_request.py | 142 ++ ..._create_or_delete_rocketmq_tag_response.py | 87 + .../model/batch_create_or_delete_tag_req.py | 70 +- .../v2/model/bss_param.py | 234 +++ .../v2/model/create_instance_by_engine_req.py | 625 +++++++ .../create_instance_by_engine_request.py | 62 +- .../create_instance_by_engine_response.py | 48 +- .../list_consumer_group_of_topic_request.py | 64 +- .../v2/model/list_instances_request.py | 64 +- .../show_consumer_list_or_details_request.py | 64 +- .../show_rocketmq_project_tags_request.py | 87 + .../show_rocketmq_project_tags_response.py | 118 ++ .../v2/model/show_rocketmq_tags_request.py | 44 +- .../v2/model/show_rocketmq_tags_response.py | 118 ++ .../v2/model/tag_multy_value_entity.py | 147 ++ .../v2/region/rocketmq_region.py | 56 +- .../v2/rocketmq_async_client.py | 264 ++- .../v2/rocketmq_client.py | 260 ++- huaweicloud-sdk-rocketmq/requirements.txt | 2 +- huaweicloud-sdk-rocketmq/setup.py | 4 +- .../v2/region/roma_region.py | 32 +- huaweicloud-sdk-roma/requirements.txt | 2 +- huaweicloud-sdk-roma/setup.py | 4 +- .../huaweicloudsdksa/v1/region/sa_region.py | 8 +- .../huaweicloudsdksa/v2/region/sa_region.py | 8 +- huaweicloud-sdk-sa/requirements.txt | 2 +- huaweicloud-sdk-sa/setup.py | 4 +- .../huaweicloudsdkscm/v3/region/scm_region.py | 8 +- huaweicloud-sdk-scm/requirements.txt | 2 +- huaweicloud-sdk-scm/setup.py | 4 +- .../v1/region/sdrs_region.py | 28 +- 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 | 52 +- huaweicloud-sdk-servicestage/requirements.txt | 2 +- huaweicloud-sdk-servicestage/setup.py | 4 +- .../v1/region/sfsturbo_region.py | 68 +- 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 | 68 +- huaweicloud-sdk-smn/requirements.txt | 2 +- huaweicloud-sdk-smn/setup.py | 4 +- .../huaweicloudsdksms/v3/region/sms_region.py | 4 +- huaweicloud-sdk-sms/requirements.txt | 2 +- huaweicloud-sdk-sms/setup.py | 4 +- .../huaweicloudsdkswr/v2/region/swr_region.py | 72 +- huaweicloud-sdk-swr/requirements.txt | 2 +- huaweicloud-sdk-swr/setup.py | 4 +- .../huaweicloudsdktms/v1/region/tms_region.py | 4 +- huaweicloud-sdk-tms/requirements.txt | 2 +- huaweicloud-sdk-tms/setup.py | 4 +- .../huaweicloudsdkugo/v1/region/ugo_region.py | 8 +- huaweicloud-sdk-ugo/requirements.txt | 2 +- huaweicloud-sdk-ugo/setup.py | 4 +- .../huaweicloudsdkvas/v2/region/vas_region.py | 32 +- huaweicloud-sdk-vas/requirements.txt | 2 +- huaweicloud-sdk-vas/setup.py | 4 +- .../huaweicloudsdkvcm/v2/region/vcm_region.py | 4 +- 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 | 72 +- .../huaweicloudsdkvpc/v3/region/vpc_region.py | 72 +- huaweicloud-sdk-vpc/requirements.txt | 2 +- huaweicloud-sdk-vpc/setup.py | 4 +- .../v1/region/vpcep_region.py | 68 +- huaweicloud-sdk-vpcep/requirements.txt | 2 +- huaweicloud-sdk-vpcep/setup.py | 4 +- .../huaweicloudsdkvss/v3/region/vss_region.py | 4 +- huaweicloud-sdk-vss/requirements.txt | 2 +- huaweicloud-sdk-vss/setup.py | 4 +- .../v1/model/create_host_request_body.py | 6 +- .../huaweicloudsdkwaf/v1/region/waf_region.py | 72 +- huaweicloud-sdk-waf/requirements.txt | 2 +- huaweicloud-sdk-waf/setup.py | 4 +- .../v2/region/workspace_region.py | 20 +- huaweicloud-sdk-workspace/requirements.txt | 2 +- huaweicloud-sdk-workspace/setup.py | 4 +- 722 files changed, 37359 insertions(+), 8497 deletions(-) rename huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/{cloud_ide_extension_version_property.py => code_arts_ide_online_extension_version_property.py} (73%) rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_request.py => huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_request.py (78%) create mode 100755 huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_response.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_item.py => huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/login_schema.py (50%) rename huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/{change_mode_request_body.py => change_mode_req.py} (85%) create mode 100755 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_req.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_request.py => huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_request.py (62%) create mode 100755 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_response.py create mode 100755 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_body_req.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_request.py => huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_request.py (70%) create mode 100755 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_response.py create mode 100755 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_body.py create mode 100755 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_request.py create mode 100755 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_response.py create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_req.py create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_response_result.py create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_req.py create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result.py create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result_detail.py create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_request.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_response.py => huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_response.py (75%) create mode 100755 huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_request.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_response.py => huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_response.py (76%) delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/__init__.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_async_client.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_client.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/__init__.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/add_picture_request_req.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/create_instance_req.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_response.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_response.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_box_detail.py delete mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_req.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/__init__.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_async_client.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_client.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/__init__.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_rest_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info.py rename huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_request_body.py => huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py (73%) create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/item_source.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/range_param.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/{v1/model/run_modify_picture_request.py => v2/model/run_add_data_request.py} (62%) create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_response.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_request.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_response.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/{v1/model/run_search_picture_request.py => v2/model/run_search_request.py} (62%) create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_response.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_request.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/{v1/model/run_add_picture_response.py => v2/model/run_update_data_response.py} (79%) create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_after_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_item.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_optional_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_param.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py create mode 100755 huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/update_param.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/{v1 => v2}/region/__init__.py (100%) rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/{v1 => v2}/region/imagesearch_region.py (72%) create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_detail.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_info.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_qa_pair.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/article.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/ask_question_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/cbs_flow_entry.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/contact_way_info_v2.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_response.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_request.py => huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_request.py (62%) rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_response.py => huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_response.py (56%) create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_v2_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_user_center_authorization_v2_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/diagnose_record_vo.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/evaluate_request_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/extend_question.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/feedback_option.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/intellectual_property_v2.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_detail_vo.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_vo.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/lang_result.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_response.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/delete_picture_req.py => huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_request.py (72%) create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/notice.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_ask_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_feedback_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_result.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_graph_answer.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_pair.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qabot_answer.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_associated_question_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_diagnose_items_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/recommend_word.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relation_theme.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relevance_qapair.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_articles_req.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_response.py => huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_notices_req.py (57%) create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_qa_pairs_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_tools_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/session_ask_question_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_request.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_response.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/simple_qa_pair.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/submit_diagnose_job_req.py create mode 100755 huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/tool.py create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_req.py => huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py (59%) create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/bss_param.py create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_request.py => huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_request.py (62%) rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_response.py => huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_response.py (68%) create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py rename huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_request.py => huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py (70%) create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py create mode 100755 huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d7f3fd2..fd027ecdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,171 @@ +# 3.1.26 2023-02-16 + +### HuaweiCloud SDK AOM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the response parameter `id` from the interface `CreateApp` + - Changes of the interface `ListResourceUnderNode`: + - Add the request parameter `ci_ids` + - The request parameter `ci_id` changed to not required + +### HuaweiCloud SDK CloudIDE + +- _Features_ + - Support the interface `CreateLogin` +- _Bug Fix_ + - None +- _Change_ + - Remove the response parameters `id`, `property_name`, `property_value`, `extension_version_id`, `created_at`, `updated_at` from the interface `ListExtensions` + - Remove the response parameters `id`, `property_name`, `property_value`, `extension_version_id`, `created_at`, `updated_at` from the interface `ShowExtensionDetail` + +### HuaweiCloud SDK CSS + +- _Features_ + - Support the interface `ChangeSecurityGroup` +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `ChangeMode`: + - Add the request parameter `changeModeReq` + - Remove the request parameter `changeModeRequestBody` + - Changes of the interface `AddIndependentNode`: + - Add the request parameter `IndependentReq` + - Remove the request parameter `IndependentRequestBody` + +### HuaweiCloud SDK CTS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameters `compress_type`, `is_sort_by_service` to the interface `UpdateTracker` + - Add the request parameters `compress_type`, `is_sort_by_service` to the interface `CreateTracker` + - Add the response parameters `compress_type`, `is_sort_by_service` to the interface `ListTrackers` + +### HuaweiCloud SDK DCS + +- _Features_ + - Support the interfaces `CreateCustomTemplate`, `CreateAutoExpireScanTask` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DRIS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the response parameter `esn` to the interface `ShowHistoryTrafficEvents` + +### HuaweiCloud SDK DWS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameters `project_id`, `cluster_id`, `limit`, `offset`, `sort_key`, `sort_dir` to the interface `ListClusterSnapshots` + +### HuaweiCloud SDK FRS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `nod_threshold` to the interface `DetectLiveByUrl` + - Add the request parameter `nod_threshold` to the interface `DetectLiveByUrlIntl` + - Add the request parameter `nod_threshold` to the interface `DetectLiveByFile` + - Add the request parameter `nod_threshold` to the interface `DetectLiveByFileIntl` + - Add the request parameter `nod_threshold` to the interface `DetectLiveByBase64` + - Add the request parameter `nod_threshold` to the interface `DetectLiveByBase64Intl` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - The request parameter `host` changed to required of the interface `AddDatabasePermission` + +### HuaweiCloud SDK Image + +- _Features_ + - Support the interfaces `RunImageSuperResolution`, `RunRecaptureDetect` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK OSM + +- _Features_ + - Support the following interfaces: + - `CreateAuthorization` + - `CreateFeedback` + - `ShowDownloadAccessoryUrl` + - `CreateQuestionInSession` + - `CreateSession` + - `CreateEvaluate` + - `ListFeedbackOption` + - `CreateQaFeedbacks` + - `CreateAskQuestion` + - `ShowQaPairDetail` + - `ShowAssociatedQuestions` + - `ShowQaPairs` + - `ListRecommendWords` + - `CreateQaAsk` + - `ShowTheme` + - `ListArticles` + - `ListNotices` + - `ListTools` + - `CreateDiagnoseFeedback` + - `ListDiagnoseItems` + - `ListDiagnoseJob` + - `ListDiagnoseRecords` + - `CreateDiagnoseJob` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK RocketMQ + +- _Features_ + - Support the interfaces `CreateInstanceByEngine`, `BatchCreateOrDeleteRocketmqTag`, `ShowRocketmqTags`, `ShowRocketmqProjectTags` +- _Bug Fix_ + - None +- _Change_ + - Add the request parameters `limit`, `offset` to the interface `ListInstances` + - Add the request parameters `limit`, `offset` to the interface `ShowConsumerListOrDetails` + - Add the request parameters `limit`, `offset` to the interface `ListConsumerGroupOfTopic` + +### HuaweiCloud SDK WAF + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `UpdateHost`: + - Remove the enum values `TLS v1.3` from the request parameter `tls` + - Remove the enum values `TLS v1.3` from the response parameter `tls` + - Remove the enum values `TLS v1.3` from the response parameter `tls` from the interface `ShowHost` + - Remove the enum values `TLS v1.3` from the response parameter `tls` from the interface `CreatePremiumHost` + - Remove the enum values `TLS v1.3` from the response parameter `tls` from the interface `ShowPremiumHost` + - Changes of the interface `UpdatePremiumHost`: + - Remove the enum values `TLS v1.3` from the request parameter `tls` + - Remove the enum values `TLS v1.3` from the response parameter `tls` + # 3.1.25 2023-02-09 ### HuaweiCloud SDK LakeFormation diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index c07ca15e0..36f122fdf 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,171 @@ +# 3.1.26 2023-02-16 + +### HuaweiCloud SDK AOM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateApp`移除响应参数 `id` + - 接口`ListResourceUnderNode`: + - 新增请求参数 `ci_ids` + - 请求参数`ci_id`改为非必填 + +### HuaweiCloud SDK CloudIDE + +- _新增特性_ + - 支持接口`CreateLogin` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListExtensions`移除响应参数 `id`、`property_name`、`property_value`、`extension_version_id`、`created_at`、`updated_at` + - 接口`ShowExtensionDetail`移除响应参数 `id`、`property_name`、`property_value`、`extension_version_id`、`created_at`、`updated_at` + +### HuaweiCloud SDK CSS + +- _新增特性_ + - 支持接口`ChangeSecurityGroup` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ChangeMode`: + - 新增请求参数 `changeModeReq` + - 移除请求参数 `changeModeRequestBody` + - 接口`AddIndependentNode`: + - 新增请求参数 `IndependentReq` + - 移除请求参数 `IndependentRequestBody` + +### HuaweiCloud SDK CTS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`UpdateTracker`新增请求参数 `compress_type`、`is_sort_by_service` + - 接口`CreateTracker`新增请求参数 `compress_type`、`is_sort_by_service` + - 接口`ListTrackers`新增响应参数 `compress_type`、`is_sort_by_service` + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持接口`CreateCustomTemplate`、`CreateAutoExpireScanTask` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DRIS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ShowHistoryTrafficEvents`新增响应参数 `esn` + +### HuaweiCloud SDK DWS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListClusterSnapshots`新增请求参数 `project_id`、`cluster_id`、`limit`、`offset`、`sort_key`、`sort_dir` + +### HuaweiCloud SDK FRS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`DetectLiveByUrl`新增请求参数 `nod_threshold` + - 接口`DetectLiveByUrlIntl`新增请求参数 `nod_threshold` + - 接口`DetectLiveByFile`新增请求参数 `nod_threshold` + - 接口`DetectLiveByFileIntl`新增请求参数 `nod_threshold` + - 接口`DetectLiveByBase64`新增请求参数 `nod_threshold` + - 接口`DetectLiveByBase64Intl`新增请求参数 `nod_threshold` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`AddDatabasePermission`请求参数`host`改为必填 + +### HuaweiCloud SDK Image + +- _新增特性_ + - 支持接口`RunImageSuperResolution`、`RunRecaptureDetect` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK OSM + +- _新增特性_ + - 支持以下接口: + - `CreateAuthorization` + - `CreateFeedback` + - `ShowDownloadAccessoryUrl` + - `CreateQuestionInSession` + - `CreateSession` + - `CreateEvaluate` + - `ListFeedbackOption` + - `CreateQaFeedbacks` + - `CreateAskQuestion` + - `ShowQaPairDetail` + - `ShowAssociatedQuestions` + - `ShowQaPairs` + - `ListRecommendWords` + - `CreateQaAsk` + - `ShowTheme` + - `ListArticles` + - `ListNotices` + - `ListTools` + - `CreateDiagnoseFeedback` + - `ListDiagnoseItems` + - `ListDiagnoseJob` + - `ListDiagnoseRecords` + - `CreateDiagnoseJob` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK RocketMQ + +- _新增特性_ + - 支持接口`CreateInstanceByEngine`、`BatchCreateOrDeleteRocketmqTag`、`ShowRocketmqTags`、`ShowRocketmqProjectTags` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListInstances`新增请求参数 `limit`、`offset` + - 接口`ShowConsumerListOrDetails`新增请求参数 `limit`、`offset` + - 接口`ListConsumerGroupOfTopic`新增请求参数 `limit`、`offset` + +### HuaweiCloud SDK WAF + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`UpdateHost`: + - 请求参数`tls`移除枚举值`TLS v1.3` + - 响应参数`tls`移除枚举值`TLS v1.3` + - 接口`ShowHost`响应参数`tls`移除枚举值`TLS v1.3` + - 接口`CreatePremiumHost`响应参数`tls`移除枚举值`TLS v1.3` + - 接口`ShowPremiumHost`响应参数`tls`移除枚举值`TLS v1.3` + - 接口`UpdatePremiumHost`: + - 请求参数`tls`移除枚举值`TLS v1.3` + - 响应参数`tls`移除枚举值`TLS v1.3` + # 3.1.25 2023-02-09 ### HuaweiCloud SDK LakeFormation diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index ec03a886f..10582b0ce 100755 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,134 +1,134 @@ -huaweicloudsdkcore == 3.1.25 -huaweicloudsdkantiddos == 3.1.25 -huaweicloudsdkaom == 3.1.25 -huaweicloudsdkaos == 3.1.25 -huaweicloudsdkapig == 3.1.25 -huaweicloudsdkapm == 3.1.25 -huaweicloudsdkas == 3.1.25 -huaweicloudsdkbcs == 3.1.25 -huaweicloudsdkbms == 3.1.25 -huaweicloudsdkbss == 3.1.25 -huaweicloudsdkbssintl == 3.1.25 -huaweicloudsdkcae == 3.1.25 -huaweicloudsdkcampusgo == 3.1.25 -huaweicloudsdkcbh == 3.1.25 -huaweicloudsdkcbr == 3.1.25 -huaweicloudsdkcbs == 3.1.25 -huaweicloudsdkcc == 3.1.25 -huaweicloudsdkcce == 3.1.25 -huaweicloudsdkccm == 3.1.25 -huaweicloudsdkcdm == 3.1.25 -huaweicloudsdkcdn == 3.1.25 -huaweicloudsdkces == 3.1.25 -huaweicloudsdkcfw == 3.1.25 -huaweicloudsdkcgs == 3.1.25 -huaweicloudsdkclassroom == 3.1.25 -huaweicloudsdkclouddeploy == 3.1.25 -huaweicloudsdkcloudide == 3.1.25 -huaweicloudsdkcloudpipeline == 3.1.25 -huaweicloudsdkcloudrtc == 3.1.25 -huaweicloudsdkcloudtable == 3.1.25 -huaweicloudsdkcloudtest == 3.1.25 -huaweicloudsdkcodeartsartifact == 3.1.25 -huaweicloudsdkcodeartsbuild == 3.1.25 -huaweicloudsdkcodecheck == 3.1.25 -huaweicloudsdkcodecraft == 3.1.25 -huaweicloudsdkcodehub == 3.1.25 -huaweicloudsdkcph == 3.1.25 -huaweicloudsdkcpts == 3.1.25 -huaweicloudsdkcse == 3.1.25 -huaweicloudsdkcsms == 3.1.25 -huaweicloudsdkcss == 3.1.25 -huaweicloudsdkcts == 3.1.25 -huaweicloudsdkdas == 3.1.25 -huaweicloudsdkdbss == 3.1.25 -huaweicloudsdkdc == 3.1.25 -huaweicloudsdkdcs == 3.1.25 -huaweicloudsdkddm == 3.1.25 -huaweicloudsdkdds == 3.1.25 -huaweicloudsdkdeh == 3.1.25 -huaweicloudsdkdevsecurity == 3.1.25 -huaweicloudsdkdevstar == 3.1.25 -huaweicloudsdkdgc == 3.1.25 -huaweicloudsdkdlf == 3.1.25 -huaweicloudsdkdli == 3.1.25 -huaweicloudsdkdms == 3.1.25 -huaweicloudsdkdns == 3.1.25 -huaweicloudsdkdris == 3.1.25 -huaweicloudsdkdrs == 3.1.25 -huaweicloudsdkdsc == 3.1.25 -huaweicloudsdkdwr == 3.1.25 -huaweicloudsdkdws == 3.1.25 -huaweicloudsdkecs == 3.1.25 -huaweicloudsdkeg == 3.1.25 -huaweicloudsdkeihealth == 3.1.25 -huaweicloudsdkeip == 3.1.25 -huaweicloudsdkelb == 3.1.25 -huaweicloudsdkeps == 3.1.25 -huaweicloudsdker == 3.1.25 -huaweicloudsdkevs == 3.1.25 -huaweicloudsdkfrs == 3.1.25 -huaweicloudsdkfunctiongraph == 3.1.25 -huaweicloudsdkga == 3.1.25 -huaweicloudsdkgaussdb == 3.1.25 -huaweicloudsdkgaussdbfornosql == 3.1.25 -huaweicloudsdkgaussdbforopengauss == 3.1.25 -huaweicloudsdkges == 3.1.25 -huaweicloudsdkgsl == 3.1.25 -huaweicloudsdkhilens == 3.1.25 -huaweicloudsdkhss == 3.1.25 -huaweicloudsdkiam == 3.1.25 -huaweicloudsdkiec == 3.1.25 -huaweicloudsdkief == 3.1.25 -huaweicloudsdkies == 3.1.25 -huaweicloudsdkimage == 3.1.25 -huaweicloudsdkimagesearch == 3.1.25 -huaweicloudsdkims == 3.1.25 -huaweicloudsdkiotanalytics == 3.1.25 -huaweicloudsdkiotda == 3.1.25 -huaweicloudsdkiotedge == 3.1.25 -huaweicloudsdkivs == 3.1.25 -huaweicloudsdkkafka == 3.1.25 -huaweicloudsdkkms == 3.1.25 -huaweicloudsdkkps == 3.1.25 -huaweicloudsdklakeformation == 3.1.25 -huaweicloudsdklive == 3.1.25 -huaweicloudsdklts == 3.1.25 -huaweicloudsdkmapds == 3.1.25 -huaweicloudsdkmas == 3.1.25 -huaweicloudsdkmeeting == 3.1.25 -huaweicloudsdkmoderation == 3.1.25 -huaweicloudsdkmpc == 3.1.25 -huaweicloudsdkmrs == 3.1.25 -huaweicloudsdknat == 3.1.25 -huaweicloudsdknlp == 3.1.25 -huaweicloudsdkocr == 3.1.25 -huaweicloudsdkoms == 3.1.25 -huaweicloudsdkosm == 3.1.25 -huaweicloudsdkprojectman == 3.1.25 -huaweicloudsdkrabbitmq == 3.1.25 -huaweicloudsdkrds == 3.1.25 -huaweicloudsdkres == 3.1.25 -huaweicloudsdkrms == 3.1.25 -huaweicloudsdkrocketmq == 3.1.25 -huaweicloudsdkroma == 3.1.25 -huaweicloudsdksa == 3.1.25 -huaweicloudsdkscm == 3.1.25 -huaweicloudsdksdrs == 3.1.25 -huaweicloudsdksecmaster == 3.1.25 -huaweicloudsdkservicestage == 3.1.25 -huaweicloudsdksfsturbo == 3.1.25 -huaweicloudsdksis == 3.1.25 -huaweicloudsdksmn == 3.1.25 -huaweicloudsdksms == 3.1.25 -huaweicloudsdkswr == 3.1.25 -huaweicloudsdktms == 3.1.25 -huaweicloudsdkugo == 3.1.25 -huaweicloudsdkvas == 3.1.25 -huaweicloudsdkvcm == 3.1.25 -huaweicloudsdkvod == 3.1.25 -huaweicloudsdkvpc == 3.1.25 -huaweicloudsdkvpcep == 3.1.25 -huaweicloudsdkvss == 3.1.25 -huaweicloudsdkwaf == 3.1.25 -huaweicloudsdkworkspace == 3.1.25 +huaweicloudsdkcore == 3.1.26 +huaweicloudsdkantiddos == 3.1.26 +huaweicloudsdkaom == 3.1.26 +huaweicloudsdkaos == 3.1.26 +huaweicloudsdkapig == 3.1.26 +huaweicloudsdkapm == 3.1.26 +huaweicloudsdkas == 3.1.26 +huaweicloudsdkbcs == 3.1.26 +huaweicloudsdkbms == 3.1.26 +huaweicloudsdkbss == 3.1.26 +huaweicloudsdkbssintl == 3.1.26 +huaweicloudsdkcae == 3.1.26 +huaweicloudsdkcampusgo == 3.1.26 +huaweicloudsdkcbh == 3.1.26 +huaweicloudsdkcbr == 3.1.26 +huaweicloudsdkcbs == 3.1.26 +huaweicloudsdkcc == 3.1.26 +huaweicloudsdkcce == 3.1.26 +huaweicloudsdkccm == 3.1.26 +huaweicloudsdkcdm == 3.1.26 +huaweicloudsdkcdn == 3.1.26 +huaweicloudsdkces == 3.1.26 +huaweicloudsdkcfw == 3.1.26 +huaweicloudsdkcgs == 3.1.26 +huaweicloudsdkclassroom == 3.1.26 +huaweicloudsdkclouddeploy == 3.1.26 +huaweicloudsdkcloudide == 3.1.26 +huaweicloudsdkcloudpipeline == 3.1.26 +huaweicloudsdkcloudrtc == 3.1.26 +huaweicloudsdkcloudtable == 3.1.26 +huaweicloudsdkcloudtest == 3.1.26 +huaweicloudsdkcodeartsartifact == 3.1.26 +huaweicloudsdkcodeartsbuild == 3.1.26 +huaweicloudsdkcodecheck == 3.1.26 +huaweicloudsdkcodecraft == 3.1.26 +huaweicloudsdkcodehub == 3.1.26 +huaweicloudsdkcph == 3.1.26 +huaweicloudsdkcpts == 3.1.26 +huaweicloudsdkcse == 3.1.26 +huaweicloudsdkcsms == 3.1.26 +huaweicloudsdkcss == 3.1.26 +huaweicloudsdkcts == 3.1.26 +huaweicloudsdkdas == 3.1.26 +huaweicloudsdkdbss == 3.1.26 +huaweicloudsdkdc == 3.1.26 +huaweicloudsdkdcs == 3.1.26 +huaweicloudsdkddm == 3.1.26 +huaweicloudsdkdds == 3.1.26 +huaweicloudsdkdeh == 3.1.26 +huaweicloudsdkdevsecurity == 3.1.26 +huaweicloudsdkdevstar == 3.1.26 +huaweicloudsdkdgc == 3.1.26 +huaweicloudsdkdlf == 3.1.26 +huaweicloudsdkdli == 3.1.26 +huaweicloudsdkdms == 3.1.26 +huaweicloudsdkdns == 3.1.26 +huaweicloudsdkdris == 3.1.26 +huaweicloudsdkdrs == 3.1.26 +huaweicloudsdkdsc == 3.1.26 +huaweicloudsdkdwr == 3.1.26 +huaweicloudsdkdws == 3.1.26 +huaweicloudsdkecs == 3.1.26 +huaweicloudsdkeg == 3.1.26 +huaweicloudsdkeihealth == 3.1.26 +huaweicloudsdkeip == 3.1.26 +huaweicloudsdkelb == 3.1.26 +huaweicloudsdkeps == 3.1.26 +huaweicloudsdker == 3.1.26 +huaweicloudsdkevs == 3.1.26 +huaweicloudsdkfrs == 3.1.26 +huaweicloudsdkfunctiongraph == 3.1.26 +huaweicloudsdkga == 3.1.26 +huaweicloudsdkgaussdb == 3.1.26 +huaweicloudsdkgaussdbfornosql == 3.1.26 +huaweicloudsdkgaussdbforopengauss == 3.1.26 +huaweicloudsdkges == 3.1.26 +huaweicloudsdkgsl == 3.1.26 +huaweicloudsdkhilens == 3.1.26 +huaweicloudsdkhss == 3.1.26 +huaweicloudsdkiam == 3.1.26 +huaweicloudsdkiec == 3.1.26 +huaweicloudsdkief == 3.1.26 +huaweicloudsdkies == 3.1.26 +huaweicloudsdkimage == 3.1.26 +huaweicloudsdkimagesearch == 3.1.26 +huaweicloudsdkims == 3.1.26 +huaweicloudsdkiotanalytics == 3.1.26 +huaweicloudsdkiotda == 3.1.26 +huaweicloudsdkiotedge == 3.1.26 +huaweicloudsdkivs == 3.1.26 +huaweicloudsdkkafka == 3.1.26 +huaweicloudsdkkms == 3.1.26 +huaweicloudsdkkps == 3.1.26 +huaweicloudsdklakeformation == 3.1.26 +huaweicloudsdklive == 3.1.26 +huaweicloudsdklts == 3.1.26 +huaweicloudsdkmapds == 3.1.26 +huaweicloudsdkmas == 3.1.26 +huaweicloudsdkmeeting == 3.1.26 +huaweicloudsdkmoderation == 3.1.26 +huaweicloudsdkmpc == 3.1.26 +huaweicloudsdkmrs == 3.1.26 +huaweicloudsdknat == 3.1.26 +huaweicloudsdknlp == 3.1.26 +huaweicloudsdkocr == 3.1.26 +huaweicloudsdkoms == 3.1.26 +huaweicloudsdkosm == 3.1.26 +huaweicloudsdkprojectman == 3.1.26 +huaweicloudsdkrabbitmq == 3.1.26 +huaweicloudsdkrds == 3.1.26 +huaweicloudsdkres == 3.1.26 +huaweicloudsdkrms == 3.1.26 +huaweicloudsdkrocketmq == 3.1.26 +huaweicloudsdkroma == 3.1.26 +huaweicloudsdksa == 3.1.26 +huaweicloudsdkscm == 3.1.26 +huaweicloudsdksdrs == 3.1.26 +huaweicloudsdksecmaster == 3.1.26 +huaweicloudsdkservicestage == 3.1.26 +huaweicloudsdksfsturbo == 3.1.26 +huaweicloudsdksis == 3.1.26 +huaweicloudsdksmn == 3.1.26 +huaweicloudsdksms == 3.1.26 +huaweicloudsdkswr == 3.1.26 +huaweicloudsdktms == 3.1.26 +huaweicloudsdkugo == 3.1.26 +huaweicloudsdkvas == 3.1.26 +huaweicloudsdkvcm == 3.1.26 +huaweicloudsdkvod == 3.1.26 +huaweicloudsdkvpc == 3.1.26 +huaweicloudsdkvpcep == 3.1.26 +huaweicloudsdkvss == 3.1.26 +huaweicloudsdkwaf == 3.1.26 +huaweicloudsdkworkspace == 3.1.26 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index ee020fd83..2c8532a44 100755 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,140 +34,140 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.25', - 'huaweicloudsdkantiddos==3.1.25', - 'huaweicloudsdkaom==3.1.25', - 'huaweicloudsdkaos==3.1.25', - 'huaweicloudsdkapig==3.1.25', - 'huaweicloudsdkapm==3.1.25', - 'huaweicloudsdkas==3.1.25', - 'huaweicloudsdkbcs==3.1.25', - 'huaweicloudsdkbms==3.1.25', - 'huaweicloudsdkbss==3.1.25', - 'huaweicloudsdkbssintl==3.1.25', - 'huaweicloudsdkcae==3.1.25', - 'huaweicloudsdkcampusgo==3.1.25', - 'huaweicloudsdkcbh==3.1.25', - 'huaweicloudsdkcbr==3.1.25', - 'huaweicloudsdkcbs==3.1.25', - 'huaweicloudsdkcc==3.1.25', - 'huaweicloudsdkcce==3.1.25', - 'huaweicloudsdkccm==3.1.25', - 'huaweicloudsdkcdm==3.1.25', - 'huaweicloudsdkcdn==3.1.25', - 'huaweicloudsdkces==3.1.25', - 'huaweicloudsdkcfw==3.1.25', - 'huaweicloudsdkcgs==3.1.25', - 'huaweicloudsdkclassroom==3.1.25', - 'huaweicloudsdkclouddeploy==3.1.25', - 'huaweicloudsdkcloudide==3.1.25', - 'huaweicloudsdkcloudpipeline==3.1.25', - 'huaweicloudsdkcloudrtc==3.1.25', - 'huaweicloudsdkcloudtable==3.1.25', - 'huaweicloudsdkcloudtest==3.1.25', - 'huaweicloudsdkcodeartsartifact==3.1.25', - 'huaweicloudsdkcodeartsbuild==3.1.25', - 'huaweicloudsdkcodecheck==3.1.25', - 'huaweicloudsdkcodecraft==3.1.25', - 'huaweicloudsdkcodehub==3.1.25', - 'huaweicloudsdkcph==3.1.25', - 'huaweicloudsdkcpts==3.1.25', - 'huaweicloudsdkcse==3.1.25', - 'huaweicloudsdkcsms==3.1.25', - 'huaweicloudsdkcss==3.1.25', - 'huaweicloudsdkcts==3.1.25', - 'huaweicloudsdkdas==3.1.25', - 'huaweicloudsdkdbss==3.1.25', - 'huaweicloudsdkdc==3.1.25', - 'huaweicloudsdkdcs==3.1.25', - 'huaweicloudsdkddm==3.1.25', - 'huaweicloudsdkdds==3.1.25', - 'huaweicloudsdkdeh==3.1.25', - 'huaweicloudsdkdevsecurity==3.1.25', - 'huaweicloudsdkdevstar==3.1.25', - 'huaweicloudsdkdgc==3.1.25', - 'huaweicloudsdkdlf==3.1.25', - 'huaweicloudsdkdli==3.1.25', - 'huaweicloudsdkdms==3.1.25', - 'huaweicloudsdkdns==3.1.25', - 'huaweicloudsdkdris==3.1.25', - 'huaweicloudsdkdrs==3.1.25', - 'huaweicloudsdkdsc==3.1.25', - 'huaweicloudsdkdwr==3.1.25', - 'huaweicloudsdkdws==3.1.25', - 'huaweicloudsdkecs==3.1.25', - 'huaweicloudsdkeg==3.1.25', - 'huaweicloudsdkeihealth==3.1.25', - 'huaweicloudsdkeip==3.1.25', - 'huaweicloudsdkelb==3.1.25', - 'huaweicloudsdkeps==3.1.25', - 'huaweicloudsdker==3.1.25', - 'huaweicloudsdkevs==3.1.25', - 'huaweicloudsdkfrs==3.1.25', - 'huaweicloudsdkfunctiongraph==3.1.25', - 'huaweicloudsdkga==3.1.25', - 'huaweicloudsdkgaussdb==3.1.25', - 'huaweicloudsdkgaussdbfornosql==3.1.25', - 'huaweicloudsdkgaussdbforopengauss==3.1.25', - 'huaweicloudsdkges==3.1.25', - 'huaweicloudsdkgsl==3.1.25', - 'huaweicloudsdkhilens==3.1.25', - 'huaweicloudsdkhss==3.1.25', - 'huaweicloudsdkiam==3.1.25', - 'huaweicloudsdkiec==3.1.25', - 'huaweicloudsdkief==3.1.25', - 'huaweicloudsdkies==3.1.25', - 'huaweicloudsdkimage==3.1.25', - 'huaweicloudsdkimagesearch==3.1.25', - 'huaweicloudsdkims==3.1.25', - 'huaweicloudsdkiotanalytics==3.1.25', - 'huaweicloudsdkiotda==3.1.25', - 'huaweicloudsdkiotedge==3.1.25', - 'huaweicloudsdkivs==3.1.25', - 'huaweicloudsdkkafka==3.1.25', - 'huaweicloudsdkkms==3.1.25', - 'huaweicloudsdkkps==3.1.25', - 'huaweicloudsdklakeformation==3.1.25', - 'huaweicloudsdklive==3.1.25', - 'huaweicloudsdklts==3.1.25', - 'huaweicloudsdkmapds==3.1.25', - 'huaweicloudsdkmas==3.1.25', - 'huaweicloudsdkmeeting==3.1.25', - 'huaweicloudsdkmoderation==3.1.25', - 'huaweicloudsdkmpc==3.1.25', - 'huaweicloudsdkmrs==3.1.25', - 'huaweicloudsdknat==3.1.25', - 'huaweicloudsdknlp==3.1.25', - 'huaweicloudsdkocr==3.1.25', - 'huaweicloudsdkoms==3.1.25', - 'huaweicloudsdkosm==3.1.25', - 'huaweicloudsdkprojectman==3.1.25', - 'huaweicloudsdkrabbitmq==3.1.25', - 'huaweicloudsdkrds==3.1.25', - 'huaweicloudsdkres==3.1.25', - 'huaweicloudsdkrms==3.1.25', - 'huaweicloudsdkrocketmq==3.1.25', - 'huaweicloudsdkroma==3.1.25', - 'huaweicloudsdksa==3.1.25', - 'huaweicloudsdkscm==3.1.25', - 'huaweicloudsdksdrs==3.1.25', - 'huaweicloudsdksecmaster==3.1.25', - 'huaweicloudsdkservicestage==3.1.25', - 'huaweicloudsdksfsturbo==3.1.25', - 'huaweicloudsdksis==3.1.25', - 'huaweicloudsdksmn==3.1.25', - 'huaweicloudsdksms==3.1.25', - 'huaweicloudsdkswr==3.1.25', - 'huaweicloudsdktms==3.1.25', - 'huaweicloudsdkugo==3.1.25', - 'huaweicloudsdkvas==3.1.25', - 'huaweicloudsdkvcm==3.1.25', - 'huaweicloudsdkvod==3.1.25', - 'huaweicloudsdkvpc==3.1.25', - 'huaweicloudsdkvpcep==3.1.25', - 'huaweicloudsdkvss==3.1.25', - 'huaweicloudsdkwaf==3.1.25', - 'huaweicloudsdkworkspace==3.1.25', + 'huaweicloudsdkcore==3.1.26', + 'huaweicloudsdkantiddos==3.1.26', + 'huaweicloudsdkaom==3.1.26', + 'huaweicloudsdkaos==3.1.26', + 'huaweicloudsdkapig==3.1.26', + 'huaweicloudsdkapm==3.1.26', + 'huaweicloudsdkas==3.1.26', + 'huaweicloudsdkbcs==3.1.26', + 'huaweicloudsdkbms==3.1.26', + 'huaweicloudsdkbss==3.1.26', + 'huaweicloudsdkbssintl==3.1.26', + 'huaweicloudsdkcae==3.1.26', + 'huaweicloudsdkcampusgo==3.1.26', + 'huaweicloudsdkcbh==3.1.26', + 'huaweicloudsdkcbr==3.1.26', + 'huaweicloudsdkcbs==3.1.26', + 'huaweicloudsdkcc==3.1.26', + 'huaweicloudsdkcce==3.1.26', + 'huaweicloudsdkccm==3.1.26', + 'huaweicloudsdkcdm==3.1.26', + 'huaweicloudsdkcdn==3.1.26', + 'huaweicloudsdkces==3.1.26', + 'huaweicloudsdkcfw==3.1.26', + 'huaweicloudsdkcgs==3.1.26', + 'huaweicloudsdkclassroom==3.1.26', + 'huaweicloudsdkclouddeploy==3.1.26', + 'huaweicloudsdkcloudide==3.1.26', + 'huaweicloudsdkcloudpipeline==3.1.26', + 'huaweicloudsdkcloudrtc==3.1.26', + 'huaweicloudsdkcloudtable==3.1.26', + 'huaweicloudsdkcloudtest==3.1.26', + 'huaweicloudsdkcodeartsartifact==3.1.26', + 'huaweicloudsdkcodeartsbuild==3.1.26', + 'huaweicloudsdkcodecheck==3.1.26', + 'huaweicloudsdkcodecraft==3.1.26', + 'huaweicloudsdkcodehub==3.1.26', + 'huaweicloudsdkcph==3.1.26', + 'huaweicloudsdkcpts==3.1.26', + 'huaweicloudsdkcse==3.1.26', + 'huaweicloudsdkcsms==3.1.26', + 'huaweicloudsdkcss==3.1.26', + 'huaweicloudsdkcts==3.1.26', + 'huaweicloudsdkdas==3.1.26', + 'huaweicloudsdkdbss==3.1.26', + 'huaweicloudsdkdc==3.1.26', + 'huaweicloudsdkdcs==3.1.26', + 'huaweicloudsdkddm==3.1.26', + 'huaweicloudsdkdds==3.1.26', + 'huaweicloudsdkdeh==3.1.26', + 'huaweicloudsdkdevsecurity==3.1.26', + 'huaweicloudsdkdevstar==3.1.26', + 'huaweicloudsdkdgc==3.1.26', + 'huaweicloudsdkdlf==3.1.26', + 'huaweicloudsdkdli==3.1.26', + 'huaweicloudsdkdms==3.1.26', + 'huaweicloudsdkdns==3.1.26', + 'huaweicloudsdkdris==3.1.26', + 'huaweicloudsdkdrs==3.1.26', + 'huaweicloudsdkdsc==3.1.26', + 'huaweicloudsdkdwr==3.1.26', + 'huaweicloudsdkdws==3.1.26', + 'huaweicloudsdkecs==3.1.26', + 'huaweicloudsdkeg==3.1.26', + 'huaweicloudsdkeihealth==3.1.26', + 'huaweicloudsdkeip==3.1.26', + 'huaweicloudsdkelb==3.1.26', + 'huaweicloudsdkeps==3.1.26', + 'huaweicloudsdker==3.1.26', + 'huaweicloudsdkevs==3.1.26', + 'huaweicloudsdkfrs==3.1.26', + 'huaweicloudsdkfunctiongraph==3.1.26', + 'huaweicloudsdkga==3.1.26', + 'huaweicloudsdkgaussdb==3.1.26', + 'huaweicloudsdkgaussdbfornosql==3.1.26', + 'huaweicloudsdkgaussdbforopengauss==3.1.26', + 'huaweicloudsdkges==3.1.26', + 'huaweicloudsdkgsl==3.1.26', + 'huaweicloudsdkhilens==3.1.26', + 'huaweicloudsdkhss==3.1.26', + 'huaweicloudsdkiam==3.1.26', + 'huaweicloudsdkiec==3.1.26', + 'huaweicloudsdkief==3.1.26', + 'huaweicloudsdkies==3.1.26', + 'huaweicloudsdkimage==3.1.26', + 'huaweicloudsdkimagesearch==3.1.26', + 'huaweicloudsdkims==3.1.26', + 'huaweicloudsdkiotanalytics==3.1.26', + 'huaweicloudsdkiotda==3.1.26', + 'huaweicloudsdkiotedge==3.1.26', + 'huaweicloudsdkivs==3.1.26', + 'huaweicloudsdkkafka==3.1.26', + 'huaweicloudsdkkms==3.1.26', + 'huaweicloudsdkkps==3.1.26', + 'huaweicloudsdklakeformation==3.1.26', + 'huaweicloudsdklive==3.1.26', + 'huaweicloudsdklts==3.1.26', + 'huaweicloudsdkmapds==3.1.26', + 'huaweicloudsdkmas==3.1.26', + 'huaweicloudsdkmeeting==3.1.26', + 'huaweicloudsdkmoderation==3.1.26', + 'huaweicloudsdkmpc==3.1.26', + 'huaweicloudsdkmrs==3.1.26', + 'huaweicloudsdknat==3.1.26', + 'huaweicloudsdknlp==3.1.26', + 'huaweicloudsdkocr==3.1.26', + 'huaweicloudsdkoms==3.1.26', + 'huaweicloudsdkosm==3.1.26', + 'huaweicloudsdkprojectman==3.1.26', + 'huaweicloudsdkrabbitmq==3.1.26', + 'huaweicloudsdkrds==3.1.26', + 'huaweicloudsdkres==3.1.26', + 'huaweicloudsdkrms==3.1.26', + 'huaweicloudsdkrocketmq==3.1.26', + 'huaweicloudsdkroma==3.1.26', + 'huaweicloudsdksa==3.1.26', + 'huaweicloudsdkscm==3.1.26', + 'huaweicloudsdksdrs==3.1.26', + 'huaweicloudsdksecmaster==3.1.26', + 'huaweicloudsdkservicestage==3.1.26', + 'huaweicloudsdksfsturbo==3.1.26', + 'huaweicloudsdksis==3.1.26', + 'huaweicloudsdksmn==3.1.26', + 'huaweicloudsdksms==3.1.26', + 'huaweicloudsdkswr==3.1.26', + 'huaweicloudsdktms==3.1.26', + 'huaweicloudsdkugo==3.1.26', + 'huaweicloudsdkvas==3.1.26', + 'huaweicloudsdkvcm==3.1.26', + 'huaweicloudsdkvod==3.1.26', + 'huaweicloudsdkvpc==3.1.26', + 'huaweicloudsdkvpcep==3.1.26', + 'huaweicloudsdkvss==3.1.26', + 'huaweicloudsdkwaf==3.1.26', + 'huaweicloudsdkworkspace==3.1.26', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py b/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py index 454975766..6b30fe095 100755 --- a/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py +++ b/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/region/antiddos_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class AntiDDoSRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ANTIDDOS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://antiddos.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://antiddos.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://antiddos.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://antiddos.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://antiddos.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://antiddos.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://antiddos.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://antiddos.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://antiddos.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://antiddos.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://antiddos.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://antiddos.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://antiddos.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://antiddos.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://antiddos.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://antiddos.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://antiddos.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://antiddos.cn-north-9.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://antiddos.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://antiddos.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://antiddos.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://antiddos.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://antiddos.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://antiddos.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://antiddos.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://antiddos.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://antiddos.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://antiddos.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://antiddos.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://antiddos.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://antiddos.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://antiddos.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://antiddos.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://antiddos.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://antiddos.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://antiddos.cn-north-9.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 9af420f56..cf2609439 100755 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 1ef99bb97..264f2dd17 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v1/region/aom_region.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v1/region/aom_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class AomRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("AOM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://aom.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://aom.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://aom.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://aom.cn-east-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://aom.cn-north-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://aom.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://aom.ap-southeast-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://aom.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://aom.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://aom.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://aom.cn-north-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://aom.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://aom.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://aom.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://aom.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://aom.cn-north-9.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://aom.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://aom.na-mexico-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://aom.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://aom.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://aom.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://aom.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://aom.cn-north-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://aom.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://aom.ap-southeast-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://aom.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://aom.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://aom.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://aom.cn-north-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://aom.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://aom.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://aom.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://aom.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://aom.cn-north-9.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://aom.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://aom.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py index 1ef99bb97..264f2dd17 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/region/aom_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class AomRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("AOM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://aom.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://aom.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://aom.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://aom.cn-east-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://aom.cn-north-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://aom.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://aom.ap-southeast-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://aom.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://aom.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://aom.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://aom.cn-north-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://aom.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://aom.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://aom.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://aom.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://aom.cn-north-9.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://aom.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://aom.na-mexico-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://aom.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://aom.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://aom.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://aom.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://aom.cn-north-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://aom.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://aom.ap-southeast-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://aom.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://aom.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://aom.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://aom.cn-north-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://aom.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://aom.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://aom.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://aom.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://aom.cn-north-9.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://aom.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://aom.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_async_client.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_async_client.py index daf4efff7..b861931d3 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_async_client.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_async_client.py @@ -535,7 +535,7 @@ class AomAsyncClient(Client): request_type=request.__class__.__name__) def show_app_by_name_async(self, request): - """查询应用详情 + """根据应用名称查询应用详情 获取应用详情。(注:接口目前开放的region为:上海一)。 @@ -659,7 +659,7 @@ class AomAsyncClient(Client): request_type=request.__class__.__name__) def show_component_by_name_async(self, request): - """查询组件详情 + """根据组件名称查询组件详情 查询组件详情。(注:接口目前开放的region为:上海一)。 @@ -783,7 +783,7 @@ class AomAsyncClient(Client): request_type=request.__class__.__name__) def show_env_by_name_async(self, request): - """查询环境详情 + """根据环境名称查询环境详情 查询环境详情。(注:接口目前开放的region为:上海一)。 diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_client.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_client.py index 024c367d5..ecc00b913 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_client.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/aom_client.py @@ -527,7 +527,7 @@ class AomClient(Client): request_type=request.__class__.__name__) def show_app_by_name(self, request): - """查询应用详情 + """根据应用名称查询应用详情 获取应用详情。(注:接口目前开放的region为:上海一)。 @@ -649,7 +649,7 @@ class AomClient(Client): request_type=request.__class__.__name__) def show_component_by_name(self, request): - """查询组件详情 + """根据组件名称查询组件详情 查询组件详情。(注:接口目前开放的region为:上海一)。 @@ -771,7 +771,7 @@ class AomClient(Client): request_type=request.__class__.__name__) def show_env_by_name(self, request): - """查询环境详情 + """根据环境名称查询环境详情 查询环境详情。(注:接口目前开放的region为:上海一)。 diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/biz_app_param.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/biz_app_param.py index cc6dc3b32..cad22b580 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/biz_app_param.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/biz_app_param.py @@ -42,11 +42,11 @@ class BizAppParam: :param description: 应用描述 :type description: str - :param display_name: 应用名称 + :param display_name: 应用名称.字符集长度2-64,仅支持字符集:中文字符、英文字母、数字、下划线、中划线、点 :type display_name: str :param eps_id: 应用关联的企业项目id。企业级用户必传 :type eps_id: str - :param name: 唯一标识 + :param name: 唯一标识.字符集长度2-64,仅支持字符集:英文字母、数字、下划线、中划线、点 :type name: str :param register_type: 前端默认是CONSOLE,不需要传参。rest接口无参数是API,有参数只能是:SERVICE_DISCOVERY :type register_type: str @@ -97,7 +97,7 @@ class BizAppParam: def display_name(self): """Gets the display_name of this BizAppParam. - 应用名称 + 应用名称.字符集长度2-64,仅支持字符集:中文字符、英文字母、数字、下划线、中划线、点 :return: The display_name of this BizAppParam. :rtype: str @@ -108,7 +108,7 @@ class BizAppParam: def display_name(self, display_name): """Sets the display_name of this BizAppParam. - 应用名称 + 应用名称.字符集长度2-64,仅支持字符集:中文字符、英文字母、数字、下划线、中划线、点 :param display_name: The display_name of this BizAppParam. :type display_name: str @@ -141,7 +141,7 @@ class BizAppParam: def name(self): """Gets the name of this BizAppParam. - 唯一标识 + 唯一标识.字符集长度2-64,仅支持字符集:英文字母、数字、下划线、中划线、点 :return: The name of this BizAppParam. :rtype: str @@ -152,7 +152,7 @@ class BizAppParam: def name(self, name): """Sets the name of this BizAppParam. - 唯一标识 + 唯一标识.字符集长度2-64,仅支持字符集:英文字母、数字、下划线、中划线、点 :param name: The name of this BizAppParam. :type name: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/component_param.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/component_param.py index 878767622..9a038a7ac 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/component_param.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/component_param.py @@ -40,7 +40,7 @@ class ComponentParam: :param description: 组件描述 :type description: str - :param model_id: 应用Id、子应用Id + :param model_id: 应用Id、子应用Id;id长度不能超过36位,由大小写字母、数字组成 :type model_id: str :param model_type: 应用、子应用,取值:APPLICATION、SUB_APPLICATION :type model_type: str @@ -88,7 +88,7 @@ class ComponentParam: def model_id(self): """Gets the model_id of this ComponentParam. - 应用Id、子应用Id + 应用Id、子应用Id;id长度不能超过36位,由大小写字母、数字组成 :return: The model_id of this ComponentParam. :rtype: str @@ -99,7 +99,7 @@ class ComponentParam: def model_id(self, model_id): """Sets the model_id of this ComponentParam. - 应用Id、子应用Id + 应用Id、子应用Id;id长度不能超过36位,由大小写字母、数字组成 :param model_id: The model_id of this ComponentParam. :type model_id: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/create_app_response.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/create_app_response.py index 03ca06cfb..71b9338ec 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/create_app_response.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/create_app_response.py @@ -20,51 +20,47 @@ class CreateAppResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'id': 'str' + 'body': 'str' } attribute_map = { - 'id': 'id' + 'body': 'body' } - def __init__(self, id=None): + def __init__(self, body=None): """CreateAppResponse The model defined in huaweicloud sdk - :param id: 对象id - :type id: str + :param body: + :type body: str """ super(CreateAppResponse, self).__init__() - self._id = None + self._body = None self.discriminator = None - if id is not None: - self.id = id + if body is not None: + self.body = body @property - def id(self): - """Gets the id of this CreateAppResponse. + def body(self): + """Gets the body of this CreateAppResponse. - 对象id - - :return: The id of this CreateAppResponse. + :return: The body of this CreateAppResponse. :rtype: str """ - return self._id + return self._body - @id.setter - def id(self, id): - """Sets the id of this CreateAppResponse. + @body.setter + def body(self, body): + """Sets the body of this CreateAppResponse. - 对象id - - :param id: The id of this CreateAppResponse. - :type id: str + :param body: The body of this CreateAppResponse. + :type body: str """ - self._id = id + self._body = body def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/env_param.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/env_param.py index 73c901667..31be8c56f 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/env_param.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/env_param.py @@ -44,7 +44,7 @@ class EnvParam: The model defined in huaweicloud sdk - :param component_id: 环境关联组件id + :param component_id: 环境关联组件id;id长度不能超过36位,由大小写字母、数字组成 :type component_id: str :param description: 描述 :type description: str @@ -86,7 +86,7 @@ class EnvParam: def component_id(self): """Gets the component_id of this EnvParam. - 环境关联组件id + 环境关联组件id;id长度不能超过36位,由大小写字母、数字组成 :return: The component_id of this EnvParam. :rtype: str @@ -97,7 +97,7 @@ class EnvParam: def component_id(self, component_id): """Sets the component_id of this EnvParam. - 环境关联组件id + 环境关联组件id;id长度不能超过36位,由大小写字母、数字组成 :param component_id: The component_id of this EnvParam. :type component_id: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/list_resource_under_node_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/list_resource_under_node_request.py index 82c2a79cf..ec537c47e 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/list_resource_under_node_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/list_resource_under_node_request.py @@ -36,9 +36,9 @@ class ListResourceUnderNodeRequest: The model defined in huaweicloud sdk - :param rf_resource_type: 资源种类 + :param rf_resource_type: 云服务资源;同rms服务的provider :type rf_resource_type: str - :param type: 资源种类下的类型区分 + :param type: 云服务资源类型;同rms服务的type :type type: str :param body: Body of the ListResourceUnderNodeRequest :type body: :class:`huaweicloudsdkaom.v3.PageResourceListParam` @@ -60,7 +60,7 @@ class ListResourceUnderNodeRequest: def rf_resource_type(self): """Gets the rf_resource_type of this ListResourceUnderNodeRequest. - 资源种类 + 云服务资源;同rms服务的provider :return: The rf_resource_type of this ListResourceUnderNodeRequest. :rtype: str @@ -71,7 +71,7 @@ class ListResourceUnderNodeRequest: def rf_resource_type(self, rf_resource_type): """Sets the rf_resource_type of this ListResourceUnderNodeRequest. - 资源种类 + 云服务资源;同rms服务的provider :param rf_resource_type: The rf_resource_type of this ListResourceUnderNodeRequest. :type rf_resource_type: str @@ -82,7 +82,7 @@ class ListResourceUnderNodeRequest: def type(self): """Gets the type of this ListResourceUnderNodeRequest. - 资源种类下的类型区分 + 云服务资源类型;同rms服务的type :return: The type of this ListResourceUnderNodeRequest. :rtype: str @@ -93,7 +93,7 @@ class ListResourceUnderNodeRequest: def type(self, type): """Sets the type of this ListResourceUnderNodeRequest. - 资源种类下的类型区分 + 云服务资源类型;同rms服务的type :param type: The type of this ListResourceUnderNodeRequest. :type type: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/page_resource_list_param.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/page_resource_list_param.py index bda3d3da3..e76e170cf 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/page_resource_list_param.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/page_resource_list_param.py @@ -26,6 +26,7 @@ class PageResourceListParam: 'ci_relationships': 'bool', 'ci_type': 'str', 'ci_region': 'str', + 'ci_ids': 'list[str]', 'ci_id': 'str' } @@ -36,15 +37,16 @@ class PageResourceListParam: 'ci_relationships': 'ci_relationships', 'ci_type': 'ci_type', 'ci_region': 'ci_region', + 'ci_ids': 'ci_ids', 'ci_id': 'ci_id' } - def __init__(self, maker=None, limit=None, keywords=None, ci_relationships=None, ci_type=None, ci_region=None, ci_id=None): + def __init__(self, maker=None, limit=None, keywords=None, ci_relationships=None, ci_type=None, ci_region=None, ci_ids=None, ci_id=None): """PageResourceListParam The model defined in huaweicloud sdk - :param maker: 页面的分页标志位 + :param maker: 页面的分页标志位;为分页的最后一条记录的id :type maker: str :param limit: 查询返回记录的数量限制 :type limit: int @@ -56,7 +58,9 @@ class PageResourceListParam: :type ci_type: str :param ci_region: 环境的region信息,若没有值,代表全部 :type ci_region: str - :param ci_id: 节点id + :param ci_ids: 节点id列表;如果ci_ids和ci_id同时有,则优先ci_ids,但是不能同时为空 + :type ci_ids: list[str] + :param ci_id: 节点id列表;如果ci_ids和ci_id同时有,则优先ci_ids,但是不能同时为空。但是不支持应用批量查询 :type ci_id: str """ @@ -68,6 +72,7 @@ class PageResourceListParam: self._ci_relationships = None self._ci_type = None self._ci_region = None + self._ci_ids = None self._ci_id = None self.discriminator = None @@ -82,13 +87,16 @@ class PageResourceListParam: self.ci_type = ci_type if ci_region is not None: self.ci_region = ci_region - self.ci_id = ci_id + if ci_ids is not None: + self.ci_ids = ci_ids + if ci_id is not None: + self.ci_id = ci_id @property def maker(self): """Gets the maker of this PageResourceListParam. - 页面的分页标志位 + 页面的分页标志位;为分页的最后一条记录的id :return: The maker of this PageResourceListParam. :rtype: str @@ -99,7 +107,7 @@ class PageResourceListParam: def maker(self, maker): """Sets the maker of this PageResourceListParam. - 页面的分页标志位 + 页面的分页标志位;为分页的最后一条记录的id :param maker: The maker of this PageResourceListParam. :type maker: str @@ -216,11 +224,33 @@ class PageResourceListParam: """ self._ci_region = ci_region + @property + def ci_ids(self): + """Gets the ci_ids of this PageResourceListParam. + + 节点id列表;如果ci_ids和ci_id同时有,则优先ci_ids,但是不能同时为空 + + :return: The ci_ids of this PageResourceListParam. + :rtype: list[str] + """ + return self._ci_ids + + @ci_ids.setter + def ci_ids(self, ci_ids): + """Sets the ci_ids of this PageResourceListParam. + + 节点id列表;如果ci_ids和ci_id同时有,则优先ci_ids,但是不能同时为空 + + :param ci_ids: The ci_ids of this PageResourceListParam. + :type ci_ids: list[str] + """ + self._ci_ids = ci_ids + @property def ci_id(self): """Gets the ci_id of this PageResourceListParam. - 节点id + 节点id列表;如果ci_ids和ci_id同时有,则优先ci_ids,但是不能同时为空。但是不支持应用批量查询 :return: The ci_id of this PageResourceListParam. :rtype: str @@ -231,7 +261,7 @@ class PageResourceListParam: def ci_id(self, ci_id): """Sets the ci_id of this PageResourceListParam. - 节点id + 节点id列表;如果ci_ids和ci_id同时有,则优先ci_ids,但是不能同时为空。但是不支持应用批量查询 :param ci_id: The ci_id of this PageResourceListParam. :type ci_id: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/show_app_by_name_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/show_app_by_name_request.py index 5bce4c6d7..52c6e8fe7 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/show_app_by_name_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/show_app_by_name_request.py @@ -34,9 +34,9 @@ class ShowAppByNameRequest: The model defined in huaweicloud sdk - :param name: 应用唯一标识 + :param name: 应用唯一标识;字符集长度2-64,仅支持字符集:英文字母、数字、下划线、中划线、点;应用唯一标识与显示名称至少填写其一 :type name: str - :param display_name: 实体的显示名称。 + :param display_name: 实体的显示名称;字符集长度2-64,仅支持字符集:中文字符、英文字母、数字、下划线、中划线、点;应用唯一标识与显示名称至少填写其一 :type display_name: str """ @@ -55,7 +55,7 @@ class ShowAppByNameRequest: def name(self): """Gets the name of this ShowAppByNameRequest. - 应用唯一标识 + 应用唯一标识;字符集长度2-64,仅支持字符集:英文字母、数字、下划线、中划线、点;应用唯一标识与显示名称至少填写其一 :return: The name of this ShowAppByNameRequest. :rtype: str @@ -66,7 +66,7 @@ class ShowAppByNameRequest: def name(self, name): """Sets the name of this ShowAppByNameRequest. - 应用唯一标识 + 应用唯一标识;字符集长度2-64,仅支持字符集:英文字母、数字、下划线、中划线、点;应用唯一标识与显示名称至少填写其一 :param name: The name of this ShowAppByNameRequest. :type name: str @@ -77,7 +77,7 @@ class ShowAppByNameRequest: def display_name(self): """Gets the display_name of this ShowAppByNameRequest. - 实体的显示名称。 + 实体的显示名称;字符集长度2-64,仅支持字符集:中文字符、英文字母、数字、下划线、中划线、点;应用唯一标识与显示名称至少填写其一 :return: The display_name of this ShowAppByNameRequest. :rtype: str @@ -88,7 +88,7 @@ class ShowAppByNameRequest: def display_name(self, display_name): """Sets the display_name of this ShowAppByNameRequest. - 实体的显示名称。 + 实体的显示名称;字符集长度2-64,仅支持字符集:中文字符、英文字母、数字、下划线、中划线、点;应用唯一标识与显示名称至少填写其一 :param display_name: The display_name of this ShowAppByNameRequest. :type display_name: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/waterfall_page_list_param.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/waterfall_page_list_param.py index 913f37d91..1c7e6098b 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/waterfall_page_list_param.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/model/waterfall_page_list_param.py @@ -34,7 +34,7 @@ class WaterfallPageListParam: The model defined in huaweicloud sdk - :param maker: 页面的分页标志位 + :param maker: 页面的分页标志位;为分页的最后一条记录的id :type maker: str :param limit: 查询返回记录的数量限制 :type limit: int @@ -55,7 +55,7 @@ class WaterfallPageListParam: def maker(self): """Gets the maker of this WaterfallPageListParam. - 页面的分页标志位 + 页面的分页标志位;为分页的最后一条记录的id :return: The maker of this WaterfallPageListParam. :rtype: str @@ -66,7 +66,7 @@ class WaterfallPageListParam: def maker(self, maker): """Sets the maker of this WaterfallPageListParam. - 页面的分页标志位 + 页面的分页标志位;为分页的最后一条记录的id :param maker: The maker of this WaterfallPageListParam. :type maker: str diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py index 1ef99bb97..264f2dd17 100755 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v3/region/aom_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class AomRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("AOM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://aom.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://aom.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://aom.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://aom.cn-east-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://aom.cn-north-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://aom.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://aom.ap-southeast-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://aom.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://aom.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://aom.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://aom.cn-north-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://aom.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://aom.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://aom.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://aom.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://aom.cn-north-9.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://aom.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://aom.na-mexico-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://aom.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://aom.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://aom.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://aom.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://aom.cn-north-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://aom.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://aom.ap-southeast-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://aom.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://aom.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://aom.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://aom.cn-north-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://aom.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://aom.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://aom.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://aom.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://aom.cn-north-9.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://aom.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://aom.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 4558c4c52..e05d8ab66 100755 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 4f143c436..c42e54b07 100755 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/region/aos_region.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/region/aos_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class AosRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("AOS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://aos.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://aos.cn-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://aos.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://aos.cn-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index f1cb81358..1c8135f0c 100755 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py index d742a90d2..3a865d4e4 100755 --- a/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py +++ b/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/region/apig_region.py @@ -9,38 +9,38 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ApigRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("APIG") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://apig.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://apig.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://apig.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://apig.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://apig.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://apig.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://apig.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://apig.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://apig.ru-northwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://apig.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://apig.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://apig.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://apig.na-mexico-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://apig.af-south-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://apig.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://apig.cn-southwest-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://apig.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://apig.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://apig.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://apig.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://apig.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://apig.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://apig.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://apig.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://apig.ru-northwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://apig.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://apig.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://apig.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://apig.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://apig.af-south-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://apig.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://apig.cn-southwest-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index c834084d5..6dbc2b621 100755 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 44c985b53..95be2c45e 100755 --- a/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/region/apm_region.py +++ b/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/region/apm_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ApmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("APM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://apm2.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://apm2.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index f17bb156b..1caf6a268 100755 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 d96465e4d..495bacc9f 100755 --- a/huaweicloud-sdk-as/huaweicloudsdkas/v1/region/as_region.py +++ b/huaweicloud-sdk-as/huaweicloudsdkas/v1/region/as_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class AsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("AS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://as.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://as.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://as.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://as.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://as.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://as.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://as.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://as.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://as.ap-southeast-1.myhwclouds.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://as.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://as.cn-north-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://as.ru-northwest-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://as.cn-north-9.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://as.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://as.la-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://as.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://as.sa-brazil-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://as.cn-south-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://as.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://as.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://as.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://as.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://as.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://as.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://as.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://as.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://as.ap-southeast-1.myhwclouds.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://as.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://as.cn-north-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://as.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://as.cn-north-9.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://as.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://as.la-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://as.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://as.sa-brazil-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://as.cn-south-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 83ddebee4..00c2c0e5f 100755 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 d56c694c8..35d439bc1 100755 --- a/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/region/bcs_region.py +++ b/huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/region/bcs_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class BcsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("BCS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://bcs.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://bcs.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://bcs.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://bcs.cn-east-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://bcs.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://bcs.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://bcs.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://bcs.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://bcs.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://bcs.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://bcs.cn-east-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://bcs.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://bcs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://bcs.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index f161cb9d5..9671f66d4 100755 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 07eb70a34..0623ecc1c 100755 --- a/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/region/bms_region.py +++ b/huaweicloud-sdk-bms/huaweicloudsdkbms/v1/region/bms_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class BmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("BMS") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://bms.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://bms.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://bms.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://bms.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://bms.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://bms.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://bms.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://bms.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://bms.ap-southeast-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://bms.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://bms.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://bms.sa-brazil-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://bms.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://bms.cn-southwest-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://bms.af-south-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://bms.la-north-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://bms.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://bms.na-mexico-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://bms.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://bms.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://bms.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://bms.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://bms.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://bms.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://bms.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://bms.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://bms.ap-southeast-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://bms.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://bms.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://bms.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://bms.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://bms.cn-southwest-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://bms.af-south-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://bms.la-north-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://bms.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://bms.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-2": CN_NORTH_2, diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index e52c58a68..a9fdefc45 100755 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 401574537..1b9671125 100755 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/region/bss_region.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/region/bss_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class BssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("BSS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://bss.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://bss.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index fde7e8b46..3ffed0c90 100755 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 35a280050..d1c1faad1 100755 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/region/bssintl_region.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/region/bssintl_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class BssintlRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("BSSINTL") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://bss-intl.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://bss-intl.myhuaweicloud.com") static_fields = { "ap-southeast-1": AP_SOUTHEAST_1, diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index e543f0edd..0a33b4fd1 100755 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py index bde00b19e..574b1db8c 100755 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/region/cae_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CaeRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CAE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cae.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cae.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cae.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cae.cn-east-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 2870ae157..c277b9060 100755 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 6f60bdbd9..bd28ab21a 100755 --- a/huaweicloud-sdk-campusgo/huaweicloudsdkcampusgo/v2/region/campusgo_region.py +++ b/huaweicloud-sdk-campusgo/huaweicloudsdkcampusgo/v2/region/campusgo_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CampusGoRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CAMPUSGO") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://iva.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iva.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://iva.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://iva.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://iva.cn-south-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://iva.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iva.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://iva.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://iva.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://iva.cn-south-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index a4e9992ce..76bb9ea21 100755 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 54636def0..bbb20bc98 100755 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py @@ -9,18 +9,18 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CbhRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CBH") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cbh.cn-north-4.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://cbh.cn-north-9.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cbh.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cbh.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cbh.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cbh.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cbh.cn-north-4.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://cbh.cn-north-9.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cbh.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cbh.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cbh.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cbh.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 5599a51ce..faebd20a3 100755 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 186dc4abd..254865279 100755 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/region/cbr_region.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/region/cbr_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CbrRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CBR") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cbr.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cbr.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cbr.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cbr.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cbr.cn-east-3.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cbr.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cbr.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cbr.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cbr.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://cbr.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cbr.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cbr.la-north-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://cbr.cn-south-4.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://cbr.na-mexico-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cbr.la-south-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cbr.cn-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://cbr.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://cbr.cn-north-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cbr.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cbr.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cbr.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cbr.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cbr.cn-east-3.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cbr.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cbr.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cbr.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cbr.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://cbr.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cbr.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cbr.la-north-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://cbr.cn-south-4.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://cbr.na-mexico-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cbr.la-south-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cbr.cn-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://cbr.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://cbr.cn-north-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index f6c54e03a..2d951e255 100755 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 98a249815..e3de60808 100755 --- a/huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/region/cbs_region.py +++ b/huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/region/cbs_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CbsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CBS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cbs-ext.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cbs-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cbs-ext.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cbs-ext.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index cfe76f6bb..dc3892247 100755 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py b/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py index 0944293d0..774f17978 100755 --- a/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py +++ b/huaweicloud-sdk-cc/huaweicloudsdkcc/v3/region/cc_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CcRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CC") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cc.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ccaas.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cc.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ccaas.cn-north-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index ea0c2f8b0..f76399736 100755 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py index 4ee689c49..022285125 100755 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py @@ -9,44 +9,44 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CceRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CCE") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cce.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://cce.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cce.cn-north-4.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://cce.cn-north-9.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cce.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cce.cn-south-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://cce.cn-south-4.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cce.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cce.cn-east-3.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cce.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cce.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cce.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cce.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://cce.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cce.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cce.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cce.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://cce.na-mexico-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://cce.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cce.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://cce.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cce.cn-north-4.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://cce.cn-north-9.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cce.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cce.cn-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://cce.cn-south-4.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cce.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cce.cn-east-3.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cce.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cce.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cce.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cce.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://cce.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cce.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cce.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cce.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://cce.na-mexico-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://cce.ru-northwest-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index bbb10f898..644111246 100755 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a8d214624..86dca00a3 100755 --- a/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py +++ b/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CcmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CCM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ccm.cn-north-4.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ccm.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ccm.cn-north-4.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ccm.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 8a8c6f4a1..a3eeeb0fd 100755 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py index 79ca10b1b..d1a138ab5 100755 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/region/cdm_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CdmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CDM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cdm.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cdm.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cdm.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cdm.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cdm.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cdm.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cdm.ap-southeast-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cdm.cn-southwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cdm.sa-brazil-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://cdm.af-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cdm.cn-south-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cdm.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://cdm.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://cdm.cn-north-2.myhuaweicloud.cn") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://cdm.na-mexico-1.myhuaweicloud.cn") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cdm.la-north-2.myhuaweicloud.cn") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cdm.ap-southeast-3.myhuaweicloud.cn") + CN_NORTH_4 = Region("cn-north-4", + "https://cdm.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cdm.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cdm.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cdm.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cdm.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cdm.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cdm.ap-southeast-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cdm.cn-southwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cdm.sa-brazil-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://cdm.af-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cdm.cn-south-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cdm.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://cdm.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://cdm.cn-north-2.myhuaweicloud.cn") + NA_MEXICO_1 = Region("na-mexico-1", + "https://cdm.na-mexico-1.myhuaweicloud.cn") + LA_NORTH_2 = Region("la-north-2", + "https://cdm.la-north-2.myhuaweicloud.cn") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cdm.ap-southeast-3.myhuaweicloud.cn") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index cbbdc5b6f..6bcb510cb 100755 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_location_stats_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_location_stats_request.py index edccce1a4..6474511fb 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_location_stats_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_location_stats_request.py @@ -54,9 +54,9 @@ class ShowDomainLocationStatsRequest: :param action: - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。 :type action: str - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 interval: - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。 :type interval: int @@ -135,7 +135,7 @@ class ShowDomainLocationStatsRequest: def start_time(self): """Gets the start_time of this ShowDomainLocationStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :rtype: int @@ -146,7 +146,7 @@ class ShowDomainLocationStatsRequest: def start_time(self, start_time): """Sets the start_time of this ShowDomainLocationStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :type start_time: int @@ -157,7 +157,7 @@ class ShowDomainLocationStatsRequest: def end_time(self): """Gets the end_time of this ShowDomainLocationStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :rtype: int @@ -168,7 +168,7 @@ class ShowDomainLocationStatsRequest: def end_time(self, end_time): """Sets the end_time of this ShowDomainLocationStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py index 012f21c0d..aba76a5ee 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py @@ -50,9 +50,9 @@ class ShowDomainStatsRequest: :param action: - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。 :type action: str - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 @@ -121,7 +121,7 @@ class ShowDomainStatsRequest: def start_time(self): """Gets the start_time of this ShowDomainStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :rtype: int @@ -132,7 +132,7 @@ class ShowDomainStatsRequest: def start_time(self, start_time): """Sets the start_time of this ShowDomainStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :type start_time: int @@ -143,7 +143,7 @@ class ShowDomainStatsRequest: def end_time(self): """Gets the end_time of this ShowDomainStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :rtype: int @@ -154,7 +154,7 @@ class ShowDomainStatsRequest: def end_time(self, end_time): """Sets the end_time of this ShowDomainStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py index c056c7858..29deca05f 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/region/cdn_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CdnRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CDN") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cdn.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cdn.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cdn.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cdn.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_region_carrier_excel_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_region_carrier_excel_request.py index 9e695b076..e9eec4b94 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_region_carrier_excel_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_region_carrier_excel_request.py @@ -50,9 +50,9 @@ class DownloadRegionCarrierExcelRequest: The model defined in huaweicloud sdk - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 @@ -107,7 +107,7 @@ class DownloadRegionCarrierExcelRequest: def start_time(self): """Gets the start_time of this DownloadRegionCarrierExcelRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadRegionCarrierExcelRequest. :rtype: int @@ -118,7 +118,7 @@ class DownloadRegionCarrierExcelRequest: def start_time(self, start_time): """Sets the start_time of this DownloadRegionCarrierExcelRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadRegionCarrierExcelRequest. :type start_time: int @@ -129,7 +129,7 @@ class DownloadRegionCarrierExcelRequest: def end_time(self): """Gets the end_time of this DownloadRegionCarrierExcelRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadRegionCarrierExcelRequest. :rtype: int @@ -140,7 +140,7 @@ class DownloadRegionCarrierExcelRequest: def end_time(self, end_time): """Sets the end_time of this DownloadRegionCarrierExcelRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadRegionCarrierExcelRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_statistics_excel_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_statistics_excel_request.py index e299db099..3ff376a36 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_statistics_excel_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/download_statistics_excel_request.py @@ -46,9 +46,9 @@ class DownloadStatisticsExcelRequest: The model defined in huaweicloud sdk - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 @@ -93,7 +93,7 @@ class DownloadStatisticsExcelRequest: def start_time(self): """Gets the start_time of this DownloadStatisticsExcelRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadStatisticsExcelRequest. :rtype: int @@ -104,7 +104,7 @@ class DownloadStatisticsExcelRequest: def start_time(self, start_time): """Sets the start_time of this DownloadStatisticsExcelRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadStatisticsExcelRequest. :type start_time: int @@ -115,7 +115,7 @@ class DownloadStatisticsExcelRequest: def end_time(self): """Gets the end_time of this DownloadStatisticsExcelRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadStatisticsExcelRequest. :rtype: int @@ -126,7 +126,7 @@ class DownloadStatisticsExcelRequest: def end_time(self, end_time): """Sets the end_time of this DownloadStatisticsExcelRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 DownloadStatisticsExcelRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_bandwidth_calc_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_bandwidth_calc_request.py index 6f4ec6b0d..f39856700 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_bandwidth_calc_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_bandwidth_calc_request.py @@ -42,9 +42,9 @@ class ShowBandwidthCalcRequest: The model defined in huaweicloud sdk - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 @@ -79,7 +79,7 @@ class ShowBandwidthCalcRequest: def start_time(self): """Gets the start_time of this ShowBandwidthCalcRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowBandwidthCalcRequest. :rtype: int @@ -90,7 +90,7 @@ class ShowBandwidthCalcRequest: def start_time(self, start_time): """Sets the start_time of this ShowBandwidthCalcRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowBandwidthCalcRequest. :type start_time: int @@ -101,7 +101,7 @@ class ShowBandwidthCalcRequest: def end_time(self): """Gets the end_time of this ShowBandwidthCalcRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowBandwidthCalcRequest. :rtype: int @@ -112,7 +112,7 @@ class ShowBandwidthCalcRequest: def end_time(self, end_time): """Sets the end_time of this ShowBandwidthCalcRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowBandwidthCalcRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_location_stats_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_location_stats_request.py index c121bd161..fb3fc1273 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_location_stats_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_location_stats_request.py @@ -54,9 +54,9 @@ class ShowDomainLocationStatsRequest: :param action: - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。 :type action: str - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 @@ -135,7 +135,7 @@ class ShowDomainLocationStatsRequest: def start_time(self): """Gets the start_time of this ShowDomainLocationStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :rtype: int @@ -146,7 +146,7 @@ class ShowDomainLocationStatsRequest: def start_time(self, start_time): """Sets the start_time of this ShowDomainLocationStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :type start_time: int @@ -157,7 +157,7 @@ class ShowDomainLocationStatsRequest: def end_time(self): """Gets the end_time of this ShowDomainLocationStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :rtype: int @@ -168,7 +168,7 @@ class ShowDomainLocationStatsRequest: def end_time(self, end_time): """Sets the end_time of this ShowDomainLocationStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainLocationStatsRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_stats_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_stats_request.py index 4b37a11e2..2e83b9fcb 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_stats_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/model/show_domain_stats_request.py @@ -50,9 +50,9 @@ class ShowDomainStatsRequest: :param action: - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。 :type action: str - :param start_time: - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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: - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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: - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 @@ -121,7 +121,7 @@ class ShowDomainStatsRequest: def start_time(self): """Gets the start_time of this ShowDomainStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :rtype: int @@ -132,7 +132,7 @@ class ShowDomainStatsRequest: def start_time(self, start_time): """Sets the start_time of this ShowDomainStatsRequest. - - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :type start_time: int @@ -143,7 +143,7 @@ class ShowDomainStatsRequest: def end_time(self): """Gets the end_time of this ShowDomainStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :rtype: int @@ -154,7 +154,7 @@ class ShowDomainStatsRequest: def end_time(self, end_time): """Sets the end_time of this ShowDomainStatsRequest. - - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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) + - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - 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 ShowDomainStatsRequest. :type end_time: int diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py index c056c7858..29deca05f 100755 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v2/region/cdn_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CdnRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CDN") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cdn.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cdn.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cdn.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cdn.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index b711e734c..1f1bc8681 100755 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 3dd330d05..92cf5ce57 100755 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v1/region/ces_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CesRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CES") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://ces.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ces.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ces.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://ces.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ces.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ces.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://ces.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://ces.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ces.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ces.ap-southeast-3.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://ces.na-mexico-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://ces.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://ces.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://ces.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://ces.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://ces.cn-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://ces.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://ces.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ces.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ces.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://ces.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ces.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ces.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://ces.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://ces.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ces.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ces.ap-southeast-3.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://ces.na-mexico-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://ces.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://ces.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://ces.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://ces.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://ces.cn-north-2.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://ces.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py index 3dd330d05..92cf5ce57 100755 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/region/ces_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CesRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CES") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://ces.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ces.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ces.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://ces.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ces.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ces.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://ces.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://ces.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ces.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ces.ap-southeast-3.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://ces.na-mexico-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://ces.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://ces.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://ces.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://ces.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://ces.cn-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://ces.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://ces.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ces.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ces.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://ces.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ces.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ces.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://ces.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://ces.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ces.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ces.ap-southeast-3.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://ces.na-mexico-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://ces.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://ces.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://ces.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://ces.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://ces.cn-north-2.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://ces.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 90cb735e9..80bfbe068 100755 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 cfb40f2ae..b308d1c27 100755 --- a/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/region/cfw_region.py +++ b/huaweicloud-sdk-cfw/huaweicloudsdkcfw/v1/region/cfw_region.py @@ -9,28 +9,28 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CfwRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CFW") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://cfw.cn-south-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cfw.cn-southwest-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cfw.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cfw.cn-east-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cfw.cn-north-4.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cfw.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cfw.ap-southeast-3.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cfw.la-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cfw.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://cfw.ap-southeast-4.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cfw.la-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://cfw.cn-south-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cfw.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cfw.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cfw.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cfw.cn-north-4.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cfw.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cfw.ap-southeast-3.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cfw.la-north-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cfw.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://cfw.ap-southeast-4.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cfw.la-south-2.myhuaweicloud.com") static_fields = { "cn-south-4": CN_SOUTH_4, diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 1355b4bb4..1646dbabc 100755 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 08767066b..9d455e72e 100755 --- a/huaweicloud-sdk-cgs/huaweicloudsdkcgs/v5/region/cgs_region.py +++ b/huaweicloud-sdk-cgs/huaweicloudsdkcgs/v5/region/cgs_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CgsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CGS") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://cgs.cn-south-4.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://cgs.cn-south-4.myhuaweicloud.com") static_fields = { "cn-south-4": CN_SOUTH_4, diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 94dec7068..a84c9d7c0 100755 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 5970354c1..ad2626d31 100755 --- a/huaweicloud-sdk-classroom/huaweicloudsdkclassroom/v3/region/classroom_region.py +++ b/huaweicloud-sdk-classroom/huaweicloudsdkclassroom/v3/region/classroom_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ClassroomRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLASSROOM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://classroom-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://classroom-ext.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index fc9d6d958..60545a362 100755 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_async_client.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_async_client.py index 24d110605..e879962e8 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_async_client.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_async_client.py @@ -43,9 +43,9 @@ class CloudDeployAsyncClient(Client): return ClientBuilder(clazz) def list_task_success_rate_async(self, request): - """获取指定任务的部署任务执行成功率 + """获取指定应用的应用部署成功率 - 获取指定任务的部署任务执行成功率 + 获取指定应用的应用部署成功率 Please refer to HUAWEI cloud API Explorer for details. @@ -106,9 +106,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def show_project_success_rate_async(self, request): - """获取指定项目的部署任务执行成功率 + """获取指定项目的应用部署成功率 - 获取指定项目的部署任务执行成功率 + 获取指定项目的应用部署成功率 Please refer to HUAWEI cloud API Explorer for details. @@ -171,9 +171,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def create_deploy_task_by_template_async(self, request): - """通过模板新建部署任务 + """通过模板新建应用 - 通过模板新建部署任务cloudpipeline流水线调用。 + 通过模板新建应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -232,9 +232,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def delete_deploy_task_async(self, request): - """删除部署任务 + """删除应用 - 根据部署任务id删除部署任务。 + 根据部署任务id删除应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -293,9 +293,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def list_deploy_task_history_by_date_async(self, request): - """根据开始时间和结束时间查询项目下指定任务的历史执行记录列表 + """根据开始时间和结束时间查询项目下指定应用的历史部署记录列表 - 根据开始时间和结束时间查询项目下指定任务的历史执行记录列表 + 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表 Please refer to HUAWEI cloud API Explorer for details. @@ -364,9 +364,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def list_deploy_tasks_async(self, request): - """获取部署任务列表 + """获取应用列表 - 查询项目下部署任务列表 + 查询项目下应用列表 Please refer to HUAWEI cloud API Explorer for details. @@ -429,9 +429,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def show_deploy_task_detail_async(self, request): - """获取部署任务详情 + """获取应用详情 - 根据部署任务id获取部署任务详情。 + 根据部署任务id获取应用详情。 Please refer to HUAWEI cloud API Explorer for details. @@ -490,9 +490,9 @@ class CloudDeployAsyncClient(Client): request_type=request.__class__.__name__) def start_deploy_task_async(self, request): - """启动部署任务 + """部署应用 - 根据部署任务id启动部署任务。 + 根据部署任务id部署应用。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_client.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_client.py index ad46de37b..2acc1e67c 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_client.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/clouddeploy_client.py @@ -43,9 +43,9 @@ class CloudDeployClient(Client): return ClientBuilder(clazz) def list_task_success_rate(self, request): - """获取指定任务的部署任务执行成功率 + """获取指定应用的应用部署成功率 - 获取指定任务的部署任务执行成功率 + 获取指定应用的应用部署成功率 Please refer to HUAWEI cloud API Explorer for details. @@ -105,9 +105,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def show_project_success_rate(self, request): - """获取指定项目的部署任务执行成功率 + """获取指定项目的应用部署成功率 - 获取指定项目的部署任务执行成功率 + 获取指定项目的应用部署成功率 Please refer to HUAWEI cloud API Explorer for details. @@ -169,9 +169,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def create_deploy_task_by_template(self, request): - """通过模板新建部署任务 + """通过模板新建应用 - 通过模板新建部署任务cloudpipeline流水线调用。 + 通过模板新建应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -229,9 +229,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def delete_deploy_task(self, request): - """删除部署任务 + """删除应用 - 根据部署任务id删除部署任务。 + 根据部署任务id删除应用。 Please refer to HUAWEI cloud API Explorer for details. @@ -289,9 +289,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def list_deploy_task_history_by_date(self, request): - """根据开始时间和结束时间查询项目下指定任务的历史执行记录列表 + """根据开始时间和结束时间查询项目下指定应用的历史部署记录列表 - 根据开始时间和结束时间查询项目下指定任务的历史执行记录列表 + 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表 Please refer to HUAWEI cloud API Explorer for details. @@ -359,9 +359,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def list_deploy_tasks(self, request): - """获取部署任务列表 + """获取应用列表 - 查询项目下部署任务列表 + 查询项目下应用列表 Please refer to HUAWEI cloud API Explorer for details. @@ -423,9 +423,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def show_deploy_task_detail(self, request): - """获取部署任务详情 + """获取应用详情 - 根据部署任务id获取部署任务详情。 + 根据部署任务id获取应用详情。 Please refer to HUAWEI cloud API Explorer for details. @@ -483,9 +483,9 @@ class CloudDeployClient(Client): request_type=request.__class__.__name__) def start_deploy_task(self, request): - """启动部署任务 + """部署应用 - 根据部署任务id启动部署任务。 + 根据部署任务id部署应用。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/app_component_dao.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/app_component_dao.py index 3548f040c..fc024811d 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/app_component_dao.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/app_component_dao.py @@ -48,19 +48,19 @@ class AppComponentDao: :param task_id: 部署任务id :type task_id: str - :param app_id: 应用id + :param app_id: AOM应用id :type app_id: str - :param app_name: 应用名称 + :param app_name: AOM应用名称 :type app_name: str - :param comp_id: 组件id + :param comp_id: AOM应用组件id :type comp_id: str - :param comp_name: 组件名称 + :param comp_name: AOM应用组件名称 :type comp_name: str :param domain_id: 租户ID :type domain_id: str :param region: 局点信息 :type region: str - :param state: 组件是否生效,0表示初始化,1表示执行成功,已生效 + :param state: AOM应用组件是否生效,0表示初始化,1表示执行成功,已生效 :type state: str """ @@ -119,7 +119,7 @@ class AppComponentDao: def app_id(self): """Gets the app_id of this AppComponentDao. - 应用id + AOM应用id :return: The app_id of this AppComponentDao. :rtype: str @@ -130,7 +130,7 @@ class AppComponentDao: def app_id(self, app_id): """Sets the app_id of this AppComponentDao. - 应用id + AOM应用id :param app_id: The app_id of this AppComponentDao. :type app_id: str @@ -141,7 +141,7 @@ class AppComponentDao: def app_name(self): """Gets the app_name of this AppComponentDao. - 应用名称 + AOM应用名称 :return: The app_name of this AppComponentDao. :rtype: str @@ -152,7 +152,7 @@ class AppComponentDao: def app_name(self, app_name): """Sets the app_name of this AppComponentDao. - 应用名称 + AOM应用名称 :param app_name: The app_name of this AppComponentDao. :type app_name: str @@ -163,7 +163,7 @@ class AppComponentDao: def comp_id(self): """Gets the comp_id of this AppComponentDao. - 组件id + AOM应用组件id :return: The comp_id of this AppComponentDao. :rtype: str @@ -174,7 +174,7 @@ class AppComponentDao: def comp_id(self, comp_id): """Sets the comp_id of this AppComponentDao. - 组件id + AOM应用组件id :param comp_id: The comp_id of this AppComponentDao. :type comp_id: str @@ -185,7 +185,7 @@ class AppComponentDao: def comp_name(self): """Gets the comp_name of this AppComponentDao. - 组件名称 + AOM应用组件名称 :return: The comp_name of this AppComponentDao. :rtype: str @@ -196,7 +196,7 @@ class AppComponentDao: def comp_name(self, comp_name): """Sets the comp_name of this AppComponentDao. - 组件名称 + AOM应用组件名称 :param comp_name: The comp_name of this AppComponentDao. :type comp_name: str @@ -251,7 +251,7 @@ class AppComponentDao: def state(self): """Gets the state of this AppComponentDao. - 组件是否生效,0表示初始化,1表示执行成功,已生效 + AOM应用组件是否生效,0表示初始化,1表示执行成功,已生效 :return: The state of this AppComponentDao. :rtype: str @@ -262,7 +262,7 @@ class AppComponentDao: def state(self, state): """Sets the state of this AppComponentDao. - 组件是否生效,0表示初始化,1表示执行成功,已生效 + AOM应用组件是否生效,0表示初始化,1表示执行成功,已生效 :param state: The state of this AppComponentDao. :type state: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/config_info_do.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/config_info_do.py index 29224594a..e4ba6da97 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/config_info_do.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/config_info_do.py @@ -52,9 +52,9 @@ class ConfigInfoDO: :type description: str :param value: 部署参数值 :type value: str - :param task_id: 部署任务id,创建部署任务后由系统自动生成 + :param task_id: 部署任务id,创建应用后由系统自动生成 :type task_id: str - :param static_status: 表示是否为静态参数,值为1时不支持执行时变更参数,值为0时支持,并且也会把该参数上报流水线 + :param static_status: 表示是否为静态参数,值为1时不支持部署时变更参数,值为0时支持,并且也会把该参数上报流水线 :type static_status: int :param limits: 当参数类型为enum枚举类型时,必须填写可选值 :type limits: list[:class:`huaweicloudsdkclouddeploy.v2.ParamTypeLimits`] @@ -178,7 +178,7 @@ class ConfigInfoDO: def task_id(self): """Gets the task_id of this ConfigInfoDO. - 部署任务id,创建部署任务后由系统自动生成 + 部署任务id,创建应用后由系统自动生成 :return: The task_id of this ConfigInfoDO. :rtype: str @@ -189,7 +189,7 @@ class ConfigInfoDO: def task_id(self, task_id): """Sets the task_id of this ConfigInfoDO. - 部署任务id,创建部署任务后由系统自动生成 + 部署任务id,创建应用后由系统自动生成 :param task_id: The task_id of this ConfigInfoDO. :type task_id: str @@ -200,7 +200,7 @@ class ConfigInfoDO: def static_status(self): """Gets the static_status of this ConfigInfoDO. - 表示是否为静态参数,值为1时不支持执行时变更参数,值为0时支持,并且也会把该参数上报流水线 + 表示是否为静态参数,值为1时不支持部署时变更参数,值为0时支持,并且也会把该参数上报流水线 :return: The static_status of this ConfigInfoDO. :rtype: int @@ -211,7 +211,7 @@ class ConfigInfoDO: def static_status(self, static_status): """Sets the static_status of this ConfigInfoDO. - 表示是否为静态参数,值为1时不支持执行时变更参数,值为0时支持,并且也会把该参数上报流水线 + 表示是否为静态参数,值为1时不支持部署时变更参数,值为0时支持,并且也会把该参数上报流水线 :param static_status: The static_status of this ConfigInfoDO. :type static_status: int diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/create_deploy_task_by_template_response.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/create_deploy_task_by_template_response.py index cf1810896..1f9397aa5 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/create_deploy_task_by_template_response.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/create_deploy_task_by_template_response.py @@ -34,7 +34,7 @@ class CreateDeployTaskByTemplateResponse(SdkResponse): The model defined in huaweicloud sdk - :param task_name: 部署任务名称 + :param task_name: 应用名称 :type task_name: str :param task_id: 部署任务id :type task_id: str @@ -55,7 +55,7 @@ class CreateDeployTaskByTemplateResponse(SdkResponse): def task_name(self): """Gets the task_name of this CreateDeployTaskByTemplateResponse. - 部署任务名称 + 应用名称 :return: The task_name of this CreateDeployTaskByTemplateResponse. :rtype: str @@ -66,7 +66,7 @@ class CreateDeployTaskByTemplateResponse(SdkResponse): def task_name(self, task_name): """Sets the task_name of this CreateDeployTaskByTemplateResponse. - 部署任务名称 + 应用名称 :param task_name: The task_name of this CreateDeployTaskByTemplateResponse. :type task_name: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/dynamic_config_info.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/dynamic_config_info.py index f20309c97..70611da99 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/dynamic_config_info.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/dynamic_config_info.py @@ -36,9 +36,9 @@ class DynamicConfigInfo: The model defined in huaweicloud sdk - :param key: 执行部署任务时传递的参数名称 + :param key: 部署应用时传递的参数名称 :type key: str - :param value: 执行部署任务时传递的参数值 + :param value: 部署应用时传递的参数值 :type value: str :param type: 类型,如果填写动态参数,则类型必选 :type type: str @@ -62,7 +62,7 @@ class DynamicConfigInfo: def key(self): """Gets the key of this DynamicConfigInfo. - 执行部署任务时传递的参数名称 + 部署应用时传递的参数名称 :return: The key of this DynamicConfigInfo. :rtype: str @@ -73,7 +73,7 @@ class DynamicConfigInfo: def key(self, key): """Sets the key of this DynamicConfigInfo. - 执行部署任务时传递的参数名称 + 部署应用时传递的参数名称 :param key: The key of this DynamicConfigInfo. :type key: str @@ -84,7 +84,7 @@ class DynamicConfigInfo: def value(self): """Gets the value of this DynamicConfigInfo. - 执行部署任务时传递的参数值 + 部署应用时传递的参数值 :return: The value of this DynamicConfigInfo. :rtype: str @@ -95,7 +95,7 @@ class DynamicConfigInfo: def value(self, value): """Sets the value of this DynamicConfigInfo. - 执行部署任务时传递的参数值 + 部署应用时传递的参数值 :param value: The value of this DynamicConfigInfo. :type value: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/env_execution_body.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/env_execution_body.py index c6bfe0609..61aa32d0d 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/env_execution_body.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/env_execution_body.py @@ -36,11 +36,11 @@ class EnvExecutionBody: The model defined in huaweicloud sdk - :param params: 部署任务执行时传递的参数 + :param params: 部署应用时传递的参数 :type params: list[:class:`huaweicloudsdkclouddeploy.v2.DynamicConfigInfo`] - :param record_id: 部署任务的执行id,可通过record_id回滚至之前的部署状态。选中部署历史执行记录,在URL中获取 + :param record_id: 应用的部署id,可通过record_id回滚至之前的部署状态。选中应用历史部署记录,在URL中获取 :type record_id: str - :param trigger_source: 限制触发来源,0不限制任何执行请求来源,1时只允许通过流水线触发执行 + :param trigger_source: 限制触发来源,0不限制任何部署请求来源,1时只允许通过流水线触发部署 :type trigger_source: str """ @@ -62,7 +62,7 @@ class EnvExecutionBody: def params(self): """Gets the params of this EnvExecutionBody. - 部署任务执行时传递的参数 + 部署应用时传递的参数 :return: The params of this EnvExecutionBody. :rtype: list[:class:`huaweicloudsdkclouddeploy.v2.DynamicConfigInfo`] @@ -73,7 +73,7 @@ class EnvExecutionBody: def params(self, params): """Sets the params of this EnvExecutionBody. - 部署任务执行时传递的参数 + 部署应用时传递的参数 :param params: The params of this EnvExecutionBody. :type params: list[:class:`huaweicloudsdkclouddeploy.v2.DynamicConfigInfo`] @@ -84,7 +84,7 @@ class EnvExecutionBody: def record_id(self): """Gets the record_id of this EnvExecutionBody. - 部署任务的执行id,可通过record_id回滚至之前的部署状态。选中部署历史执行记录,在URL中获取 + 应用的部署id,可通过record_id回滚至之前的部署状态。选中应用历史部署记录,在URL中获取 :return: The record_id of this EnvExecutionBody. :rtype: str @@ -95,7 +95,7 @@ class EnvExecutionBody: def record_id(self, record_id): """Sets the record_id of this EnvExecutionBody. - 部署任务的执行id,可通过record_id回滚至之前的部署状态。选中部署历史执行记录,在URL中获取 + 应用的部署id,可通过record_id回滚至之前的部署状态。选中应用历史部署记录,在URL中获取 :param record_id: The record_id of this EnvExecutionBody. :type record_id: str @@ -106,7 +106,7 @@ class EnvExecutionBody: def trigger_source(self): """Gets the trigger_source of this EnvExecutionBody. - 限制触发来源,0不限制任何执行请求来源,1时只允许通过流水线触发执行 + 限制触发来源,0不限制任何部署请求来源,1时只允许通过流水线触发部署 :return: The trigger_source of this EnvExecutionBody. :rtype: str @@ -117,7 +117,7 @@ class EnvExecutionBody: def trigger_source(self, trigger_source): """Sets the trigger_source of this EnvExecutionBody. - 限制触发来源,0不限制任何执行请求来源,1时只允许通过流水线触发执行 + 限制触发来源,0不限制任何部署请求来源,1时只允许通过流水线触发部署 :param trigger_source: The trigger_source of this EnvExecutionBody. :type trigger_source: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/execute_record_v2_body.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/execute_record_v2_body.py index 48f9c1036..7bdb3c5d6 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/execute_record_v2_body.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/execute_record_v2_body.py @@ -48,21 +48,21 @@ class ExecuteRecordV2Body: The model defined in huaweicloud sdk - :param duration: 执行用时 + :param duration: 部署用时 :type duration: str - :param state: 任务状态 + :param state: 应用状态 :type state: str :param operator: 操作人用户名 :type operator: str - :param execution_id: 执行记录ID + :param execution_id: 部署记录ID :type execution_id: str - :param start_time: 执行任务的开始时间 + :param start_time: 部署应用的开始时间 :type start_time: str :param nickname: 操作人昵称 :type nickname: str - :param end_time: 执行任务的结束时间 + :param end_time: 部署应用的结束时间 :type end_time: str - :param release_id: 执行序列号 + :param release_id: 部署记录序列号 :type release_id: int :param type: 类型 :type type: str @@ -104,7 +104,7 @@ class ExecuteRecordV2Body: def duration(self): """Gets the duration of this ExecuteRecordV2Body. - 执行用时 + 部署用时 :return: The duration of this ExecuteRecordV2Body. :rtype: str @@ -115,7 +115,7 @@ class ExecuteRecordV2Body: def duration(self, duration): """Sets the duration of this ExecuteRecordV2Body. - 执行用时 + 部署用时 :param duration: The duration of this ExecuteRecordV2Body. :type duration: str @@ -126,7 +126,7 @@ class ExecuteRecordV2Body: def state(self): """Gets the state of this ExecuteRecordV2Body. - 任务状态 + 应用状态 :return: The state of this ExecuteRecordV2Body. :rtype: str @@ -137,7 +137,7 @@ class ExecuteRecordV2Body: def state(self, state): """Sets the state of this ExecuteRecordV2Body. - 任务状态 + 应用状态 :param state: The state of this ExecuteRecordV2Body. :type state: str @@ -170,7 +170,7 @@ class ExecuteRecordV2Body: def execution_id(self): """Gets the execution_id of this ExecuteRecordV2Body. - 执行记录ID + 部署记录ID :return: The execution_id of this ExecuteRecordV2Body. :rtype: str @@ -181,7 +181,7 @@ class ExecuteRecordV2Body: def execution_id(self, execution_id): """Sets the execution_id of this ExecuteRecordV2Body. - 执行记录ID + 部署记录ID :param execution_id: The execution_id of this ExecuteRecordV2Body. :type execution_id: str @@ -192,7 +192,7 @@ class ExecuteRecordV2Body: def start_time(self): """Gets the start_time of this ExecuteRecordV2Body. - 执行任务的开始时间 + 部署应用的开始时间 :return: The start_time of this ExecuteRecordV2Body. :rtype: str @@ -203,7 +203,7 @@ class ExecuteRecordV2Body: def start_time(self, start_time): """Sets the start_time of this ExecuteRecordV2Body. - 执行任务的开始时间 + 部署应用的开始时间 :param start_time: The start_time of this ExecuteRecordV2Body. :type start_time: str @@ -236,7 +236,7 @@ class ExecuteRecordV2Body: def end_time(self): """Gets the end_time of this ExecuteRecordV2Body. - 执行任务的结束时间 + 部署应用的结束时间 :return: The end_time of this ExecuteRecordV2Body. :rtype: str @@ -247,7 +247,7 @@ class ExecuteRecordV2Body: def end_time(self, end_time): """Sets the end_time of this ExecuteRecordV2Body. - 执行任务的结束时间 + 部署应用的结束时间 :param end_time: The end_time of this ExecuteRecordV2Body. :type end_time: str @@ -258,7 +258,7 @@ class ExecuteRecordV2Body: def release_id(self): """Gets the release_id of this ExecuteRecordV2Body. - 执行序列号 + 部署记录序列号 :return: The release_id of this ExecuteRecordV2Body. :rtype: int @@ -269,7 +269,7 @@ class ExecuteRecordV2Body: def release_id(self, release_id): """Sets the release_id of this ExecuteRecordV2Body. - 执行序列号 + 部署记录序列号 :param release_id: The release_id of this ExecuteRecordV2Body. :type release_id: int diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/key_value_do.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/key_value_do.py index 72605a97d..931d5433b 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/key_value_do.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/key_value_do.py @@ -34,9 +34,9 @@ class KeyValueDO: The model defined in huaweicloud sdk - :param key: 执行部署任务时传递的参数名称 + :param key: 部署应用时传递的参数名称 :type key: str - :param value: 执行部署任务时传递的参数值 + :param value: 部署应用时传递的参数值 :type value: str """ @@ -55,7 +55,7 @@ class KeyValueDO: def key(self): """Gets the key of this KeyValueDO. - 执行部署任务时传递的参数名称 + 部署应用时传递的参数名称 :return: The key of this KeyValueDO. :rtype: str @@ -66,7 +66,7 @@ class KeyValueDO: def key(self, key): """Sets the key of this KeyValueDO. - 执行部署任务时传递的参数名称 + 部署应用时传递的参数名称 :param key: The key of this KeyValueDO. :type key: str @@ -77,7 +77,7 @@ class KeyValueDO: def value(self): """Gets the value of this KeyValueDO. - 执行部署任务时传递的参数值 + 部署应用时传递的参数值 :return: The value of this KeyValueDO. :rtype: str @@ -88,7 +88,7 @@ class KeyValueDO: def value(self, value): """Sets the value of this KeyValueDO. - 执行部署任务时传递的参数值 + 部署应用时传递的参数值 :param value: The value of this KeyValueDO. :type value: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_deploy_task_history_by_date_response.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_deploy_task_history_by_date_response.py index 5e681a84b..78ccc439d 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_deploy_task_history_by_date_response.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_deploy_task_history_by_date_response.py @@ -34,9 +34,9 @@ class ListDeployTaskHistoryByDateResponse(SdkResponse): The model defined in huaweicloud sdk - :param result: 部署任务历史执行记录列表 + :param result: 应用历史部署记录列表 :type result: list[:class:`huaweicloudsdkclouddeploy.v2.ExecuteRecordV2Body`] - :param total_num: 开始时间和结束时间内任务历史执行记录总数 + :param total_num: 开始时间和结束时间内应用历史部署记录总数 :type total_num: int """ @@ -55,7 +55,7 @@ class ListDeployTaskHistoryByDateResponse(SdkResponse): def result(self): """Gets the result of this ListDeployTaskHistoryByDateResponse. - 部署任务历史执行记录列表 + 应用历史部署记录列表 :return: The result of this ListDeployTaskHistoryByDateResponse. :rtype: list[:class:`huaweicloudsdkclouddeploy.v2.ExecuteRecordV2Body`] @@ -66,7 +66,7 @@ class ListDeployTaskHistoryByDateResponse(SdkResponse): def result(self, result): """Sets the result of this ListDeployTaskHistoryByDateResponse. - 部署任务历史执行记录列表 + 应用历史部署记录列表 :param result: The result of this ListDeployTaskHistoryByDateResponse. :type result: list[:class:`huaweicloudsdkclouddeploy.v2.ExecuteRecordV2Body`] @@ -77,7 +77,7 @@ class ListDeployTaskHistoryByDateResponse(SdkResponse): def total_num(self): """Gets the total_num of this ListDeployTaskHistoryByDateResponse. - 开始时间和结束时间内任务历史执行记录总数 + 开始时间和结束时间内应用历史部署记录总数 :return: The total_num of this ListDeployTaskHistoryByDateResponse. :rtype: int @@ -88,7 +88,7 @@ class ListDeployTaskHistoryByDateResponse(SdkResponse): def total_num(self, total_num): """Sets the total_num of this ListDeployTaskHistoryByDateResponse. - 开始时间和结束时间内任务历史执行记录总数 + 开始时间和结束时间内应用历史部署记录总数 :param total_num: The total_num of this ListDeployTaskHistoryByDateResponse. :type total_num: int diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_task_success_rate_response.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_task_success_rate_response.py index cda2c3558..243de23c3 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_task_success_rate_response.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/list_task_success_rate_response.py @@ -44,11 +44,11 @@ class ListTaskSuccessRateResponse(SdkResponse): :type project_id: str :param project_name: 项目名称 :type project_name: str - :param start_date: 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + :param start_date: 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :type start_date: str - :param end_date: 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + :param end_date: 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :type end_date: str - :param tasks_success_rate: 任务的成功率列表 + :param tasks_success_rate: 应用的成功率列表 :type tasks_success_rate: list[:class:`huaweicloudsdkclouddeploy.v2.TaskSuccessRate`] """ @@ -120,7 +120,7 @@ class ListTaskSuccessRateResponse(SdkResponse): def start_date(self): """Gets the start_date of this ListTaskSuccessRateResponse. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :return: The start_date of this ListTaskSuccessRateResponse. :rtype: str @@ -131,7 +131,7 @@ class ListTaskSuccessRateResponse(SdkResponse): def start_date(self, start_date): """Sets the start_date of this ListTaskSuccessRateResponse. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :param start_date: The start_date of this ListTaskSuccessRateResponse. :type start_date: str @@ -142,7 +142,7 @@ class ListTaskSuccessRateResponse(SdkResponse): def end_date(self): """Gets the end_date of this ListTaskSuccessRateResponse. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :return: The end_date of this ListTaskSuccessRateResponse. :rtype: str @@ -153,7 +153,7 @@ class ListTaskSuccessRateResponse(SdkResponse): def end_date(self, end_date): """Sets the end_date of this ListTaskSuccessRateResponse. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :param end_date: The end_date of this ListTaskSuccessRateResponse. :type end_date: str @@ -164,7 +164,7 @@ class ListTaskSuccessRateResponse(SdkResponse): def tasks_success_rate(self): """Gets the tasks_success_rate of this ListTaskSuccessRateResponse. - 任务的成功率列表 + 应用的成功率列表 :return: The tasks_success_rate of this ListTaskSuccessRateResponse. :rtype: list[:class:`huaweicloudsdkclouddeploy.v2.TaskSuccessRate`] @@ -175,7 +175,7 @@ class ListTaskSuccessRateResponse(SdkResponse): def tasks_success_rate(self, tasks_success_rate): """Sets the tasks_success_rate of this ListTaskSuccessRateResponse. - 任务的成功率列表 + 应用的成功率列表 :param tasks_success_rate: The tasks_success_rate of this ListTaskSuccessRateResponse. :type tasks_success_rate: list[:class:`huaweicloudsdkclouddeploy.v2.TaskSuccessRate`] diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_deploy_task_detail_response.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_deploy_task_detail_response.py index e5e247c77..0c5725827 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_deploy_task_detail_response.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_deploy_task_detail_response.py @@ -100,11 +100,11 @@ class ShowDeployTaskDetailResponse(SdkResponse): :param task_id: 部署任务id :type task_id: str - :param name: 部署任务名称 + :param name: 应用名称 :type name: str - :param project_id: devcloud项目id + :param project_id: 项目id :type project_id: str - :param project_name: devcloud项目名称 + :param project_name: 项目名称 :type project_name: str :param deploy_system: 部署类型模式,包括deployTemplate,ansible,shell :type deploy_system: str @@ -112,9 +112,9 @@ class ShowDeployTaskDetailResponse(SdkResponse): :type create_time: str :param update_time: 修改时间 :type update_time: str - :param state: 部署任务状态,Draft表示草稿状态,Available表示可用状态 + :param state: 应用状态,Draft表示草稿状态,Available表示可用状态 :type state: str - :param execution_time: 最后一次执行时间 + :param execution_time: 最后一次部署时间 :type execution_time: str :param description: 描述 :type description: str @@ -122,15 +122,15 @@ class ShowDeployTaskDetailResponse(SdkResponse): :type is_defaut_permission: bool :param template_id: 模板id :type template_id: str - :param owner: 部署任务创建者用户名 + :param owner: 应用创建者用户名 :type owner: str - :param nick_name: 部署任务创建者昵称 + :param nick_name: 应用创建者昵称 :type nick_name: str - :param owner_id: 部署任务创建者用户ID + :param owner_id: 应用创建者用户ID :type owner_id: str - :param tenant_id: 部署任务创建者租户ID + :param tenant_id: 应用创建者租户ID :type tenant_id: str - :param tenant_name: 部署任务创建者租户名 + :param tenant_name: 应用创建者租户名 :type tenant_name: str :param slave_cluster_id: slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id :type slave_cluster_id: str @@ -142,29 +142,29 @@ class ShowDeployTaskDetailResponse(SdkResponse): :type can_delete: bool :param can_view: 是否有查看权限 :type can_view: bool - :param can_execute: 是否有执行权限 + :param can_execute: 是否有部署权限 :type can_execute: bool :param can_copy: 是否有复制权限 :type can_copy: bool - :param can_manage: 是否有管理权限,包含增删改查执行以及权限修改 + :param can_manage: 是否有管理权限,包含增删改查部署以及权限修改 :type can_manage: bool - :param app_component_list: 部署任务和应用组件对应关系 + :param app_component_list: 应用和AOM应用组件对应关系 :type app_component_list: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] - :param role_id: 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 + :param role_id: 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 :type role_id: int :param id: 部署任务id :type id: str - :param release_id: 任务序列id + :param release_id: 部署记录序列号 :type release_id: int - :param duration: 执行时间 + :param duration: 部署时间 :type duration: str - :param execution_state: 执行状态 + :param execution_state: 部署状态 :type execution_state: str - :param executor_id: 执行者id + :param executor_id: 部署者id :type executor_id: str - :param executor_nick_name: 执行者名称 + :param executor_nick_name: 部署者名称 :type executor_nick_name: str - :param steps: 执行步骤 + :param steps: 部署步骤 :type steps: dict(str, Step) """ @@ -301,7 +301,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def name(self): """Gets the name of this ShowDeployTaskDetailResponse. - 部署任务名称 + 应用名称 :return: The name of this ShowDeployTaskDetailResponse. :rtype: str @@ -312,7 +312,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def name(self, name): """Sets the name of this ShowDeployTaskDetailResponse. - 部署任务名称 + 应用名称 :param name: The name of this ShowDeployTaskDetailResponse. :type name: str @@ -323,7 +323,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def project_id(self): """Gets the project_id of this ShowDeployTaskDetailResponse. - devcloud项目id + 项目id :return: The project_id of this ShowDeployTaskDetailResponse. :rtype: str @@ -334,7 +334,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def project_id(self, project_id): """Sets the project_id of this ShowDeployTaskDetailResponse. - devcloud项目id + 项目id :param project_id: The project_id of this ShowDeployTaskDetailResponse. :type project_id: str @@ -345,7 +345,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def project_name(self): """Gets the project_name of this ShowDeployTaskDetailResponse. - devcloud项目名称 + 项目名称 :return: The project_name of this ShowDeployTaskDetailResponse. :rtype: str @@ -356,7 +356,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def project_name(self, project_name): """Sets the project_name of this ShowDeployTaskDetailResponse. - devcloud项目名称 + 项目名称 :param project_name: The project_name of this ShowDeployTaskDetailResponse. :type project_name: str @@ -433,7 +433,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def state(self): """Gets the state of this ShowDeployTaskDetailResponse. - 部署任务状态,Draft表示草稿状态,Available表示可用状态 + 应用状态,Draft表示草稿状态,Available表示可用状态 :return: The state of this ShowDeployTaskDetailResponse. :rtype: str @@ -444,7 +444,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def state(self, state): """Sets the state of this ShowDeployTaskDetailResponse. - 部署任务状态,Draft表示草稿状态,Available表示可用状态 + 应用状态,Draft表示草稿状态,Available表示可用状态 :param state: The state of this ShowDeployTaskDetailResponse. :type state: str @@ -455,7 +455,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def execution_time(self): """Gets the execution_time of this ShowDeployTaskDetailResponse. - 最后一次执行时间 + 最后一次部署时间 :return: The execution_time of this ShowDeployTaskDetailResponse. :rtype: str @@ -466,7 +466,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def execution_time(self, execution_time): """Sets the execution_time of this ShowDeployTaskDetailResponse. - 最后一次执行时间 + 最后一次部署时间 :param execution_time: The execution_time of this ShowDeployTaskDetailResponse. :type execution_time: str @@ -543,7 +543,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def owner(self): """Gets the owner of this ShowDeployTaskDetailResponse. - 部署任务创建者用户名 + 应用创建者用户名 :return: The owner of this ShowDeployTaskDetailResponse. :rtype: str @@ -554,7 +554,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def owner(self, owner): """Sets the owner of this ShowDeployTaskDetailResponse. - 部署任务创建者用户名 + 应用创建者用户名 :param owner: The owner of this ShowDeployTaskDetailResponse. :type owner: str @@ -565,7 +565,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def nick_name(self): """Gets the nick_name of this ShowDeployTaskDetailResponse. - 部署任务创建者昵称 + 应用创建者昵称 :return: The nick_name of this ShowDeployTaskDetailResponse. :rtype: str @@ -576,7 +576,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def nick_name(self, nick_name): """Sets the nick_name of this ShowDeployTaskDetailResponse. - 部署任务创建者昵称 + 应用创建者昵称 :param nick_name: The nick_name of this ShowDeployTaskDetailResponse. :type nick_name: str @@ -587,7 +587,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def owner_id(self): """Gets the owner_id of this ShowDeployTaskDetailResponse. - 部署任务创建者用户ID + 应用创建者用户ID :return: The owner_id of this ShowDeployTaskDetailResponse. :rtype: str @@ -598,7 +598,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def owner_id(self, owner_id): """Sets the owner_id of this ShowDeployTaskDetailResponse. - 部署任务创建者用户ID + 应用创建者用户ID :param owner_id: The owner_id of this ShowDeployTaskDetailResponse. :type owner_id: str @@ -609,7 +609,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def tenant_id(self): """Gets the tenant_id of this ShowDeployTaskDetailResponse. - 部署任务创建者租户ID + 应用创建者租户ID :return: The tenant_id of this ShowDeployTaskDetailResponse. :rtype: str @@ -620,7 +620,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def tenant_id(self, tenant_id): """Sets the tenant_id of this ShowDeployTaskDetailResponse. - 部署任务创建者租户ID + 应用创建者租户ID :param tenant_id: The tenant_id of this ShowDeployTaskDetailResponse. :type tenant_id: str @@ -631,7 +631,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def tenant_name(self): """Gets the tenant_name of this ShowDeployTaskDetailResponse. - 部署任务创建者租户名 + 应用创建者租户名 :return: The tenant_name of this ShowDeployTaskDetailResponse. :rtype: str @@ -642,7 +642,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def tenant_name(self, tenant_name): """Sets the tenant_name of this ShowDeployTaskDetailResponse. - 部署任务创建者租户名 + 应用创建者租户名 :param tenant_name: The tenant_name of this ShowDeployTaskDetailResponse. :type tenant_name: str @@ -763,7 +763,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def can_execute(self): """Gets the can_execute of this ShowDeployTaskDetailResponse. - 是否有执行权限 + 是否有部署权限 :return: The can_execute of this ShowDeployTaskDetailResponse. :rtype: bool @@ -774,7 +774,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def can_execute(self, can_execute): """Sets the can_execute of this ShowDeployTaskDetailResponse. - 是否有执行权限 + 是否有部署权限 :param can_execute: The can_execute of this ShowDeployTaskDetailResponse. :type can_execute: bool @@ -807,7 +807,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def can_manage(self): """Gets the can_manage of this ShowDeployTaskDetailResponse. - 是否有管理权限,包含增删改查执行以及权限修改 + 是否有管理权限,包含增删改查部署以及权限修改 :return: The can_manage of this ShowDeployTaskDetailResponse. :rtype: bool @@ -818,7 +818,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def can_manage(self, can_manage): """Sets the can_manage of this ShowDeployTaskDetailResponse. - 是否有管理权限,包含增删改查执行以及权限修改 + 是否有管理权限,包含增删改查部署以及权限修改 :param can_manage: The can_manage of this ShowDeployTaskDetailResponse. :type can_manage: bool @@ -829,7 +829,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def app_component_list(self): """Gets the app_component_list of this ShowDeployTaskDetailResponse. - 部署任务和应用组件对应关系 + 应用和AOM应用组件对应关系 :return: The app_component_list of this ShowDeployTaskDetailResponse. :rtype: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] @@ -840,7 +840,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def app_component_list(self, app_component_list): """Sets the app_component_list of this ShowDeployTaskDetailResponse. - 部署任务和应用组件对应关系 + 应用和AOM应用组件对应关系 :param app_component_list: The app_component_list of this ShowDeployTaskDetailResponse. :type app_component_list: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] @@ -851,7 +851,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def role_id(self): """Gets the role_id of this ShowDeployTaskDetailResponse. - 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 + 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 :return: The role_id of this ShowDeployTaskDetailResponse. :rtype: int @@ -862,7 +862,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def role_id(self, role_id): """Sets the role_id of this ShowDeployTaskDetailResponse. - 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 + 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 :param role_id: The role_id of this ShowDeployTaskDetailResponse. :type role_id: int @@ -895,7 +895,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def release_id(self): """Gets the release_id of this ShowDeployTaskDetailResponse. - 任务序列id + 部署记录序列号 :return: The release_id of this ShowDeployTaskDetailResponse. :rtype: int @@ -906,7 +906,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def release_id(self, release_id): """Sets the release_id of this ShowDeployTaskDetailResponse. - 任务序列id + 部署记录序列号 :param release_id: The release_id of this ShowDeployTaskDetailResponse. :type release_id: int @@ -917,7 +917,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def duration(self): """Gets the duration of this ShowDeployTaskDetailResponse. - 执行时间 + 部署时间 :return: The duration of this ShowDeployTaskDetailResponse. :rtype: str @@ -928,7 +928,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def duration(self, duration): """Sets the duration of this ShowDeployTaskDetailResponse. - 执行时间 + 部署时间 :param duration: The duration of this ShowDeployTaskDetailResponse. :type duration: str @@ -939,7 +939,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def execution_state(self): """Gets the execution_state of this ShowDeployTaskDetailResponse. - 执行状态 + 部署状态 :return: The execution_state of this ShowDeployTaskDetailResponse. :rtype: str @@ -950,7 +950,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def execution_state(self, execution_state): """Sets the execution_state of this ShowDeployTaskDetailResponse. - 执行状态 + 部署状态 :param execution_state: The execution_state of this ShowDeployTaskDetailResponse. :type execution_state: str @@ -961,7 +961,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def executor_id(self): """Gets the executor_id of this ShowDeployTaskDetailResponse. - 执行者id + 部署者id :return: The executor_id of this ShowDeployTaskDetailResponse. :rtype: str @@ -972,7 +972,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def executor_id(self, executor_id): """Sets the executor_id of this ShowDeployTaskDetailResponse. - 执行者id + 部署者id :param executor_id: The executor_id of this ShowDeployTaskDetailResponse. :type executor_id: str @@ -983,7 +983,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def executor_nick_name(self): """Gets the executor_nick_name of this ShowDeployTaskDetailResponse. - 执行者名称 + 部署者名称 :return: The executor_nick_name of this ShowDeployTaskDetailResponse. :rtype: str @@ -994,7 +994,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def executor_nick_name(self, executor_nick_name): """Sets the executor_nick_name of this ShowDeployTaskDetailResponse. - 执行者名称 + 部署者名称 :param executor_nick_name: The executor_nick_name of this ShowDeployTaskDetailResponse. :type executor_nick_name: str @@ -1005,7 +1005,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def steps(self): """Gets the steps of this ShowDeployTaskDetailResponse. - 执行步骤 + 部署步骤 :return: The steps of this ShowDeployTaskDetailResponse. :rtype: dict(str, Step) @@ -1016,7 +1016,7 @@ class ShowDeployTaskDetailResponse(SdkResponse): def steps(self, steps): """Sets the steps of this ShowDeployTaskDetailResponse. - 执行步骤 + 部署步骤 :param steps: The steps of this ShowDeployTaskDetailResponse. :type steps: dict(str, Step) diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_request.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_request.py index 55be680e1..89bdb91c4 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_request.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_request.py @@ -38,9 +38,9 @@ class ShowProjectSuccessRateRequest: :param project_id: 项目id :type project_id: str - :param start_date: 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + :param start_date: 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :type start_date: str - :param end_date: 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + :param end_date: 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :type end_date: str """ @@ -81,7 +81,7 @@ class ShowProjectSuccessRateRequest: def start_date(self): """Gets the start_date of this ShowProjectSuccessRateRequest. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :return: The start_date of this ShowProjectSuccessRateRequest. :rtype: str @@ -92,7 +92,7 @@ class ShowProjectSuccessRateRequest: def start_date(self, start_date): """Sets the start_date of this ShowProjectSuccessRateRequest. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :param start_date: The start_date of this ShowProjectSuccessRateRequest. :type start_date: str @@ -103,7 +103,7 @@ class ShowProjectSuccessRateRequest: def end_date(self): """Gets the end_date of this ShowProjectSuccessRateRequest. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :return: The end_date of this ShowProjectSuccessRateRequest. :rtype: str @@ -114,7 +114,7 @@ class ShowProjectSuccessRateRequest: def end_date(self, end_date): """Sets the end_date of this ShowProjectSuccessRateRequest. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :param end_date: The end_date of this ShowProjectSuccessRateRequest. :type end_date: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_response.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_response.py index 34a4a6963..ebeb13706 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_response.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/show_project_success_rate_response.py @@ -52,15 +52,15 @@ class ShowProjectSuccessRateResponse(SdkResponse): :type project_id: str :param project_name: 项目名称 :type project_name: str - :param start_date: 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + :param start_date: 应用部署开始时间范围的左边界(包含),格式yyyy-MM-dd :type start_date: str - :param end_date: 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd + :param end_date: 应用部署开始时间范围的右边界(包含),格式yyyy-MM-dd :type end_date: str - :param task_count: 查询到的任务数 + :param task_count: 查询到的应用数 :type task_count: int - :param record_count: 查询到的任务执行记录数 + :param record_count: 查询到的应用部署记录数 :type record_count: int - :param success_record_count: 成功的任务执行记录数 + :param success_record_count: 成功的应用部署记录数 :type success_record_count: int """ @@ -163,7 +163,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def start_date(self): """Gets the start_date of this ShowProjectSuccessRateResponse. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 应用部署开始时间范围的左边界(包含),格式yyyy-MM-dd :return: The start_date of this ShowProjectSuccessRateResponse. :rtype: str @@ -174,7 +174,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def start_date(self, start_date): """Sets the start_date of this ShowProjectSuccessRateResponse. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 应用部署开始时间范围的左边界(包含),格式yyyy-MM-dd :param start_date: The start_date of this ShowProjectSuccessRateResponse. :type start_date: str @@ -185,7 +185,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def end_date(self): """Gets the end_date of this ShowProjectSuccessRateResponse. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd + 应用部署开始时间范围的右边界(包含),格式yyyy-MM-dd :return: The end_date of this ShowProjectSuccessRateResponse. :rtype: str @@ -196,7 +196,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def end_date(self, end_date): """Sets the end_date of this ShowProjectSuccessRateResponse. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd + 应用部署开始时间范围的右边界(包含),格式yyyy-MM-dd :param end_date: The end_date of this ShowProjectSuccessRateResponse. :type end_date: str @@ -207,7 +207,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def task_count(self): """Gets the task_count of this ShowProjectSuccessRateResponse. - 查询到的任务数 + 查询到的应用数 :return: The task_count of this ShowProjectSuccessRateResponse. :rtype: int @@ -218,7 +218,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def task_count(self, task_count): """Sets the task_count of this ShowProjectSuccessRateResponse. - 查询到的任务数 + 查询到的应用数 :param task_count: The task_count of this ShowProjectSuccessRateResponse. :type task_count: int @@ -229,7 +229,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def record_count(self): """Gets the record_count of this ShowProjectSuccessRateResponse. - 查询到的任务执行记录数 + 查询到的应用部署记录数 :return: The record_count of this ShowProjectSuccessRateResponse. :rtype: int @@ -240,7 +240,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def record_count(self, record_count): """Sets the record_count of this ShowProjectSuccessRateResponse. - 查询到的任务执行记录数 + 查询到的应用部署记录数 :param record_count: The record_count of this ShowProjectSuccessRateResponse. :type record_count: int @@ -251,7 +251,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def success_record_count(self): """Gets the success_record_count of this ShowProjectSuccessRateResponse. - 成功的任务执行记录数 + 成功的应用部署记录数 :return: The success_record_count of this ShowProjectSuccessRateResponse. :rtype: int @@ -262,7 +262,7 @@ class ShowProjectSuccessRateResponse(SdkResponse): def success_record_count(self, success_record_count): """Sets the success_record_count of this ShowProjectSuccessRateResponse. - 成功的任务执行记录数 + 成功的应用部署记录数 :param success_record_count: The success_record_count of this ShowProjectSuccessRateResponse. :type success_record_count: int diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/start_deploy_task_response.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/start_deploy_task_response.py index 262d697e2..607f6c1f3 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/start_deploy_task_response.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/start_deploy_task_response.py @@ -38,13 +38,13 @@ class StartDeployTaskResponse(SdkResponse): The model defined in huaweicloud sdk - :param id: 执行记录id + :param id: 部署记录id :type id: str :param task_id: 部署任务id :type task_id: str :param job_name: 执行任务名称 :type job_name: str - :param app_component_list: 部署任务和应用组件对应关系 + :param app_component_list: 应用和AOM应用组件对应关系 :type app_component_list: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] """ @@ -69,7 +69,7 @@ class StartDeployTaskResponse(SdkResponse): def id(self): """Gets the id of this StartDeployTaskResponse. - 执行记录id + 部署记录id :return: The id of this StartDeployTaskResponse. :rtype: str @@ -80,7 +80,7 @@ class StartDeployTaskResponse(SdkResponse): def id(self, id): """Sets the id of this StartDeployTaskResponse. - 执行记录id + 部署记录id :param id: The id of this StartDeployTaskResponse. :type id: str @@ -135,7 +135,7 @@ class StartDeployTaskResponse(SdkResponse): def app_component_list(self): """Gets the app_component_list of this StartDeployTaskResponse. - 部署任务和应用组件对应关系 + 应用和AOM应用组件对应关系 :return: The app_component_list of this StartDeployTaskResponse. :rtype: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] @@ -146,7 +146,7 @@ class StartDeployTaskResponse(SdkResponse): def app_component_list(self, app_component_list): """Sets the app_component_list of this StartDeployTaskResponse. - 部署任务和应用组件对应关系 + 应用和AOM应用组件对应关系 :param app_component_list: The app_component_list of this StartDeployTaskResponse. :type app_component_list: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_info.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_info.py index 50aa0e49f..9cde109fa 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_info.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_info.py @@ -100,11 +100,11 @@ class TaskInfo: :param task_id: 部署任务id :type task_id: str - :param name: 部署任务名称 + :param name: 应用名称 :type name: str - :param project_id: devcloud项目id + :param project_id: 项目id :type project_id: str - :param project_name: devcloud项目名称 + :param project_name: 项目名称 :type project_name: str :param deploy_system: 部署类型模式,包括deployTemplate,ansible,shell :type deploy_system: str @@ -112,9 +112,9 @@ class TaskInfo: :type create_time: str :param update_time: 修改时间 :type update_time: str - :param state: 部署任务状态,Draft表示草稿状态,Available表示可用状态 + :param state: 应用状态,Draft表示草稿状态,Available表示可用状态 :type state: str - :param execution_time: 最后一次执行时间 + :param execution_time: 最后一次部署时间 :type execution_time: str :param description: 描述 :type description: str @@ -122,15 +122,15 @@ class TaskInfo: :type is_defaut_permission: bool :param template_id: 模板id :type template_id: str - :param owner: 部署任务创建者用户名 + :param owner: 应用创建者用户名 :type owner: str - :param nick_name: 部署任务创建者昵称 + :param nick_name: 应用创建者昵称 :type nick_name: str - :param owner_id: 部署任务创建者用户ID + :param owner_id: 应用创建者用户ID :type owner_id: str - :param tenant_id: 部署任务创建者租户ID + :param tenant_id: 应用创建者租户ID :type tenant_id: str - :param tenant_name: 部署任务创建者租户名 + :param tenant_name: 应用创建者租户名 :type tenant_name: str :param slave_cluster_id: slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id :type slave_cluster_id: str @@ -142,29 +142,29 @@ class TaskInfo: :type can_delete: bool :param can_view: 是否有查看权限 :type can_view: bool - :param can_execute: 是否有执行权限 + :param can_execute: 是否有部署权限 :type can_execute: bool :param can_copy: 是否有复制权限 :type can_copy: bool - :param can_manage: 是否有管理权限,包含增删改查执行以及权限修改 + :param can_manage: 是否有管理权限,包含增删改查部署以及权限修改 :type can_manage: bool - :param app_component_list: 部署任务和应用组件对应关系 + :param app_component_list: 应用和AOM应用组件对应关系 :type app_component_list: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] - :param role_id: 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 + :param role_id: 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 :type role_id: int :param id: 部署任务id :type id: str - :param release_id: 任务序列id + :param release_id: 部署记录序列号 :type release_id: int - :param duration: 执行时间 + :param duration: 部署时间 :type duration: str - :param execution_state: 执行状态 + :param execution_state: 部署状态 :type execution_state: str - :param executor_id: 执行者id + :param executor_id: 部署者id :type executor_id: str - :param executor_nick_name: 执行者名称 + :param executor_nick_name: 部署者名称 :type executor_nick_name: str - :param steps: 执行步骤 + :param steps: 部署步骤 :type steps: dict(str, Step) """ @@ -301,7 +301,7 @@ class TaskInfo: def name(self): """Gets the name of this TaskInfo. - 部署任务名称 + 应用名称 :return: The name of this TaskInfo. :rtype: str @@ -312,7 +312,7 @@ class TaskInfo: def name(self, name): """Sets the name of this TaskInfo. - 部署任务名称 + 应用名称 :param name: The name of this TaskInfo. :type name: str @@ -323,7 +323,7 @@ class TaskInfo: def project_id(self): """Gets the project_id of this TaskInfo. - devcloud项目id + 项目id :return: The project_id of this TaskInfo. :rtype: str @@ -334,7 +334,7 @@ class TaskInfo: def project_id(self, project_id): """Sets the project_id of this TaskInfo. - devcloud项目id + 项目id :param project_id: The project_id of this TaskInfo. :type project_id: str @@ -345,7 +345,7 @@ class TaskInfo: def project_name(self): """Gets the project_name of this TaskInfo. - devcloud项目名称 + 项目名称 :return: The project_name of this TaskInfo. :rtype: str @@ -356,7 +356,7 @@ class TaskInfo: def project_name(self, project_name): """Sets the project_name of this TaskInfo. - devcloud项目名称 + 项目名称 :param project_name: The project_name of this TaskInfo. :type project_name: str @@ -433,7 +433,7 @@ class TaskInfo: def state(self): """Gets the state of this TaskInfo. - 部署任务状态,Draft表示草稿状态,Available表示可用状态 + 应用状态,Draft表示草稿状态,Available表示可用状态 :return: The state of this TaskInfo. :rtype: str @@ -444,7 +444,7 @@ class TaskInfo: def state(self, state): """Sets the state of this TaskInfo. - 部署任务状态,Draft表示草稿状态,Available表示可用状态 + 应用状态,Draft表示草稿状态,Available表示可用状态 :param state: The state of this TaskInfo. :type state: str @@ -455,7 +455,7 @@ class TaskInfo: def execution_time(self): """Gets the execution_time of this TaskInfo. - 最后一次执行时间 + 最后一次部署时间 :return: The execution_time of this TaskInfo. :rtype: str @@ -466,7 +466,7 @@ class TaskInfo: def execution_time(self, execution_time): """Sets the execution_time of this TaskInfo. - 最后一次执行时间 + 最后一次部署时间 :param execution_time: The execution_time of this TaskInfo. :type execution_time: str @@ -543,7 +543,7 @@ class TaskInfo: def owner(self): """Gets the owner of this TaskInfo. - 部署任务创建者用户名 + 应用创建者用户名 :return: The owner of this TaskInfo. :rtype: str @@ -554,7 +554,7 @@ class TaskInfo: def owner(self, owner): """Sets the owner of this TaskInfo. - 部署任务创建者用户名 + 应用创建者用户名 :param owner: The owner of this TaskInfo. :type owner: str @@ -565,7 +565,7 @@ class TaskInfo: def nick_name(self): """Gets the nick_name of this TaskInfo. - 部署任务创建者昵称 + 应用创建者昵称 :return: The nick_name of this TaskInfo. :rtype: str @@ -576,7 +576,7 @@ class TaskInfo: def nick_name(self, nick_name): """Sets the nick_name of this TaskInfo. - 部署任务创建者昵称 + 应用创建者昵称 :param nick_name: The nick_name of this TaskInfo. :type nick_name: str @@ -587,7 +587,7 @@ class TaskInfo: def owner_id(self): """Gets the owner_id of this TaskInfo. - 部署任务创建者用户ID + 应用创建者用户ID :return: The owner_id of this TaskInfo. :rtype: str @@ -598,7 +598,7 @@ class TaskInfo: def owner_id(self, owner_id): """Sets the owner_id of this TaskInfo. - 部署任务创建者用户ID + 应用创建者用户ID :param owner_id: The owner_id of this TaskInfo. :type owner_id: str @@ -609,7 +609,7 @@ class TaskInfo: def tenant_id(self): """Gets the tenant_id of this TaskInfo. - 部署任务创建者租户ID + 应用创建者租户ID :return: The tenant_id of this TaskInfo. :rtype: str @@ -620,7 +620,7 @@ class TaskInfo: def tenant_id(self, tenant_id): """Sets the tenant_id of this TaskInfo. - 部署任务创建者租户ID + 应用创建者租户ID :param tenant_id: The tenant_id of this TaskInfo. :type tenant_id: str @@ -631,7 +631,7 @@ class TaskInfo: def tenant_name(self): """Gets the tenant_name of this TaskInfo. - 部署任务创建者租户名 + 应用创建者租户名 :return: The tenant_name of this TaskInfo. :rtype: str @@ -642,7 +642,7 @@ class TaskInfo: def tenant_name(self, tenant_name): """Sets the tenant_name of this TaskInfo. - 部署任务创建者租户名 + 应用创建者租户名 :param tenant_name: The tenant_name of this TaskInfo. :type tenant_name: str @@ -763,7 +763,7 @@ class TaskInfo: def can_execute(self): """Gets the can_execute of this TaskInfo. - 是否有执行权限 + 是否有部署权限 :return: The can_execute of this TaskInfo. :rtype: bool @@ -774,7 +774,7 @@ class TaskInfo: def can_execute(self, can_execute): """Sets the can_execute of this TaskInfo. - 是否有执行权限 + 是否有部署权限 :param can_execute: The can_execute of this TaskInfo. :type can_execute: bool @@ -807,7 +807,7 @@ class TaskInfo: def can_manage(self): """Gets the can_manage of this TaskInfo. - 是否有管理权限,包含增删改查执行以及权限修改 + 是否有管理权限,包含增删改查部署以及权限修改 :return: The can_manage of this TaskInfo. :rtype: bool @@ -818,7 +818,7 @@ class TaskInfo: def can_manage(self, can_manage): """Sets the can_manage of this TaskInfo. - 是否有管理权限,包含增删改查执行以及权限修改 + 是否有管理权限,包含增删改查部署以及权限修改 :param can_manage: The can_manage of this TaskInfo. :type can_manage: bool @@ -829,7 +829,7 @@ class TaskInfo: def app_component_list(self): """Gets the app_component_list of this TaskInfo. - 部署任务和应用组件对应关系 + 应用和AOM应用组件对应关系 :return: The app_component_list of this TaskInfo. :rtype: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] @@ -840,7 +840,7 @@ class TaskInfo: def app_component_list(self, app_component_list): """Sets the app_component_list of this TaskInfo. - 部署任务和应用组件对应关系 + 应用和AOM应用组件对应关系 :param app_component_list: The app_component_list of this TaskInfo. :type app_component_list: list[:class:`huaweicloudsdkclouddeploy.v2.AppComponentDao`] @@ -851,7 +851,7 @@ class TaskInfo: def role_id(self): """Gets the role_id of this TaskInfo. - 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 + 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 :return: The role_id of this TaskInfo. :rtype: int @@ -862,7 +862,7 @@ class TaskInfo: def role_id(self, role_id): """Sets the role_id of this TaskInfo. - 角色ID,0:部署任务创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 + 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者 :param role_id: The role_id of this TaskInfo. :type role_id: int @@ -895,7 +895,7 @@ class TaskInfo: def release_id(self): """Gets the release_id of this TaskInfo. - 任务序列id + 部署记录序列号 :return: The release_id of this TaskInfo. :rtype: int @@ -906,7 +906,7 @@ class TaskInfo: def release_id(self, release_id): """Sets the release_id of this TaskInfo. - 任务序列id + 部署记录序列号 :param release_id: The release_id of this TaskInfo. :type release_id: int @@ -917,7 +917,7 @@ class TaskInfo: def duration(self): """Gets the duration of this TaskInfo. - 执行时间 + 部署时间 :return: The duration of this TaskInfo. :rtype: str @@ -928,7 +928,7 @@ class TaskInfo: def duration(self, duration): """Sets the duration of this TaskInfo. - 执行时间 + 部署时间 :param duration: The duration of this TaskInfo. :type duration: str @@ -939,7 +939,7 @@ class TaskInfo: def execution_state(self): """Gets the execution_state of this TaskInfo. - 执行状态 + 部署状态 :return: The execution_state of this TaskInfo. :rtype: str @@ -950,7 +950,7 @@ class TaskInfo: def execution_state(self, execution_state): """Sets the execution_state of this TaskInfo. - 执行状态 + 部署状态 :param execution_state: The execution_state of this TaskInfo. :type execution_state: str @@ -961,7 +961,7 @@ class TaskInfo: def executor_id(self): """Gets the executor_id of this TaskInfo. - 执行者id + 部署者id :return: The executor_id of this TaskInfo. :rtype: str @@ -972,7 +972,7 @@ class TaskInfo: def executor_id(self, executor_id): """Sets the executor_id of this TaskInfo. - 执行者id + 部署者id :param executor_id: The executor_id of this TaskInfo. :type executor_id: str @@ -983,7 +983,7 @@ class TaskInfo: def executor_nick_name(self): """Gets the executor_nick_name of this TaskInfo. - 执行者名称 + 部署者名称 :return: The executor_nick_name of this TaskInfo. :rtype: str @@ -994,7 +994,7 @@ class TaskInfo: def executor_nick_name(self, executor_nick_name): """Sets the executor_nick_name of this TaskInfo. - 执行者名称 + 部署者名称 :param executor_nick_name: The executor_nick_name of this TaskInfo. :type executor_nick_name: str @@ -1005,7 +1005,7 @@ class TaskInfo: def steps(self): """Gets the steps of this TaskInfo. - 执行步骤 + 部署步骤 :return: The steps of this TaskInfo. :rtype: dict(str, Step) @@ -1016,7 +1016,7 @@ class TaskInfo: def steps(self, steps): """Sets the steps of this TaskInfo. - 执行步骤 + 部署步骤 :param steps: The steps of this TaskInfo. :type steps: dict(str, Step) diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_success_rate.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_success_rate.py index 8d961daaa..86d7cacbc 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_success_rate.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/task_success_rate.py @@ -42,13 +42,13 @@ class TaskSuccessRate: :param task_id: 任务id :type task_id: str - :param task_name: 任务名称 + :param task_name: 应用名称 :type task_name: str :param success_rate: 成功率 :type success_rate: str - :param record_count: 执行记录数 + :param record_count: 部署记录数 :type record_count: int - :param success_record_count: 成功的执行记录数 + :param success_record_count: 成功的部署记录数 :type success_record_count: int """ @@ -98,7 +98,7 @@ class TaskSuccessRate: def task_name(self): """Gets the task_name of this TaskSuccessRate. - 任务名称 + 应用名称 :return: The task_name of this TaskSuccessRate. :rtype: str @@ -109,7 +109,7 @@ class TaskSuccessRate: def task_name(self, task_name): """Sets the task_name of this TaskSuccessRate. - 任务名称 + 应用名称 :param task_name: The task_name of this TaskSuccessRate. :type task_name: str @@ -142,7 +142,7 @@ class TaskSuccessRate: def record_count(self): """Gets the record_count of this TaskSuccessRate. - 执行记录数 + 部署记录数 :return: The record_count of this TaskSuccessRate. :rtype: int @@ -153,7 +153,7 @@ class TaskSuccessRate: def record_count(self, record_count): """Sets the record_count of this TaskSuccessRate. - 执行记录数 + 部署记录数 :param record_count: The record_count of this TaskSuccessRate. :type record_count: int @@ -164,7 +164,7 @@ class TaskSuccessRate: def success_record_count(self): """Gets the success_record_count of this TaskSuccessRate. - 成功的执行记录数 + 成功的部署记录数 :return: The success_record_count of this TaskSuccessRate. :rtype: int @@ -175,7 +175,7 @@ class TaskSuccessRate: def success_record_count(self, success_record_count): """Sets the success_record_count of this TaskSuccessRate. - 成功的执行记录数 + 成功的部署记录数 :param success_record_count: The success_record_count of this TaskSuccessRate. :type success_record_count: int diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/tasks_success_rate_query.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/tasks_success_rate_query.py index 25a6173aa..f7458391d 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/tasks_success_rate_query.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/tasks_success_rate_query.py @@ -36,9 +36,9 @@ class TasksSuccessRateQuery: The model defined in huaweicloud sdk - :param start_date: 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + :param start_date: 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :type start_date: str - :param end_date: 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + :param end_date: 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :type end_date: str :param task_ids: 任务id列表 :type task_ids: list[str] @@ -59,7 +59,7 @@ class TasksSuccessRateQuery: def start_date(self): """Gets the start_date of this TasksSuccessRateQuery. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :return: The start_date of this TasksSuccessRateQuery. :rtype: str @@ -70,7 +70,7 @@ class TasksSuccessRateQuery: def start_date(self, start_date): """Sets the start_date of this TasksSuccessRateQuery. - 任务执行开始时间范围的左边界(包含),格式yyyy-MM-dd + 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd :param start_date: The start_date of this TasksSuccessRateQuery. :type start_date: str @@ -81,7 +81,7 @@ class TasksSuccessRateQuery: def end_date(self): """Gets the end_date of this TasksSuccessRateQuery. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :return: The end_date of this TasksSuccessRateQuery. :rtype: str @@ -92,7 +92,7 @@ class TasksSuccessRateQuery: def end_date(self, end_date): """Sets the end_date of this TasksSuccessRateQuery. - 任务执行开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 + 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。 :param end_date: The end_date of this TasksSuccessRateQuery. :type end_date: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/template_task_request_body.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/template_task_request_body.py index 8b5c0a8ab..6662fe246 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/template_task_request_body.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/template_task_request_body.py @@ -48,7 +48,7 @@ class TemplateTaskRequestBody: :type project_name: str :param template_id: 部署模板id :type template_id: str - :param task_name: 部署任务名称 + :param task_name: 应用名称 :type task_name: str :param slave_cluster_id: 自定义slave资源池id :type slave_cluster_id: str @@ -145,7 +145,7 @@ class TemplateTaskRequestBody: def task_name(self): """Gets the task_name of this TemplateTaskRequestBody. - 部署任务名称 + 应用名称 :return: The task_name of this TemplateTaskRequestBody. :rtype: str @@ -156,7 +156,7 @@ class TemplateTaskRequestBody: def task_name(self, task_name): """Sets the task_name of this TemplateTaskRequestBody. - 部署任务名称 + 应用名称 :param task_name: The task_name of this TemplateTaskRequestBody. :type task_name: str diff --git a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/region/clouddeploy_region.py b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/region/clouddeploy_region.py index a76edeaeb..5bcca2ca3 100755 --- a/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/region/clouddeploy_region.py +++ b/huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/region/clouddeploy_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudDeployRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDDEPLOY") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://clouddeploy.ap-southeast-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://clouddeploy.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://clouddeploy.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://clouddeploy.cn-east-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://clouddeploy.cn-north-4.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://clouddeploy.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://clouddeploy.la-north-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://clouddeploy.ap-southeast-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://clouddeploy.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://clouddeploy.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://clouddeploy.cn-east-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://clouddeploy.cn-north-4.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://clouddeploy.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://clouddeploy.la-north-2.myhuaweicloud.com") static_fields = { "ap-southeast-3": AP_SOUTHEAST_3, diff --git a/huaweicloud-sdk-clouddeploy/requirements.txt b/huaweicloud-sdk-clouddeploy/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-clouddeploy/requirements.txt +++ b/huaweicloud-sdk-clouddeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-clouddeploy/setup.py b/huaweicloud-sdk-clouddeploy/setup.py index 2c4bd29d3..ec93c691a 100755 --- a/huaweicloud-sdk-clouddeploy/setup.py +++ b/huaweicloud-sdk-clouddeploy/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclouddeploy" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/__init__.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/__init__.py index 2dd93b7b9..9e193c990 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/__init__.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/__init__.py @@ -23,7 +23,7 @@ from huaweicloudsdkcloudide.v2.model.check_name_request import CheckNameRequest from huaweicloudsdkcloudide.v2.model.check_name_response import CheckNameResponse from huaweicloudsdkcloudide.v2.model.check_result import CheckResult from huaweicloudsdkcloudide.v2.model.check_result_error import CheckResultError -from huaweicloudsdkcloudide.v2.model.cloud_ide_extension_version_property import CloudIDEExtensionVersionProperty +from huaweicloudsdkcloudide.v2.model.code_arts_ide_online_extension_version_property import CodeArtsIDEOnlineExtensionVersionProperty from huaweicloudsdkcloudide.v2.model.create_acceptance_request import CreateAcceptanceRequest from huaweicloudsdkcloudide.v2.model.create_acceptance_response import CreateAcceptanceResponse from huaweicloudsdkcloudide.v2.model.create_extension_authorization_request import CreateExtensionAuthorizationRequest @@ -32,6 +32,8 @@ from huaweicloudsdkcloudide.v2.model.create_instance_by3rd_request import Create from huaweicloudsdkcloudide.v2.model.create_instance_by3rd_response import CreateInstanceBy3rdResponse from huaweicloudsdkcloudide.v2.model.create_instance_request import CreateInstanceRequest from huaweicloudsdkcloudide.v2.model.create_instance_response import CreateInstanceResponse +from huaweicloudsdkcloudide.v2.model.create_login_request import CreateLoginRequest +from huaweicloudsdkcloudide.v2.model.create_login_response import CreateLoginResponse from huaweicloudsdkcloudide.v2.model.create_request_request import CreateRequestRequest from huaweicloudsdkcloudide.v2.model.create_request_response import CreateRequestResponse from huaweicloudsdkcloudide.v2.model.criteria_snake import CriteriaSnake @@ -73,6 +75,7 @@ from huaweicloudsdkcloudide.v2.model.list_project_templates_request import ListP from huaweicloudsdkcloudide.v2.model.list_project_templates_response import ListProjectTemplatesResponse from huaweicloudsdkcloudide.v2.model.list_stacks_request import ListStacksRequest from huaweicloudsdkcloudide.v2.model.list_stacks_response import ListStacksResponse +from huaweicloudsdkcloudide.v2.model.login_schema import LoginSchema from huaweicloudsdkcloudide.v2.model.page_instances_vo import PageInstancesVO from huaweicloudsdkcloudide.v2.model.plugin import Plugin from huaweicloudsdkcloudide.v2.model.project_templates import ProjectTemplates diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_async_client.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_async_client.py index 66a3beba6..731a1535b 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_async_client.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_async_client.py @@ -1977,6 +1977,67 @@ class CloudIDEAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_login_async(self, request): + """CreateLogin接口 + + create a login + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateLogin + :type request: :class:`huaweicloudsdkcloudide.v2.CreateLoginRequest` + :rtype: :class:`huaweicloudsdkcloudide.v2.CreateLoginResponse` + """ + return self.create_login_with_http_info(request) + + def create_login_with_http_info(self, request): + all_params = ['create_login_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/aims/codemodelserver/code-generation/login', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateLoginResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_request_async(self, request): """Create Request接口 diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_client.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_client.py index 40fcb00d1..ed0956659 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_client.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/cloudide_client.py @@ -1946,6 +1946,66 @@ class CloudIDEClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_login(self, request): + """CreateLogin接口 + + create a login + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateLogin + :type request: :class:`huaweicloudsdkcloudide.v2.CreateLoginRequest` + :rtype: :class:`huaweicloudsdkcloudide.v2.CreateLoginResponse` + """ + return self.create_login_with_http_info(request) + + def create_login_with_http_info(self, request): + all_params = ['create_login_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/aims/codemodelserver/code-generation/login', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateLoginResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_request(self, request): """Create Request接口 diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/__init__.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/__init__.py index e05446a78..ca98a8d2b 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/__init__.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/__init__.py @@ -20,7 +20,7 @@ from huaweicloudsdkcloudide.v2.model.check_name_request import CheckNameRequest from huaweicloudsdkcloudide.v2.model.check_name_response import CheckNameResponse from huaweicloudsdkcloudide.v2.model.check_result import CheckResult from huaweicloudsdkcloudide.v2.model.check_result_error import CheckResultError -from huaweicloudsdkcloudide.v2.model.cloud_ide_extension_version_property import CloudIDEExtensionVersionProperty +from huaweicloudsdkcloudide.v2.model.code_arts_ide_online_extension_version_property import CodeArtsIDEOnlineExtensionVersionProperty from huaweicloudsdkcloudide.v2.model.create_acceptance_request import CreateAcceptanceRequest from huaweicloudsdkcloudide.v2.model.create_acceptance_response import CreateAcceptanceResponse from huaweicloudsdkcloudide.v2.model.create_extension_authorization_request import CreateExtensionAuthorizationRequest @@ -29,6 +29,8 @@ from huaweicloudsdkcloudide.v2.model.create_instance_by3rd_request import Create from huaweicloudsdkcloudide.v2.model.create_instance_by3rd_response import CreateInstanceBy3rdResponse from huaweicloudsdkcloudide.v2.model.create_instance_request import CreateInstanceRequest from huaweicloudsdkcloudide.v2.model.create_instance_response import CreateInstanceResponse +from huaweicloudsdkcloudide.v2.model.create_login_request import CreateLoginRequest +from huaweicloudsdkcloudide.v2.model.create_login_response import CreateLoginResponse from huaweicloudsdkcloudide.v2.model.create_request_request import CreateRequestRequest from huaweicloudsdkcloudide.v2.model.create_request_response import CreateRequestResponse from huaweicloudsdkcloudide.v2.model.criteria_snake import CriteriaSnake @@ -70,6 +72,7 @@ from huaweicloudsdkcloudide.v2.model.list_project_templates_request import ListP from huaweicloudsdkcloudide.v2.model.list_project_templates_response import ListProjectTemplatesResponse from huaweicloudsdkcloudide.v2.model.list_stacks_request import ListStacksRequest from huaweicloudsdkcloudide.v2.model.list_stacks_response import ListStacksResponse +from huaweicloudsdkcloudide.v2.model.login_schema import LoginSchema from huaweicloudsdkcloudide.v2.model.page_instances_vo import PageInstancesVO from huaweicloudsdkcloudide.v2.model.plugin import Plugin from huaweicloudsdkcloudide.v2.model.project_templates import ProjectTemplates diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/check_instance_access_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/check_instance_access_request.py index 0469590d3..be885eed5 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/check_instance_access_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/check_instance_access_request.py @@ -32,7 +32,7 @@ class CheckInstanceAccessRequest: The model defined in huaweicloud sdk - :param instance_id: CloudIDE实例id + :param instance_id: CodeArtsIDEOnline实例id :type instance_id: str """ @@ -47,7 +47,7 @@ class CheckInstanceAccessRequest: def instance_id(self): """Gets the instance_id of this CheckInstanceAccessRequest. - CloudIDE实例id + CodeArtsIDEOnline实例id :return: The instance_id of this CheckInstanceAccessRequest. :rtype: str @@ -58,7 +58,7 @@ class CheckInstanceAccessRequest: def instance_id(self, instance_id): """Sets the instance_id of this CheckInstanceAccessRequest. - CloudIDE实例id + CodeArtsIDEOnline实例id :param instance_id: The instance_id of this CheckInstanceAccessRequest. :type instance_id: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/cloud_ide_extension_version_property.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/code_arts_ide_online_extension_version_property.py similarity index 73% rename from huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/cloud_ide_extension_version_property.py rename to huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/code_arts_ide_online_extension_version_property.py index f2b9b8ee9..cc880d8c5 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/cloud_ide_extension_version_property.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/code_arts_ide_online_extension_version_property.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class CloudIDEExtensionVersionProperty: +class CodeArtsIDEOnlineExtensionVersionProperty: """ Attributes: @@ -38,7 +38,7 @@ class CloudIDEExtensionVersionProperty: } def __init__(self, id=None, property_name=None, property_value=None, extension_version_id=None, created_at=None, updated_at=None): - """CloudIDEExtensionVersionProperty + """CodeArtsIDEOnlineExtensionVersionProperty The model defined in huaweicloud sdk @@ -81,132 +81,132 @@ class CloudIDEExtensionVersionProperty: @property def id(self): - """Gets the id of this CloudIDEExtensionVersionProperty. + """Gets the id of this CodeArtsIDEOnlineExtensionVersionProperty. id - :return: The id of this CloudIDEExtensionVersionProperty. + :return: The id of this CodeArtsIDEOnlineExtensionVersionProperty. :rtype: int """ return self._id @id.setter def id(self, id): - """Sets the id of this CloudIDEExtensionVersionProperty. + """Sets the id of this CodeArtsIDEOnlineExtensionVersionProperty. id - :param id: The id of this CloudIDEExtensionVersionProperty. + :param id: The id of this CodeArtsIDEOnlineExtensionVersionProperty. :type id: int """ self._id = id @property def property_name(self): - """Gets the property_name of this CloudIDEExtensionVersionProperty. + """Gets the property_name of this CodeArtsIDEOnlineExtensionVersionProperty. 参数名 - :return: The property_name of this CloudIDEExtensionVersionProperty. + :return: The property_name of this CodeArtsIDEOnlineExtensionVersionProperty. :rtype: str """ return self._property_name @property_name.setter def property_name(self, property_name): - """Sets the property_name of this CloudIDEExtensionVersionProperty. + """Sets the property_name of this CodeArtsIDEOnlineExtensionVersionProperty. 参数名 - :param property_name: The property_name of this CloudIDEExtensionVersionProperty. + :param property_name: The property_name of this CodeArtsIDEOnlineExtensionVersionProperty. :type property_name: str """ self._property_name = property_name @property def property_value(self): - """Gets the property_value of this CloudIDEExtensionVersionProperty. + """Gets the property_value of this CodeArtsIDEOnlineExtensionVersionProperty. 参数值 - :return: The property_value of this CloudIDEExtensionVersionProperty. + :return: The property_value of this CodeArtsIDEOnlineExtensionVersionProperty. :rtype: str """ return self._property_value @property_value.setter def property_value(self, property_value): - """Sets the property_value of this CloudIDEExtensionVersionProperty. + """Sets the property_value of this CodeArtsIDEOnlineExtensionVersionProperty. 参数值 - :param property_value: The property_value of this CloudIDEExtensionVersionProperty. + :param property_value: The property_value of this CodeArtsIDEOnlineExtensionVersionProperty. :type property_value: str """ self._property_value = property_value @property def extension_version_id(self): - """Gets the extension_version_id of this CloudIDEExtensionVersionProperty. + """Gets the extension_version_id of this CodeArtsIDEOnlineExtensionVersionProperty. 插件版本id - :return: The extension_version_id of this CloudIDEExtensionVersionProperty. + :return: The extension_version_id of this CodeArtsIDEOnlineExtensionVersionProperty. :rtype: str """ return self._extension_version_id @extension_version_id.setter def extension_version_id(self, extension_version_id): - """Sets the extension_version_id of this CloudIDEExtensionVersionProperty. + """Sets the extension_version_id of this CodeArtsIDEOnlineExtensionVersionProperty. 插件版本id - :param extension_version_id: The extension_version_id of this CloudIDEExtensionVersionProperty. + :param extension_version_id: The extension_version_id of this CodeArtsIDEOnlineExtensionVersionProperty. :type extension_version_id: str """ self._extension_version_id = extension_version_id @property def created_at(self): - """Gets the created_at of this CloudIDEExtensionVersionProperty. + """Gets the created_at of this CodeArtsIDEOnlineExtensionVersionProperty. 创建时间 - :return: The created_at of this CloudIDEExtensionVersionProperty. + :return: The created_at of this CodeArtsIDEOnlineExtensionVersionProperty. :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): - """Sets the created_at of this CloudIDEExtensionVersionProperty. + """Sets the created_at of this CodeArtsIDEOnlineExtensionVersionProperty. 创建时间 - :param created_at: The created_at of this CloudIDEExtensionVersionProperty. + :param created_at: The created_at of this CodeArtsIDEOnlineExtensionVersionProperty. :type created_at: datetime """ self._created_at = created_at @property def updated_at(self): - """Gets the updated_at of this CloudIDEExtensionVersionProperty. + """Gets the updated_at of this CodeArtsIDEOnlineExtensionVersionProperty. 更新时间 - :return: The updated_at of this CloudIDEExtensionVersionProperty. + :return: The updated_at of this CodeArtsIDEOnlineExtensionVersionProperty. :rtype: datetime """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): - """Sets the updated_at of this CloudIDEExtensionVersionProperty. + """Sets the updated_at of this CodeArtsIDEOnlineExtensionVersionProperty. 更新时间 - :param updated_at: The updated_at of this CloudIDEExtensionVersionProperty. + :param updated_at: The updated_at of this CodeArtsIDEOnlineExtensionVersionProperty. :type updated_at: datetime """ self._updated_at = updated_at @@ -253,7 +253,7 @@ class CloudIDEExtensionVersionProperty: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, CloudIDEExtensionVersionProperty): + if not isinstance(other, CodeArtsIDEOnlineExtensionVersionProperty): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_extension_authorization_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_extension_authorization_request.py index db47d3d2f..d51e88830 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_extension_authorization_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_extension_authorization_request.py @@ -34,7 +34,7 @@ class CreateExtensionAuthorizationRequest: The model defined in huaweicloud sdk - :param instance_id: CloudIDE实例ID + :param instance_id: CodeArtsIDEOnline实例ID :type instance_id: str :param body: Body of the CreateExtensionAuthorizationRequest :type body: :class:`huaweicloudsdkcloudide.v2.ExtensionAuthorization` @@ -54,7 +54,7 @@ class CreateExtensionAuthorizationRequest: def instance_id(self): """Gets the instance_id of this CreateExtensionAuthorizationRequest. - CloudIDE实例ID + CodeArtsIDEOnline实例ID :return: The instance_id of this CreateExtensionAuthorizationRequest. :rtype: str @@ -65,7 +65,7 @@ class CreateExtensionAuthorizationRequest: def instance_id(self, instance_id): """Sets the instance_id of this CreateExtensionAuthorizationRequest. - CloudIDE实例ID + CodeArtsIDEOnline实例ID :param instance_id: The instance_id of this CreateExtensionAuthorizationRequest. :type instance_id: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_instance_by3rd_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_instance_by3rd_request.py index 65f827713..559e4777d 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_instance_by3rd_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_instance_by3rd_request.py @@ -34,7 +34,7 @@ class CreateInstanceBy3rdRequest: The model defined in huaweicloud sdk - :param instance_label: 实例标签(不同的第三方需要和CloudIDE服务共同设定标签)。不传默认为classroom + :param instance_label: 实例标签(不同的第三方需要和CodeArtsIDEOnline服务共同设定标签)。不传默认为classroom :type instance_label: str :param body: Body of the CreateInstanceBy3rdRequest :type body: :class:`huaweicloudsdkcloudide.v2.InstanceEdgeParam` @@ -55,7 +55,7 @@ class CreateInstanceBy3rdRequest: def instance_label(self): """Gets the instance_label of this CreateInstanceBy3rdRequest. - 实例标签(不同的第三方需要和CloudIDE服务共同设定标签)。不传默认为classroom + 实例标签(不同的第三方需要和CodeArtsIDEOnline服务共同设定标签)。不传默认为classroom :return: The instance_label of this CreateInstanceBy3rdRequest. :rtype: str @@ -66,7 +66,7 @@ class CreateInstanceBy3rdRequest: def instance_label(self, instance_label): """Sets the instance_label of this CreateInstanceBy3rdRequest. - 实例标签(不同的第三方需要和CloudIDE服务共同设定标签)。不传默认为classroom + 实例标签(不同的第三方需要和CodeArtsIDEOnline服务共同设定标签)。不传默认为classroom :param instance_label: The instance_label of this CreateInstanceBy3rdRequest. :type instance_label: str diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_request.py similarity index 78% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_request.py rename to huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_request.py index 7910a27fe..0b6b3e1a8 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCreateInstanceRequest: +class CreateLoginRequest: """ Attributes: @@ -20,7 +20,7 @@ class RunCreateInstanceRequest: sensitive_list = [] openapi_types = { - 'body': 'CreateInstanceReq' + 'body': 'LoginSchema' } attribute_map = { @@ -28,12 +28,12 @@ class RunCreateInstanceRequest: } def __init__(self, body=None): - """RunCreateInstanceRequest + """CreateLoginRequest The model defined in huaweicloud sdk - :param body: Body of the RunCreateInstanceRequest - :type body: :class:`huaweicloudsdkimagesearch.v1.CreateInstanceReq` + :param body: Body of the CreateLoginRequest + :type body: :class:`huaweicloudsdkcloudide.v2.LoginSchema` """ @@ -46,19 +46,19 @@ class RunCreateInstanceRequest: @property def body(self): - """Gets the body of this RunCreateInstanceRequest. + """Gets the body of this CreateLoginRequest. - :return: The body of this RunCreateInstanceRequest. - :rtype: :class:`huaweicloudsdkimagesearch.v1.CreateInstanceReq` + :return: The body of this CreateLoginRequest. + :rtype: :class:`huaweicloudsdkcloudide.v2.LoginSchema` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunCreateInstanceRequest. + """Sets the body of this CreateLoginRequest. - :param body: The body of this RunCreateInstanceRequest. - :type body: :class:`huaweicloudsdkimagesearch.v1.CreateInstanceReq` + :param body: The body of this CreateLoginRequest. + :type body: :class:`huaweicloudsdkcloudide.v2.LoginSchema` """ self._body = body @@ -104,7 +104,7 @@ class RunCreateInstanceRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCreateInstanceRequest): + if not isinstance(other, CreateLoginRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_response.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_response.py new file mode 100755 index 000000000..4a41ea25a --- /dev/null +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/create_login_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLoginResponse(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 = { + 'login_id': 'int' + } + + attribute_map = { + 'login_id': 'login_id' + } + + def __init__(self, login_id=None): + """CreateLoginResponse + + The model defined in huaweicloud sdk + + :param login_id: login_id + :type login_id: int + """ + + super(CreateLoginResponse, self).__init__() + + self._login_id = None + self.discriminator = None + + if login_id is not None: + self.login_id = login_id + + @property + def login_id(self): + """Gets the login_id of this CreateLoginResponse. + + login_id + + :return: The login_id of this CreateLoginResponse. + :rtype: int + """ + return self._login_id + + @login_id.setter + def login_id(self, login_id): + """Sets the login_id of this CreateLoginResponse. + + login_id + + :param login_id: The login_id of this CreateLoginResponse. + :type login_id: int + """ + self._login_id = login_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, CreateLoginResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/expire_vo.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/expire_vo.py index 1229e1298..5dc4fd5d2 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/expire_vo.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/expire_vo.py @@ -38,9 +38,9 @@ class ExpireVo: :param expiration: 过期时间。UNIX时间戳,单位毫秒。eg:1635905480465 :type expiration: int - :param instance_id: CloudIDE实例id + :param instance_id: CodeArtsIDEOnline实例id :type instance_id: str - :param interval: CloudIDE实例自动休眠时长,单位‘分钟’ + :param interval: CodeArtsIDEOnline实例自动休眠时长,单位‘分钟’ :type interval: int """ @@ -84,7 +84,7 @@ class ExpireVo: def instance_id(self): """Gets the instance_id of this ExpireVo. - CloudIDE实例id + CodeArtsIDEOnline实例id :return: The instance_id of this ExpireVo. :rtype: str @@ -95,7 +95,7 @@ class ExpireVo: def instance_id(self, instance_id): """Sets the instance_id of this ExpireVo. - CloudIDE实例id + CodeArtsIDEOnline实例id :param instance_id: The instance_id of this ExpireVo. :type instance_id: str @@ -106,7 +106,7 @@ class ExpireVo: def interval(self): """Gets the interval of this ExpireVo. - CloudIDE实例自动休眠时长,单位‘分钟’ + CodeArtsIDEOnline实例自动休眠时长,单位‘分钟’ :return: The interval of this ExpireVo. :rtype: int @@ -117,7 +117,7 @@ class ExpireVo: def interval(self, interval): """Sets the interval of this ExpireVo. - CloudIDE实例自动休眠时长,单位‘分钟’ + CodeArtsIDEOnline实例自动休眠时长,单位‘分钟’ :param interval: The interval of this ExpireVo. :type interval: int diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_authorization.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_authorization.py index 62c570ee5..f9775efc0 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_authorization.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_authorization.py @@ -42,7 +42,7 @@ class ExtensionAuthorization: :type extension_version: str :param identifier: 插件标识(发布者.插件名) :type identifier: str - :param instance_id: CloudIDE实例ID + :param instance_id: CodeArtsIDEOnline实例ID :type instance_id: str :param status: 插件状态。 - AGREE 同意 - REJECT 不同意 - UNKNOWN 未知(下次重新询问) :type status: str @@ -110,7 +110,7 @@ class ExtensionAuthorization: def instance_id(self): """Gets the instance_id of this ExtensionAuthorization. - CloudIDE实例ID + CodeArtsIDEOnline实例ID :return: The instance_id of this ExtensionAuthorization. :rtype: str @@ -121,7 +121,7 @@ class ExtensionAuthorization: def instance_id(self, instance_id): """Sets the instance_id of this ExtensionAuthorization. - CloudIDE实例ID + CodeArtsIDEOnline实例ID :param instance_id: The instance_id of this ExtensionAuthorization. :type instance_id: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_version_snake.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_version_snake.py index 846bd3faf..4aca550b3 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_version_snake.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/extension_version_snake.py @@ -46,7 +46,7 @@ class ExtensionVersionSnake: 'issue_link': 'str', 'asset_size': 'int', 'depends': 'list[str]', - 'property_list': 'list[CloudIDEExtensionVersionProperty]', + 'property_list': 'list[CodeArtsIDEOnlineExtensionVersionProperty]', 'uploader': 'str', 'extension_id': 'str' } @@ -140,8 +140,8 @@ class ExtensionVersionSnake: :type asset_size: int :param depends: 依赖插件 :type depends: list[str] - :param property_list: cloudide插件版本参数 - :type property_list: list[:class:`huaweicloudsdkcloudide.v2.CloudIDEExtensionVersionProperty`] + :param property_list: CodeArtsIDEOnline插件版本参数 + :type property_list: list[:class:`huaweicloudsdkcloudide.v2.CodeArtsIDEOnlineExtensionVersionProperty`] :param uploader: 版本发布者 :type uploader: str :param extension_id: 插件id @@ -816,10 +816,10 @@ class ExtensionVersionSnake: def property_list(self): """Gets the property_list of this ExtensionVersionSnake. - cloudide插件版本参数 + CodeArtsIDEOnline插件版本参数 :return: The property_list of this ExtensionVersionSnake. - :rtype: list[:class:`huaweicloudsdkcloudide.v2.CloudIDEExtensionVersionProperty`] + :rtype: list[:class:`huaweicloudsdkcloudide.v2.CodeArtsIDEOnlineExtensionVersionProperty`] """ return self._property_list @@ -827,10 +827,10 @@ class ExtensionVersionSnake: def property_list(self, property_list): """Sets the property_list of this ExtensionVersionSnake. - cloudide插件版本参数 + CodeArtsIDEOnline插件版本参数 :param property_list: The property_list of this ExtensionVersionSnake. - :type property_list: list[:class:`huaweicloudsdkcloudide.v2.CloudIDEExtensionVersionProperty`] + :type property_list: list[:class:`huaweicloudsdkcloudide.v2.CodeArtsIDEOnlineExtensionVersionProperty`] """ self._property_list = property_list diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/instance_param.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/instance_param.py index 7c0bce150..913fb73cb 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/instance_param.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/instance_param.py @@ -82,7 +82,7 @@ class InstanceParam: :type display_name: str :param is_temporary: 是否页面显示(以标签配置为准) :type is_temporary: bool - :param label_tag: 实例标签(不同的第三方需要和CloudIDE服务共同设定标签),不传默认为default + :param label_tag: 实例标签(不同的第三方需要和CodeArtsIDEOnline服务共同设定标签),不传默认为default :type label_tag: str :param plugin_enable_list: 预装插件列表 :type plugin_enable_list: list[str] @@ -308,7 +308,7 @@ class InstanceParam: def label_tag(self): """Gets the label_tag of this InstanceParam. - 实例标签(不同的第三方需要和CloudIDE服务共同设定标签),不传默认为default + 实例标签(不同的第三方需要和CodeArtsIDEOnline服务共同设定标签),不传默认为default :return: The label_tag of this InstanceParam. :rtype: str @@ -319,7 +319,7 @@ class InstanceParam: def label_tag(self, label_tag): """Sets the label_tag of this InstanceParam. - 实例标签(不同的第三方需要和CloudIDE服务共同设定标签),不传默认为default + 实例标签(不同的第三方需要和CodeArtsIDEOnline服务共同设定标签),不传默认为default :param label_tag: The label_tag of this InstanceParam. :type label_tag: str diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_item.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/login_schema.py similarity index 50% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_item.py rename to huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/login_schema.py index 911c7476f..08b0986b1 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_item.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/login_schema.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class SearchPictureItem: +class LoginSchema: """ Attributes: @@ -20,109 +20,106 @@ class SearchPictureItem: sensitive_list = [] openapi_types = { - 'path': 'str', - 'sim': 'float', - 'tags': 'object' + 'ide_type': 'str', + 'ide_version': 'str', + 'plugin_version': 'str' } attribute_map = { - 'path': 'path', - 'sim': 'sim', - 'tags': 'tags' + 'ide_type': 'ide_type', + 'ide_version': 'ide_version', + 'plugin_version': 'plugin_version' } - def __init__(self, path=None, sim=None, tags=None): - """SearchPictureItem + def __init__(self, ide_type=None, ide_version=None, plugin_version=None): + """LoginSchema The model defined in huaweicloud sdk - :param path: 被搜索图片的路径。 - :type path: str - :param sim: 查询图片和被搜索图片的相似度,值越接近1表示越相似。 - :type sim: float - :param tags: 自定义的标签名称和标签内容。 - :type tags: object + :param ide_type: ide_type + :type ide_type: str + :param ide_version: ide_version + :type ide_version: str + :param plugin_version: plugin_version + :type plugin_version: str """ - self._path = None - self._sim = None - self._tags = None + self._ide_type = None + self._ide_version = None + self._plugin_version = None self.discriminator = None - if path is not None: - self.path = path - if sim is not None: - self.sim = sim - if tags is not None: - self.tags = tags + self.ide_type = ide_type + self.ide_version = ide_version + self.plugin_version = plugin_version @property - def path(self): - """Gets the path of this SearchPictureItem. + def ide_type(self): + """Gets the ide_type of this LoginSchema. - 被搜索图片的路径。 + ide_type - :return: The path of this SearchPictureItem. + :return: The ide_type of this LoginSchema. :rtype: str """ - return self._path + return self._ide_type - @path.setter - def path(self, path): - """Sets the path of this SearchPictureItem. + @ide_type.setter + def ide_type(self, ide_type): + """Sets the ide_type of this LoginSchema. - 被搜索图片的路径。 + ide_type - :param path: The path of this SearchPictureItem. - :type path: str + :param ide_type: The ide_type of this LoginSchema. + :type ide_type: str """ - self._path = path + self._ide_type = ide_type @property - def sim(self): - """Gets the sim of this SearchPictureItem. + def ide_version(self): + """Gets the ide_version of this LoginSchema. - 查询图片和被搜索图片的相似度,值越接近1表示越相似。 + ide_version - :return: The sim of this SearchPictureItem. - :rtype: float + :return: The ide_version of this LoginSchema. + :rtype: str """ - return self._sim + return self._ide_version - @sim.setter - def sim(self, sim): - """Sets the sim of this SearchPictureItem. + @ide_version.setter + def ide_version(self, ide_version): + """Sets the ide_version of this LoginSchema. - 查询图片和被搜索图片的相似度,值越接近1表示越相似。 + ide_version - :param sim: The sim of this SearchPictureItem. - :type sim: float + :param ide_version: The ide_version of this LoginSchema. + :type ide_version: str """ - self._sim = sim + self._ide_version = ide_version @property - def tags(self): - """Gets the tags of this SearchPictureItem. + def plugin_version(self): + """Gets the plugin_version of this LoginSchema. - 自定义的标签名称和标签内容。 + plugin_version - :return: The tags of this SearchPictureItem. - :rtype: object + :return: The plugin_version of this LoginSchema. + :rtype: str """ - return self._tags + return self._plugin_version - @tags.setter - def tags(self, tags): - """Sets the tags of this SearchPictureItem. + @plugin_version.setter + def plugin_version(self, plugin_version): + """Sets the plugin_version of this LoginSchema. - 自定义的标签名称和标签内容。 + plugin_version - :param tags: The tags of this SearchPictureItem. - :type tags: object + :param plugin_version: The plugin_version of this LoginSchema. + :type plugin_version: str """ - self._tags = tags + self._plugin_version = plugin_version def to_dict(self): """Returns the model properties as a dict""" @@ -166,7 +163,7 @@ class SearchPictureItem: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, SearchPictureItem): + if not isinstance(other, LoginSchema): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_extension_authorization_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_extension_authorization_request.py index 5dc172b58..c4a146680 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_extension_authorization_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_extension_authorization_request.py @@ -40,7 +40,7 @@ class ShowExtensionAuthorizationRequest: :type extension_version: str :param identifier: 插件标识(发布者.插件名) :type identifier: str - :param instance_id: CloudIDE实例ID + :param instance_id: CodeArtsIDEOnline实例ID :type instance_id: str """ @@ -103,7 +103,7 @@ class ShowExtensionAuthorizationRequest: def instance_id(self): """Gets the instance_id of this ShowExtensionAuthorizationRequest. - CloudIDE实例ID + CodeArtsIDEOnline实例ID :return: The instance_id of this ShowExtensionAuthorizationRequest. :rtype: str @@ -114,7 +114,7 @@ class ShowExtensionAuthorizationRequest: def instance_id(self, instance_id): """Sets the instance_id of this ShowExtensionAuthorizationRequest. - CloudIDE实例ID + CodeArtsIDEOnline实例ID :param instance_id: The instance_id of this ShowExtensionAuthorizationRequest. :type instance_id: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_instance_status_info_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_instance_status_info_request.py index b453cf2e2..b4ddce70a 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_instance_status_info_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_instance_status_info_request.py @@ -32,7 +32,7 @@ class ShowInstanceStatusInfoRequest: The model defined in huaweicloud sdk - :param instance_id: CloudIDE实例id + :param instance_id: CodeArtsIDEOnline实例id :type instance_id: str """ @@ -47,7 +47,7 @@ class ShowInstanceStatusInfoRequest: def instance_id(self): """Gets the instance_id of this ShowInstanceStatusInfoRequest. - CloudIDE实例id + CodeArtsIDEOnline实例id :return: The instance_id of this ShowInstanceStatusInfoRequest. :rtype: str @@ -58,7 +58,7 @@ class ShowInstanceStatusInfoRequest: def instance_id(self, instance_id): """Sets the instance_id of this ShowInstanceStatusInfoRequest. - CloudIDE实例id + CodeArtsIDEOnline实例id :param instance_id: The instance_id of this ShowInstanceStatusInfoRequest. :type instance_id: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/update_instance_activity_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/update_instance_activity_request.py index ebf0169da..32ee88b2c 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/update_instance_activity_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/update_instance_activity_request.py @@ -32,7 +32,7 @@ class UpdateInstanceActivityRequest: The model defined in huaweicloud sdk - :param instance_id: CloudIDE实例id + :param instance_id: CodeArtsIDEOnline实例id :type instance_id: str """ @@ -47,7 +47,7 @@ class UpdateInstanceActivityRequest: def instance_id(self): """Gets the instance_id of this UpdateInstanceActivityRequest. - CloudIDE实例id + CodeArtsIDEOnline实例id :return: The instance_id of this UpdateInstanceActivityRequest. :rtype: str @@ -58,7 +58,7 @@ class UpdateInstanceActivityRequest: def instance_id(self, instance_id): """Sets the instance_id of this UpdateInstanceActivityRequest. - CloudIDE实例id + CodeArtsIDEOnline实例id :param instance_id: The instance_id of this UpdateInstanceActivityRequest. :type instance_id: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/upload_extension_file_request.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/upload_extension_file_request.py index 22dcb7790..f171ef5b8 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/upload_extension_file_request.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/upload_extension_file_request.py @@ -34,7 +34,7 @@ class UploadExtensionFileRequest: The model defined in huaweicloud sdk - :param official: 插件类型。目前只支持CloudIDE + :param official: 插件类型。目前只支持CodeArtsIDEOnline :type official: str :param body: Body of the UploadExtensionFileRequest :type body: :class:`huaweicloudsdkcloudide.v2.UploadExtensionFileRequestBody` @@ -54,7 +54,7 @@ class UploadExtensionFileRequest: def official(self): """Gets the official of this UploadExtensionFileRequest. - 插件类型。目前只支持CloudIDE + 插件类型。目前只支持CodeArtsIDEOnline :return: The official of this UploadExtensionFileRequest. :rtype: str @@ -65,7 +65,7 @@ class UploadExtensionFileRequest: def official(self, official): """Sets the official of this UploadExtensionFileRequest. - 插件类型。目前只支持CloudIDE + 插件类型。目前只支持CodeArtsIDEOnline :param official: The official of this UploadExtensionFileRequest. :type official: str diff --git a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py index c54f9b582..e8fa33b25 100755 --- a/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py +++ b/huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/region/cloudide_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudIDERegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDIDE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cloudide.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cloudide.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index c3317fec9..18619064a 100755 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpipeline/huaweicloudsdkcloudpipeline/v2/region/cloudpipeline_region.py b/huaweicloud-sdk-cloudpipeline/huaweicloudsdkcloudpipeline/v2/region/cloudpipeline_region.py index 1abf46d97..a300b4420 100755 --- a/huaweicloud-sdk-cloudpipeline/huaweicloudsdkcloudpipeline/v2/region/cloudpipeline_region.py +++ b/huaweicloud-sdk-cloudpipeline/huaweicloudsdkcloudpipeline/v2/region/cloudpipeline_region.py @@ -9,18 +9,18 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudPipelineRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDPIPELINE") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cloudpipeline-ext.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cloudpipeline-ext.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cloudpipeline-ext.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cloudpipeline-ext.cn-south-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cloudpipeline-ext.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cloudpipeline-ext.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cloudpipeline-ext.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cloudpipeline-ext.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cloudpipeline-ext.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cloudpipeline-ext.cn-south-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cloudpipeline-ext.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cloudpipeline-ext.cn-east-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cloudpipeline/requirements.txt b/huaweicloud-sdk-cloudpipeline/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cloudpipeline/requirements.txt +++ b/huaweicloud-sdk-cloudpipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index 7178709dc..b9db2b10d 100755 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 2e02b5130..ee801ffd5 100755 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v1/region/cloudrtc_region.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v1/region/cloudrtc_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudRTCRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDRTC") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://rtc-api.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://rtc-api.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py index 2e02b5130..ee801ffd5 100755 --- a/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py +++ b/huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/region/cloudrtc_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudRTCRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDRTC") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://rtc-api.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://rtc-api.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index b24f9e053..e67250241 100755 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 aa6991e93..13d5dd0ae 100755 --- a/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/region/cloudtable_region.py +++ b/huaweicloud-sdk-cloudtable/huaweicloudsdkcloudtable/v2/region/cloudtable_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudTableRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDTABLE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cloudtable.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cloudtable.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 30295742a..232622bfa 100755 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a60ee1c4e..d82f2d141 100755 --- a/huaweicloud-sdk-cloudtest/huaweicloudsdkcloudtest/v1/region/cloudtest_region.py +++ b/huaweicloud-sdk-cloudtest/huaweicloudsdkcloudtest/v1/region/cloudtest_region.py @@ -9,24 +9,24 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CloudtestRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CLOUDTEST") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cloudtest-ext.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cloudtest-ext.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cloudtest-ext.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cloudtest-ext.cn-south-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cloudtest-ext.cn-east-2.myhuaweicloud.cn") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cloudtest-ext.cn-east-3.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cloudtest-ext.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cloudtest-ext.sa-brazil-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cloudtest-ext.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cloudtest-ext.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cloudtest-ext.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cloudtest-ext.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cloudtest-ext.cn-south-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cloudtest-ext.cn-east-2.myhuaweicloud.cn") + CN_EAST_3 = Region("cn-east-3", + "https://cloudtest-ext.cn-east-3.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cloudtest-ext.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cloudtest-ext.sa-brazil-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cloudtest-ext.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index e655e1ab4..a11ee568d 100755 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 84ae9cf01..864b7ebcc 100755 --- a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/region/codeartsartifact_region.py +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/region/codeartsartifact_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CodeArtsArtifactRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CODEARTSARTIFACT") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cloudartifacts-ext.cn-east-3.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cloudartifacts-ext.cn-east-3.myhuaweicloud.com") static_fields = { "cn-east-3": CN_EAST_3, diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 031f8fbed..9a5ab59f9 100755 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 96a48c975..cb29a8a51 100755 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py @@ -9,26 +9,26 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CodeArtsBuildRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CODEARTSBUILD") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cloudbuild-ext.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cloudbuild-ext.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cloudbuild-ext.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cloudbuild-ext.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cloudbuild-ext.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cloudbuild-ext.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cloudbuild-ext.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cloudbuild-ext.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cloudbuild-ext.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cloudbuild-ext.la-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cloudbuild-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cloudbuild-ext.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cloudbuild-ext.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cloudbuild-ext.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cloudbuild-ext.cn-east-3.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cloudbuild-ext.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cloudbuild-ext.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cloudbuild-ext.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cloudbuild-ext.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cloudbuild-ext.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 7d33ecd9d..6479343df 100755 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py index 94ae6a9fb..76be4f472 100755 --- a/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py +++ b/huaweicloud-sdk-codecheck/huaweicloudsdkcodecheck/v2/region/codecheck_region.py @@ -9,22 +9,22 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CodeCheckRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CODECHECK") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://codecheck-ext.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://codecheck-ext.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://codecheck-ext.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://codecheck-ext.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://codecheck-ext.cn-east-3.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://codecheck-ext.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://codecheck-ext.sa-brazil-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://codecheck-ext.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://codecheck-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://codecheck-ext.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://codecheck-ext.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://codecheck-ext.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://codecheck-ext.cn-east-3.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://codecheck-ext.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://codecheck-ext.sa-brazil-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://codecheck-ext.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-codecheck/requirements.txt b/huaweicloud-sdk-codecheck/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-codecheck/requirements.txt +++ b/huaweicloud-sdk-codecheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-codecheck/setup.py b/huaweicloud-sdk-codecheck/setup.py index 34eee7e09..9bb471785 100755 --- a/huaweicloud-sdk-codecheck/setup.py +++ b/huaweicloud-sdk-codecheck/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecheck" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 e74c82bea..f2852cb10 100755 --- a/huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/region/codecraft_region.py +++ b/huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/region/codecraft_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CodeCraftRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CODECRAFT") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://codecraft.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://codecraft.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index a38f90f83..406e972c0 100755 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 60aec305b..2e70bec08 100755 --- a/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/region/codehub_region.py +++ b/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/region/codehub_region.py @@ -9,24 +9,24 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CodeHubRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CODEHUB") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://codehub-ext.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://codehub-ext.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://codehub-ext.cn-east-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://codehub-ext.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://codehub-ext.cn-north-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://codehub-ext.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://codehub-ext.cn-southwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://codehub-ext.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://codehub-ext.la-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://codehub-ext.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://codehub-ext.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://codehub-ext.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://codehub-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://codehub-ext.cn-north-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://codehub-ext.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://codehub-ext.cn-southwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://codehub-ext.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://codehub-ext.la-north-2.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index b77a89123..0db32b57e 100755 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 6d680bbab..ecb4b3593 100755 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.25" +VERSION = "3.1.26" 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 8b61eed35..a758fb3be 100755 --- a/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/region/cph_region.py +++ b/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/region/cph_region.py @@ -9,22 +9,22 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CphRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CPH") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://cph.ru-northwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cph.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cph.ap-southeast-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cph.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cph.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cph.cn-southwest-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cph.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cph.cn-east-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://cph.ru-northwest-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cph.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cph.ap-southeast-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cph.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cph.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cph.cn-southwest-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cph.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cph.cn-east-2.myhuaweicloud.com") static_fields = { "ru-northwest-2": RU_NORTHWEST_2, diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index b5ae64691..e6f7be9ee 100755 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py index aad190dbd..13b0e746c 100755 --- a/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py +++ b/huaweicloud-sdk-cpts/huaweicloudsdkcpts/v1/region/cpts_region.py @@ -9,30 +9,30 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CptsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CPTS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cpts.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cpts.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cpts.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cpts.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cpts.cn-east-3.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cpts.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cpts.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cpts.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cpts.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://cpts.af-south-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cpts.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cpts.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cpts.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cpts.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cpts.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cpts.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cpts.cn-east-3.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cpts.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cpts.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cpts.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cpts.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://cpts.af-south-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cpts.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cpts.sa-brazil-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index f31112f41..66e018b71 100755 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a67b6816c..bc42f86bb 100755 --- a/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/region/cse_region.py +++ b/huaweicloud-sdk-cse/huaweicloudsdkcse/v1/region/cse_region.py @@ -9,38 +9,38 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CseRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CSE") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://cse.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cse.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cse.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cse.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cse.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cse.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cse.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cse.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cse.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cse.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://cse.ru-northwest-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cse.cn-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://cse.cn-north-9.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cse.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cse.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cse.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://cse.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cse.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cse.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cse.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cse.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cse.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cse.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cse.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cse.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cse.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://cse.ru-northwest-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cse.cn-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://cse.cn-north-9.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cse.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cse.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cse.la-north-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 4f9a7dd64..4d2050dc6 100755 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a79af5473..b87f7b6dd 100755 --- a/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/region/csms_region.py +++ b/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/region/csms_region.py @@ -9,32 +9,32 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CsmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CSMS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://kms.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://kms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://kms.cn-north-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://kms.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://kms.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://kms.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://kms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://kms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://kms.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://kms.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://kms.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://kms.la-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://kms.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://kms.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://kms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://kms.cn-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://kms.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://kms.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://kms.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://kms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://kms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://kms.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://kms.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://kms.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://kms.la-north-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://kms.ap-southeast-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 65e447691..7b0472c45 100755 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py index cd2613832..e8ab80d86 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py @@ -20,9 +20,12 @@ from huaweicloudsdkcss.v1.model.bind_public_req import BindPublicReq from huaweicloudsdkcss.v1.model.bind_public_req_eip import BindPublicReqEip from huaweicloudsdkcss.v1.model.bind_public_req_eip_band_width import BindPublicReqEipBandWidth from huaweicloudsdkcss.v1.model.bind_public_req_eip_req import BindPublicReqEipReq +from huaweicloudsdkcss.v1.model.change_mode_req import ChangeModeReq from huaweicloudsdkcss.v1.model.change_mode_request import ChangeModeRequest -from huaweicloudsdkcss.v1.model.change_mode_request_body import ChangeModeRequestBody from huaweicloudsdkcss.v1.model.change_mode_response import ChangeModeResponse +from huaweicloudsdkcss.v1.model.change_security_group_req import ChangeSecurityGroupReq +from huaweicloudsdkcss.v1.model.change_security_group_request import ChangeSecurityGroupRequest +from huaweicloudsdkcss.v1.model.change_security_group_response import ChangeSecurityGroupResponse from huaweicloudsdkcss.v1.model.close_kibana_public_req import CloseKibanaPublicReq from huaweicloudsdkcss.v1.model.cluster_detail_datastore import ClusterDetailDatastore from huaweicloudsdkcss.v1.model.cluster_detail_failed_reasons import ClusterDetailFailedReasons @@ -88,8 +91,8 @@ from huaweicloudsdkcss.v1.model.esflavors_versions_resp import EsflavorsVersions from huaweicloudsdkcss.v1.model.extend_cluster_grow_req import ExtendClusterGrowReq from huaweicloudsdkcss.v1.model.extend_cluster_req import ExtendClusterReq from huaweicloudsdkcss.v1.model.get_log_backup_req import GetLogBackupReq +from huaweicloudsdkcss.v1.model.independent_body_req import IndependentBodyReq from huaweicloudsdkcss.v1.model.independent_req import IndependentReq -from huaweicloudsdkcss.v1.model.independent_request_body import IndependentRequestBody from huaweicloudsdkcss.v1.model.kibana_elb_white_list_resp import KibanaElbWhiteListResp from huaweicloudsdkcss.v1.model.list_actions_request import ListActionsRequest from huaweicloudsdkcss.v1.model.list_actions_response import ListActionsResponse diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py index 861c5ebbb..538903bee 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py @@ -57,7 +57,7 @@ class CssAsyncClient(Client): return self.add_independent_node_with_http_info(request) def add_independent_node_with_http_info(self, request): - all_params = ['cluster_id', 'type', 'independent_request_body'] + all_params = ['cluster_id', 'type', 'independent_req'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -122,7 +122,7 @@ class CssAsyncClient(Client): return self.change_mode_with_http_info(request) def change_mode_with_http_info(self, request): - all_params = ['cluster_id', 'change_mode_request_body'] + all_params = ['cluster_id', 'change_mode_req'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -170,6 +170,69 @@ class CssAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def change_security_group_async(self, request): + """切换安全组 + + 该接口可以在集群创建成功后,修改安全组。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeSecurityGroup + :type request: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupRequest` + :rtype: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupResponse` + """ + return self.change_security_group_with_http_info(request) + + def change_security_group_with_http_info(self, request): + all_params = ['cluster_id', 'change_security_group_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/sg/change', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeSecurityGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_auto_create_policy_async(self, request): """设置自动创建快照策略 @@ -1970,14 +2033,17 @@ class CssAsyncClient(Client): def start_auto_setting_async(self, request): """自动设置集群快照的基础配置(不推荐使用) - >自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](UpdateSnapshotSetting.xml)。 - 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。 + - “OBS桶”:快照存储的OBS桶位置。 + - “备份路径”:快照在OBS桶中的存放路径。 + - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。 + >自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](UpdateSnapshotSetting.xml)。 + Please refer to HUAWEI cloud API Explorer for details. @@ -3234,7 +3300,7 @@ class CssAsyncClient(Client): def update_shrink_cluster_async(self, request): """指定节点类型缩容 - 该接口用于集群对不同类型实例的个数以及存储容量进行缩容。包周期集群不支持API操作。 + 该接口用于集群对不同类型实例的个数以及存储容量进行缩容。包周期类型的集群不支持通过api进行指定节点类型缩容操作。 Please refer to HUAWEI cloud API Explorer for details. @@ -3297,7 +3363,7 @@ class CssAsyncClient(Client): def update_shrink_nodes_async(self, request): """指定节点缩容 - 该接口可以对集群现有节点中指定节点进行缩容。包周期集群不支持API操作。 + 该接口可以对集群现有节点中指定节点进行缩容。包周期类型的集群不支持通过api进行指定节点缩容操作。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py index a867a75cc..476161eed 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py @@ -56,7 +56,7 @@ class CssClient(Client): return self.add_independent_node_with_http_info(request) def add_independent_node_with_http_info(self, request): - all_params = ['cluster_id', 'type', 'independent_request_body'] + all_params = ['cluster_id', 'type', 'independent_req'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -120,7 +120,7 @@ class CssClient(Client): return self.change_mode_with_http_info(request) def change_mode_with_http_info(self, request): - all_params = ['cluster_id', 'change_mode_request_body'] + all_params = ['cluster_id', 'change_mode_req'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -168,6 +168,68 @@ class CssClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def change_security_group(self, request): + """切换安全组 + + 该接口可以在集群创建成功后,修改安全组。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeSecurityGroup + :type request: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupRequest` + :rtype: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupResponse` + """ + return self.change_security_group_with_http_info(request) + + def change_security_group_with_http_info(self, request): + all_params = ['cluster_id', 'change_security_group_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/sg/change', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ChangeSecurityGroupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_auto_create_policy(self, request): """设置自动创建快照策略 @@ -1939,14 +2001,17 @@ class CssClient(Client): def start_auto_setting(self, request): """自动设置集群快照的基础配置(不推荐使用) - >自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](UpdateSnapshotSetting.xml)。 - 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。 + - “OBS桶”:快照存储的OBS桶位置。 + - “备份路径”:快照在OBS桶中的存放路径。 + - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。 + >自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](UpdateSnapshotSetting.xml)。 + Please refer to HUAWEI cloud API Explorer for details. :param request: Request instance for StartAutoSetting @@ -3183,7 +3248,7 @@ class CssClient(Client): def update_shrink_cluster(self, request): """指定节点类型缩容 - 该接口用于集群对不同类型实例的个数以及存储容量进行缩容。包周期集群不支持API操作。 + 该接口用于集群对不同类型实例的个数以及存储容量进行缩容。包周期类型的集群不支持通过api进行指定节点类型缩容操作。 Please refer to HUAWEI cloud API Explorer for details. @@ -3245,7 +3310,7 @@ class CssClient(Client): def update_shrink_nodes(self, request): """指定节点缩容 - 该接口可以对集群现有节点中指定节点进行缩容。包周期集群不支持API操作。 + 该接口可以对集群现有节点中指定节点进行缩容。包周期类型的集群不支持通过api进行指定节点缩容操作。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py index ca4447049..7ecaa8d85 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py @@ -17,9 +17,12 @@ from huaweicloudsdkcss.v1.model.bind_public_req import BindPublicReq from huaweicloudsdkcss.v1.model.bind_public_req_eip import BindPublicReqEip from huaweicloudsdkcss.v1.model.bind_public_req_eip_band_width import BindPublicReqEipBandWidth from huaweicloudsdkcss.v1.model.bind_public_req_eip_req import BindPublicReqEipReq +from huaweicloudsdkcss.v1.model.change_mode_req import ChangeModeReq from huaweicloudsdkcss.v1.model.change_mode_request import ChangeModeRequest -from huaweicloudsdkcss.v1.model.change_mode_request_body import ChangeModeRequestBody from huaweicloudsdkcss.v1.model.change_mode_response import ChangeModeResponse +from huaweicloudsdkcss.v1.model.change_security_group_req import ChangeSecurityGroupReq +from huaweicloudsdkcss.v1.model.change_security_group_request import ChangeSecurityGroupRequest +from huaweicloudsdkcss.v1.model.change_security_group_response import ChangeSecurityGroupResponse from huaweicloudsdkcss.v1.model.close_kibana_public_req import CloseKibanaPublicReq from huaweicloudsdkcss.v1.model.cluster_detail_datastore import ClusterDetailDatastore from huaweicloudsdkcss.v1.model.cluster_detail_failed_reasons import ClusterDetailFailedReasons @@ -85,8 +88,8 @@ from huaweicloudsdkcss.v1.model.esflavors_versions_resp import EsflavorsVersions from huaweicloudsdkcss.v1.model.extend_cluster_grow_req import ExtendClusterGrowReq from huaweicloudsdkcss.v1.model.extend_cluster_req import ExtendClusterReq from huaweicloudsdkcss.v1.model.get_log_backup_req import GetLogBackupReq +from huaweicloudsdkcss.v1.model.independent_body_req import IndependentBodyReq from huaweicloudsdkcss.v1.model.independent_req import IndependentReq -from huaweicloudsdkcss.v1.model.independent_request_body import IndependentRequestBody from huaweicloudsdkcss.v1.model.kibana_elb_white_list_resp import KibanaElbWhiteListResp from huaweicloudsdkcss.v1.model.list_actions_request import ListActionsRequest from huaweicloudsdkcss.v1.model.list_actions_response import ListActionsResponse diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_independent_node_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_independent_node_request.py index bf4e119d6..14cd7bedf 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_independent_node_request.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_independent_node_request.py @@ -22,7 +22,7 @@ class AddIndependentNodeRequest: openapi_types = { 'cluster_id': 'str', 'type': 'str', - 'body': 'IndependentRequestBody' + 'body': 'IndependentReq' } attribute_map = { @@ -41,7 +41,7 @@ class AddIndependentNodeRequest: :param type: 指定待新增独立节点类型。 - ess-master:Master节点。 - ess-client:Client节点。 :type type: str :param body: Body of the AddIndependentNodeRequest - :type body: :class:`huaweicloudsdkcss.v1.IndependentRequestBody` + :type body: :class:`huaweicloudsdkcss.v1.IndependentReq` """ @@ -105,7 +105,7 @@ class AddIndependentNodeRequest: """Gets the body of this AddIndependentNodeRequest. :return: The body of this AddIndependentNodeRequest. - :rtype: :class:`huaweicloudsdkcss.v1.IndependentRequestBody` + :rtype: :class:`huaweicloudsdkcss.v1.IndependentReq` """ return self._body @@ -114,7 +114,7 @@ class AddIndependentNodeRequest: """Sets the body of this AddIndependentNodeRequest. :param body: The body of this AddIndependentNodeRequest. - :type body: :class:`huaweicloudsdkcss.v1.IndependentRequestBody` + :type body: :class:`huaweicloudsdkcss.v1.IndependentReq` """ self._body = body diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_req.py similarity index 85% rename from huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request_body.py rename to huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_req.py index 9e2bc9838..bdf0672ed 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request_body.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_req.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class ChangeModeRequestBody: +class ChangeModeReq: """ Attributes: @@ -32,7 +32,7 @@ class ChangeModeRequestBody: } def __init__(self, authority_enable=None, admin_pwd=None, https_enable=None): - """ChangeModeRequestBody + """ChangeModeReq The model defined in huaweicloud sdk @@ -58,66 +58,66 @@ class ChangeModeRequestBody: @property def authority_enable(self): - """Gets the authority_enable of this ChangeModeRequestBody. + """Gets the authority_enable of this ChangeModeReq. 是否开启安全模式。 - true: 开启安全模式。 - false: 关闭安全模式。 默认为:true。 - :return: The authority_enable of this ChangeModeRequestBody. + :return: The authority_enable of this ChangeModeReq. :rtype: bool """ return self._authority_enable @authority_enable.setter def authority_enable(self, authority_enable): - """Sets the authority_enable of this ChangeModeRequestBody. + """Sets the authority_enable of this ChangeModeReq. 是否开启安全模式。 - true: 开启安全模式。 - false: 关闭安全模式。 默认为:true。 - :param authority_enable: The authority_enable of this ChangeModeRequestBody. + :param authority_enable: The authority_enable of this ChangeModeReq. :type authority_enable: bool """ self._authority_enable = authority_enable @property def admin_pwd(self): - """Gets the admin_pwd of this ChangeModeRequestBody. + """Gets the admin_pwd of this ChangeModeReq. 安全模式下集群密码。 - :return: The admin_pwd of this ChangeModeRequestBody. + :return: The admin_pwd of this ChangeModeReq. :rtype: str """ return self._admin_pwd @admin_pwd.setter def admin_pwd(self, admin_pwd): - """Sets the admin_pwd of this ChangeModeRequestBody. + """Sets the admin_pwd of this ChangeModeReq. 安全模式下集群密码。 - :param admin_pwd: The admin_pwd of this ChangeModeRequestBody. + :param admin_pwd: The admin_pwd of this ChangeModeReq. :type admin_pwd: str """ self._admin_pwd = admin_pwd @property def https_enable(self): - """Gets the https_enable of this ChangeModeRequestBody. + """Gets the https_enable of this ChangeModeReq. 是否开启HTTPS。 - true: 开启HTTPS。 - false: 关闭HTTPS。 默认为:true。 - :return: The https_enable of this ChangeModeRequestBody. + :return: The https_enable of this ChangeModeReq. :rtype: bool """ return self._https_enable @https_enable.setter def https_enable(self, https_enable): - """Sets the https_enable of this ChangeModeRequestBody. + """Sets the https_enable of this ChangeModeReq. 是否开启HTTPS。 - true: 开启HTTPS。 - false: 关闭HTTPS。 默认为:true。 - :param https_enable: The https_enable of this ChangeModeRequestBody. + :param https_enable: The https_enable of this ChangeModeReq. :type https_enable: bool """ self._https_enable = https_enable @@ -164,7 +164,7 @@ class ChangeModeRequestBody: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ChangeModeRequestBody): + if not isinstance(other, ChangeModeReq): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request.py index 477c64d65..f12c24fd1 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_mode_request.py @@ -21,7 +21,7 @@ class ChangeModeRequest: openapi_types = { 'cluster_id': 'str', - 'body': 'ChangeModeRequestBody' + 'body': 'ChangeModeReq' } attribute_map = { @@ -37,7 +37,7 @@ class ChangeModeRequest: :param cluster_id: 指定修改的集群ID。 :type cluster_id: str :param body: Body of the ChangeModeRequest - :type body: :class:`huaweicloudsdkcss.v1.ChangeModeRequestBody` + :type body: :class:`huaweicloudsdkcss.v1.ChangeModeReq` """ @@ -77,7 +77,7 @@ class ChangeModeRequest: """Gets the body of this ChangeModeRequest. :return: The body of this ChangeModeRequest. - :rtype: :class:`huaweicloudsdkcss.v1.ChangeModeRequestBody` + :rtype: :class:`huaweicloudsdkcss.v1.ChangeModeReq` """ return self._body @@ -86,7 +86,7 @@ class ChangeModeRequest: """Sets the body of this ChangeModeRequest. :param body: The body of this ChangeModeRequest. - :type body: :class:`huaweicloudsdkcss.v1.ChangeModeRequestBody` + :type body: :class:`huaweicloudsdkcss.v1.ChangeModeReq` """ self._body = body diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_req.py new file mode 100755 index 000000000..25f755491 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_req.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeSecurityGroupReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'security_group_ids': 'str' + } + + attribute_map = { + 'security_group_ids': 'security_group_ids' + } + + def __init__(self, security_group_ids=None): + """ChangeSecurityGroupReq + + The model defined in huaweicloud sdk + + :param security_group_ids: 期望安全组的ID。如何获取安全组ID,请参见[[《查询安全组列表》](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)](tag:hc)[[《查询安全组列表》](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_sg01_0003.html)](tag:hk,hws_hk) + :type security_group_ids: str + """ + + + + self._security_group_ids = None + self.discriminator = None + + self.security_group_ids = security_group_ids + + @property + def security_group_ids(self): + """Gets the security_group_ids of this ChangeSecurityGroupReq. + + 期望安全组的ID。如何获取安全组ID,请参见[[《查询安全组列表》](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)](tag:hc)[[《查询安全组列表》](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_sg01_0003.html)](tag:hk,hws_hk) + + :return: The security_group_ids of this ChangeSecurityGroupReq. + :rtype: str + """ + return self._security_group_ids + + @security_group_ids.setter + def security_group_ids(self, security_group_ids): + """Sets the security_group_ids of this ChangeSecurityGroupReq. + + 期望安全组的ID。如何获取安全组ID,请参见[[《查询安全组列表》](https://support.huaweicloud.com/api-vpc/vpc_sg01_0003.html)](tag:hc)[[《查询安全组列表》](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_sg01_0003.html)](tag:hk,hws_hk) + + :param security_group_ids: The security_group_ids of this ChangeSecurityGroupReq. + :type security_group_ids: str + """ + self._security_group_ids = security_group_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeSecurityGroupReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_request.py similarity index 62% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_request.py rename to huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_request.py index 9623f712d..929c563af 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_request.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunDeletePictureRequest: +class ChangeSecurityGroupRequest: """ Attributes: @@ -20,73 +20,73 @@ class RunDeletePictureRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str', - 'body': 'DeletePictureReq' + 'cluster_id': 'str', + 'body': 'ChangeSecurityGroupReq' } attribute_map = { - 'instance_name': 'instance_name', + 'cluster_id': 'cluster_id', 'body': 'body' } - def __init__(self, instance_name=None, body=None): - """RunDeletePictureRequest + def __init__(self, cluster_id=None, body=None): + """ChangeSecurityGroupRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str - :param body: Body of the RunDeletePictureRequest - :type body: :class:`huaweicloudsdkimagesearch.v1.DeletePictureReq` + :param cluster_id: 待修改安全组的集群ID。 + :type cluster_id: str + :param body: Body of the ChangeSecurityGroupRequest + :type body: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupReq` """ - self._instance_name = None + self._cluster_id = None self._body = None self.discriminator = None - self.instance_name = instance_name + self.cluster_id = cluster_id if body is not None: self.body = body @property - def instance_name(self): - """Gets the instance_name of this RunDeletePictureRequest. + def cluster_id(self): + """Gets the cluster_id of this ChangeSecurityGroupRequest. - 实例名称。 + 待修改安全组的集群ID。 - :return: The instance_name of this RunDeletePictureRequest. + :return: The cluster_id of this ChangeSecurityGroupRequest. :rtype: str """ - return self._instance_name + return self._cluster_id - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunDeletePictureRequest. + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ChangeSecurityGroupRequest. - 实例名称。 + 待修改安全组的集群ID。 - :param instance_name: The instance_name of this RunDeletePictureRequest. - :type instance_name: str + :param cluster_id: The cluster_id of this ChangeSecurityGroupRequest. + :type cluster_id: str """ - self._instance_name = instance_name + self._cluster_id = cluster_id @property def body(self): - """Gets the body of this RunDeletePictureRequest. + """Gets the body of this ChangeSecurityGroupRequest. - :return: The body of this RunDeletePictureRequest. - :rtype: :class:`huaweicloudsdkimagesearch.v1.DeletePictureReq` + :return: The body of this ChangeSecurityGroupRequest. + :rtype: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupReq` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunDeletePictureRequest. + """Sets the body of this ChangeSecurityGroupRequest. - :param body: The body of this RunDeletePictureRequest. - :type body: :class:`huaweicloudsdkimagesearch.v1.DeletePictureReq` + :param body: The body of this ChangeSecurityGroupRequest. + :type body: :class:`huaweicloudsdkcss.v1.ChangeSecurityGroupReq` """ self._body = body @@ -132,7 +132,7 @@ class RunDeletePictureRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunDeletePictureRequest): + if not isinstance(other, ChangeSecurityGroupRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_response.py new file mode 100755 index 000000000..d61ac8e2a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/change_security_group_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeSecurityGroupResponse(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): + """ChangeSecurityGroupResponse + + The model defined in huaweicloud sdk + + """ + + super(ChangeSecurityGroupResponse, 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, ChangeSecurityGroupResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py index 572a503d2..b3ba274de 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py @@ -52,7 +52,7 @@ class CreateClusterBackupStrategyBody: :type bucket: str :param base_path: 快照在OBS桶中的存放路径。 :type base_path: str - :param agency: 访问OBS使用的IAM委托名称。 >如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + :param agency: 委托名称,委托给CSS,允许CSS调用您的其他云服务。 >如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 :type agency: str """ @@ -190,7 +190,7 @@ class CreateClusterBackupStrategyBody: def agency(self): """Gets the agency of this CreateClusterBackupStrategyBody. - 访问OBS使用的IAM委托名称。 >如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 >如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 :return: The agency of this CreateClusterBackupStrategyBody. :rtype: str @@ -201,7 +201,7 @@ class CreateClusterBackupStrategyBody: def agency(self, agency): """Sets the agency of this CreateClusterBackupStrategyBody. - 访问OBS使用的IAM委托名称。 >如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 >如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 :param agency: The agency of this CreateClusterBackupStrategyBody. :type agency: str diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py index 3387067df..969570134 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py @@ -62,7 +62,7 @@ class CreateClusterBody: :type instance_num: int :param backup_strategy: :type backup_strategy: :class:`huaweicloudsdkcss.v1.CreateClusterBackupStrategyBody` - :param https_enable: 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 >此参数只有6.5.4及之后版本支持。 + :param https_enable: 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 >此参数只有6.5.4及之后版本支持。 :type https_enable: bool :param authority_enable: 是否开启认证,取值范围为true或false。默认关闭认证功能。 - true:表示集群开启认证。 - false:表示集群不开启认证。 >此参数只有6.5.4及之后版本支持。 :type authority_enable: bool @@ -212,7 +212,7 @@ class CreateClusterBody: def https_enable(self): """Gets the https_enable of this CreateClusterBody. - 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 >此参数只有6.5.4及之后版本支持。 + 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 >此参数只有6.5.4及之后版本支持。 :return: The https_enable of this CreateClusterBody. :rtype: bool @@ -223,7 +223,7 @@ class CreateClusterBody: def https_enable(self, https_enable): """Sets the https_enable of this CreateClusterBody. - 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 >此参数只有6.5.4及之后版本支持。 + 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 >此参数只有6.5.4及之后版本支持。 :param https_enable: The https_enable of this CreateClusterBody. :type https_enable: bool diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_body_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_body_req.py new file mode 100755 index 000000000..e994b6b15 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_body_req.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IndependentBodyReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'flavor_ref': 'str', + 'node_size': 'int', + 'volume_type': 'str' + } + + attribute_map = { + 'flavor_ref': 'flavor_ref', + 'node_size': 'node_size', + 'volume_type': 'volume_type' + } + + def __init__(self, flavor_ref=None, node_size=None, volume_type=None): + """IndependentBodyReq + + The model defined in huaweicloud sdk + + :param flavor_ref: 规格id,该参数通过[获取实例规格列表](ListFlavors.xml)接口获取,根据集群版本选择所需要的规格id + :type flavor_ref: str + :param node_size: 要独立节点个数。 - 如果路径参数type取值为“ess-master”即新增独立master节点,节点个数必须为大于等于三且小于等于10的奇数。 - 如果路径参数type取值为“ess-client”即新增独立client节点,节点个数要求大于等于1小于等于32。 + :type node_size: int + :param volume_type: 节点存储类型:取值为ULTRAHIGH,COMMON,HIGH。 + :type volume_type: str + """ + + + + self._flavor_ref = None + self._node_size = None + self._volume_type = None + self.discriminator = None + + self.flavor_ref = flavor_ref + self.node_size = node_size + self.volume_type = volume_type + + @property + def flavor_ref(self): + """Gets the flavor_ref of this IndependentBodyReq. + + 规格id,该参数通过[获取实例规格列表](ListFlavors.xml)接口获取,根据集群版本选择所需要的规格id + + :return: The flavor_ref of this IndependentBodyReq. + :rtype: str + """ + return self._flavor_ref + + @flavor_ref.setter + def flavor_ref(self, flavor_ref): + """Sets the flavor_ref of this IndependentBodyReq. + + 规格id,该参数通过[获取实例规格列表](ListFlavors.xml)接口获取,根据集群版本选择所需要的规格id + + :param flavor_ref: The flavor_ref of this IndependentBodyReq. + :type flavor_ref: str + """ + self._flavor_ref = flavor_ref + + @property + def node_size(self): + """Gets the node_size of this IndependentBodyReq. + + 要独立节点个数。 - 如果路径参数type取值为“ess-master”即新增独立master节点,节点个数必须为大于等于三且小于等于10的奇数。 - 如果路径参数type取值为“ess-client”即新增独立client节点,节点个数要求大于等于1小于等于32。 + + :return: The node_size of this IndependentBodyReq. + :rtype: int + """ + return self._node_size + + @node_size.setter + def node_size(self, node_size): + """Sets the node_size of this IndependentBodyReq. + + 要独立节点个数。 - 如果路径参数type取值为“ess-master”即新增独立master节点,节点个数必须为大于等于三且小于等于10的奇数。 - 如果路径参数type取值为“ess-client”即新增独立client节点,节点个数要求大于等于1小于等于32。 + + :param node_size: The node_size of this IndependentBodyReq. + :type node_size: int + """ + self._node_size = node_size + + @property + def volume_type(self): + """Gets the volume_type of this IndependentBodyReq. + + 节点存储类型:取值为ULTRAHIGH,COMMON,HIGH。 + + :return: The volume_type of this IndependentBodyReq. + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this IndependentBodyReq. + + 节点存储类型:取值为ULTRAHIGH,COMMON,HIGH。 + + :param volume_type: The volume_type of this IndependentBodyReq. + :type volume_type: str + """ + self._volume_type = volume_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, IndependentBodyReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_req.py index 762f23b51..e41ff9dbe 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_req.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_req.py @@ -20,106 +20,46 @@ class IndependentReq: sensitive_list = [] openapi_types = { - 'flavor_ref': 'str', - 'node_size': 'int', - 'volume_type': 'str' + 'type': 'IndependentBodyReq' } attribute_map = { - 'flavor_ref': 'flavor_ref', - 'node_size': 'node_size', - 'volume_type': 'volume_type' + 'type': 'type' } - def __init__(self, flavor_ref=None, node_size=None, volume_type=None): + def __init__(self, type=None): """IndependentReq The model defined in huaweicloud sdk - :param flavor_ref: 规格id,该参数通过[获取实例规格列表](ListFlavors.xml)接口获取,根据集群版本选择所需要的规格id - :type flavor_ref: str - :param node_size: 要独立节点个数。 - 如果路径参数type取值为“ess-master”即新增独立master节点,节点个数必须为大于等于三且小于等于10的奇数。 - 如果路径参数type取值为“ess-client”即新增独立client节点,节点个数要求大于等于1小于等于32。 - :type node_size: int - :param volume_type: 节点存储类型:取值为ULTRAHIGH,COMMON,HIGH。 - :type volume_type: str + :param type: + :type type: :class:`huaweicloudsdkcss.v1.IndependentBodyReq` """ - self._flavor_ref = None - self._node_size = None - self._volume_type = None + self._type = None self.discriminator = None - self.flavor_ref = flavor_ref - self.node_size = node_size - self.volume_type = volume_type + self.type = type @property - def flavor_ref(self): - """Gets the flavor_ref of this IndependentReq. + def type(self): + """Gets the type of this IndependentReq. - 规格id,该参数通过[获取实例规格列表](ListFlavors.xml)接口获取,根据集群版本选择所需要的规格id - - :return: The flavor_ref of this IndependentReq. - :rtype: str + :return: The type of this IndependentReq. + :rtype: :class:`huaweicloudsdkcss.v1.IndependentBodyReq` """ - return self._flavor_ref + return self._type - @flavor_ref.setter - def flavor_ref(self, flavor_ref): - """Sets the flavor_ref of this IndependentReq. + @type.setter + def type(self, type): + """Sets the type of this IndependentReq. - 规格id,该参数通过[获取实例规格列表](ListFlavors.xml)接口获取,根据集群版本选择所需要的规格id - - :param flavor_ref: The flavor_ref of this IndependentReq. - :type flavor_ref: str + :param type: The type of this IndependentReq. + :type type: :class:`huaweicloudsdkcss.v1.IndependentBodyReq` """ - self._flavor_ref = flavor_ref - - @property - def node_size(self): - """Gets the node_size of this IndependentReq. - - 要独立节点个数。 - 如果路径参数type取值为“ess-master”即新增独立master节点,节点个数必须为大于等于三且小于等于10的奇数。 - 如果路径参数type取值为“ess-client”即新增独立client节点,节点个数要求大于等于1小于等于32。 - - :return: The node_size of this IndependentReq. - :rtype: int - """ - return self._node_size - - @node_size.setter - def node_size(self, node_size): - """Sets the node_size of this IndependentReq. - - 要独立节点个数。 - 如果路径参数type取值为“ess-master”即新增独立master节点,节点个数必须为大于等于三且小于等于10的奇数。 - 如果路径参数type取值为“ess-client”即新增独立client节点,节点个数要求大于等于1小于等于32。 - - :param node_size: The node_size of this IndependentReq. - :type node_size: int - """ - self._node_size = node_size - - @property - def volume_type(self): - """Gets the volume_type of this IndependentReq. - - 节点存储类型:取值为ULTRAHIGH,COMMON,HIGH。 - - :return: The volume_type of this IndependentReq. - :rtype: str - """ - return self._volume_type - - @volume_type.setter - def volume_type(self, volume_type): - """Sets the volume_type of this IndependentReq. - - 节点存储类型:取值为ULTRAHIGH,COMMON,HIGH。 - - :param volume_type: The volume_type of this IndependentReq. - :type volume_type: str - """ - self._volume_type = volume_type + self._type = type def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py index cce4a7df1..2f5c5e758 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py @@ -54,7 +54,7 @@ class LogConfiguration: :type cluster_id: str :param obs_bucket: 用于存储日志的OBS桶的桶名。 :type obs_bucket: str - :param agency: IAM 委托。 + :param agency: 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :type agency: str :param update_at: 更新时间。格式为:Unix时间戳格式。 :type update_at: int @@ -170,7 +170,7 @@ class LogConfiguration: def agency(self): """Gets the agency of this LogConfiguration. - IAM 委托。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :return: The agency of this LogConfiguration. :rtype: str @@ -181,7 +181,7 @@ class LogConfiguration: def agency(self, agency): """Sets the agency of this LogConfiguration. - IAM 委托。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :param agency: The agency of this LogConfiguration. :type agency: str diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py index fb5726121..4d147e419 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py @@ -36,7 +36,7 @@ class StartLogsReq: The model defined in huaweicloud sdk - :param agency: IAM委托。 + :param agency: 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :type agency: str :param log_base_path: 日志在OBS桶中的备份路径。 :type log_base_path: str @@ -59,7 +59,7 @@ class StartLogsReq: def agency(self): """Gets the agency of this StartLogsReq. - IAM委托。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :return: The agency of this StartLogsReq. :rtype: str @@ -70,7 +70,7 @@ class StartLogsReq: def agency(self, agency): """Sets the agency of this StartLogsReq. - IAM委托。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :param agency: The agency of this StartLogsReq. :type agency: str diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py index b6383eaf0..3640003f8 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py @@ -32,7 +32,7 @@ class StartVpecpReq: The model defined in huaweicloud sdk - :param endpoint_with_dns_name: 是否开启内网域名。 - ture:表示开启。 - false: 表示不开启。 + :param endpoint_with_dns_name: 是否开启内网域名。 - true:开启。 - false:不开启。 :type endpoint_with_dns_name: bool """ @@ -48,7 +48,7 @@ class StartVpecpReq: def endpoint_with_dns_name(self): """Gets the endpoint_with_dns_name of this StartVpecpReq. - 是否开启内网域名。 - ture:表示开启。 - false: 表示不开启。 + 是否开启内网域名。 - true:开启。 - false:不开启。 :return: The endpoint_with_dns_name of this StartVpecpReq. :rtype: bool @@ -59,7 +59,7 @@ class StartVpecpReq: def endpoint_with_dns_name(self, endpoint_with_dns_name): """Sets the endpoint_with_dns_name of this StartVpecpReq. - 是否开启内网域名。 - ture:表示开启。 - false: 表示不开启。 + 是否开启内网域名。 - true:开启。 - false:不开启。 :param endpoint_with_dns_name: The endpoint_with_dns_name of this StartVpecpReq. :type endpoint_with_dns_name: bool diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py index db7bb03a8..e926af791 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py @@ -36,7 +36,7 @@ class UpdateLogSettingReq: The model defined in huaweicloud sdk - :param agency: IAM 委托。 + :param agency: 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :type agency: str :param log_base_path: 日志在OBS桶中的备份路径。 :type log_base_path: str @@ -59,7 +59,7 @@ class UpdateLogSettingReq: def agency(self): """Gets the agency of this UpdateLogSettingReq. - IAM 委托。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :return: The agency of this UpdateLogSettingReq. :rtype: str @@ -70,7 +70,7 @@ class UpdateLogSettingReq: def agency(self, agency): """Sets the agency of this UpdateLogSettingReq. - IAM 委托。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :param agency: The agency of this UpdateLogSettingReq. :type agency: str diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py index a984034bf..3fbf419fd 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py @@ -38,7 +38,7 @@ class UpdateSnapshotSettingReq: :param bucket: 备份使用的OBS桶的桶名。 :type bucket: str - :param agency: 访问OBS使用的IAM委托名称。 + :param agency: 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :type agency: str :param base_path: 快照在OBS桶中的存放路径。 :type base_path: str @@ -81,7 +81,7 @@ class UpdateSnapshotSettingReq: def agency(self): """Gets the agency of this UpdateSnapshotSettingReq. - 访问OBS使用的IAM委托名称。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :return: The agency of this UpdateSnapshotSettingReq. :rtype: str @@ -92,7 +92,7 @@ class UpdateSnapshotSettingReq: def agency(self, agency): """Sets the agency of this UpdateSnapshotSettingReq. - 访问OBS使用的IAM委托名称。 + 委托名称,委托给CSS,允许CSS调用您的其他云服务。 :param agency: The agency of this UpdateSnapshotSettingReq. :type agency: str diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py index a440a0236..955fd26e3 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CSS") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://css.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://css.cn-east-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://css.cn-north-4.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://css.cn-north-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://es.cn-north-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://css.cn-north-9.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://es.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://css.cn-south-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://css.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://css.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://css.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://css.ap-southeast-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://css.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://css.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://css.la-north-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://css.af-south-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://css.la-south-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://css.cn-south-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://css.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://css.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://css.cn-north-4.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://css.cn-north-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://es.cn-north-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://css.cn-north-9.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://es.cn-east-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://css.cn-south-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://css.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://css.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://css.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://css.ap-southeast-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://css.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://css.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://css.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://css.af-south-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://css.la-south-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://css.cn-south-2.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py index a440a0236..955fd26e3 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CSS") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://css.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://css.cn-east-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://css.cn-north-4.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://css.cn-north-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://es.cn-north-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://css.cn-north-9.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://es.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://css.cn-south-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://css.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://css.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://css.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://css.ap-southeast-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://css.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://css.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://css.la-north-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://css.af-south-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://css.la-south-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://css.cn-south-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://css.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://css.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://css.cn-north-4.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://css.cn-north-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://es.cn-north-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://css.cn-north-9.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://es.cn-east-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://css.cn-south-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://css.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://css.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://css.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://css.ap-southeast-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://css.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://css.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://css.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://css.af-south-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://css.la-south-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://css.cn-south-2.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 2a28284b4..8839288f8 100755 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/obs_info.py b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/obs_info.py index 81edf39be..c6c9e6150 100755 --- a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/obs_info.py +++ b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/obs_info.py @@ -24,7 +24,9 @@ class ObsInfo: 'file_prefix_name': 'str', 'is_obs_created': 'bool', 'is_authorized_bucket': 'bool', - 'bucket_lifecycle': 'int' + 'bucket_lifecycle': 'int', + 'compress_type': 'str', + 'is_sort_by_service': 'bool' } attribute_map = { @@ -32,10 +34,12 @@ class ObsInfo: 'file_prefix_name': 'file_prefix_name', 'is_obs_created': 'is_obs_created', 'is_authorized_bucket': 'is_authorized_bucket', - 'bucket_lifecycle': 'bucket_lifecycle' + 'bucket_lifecycle': 'bucket_lifecycle', + 'compress_type': 'compress_type', + 'is_sort_by_service': 'is_sort_by_service' } - def __init__(self, bucket_name=None, file_prefix_name=None, is_obs_created=None, is_authorized_bucket=None, bucket_lifecycle=None): + def __init__(self, bucket_name=None, file_prefix_name=None, is_obs_created=None, is_authorized_bucket=None, bucket_lifecycle=None, compress_type=None, is_sort_by_service=None): """ObsInfo The model defined in huaweicloud sdk @@ -50,6 +54,10 @@ class ObsInfo: :type is_authorized_bucket: bool :param bucket_lifecycle: 标识配置桶内对象存储周期。 当\"tracker_type\"参数值为\"data\"时该参数值有效。 :type bucket_lifecycle: int + :param compress_type: 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。 + :type compress_type: str + :param is_sort_by_service: 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。 + :type is_sort_by_service: bool """ @@ -59,6 +67,8 @@ class ObsInfo: self._is_obs_created = None self._is_authorized_bucket = None self._bucket_lifecycle = None + self._compress_type = None + self._is_sort_by_service = None self.discriminator = None if bucket_name is not None: @@ -71,6 +81,10 @@ class ObsInfo: self.is_authorized_bucket = is_authorized_bucket if bucket_lifecycle is not None: self.bucket_lifecycle = bucket_lifecycle + if compress_type is not None: + self.compress_type = compress_type + if is_sort_by_service is not None: + self.is_sort_by_service = is_sort_by_service @property def bucket_name(self): @@ -182,6 +196,50 @@ class ObsInfo: """ self._bucket_lifecycle = bucket_lifecycle + @property + def compress_type(self): + """Gets the compress_type of this ObsInfo. + + 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。 + + :return: The compress_type of this ObsInfo. + :rtype: str + """ + return self._compress_type + + @compress_type.setter + def compress_type(self, compress_type): + """Sets the compress_type of this ObsInfo. + + 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。 + + :param compress_type: The compress_type of this ObsInfo. + :type compress_type: str + """ + self._compress_type = compress_type + + @property + def is_sort_by_service(self): + """Gets the is_sort_by_service of this ObsInfo. + + 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。 + + :return: The is_sort_by_service of this ObsInfo. + :rtype: bool + """ + return self._is_sort_by_service + + @is_sort_by_service.setter + def is_sort_by_service(self, is_sort_by_service): + """Sets the is_sort_by_service of this ObsInfo. + + 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。 + + :param is_sort_by_service: The is_sort_by_service of this ObsInfo. + :type is_sort_by_service: bool + """ + self._is_sort_by_service = is_sort_by_service + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/tracker_obs_info.py b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/tracker_obs_info.py index 12b74ff66..9ed4666a0 100755 --- a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/tracker_obs_info.py +++ b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/tracker_obs_info.py @@ -23,17 +23,21 @@ class TrackerObsInfo: 'bucket_name': 'str', 'file_prefix_name': 'str', 'is_obs_created': 'bool', - 'bucket_lifecycle': 'int' + 'bucket_lifecycle': 'int', + 'compress_type': 'str', + 'is_sort_by_service': 'bool' } attribute_map = { 'bucket_name': 'bucket_name', 'file_prefix_name': 'file_prefix_name', 'is_obs_created': 'is_obs_created', - 'bucket_lifecycle': 'bucket_lifecycle' + 'bucket_lifecycle': 'bucket_lifecycle', + 'compress_type': 'compress_type', + 'is_sort_by_service': 'is_sort_by_service' } - def __init__(self, bucket_name=None, file_prefix_name=None, is_obs_created=None, bucket_lifecycle=None): + def __init__(self, bucket_name=None, file_prefix_name=None, is_obs_created=None, bucket_lifecycle=None, compress_type=None, is_sort_by_service=None): """TrackerObsInfo The model defined in huaweicloud sdk @@ -46,6 +50,10 @@ class TrackerObsInfo: :type is_obs_created: bool :param bucket_lifecycle: 标识配置桶内对象存储周期。 当\"tracker_type\"参数值为\"data\"时该参数值有效。 :type bucket_lifecycle: int + :param compress_type: 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。 + :type compress_type: str + :param is_sort_by_service: 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。 + :type is_sort_by_service: bool """ @@ -54,6 +62,8 @@ class TrackerObsInfo: self._file_prefix_name = None self._is_obs_created = None self._bucket_lifecycle = None + self._compress_type = None + self._is_sort_by_service = None self.discriminator = None if bucket_name is not None: @@ -64,6 +74,10 @@ class TrackerObsInfo: self.is_obs_created = is_obs_created if bucket_lifecycle is not None: self.bucket_lifecycle = bucket_lifecycle + if compress_type is not None: + self.compress_type = compress_type + if is_sort_by_service is not None: + self.is_sort_by_service = is_sort_by_service @property def bucket_name(self): @@ -153,6 +167,50 @@ class TrackerObsInfo: """ self._bucket_lifecycle = bucket_lifecycle + @property + def compress_type(self): + """Gets the compress_type of this TrackerObsInfo. + + 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。 + + :return: The compress_type of this TrackerObsInfo. + :rtype: str + """ + return self._compress_type + + @compress_type.setter + def compress_type(self, compress_type): + """Sets the compress_type of this TrackerObsInfo. + + 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。 + + :param compress_type: The compress_type of this TrackerObsInfo. + :type compress_type: str + """ + self._compress_type = compress_type + + @property + def is_sort_by_service(self): + """Gets the is_sort_by_service of this TrackerObsInfo. + + 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。 + + :return: The is_sort_by_service of this TrackerObsInfo. + :rtype: bool + """ + return self._is_sort_by_service + + @is_sort_by_service.setter + def is_sort_by_service(self, is_sort_by_service): + """Sets the is_sort_by_service of this TrackerObsInfo. + + 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。 + + :param is_sort_by_service: The is_sort_by_service of this TrackerObsInfo. + :type is_sort_by_service: bool + """ + self._is_sort_by_service = is_sort_by_service + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py index 445a05ab5..355b0333c 100755 --- a/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py +++ b/huaweicloud-sdk-cts/huaweicloudsdkcts/v3/region/cts_region.py @@ -9,44 +9,44 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class CtsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("CTS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://cts.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://cts.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://cts.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://cts.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://cts.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://cts.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://cts.cn-south-2.myhuaweicloud.cn") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://cts.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://cts.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://cts.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://cts.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://cts.cn-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://cts.cn-north-9.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://cts.cn-south-4.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://cts.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://cts.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://cts.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://cts.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://cts.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://cts.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://cts.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://cts.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://cts.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://cts.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://cts.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://cts.cn-south-2.myhuaweicloud.cn") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://cts.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://cts.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://cts.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://cts.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://cts.cn-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://cts.cn-north-9.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://cts.cn-south-4.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://cts.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://cts.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://cts.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://cts.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://cts.na-mexico-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index a08f5092e..2eeb2d840 100755 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 92c3d8d95..2073bbc25 100755 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DasRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DAS") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://das.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://das.cn-south-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://das.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://das.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://das.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://das.cn-east-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://das.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://das.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://das.cn-south-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://das.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://das.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://das.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://das.cn-east-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://das.cn-southwest-2.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 6259cd5fc..15e017561 100755 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 b2b788004..088b81236 100755 --- a/huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/region/dbss_region.py +++ b/huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/region/dbss_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DbssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DBSS") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dbss.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dbss.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dbss.ap-southeast-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dbss.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dbss.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dbss.cn-east-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dbss.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dbss.ap-southeast-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dbss.ru-northwest-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dbss.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dbss.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dbss.la-north-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dbss.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dbss.cn-north-4.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dbss.cn-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dbss.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dbss.cn-north-9.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dbss.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dbss.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dbss.ap-southeast-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dbss.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dbss.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dbss.cn-east-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dbss.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dbss.ap-southeast-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dbss.ru-northwest-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dbss.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dbss.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dbss.la-north-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dbss.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dbss.cn-north-4.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dbss.cn-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dbss.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dbss.cn-north-9.myhuaweicloud.com") static_fields = { "cn-south-2": CN_SOUTH_2, diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index c060ee6b3..fecbb2056 100755 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 3d773b739..2b364b146 100755 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py @@ -9,38 +9,38 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DcRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DC") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dcaas.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dcaas.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dcaas.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dcaas.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dcaas.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dcaas.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dcaas.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dcaas.ap-southeast-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dcaas.cn-north-9.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dcaas.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dcaas.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dcaas.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dcaas.la-north-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dcaas.cn-south-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dcaas.cn-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dcaas.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dcaas.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dcaas.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dcaas.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dcaas.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dcaas.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dcaas.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dcaas.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dcaas.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dcaas.cn-north-9.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dcaas.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dcaas.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dcaas.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dcaas.la-north-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dcaas.cn-south-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dcaas.cn-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dcaas.na-mexico-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index cc8901828..871f80942 100755 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index 531e8959c..e4d323507 100755 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -39,8 +39,13 @@ from huaweicloudsdkdcs.v2.model.conclusion_item import ConclusionItem from huaweicloudsdkdcs.v2.model.config_migration_instance_body import ConfigMigrationInstanceBody from huaweicloudsdkdcs.v2.model.copy_instance_request import CopyInstanceRequest from huaweicloudsdkdcs.v2.model.copy_instance_response import CopyInstanceResponse +from huaweicloudsdkdcs.v2.model.create_auto_expire_scan_task_request import CreateAutoExpireScanTaskRequest +from huaweicloudsdkdcs.v2.model.create_auto_expire_scan_task_response import CreateAutoExpireScanTaskResponse from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_request import CreateBigkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_response import CreateBigkeyScanTaskResponse +from huaweicloudsdkdcs.v2.model.create_custom_template_body import CreateCustomTemplateBody +from huaweicloudsdkdcs.v2.model.create_custom_template_request import CreateCustomTemplateRequest +from huaweicloudsdkdcs.v2.model.create_custom_template_response import CreateCustomTemplateResponse from huaweicloudsdkdcs.v2.model.create_diagnosis_task_body import CreateDiagnosisTaskBody from huaweicloudsdkdcs.v2.model.create_diagnosis_task_request import CreateDiagnosisTaskRequest from huaweicloudsdkdcs.v2.model.create_diagnosis_task_response import CreateDiagnosisTaskResponse diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index a9609e11d..5c026b8c7 100755 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -419,6 +419,69 @@ class DcsAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_auto_expire_scan_task_async(self, request): + """创建过期key扫描任务 + + 创建过期key扫描任务(Redis 3.0 不支持过期key扫描)。 + 过期key扫描会对键空间进行Redis的scan扫描,释放内存中已过期但是由于惰性删除机制而没有释放的内存空间。 + 过期key扫描在主节点上执行,会对实例性能有一定的影响,建议不要在业务高峰期进行。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAutoExpireScanTask + :type request: :class:`huaweicloudsdkdcs.v2.CreateAutoExpireScanTaskRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.CreateAutoExpireScanTaskResponse` + """ + return self.create_auto_expire_scan_task_with_http_info(request) + + def create_auto_expire_scan_task_with_http_info(self, request): + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/scan-expire-keys-task', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAutoExpireScanTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_bigkey_scan_task_async(self, request): """创建大key分析任务 @@ -480,6 +543,67 @@ class DcsAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_custom_template_async(self, request): + """创建自定义模板 + + 创建自定义模板 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateCustomTemplate + :type request: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateResponse` + """ + return self.create_custom_template_with_http_info(request) + + def create_custom_template_with_http_info(self, request): + all_params = ['create_custom_template_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/config-templates', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateCustomTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_diagnosis_task_async(self, request): """创建实例诊断任务 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index 65f58997a..27b632d4b 100755 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -413,6 +413,68 @@ class DcsClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_auto_expire_scan_task(self, request): + """创建过期key扫描任务 + + 创建过期key扫描任务(Redis 3.0 不支持过期key扫描)。 + 过期key扫描会对键空间进行Redis的scan扫描,释放内存中已过期但是由于惰性删除机制而没有释放的内存空间。 + 过期key扫描在主节点上执行,会对实例性能有一定的影响,建议不要在业务高峰期进行。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAutoExpireScanTask + :type request: :class:`huaweicloudsdkdcs.v2.CreateAutoExpireScanTaskRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.CreateAutoExpireScanTaskResponse` + """ + return self.create_auto_expire_scan_task_with_http_info(request) + + def create_auto_expire_scan_task_with_http_info(self, request): + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/instances/{instance_id}/scan-expire-keys-task', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAutoExpireScanTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_bigkey_scan_task(self, request): """创建大key分析任务 @@ -473,6 +535,66 @@ class DcsClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_custom_template(self, request): + """创建自定义模板 + + 创建自定义模板 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateCustomTemplate + :type request: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateResponse` + """ + return self.create_custom_template_with_http_info(request) + + def create_custom_template_with_http_info(self, request): + all_params = ['create_custom_template_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/config-templates', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateCustomTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_diagnosis_task(self, request): """创建实例诊断任务 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index b97c818a0..99ce0a334 100755 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -36,8 +36,13 @@ from huaweicloudsdkdcs.v2.model.conclusion_item import ConclusionItem from huaweicloudsdkdcs.v2.model.config_migration_instance_body import ConfigMigrationInstanceBody from huaweicloudsdkdcs.v2.model.copy_instance_request import CopyInstanceRequest from huaweicloudsdkdcs.v2.model.copy_instance_response import CopyInstanceResponse +from huaweicloudsdkdcs.v2.model.create_auto_expire_scan_task_request import CreateAutoExpireScanTaskRequest +from huaweicloudsdkdcs.v2.model.create_auto_expire_scan_task_response import CreateAutoExpireScanTaskResponse from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_request import CreateBigkeyScanTaskRequest from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_response import CreateBigkeyScanTaskResponse +from huaweicloudsdkdcs.v2.model.create_custom_template_body import CreateCustomTemplateBody +from huaweicloudsdkdcs.v2.model.create_custom_template_request import CreateCustomTemplateRequest +from huaweicloudsdkdcs.v2.model.create_custom_template_response import CreateCustomTemplateResponse from huaweicloudsdkdcs.v2.model.create_diagnosis_task_body import CreateDiagnosisTaskBody from huaweicloudsdkdcs.v2.model.create_diagnosis_task_request import CreateDiagnosisTaskRequest from huaweicloudsdkdcs.v2.model.create_diagnosis_task_response import CreateDiagnosisTaskResponse diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_request.py similarity index 70% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_request.py rename to huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_request.py index 9ec274771..b0e53655f 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_request.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunQueryInstanceRequest: +class CreateAutoExpireScanTaskRequest: """ Attributes: @@ -20,50 +20,50 @@ class RunQueryInstanceRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str' + 'instance_id': 'str' } attribute_map = { - 'instance_name': 'instance_name' + 'instance_id': 'instance_id' } - def __init__(self, instance_name=None): - """RunQueryInstanceRequest + def __init__(self, instance_id=None): + """CreateAutoExpireScanTaskRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str + :param instance_id: 实例ID。 + :type instance_id: str """ - self._instance_name = None + self._instance_id = None self.discriminator = None - self.instance_name = instance_name + self.instance_id = instance_id @property - def instance_name(self): - """Gets the instance_name of this RunQueryInstanceRequest. + def instance_id(self): + """Gets the instance_id of this CreateAutoExpireScanTaskRequest. - 实例名称。 + 实例ID。 - :return: The instance_name of this RunQueryInstanceRequest. + :return: The instance_id of this CreateAutoExpireScanTaskRequest. :rtype: str """ - return self._instance_name + return self._instance_id - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunQueryInstanceRequest. + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateAutoExpireScanTaskRequest. - 实例名称。 + 实例ID。 - :param instance_name: The instance_name of this RunQueryInstanceRequest. - :type instance_name: str + :param instance_id: The instance_id of this CreateAutoExpireScanTaskRequest. + :type instance_id: str """ - self._instance_name = instance_name + self._instance_id = instance_id def to_dict(self): """Returns the model properties as a dict""" @@ -107,7 +107,7 @@ class RunQueryInstanceRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunQueryInstanceRequest): + if not isinstance(other, CreateAutoExpireScanTaskRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_response.py new file mode 100755 index 000000000..bb6b2972a --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_auto_expire_scan_task_response.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAutoExpireScanTaskResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'instance_id': 'str', + 'status': 'str', + 'scan_type': 'str', + 'created_at': 'str', + 'started_at': 'str', + 'finished_at': 'str' + } + + 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' + } + + def __init__(self, id=None, instance_id=None, status=None, scan_type=None, created_at=None, started_at=None, finished_at=None): + """CreateAutoExpireScanTaskResponse + + 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\"(创建扫描任务时此值为null,不返回) + :type started_at: str + :param finished_at: 扫描任务结束时间,格式为:\"2020-06-15T02:21:18.669Z\"(创建扫描任务时此值为null,不返回) + :type finished_at: str + """ + + super(CreateAutoExpireScanTaskResponse, 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.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 + + @property + def id(self): + """Gets the id of this CreateAutoExpireScanTaskResponse. + + 过期key扫描记录ID + + :return: The id of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateAutoExpireScanTaskResponse. + + 过期key扫描记录ID + + :param id: The id of this CreateAutoExpireScanTaskResponse. + :type id: str + """ + self._id = id + + @property + def instance_id(self): + """Gets the instance_id of this CreateAutoExpireScanTaskResponse. + + 实例ID + + :return: The instance_id of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateAutoExpireScanTaskResponse. + + 实例ID + + :param instance_id: The instance_id of this CreateAutoExpireScanTaskResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def status(self): + """Gets the status of this CreateAutoExpireScanTaskResponse. + + 扫描任务状态 + + :return: The status of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateAutoExpireScanTaskResponse. + + 扫描任务状态 + + :param status: The status of this CreateAutoExpireScanTaskResponse. + :type status: str + """ + self._status = status + + @property + def scan_type(self): + """Gets the scan_type of this CreateAutoExpireScanTaskResponse. + + 扫描方式 + + :return: The scan_type of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._scan_type + + @scan_type.setter + def scan_type(self, scan_type): + """Sets the scan_type of this CreateAutoExpireScanTaskResponse. + + 扫描方式 + + :param scan_type: The scan_type of this CreateAutoExpireScanTaskResponse. + :type scan_type: str + """ + self._scan_type = scan_type + + @property + def created_at(self): + """Gets the created_at of this CreateAutoExpireScanTaskResponse. + + 扫描任务创建时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :return: The created_at of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this CreateAutoExpireScanTaskResponse. + + 扫描任务创建时间,格式为:\"2020-06-15T02:21:18.669Z\" + + :param created_at: The created_at of this CreateAutoExpireScanTaskResponse. + :type created_at: str + """ + self._created_at = created_at + + @property + def started_at(self): + """Gets the started_at of this CreateAutoExpireScanTaskResponse. + + 扫描任务开始时间,格式为:\"2020-06-15T02:21:18.669Z\"(创建扫描任务时此值为null,不返回) + + :return: The started_at of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this CreateAutoExpireScanTaskResponse. + + 扫描任务开始时间,格式为:\"2020-06-15T02:21:18.669Z\"(创建扫描任务时此值为null,不返回) + + :param started_at: The started_at of this CreateAutoExpireScanTaskResponse. + :type started_at: str + """ + self._started_at = started_at + + @property + def finished_at(self): + """Gets the finished_at of this CreateAutoExpireScanTaskResponse. + + 扫描任务结束时间,格式为:\"2020-06-15T02:21:18.669Z\"(创建扫描任务时此值为null,不返回) + + :return: The finished_at of this CreateAutoExpireScanTaskResponse. + :rtype: str + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """Sets the finished_at of this CreateAutoExpireScanTaskResponse. + + 扫描任务结束时间,格式为:\"2020-06-15T02:21:18.669Z\"(创建扫描任务时此值为null,不返回) + + :param finished_at: The finished_at of this CreateAutoExpireScanTaskResponse. + :type finished_at: str + """ + self._finished_at = finished_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAutoExpireScanTaskResponse): + return False + + return self.__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/create_custom_template_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_body.py new file mode 100755 index 000000000..23db87582 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_body.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCustomTemplateBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'template_id': 'str', + 'name': 'str', + 'type': 'str', + 'engine': 'str', + 'cache_mode': 'str', + 'description': 'str', + 'engine_version': 'str', + 'params': 'dict(str, str)' + } + + attribute_map = { + 'template_id': 'template_id', + 'name': 'name', + 'type': 'type', + 'engine': 'engine', + 'cache_mode': 'cache_mode', + 'description': 'description', + 'engine_version': 'engine_version', + 'params': 'params' + } + + def __init__(self, template_id=None, name=None, type=None, engine=None, cache_mode=None, description=None, engine_version=None, params=None): + """CreateCustomTemplateBody + + The model defined in huaweicloud sdk + + :param template_id: 来源系统模板ID + :type template_id: str + :param name: 模板名称 + :type name: str + :param type: 模板类型 + :type type: str + :param engine: 缓存引擎:Redis[和Memcached](tag:hws,hws_hk,ocb,sbc,tm,ctc,cmcc)。 + :type engine: str + :param cache_mode: 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 [- ha_rw_split: 表示读写分离实例](tag:hws) + :type cache_mode: str + :param description: 模板的描述信息 + :type description: str + :param engine_version: 缓存版本。 当缓存引擎为Redis时,取值为4.0或5.0。 [当缓存引擎为Memcached时,该字段为可选,取值为空。](tag:hws,hws_hk,ocb,sbc,tm,ctc,cmcc) + :type engine_version: str + :param params: 参数配置信息 + :type params: dict(str, str) + """ + + + + self._template_id = None + self._name = None + self._type = None + self._engine = None + self._cache_mode = None + self._description = None + self._engine_version = None + self._params = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + self.name = name + if type is not None: + self.type = type + if engine is not None: + self.engine = engine + if cache_mode is not None: + self.cache_mode = cache_mode + if description is not None: + self.description = description + if engine_version is not None: + self.engine_version = engine_version + if params is not None: + self.params = params + + @property + def template_id(self): + """Gets the template_id of this CreateCustomTemplateBody. + + 来源系统模板ID + + :return: The template_id of this CreateCustomTemplateBody. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this CreateCustomTemplateBody. + + 来源系统模板ID + + :param template_id: The template_id of this CreateCustomTemplateBody. + :type template_id: str + """ + self._template_id = template_id + + @property + def name(self): + """Gets the name of this CreateCustomTemplateBody. + + 模板名称 + + :return: The name of this CreateCustomTemplateBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateCustomTemplateBody. + + 模板名称 + + :param name: The name of this CreateCustomTemplateBody. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this CreateCustomTemplateBody. + + 模板类型 + + :return: The type of this CreateCustomTemplateBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateCustomTemplateBody. + + 模板类型 + + :param type: The type of this CreateCustomTemplateBody. + :type type: str + """ + self._type = type + + @property + def engine(self): + """Gets the engine of this CreateCustomTemplateBody. + + 缓存引擎:Redis[和Memcached](tag:hws,hws_hk,ocb,sbc,tm,ctc,cmcc)。 + + :return: The engine of this CreateCustomTemplateBody. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this CreateCustomTemplateBody. + + 缓存引擎:Redis[和Memcached](tag:hws,hws_hk,ocb,sbc,tm,ctc,cmcc)。 + + :param engine: The engine of this CreateCustomTemplateBody. + :type engine: str + """ + self._engine = engine + + @property + def cache_mode(self): + """Gets the cache_mode of this CreateCustomTemplateBody. + + 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 [- ha_rw_split: 表示读写分离实例](tag:hws) + + :return: The cache_mode of this CreateCustomTemplateBody. + :rtype: str + """ + return self._cache_mode + + @cache_mode.setter + def cache_mode(self, cache_mode): + """Sets the cache_mode of this CreateCustomTemplateBody. + + 缓存实例类型。取值范围如下: - single:表示单机实例 - ha:表示主备实例 - cluster:表示cluster集群实例 - proxy:表示Proxy集群实例 [- ha_rw_split: 表示读写分离实例](tag:hws) + + :param cache_mode: The cache_mode of this CreateCustomTemplateBody. + :type cache_mode: str + """ + self._cache_mode = cache_mode + + @property + def description(self): + """Gets the description of this CreateCustomTemplateBody. + + 模板的描述信息 + + :return: The description of this CreateCustomTemplateBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateCustomTemplateBody. + + 模板的描述信息 + + :param description: The description of this CreateCustomTemplateBody. + :type description: str + """ + self._description = description + + @property + def engine_version(self): + """Gets the engine_version of this CreateCustomTemplateBody. + + 缓存版本。 当缓存引擎为Redis时,取值为4.0或5.0。 [当缓存引擎为Memcached时,该字段为可选,取值为空。](tag:hws,hws_hk,ocb,sbc,tm,ctc,cmcc) + + :return: The engine_version of this CreateCustomTemplateBody. + :rtype: str + """ + return self._engine_version + + @engine_version.setter + def engine_version(self, engine_version): + """Sets the engine_version of this CreateCustomTemplateBody. + + 缓存版本。 当缓存引擎为Redis时,取值为4.0或5.0。 [当缓存引擎为Memcached时,该字段为可选,取值为空。](tag:hws,hws_hk,ocb,sbc,tm,ctc,cmcc) + + :param engine_version: The engine_version of this CreateCustomTemplateBody. + :type engine_version: str + """ + self._engine_version = engine_version + + @property + def params(self): + """Gets the params of this CreateCustomTemplateBody. + + 参数配置信息 + + :return: The params of this CreateCustomTemplateBody. + :rtype: dict(str, str) + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this CreateCustomTemplateBody. + + 参数配置信息 + + :param params: The params of this CreateCustomTemplateBody. + :type params: dict(str, str) + """ + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCustomTemplateBody): + return False + + return self.__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/create_custom_template_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_request.py new file mode 100755 index 000000000..116609fb7 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCustomTemplateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateCustomTemplateBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateCustomTemplateRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateCustomTemplateRequest + :type body: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateCustomTemplateRequest. + + :return: The body of this CreateCustomTemplateRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCustomTemplateRequest. + + :param body: The body of this CreateCustomTemplateRequest. + :type body: :class:`huaweicloudsdkdcs.v2.CreateCustomTemplateBody` + """ + 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, CreateCustomTemplateRequest): + return False + + return self.__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/create_custom_template_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_response.py new file mode 100755 index 000000000..32793b666 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_custom_template_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCustomTemplateResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """CreateCustomTemplateResponse + + The model defined in huaweicloud sdk + + :param id: 模板ID + :type id: str + """ + + super(CreateCustomTemplateResponse, self).__init__() + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this CreateCustomTemplateResponse. + + 模板ID + + :return: The id of this CreateCustomTemplateResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateCustomTemplateResponse. + + 模板ID + + :param id: The id of this CreateCustomTemplateResponse. + :type id: str + """ + self._id = 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, CreateCustomTemplateResponse): + return False + + return self.__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/list_instances_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py index a48b26d64..fe3a96967 100755 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/list_instances_request.py @@ -64,7 +64,7 @@ class ListInstancesRequest: :type limit: int :param status: 实例状态。详细状态说明见[缓存实例状态说明](https://support.huaweicloud.com/api-dcs/dcs-api-0312047.html) :type status: str - :param name_equal: 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 + :param name_equal: 是否按照实例名称进行精确匹配查询。 和name字段对应,name字段为模糊匹配的用例名,name_equal是精确匹配的用例名。 :type name_equal: str :param tags: 根据实例标签键值对进行查询。{key}表示标签键,{value}表示标签值。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,表示查询同时包含指定标签键值对的实例。 :type tags: str @@ -265,7 +265,7 @@ class ListInstancesRequest: def name_equal(self): """Gets the name_equal of this ListInstancesRequest. - 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 + 是否按照实例名称进行精确匹配查询。 和name字段对应,name字段为模糊匹配的用例名,name_equal是精确匹配的用例名。 :return: The name_equal of this ListInstancesRequest. :rtype: str @@ -276,7 +276,7 @@ class ListInstancesRequest: def name_equal(self, name_equal): """Sets the name_equal of this ListInstancesRequest. - 是否按照实例名称进行精确匹配查询。 默认为“false”,表示模糊匹配实例名称查询。若参数值为“true”表示按照实例名称进行精确匹配查询。 + 是否按照实例名称进行精确匹配查询。 和name字段对应,name字段为模糊匹配的用例名,name_equal是精确匹配的用例名。 :param name_equal: The name_equal of this ListInstancesRequest. :type name_equal: str diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py index a3f39c359..eac9715c9 100755 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/region/dcs_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DcsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DCS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dcs.af-south-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dcs.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dcs.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dcs.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dcs.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dcs.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dcs.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dcs.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dcs.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dcs.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dcs.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dcs.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dcs.ru-northwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dcs.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dcs.la-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dcs.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dcs.cn-north-9.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dcs.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dcs.af-south-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dcs.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dcs.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dcs.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dcs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dcs.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dcs.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dcs.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dcs.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dcs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dcs.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dcs.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dcs.ru-northwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dcs.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dcs.la-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dcs.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dcs.cn-north-9.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dcs.na-mexico-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index e8221a5d9..e93d4d45f 100755 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 45620012f..2d5d41608 100755 --- a/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/region/ddm_region.py +++ b/huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/region/ddm_region.py @@ -9,28 +9,28 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DdmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DDM") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://ddm.cn-southwest-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://ddm.cn-south-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ddm.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ddm.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://ddm.cn-east-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ddm.cn-north-1.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ddm.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ddm.ap-southeast-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://ddm.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://ddm.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://ddm.la-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://ddm.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://ddm.cn-south-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ddm.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ddm.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://ddm.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ddm.cn-north-1.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ddm.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ddm.ap-southeast-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://ddm.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://ddm.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://ddm.la-south-2.myhuaweicloud.com") static_fields = { "cn-southwest-2": CN_SOUTHWEST_2, diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index b5387c704..ddb48c176 100755 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 2941c125b..7ea86f789 100755 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DdsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DDS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dds.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dds.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dds.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dds.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dds.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dds.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dds.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dds.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dds.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dds.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dds.ru-northwest-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dds.cn-south-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dds.cn-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dds.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dds.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dds.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dds.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dds.cn-north-9.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dds.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dds.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dds.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dds.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dds.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dds.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dds.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dds.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dds.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dds.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dds.ru-northwest-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dds.cn-south-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dds.cn-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dds.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dds.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dds.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dds.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dds.cn-north-9.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 10018ac3f..6e98285d0 100755 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 82c76a225..a047359e6 100755 --- a/huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/region/deh_region.py +++ b/huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/region/deh_region.py @@ -9,26 +9,26 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DeHRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DEH") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://deh.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://deh.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://deh.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://deh.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://deh.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://deh.cn-east-3.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://deh.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://deh.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://deh.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://deh.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://deh.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://deh.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://deh.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://deh.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://deh.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://deh.cn-east-3.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://deh.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://deh.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://deh.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://deh.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 406149c7f..2ec93a0d1 100755 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 dc29bc516..b9f22f992 100755 --- a/huaweicloud-sdk-devsecurity/huaweicloudsdkdevsecurity/v1/region/devsecurity_region.py +++ b/huaweicloud-sdk-devsecurity/huaweicloudsdkdevsecurity/v1/region/devsecurity_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DevSecurityRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DEVSECURITY") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://devsecurity.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://devsecurity.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-devsecurity/requirements.txt b/huaweicloud-sdk-devsecurity/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-devsecurity/requirements.txt +++ b/huaweicloud-sdk-devsecurity/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-devsecurity/setup.py b/huaweicloud-sdk-devsecurity/setup.py index 95585f2ad..976248bdd 100755 --- a/huaweicloud-sdk-devsecurity/setup.py +++ b/huaweicloud-sdk-devsecurity/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevsecurity" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 37f6bf68b..0551ad793 100755 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/region/devstar_region.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/region/devstar_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DevStarRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DEVSTAR") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://devstar.cn-north-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://devstar.cn-north-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index f0e13eb3b..d24a4cba1 100755 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py index 5bc97dc68..935078f92 100755 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/region/dgc_region.py @@ -9,22 +9,22 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DgcRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DGC") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dayu-dlf.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dayu-dlf.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dayu-dlf.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dayu-dlf.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dayu-dlf.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dayu-dlf.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dayu-dlf.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dayu-dlf.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dayu-dlf.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dayu-dlf.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dayu-dlf.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dayu-dlf.ru-northwest-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 66708109f..bef290a12 100755 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 85e8d34f4..3dbc7b962 100755 --- a/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py +++ b/huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/region/dlf_region.py @@ -9,22 +9,22 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DlfRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DLF") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dayu-dlf.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dayu-dlf.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dayu-dlf.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dayu-dlf.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dayu-dlf.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dayu-dlf.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dayu-dlf.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dayu-dlf.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dayu-dlf.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dayu-dlf.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dayu-dlf.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dayu-dlf.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dayu-dlf.ru-northwest-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 1563bfc44..b3c90bed3 100755 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 501853135..e7105bc66 100755 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/region/dli_region.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/region/dli_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DliRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DLI") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dli.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dli.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dli.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dli.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dli.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dli.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dli.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dli.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dli.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dli.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dli.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dli.cn-southwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dli.sa-brazil-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dli.af-south-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dli.na-mexico-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dli.ru-northwest-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dli.la-north-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dli.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dli.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dli.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dli.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dli.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dli.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dli.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dli.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dli.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dli.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dli.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dli.cn-southwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dli.sa-brazil-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dli.af-south-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dli.na-mexico-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dli.ru-northwest-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dli.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-2": CN_NORTH_2, diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 695a3f8b1..365ab019d 100755 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dms/huaweicloudsdkdms/v2/region/dms_region.py b/huaweicloud-sdk-dms/huaweicloudsdkdms/v2/region/dms_region.py index f6b4323d8..75db47485 100755 --- a/huaweicloud-sdk-dms/huaweicloudsdkdms/v2/region/dms_region.py +++ b/huaweicloud-sdk-dms/huaweicloudsdkdms/v2/region/dms_region.py @@ -9,38 +9,38 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DMS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dms.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dms.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dms.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dms.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dms.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dms.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dms.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dms.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dms.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dms.ru-northwest-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dms.cn-north-9.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dms.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dms.la-south-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dms.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dms.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dms.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dms.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dms.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dms.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dms.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dms.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dms.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dms.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dms.cn-north-9.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dms.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dms.la-south-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-dms/requirements.txt b/huaweicloud-sdk-dms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dms/requirements.txt +++ b/huaweicloud-sdk-dms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index 35d38e3fc..fecbaa7f4 100755 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a855b4049..1e49f82be 100755 --- a/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py +++ b/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/region/dns_region.py @@ -9,36 +9,36 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DnsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DNS") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dns.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dns.cn-east-3.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dns.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dns.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dns.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dns.cn-southwest-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dns.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dns.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dns.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dns.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dns.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dns.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dns.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dns.na-mexico-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dns.cn-north-9.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dns.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dns.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dns.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dns.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dns.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dns.cn-southwest-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dns.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dns.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dns.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dns.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dns.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dns.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dns.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dns.na-mexico-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dns.cn-north-9.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index a00128bfb..fef7ee1dc 100755 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py index 5cb8836fb..0fead8079 100755 --- a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/history_traffic_event_dto.py @@ -23,6 +23,7 @@ class HistoryTrafficEventDTO: 'event_id': 'str', 'event_source_type': 'str', 'event_source_id': 'str', + 'esn': 'str', 'area_code': 'int', 'event_class': 'str', 'event_type': 'int', @@ -47,6 +48,7 @@ class HistoryTrafficEventDTO: 'event_id': 'event_id', 'event_source_type': 'event_source_type', 'event_source_id': 'event_source_id', + 'esn': 'esn', 'area_code': 'area_code', 'event_class': 'event_class', 'event_type': 'event_type', @@ -67,7 +69,7 @@ class HistoryTrafficEventDTO: 'created_time': 'created_time' } - def __init__(self, event_id=None, event_source_type=None, event_source_id=None, area_code=None, event_class=None, event_type=None, cross_id=None, event_description=None, event_level=None, event_params=None, event_position=None, event_position_name=None, reference_paths=None, note=None, event_status=None, event_confidence=None, event_ex_info=None, rsu_id=None, start_time=None, end_time=None, created_time=None): + def __init__(self, event_id=None, event_source_type=None, event_source_id=None, esn=None, area_code=None, event_class=None, event_type=None, cross_id=None, event_description=None, event_level=None, event_params=None, event_position=None, event_position_name=None, reference_paths=None, note=None, event_status=None, event_confidence=None, event_ex_info=None, rsu_id=None, start_time=None, end_time=None, created_time=None): """HistoryTrafficEventDTO The model defined in huaweicloud sdk @@ -78,6 +80,8 @@ class HistoryTrafficEventDTO: :type event_source_type: str :param event_source_id: **参数说明**:事件来源ID。 :type event_source_id: str + :param esn: **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + :type esn: str :param area_code: **参数说明**:区域码。 :type area_code: int :param event_class: **参数说明**:事件的分类。 **取值范围**: - AbnormalTraffic:异常路况 - AbnormalVehicle:异常车况 - AdverseWeather:恶劣天气 - TrafficSign:标志标牌 @@ -121,6 +125,7 @@ class HistoryTrafficEventDTO: self._event_id = None self._event_source_type = None self._event_source_id = None + self._esn = None self._area_code = None self._event_class = None self._event_type = None @@ -147,6 +152,8 @@ class HistoryTrafficEventDTO: self.event_source_type = event_source_type if event_source_id is not None: self.event_source_id = event_source_id + if esn is not None: + self.esn = esn if area_code is not None: self.area_code = area_code if event_class is not None: @@ -250,6 +257,28 @@ class HistoryTrafficEventDTO: """ self._event_source_id = event_source_id + @property + def esn(self): + """Gets the esn of this HistoryTrafficEventDTO. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :return: The esn of this HistoryTrafficEventDTO. + :rtype: str + """ + return self._esn + + @esn.setter + def esn(self, esn): + """Sets the esn of this HistoryTrafficEventDTO. + + **参数说明**:设备编码。 **取值范围**:长度不超过64,只允许字母、数字、以及_等字符的组合。 + + :param esn: The esn of this HistoryTrafficEventDTO. + :type esn: str + """ + self._esn = esn + @property def area_code(self): """Gets the area_code of this HistoryTrafficEventDTO. diff --git a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py index 36704723c..b74740704 100755 --- a/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py +++ b/huaweicloud-sdk-dris/huaweicloudsdkdris/v1/region/dris_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DrisRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DRIS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ocv2x-api.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ocv2x-api.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 18ba5043a..8f7510393 100755 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 1f7932004..c01803c3a 100755 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/region/drs_region.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/region/drs_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DrsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DRS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://drs.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://drs.cn-north-1.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://drs.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://drs.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://drs.cn-east-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://drs.cn-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://drs.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://drs.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://drs.ap-southeast-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://drs.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://drs.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://drs.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://drs.na-mexico-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://drs.af-south-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://drs.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://drs.cn-southwest-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://drs.cn-south-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://drs.cn-south-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://drs.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://drs.cn-north-1.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://drs.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://drs.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://drs.cn-east-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://drs.cn-north-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://drs.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://drs.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://drs.ap-southeast-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://drs.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://drs.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://drs.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://drs.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://drs.af-south-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://drs.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://drs.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://drs.cn-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://drs.cn-south-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py index 1f7932004..c01803c3a 100755 --- a/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py +++ b/huaweicloud-sdk-drs/huaweicloudsdkdrs/v5/region/drs_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DrsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DRS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://drs.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://drs.cn-north-1.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://drs.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://drs.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://drs.cn-east-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://drs.cn-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://drs.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://drs.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://drs.ap-southeast-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://drs.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://drs.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://drs.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://drs.na-mexico-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://drs.af-south-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://drs.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://drs.cn-southwest-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://drs.cn-south-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://drs.cn-south-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://drs.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://drs.cn-north-1.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://drs.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://drs.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://drs.cn-east-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://drs.cn-north-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://drs.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://drs.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://drs.ap-southeast-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://drs.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://drs.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://drs.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://drs.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://drs.af-south-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://drs.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://drs.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://drs.cn-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://drs.cn-south-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index ea0f7cd1c..1f4df4fed 100755 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py index d8e7a495a..bfb9d2a24 100755 --- a/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py +++ b/huaweicloud-sdk-dsc/huaweicloudsdkdsc/v1/region/dsc_region.py @@ -9,32 +9,32 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DscRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DSC") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sdg.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://sdg.cn-north-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://sdg.cn-north-9.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://sdg.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://sdg.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://sdg.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://sdg.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://sdg.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://sdg.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://sdg.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://sdg.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://sdg.la-south-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://sdg.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sdg.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://sdg.cn-north-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://sdg.cn-north-9.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://sdg.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://sdg.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://sdg.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://sdg.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://sdg.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://sdg.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://sdg.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://sdg.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://sdg.la-south-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://sdg.af-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 999e73932..0cb76a699 100755 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 dc8034d2a..0a6d43b96 100755 --- a/huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/region/dwr_region.py +++ b/huaweicloud-sdk-dwr/huaweicloudsdkdwr/v3/region/dwr_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DwrRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DWR") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dwr.cn-south-1.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dwr.cn-south-1.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index 47fced3ed..ac4222859 100755 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py index b32234dce..b30f9f79f 100755 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py @@ -9,36 +9,38 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class DwsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("DWS") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dws.cn-north-9.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dws.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dws.cn-east-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dws.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dws.cn-north-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dws.cn-southwest-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dws.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dws.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dws.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dws.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dws.af-south-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dws.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dws.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dws.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dws.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dws.cn-north-9.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dws.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dws.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dws.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dws.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dws.cn-southwest-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dws.cn-north-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dws.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dws.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dws.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dws.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dws.af-south-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dws.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dws.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dws.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dws.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-9": CN_NORTH_9, @@ -47,6 +49,7 @@ class DwsRegion: "cn-north-1": CN_NORTH_1, "cn-north-4": CN_NORTH_4, "cn-southwest-2": CN_SOUTHWEST_2, + "cn-north-2": CN_NORTH_2, "cn-south-1": CN_SOUTH_1, "ap-southeast-1": AP_SOUTHEAST_1, "ap-southeast-2": AP_SOUTHEAST_2, diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 9b000261d..e6f17e1a5 100755 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 7624882c6..8827821cd 100755 --- a/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/region/ecs_region.py +++ b/huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/region/ecs_region.py @@ -9,44 +9,44 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EcsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ECS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ecs.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ecs.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ecs.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://ecs.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ecs.cn-east-3.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://ecs.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ecs.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://ecs.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ecs.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://ecs.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://ecs.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://ecs.la-north-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://ecs.cn-south-4.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://ecs.na-mexico-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://ecs.la-south-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://ecs.cn-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://ecs.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://ecs.cn-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://ecs.ap-southeast-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ecs.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ecs.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ecs.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://ecs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ecs.cn-east-3.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://ecs.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ecs.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://ecs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ecs.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://ecs.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://ecs.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://ecs.la-north-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://ecs.cn-south-4.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://ecs.na-mexico-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://ecs.la-south-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://ecs.cn-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://ecs.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://ecs.cn-north-2.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://ecs.ap-southeast-4.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 0dcb00d67..6a61123a1 100755 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 77c90dc85..01e0709b5 100755 --- a/huaweicloud-sdk-eg/huaweicloudsdkeg/v1/region/eg_region.py +++ b/huaweicloud-sdk-eg/huaweicloudsdkeg/v1/region/eg_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EgRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("EG") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://eg.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://eg.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index fc1124a7c..89a91bbeb 100755 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a89583bb5..725d1821e 100755 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/region/eihealth_region.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/region/eihealth_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EiHealthRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("EIHEALTH") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://eihealth.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://eihealth.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://eihealth.cn-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://eihealth.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://eihealth.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://eihealth.cn-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index e1a396153..8e4d39ca6 100755 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 39a141390..0117ff21a 100755 --- a/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/region/eip_region.py +++ b/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/region/eip_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EipRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("EIP") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://vpc.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vpc.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vpc.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vpc.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://vpc.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://vpc.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://vpc.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://vpc.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://vpc.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://vpc.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://vpc.cn-north-9.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://vpc.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://vpc.sa-brazil-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://vpc.cn-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://vpc.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://vpc.na-mexico-1.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://vpc.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://vpc.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vpc.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://vpc.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://vpc.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://vpc.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://vpc.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://vpc.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://vpc.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://vpc.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://vpc.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://vpc.cn-north-9.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://vpc.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://vpc.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://vpc.cn-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://vpc.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://vpc.na-mexico-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://vpc.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py b/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py index 39a141390..0117ff21a 100755 --- a/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py +++ b/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/region/eip_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EipRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("EIP") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://vpc.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vpc.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vpc.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vpc.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://vpc.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://vpc.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://vpc.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://vpc.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://vpc.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://vpc.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://vpc.cn-north-9.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://vpc.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://vpc.sa-brazil-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://vpc.cn-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://vpc.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://vpc.na-mexico-1.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://vpc.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://vpc.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vpc.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://vpc.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://vpc.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://vpc.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://vpc.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://vpc.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://vpc.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://vpc.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://vpc.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://vpc.cn-north-9.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://vpc.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://vpc.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://vpc.cn-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://vpc.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://vpc.na-mexico-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://vpc.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 95bad4d39..38f254716 100755 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py index b8d122e30..012027b03 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/region/elb_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ElbRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ELB") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://elb.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://elb.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://elb.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://elb.cn-north-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://elb.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://elb.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://elb.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://elb.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://elb.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://elb.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://elb.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://elb.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://elb.cn-north-9.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://elb.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://elb.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://elb.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://elb.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://elb.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://elb.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://elb.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://elb.cn-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://elb.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://elb.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://elb.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://elb.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://elb.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://elb.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://elb.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://elb.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://elb.cn-north-9.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://elb.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://elb.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://elb.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://elb.la-north-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py index b8d122e30..012027b03 100755 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/region/elb_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ElbRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ELB") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://elb.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://elb.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://elb.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://elb.cn-north-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://elb.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://elb.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://elb.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://elb.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://elb.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://elb.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://elb.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://elb.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://elb.cn-north-9.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://elb.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://elb.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://elb.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://elb.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://elb.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://elb.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://elb.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://elb.cn-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://elb.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://elb.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://elb.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://elb.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://elb.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://elb.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://elb.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://elb.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://elb.cn-north-9.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://elb.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://elb.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://elb.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://elb.la-north-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index e190be598..a247e68fb 100755 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 dc9465333..9a2e6fb15 100755 --- a/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/region/eps_region.py +++ b/huaweicloud-sdk-eps/huaweicloudsdkeps/v1/region/eps_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EpsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("EPS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://eps.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://eps.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index e1820a419..d07918bec 100755 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 e10327e6a..ba592161a 100755 --- a/huaweicloud-sdk-er/huaweicloudsdker/v3/region/er_region.py +++ b/huaweicloud-sdk-er/huaweicloudsdker/v3/region/er_region.py @@ -9,24 +9,24 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ErRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ER") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://er.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://er.cn-east-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://er.cn-north-4.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://er.cn-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://er.cn-north-9.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://er.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://er.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://er.ap-southeast-3.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://er.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://er.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://er.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://er.cn-north-4.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://er.cn-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://er.cn-north-9.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://er.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://er.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://er.ap-southeast-3.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://er.cn-southwest-2.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 3c92cd777..b808e790c 100755 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 bbc5da062..fcd44a510 100755 --- a/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/region/evs_region.py +++ b/huaweicloud-sdk-evs/huaweicloudsdkevs/v2/region/evs_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class EvsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("EVS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://evs.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://evs.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://evs.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://evs.cn-north-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://evs.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://evs.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://evs.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://evs.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://evs.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://evs.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://evs.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://evs.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://evs.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://evs.la-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://evs.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://evs.na-mexico-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://evs.cn-north-9.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://evs.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://evs.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://evs.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://evs.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://evs.cn-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://evs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://evs.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://evs.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://evs.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://evs.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://evs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://evs.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://evs.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://evs.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://evs.la-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://evs.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://evs.na-mexico-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://evs.cn-north-9.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://evs.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 10cf5b570..4bcf85e06 100755 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_async_client.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_async_client.py index 734b5049f..5183599e2 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_async_client.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_async_client.py @@ -1284,7 +1284,7 @@ class FrsAsyncClient(Client): return self.detect_live_by_file_with_http_info(request) def detect_live_by_file_with_http_info(self, request): - all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time'] + all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time', 'nod_threshold'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1309,6 +1309,8 @@ class FrsAsyncClient(Client): form_params['actions'] = local_var_params['actions'] if 'action_time' in local_var_params: form_params['action_time'] = local_var_params['action_time'] + if 'nod_threshold' in local_var_params: + form_params['nod_threshold'] = local_var_params['nod_threshold'] body_params = None if 'body' in local_var_params: @@ -1353,7 +1355,7 @@ class FrsAsyncClient(Client): return self.detect_live_by_file_intl_with_http_info(request) def detect_live_by_file_intl_with_http_info(self, request): - all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time'] + all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time', 'nod_threshold'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1378,6 +1380,8 @@ class FrsAsyncClient(Client): form_params['actions'] = local_var_params['actions'] if 'action_time' in local_var_params: form_params['action_time'] = local_var_params['action_time'] + if 'nod_threshold' in local_var_params: + form_params['nod_threshold'] = local_var_params['nod_threshold'] body_params = None if 'body' in local_var_params: diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_client.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_client.py index daf98ae42..fe160d39b 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_client.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/frs_client.py @@ -1264,7 +1264,7 @@ class FrsClient(Client): return self.detect_live_by_file_with_http_info(request) def detect_live_by_file_with_http_info(self, request): - all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time'] + all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time', 'nod_threshold'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1289,6 +1289,8 @@ class FrsClient(Client): form_params['actions'] = local_var_params['actions'] if 'action_time' in local_var_params: form_params['action_time'] = local_var_params['action_time'] + if 'nod_threshold' in local_var_params: + form_params['nod_threshold'] = local_var_params['nod_threshold'] body_params = None if 'body' in local_var_params: @@ -1332,7 +1334,7 @@ class FrsClient(Client): return self.detect_live_by_file_intl_with_http_info(request) def detect_live_by_file_intl_with_http_info(self, request): - all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time'] + all_params = ['video_file', 'actions', 'enterprise_project_id', 'action_time', 'nod_threshold'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1357,6 +1359,8 @@ class FrsClient(Client): form_params['actions'] = local_var_params['actions'] if 'action_time' in local_var_params: form_params['action_time'] = local_var_params['action_time'] + if 'nod_threshold' in local_var_params: + form_params['nod_threshold'] = local_var_params['nod_threshold'] body_params = None if 'body' in local_var_params: diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_intl_request_body.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_intl_request_body.py index 4d63602de..ba816e6b4 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_intl_request_body.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_intl_request_body.py @@ -22,16 +22,18 @@ class DetectLiveByFileIntlRequestBody: openapi_types = { 'video_file': 'file', 'actions': 'str', - 'action_time': 'str' + 'action_time': 'str', + 'nod_threshold': 'float' } attribute_map = { 'video_file': 'video_file', 'actions': 'actions', - 'action_time': 'action_time' + 'action_time': 'action_time', + 'nod_threshold': 'nod_threshold' } - def __init__(self, video_file=None, actions=None, action_time=None): + def __init__(self, video_file=None, actions=None, action_time=None, nod_threshold=None): """DetectLiveByFileIntlRequestBody The model defined in huaweicloud sdk @@ -42,6 +44,8 @@ class DetectLiveByFileIntlRequestBody: :type actions: str :param action_time: 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 :type action_time: str + :param nod_threshold: 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + :type nod_threshold: float """ @@ -49,12 +53,15 @@ class DetectLiveByFileIntlRequestBody: self._video_file = None self._actions = None self._action_time = None + self._nod_threshold = None self.discriminator = None self.video_file = video_file self.actions = actions if action_time is not None: self.action_time = action_time + if nod_threshold is not None: + self.nod_threshold = nod_threshold @property def video_file(self): @@ -122,6 +129,28 @@ class DetectLiveByFileIntlRequestBody: """ self._action_time = action_time + @property + def nod_threshold(self): + """Gets the nod_threshold of this DetectLiveByFileIntlRequestBody. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :return: The nod_threshold of this DetectLiveByFileIntlRequestBody. + :rtype: float + """ + return self._nod_threshold + + @nod_threshold.setter + def nod_threshold(self, nod_threshold): + """Sets the nod_threshold of this DetectLiveByFileIntlRequestBody. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :param nod_threshold: The nod_threshold of this DetectLiveByFileIntlRequestBody. + :type nod_threshold: float + """ + self._nod_threshold = nod_threshold + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_request_body.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_request_body.py index 5a30a5bdc..d36f815e3 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_request_body.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/detect_live_by_file_request_body.py @@ -22,16 +22,18 @@ class DetectLiveByFileRequestBody: openapi_types = { 'video_file': 'file', 'actions': 'str', - 'action_time': 'str' + 'action_time': 'str', + 'nod_threshold': 'float' } attribute_map = { 'video_file': 'video_file', 'actions': 'actions', - 'action_time': 'action_time' + 'action_time': 'action_time', + 'nod_threshold': 'nod_threshold' } - def __init__(self, video_file=None, actions=None, action_time=None): + def __init__(self, video_file=None, actions=None, action_time=None, nod_threshold=None): """DetectLiveByFileRequestBody The model defined in huaweicloud sdk @@ -42,6 +44,8 @@ class DetectLiveByFileRequestBody: :type actions: str :param action_time: 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 :type action_time: str + :param nod_threshold: 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + :type nod_threshold: float """ @@ -49,12 +53,15 @@ class DetectLiveByFileRequestBody: self._video_file = None self._actions = None self._action_time = None + self._nod_threshold = None self.discriminator = None self.video_file = video_file self.actions = actions if action_time is not None: self.action_time = action_time + if nod_threshold is not None: + self.nod_threshold = nod_threshold @property def video_file(self): @@ -122,6 +129,28 @@ class DetectLiveByFileRequestBody: """ self._action_time = action_time + @property + def nod_threshold(self): + """Gets the nod_threshold of this DetectLiveByFileRequestBody. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :return: The nod_threshold of this DetectLiveByFileRequestBody. + :rtype: float + """ + return self._nod_threshold + + @nod_threshold.setter + def nod_threshold(self, nod_threshold): + """Sets the nod_threshold of this DetectLiveByFileRequestBody. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :param nod_threshold: The nod_threshold of this DetectLiveByFileRequestBody. + :type nod_threshold: float + """ + self._nod_threshold = nod_threshold + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_base64_req.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_base64_req.py index ca2a39924..815187c33 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_base64_req.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_base64_req.py @@ -20,63 +20,48 @@ class LiveDetectBase64Req: sensitive_list = [] openapi_types = { - 'action_time': 'str', 'video_base64': 'str', - 'actions': 'str' + 'actions': 'str', + 'action_time': 'str', + 'nod_threshold': 'float' } attribute_map = { - 'action_time': 'action_time', 'video_base64': 'video_base64', - 'actions': 'actions' + 'actions': 'actions', + 'action_time': 'action_time', + 'nod_threshold': 'nod_threshold' } - def __init__(self, action_time=None, video_base64=None, actions=None): + def __init__(self, video_base64=None, actions=None, action_time=None, nod_threshold=None): """LiveDetectBase64Req The model defined in huaweicloud sdk - :param action_time: 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 - :type action_time: str :param video_base64: 视频数据,Base64编码,要求: • Base64编码后大小不超过8MB,建议客户端压缩到200KB~2MB。 • 限制视频时长1~15秒。 • 建议帧率10fps~30fps。 • 封装格式:mp4、avi、flv、webm、asf、mov。 • 视频编码格式: h261、h263、h264、hevc、vc1、vp8、vp9、wmv3。 :type video_base64: str :param actions: 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: • 1:左摇头 • 2:右摇头 • 3:点头 • 4:嘴部动作 :type actions: str + :param action_time: 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 + :type action_time: str + :param nod_threshold: 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + :type nod_threshold: float """ - self._action_time = None self._video_base64 = None self._actions = None + self._action_time = None + self._nod_threshold = None self.discriminator = None - if action_time is not None: - self.action_time = action_time self.video_base64 = video_base64 self.actions = actions - - @property - def action_time(self): - """Gets the action_time of this LiveDetectBase64Req. - - 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 - - :return: The action_time of this LiveDetectBase64Req. - :rtype: str - """ - return self._action_time - - @action_time.setter - def action_time(self, action_time): - """Sets the action_time of this LiveDetectBase64Req. - - 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 - - :param action_time: The action_time of this LiveDetectBase64Req. - :type action_time: str - """ - self._action_time = action_time + if action_time is not None: + self.action_time = action_time + if nod_threshold is not None: + self.nod_threshold = nod_threshold @property def video_base64(self): @@ -122,6 +107,50 @@ class LiveDetectBase64Req: """ self._actions = actions + @property + def action_time(self): + """Gets the action_time of this LiveDetectBase64Req. + + 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 + + :return: The action_time of this LiveDetectBase64Req. + :rtype: str + """ + return self._action_time + + @action_time.setter + def action_time(self, action_time): + """Sets the action_time of this LiveDetectBase64Req. + + 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 + + :param action_time: The action_time of this LiveDetectBase64Req. + :type action_time: str + """ + self._action_time = action_time + + @property + def nod_threshold(self): + """Gets the nod_threshold of this LiveDetectBase64Req. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :return: The nod_threshold of this LiveDetectBase64Req. + :rtype: float + """ + return self._nod_threshold + + @nod_threshold.setter + def nod_threshold(self, nod_threshold): + """Sets the nod_threshold of this LiveDetectBase64Req. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :param nod_threshold: The nod_threshold of this LiveDetectBase64Req. + :type nod_threshold: float + """ + self._nod_threshold = nod_threshold + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_url_req.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_url_req.py index 84eb4eb28..4ece878a4 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_url_req.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/live_detect_url_req.py @@ -20,63 +20,48 @@ class LiveDetectUrlReq: sensitive_list = [] openapi_types = { - 'action_time': 'str', 'video_url': 'str', - 'actions': 'str' + 'actions': 'str', + 'action_time': 'str', + 'nod_threshold': 'float' } attribute_map = { - 'action_time': 'action_time', 'video_url': 'video_url', - 'actions': 'actions' + 'actions': 'actions', + 'action_time': 'action_time', + 'nod_threshold': 'nod_threshold' } - def __init__(self, action_time=None, video_url=None, actions=None): + def __init__(self, video_url=None, actions=None, action_time=None, nod_threshold=None): """LiveDetectUrlReq The model defined in huaweicloud sdk - :param action_time: 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 - :type action_time: str :param video_url: [视频的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。 开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。视频要求: • 视频Base64编码后大小不超过8MB。 • 限制视频时长1~15秒。 • 建议帧率10fps~30fps。 • 封装格式:mp4、avi、flv、webm、asf、mov。 • 视频编码格式: h261、h263、h264、hevc、vc1、vp8、vp9、wmv3。](tag:hc) [视频的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。 开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/intl/zh-cn/api-face/face_02_0006.html)。视频要求: • 视频Base64编码后大小不超过8MB。 • 限制视频时长1~15秒。 • 建议帧率10fps~30fps。 • 封装格式:mp4、avi、flv、webm、asf、mov。 • 视频编码格式: h261、h263、h264、hevc、vc1、vp8、vp9、wmv3。](tag:hk) :type video_url: str :param actions: 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: • 1:左摇头 • 2:右摇头 • 3:点头 • 4:嘴部动作 :type actions: str + :param action_time: 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 + :type action_time: str + :param nod_threshold: 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + :type nod_threshold: float """ - self._action_time = None self._video_url = None self._actions = None + self._action_time = None + self._nod_threshold = None self.discriminator = None - if action_time is not None: - self.action_time = action_time self.video_url = video_url self.actions = actions - - @property - def action_time(self): - """Gets the action_time of this LiveDetectUrlReq. - - 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 - - :return: The action_time of this LiveDetectUrlReq. - :rtype: str - """ - return self._action_time - - @action_time.setter - def action_time(self, action_time): - """Sets the action_time of this LiveDetectUrlReq. - - 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 - - :param action_time: The action_time of this LiveDetectUrlReq. - :type action_time: str - """ - self._action_time = action_time + if action_time is not None: + self.action_time = action_time + if nod_threshold is not None: + self.nod_threshold = nod_threshold @property def video_url(self): @@ -122,6 +107,50 @@ class LiveDetectUrlReq: """ self._actions = actions + @property + def action_time(self): + """Gets the action_time of this LiveDetectUrlReq. + + 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 + + :return: The action_time of this LiveDetectUrlReq. + :rtype: str + """ + return self._action_time + + @action_time.setter + def action_time(self, action_time): + """Sets the action_time of this LiveDetectUrlReq. + + 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 + + :param action_time: The action_time of this LiveDetectUrlReq. + :type action_time: str + """ + self._action_time = action_time + + @property + def nod_threshold(self): + """Gets the nod_threshold of this LiveDetectUrlReq. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :return: The nod_threshold of this LiveDetectUrlReq. + :rtype: float + """ + return self._nod_threshold + + @nod_threshold.setter + def nod_threshold(self, nod_threshold): + """Sets the nod_threshold of this LiveDetectUrlReq. + + 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 + + :param nod_threshold: The nod_threshold of this LiveDetectUrlReq. + :type nod_threshold: float + """ + self._nod_threshold = nod_threshold + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py index 8bb2c3e4f..dd4973e37 100755 --- a/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py +++ b/huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/region/frs_region.py @@ -9,18 +9,18 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class FrsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("FRS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://face.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://face.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://face.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://face.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://face.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://face.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://face.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://face.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://face.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://face.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://face.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://face.ap-southeast-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index bd21908d5..a3db7c407 100755 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 6f828ed9b..675a4cfc1 100755 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/region/functiongraph_region.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/region/functiongraph_region.py @@ -9,34 +9,34 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class FunctionGraphRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("FUNCTIONGRAPH") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://functiongraph.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://functiongraph.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://functiongraph.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://functiongraph.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://functiongraph.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://functiongraph.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://functiongraph.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://functiongraph.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://functiongraph.af-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://functiongraph.cn-southwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://functiongraph.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://functiongraph.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://functiongraph.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://functiongraph.la-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://functiongraph.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://functiongraph.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://functiongraph.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://functiongraph.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://functiongraph.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://functiongraph.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://functiongraph.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://functiongraph.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://functiongraph.af-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://functiongraph.cn-southwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://functiongraph.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://functiongraph.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://functiongraph.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://functiongraph.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 418819663..6c69a83fa 100755 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 3b17460ee..26ebd8bb4 100755 --- a/huaweicloud-sdk-ga/huaweicloudsdkga/v1/region/ga_region.py +++ b/huaweicloud-sdk-ga/huaweicloudsdkga/v1/region/ga_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GaRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GA") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ga.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://ga.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ga.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://ga.myhuaweicloud.com") static_fields = { "cn-east-3": CN_EAST_3, diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 5da4ecb5e..5751a0d53 100755 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/grant_database_permission.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/grant_database_permission.py index cce384b8b..b39d927e1 100755 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/grant_database_permission.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/grant_database_permission.py @@ -52,8 +52,7 @@ class GrantDatabasePermission: self.discriminator = None self.name = name - if host is not None: - self.host = host + self.host = host self.databases = databases @property diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py index 6ef1863cf..2ba280aa3 100755 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/region/gaussdb_region.py @@ -9,24 +9,24 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GaussDBRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GAUSSDB") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://gaussdb.cn-north-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://gaussdb.cn-southwest-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://gaussdb.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://gaussdb.cn-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://gaussdb.ru-northwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://gaussdb.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://gaussdb.cn-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://gaussdb.cn-north-9.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://gaussdb.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://gaussdb.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://gaussdb.cn-southwest-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://gaussdb.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://gaussdb.cn-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://gaussdb.ru-northwest-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://gaussdb.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://gaussdb.cn-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://gaussdb.cn-north-9.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://gaussdb.sa-brazil-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index 0d1502b80..daf8bd5c8 100755 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 f5f6b76a5..b770c04ab 100755 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/region/gaussdbfornosql_region.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/region/gaussdbfornosql_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GaussDBforNoSQLRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GAUSSDBFORNOSQL") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://gaussdb-nosql.cn-north-4.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://gaussdb-nosql.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://gaussdb-nosql.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://gaussdb-nosql.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://gaussdb-nosql.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://gaussdb-nosql.cn-north-9.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://gaussdb-nosql.cn-north-4.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://gaussdb-nosql.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://gaussdb-nosql.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://gaussdb-nosql.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://gaussdb-nosql.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://gaussdb-nosql.cn-north-9.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 0ff2b8be7..eb19d12c1 100755 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore.py index 8b3ff8737..90ee47aeb 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore.py @@ -34,7 +34,7 @@ class OpenGaussDatastore: The model defined in huaweicloud sdk - :param type: 数据库引擎,不区分大小写,取值如下: GaussDB。 + :param type: 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss)。 :type type: str :param version: 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDBforopenGauss&api=ListDatastores)。 :type version: str @@ -54,7 +54,7 @@ class OpenGaussDatastore: def type(self): """Gets the type of this OpenGaussDatastore. - 数据库引擎,不区分大小写,取值如下: GaussDB。 + 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss)。 :return: The type of this OpenGaussDatastore. :rtype: str @@ -65,7 +65,7 @@ class OpenGaussDatastore: def type(self, type): """Sets the type of this OpenGaussDatastore. - 数据库引擎,不区分大小写,取值如下: GaussDB。 + 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss)。 :param type: The type of this OpenGaussDatastore. :type type: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_response.py index 0972fa11a..6ef96ead5 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_response.py @@ -34,7 +34,7 @@ class OpenGaussDatastoreResponse: The model defined in huaweicloud sdk - :param type: 数据库引擎,不区分大小写,取值如下: GaussDB + :param type: 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss) :type type: str :param version: 数据库版本。 :type version: str @@ -53,7 +53,7 @@ class OpenGaussDatastoreResponse: def type(self): """Gets the type of this OpenGaussDatastoreResponse. - 数据库引擎,不区分大小写,取值如下: GaussDB + 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss) :return: The type of this OpenGaussDatastoreResponse. :rtype: str @@ -64,7 +64,7 @@ class OpenGaussDatastoreResponse: def type(self, type): """Sets the type of this OpenGaussDatastoreResponse. - 数据库引擎,不区分大小写,取值如下: GaussDB + 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss) :param type: The type of this OpenGaussDatastoreResponse. :type type: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py index 4814187d5..49956e1c1 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py @@ -9,32 +9,32 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GaussDBforopenGaussRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GAUSSDBFOROPENGAUSS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://gaussdb-opengauss.cn-north-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://gaussdb-opengauss.cn-southwest-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://gaussdb-opengauss.cn-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://gaussdb-opengauss.ru-northwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://gaussdb-opengauss.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://gaussdb-opengauss.cn-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://gaussdb-opengauss.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://gaussdb-opengauss.cn-east-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://gaussdb-opengauss.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://gaussdb-opengauss.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://gaussdb-opengauss.la-north-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://gaussdb-opengauss.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://gaussdb-opengauss.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://gaussdb-opengauss.cn-southwest-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://gaussdb-opengauss.cn-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://gaussdb-opengauss.ru-northwest-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://gaussdb-opengauss.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://gaussdb-opengauss.cn-north-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://gaussdb-opengauss.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://gaussdb-opengauss.cn-east-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://gaussdb-opengauss.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://gaussdb-opengauss.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://gaussdb-opengauss.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://gaussdb-opengauss.af-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 90524a4af..7e30de4ee 100755 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 68f97bddc..ba2fa1cc0 100755 --- a/huaweicloud-sdk-ges/huaweicloudsdkges/v1/region/ges_region.py +++ b/huaweicloud-sdk-ges/huaweicloudsdkges/v1/region/ges_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GesRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GES") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://ges.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ges.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ges.cn-north-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ges.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ges.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ges.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ges.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://ges.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ges.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ges.cn-north-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ges.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ges.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ges.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ges.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-2": CN_NORTH_2, diff --git a/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py b/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py index 68f97bddc..ba2fa1cc0 100755 --- a/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py +++ b/huaweicloud-sdk-ges/huaweicloudsdkges/v2/region/ges_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GesRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GES") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://ges.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ges.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ges.cn-north-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ges.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ges.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ges.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ges.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://ges.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ges.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ges.cn-north-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ges.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ges.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ges.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ges.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-2": CN_NORTH_2, diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 04ffb5ed9..f8f1ef223 100755 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 168a4667d..40f146ef2 100755 --- a/huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/region/gsl_region.py +++ b/huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/region/gsl_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class GslRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("GSL") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://gsl.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://gsl.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 73be7ad50..4274adf96 100755 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 681b1aa8d..29d07ebb5 100755 --- a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v1/region/hilens_region.py +++ b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v1/region/hilens_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class HiLensRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("HILENS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://hilens.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://hilens.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py index 681b1aa8d..29d07ebb5 100755 --- a/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py +++ b/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/region/hilens_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class HiLensRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("HILENS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://hilens.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://hilens.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 7d11fc5b2..83eb4514d 100755 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 d5b295557..0d0bb9908 100755 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v1/region/hss_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class HssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("HSS") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://hss.cn-north-9.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://hss.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://hss.cn-north-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://hss.cn-southwest-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://hss.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://hss.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://hss.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://hss.cn-south-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://hss.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://hss.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://hss.ap-southeast-3.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://hss.na-mexico-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://hss.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://hss.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://hss.la-south-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://hss.cn-south-4.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://hss.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://hss.cn-north-9.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://hss.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://hss.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://hss.cn-southwest-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://hss.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://hss.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://hss.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://hss.cn-south-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://hss.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://hss.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://hss.ap-southeast-3.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://hss.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://hss.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://hss.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://hss.la-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://hss.cn-south-4.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://hss.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-9": CN_NORTH_9, diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py index d5b295557..0d0bb9908 100755 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/region/hss_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class HssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("HSS") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://hss.cn-north-9.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://hss.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://hss.cn-north-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://hss.cn-southwest-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://hss.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://hss.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://hss.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://hss.cn-south-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://hss.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://hss.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://hss.ap-southeast-3.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://hss.na-mexico-1.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://hss.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://hss.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://hss.la-south-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://hss.cn-south-4.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://hss.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://hss.cn-north-9.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://hss.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://hss.cn-north-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://hss.cn-southwest-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://hss.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://hss.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://hss.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://hss.cn-south-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://hss.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://hss.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://hss.ap-southeast-3.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://hss.na-mexico-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://hss.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://hss.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://hss.la-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://hss.cn-south-4.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://hss.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-9": CN_NORTH_9, diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 6cde5fa23..8bcf46ddc 100755 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 4a0691642..8eab70a42 100755 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IamRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IAM") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://iam.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iam.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://iam.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://iam.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://iam.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://iam.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://iam.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://iam.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://iam.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://iam.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://iam.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://iam.af-south-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://iam.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://iam.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://iam.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://iam.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://iam.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://iam.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iam.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://iam.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://iam.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://iam.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://iam.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://iam.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://iam.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://iam.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://iam.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://iam.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://iam.af-south-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://iam.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://iam.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://iam.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://iam.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://iam.cn-north-9.myhuaweicloud.com") static_fields = { "cn-north-2": CN_NORTH_2, diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 8f52fb34b..dfb7f9244 100755 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 fa0ce777e..b4b271929 100755 --- a/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/region/iec_region.py +++ b/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/region/iec_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IecRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IEC") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iecs.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iecs.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 6e5ab13ee..469d6fe5e 100755 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 2bff4f61c..56ef4acc2 100755 --- a/huaweicloud-sdk-ief/huaweicloudsdkief/v1/region/ief_region.py +++ b/huaweicloud-sdk-ief/huaweicloudsdkief/v1/region/ief_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IefRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IEF") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ief.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ief.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ief.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://ief.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ief.cn-south-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ief.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ief.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ief.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://ief.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ief.cn-south-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 4d30cc735..6e0ceb39b 100755 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ies/huaweicloudsdkies/v1/region/ies_region.py b/huaweicloud-sdk-ies/huaweicloudsdkies/v1/region/ies_region.py index 5a6887984..e94d395a7 100755 --- a/huaweicloud-sdk-ies/huaweicloudsdkies/v1/region/ies_region.py +++ b/huaweicloud-sdk-ies/huaweicloudsdkies/v1/region/ies_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IesRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IES") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ies.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ies.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-ies/requirements.txt b/huaweicloud-sdk-ies/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ies/requirements.txt +++ b/huaweicloud-sdk-ies/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ies/setup.py b/huaweicloud-sdk-ies/setup.py index 1c38d0a2a..9bf858671 100755 --- a/huaweicloud-sdk-ies/setup.py +++ b/huaweicloud-sdk-ies/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkies" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/__init__.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/__init__.py index 96f373682..03975543d 100755 --- a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/__init__.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/__init__.py @@ -22,12 +22,17 @@ from huaweicloudsdkimage.v2.model.image_media_tagging_item_body_i18n_tag import from huaweicloudsdkimage.v2.model.image_media_tagging_item_body_i18n_type import ImageMediaTaggingItemBodyI18nType from huaweicloudsdkimage.v2.model.image_media_tagging_req import ImageMediaTaggingReq from huaweicloudsdkimage.v2.model.image_media_tagging_response_result import ImageMediaTaggingResponseResult +from huaweicloudsdkimage.v2.model.image_super_resolution_req import ImageSuperResolutionReq +from huaweicloudsdkimage.v2.model.image_super_resolution_response_result import ImageSuperResolutionResponseResult from huaweicloudsdkimage.v2.model.image_tagging_instance import ImageTaggingInstance from huaweicloudsdkimage.v2.model.image_tagging_item_body import ImageTaggingItemBody from huaweicloudsdkimage.v2.model.image_tagging_item_body_i18n_tag import ImageTaggingItemBodyI18nTag from huaweicloudsdkimage.v2.model.image_tagging_item_body_i18n_type import ImageTaggingItemBodyI18nType from huaweicloudsdkimage.v2.model.image_tagging_req import ImageTaggingReq from huaweicloudsdkimage.v2.model.image_tagging_response_result import ImageTaggingResponseResult +from huaweicloudsdkimage.v2.model.recapture_detect_req import RecaptureDetectReq +from huaweicloudsdkimage.v2.model.recapture_detect_response_result import RecaptureDetectResponseResult +from huaweicloudsdkimage.v2.model.recapture_detect_response_result_detail import RecaptureDetectResponseResultDetail from huaweicloudsdkimage.v2.model.run_celebrity_recognition_request import RunCelebrityRecognitionRequest from huaweicloudsdkimage.v2.model.run_celebrity_recognition_response import RunCelebrityRecognitionResponse from huaweicloudsdkimage.v2.model.run_delete_custom_tags_request import RunDeleteCustomTagsRequest @@ -40,8 +45,12 @@ from huaweicloudsdkimage.v2.model.run_image_media_tagging_det_request import Run from huaweicloudsdkimage.v2.model.run_image_media_tagging_det_response import RunImageMediaTaggingDetResponse from huaweicloudsdkimage.v2.model.run_image_media_tagging_request import RunImageMediaTaggingRequest from huaweicloudsdkimage.v2.model.run_image_media_tagging_response import RunImageMediaTaggingResponse +from huaweicloudsdkimage.v2.model.run_image_super_resolution_request import RunImageSuperResolutionRequest +from huaweicloudsdkimage.v2.model.run_image_super_resolution_response import RunImageSuperResolutionResponse from huaweicloudsdkimage.v2.model.run_image_tagging_request import RunImageTaggingRequest from huaweicloudsdkimage.v2.model.run_image_tagging_response import RunImageTaggingResponse from huaweicloudsdkimage.v2.model.run_query_custom_tags_request import RunQueryCustomTagsRequest from huaweicloudsdkimage.v2.model.run_query_custom_tags_response import RunQueryCustomTagsResponse +from huaweicloudsdkimage.v2.model.run_recapture_detect_request import RunRecaptureDetectRequest +from huaweicloudsdkimage.v2.model.run_recapture_detect_response import RunRecaptureDetectResponse diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_async_client.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_async_client.py index 7a1c0918a..976deef15 100755 --- a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_async_client.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_async_client.py @@ -225,6 +225,67 @@ class ImageAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def run_image_super_resolution_async(self, request): + """图像超分 + + 图像数据,base64编码,输入图像范围200px ~ 1080px,支持JPG/PNG/BMP/JPEG/WEBP格式 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunImageSuperResolution + :type request: :class:`huaweicloudsdkimage.v2.RunImageSuperResolutionRequest` + :rtype: :class:`huaweicloudsdkimage.v2.RunImageSuperResolutionResponse` + """ + return self.run_image_super_resolution_with_http_info(request) + + def run_image_super_resolution_with_http_info(self, request): + all_params = ['run_image_super_resolution_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/image/image-super-resolution', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunImageSuperResolutionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def run_image_tagging_async(self, request): """图像标签 @@ -286,6 +347,67 @@ class ImageAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def run_recapture_detect_async(self, request): + """翻拍识别 + + 零售行业通常根据零售店的销售量进行销售奖励,拍摄售出商品的条形码上传后台是常用的统计方式。翻拍识别利用深度神经网络算法判断条形码图片为原始拍摄,还是经过二次翻拍、打印翻拍等手法二次处理的图片。利用翻拍识别,可以检测出经过二次处理的不合规范图片,使得统计数据更准确、有效。。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunRecaptureDetect + :type request: :class:`huaweicloudsdkimage.v2.RunRecaptureDetectRequest` + :rtype: :class:`huaweicloudsdkimage.v2.RunRecaptureDetectResponse` + """ + return self.run_recapture_detect_with_http_info(request) + + def run_recapture_detect_with_http_info(self, request): + all_params = ['run_recapture_detect_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/image/recapture-detect', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunRecaptureDetectResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def run_delete_custom_tags_async(self, request): """删除媒资图像标签 diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_client.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_client.py index 281430e0b..052461066 100755 --- a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_client.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/image_client.py @@ -222,6 +222,66 @@ class ImageClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def run_image_super_resolution(self, request): + """图像超分 + + 图像数据,base64编码,输入图像范围200px ~ 1080px,支持JPG/PNG/BMP/JPEG/WEBP格式 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunImageSuperResolution + :type request: :class:`huaweicloudsdkimage.v2.RunImageSuperResolutionRequest` + :rtype: :class:`huaweicloudsdkimage.v2.RunImageSuperResolutionResponse` + """ + return self.run_image_super_resolution_with_http_info(request) + + def run_image_super_resolution_with_http_info(self, request): + all_params = ['run_image_super_resolution_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/image/image-super-resolution', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunImageSuperResolutionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def run_image_tagging(self, request): """图像标签 @@ -282,6 +342,66 @@ class ImageClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def run_recapture_detect(self, request): + """翻拍识别 + + 零售行业通常根据零售店的销售量进行销售奖励,拍摄售出商品的条形码上传后台是常用的统计方式。翻拍识别利用深度神经网络算法判断条形码图片为原始拍摄,还是经过二次翻拍、打印翻拍等手法二次处理的图片。利用翻拍识别,可以检测出经过二次处理的不合规范图片,使得统计数据更准确、有效。。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunRecaptureDetect + :type request: :class:`huaweicloudsdkimage.v2.RunRecaptureDetectRequest` + :rtype: :class:`huaweicloudsdkimage.v2.RunRecaptureDetectResponse` + """ + return self.run_recapture_detect_with_http_info(request) + + def run_recapture_detect_with_http_info(self, request): + all_params = ['run_recapture_detect_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/image/recapture-detect', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunRecaptureDetectResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def run_delete_custom_tags(self, request): """删除媒资图像标签 diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/__init__.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/__init__.py index 1afe4baeb..fbf26acbc 100755 --- a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/__init__.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/__init__.py @@ -19,12 +19,17 @@ from huaweicloudsdkimage.v2.model.image_media_tagging_item_body_i18n_tag import from huaweicloudsdkimage.v2.model.image_media_tagging_item_body_i18n_type import ImageMediaTaggingItemBodyI18nType from huaweicloudsdkimage.v2.model.image_media_tagging_req import ImageMediaTaggingReq from huaweicloudsdkimage.v2.model.image_media_tagging_response_result import ImageMediaTaggingResponseResult +from huaweicloudsdkimage.v2.model.image_super_resolution_req import ImageSuperResolutionReq +from huaweicloudsdkimage.v2.model.image_super_resolution_response_result import ImageSuperResolutionResponseResult from huaweicloudsdkimage.v2.model.image_tagging_instance import ImageTaggingInstance from huaweicloudsdkimage.v2.model.image_tagging_item_body import ImageTaggingItemBody from huaweicloudsdkimage.v2.model.image_tagging_item_body_i18n_tag import ImageTaggingItemBodyI18nTag from huaweicloudsdkimage.v2.model.image_tagging_item_body_i18n_type import ImageTaggingItemBodyI18nType from huaweicloudsdkimage.v2.model.image_tagging_req import ImageTaggingReq from huaweicloudsdkimage.v2.model.image_tagging_response_result import ImageTaggingResponseResult +from huaweicloudsdkimage.v2.model.recapture_detect_req import RecaptureDetectReq +from huaweicloudsdkimage.v2.model.recapture_detect_response_result import RecaptureDetectResponseResult +from huaweicloudsdkimage.v2.model.recapture_detect_response_result_detail import RecaptureDetectResponseResultDetail from huaweicloudsdkimage.v2.model.run_celebrity_recognition_request import RunCelebrityRecognitionRequest from huaweicloudsdkimage.v2.model.run_celebrity_recognition_response import RunCelebrityRecognitionResponse from huaweicloudsdkimage.v2.model.run_delete_custom_tags_request import RunDeleteCustomTagsRequest @@ -37,7 +42,11 @@ from huaweicloudsdkimage.v2.model.run_image_media_tagging_det_request import Run from huaweicloudsdkimage.v2.model.run_image_media_tagging_det_response import RunImageMediaTaggingDetResponse from huaweicloudsdkimage.v2.model.run_image_media_tagging_request import RunImageMediaTaggingRequest from huaweicloudsdkimage.v2.model.run_image_media_tagging_response import RunImageMediaTaggingResponse +from huaweicloudsdkimage.v2.model.run_image_super_resolution_request import RunImageSuperResolutionRequest +from huaweicloudsdkimage.v2.model.run_image_super_resolution_response import RunImageSuperResolutionResponse from huaweicloudsdkimage.v2.model.run_image_tagging_request import RunImageTaggingRequest from huaweicloudsdkimage.v2.model.run_image_tagging_response import RunImageTaggingResponse from huaweicloudsdkimage.v2.model.run_query_custom_tags_request import RunQueryCustomTagsRequest from huaweicloudsdkimage.v2.model.run_query_custom_tags_response import RunQueryCustomTagsResponse +from huaweicloudsdkimage.v2.model.run_recapture_detect_request import RunRecaptureDetectRequest +from huaweicloudsdkimage.v2.model.run_recapture_detect_response import RunRecaptureDetectResponse diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_req.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_req.py new file mode 100755 index 000000000..146e2dac8 --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_req.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageSuperResolutionReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'image': 'str', + 'url': 'str', + 'scale': 'int' + } + + attribute_map = { + 'image': 'image', + 'url': 'url', + 'scale': 'scale' + } + + def __init__(self, image=None, url=None, scale=None): + """ImageSuperResolutionReq + + The model defined in huaweicloud sdk + + :param image: 图像数据,base64编码,输入图像范围200px ~ 1080px,支持JPG/PNG/BMP/JPEG/WEBP格式 + :type image: str + :param url: 与image_base64二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[[配置OBS服务的访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)](tag:hc)[[配置OBS服务的访问权限](https://support.huaweicloud.com/intl/zh-cn/api-moderation/moderation_03_0020.html)](tag:hk)。 > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 > - lmage不支持跨区域OBS,OBS的区域需要和服务保持一致。 + :type url: str + :param scale: 图片放大倍数,目前支持2、3、4,默认为2 + :type scale: int + """ + + + + self._image = None + self._url = None + self._scale = None + self.discriminator = None + + if image is not None: + self.image = image + if url is not None: + self.url = url + if scale is not None: + self.scale = scale + + @property + def image(self): + """Gets the image of this ImageSuperResolutionReq. + + 图像数据,base64编码,输入图像范围200px ~ 1080px,支持JPG/PNG/BMP/JPEG/WEBP格式 + + :return: The image of this ImageSuperResolutionReq. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this ImageSuperResolutionReq. + + 图像数据,base64编码,输入图像范围200px ~ 1080px,支持JPG/PNG/BMP/JPEG/WEBP格式 + + :param image: The image of this ImageSuperResolutionReq. + :type image: str + """ + self._image = image + + @property + def url(self): + """Gets the url of this ImageSuperResolutionReq. + + 与image_base64二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[[配置OBS服务的访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)](tag:hc)[[配置OBS服务的访问权限](https://support.huaweicloud.com/intl/zh-cn/api-moderation/moderation_03_0020.html)](tag:hk)。 > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 > - lmage不支持跨区域OBS,OBS的区域需要和服务保持一致。 + + :return: The url of this ImageSuperResolutionReq. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ImageSuperResolutionReq. + + 与image_base64二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[[配置OBS服务的访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)](tag:hc)[[配置OBS服务的访问权限](https://support.huaweicloud.com/intl/zh-cn/api-moderation/moderation_03_0020.html)](tag:hk)。 > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 > - lmage不支持跨区域OBS,OBS的区域需要和服务保持一致。 + + :param url: The url of this ImageSuperResolutionReq. + :type url: str + """ + self._url = url + + @property + def scale(self): + """Gets the scale of this ImageSuperResolutionReq. + + 图片放大倍数,目前支持2、3、4,默认为2 + + :return: The scale of this ImageSuperResolutionReq. + :rtype: int + """ + return self._scale + + @scale.setter + def scale(self, scale): + """Sets the scale of this ImageSuperResolutionReq. + + 图片放大倍数,目前支持2、3、4,默认为2 + + :param scale: The scale of this ImageSuperResolutionReq. + :type scale: int + """ + self._scale = scale + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageSuperResolutionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_response_result.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_response_result.py new file mode 100755 index 000000000..988c645a7 --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/image_super_resolution_response_result.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageSuperResolutionResponseResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_base64': 'str' + } + + attribute_map = { + 'result_base64': 'result_base64' + } + + def __init__(self, result_base64=None): + """ImageSuperResolutionResponseResult + + The model defined in huaweicloud sdk + + :param result_base64: 超分结果图片的base64码 + :type result_base64: str + """ + + + + self._result_base64 = None + self.discriminator = None + + if result_base64 is not None: + self.result_base64 = result_base64 + + @property + def result_base64(self): + """Gets the result_base64 of this ImageSuperResolutionResponseResult. + + 超分结果图片的base64码 + + :return: The result_base64 of this ImageSuperResolutionResponseResult. + :rtype: str + """ + return self._result_base64 + + @result_base64.setter + def result_base64(self, result_base64): + """Sets the result_base64 of this ImageSuperResolutionResponseResult. + + 超分结果图片的base64码 + + :param result_base64: The result_base64 of this ImageSuperResolutionResponseResult. + :type result_base64: str + """ + self._result_base64 = result_base64 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageSuperResolutionResponseResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_req.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_req.py new file mode 100755 index 000000000..cc7c32bff --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_req.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecaptureDetectReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'image': 'str', + 'url': 'str', + 'threshold': 'float' + } + + attribute_map = { + 'image': 'image', + 'url': 'url', + 'threshold': 'threshold' + } + + def __init__(self, image=None, url=None, threshold=None): + """RecaptureDetectReq + + The model defined in huaweicloud sdk + + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB,最短边至少15px,最长边最大4096px,支持JPG、PNG、BMP格式。 + :type image: str + :param url: 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。 > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 + :type url: str + :param threshold: 判断图片真实或虚假的阈值,默认值为0.95,取值范围(0~1),输入非该范围内值算法即取默认值。 + :type threshold: float + """ + + + + self._image = None + self._url = None + self._threshold = None + self.discriminator = None + + if image is not None: + self.image = image + if url is not None: + self.url = url + if threshold is not None: + self.threshold = threshold + + @property + def image(self): + """Gets the image of this RecaptureDetectReq. + + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB,最短边至少15px,最长边最大4096px,支持JPG、PNG、BMP格式。 + + :return: The image of this RecaptureDetectReq. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this RecaptureDetectReq. + + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB,最短边至少15px,最长边最大4096px,支持JPG、PNG、BMP格式。 + + :param image: The image of this RecaptureDetectReq. + :type image: str + """ + self._image = image + + @property + def url(self): + """Gets the url of this RecaptureDetectReq. + + 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。 > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 + + :return: The url of this RecaptureDetectReq. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this RecaptureDetectReq. + + 与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL - 华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-image/image_03_0037.html)。 > - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。 + + :param url: The url of this RecaptureDetectReq. + :type url: str + """ + self._url = url + + @property + def threshold(self): + """Gets the threshold of this RecaptureDetectReq. + + 判断图片真实或虚假的阈值,默认值为0.95,取值范围(0~1),输入非该范围内值算法即取默认值。 + + :return: The threshold of this RecaptureDetectReq. + :rtype: float + """ + return self._threshold + + @threshold.setter + def threshold(self, threshold): + """Sets the threshold of this RecaptureDetectReq. + + 判断图片真实或虚假的阈值,默认值为0.95,取值范围(0~1),输入非该范围内值算法即取默认值。 + + :param threshold: The threshold of this RecaptureDetectReq. + :type threshold: float + """ + self._threshold = threshold + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RecaptureDetectReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result.py new file mode 100755 index 000000000..d9296c5e4 --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecaptureDetectResponseResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'suggestion': 'str', + 'category': 'str', + 'score': 'str', + 'detail': 'list[RecaptureDetectResponseResultDetail]' + } + + attribute_map = { + 'suggestion': 'suggestion', + 'category': 'category', + 'score': 'score', + 'detail': 'detail' + } + + def __init__(self, suggestion=None, category=None, score=None, detail=None): + """RecaptureDetectResponseResult + + The model defined in huaweicloud sdk + + :param suggestion: 总体的结论: true:真实 false:虚假 uncertainty:不确定 + :type suggestion: str + :param category: 标签(如果suggestion为真时,则该值为空字符串,否则不为空)。recapture:翻拍图 + :type category: str + :param score: 总体置信度,取值范围(0~1)。 + :type score: str + :param detail: 识别结果详情。 + :type detail: list[:class:`huaweicloudsdkimage.v2.RecaptureDetectResponseResultDetail`] + """ + + + + self._suggestion = None + self._category = None + self._score = None + self._detail = None + self.discriminator = None + + if suggestion is not None: + self.suggestion = suggestion + if category is not None: + self.category = category + if score is not None: + self.score = score + if detail is not None: + self.detail = detail + + @property + def suggestion(self): + """Gets the suggestion of this RecaptureDetectResponseResult. + + 总体的结论: true:真实 false:虚假 uncertainty:不确定 + + :return: The suggestion of this RecaptureDetectResponseResult. + :rtype: str + """ + return self._suggestion + + @suggestion.setter + def suggestion(self, suggestion): + """Sets the suggestion of this RecaptureDetectResponseResult. + + 总体的结论: true:真实 false:虚假 uncertainty:不确定 + + :param suggestion: The suggestion of this RecaptureDetectResponseResult. + :type suggestion: str + """ + self._suggestion = suggestion + + @property + def category(self): + """Gets the category of this RecaptureDetectResponseResult. + + 标签(如果suggestion为真时,则该值为空字符串,否则不为空)。recapture:翻拍图 + + :return: The category of this RecaptureDetectResponseResult. + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this RecaptureDetectResponseResult. + + 标签(如果suggestion为真时,则该值为空字符串,否则不为空)。recapture:翻拍图 + + :param category: The category of this RecaptureDetectResponseResult. + :type category: str + """ + self._category = category + + @property + def score(self): + """Gets the score of this RecaptureDetectResponseResult. + + 总体置信度,取值范围(0~1)。 + + :return: The score of this RecaptureDetectResponseResult. + :rtype: str + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this RecaptureDetectResponseResult. + + 总体置信度,取值范围(0~1)。 + + :param score: The score of this RecaptureDetectResponseResult. + :type score: str + """ + self._score = score + + @property + def detail(self): + """Gets the detail of this RecaptureDetectResponseResult. + + 识别结果详情。 + + :return: The detail of this RecaptureDetectResponseResult. + :rtype: list[:class:`huaweicloudsdkimage.v2.RecaptureDetectResponseResultDetail`] + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this RecaptureDetectResponseResult. + + 识别结果详情。 + + :param detail: The detail of this RecaptureDetectResponseResult. + :type detail: list[:class:`huaweicloudsdkimage.v2.RecaptureDetectResponseResultDetail`] + """ + self._detail = detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RecaptureDetectResponseResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result_detail.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result_detail.py new file mode 100755 index 000000000..fcb154f0e --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/recapture_detect_response_result_detail.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecaptureDetectResponseResultDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'label': 'str', + 'confidence': 'str' + } + + attribute_map = { + 'label': 'label', + 'confidence': 'confidence' + } + + def __init__(self, label=None, confidence=None): + """RecaptureDetectResponseResultDetail + + The model defined in huaweicloud sdk + + :param label: 标签值。| original:原始图 recapture:翻拍图 + :type label: str + :param confidence: 置信度,取值范围(0~1)。 + :type confidence: str + """ + + + + self._label = None + self._confidence = None + self.discriminator = None + + if label is not None: + self.label = label + if confidence is not None: + self.confidence = confidence + + @property + def label(self): + """Gets the label of this RecaptureDetectResponseResultDetail. + + 标签值。| original:原始图 recapture:翻拍图 + + :return: The label of this RecaptureDetectResponseResultDetail. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this RecaptureDetectResponseResultDetail. + + 标签值。| original:原始图 recapture:翻拍图 + + :param label: The label of this RecaptureDetectResponseResultDetail. + :type label: str + """ + self._label = label + + @property + def confidence(self): + """Gets the confidence of this RecaptureDetectResponseResultDetail. + + 置信度,取值范围(0~1)。 + + :return: The confidence of this RecaptureDetectResponseResultDetail. + :rtype: str + """ + return self._confidence + + @confidence.setter + def confidence(self, confidence): + """Sets the confidence of this RecaptureDetectResponseResultDetail. + + 置信度,取值范围(0~1)。 + + :param confidence: The confidence of this RecaptureDetectResponseResultDetail. + :type confidence: str + """ + self._confidence = 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, RecaptureDetectResponseResultDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_request.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_request.py new file mode 100755 index 000000000..d73771249 --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunImageSuperResolutionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ImageSuperResolutionReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """RunImageSuperResolutionRequest + + The model defined in huaweicloud sdk + + :param body: Body of the RunImageSuperResolutionRequest + :type body: :class:`huaweicloudsdkimage.v2.ImageSuperResolutionReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this RunImageSuperResolutionRequest. + + :return: The body of this RunImageSuperResolutionRequest. + :rtype: :class:`huaweicloudsdkimage.v2.ImageSuperResolutionReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunImageSuperResolutionRequest. + + :param body: The body of this RunImageSuperResolutionRequest. + :type body: :class:`huaweicloudsdkimage.v2.ImageSuperResolutionReq` + """ + 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, RunImageSuperResolutionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_response.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_response.py similarity index 75% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_response.py rename to huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_response.py index 83c1ad3af..34633cfc0 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_response.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_image_super_resolution_response.py @@ -8,7 +8,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunDeleteInstanceResponse(SdkResponse): +class RunImageSuperResolutionResponse(SdkResponse): """ Attributes: @@ -20,7 +20,7 @@ class RunDeleteInstanceResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'str' + 'result': 'ImageSuperResolutionResponseResult' } attribute_map = { @@ -28,15 +28,15 @@ class RunDeleteInstanceResponse(SdkResponse): } def __init__(self, result=None): - """RunDeleteInstanceResponse + """RunImageSuperResolutionResponse The model defined in huaweicloud sdk - :param result: 调用成功时表示调用结果。 调用失败时无此字段。 - :type result: str + :param result: + :type result: :class:`huaweicloudsdkimage.v2.ImageSuperResolutionResponseResult` """ - super(RunDeleteInstanceResponse, self).__init__() + super(RunImageSuperResolutionResponse, self).__init__() self._result = None self.discriminator = None @@ -46,23 +46,19 @@ class RunDeleteInstanceResponse(SdkResponse): @property def result(self): - """Gets the result of this RunDeleteInstanceResponse. + """Gets the result of this RunImageSuperResolutionResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 - - :return: The result of this RunDeleteInstanceResponse. - :rtype: str + :return: The result of this RunImageSuperResolutionResponse. + :rtype: :class:`huaweicloudsdkimage.v2.ImageSuperResolutionResponseResult` """ return self._result @result.setter def result(self, result): - """Sets the result of this RunDeleteInstanceResponse. + """Sets the result of this RunImageSuperResolutionResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 - - :param result: The result of this RunDeleteInstanceResponse. - :type result: str + :param result: The result of this RunImageSuperResolutionResponse. + :type result: :class:`huaweicloudsdkimage.v2.ImageSuperResolutionResponseResult` """ self._result = result @@ -108,7 +104,7 @@ class RunDeleteInstanceResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunDeleteInstanceResponse): + if not isinstance(other, RunImageSuperResolutionResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_request.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_request.py new file mode 100755 index 000000000..6ca5dd55e --- /dev/null +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunRecaptureDetectRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'RecaptureDetectReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """RunRecaptureDetectRequest + + The model defined in huaweicloud sdk + + :param body: Body of the RunRecaptureDetectRequest + :type body: :class:`huaweicloudsdkimage.v2.RecaptureDetectReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this RunRecaptureDetectRequest. + + :return: The body of this RunRecaptureDetectRequest. + :rtype: :class:`huaweicloudsdkimage.v2.RecaptureDetectReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunRecaptureDetectRequest. + + :param body: The body of this RunRecaptureDetectRequest. + :type body: :class:`huaweicloudsdkimage.v2.RecaptureDetectReq` + """ + 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, RunRecaptureDetectRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_response.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_response.py similarity index 76% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_response.py rename to huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_response.py index e943c24ab..c5173eaa4 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_response.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/model/run_recapture_detect_response.py @@ -8,7 +8,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunModifyPictureResponse(SdkResponse): +class RunRecaptureDetectResponse(SdkResponse): """ Attributes: @@ -20,7 +20,7 @@ class RunModifyPictureResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'str' + 'result': 'RecaptureDetectResponseResult' } attribute_map = { @@ -28,15 +28,15 @@ class RunModifyPictureResponse(SdkResponse): } def __init__(self, result=None): - """RunModifyPictureResponse + """RunRecaptureDetectResponse The model defined in huaweicloud sdk - :param result: 调用成功时表示调用结果。 调用失败时无此字段。 - :type result: str + :param result: + :type result: :class:`huaweicloudsdkimage.v2.RecaptureDetectResponseResult` """ - super(RunModifyPictureResponse, self).__init__() + super(RunRecaptureDetectResponse, self).__init__() self._result = None self.discriminator = None @@ -46,23 +46,19 @@ class RunModifyPictureResponse(SdkResponse): @property def result(self): - """Gets the result of this RunModifyPictureResponse. + """Gets the result of this RunRecaptureDetectResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 - - :return: The result of this RunModifyPictureResponse. - :rtype: str + :return: The result of this RunRecaptureDetectResponse. + :rtype: :class:`huaweicloudsdkimage.v2.RecaptureDetectResponseResult` """ return self._result @result.setter def result(self, result): - """Sets the result of this RunModifyPictureResponse. + """Sets the result of this RunRecaptureDetectResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 - - :param result: The result of this RunModifyPictureResponse. - :type result: str + :param result: The result of this RunRecaptureDetectResponse. + :type result: :class:`huaweicloudsdkimage.v2.RecaptureDetectResponseResult` """ self._result = result @@ -108,7 +104,7 @@ class RunModifyPictureResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunModifyPictureResponse): + if not isinstance(other, RunRecaptureDetectResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py index 5293e44ad..b7bd11c5c 100755 --- a/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py +++ b/huaweicloud-sdk-image/huaweicloudsdkimage/v2/region/image_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ImageRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IMAGE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://image.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://image.cn-north-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://image.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://image.ap-southeast-3.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://image.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://image.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://image.cn-north-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://image.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://image.ap-southeast-3.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://image.cn-east-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 0e99a562d..706f824d5 100755 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/__init__.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/__init__.py deleted file mode 100755 index 94f509419..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/__init__.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -# import ImageSearchClient -from huaweicloudsdkimagesearch.v1.imagesearch_client import ImageSearchClient -from huaweicloudsdkimagesearch.v1.imagesearch_async_client import ImageSearchAsyncClient -# import models into sdk package -from huaweicloudsdkimagesearch.v1.model.add_picture_request_req import AddPictureRequestReq -from huaweicloudsdkimagesearch.v1.model.create_instance_req import CreateInstanceReq -from huaweicloudsdkimagesearch.v1.model.delete_picture_req import DeletePictureReq -from huaweicloudsdkimagesearch.v1.model.run_add_picture_request import RunAddPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_add_picture_response import RunAddPictureResponse -from huaweicloudsdkimagesearch.v1.model.run_check_picture_request import RunCheckPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_check_picture_response import RunCheckPictureResponse -from huaweicloudsdkimagesearch.v1.model.run_create_instance_request import RunCreateInstanceRequest -from huaweicloudsdkimagesearch.v1.model.run_create_instance_response import RunCreateInstanceResponse -from huaweicloudsdkimagesearch.v1.model.run_delete_instance_request import RunDeleteInstanceRequest -from huaweicloudsdkimagesearch.v1.model.run_delete_instance_response import RunDeleteInstanceResponse -from huaweicloudsdkimagesearch.v1.model.run_delete_picture_request import RunDeletePictureRequest -from huaweicloudsdkimagesearch.v1.model.run_delete_picture_response import RunDeletePictureResponse -from huaweicloudsdkimagesearch.v1.model.run_modify_picture_req import RunModifyPictureReq -from huaweicloudsdkimagesearch.v1.model.run_modify_picture_request import RunModifyPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_modify_picture_response import RunModifyPictureResponse -from huaweicloudsdkimagesearch.v1.model.run_query_instance_request import RunQueryInstanceRequest -from huaweicloudsdkimagesearch.v1.model.run_query_instance_response import RunQueryInstanceResponse -from huaweicloudsdkimagesearch.v1.model.run_search_picture_request import RunSearchPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_search_picture_response import RunSearchPictureResponse -from huaweicloudsdkimagesearch.v1.model.search_box_detail import SearchBoxDetail -from huaweicloudsdkimagesearch.v1.model.search_picture_item import SearchPictureItem -from huaweicloudsdkimagesearch.v1.model.search_picture_req import SearchPictureReq - diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_async_client.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_async_client.py deleted file mode 100755 index 3aa9f369f..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_async_client.py +++ /dev/null @@ -1,583 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -import datetime -import re -import importlib - -import six - -from huaweicloudsdkcore.client import Client, ClientBuilder -from huaweicloudsdkcore.exceptions import exceptions -from huaweicloudsdkcore.utils import http_utils -from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest - - -class ImageSearchAsyncClient(Client): - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self): - super(ImageSearchAsyncClient, self).__init__() - self.model_package = importlib.import_module("huaweicloudsdkimagesearch.v1.model") - self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} - - @classmethod - def new_builder(cls, clazz=None): - if clazz is None: - return ClientBuilder(cls) - - if clazz.__name__ != "ImageSearchClient": - raise TypeError("client type error, support client type is ImageSearchClient") - - return ClientBuilder(clazz) - - def run_add_picture_async(self, request): - """添加图片 - - 添加图片 - 将图片导入图片索引库,该图片可以是同一区域OBS桶内的图片或请求消息体里的图片,只有导入图片索引库的图片方可被搜索到。 - - > - 添加或搜索的图片存储在OBS的桶中时,需要对OBS的桶授权。在图像搜索服务管理控制台“实例管理”页面,单击实例操作列的“离线导入”,进入“离线导入”页面。选择存放数据的OBS桶,单击“授权”按钮,字体显示为灰色即完成OBS授权访问。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunAddPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunAddPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunAddPictureResponse` - """ - return self.run_add_picture_with_http_info(request) - - def run_add_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_add_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunAddPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_check_picture_async(self, request): - """查询图片 - - 通过图片路径查询索引库中对应图片是否存在。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunCheckPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunCheckPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunCheckPictureResponse` - """ - return self.run_check_picture_with_http_info(request) - - def run_check_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_check_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image/check', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunCheckPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_create_instance_async(self, request): - """创建实例 - - 创建实例,实例中会生成图片索引库,用来存放图片特征。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunCreateInstance - :type request: :class:`huaweicloudsdkimagesearch.v1.RunCreateInstanceRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunCreateInstanceResponse` - """ - return self.run_create_instance_with_http_info(request) - - def run_create_instance_with_http_info(self, request): - all_params = ['run_create_instance_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/service', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunCreateInstanceResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_delete_instance_async(self, request): - """删除实例 - - 删除已存在的实例。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunDeleteInstance - :type request: :class:`huaweicloudsdkimagesearch.v1.RunDeleteInstanceRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunDeleteInstanceResponse` - """ - return self.run_delete_instance_with_http_info(request) - - def run_delete_instance_with_http_info(self, request): - all_params = ['instance_name'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/service/{instance_name}', - method='DELETE', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunDeleteInstanceResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_delete_picture_async(self, request): - """删除图片 - - 通过图片路径删除索引库中对应图片。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunDeletePicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunDeletePictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunDeletePictureResponse` - """ - return self.run_delete_picture_with_http_info(request) - - def run_delete_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_delete_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image', - method='DELETE', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunDeletePictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_modify_picture_async(self, request): - """修改图片信息 - - 修改图像索引库中已存在的图片信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunModifyPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureResponse` - """ - return self.run_modify_picture_with_http_info(request) - - def run_modify_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_modify_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image', - method='PUT', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunModifyPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_query_instance_async(self, request): - """查询用户实例信息 - - 查看用户指定实例详细信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunQueryInstance - :type request: :class:`huaweicloudsdkimagesearch.v1.RunQueryInstanceRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunQueryInstanceResponse` - """ - return self.run_query_instance_with_http_info(request) - - def run_query_instance_with_http_info(self, request): - all_params = ['instance_name'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/service/{instance_name}', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunQueryInstanceResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_search_picture_async(self, request): - """搜索图片 - - 从图片索引库中搜索相似图片。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for RunSearchPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunSearchPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunSearchPictureResponse` - """ - return self.run_search_picture_with_http_info(request) - - def run_search_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_search_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image/search', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunSearchPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, - post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, - collection_formats=None, request_type=None): - """Makes the HTTP request and returns deserialized data. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param cname: Used for obs endpoint. - :param auth_settings: Auth Settings names for the request. - :param response_type: Response data type. - :param response_headers: Header should be added to response data. - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param request_type: Request data type. - :return: - Return the response directly. - """ - return self.do_http_request( - method=method, - resource_path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body, - post_params=post_params, - cname=cname, - response_type=response_type, - response_headers=response_headers, - collection_formats=collection_formats, - request_type=request_type, - async_request=True) diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_client.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_client.py deleted file mode 100755 index 9a015fe9a..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/imagesearch_client.py +++ /dev/null @@ -1,573 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -import datetime -import re -import importlib - -import six - -from huaweicloudsdkcore.client import Client, ClientBuilder -from huaweicloudsdkcore.exceptions import exceptions -from huaweicloudsdkcore.utils import http_utils -from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest - - -class ImageSearchClient(Client): - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self): - super(ImageSearchClient, self).__init__() - self.model_package = importlib.import_module("huaweicloudsdkimagesearch.v1.model") - self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} - - @classmethod - def new_builder(cls, clazz=None): - if clazz is None: - return ClientBuilder(cls) - - if clazz.__name__ != "ImageSearchClient": - raise TypeError("client type error, support client type is ImageSearchClient") - - return ClientBuilder(clazz) - - def run_add_picture(self, request): - """添加图片 - - 添加图片 - 将图片导入图片索引库,该图片可以是同一区域OBS桶内的图片或请求消息体里的图片,只有导入图片索引库的图片方可被搜索到。 - - > - 添加或搜索的图片存储在OBS的桶中时,需要对OBS的桶授权。在图像搜索服务管理控制台“实例管理”页面,单击实例操作列的“离线导入”,进入“离线导入”页面。选择存放数据的OBS桶,单击“授权”按钮,字体显示为灰色即完成OBS授权访问。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunAddPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunAddPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunAddPictureResponse` - """ - return self.run_add_picture_with_http_info(request) - - def run_add_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_add_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunAddPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_check_picture(self, request): - """查询图片 - - 通过图片路径查询索引库中对应图片是否存在。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunCheckPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunCheckPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunCheckPictureResponse` - """ - return self.run_check_picture_with_http_info(request) - - def run_check_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_check_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image/check', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunCheckPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_create_instance(self, request): - """创建实例 - - 创建实例,实例中会生成图片索引库,用来存放图片特征。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunCreateInstance - :type request: :class:`huaweicloudsdkimagesearch.v1.RunCreateInstanceRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunCreateInstanceResponse` - """ - return self.run_create_instance_with_http_info(request) - - def run_create_instance_with_http_info(self, request): - all_params = ['run_create_instance_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/service', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunCreateInstanceResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_delete_instance(self, request): - """删除实例 - - 删除已存在的实例。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunDeleteInstance - :type request: :class:`huaweicloudsdkimagesearch.v1.RunDeleteInstanceRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunDeleteInstanceResponse` - """ - return self.run_delete_instance_with_http_info(request) - - def run_delete_instance_with_http_info(self, request): - all_params = ['instance_name'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/service/{instance_name}', - method='DELETE', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunDeleteInstanceResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_delete_picture(self, request): - """删除图片 - - 通过图片路径删除索引库中对应图片。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunDeletePicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunDeletePictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunDeletePictureResponse` - """ - return self.run_delete_picture_with_http_info(request) - - def run_delete_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_delete_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image', - method='DELETE', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunDeletePictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_modify_picture(self, request): - """修改图片信息 - - 修改图像索引库中已存在的图片信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunModifyPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureResponse` - """ - return self.run_modify_picture_with_http_info(request) - - def run_modify_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_modify_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image', - method='PUT', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunModifyPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_query_instance(self, request): - """查询用户实例信息 - - 查看用户指定实例详细信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunQueryInstance - :type request: :class:`huaweicloudsdkimagesearch.v1.RunQueryInstanceRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunQueryInstanceResponse` - """ - return self.run_query_instance_with_http_info(request) - - def run_query_instance_with_http_info(self, request): - all_params = ['instance_name'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/service/{instance_name}', - method='GET', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunQueryInstanceResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def run_search_picture(self, request): - """搜索图片 - - 从图片索引库中搜索相似图片。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for RunSearchPicture - :type request: :class:`huaweicloudsdkimagesearch.v1.RunSearchPictureRequest` - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunSearchPictureResponse` - """ - return self.run_search_picture_with_http_info(request) - - def run_search_picture_with_http_info(self, request): - all_params = ['instance_name', 'run_search_picture_request_body'] - local_var_params = {} - for attr in request.attribute_map: - if hasattr(request, attr): - local_var_params[attr] = getattr(request, attr) - - cname = None - - collection_formats = {} - - path_params = {} - if 'instance_name' in local_var_params: - path_params['instance_name'] = local_var_params['instance_name'] - - query_params = [] - - header_params = {} - - form_params = {} - - body_params = None - if 'body' in local_var_params: - body_params = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body_params = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) - - auth_settings = [] - - return self.call_api( - resource_path='/v1/{project_id}/{instance_name}/image/search', - method='POST', - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - post_params=form_params, - cname=cname, - response_type='RunSearchPictureResponse', - response_headers=response_headers, - auth_settings=auth_settings, - collection_formats=collection_formats, - request_type=request.__class__.__name__) - - def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, - post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, - collection_formats=None, request_type=None): - """Makes the HTTP request and returns deserialized data. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be placed in the request header. - :param body: Request body. - :param post_params: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param cname: Used for obs endpoint. - :param auth_settings: Auth Settings names for the request. - :param response_type: Response data type. - :param response_headers: Header should be added to response data. - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param request_type: Request data type. - :return: - Return the response directly. - """ - return self.do_http_request( - method=method, - resource_path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body, - post_params=post_params, - cname=cname, - response_type=response_type, - response_headers=response_headers, - collection_formats=collection_formats, - request_type=request_type) diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/__init__.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/__init__.py deleted file mode 100755 index 331997503..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding: utf-8 - -from __future__ import absolute_import - -# import models into model package -from huaweicloudsdkimagesearch.v1.model.add_picture_request_req import AddPictureRequestReq -from huaweicloudsdkimagesearch.v1.model.create_instance_req import CreateInstanceReq -from huaweicloudsdkimagesearch.v1.model.delete_picture_req import DeletePictureReq -from huaweicloudsdkimagesearch.v1.model.run_add_picture_request import RunAddPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_add_picture_response import RunAddPictureResponse -from huaweicloudsdkimagesearch.v1.model.run_check_picture_request import RunCheckPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_check_picture_response import RunCheckPictureResponse -from huaweicloudsdkimagesearch.v1.model.run_create_instance_request import RunCreateInstanceRequest -from huaweicloudsdkimagesearch.v1.model.run_create_instance_response import RunCreateInstanceResponse -from huaweicloudsdkimagesearch.v1.model.run_delete_instance_request import RunDeleteInstanceRequest -from huaweicloudsdkimagesearch.v1.model.run_delete_instance_response import RunDeleteInstanceResponse -from huaweicloudsdkimagesearch.v1.model.run_delete_picture_request import RunDeletePictureRequest -from huaweicloudsdkimagesearch.v1.model.run_delete_picture_response import RunDeletePictureResponse -from huaweicloudsdkimagesearch.v1.model.run_modify_picture_req import RunModifyPictureReq -from huaweicloudsdkimagesearch.v1.model.run_modify_picture_request import RunModifyPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_modify_picture_response import RunModifyPictureResponse -from huaweicloudsdkimagesearch.v1.model.run_query_instance_request import RunQueryInstanceRequest -from huaweicloudsdkimagesearch.v1.model.run_query_instance_response import RunQueryInstanceResponse -from huaweicloudsdkimagesearch.v1.model.run_search_picture_request import RunSearchPictureRequest -from huaweicloudsdkimagesearch.v1.model.run_search_picture_response import RunSearchPictureResponse -from huaweicloudsdkimagesearch.v1.model.search_box_detail import SearchBoxDetail -from huaweicloudsdkimagesearch.v1.model.search_picture_item import SearchPictureItem -from huaweicloudsdkimagesearch.v1.model.search_picture_req import SearchPictureReq diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/add_picture_request_req.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/add_picture_request_req.py deleted file mode 100755 index 3d24e8ad0..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/add_picture_request_req.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -import re -import six - - - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class AddPictureRequestReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'file': 'str', - 'path': 'str', - 'tags': 'object' - } - - attribute_map = { - 'file': 'file', - 'path': 'path', - 'tags': 'tags' - } - - def __init__(self, file=None, path=None, tags=None): - """AddPictureRequestReq - - The model defined in huaweicloud sdk - - :param file: 图片文件Base64编码字符串,仅支持JPEG/JPG/PNG/BMP格式,图片最小边不小于100px,最大边不超过2048px。 - :type file: str - :param path: 图片的URL路径,作为图片库中索引图片的ID,是必选参数。 > - 当file字段不为空时,图片从file获取,path作为图片索引ID使用;当file字段不存在或者为空时,图片需要通过下载获取,此时path作为下载图片的地址(当前仅支持从华为云图像搜索服务所在区域的OBS下载图片),同时,path也作为图片索引ID。 - :type path: str - :param tags: 图片自定义标签。格式为key:value对,所有图片的key总数最多不超过10个,但是每个key对应的value不限制个数,例如:key为动物,对应的value可以是猫、狗、鸟等多个。 标签名(key)添加方式: - 登录管理控制台,单击“创建实例”,自定义标签名。 - 登录管理控制台,在“实例管理”页签,单击实例名称,进入“基础信息”页添加自定义标签。 - :type tags: object - """ - - - - self._file = None - self._path = None - self._tags = None - self.discriminator = None - - if file is not None: - self.file = file - self.path = path - if tags is not None: - self.tags = tags - - @property - def file(self): - """Gets the file of this AddPictureRequestReq. - - 图片文件Base64编码字符串,仅支持JPEG/JPG/PNG/BMP格式,图片最小边不小于100px,最大边不超过2048px。 - - :return: The file of this AddPictureRequestReq. - :rtype: str - """ - return self._file - - @file.setter - def file(self, file): - """Sets the file of this AddPictureRequestReq. - - 图片文件Base64编码字符串,仅支持JPEG/JPG/PNG/BMP格式,图片最小边不小于100px,最大边不超过2048px。 - - :param file: The file of this AddPictureRequestReq. - :type file: str - """ - self._file = file - - @property - def path(self): - """Gets the path of this AddPictureRequestReq. - - 图片的URL路径,作为图片库中索引图片的ID,是必选参数。 > - 当file字段不为空时,图片从file获取,path作为图片索引ID使用;当file字段不存在或者为空时,图片需要通过下载获取,此时path作为下载图片的地址(当前仅支持从华为云图像搜索服务所在区域的OBS下载图片),同时,path也作为图片索引ID。 - - :return: The path of this AddPictureRequestReq. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """Sets the path of this AddPictureRequestReq. - - 图片的URL路径,作为图片库中索引图片的ID,是必选参数。 > - 当file字段不为空时,图片从file获取,path作为图片索引ID使用;当file字段不存在或者为空时,图片需要通过下载获取,此时path作为下载图片的地址(当前仅支持从华为云图像搜索服务所在区域的OBS下载图片),同时,path也作为图片索引ID。 - - :param path: The path of this AddPictureRequestReq. - :type path: str - """ - self._path = path - - @property - def tags(self): - """Gets the tags of this AddPictureRequestReq. - - 图片自定义标签。格式为key:value对,所有图片的key总数最多不超过10个,但是每个key对应的value不限制个数,例如:key为动物,对应的value可以是猫、狗、鸟等多个。 标签名(key)添加方式: - 登录管理控制台,单击“创建实例”,自定义标签名。 - 登录管理控制台,在“实例管理”页签,单击实例名称,进入“基础信息”页添加自定义标签。 - - :return: The tags of this AddPictureRequestReq. - :rtype: object - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this AddPictureRequestReq. - - 图片自定义标签。格式为key:value对,所有图片的key总数最多不超过10个,但是每个key对应的value不限制个数,例如:key为动物,对应的value可以是猫、狗、鸟等多个。 标签名(key)添加方式: - 登录管理控制台,单击“创建实例”,自定义标签名。 - 登录管理控制台,在“实例管理”页签,单击实例名称,进入“基础信息”页添加自定义标签。 - - :param tags: The tags of this AddPictureRequestReq. - :type tags: object - """ - 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, AddPictureRequestReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/create_instance_req.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/create_instance_req.py deleted file mode 100755 index 15f52e8eb..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/create_instance_req.py +++ /dev/null @@ -1,232 +0,0 @@ -# coding: utf-8 - -import re -import six - - - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class CreateInstanceReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'model': 'str', - 'description': 'str', - 'level': 'int', - 'tags': 'list[str]' - } - - attribute_map = { - 'name': 'name', - 'model': 'model', - 'description': 'description', - 'level': 'level', - 'tags': 'tags' - } - - def __init__(self, name=None, model=None, description=None, level=None, tags=None): - """CreateInstanceReq - - The model defined in huaweicloud sdk - - :param name: 实例名称。 - 仅支持小写字母(a-z)、数字,横杠和下划线。 - 以字母开头,长度在16位以内。 - :type name: str - :param model: 模型名称,支持如下模型名称: - common-search,通用图片搜索,适用于图片库中搜索相似内容或类别的图片。 - image-recommend,版权图片推荐,适用于版权摄影图片库中查找并推荐相同或相似版权图片。 - image-copyright,图片版权,适用于从海量图片库中快速识别侵权盗用图片。 - :type model: str - :param description: 描述。 - :type description: str - :param level: 规格,即实例的图片数量规格。默认为30000000(单位:张),当前仅支持默认规格。 - :type level: int - :param tags: 图片自定义标签,每个实例最多支持10个标签,自定义标签不支持英文字母大写。 - :type tags: list[str] - """ - - - - self._name = None - self._model = None - self._description = None - self._level = None - self._tags = None - self.discriminator = None - - self.name = name - self.model = model - if description is not None: - self.description = description - if level is not None: - self.level = level - if tags is not None: - self.tags = tags - - @property - def name(self): - """Gets the name of this CreateInstanceReq. - - 实例名称。 - 仅支持小写字母(a-z)、数字,横杠和下划线。 - 以字母开头,长度在16位以内。 - - :return: The name of this CreateInstanceReq. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CreateInstanceReq. - - 实例名称。 - 仅支持小写字母(a-z)、数字,横杠和下划线。 - 以字母开头,长度在16位以内。 - - :param name: The name of this CreateInstanceReq. - :type name: str - """ - self._name = name - - @property - def model(self): - """Gets the model of this CreateInstanceReq. - - 模型名称,支持如下模型名称: - common-search,通用图片搜索,适用于图片库中搜索相似内容或类别的图片。 - image-recommend,版权图片推荐,适用于版权摄影图片库中查找并推荐相同或相似版权图片。 - image-copyright,图片版权,适用于从海量图片库中快速识别侵权盗用图片。 - - :return: The model of this CreateInstanceReq. - :rtype: str - """ - return self._model - - @model.setter - def model(self, model): - """Sets the model of this CreateInstanceReq. - - 模型名称,支持如下模型名称: - common-search,通用图片搜索,适用于图片库中搜索相似内容或类别的图片。 - image-recommend,版权图片推荐,适用于版权摄影图片库中查找并推荐相同或相似版权图片。 - image-copyright,图片版权,适用于从海量图片库中快速识别侵权盗用图片。 - - :param model: The model of this CreateInstanceReq. - :type model: str - """ - self._model = model - - @property - def description(self): - """Gets the description of this CreateInstanceReq. - - 描述。 - - :return: The description of this CreateInstanceReq. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this CreateInstanceReq. - - 描述。 - - :param description: The description of this CreateInstanceReq. - :type description: str - """ - self._description = description - - @property - def level(self): - """Gets the level of this CreateInstanceReq. - - 规格,即实例的图片数量规格。默认为30000000(单位:张),当前仅支持默认规格。 - - :return: The level of this CreateInstanceReq. - :rtype: int - """ - return self._level - - @level.setter - def level(self, level): - """Sets the level of this CreateInstanceReq. - - 规格,即实例的图片数量规格。默认为30000000(单位:张),当前仅支持默认规格。 - - :param level: The level of this CreateInstanceReq. - :type level: int - """ - self._level = level - - @property - def tags(self): - """Gets the tags of this CreateInstanceReq. - - 图片自定义标签,每个实例最多支持10个标签,自定义标签不支持英文字母大写。 - - :return: The tags of this CreateInstanceReq. - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this CreateInstanceReq. - - 图片自定义标签,每个实例最多支持10个标签,自定义标签不支持英文字母大写。 - - :param tags: The tags of this CreateInstanceReq. - :type tags: list[str] - """ - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateInstanceReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_response.py deleted file mode 100755 index 6bac9ea58..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_create_instance_response.py +++ /dev/null @@ -1,321 +0,0 @@ -# coding: utf-8 - -import re -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunCreateInstanceResponse(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 = { - 'domain': 'str', - 'desc': 'str', - 'register_date': 'int', - 'expired_date': 'int', - 'level': 'int', - 'tags': 'list[str]', - 'status': 'str', - 'instance_name': 'str' - } - - attribute_map = { - 'domain': 'domain', - 'desc': 'desc', - 'register_date': 'registerDate', - 'expired_date': 'expiredDate', - 'level': 'level', - 'tags': 'tags', - 'status': 'status', - 'instance_name': 'instanceName' - } - - def __init__(self, domain=None, desc=None, register_date=None, expired_date=None, level=None, tags=None, status=None, instance_name=None): - """RunCreateInstanceResponse - - The model defined in huaweicloud sdk - - :param domain: 模型展示名或领域名称。 - :type domain: str - :param desc: 描述。 - :type desc: str - :param register_date: 注册时间。 - :type register_date: int - :param expired_date: 过期时间,-1表示永不过期。 - :type expired_date: int - :param level: 规格,即实例的图片数量规格,默认为30000000(单位:张)。 - :type level: int - :param tags: 图片自定义标签。 - :type tags: list[str] - :param status: 实例的状态,有以下状态信息: - NORMAL:正常。 - ARREARAGE:欠费。 - CREATION:创建中。 - CREATION_FAILD:创建失败。 - DELETING:删除中。 - DELETING_FAILED:删除失败。 - ABNORMAL:异常。 - :type status: str - :param instance_name: 实例名称。 - :type instance_name: str - """ - - super(RunCreateInstanceResponse, self).__init__() - - self._domain = None - self._desc = None - self._register_date = None - self._expired_date = None - self._level = None - self._tags = None - self._status = None - self._instance_name = None - self.discriminator = None - - if domain is not None: - self.domain = domain - if desc is not None: - self.desc = desc - if register_date is not None: - self.register_date = register_date - if expired_date is not None: - self.expired_date = expired_date - if level is not None: - self.level = level - if tags is not None: - self.tags = tags - if status is not None: - self.status = status - if instance_name is not None: - self.instance_name = instance_name - - @property - def domain(self): - """Gets the domain of this RunCreateInstanceResponse. - - 模型展示名或领域名称。 - - :return: The domain of this RunCreateInstanceResponse. - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this RunCreateInstanceResponse. - - 模型展示名或领域名称。 - - :param domain: The domain of this RunCreateInstanceResponse. - :type domain: str - """ - self._domain = domain - - @property - def desc(self): - """Gets the desc of this RunCreateInstanceResponse. - - 描述。 - - :return: The desc of this RunCreateInstanceResponse. - :rtype: str - """ - return self._desc - - @desc.setter - def desc(self, desc): - """Sets the desc of this RunCreateInstanceResponse. - - 描述。 - - :param desc: The desc of this RunCreateInstanceResponse. - :type desc: str - """ - self._desc = desc - - @property - def register_date(self): - """Gets the register_date of this RunCreateInstanceResponse. - - 注册时间。 - - :return: The register_date of this RunCreateInstanceResponse. - :rtype: int - """ - return self._register_date - - @register_date.setter - def register_date(self, register_date): - """Sets the register_date of this RunCreateInstanceResponse. - - 注册时间。 - - :param register_date: The register_date of this RunCreateInstanceResponse. - :type register_date: int - """ - self._register_date = register_date - - @property - def expired_date(self): - """Gets the expired_date of this RunCreateInstanceResponse. - - 过期时间,-1表示永不过期。 - - :return: The expired_date of this RunCreateInstanceResponse. - :rtype: int - """ - return self._expired_date - - @expired_date.setter - def expired_date(self, expired_date): - """Sets the expired_date of this RunCreateInstanceResponse. - - 过期时间,-1表示永不过期。 - - :param expired_date: The expired_date of this RunCreateInstanceResponse. - :type expired_date: int - """ - self._expired_date = expired_date - - @property - def level(self): - """Gets the level of this RunCreateInstanceResponse. - - 规格,即实例的图片数量规格,默认为30000000(单位:张)。 - - :return: The level of this RunCreateInstanceResponse. - :rtype: int - """ - return self._level - - @level.setter - def level(self, level): - """Sets the level of this RunCreateInstanceResponse. - - 规格,即实例的图片数量规格,默认为30000000(单位:张)。 - - :param level: The level of this RunCreateInstanceResponse. - :type level: int - """ - self._level = level - - @property - def tags(self): - """Gets the tags of this RunCreateInstanceResponse. - - 图片自定义标签。 - - :return: The tags of this RunCreateInstanceResponse. - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this RunCreateInstanceResponse. - - 图片自定义标签。 - - :param tags: The tags of this RunCreateInstanceResponse. - :type tags: list[str] - """ - self._tags = tags - - @property - def status(self): - """Gets the status of this RunCreateInstanceResponse. - - 实例的状态,有以下状态信息: - NORMAL:正常。 - ARREARAGE:欠费。 - CREATION:创建中。 - CREATION_FAILD:创建失败。 - DELETING:删除中。 - DELETING_FAILED:删除失败。 - ABNORMAL:异常。 - - :return: The status of this RunCreateInstanceResponse. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this RunCreateInstanceResponse. - - 实例的状态,有以下状态信息: - NORMAL:正常。 - ARREARAGE:欠费。 - CREATION:创建中。 - CREATION_FAILD:创建失败。 - DELETING:删除中。 - DELETING_FAILED:删除失败。 - ABNORMAL:异常。 - - :param status: The status of this RunCreateInstanceResponse. - :type status: str - """ - self._status = status - - @property - def instance_name(self): - """Gets the instance_name of this RunCreateInstanceResponse. - - 实例名称。 - - :return: The instance_name of this RunCreateInstanceResponse. - :rtype: str - """ - return self._instance_name - - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunCreateInstanceResponse. - - 实例名称。 - - :param instance_name: The instance_name of this RunCreateInstanceResponse. - :type instance_name: str - """ - self._instance_name = instance_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunCreateInstanceResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_response.py deleted file mode 100755 index 0ad361482..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_query_instance_response.py +++ /dev/null @@ -1,321 +0,0 @@ -# coding: utf-8 - -import re -import six - - -from huaweicloudsdkcore.sdk_response import SdkResponse -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RunQueryInstanceResponse(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 = { - 'domain': 'str', - 'desc': 'str', - 'register_date': 'int', - 'expired_date': 'int', - 'level': 'int', - 'tags': 'list[str]', - 'status': 'str', - 'instance_name': 'str' - } - - attribute_map = { - 'domain': 'domain', - 'desc': 'desc', - 'register_date': 'registerDate', - 'expired_date': 'expiredDate', - 'level': 'level', - 'tags': 'tags', - 'status': 'status', - 'instance_name': 'instanceName' - } - - def __init__(self, domain=None, desc=None, register_date=None, expired_date=None, level=None, tags=None, status=None, instance_name=None): - """RunQueryInstanceResponse - - The model defined in huaweicloud sdk - - :param domain: 模型展示名或领域名称。 - :type domain: str - :param desc: 描述。 - :type desc: str - :param register_date: 注册时间。 - :type register_date: int - :param expired_date: 过期时间,-1表示永不过期。 - :type expired_date: int - :param level: 规格,即实例的图片数量规格,默认为30000000(单位:张)。 - :type level: int - :param tags: 图片自定义标签。 - :type tags: list[str] - :param status: 实例的状态,有以下状态信息: - NORMAL:正常。 - ARREARAGE:欠费。 - CREATION:创建中。 - CREATION_FAILD:创建失败。 - DELETING:删除中。 - DELETING_FAILED:删除失败。 - ABNORMAL:异常。 - :type status: str - :param instance_name: 实例名称。 - :type instance_name: str - """ - - super(RunQueryInstanceResponse, self).__init__() - - self._domain = None - self._desc = None - self._register_date = None - self._expired_date = None - self._level = None - self._tags = None - self._status = None - self._instance_name = None - self.discriminator = None - - if domain is not None: - self.domain = domain - if desc is not None: - self.desc = desc - if register_date is not None: - self.register_date = register_date - if expired_date is not None: - self.expired_date = expired_date - if level is not None: - self.level = level - if tags is not None: - self.tags = tags - if status is not None: - self.status = status - if instance_name is not None: - self.instance_name = instance_name - - @property - def domain(self): - """Gets the domain of this RunQueryInstanceResponse. - - 模型展示名或领域名称。 - - :return: The domain of this RunQueryInstanceResponse. - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this RunQueryInstanceResponse. - - 模型展示名或领域名称。 - - :param domain: The domain of this RunQueryInstanceResponse. - :type domain: str - """ - self._domain = domain - - @property - def desc(self): - """Gets the desc of this RunQueryInstanceResponse. - - 描述。 - - :return: The desc of this RunQueryInstanceResponse. - :rtype: str - """ - return self._desc - - @desc.setter - def desc(self, desc): - """Sets the desc of this RunQueryInstanceResponse. - - 描述。 - - :param desc: The desc of this RunQueryInstanceResponse. - :type desc: str - """ - self._desc = desc - - @property - def register_date(self): - """Gets the register_date of this RunQueryInstanceResponse. - - 注册时间。 - - :return: The register_date of this RunQueryInstanceResponse. - :rtype: int - """ - return self._register_date - - @register_date.setter - def register_date(self, register_date): - """Sets the register_date of this RunQueryInstanceResponse. - - 注册时间。 - - :param register_date: The register_date of this RunQueryInstanceResponse. - :type register_date: int - """ - self._register_date = register_date - - @property - def expired_date(self): - """Gets the expired_date of this RunQueryInstanceResponse. - - 过期时间,-1表示永不过期。 - - :return: The expired_date of this RunQueryInstanceResponse. - :rtype: int - """ - return self._expired_date - - @expired_date.setter - def expired_date(self, expired_date): - """Sets the expired_date of this RunQueryInstanceResponse. - - 过期时间,-1表示永不过期。 - - :param expired_date: The expired_date of this RunQueryInstanceResponse. - :type expired_date: int - """ - self._expired_date = expired_date - - @property - def level(self): - """Gets the level of this RunQueryInstanceResponse. - - 规格,即实例的图片数量规格,默认为30000000(单位:张)。 - - :return: The level of this RunQueryInstanceResponse. - :rtype: int - """ - return self._level - - @level.setter - def level(self, level): - """Sets the level of this RunQueryInstanceResponse. - - 规格,即实例的图片数量规格,默认为30000000(单位:张)。 - - :param level: The level of this RunQueryInstanceResponse. - :type level: int - """ - self._level = level - - @property - def tags(self): - """Gets the tags of this RunQueryInstanceResponse. - - 图片自定义标签。 - - :return: The tags of this RunQueryInstanceResponse. - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this RunQueryInstanceResponse. - - 图片自定义标签。 - - :param tags: The tags of this RunQueryInstanceResponse. - :type tags: list[str] - """ - self._tags = tags - - @property - def status(self): - """Gets the status of this RunQueryInstanceResponse. - - 实例的状态,有以下状态信息: - NORMAL:正常。 - ARREARAGE:欠费。 - CREATION:创建中。 - CREATION_FAILD:创建失败。 - DELETING:删除中。 - DELETING_FAILED:删除失败。 - ABNORMAL:异常。 - - :return: The status of this RunQueryInstanceResponse. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this RunQueryInstanceResponse. - - 实例的状态,有以下状态信息: - NORMAL:正常。 - ARREARAGE:欠费。 - CREATION:创建中。 - CREATION_FAILD:创建失败。 - DELETING:删除中。 - DELETING_FAILED:删除失败。 - ABNORMAL:异常。 - - :param status: The status of this RunQueryInstanceResponse. - :type status: str - """ - self._status = status - - @property - def instance_name(self): - """Gets the instance_name of this RunQueryInstanceResponse. - - 实例名称。 - - :return: The instance_name of this RunQueryInstanceResponse. - :rtype: str - """ - return self._instance_name - - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunQueryInstanceResponse. - - 实例名称。 - - :param instance_name: The instance_name of this RunQueryInstanceResponse. - :type instance_name: str - """ - self._instance_name = instance_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RunQueryInstanceResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_box_detail.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_box_detail.py deleted file mode 100755 index ee6156674..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_box_detail.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -import re -import six - - - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class SearchBoxDetail: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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': 'int', - 'y': 'int', - 'width': 'int', - 'height': 'int' - } - - attribute_map = { - 'x': 'x', - 'y': 'y', - 'width': 'width', - 'height': 'height' - } - - def __init__(self, x=None, y=None, width=None, height=None): - """SearchBoxDetail - - The model defined in huaweicloud sdk - - :param x: 区域中x坐标的最小值,单位:像素。 - :type x: int - :param y: 区域中y坐标的最小值,单位:像素。 - :type y: int - :param width: 区域的宽度,单位:像素。 - :type width: int - :param height: 区域的高度,单位:像素。 - :type height: int - """ - - - - self._x = None - self._y = None - self._width = None - self._height = None - self.discriminator = None - - if x is not None: - self.x = x - if y is not None: - self.y = y - if width is not None: - self.width = width - if height is not None: - self.height = height - - @property - def x(self): - """Gets the x of this SearchBoxDetail. - - 区域中x坐标的最小值,单位:像素。 - - :return: The x of this SearchBoxDetail. - :rtype: int - """ - return self._x - - @x.setter - def x(self, x): - """Sets the x of this SearchBoxDetail. - - 区域中x坐标的最小值,单位:像素。 - - :param x: The x of this SearchBoxDetail. - :type x: int - """ - self._x = x - - @property - def y(self): - """Gets the y of this SearchBoxDetail. - - 区域中y坐标的最小值,单位:像素。 - - :return: The y of this SearchBoxDetail. - :rtype: int - """ - return self._y - - @y.setter - def y(self, y): - """Sets the y of this SearchBoxDetail. - - 区域中y坐标的最小值,单位:像素。 - - :param y: The y of this SearchBoxDetail. - :type y: int - """ - self._y = y - - @property - def width(self): - """Gets the width of this SearchBoxDetail. - - 区域的宽度,单位:像素。 - - :return: The width of this SearchBoxDetail. - :rtype: int - """ - return self._width - - @width.setter - def width(self, width): - """Sets the width of this SearchBoxDetail. - - 区域的宽度,单位:像素。 - - :param width: The width of this SearchBoxDetail. - :type width: int - """ - self._width = width - - @property - def height(self): - """Gets the height of this SearchBoxDetail. - - 区域的高度,单位:像素。 - - :return: The height of this SearchBoxDetail. - :rtype: int - """ - return self._height - - @height.setter - def height(self, height): - """Sets the height of this SearchBoxDetail. - - 区域的高度,单位:像素。 - - :param height: The height of this SearchBoxDetail. - :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, SearchBoxDetail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_req.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_req.py deleted file mode 100755 index 6afa07845..000000000 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/search_picture_req.py +++ /dev/null @@ -1,288 +0,0 @@ -# coding: utf-8 - -import re -import six - - - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class SearchPictureReq: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'file': 'str', - 'path': 'str', - 'limit': 'int', - 'offset': 'int', - 'tags': 'object', - 'is_crop': 'bool', - 'box': 'SearchBoxDetail' - } - - attribute_map = { - 'file': 'file', - 'path': 'path', - 'limit': 'limit', - 'offset': 'offset', - 'tags': 'tags', - 'is_crop': 'is_crop', - 'box': 'box' - } - - def __init__(self, file=None, path=None, limit=None, offset=None, tags=None, is_crop=None, box=None): - """SearchPictureReq - - The model defined in huaweicloud sdk - - :param file: 图片文件Base64编码字符串,仅支持JPEG/JPG/PNG/BMP格式,图片最小边不小于100px,最大边不超过2048px。该参数与path二选一,如果两个参数都存在,则以file为主。 - :type file: str - :param path: 图片的URL路径,图片库中的图片索引ID。该参数与file二选一,如果两个参数都存在,则以file为主。 - :type path: str - :param limit: 返回被检索图像的数量,取值为1~100的整数,默认为10。 - :type limit: int - :param offset: 偏移量,指定搜索结果返回起始位置,取值为大于或等于0的整数,默认为0。 - :type offset: int - :param tags: 图片自定义标签,最多不超过10个,格式为key:value对。 标签名(key)添加方式: - 登录管理控制台,单击“创建实例”,自定义标签名。 - 登录管理控制台,在“实例管理”页签,单击实例名称,进入“基础信息”页添加自定义标签。 使用图片标签搜索时该参数必选。 - :type tags: object - :param is_crop: 是否用图片中指定区域(参数box)进行搜索。默认为false,该参数目前仅对某些特定模型有效,其他模型暂不支持目标检测。 - true:用图片中指定区域(参数box)进行搜索。 - false:用全图进行搜索。 - :type is_crop: bool - :param box: - :type box: :class:`huaweicloudsdkimagesearch.v1.SearchBoxDetail` - """ - - - - self._file = None - self._path = None - self._limit = None - self._offset = None - self._tags = None - self._is_crop = None - self._box = None - self.discriminator = None - - if file is not None: - self.file = file - if path is not None: - self.path = path - if limit is not None: - self.limit = limit - if offset is not None: - self.offset = offset - if tags is not None: - self.tags = tags - if is_crop is not None: - self.is_crop = is_crop - if box is not None: - self.box = box - - @property - def file(self): - """Gets the file of this SearchPictureReq. - - 图片文件Base64编码字符串,仅支持JPEG/JPG/PNG/BMP格式,图片最小边不小于100px,最大边不超过2048px。该参数与path二选一,如果两个参数都存在,则以file为主。 - - :return: The file of this SearchPictureReq. - :rtype: str - """ - return self._file - - @file.setter - def file(self, file): - """Sets the file of this SearchPictureReq. - - 图片文件Base64编码字符串,仅支持JPEG/JPG/PNG/BMP格式,图片最小边不小于100px,最大边不超过2048px。该参数与path二选一,如果两个参数都存在,则以file为主。 - - :param file: The file of this SearchPictureReq. - :type file: str - """ - self._file = file - - @property - def path(self): - """Gets the path of this SearchPictureReq. - - 图片的URL路径,图片库中的图片索引ID。该参数与file二选一,如果两个参数都存在,则以file为主。 - - :return: The path of this SearchPictureReq. - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """Sets the path of this SearchPictureReq. - - 图片的URL路径,图片库中的图片索引ID。该参数与file二选一,如果两个参数都存在,则以file为主。 - - :param path: The path of this SearchPictureReq. - :type path: str - """ - self._path = path - - @property - def limit(self): - """Gets the limit of this SearchPictureReq. - - 返回被检索图像的数量,取值为1~100的整数,默认为10。 - - :return: The limit of this SearchPictureReq. - :rtype: int - """ - return self._limit - - @limit.setter - def limit(self, limit): - """Sets the limit of this SearchPictureReq. - - 返回被检索图像的数量,取值为1~100的整数,默认为10。 - - :param limit: The limit of this SearchPictureReq. - :type limit: int - """ - self._limit = limit - - @property - def offset(self): - """Gets the offset of this SearchPictureReq. - - 偏移量,指定搜索结果返回起始位置,取值为大于或等于0的整数,默认为0。 - - :return: The offset of this SearchPictureReq. - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this SearchPictureReq. - - 偏移量,指定搜索结果返回起始位置,取值为大于或等于0的整数,默认为0。 - - :param offset: The offset of this SearchPictureReq. - :type offset: int - """ - self._offset = offset - - @property - def tags(self): - """Gets the tags of this SearchPictureReq. - - 图片自定义标签,最多不超过10个,格式为key:value对。 标签名(key)添加方式: - 登录管理控制台,单击“创建实例”,自定义标签名。 - 登录管理控制台,在“实例管理”页签,单击实例名称,进入“基础信息”页添加自定义标签。 使用图片标签搜索时该参数必选。 - - :return: The tags of this SearchPictureReq. - :rtype: object - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this SearchPictureReq. - - 图片自定义标签,最多不超过10个,格式为key:value对。 标签名(key)添加方式: - 登录管理控制台,单击“创建实例”,自定义标签名。 - 登录管理控制台,在“实例管理”页签,单击实例名称,进入“基础信息”页添加自定义标签。 使用图片标签搜索时该参数必选。 - - :param tags: The tags of this SearchPictureReq. - :type tags: object - """ - self._tags = tags - - @property - def is_crop(self): - """Gets the is_crop of this SearchPictureReq. - - 是否用图片中指定区域(参数box)进行搜索。默认为false,该参数目前仅对某些特定模型有效,其他模型暂不支持目标检测。 - true:用图片中指定区域(参数box)进行搜索。 - false:用全图进行搜索。 - - :return: The is_crop of this SearchPictureReq. - :rtype: bool - """ - return self._is_crop - - @is_crop.setter - def is_crop(self, is_crop): - """Sets the is_crop of this SearchPictureReq. - - 是否用图片中指定区域(参数box)进行搜索。默认为false,该参数目前仅对某些特定模型有效,其他模型暂不支持目标检测。 - true:用图片中指定区域(参数box)进行搜索。 - false:用全图进行搜索。 - - :param is_crop: The is_crop of this SearchPictureReq. - :type is_crop: bool - """ - self._is_crop = is_crop - - @property - def box(self): - """Gets the box of this SearchPictureReq. - - :return: The box of this SearchPictureReq. - :rtype: :class:`huaweicloudsdkimagesearch.v1.SearchBoxDetail` - """ - return self._box - - @box.setter - def box(self, box): - """Sets the box of this SearchPictureReq. - - :param box: The box of this SearchPictureReq. - :type box: :class:`huaweicloudsdkimagesearch.v1.SearchBoxDetail` - """ - self._box = box - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SearchPictureReq): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/__init__.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/__init__.py new file mode 100755 index 000000000..8ae1328b8 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/__init__.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import ImageSearchClient +from huaweicloudsdkimagesearch.v2.imagesearch_client import ImageSearchClient +from huaweicloudsdkimagesearch.v2.imagesearch_async_client import ImageSearchAsyncClient +# import models into sdk package +from huaweicloudsdkimagesearch.v2.model.add_data_optional_param import AddDataOptionalParam +from huaweicloudsdkimagesearch.v2.model.add_data_param import AddDataParam +from huaweicloudsdkimagesearch.v2.model.add_data_rest_info import AddDataRestInfo +from huaweicloudsdkimagesearch.v2.model.add_data_rest_info_image_info import AddDataRestInfoImageInfo +from huaweicloudsdkimagesearch.v2.model.add_data_rest_info_image_info_objects import AddDataRestInfoImageInfoObjects +from huaweicloudsdkimagesearch.v2.model.check_info import CheckInfo +from huaweicloudsdkimagesearch.v2.model.check_param import CheckParam +from huaweicloudsdkimagesearch.v2.model.check_rest_info import CheckRestInfo +from huaweicloudsdkimagesearch.v2.model.delete_info import DeleteInfo +from huaweicloudsdkimagesearch.v2.model.delete_param import DeleteParam +from huaweicloudsdkimagesearch.v2.model.delete_rest_info import DeleteRestInfo +from huaweicloudsdkimagesearch.v2.model.delete_rest_info_items import DeleteRestInfoItems +from huaweicloudsdkimagesearch.v2.model.item_source import ItemSource +from huaweicloudsdkimagesearch.v2.model.range_param import RangeParam +from huaweicloudsdkimagesearch.v2.model.run_add_data_request import RunAddDataRequest +from huaweicloudsdkimagesearch.v2.model.run_add_data_response import RunAddDataResponse +from huaweicloudsdkimagesearch.v2.model.run_check_data_request import RunCheckDataRequest +from huaweicloudsdkimagesearch.v2.model.run_check_data_response import RunCheckDataResponse +from huaweicloudsdkimagesearch.v2.model.run_delete_data_request import RunDeleteDataRequest +from huaweicloudsdkimagesearch.v2.model.run_delete_data_response import RunDeleteDataResponse +from huaweicloudsdkimagesearch.v2.model.run_search_request import RunSearchRequest +from huaweicloudsdkimagesearch.v2.model.run_search_response import RunSearchResponse +from huaweicloudsdkimagesearch.v2.model.run_update_data_request import RunUpdateDataRequest +from huaweicloudsdkimagesearch.v2.model.run_update_data_response import RunUpdateDataResponse +from huaweicloudsdkimagesearch.v2.model.search_after_param import SearchAfterParam +from huaweicloudsdkimagesearch.v2.model.search_info import SearchInfo +from huaweicloudsdkimagesearch.v2.model.search_item import SearchItem +from huaweicloudsdkimagesearch.v2.model.search_optional_param import SearchOptionalParam +from huaweicloudsdkimagesearch.v2.model.search_param import SearchParam +from huaweicloudsdkimagesearch.v2.model.search_rest_info import SearchRestInfo +from huaweicloudsdkimagesearch.v2.model.search_rest_info_image_info import SearchRestInfoImageInfo +from huaweicloudsdkimagesearch.v2.model.update_param import UpdateParam + diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_async_client.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_async_client.py new file mode 100755 index 000000000..9d60ffb91 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_async_client.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class ImageSearchAsyncClient(Client): + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(ImageSearchAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkimagesearch.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "ImageSearchClient": + raise TypeError("client type error, support client type is ImageSearchClient") + + return ClientBuilder(clazz) + + def run_add_data_async(self, request): + """添加数据 + + 添加数据到指定服务实例中。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunAddData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunAddDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunAddDataResponse` + """ + return self.run_add_data_with_http_info(request) + + def run_add_data_with_http_info(self, request): + all_params = ['service_name', 'add_data_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/add', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunAddDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_check_data_async(self, request): + """检查数据 + + 检查指定服务实例中的对应数据,支持指定ID检查和条件检查。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunCheckData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunCheckDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunCheckDataResponse` + """ + return self.run_check_data_with_http_info(request) + + def run_check_data_with_http_info(self, request): + all_params = ['service_name', 'check_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/check', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunCheckDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_delete_data_async(self, request): + """删除数据 + + 删除指定服务实例中的对应数据,支持指定ID删除和条件删除。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunDeleteData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunDeleteDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunDeleteDataResponse` + """ + return self.run_delete_data_with_http_info(request) + + def run_delete_data_with_http_info(self, request): + all_params = ['service_name', 'delete_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/delete', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunDeleteDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_search_async(self, request): + """搜索 + + 从指定服务实例中进行搜索。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunSearch + :type request: :class:`huaweicloudsdkimagesearch.v2.RunSearchRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunSearchResponse` + """ + return self.run_search_with_http_info(request) + + def run_search_with_http_info(self, request): + all_params = ['service_name', 'search_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunSearchResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_update_data_async(self, request): + """更新数据 + + 更新指定服务实例中的对应数据。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunUpdateData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunUpdateDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunUpdateDataResponse` + """ + return self.run_update_data_with_http_info(request) + + def run_update_data_with_http_info(self, request): + all_params = ['service_name', 'update_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunUpdateDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_client.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_client.py new file mode 100755 index 000000000..c54cc2a79 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/imagesearch_client.py @@ -0,0 +1,390 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class ImageSearchClient(Client): + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(ImageSearchClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkimagesearch.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "ImageSearchClient": + raise TypeError("client type error, support client type is ImageSearchClient") + + return ClientBuilder(clazz) + + def run_add_data(self, request): + """添加数据 + + 添加数据到指定服务实例中。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunAddData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunAddDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunAddDataResponse` + """ + return self.run_add_data_with_http_info(request) + + def run_add_data_with_http_info(self, request): + all_params = ['service_name', 'add_data_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/add', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunAddDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_check_data(self, request): + """检查数据 + + 检查指定服务实例中的对应数据,支持指定ID检查和条件检查。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunCheckData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunCheckDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunCheckDataResponse` + """ + return self.run_check_data_with_http_info(request) + + def run_check_data_with_http_info(self, request): + all_params = ['service_name', 'check_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/check', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunCheckDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_delete_data(self, request): + """删除数据 + + 删除指定服务实例中的对应数据,支持指定ID删除和条件删除。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunDeleteData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunDeleteDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunDeleteDataResponse` + """ + return self.run_delete_data_with_http_info(request) + + def run_delete_data_with_http_info(self, request): + all_params = ['service_name', 'delete_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/delete', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunDeleteDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_search(self, request): + """搜索 + + 从指定服务实例中进行搜索。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunSearch + :type request: :class:`huaweicloudsdkimagesearch.v2.RunSearchRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunSearchResponse` + """ + return self.run_search_with_http_info(request) + + def run_search_with_http_info(self, request): + all_params = ['service_name', 'search_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunSearchResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def run_update_data(self, request): + """更新数据 + + 更新指定服务实例中的对应数据。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunUpdateData + :type request: :class:`huaweicloudsdkimagesearch.v2.RunUpdateDataRequest` + :rtype: :class:`huaweicloudsdkimagesearch.v2.RunUpdateDataResponse` + """ + return self.run_update_data_with_http_info(request) + + def run_update_data_with_http_info(self, request): + all_params = ['service_name', 'update_param'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'service_name' in local_var_params: + path_params['service_name'] = local_var_params['service_name'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/mms/{service_name}/data/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='RunUpdateDataResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/__init__.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/__init__.py new file mode 100755 index 000000000..7f7e1b673 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/__init__.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkimagesearch.v2.model.add_data_optional_param import AddDataOptionalParam +from huaweicloudsdkimagesearch.v2.model.add_data_param import AddDataParam +from huaweicloudsdkimagesearch.v2.model.add_data_rest_info import AddDataRestInfo +from huaweicloudsdkimagesearch.v2.model.add_data_rest_info_image_info import AddDataRestInfoImageInfo +from huaweicloudsdkimagesearch.v2.model.add_data_rest_info_image_info_objects import AddDataRestInfoImageInfoObjects +from huaweicloudsdkimagesearch.v2.model.check_info import CheckInfo +from huaweicloudsdkimagesearch.v2.model.check_param import CheckParam +from huaweicloudsdkimagesearch.v2.model.check_rest_info import CheckRestInfo +from huaweicloudsdkimagesearch.v2.model.delete_info import DeleteInfo +from huaweicloudsdkimagesearch.v2.model.delete_param import DeleteParam +from huaweicloudsdkimagesearch.v2.model.delete_rest_info import DeleteRestInfo +from huaweicloudsdkimagesearch.v2.model.delete_rest_info_items import DeleteRestInfoItems +from huaweicloudsdkimagesearch.v2.model.item_source import ItemSource +from huaweicloudsdkimagesearch.v2.model.range_param import RangeParam +from huaweicloudsdkimagesearch.v2.model.run_add_data_request import RunAddDataRequest +from huaweicloudsdkimagesearch.v2.model.run_add_data_response import RunAddDataResponse +from huaweicloudsdkimagesearch.v2.model.run_check_data_request import RunCheckDataRequest +from huaweicloudsdkimagesearch.v2.model.run_check_data_response import RunCheckDataResponse +from huaweicloudsdkimagesearch.v2.model.run_delete_data_request import RunDeleteDataRequest +from huaweicloudsdkimagesearch.v2.model.run_delete_data_response import RunDeleteDataResponse +from huaweicloudsdkimagesearch.v2.model.run_search_request import RunSearchRequest +from huaweicloudsdkimagesearch.v2.model.run_search_response import RunSearchResponse +from huaweicloudsdkimagesearch.v2.model.run_update_data_request import RunUpdateDataRequest +from huaweicloudsdkimagesearch.v2.model.run_update_data_response import RunUpdateDataResponse +from huaweicloudsdkimagesearch.v2.model.search_after_param import SearchAfterParam +from huaweicloudsdkimagesearch.v2.model.search_info import SearchInfo +from huaweicloudsdkimagesearch.v2.model.search_item import SearchItem +from huaweicloudsdkimagesearch.v2.model.search_optional_param import SearchOptionalParam +from huaweicloudsdkimagesearch.v2.model.search_param import SearchParam +from huaweicloudsdkimagesearch.v2.model.search_rest_info import SearchRestInfo +from huaweicloudsdkimagesearch.v2.model.search_rest_info_image_info import SearchRestInfoImageInfo +from huaweicloudsdkimagesearch.v2.model.update_param import UpdateParam diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py new file mode 100755 index 000000000..285fbcebb --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddDataOptionalParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'do_det': 'bool', + 'box': 'str', + 'do_cls': 'bool', + 'category': 'float' + } + + attribute_map = { + 'do_det': 'do_det', + 'box': 'box', + 'do_cls': 'do_cls', + 'category': 'category' + } + + def __init__(self, do_det=None, box=None, do_cls=None, category=None): + """AddDataOptionalParam + + The model defined in huaweicloud sdk + + :param do_det: 是否进行目标检测,默认为true。 + :type do_det: bool + :param box: 目标矩形框坐标,如给定则不进行目标检测,直接使用该box作为目标。格式为“x1,y1,x2,y2”(无空格),x1/y1为目标左上角坐标,x2/y2为目标右下角坐标,具体要求如下: - 0 <= x1 < x2 <= width,默认要求x2-x1 >= 15,具体可参考服务类型说明。 - 0 <= y1 < y2 <= height,默认要求y2-y1 >= 15,具体可参考服务类型说明。 + :type box: str + :param do_cls: 是否进行对象分类,默认为true。 + :type do_cls: bool + :param category: 对象类目,如给定则不进行对象分类,直接使用该category作为类目。具体类目信息可参见对应的服务类型说明。 + :type category: float + """ + + + + self._do_det = None + self._box = None + self._do_cls = None + self._category = None + self.discriminator = None + + if do_det is not None: + self.do_det = do_det + if box is not None: + self.box = box + if do_cls is not None: + self.do_cls = do_cls + if category is not None: + self.category = category + + @property + def do_det(self): + """Gets the do_det of this AddDataOptionalParam. + + 是否进行目标检测,默认为true。 + + :return: The do_det of this AddDataOptionalParam. + :rtype: bool + """ + return self._do_det + + @do_det.setter + def do_det(self, do_det): + """Sets the do_det of this AddDataOptionalParam. + + 是否进行目标检测,默认为true。 + + :param do_det: The do_det of this AddDataOptionalParam. + :type do_det: bool + """ + self._do_det = do_det + + @property + def box(self): + """Gets the box of this AddDataOptionalParam. + + 目标矩形框坐标,如给定则不进行目标检测,直接使用该box作为目标。格式为“x1,y1,x2,y2”(无空格),x1/y1为目标左上角坐标,x2/y2为目标右下角坐标,具体要求如下: - 0 <= x1 < x2 <= width,默认要求x2-x1 >= 15,具体可参考服务类型说明。 - 0 <= y1 < y2 <= height,默认要求y2-y1 >= 15,具体可参考服务类型说明。 + + :return: The box of this AddDataOptionalParam. + :rtype: str + """ + return self._box + + @box.setter + def box(self, box): + """Sets the box of this AddDataOptionalParam. + + 目标矩形框坐标,如给定则不进行目标检测,直接使用该box作为目标。格式为“x1,y1,x2,y2”(无空格),x1/y1为目标左上角坐标,x2/y2为目标右下角坐标,具体要求如下: - 0 <= x1 < x2 <= width,默认要求x2-x1 >= 15,具体可参考服务类型说明。 - 0 <= y1 < y2 <= height,默认要求y2-y1 >= 15,具体可参考服务类型说明。 + + :param box: The box of this AddDataOptionalParam. + :type box: str + """ + self._box = box + + @property + def do_cls(self): + """Gets the do_cls of this AddDataOptionalParam. + + 是否进行对象分类,默认为true。 + + :return: The do_cls of this AddDataOptionalParam. + :rtype: bool + """ + return self._do_cls + + @do_cls.setter + def do_cls(self, do_cls): + """Sets the do_cls of this AddDataOptionalParam. + + 是否进行对象分类,默认为true。 + + :param do_cls: The do_cls of this AddDataOptionalParam. + :type do_cls: bool + """ + self._do_cls = do_cls + + @property + def category(self): + """Gets the category of this AddDataOptionalParam. + + 对象类目,如给定则不进行对象分类,直接使用该category作为类目。具体类目信息可参见对应的服务类型说明。 + + :return: The category of this AddDataOptionalParam. + :rtype: float + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AddDataOptionalParam. + + 对象类目,如给定则不进行对象分类,直接使用该category作为类目。具体类目信息可参见对应的服务类型说明。 + + :param category: The category of this AddDataOptionalParam. + :type category: float + """ + self._category = category + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddDataOptionalParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_param.py new file mode 100755 index 000000000..b7a16c928 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_param.py @@ -0,0 +1,345 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddDataParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'force': 'bool', + 'item_id': 'str', + 'desc': 'str', + 'custom_tags': 'dict(str, str)', + 'custom_num_tags': 'dict(str, float)', + 'image_base64': 'str', + 'image_url': 'str', + 'keywords': 'list[str]', + 'optional_params': 'AddDataOptionalParam' + } + + attribute_map = { + 'force': 'force', + 'item_id': 'item_id', + 'desc': 'desc', + 'custom_tags': 'custom_tags', + 'custom_num_tags': 'custom_num_tags', + 'image_base64': 'image_base64', + 'image_url': 'image_url', + 'keywords': 'keywords', + 'optional_params': 'optional_params' + } + + def __init__(self, force=None, item_id=None, desc=None, custom_tags=None, custom_num_tags=None, image_base64=None, image_url=None, keywords=None, optional_params=None): + """AddDataParam + + The model defined in huaweicloud sdk + + :param force: 是否强制添加数据,默认为false。 - false: 数据已存在则不进行添加。 - true: 数据已存在仍然覆盖添加。 + :type force: bool + :param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 + :type item_id: str + :param desc: 数据的描述信息,字符长度范围为[1, 2048]。 + :type desc: str + :param custom_tags: 数据的自定义字符标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。 + :type custom_tags: dict(str, str) + :param custom_num_tags: 数据的自定义数值标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。 + :type custom_num_tags: dict(str, float) + :param image_base64: 图像文件的base64字符串,图像入库时,与image_url二选一。要求如下: - 格式:目前仅支持JPEG/JPG/PNG/BMP格式的图像。 - 尺寸:默认情况下,要求图像的最短边大于128px,最长边小于4096px。部分服务类型有特殊要求,可参见服务类型说明。 - 大小:图像文件大小要求不超过5M。 - 其他:图片中不能包含旋转信息。 + :type image_base64: str + :param image_url: 图像文件的服务可访问URL,字符长度范围为[1, 4096]。图像入库时,与image_base64二选一。 + :type image_url: str + :param keywords: 关键词列表,关键词数量范围为[1, 100],关键词字符长度范围为[1, 64]。支持关键词搜索的服务实例添加数据时,如给定此参数,则直接使用给定的keywords作为关键词,否则会自动生成对应的keywords。 + :type keywords: list[str] + :param optional_params: + :type optional_params: :class:`huaweicloudsdkimagesearch.v2.AddDataOptionalParam` + """ + + + + self._force = None + self._item_id = None + self._desc = None + self._custom_tags = None + self._custom_num_tags = None + self._image_base64 = None + self._image_url = None + self._keywords = None + self._optional_params = None + self.discriminator = None + + if force is not None: + self.force = force + self.item_id = item_id + if desc is not None: + self.desc = desc + if custom_tags is not None: + self.custom_tags = custom_tags + if custom_num_tags is not None: + self.custom_num_tags = custom_num_tags + if image_base64 is not None: + self.image_base64 = image_base64 + if image_url is not None: + self.image_url = image_url + if keywords is not None: + self.keywords = keywords + if optional_params is not None: + self.optional_params = optional_params + + @property + def force(self): + """Gets the force of this AddDataParam. + + 是否强制添加数据,默认为false。 - false: 数据已存在则不进行添加。 - true: 数据已存在仍然覆盖添加。 + + :return: The force of this AddDataParam. + :rtype: bool + """ + return self._force + + @force.setter + def force(self, force): + """Sets the force of this AddDataParam. + + 是否强制添加数据,默认为false。 - false: 数据已存在则不进行添加。 - true: 数据已存在仍然覆盖添加。 + + :param force: The force of this AddDataParam. + :type force: bool + """ + self._force = force + + @property + def item_id(self): + """Gets the item_id of this AddDataParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 + + :return: The item_id of this AddDataParam. + :rtype: str + """ + return self._item_id + + @item_id.setter + def item_id(self, item_id): + """Sets the item_id of this AddDataParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 + + :param item_id: The item_id of this AddDataParam. + :type item_id: str + """ + self._item_id = item_id + + @property + def desc(self): + """Gets the desc of this AddDataParam. + + 数据的描述信息,字符长度范围为[1, 2048]。 + + :return: The desc of this AddDataParam. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this AddDataParam. + + 数据的描述信息,字符长度范围为[1, 2048]。 + + :param desc: The desc of this AddDataParam. + :type desc: str + """ + self._desc = desc + + @property + def custom_tags(self): + """Gets the custom_tags of this AddDataParam. + + 数据的自定义字符标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。 + + :return: The custom_tags of this AddDataParam. + :rtype: dict(str, str) + """ + return self._custom_tags + + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this AddDataParam. + + 数据的自定义字符标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。 + + :param custom_tags: The custom_tags of this AddDataParam. + :type custom_tags: dict(str, str) + """ + self._custom_tags = custom_tags + + @property + def custom_num_tags(self): + """Gets the custom_num_tags of this AddDataParam. + + 数据的自定义数值标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。 + + :return: The custom_num_tags of this AddDataParam. + :rtype: dict(str, float) + """ + return self._custom_num_tags + + @custom_num_tags.setter + def custom_num_tags(self, custom_num_tags): + """Sets the custom_num_tags of this AddDataParam. + + 数据的自定义数值标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。 + + :param custom_num_tags: The custom_num_tags of this AddDataParam. + :type custom_num_tags: dict(str, float) + """ + self._custom_num_tags = custom_num_tags + + @property + def image_base64(self): + """Gets the image_base64 of this AddDataParam. + + 图像文件的base64字符串,图像入库时,与image_url二选一。要求如下: - 格式:目前仅支持JPEG/JPG/PNG/BMP格式的图像。 - 尺寸:默认情况下,要求图像的最短边大于128px,最长边小于4096px。部分服务类型有特殊要求,可参见服务类型说明。 - 大小:图像文件大小要求不超过5M。 - 其他:图片中不能包含旋转信息。 + + :return: The image_base64 of this AddDataParam. + :rtype: str + """ + return self._image_base64 + + @image_base64.setter + def image_base64(self, image_base64): + """Sets the image_base64 of this AddDataParam. + + 图像文件的base64字符串,图像入库时,与image_url二选一。要求如下: - 格式:目前仅支持JPEG/JPG/PNG/BMP格式的图像。 - 尺寸:默认情况下,要求图像的最短边大于128px,最长边小于4096px。部分服务类型有特殊要求,可参见服务类型说明。 - 大小:图像文件大小要求不超过5M。 - 其他:图片中不能包含旋转信息。 + + :param image_base64: The image_base64 of this AddDataParam. + :type image_base64: str + """ + self._image_base64 = image_base64 + + @property + def image_url(self): + """Gets the image_url of this AddDataParam. + + 图像文件的服务可访问URL,字符长度范围为[1, 4096]。图像入库时,与image_base64二选一。 + + :return: The image_url of this AddDataParam. + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this AddDataParam. + + 图像文件的服务可访问URL,字符长度范围为[1, 4096]。图像入库时,与image_base64二选一。 + + :param image_url: The image_url of this AddDataParam. + :type image_url: str + """ + self._image_url = image_url + + @property + def keywords(self): + """Gets the keywords of this AddDataParam. + + 关键词列表,关键词数量范围为[1, 100],关键词字符长度范围为[1, 64]。支持关键词搜索的服务实例添加数据时,如给定此参数,则直接使用给定的keywords作为关键词,否则会自动生成对应的keywords。 + + :return: The keywords of this AddDataParam. + :rtype: list[str] + """ + return self._keywords + + @keywords.setter + def keywords(self, keywords): + """Sets the keywords of this AddDataParam. + + 关键词列表,关键词数量范围为[1, 100],关键词字符长度范围为[1, 64]。支持关键词搜索的服务实例添加数据时,如给定此参数,则直接使用给定的keywords作为关键词,否则会自动生成对应的keywords。 + + :param keywords: The keywords of this AddDataParam. + :type keywords: list[str] + """ + self._keywords = keywords + + @property + def optional_params(self): + """Gets the optional_params of this AddDataParam. + + :return: The optional_params of this AddDataParam. + :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataOptionalParam` + """ + return self._optional_params + + @optional_params.setter + def optional_params(self, optional_params): + """Sets the optional_params of this AddDataParam. + + :param optional_params: The optional_params of this AddDataParam. + :type optional_params: :class:`huaweicloudsdkimagesearch.v2.AddDataOptionalParam` + """ + self._optional_params = optional_params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddDataParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py new file mode 100755 index 000000000..b121900b5 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddDataRestInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'image_info': 'AddDataRestInfoImageInfo' + } + + attribute_map = { + 'image_info': 'image_info' + } + + def __init__(self, image_info=None): + """AddDataRestInfo + + The model defined in huaweicloud sdk + + :param image_info: + :type image_info: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfo` + """ + + + + self._image_info = None + self.discriminator = None + + if image_info is not None: + self.image_info = image_info + + @property + def image_info(self): + """Gets the image_info of this AddDataRestInfo. + + :return: The image_info of this AddDataRestInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfo` + """ + return self._image_info + + @image_info.setter + def image_info(self, image_info): + """Sets the image_info of this AddDataRestInfo. + + :param image_info: The image_info of this AddDataRestInfo. + :type image_info: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfo` + """ + self._image_info = image_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddDataRestInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py new file mode 100755 index 000000000..4f176edc2 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddDataRestInfoImageInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'face_num': 'float', + 'objects': 'list[AddDataRestInfoImageInfoObjects]' + } + + attribute_map = { + 'face_num': 'face_num', + 'objects': 'objects' + } + + def __init__(self, face_num=None, objects=None): + """AddDataRestInfoImageInfo + + The model defined in huaweicloud sdk + + :param face_num: 添加的人脸数量。 + :type face_num: float + :param objects: 添加的主体列表。 + :type objects: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`] + """ + + + + self._face_num = None + self._objects = None + self.discriminator = None + + if face_num is not None: + self.face_num = face_num + if objects is not None: + self.objects = objects + + @property + def face_num(self): + """Gets the face_num of this AddDataRestInfoImageInfo. + + 添加的人脸数量。 + + :return: The face_num of this AddDataRestInfoImageInfo. + :rtype: float + """ + return self._face_num + + @face_num.setter + def face_num(self, face_num): + """Sets the face_num of this AddDataRestInfoImageInfo. + + 添加的人脸数量。 + + :param face_num: The face_num of this AddDataRestInfoImageInfo. + :type face_num: float + """ + self._face_num = face_num + + @property + def objects(self): + """Gets the objects of this AddDataRestInfoImageInfo. + + 添加的主体列表。 + + :return: The objects of this AddDataRestInfoImageInfo. + :rtype: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`] + """ + return self._objects + + @objects.setter + def objects(self, objects): + """Sets the objects of this AddDataRestInfoImageInfo. + + 添加的主体列表。 + + :param objects: The objects of this AddDataRestInfoImageInfo. + :type objects: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`] + """ + self._objects = objects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddDataRestInfoImageInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py new file mode 100755 index 000000000..6d3ab99fd --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddDataRestInfoImageInfoObjects: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'box': 'str', + 'category': 'float', + 'category_name': 'str' + } + + attribute_map = { + 'box': 'box', + 'category': 'category', + 'category_name': 'category_name' + } + + def __init__(self, box=None, category=None, category_name=None): + """AddDataRestInfoImageInfoObjects + + The model defined in huaweicloud sdk + + :param box: 主体目标框。 + :type box: str + :param category: 主体类目序号。 + :type category: float + :param category_name: 主体类目名称。 + :type category_name: str + """ + + + + self._box = None + self._category = None + self._category_name = None + self.discriminator = None + + if box is not None: + self.box = box + if category is not None: + self.category = category + if category_name is not None: + self.category_name = category_name + + @property + def box(self): + """Gets the box of this AddDataRestInfoImageInfoObjects. + + 主体目标框。 + + :return: The box of this AddDataRestInfoImageInfoObjects. + :rtype: str + """ + return self._box + + @box.setter + def box(self, box): + """Sets the box of this AddDataRestInfoImageInfoObjects. + + 主体目标框。 + + :param box: The box of this AddDataRestInfoImageInfoObjects. + :type box: str + """ + self._box = box + + @property + def category(self): + """Gets the category of this AddDataRestInfoImageInfoObjects. + + 主体类目序号。 + + :return: The category of this AddDataRestInfoImageInfoObjects. + :rtype: float + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this AddDataRestInfoImageInfoObjects. + + 主体类目序号。 + + :param category: The category of this AddDataRestInfoImageInfoObjects. + :type category: float + """ + self._category = category + + @property + def category_name(self): + """Gets the category_name of this AddDataRestInfoImageInfoObjects. + + 主体类目名称。 + + :return: The category_name of this AddDataRestInfoImageInfoObjects. + :rtype: str + """ + return self._category_name + + @category_name.setter + def category_name(self, category_name): + """Sets the category_name of this AddDataRestInfoImageInfoObjects. + + 主体类目名称。 + + :param category_name: The category_name of this AddDataRestInfoImageInfoObjects. + :type category_name: str + """ + self._category_name = category_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, AddDataRestInfoImageInfoObjects): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_info.py new file mode 100755 index 000000000..bca127a26 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_info.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CheckInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_num': 'float', + 'return_num': 'float', + 'last_item': 'SearchAfterParam' + } + + attribute_map = { + 'total_num': 'total_num', + 'return_num': 'return_num', + 'last_item': 'last_item' + } + + def __init__(self, total_num=None, return_num=None, last_item=None): + """CheckInfo + + The model defined in huaweicloud sdk + + :param total_num: 符合条件的结果总数。 + :type total_num: float + :param return_num: 返回的结果总数。 + :type return_num: float + :param last_item: + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + + + + self._total_num = None + self._return_num = None + self._last_item = None + self.discriminator = None + + if total_num is not None: + self.total_num = total_num + if return_num is not None: + self.return_num = return_num + if last_item is not None: + self.last_item = last_item + + @property + def total_num(self): + """Gets the total_num of this CheckInfo. + + 符合条件的结果总数。 + + :return: The total_num of this CheckInfo. + :rtype: float + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this CheckInfo. + + 符合条件的结果总数。 + + :param total_num: The total_num of this CheckInfo. + :type total_num: float + """ + self._total_num = total_num + + @property + def return_num(self): + """Gets the return_num of this CheckInfo. + + 返回的结果总数。 + + :return: The return_num of this CheckInfo. + :rtype: float + """ + return self._return_num + + @return_num.setter + def return_num(self, return_num): + """Sets the return_num of this CheckInfo. + + 返回的结果总数。 + + :param return_num: The return_num of this CheckInfo. + :type return_num: float + """ + self._return_num = return_num + + @property + def last_item(self): + """Gets the last_item of this CheckInfo. + + :return: The last_item of this CheckInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + return self._last_item + + @last_item.setter + def last_item(self, last_item): + """Sets the last_item of this CheckInfo. + + :param last_item: The last_item of this CheckInfo. + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + self._last_item = last_item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CheckInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_param.py new file mode 100755 index 000000000..984292bcc --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_param.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CheckParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'item_id': 'str', + 'limit': 'int', + 'last_item': 'SearchAfterParam', + 'custom_tags': 'dict(str, list[str])', + 'custom_num_tags': 'dict(str, RangeParam)' + } + + attribute_map = { + 'item_id': 'item_id', + 'limit': 'limit', + 'last_item': 'last_item', + 'custom_tags': 'custom_tags', + 'custom_num_tags': 'custom_num_tags' + } + + def __init__(self, item_id=None, limit=None, last_item=None, custom_tags=None, custom_num_tags=None): + """CheckParam + + The model defined in huaweicloud sdk + + :param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID检查或条件检查。 - 如给定item_id参数,则进行指定ID检查,否则进行条件检查。 + :type item_id: str + :param limit: 返回检查结果的数量,默认为10,取值范围为[1, 100]。仅对条件检查生效。 + :type limit: int + :param last_item: + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + :param custom_tags: 自定义字符标签,用于对服务实例中的数据进行custom_tags条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + :type custom_tags: dict(str, list[str]) + :param custom_num_tags: 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + :type custom_num_tags: dict(str, RangeParam) + """ + + + + self._item_id = None + self._limit = None + self._last_item = None + self._custom_tags = None + self._custom_num_tags = None + self.discriminator = None + + if item_id is not None: + self.item_id = item_id + if limit is not None: + self.limit = limit + if last_item is not None: + self.last_item = last_item + if custom_tags is not None: + self.custom_tags = custom_tags + if custom_num_tags is not None: + self.custom_num_tags = custom_num_tags + + @property + def item_id(self): + """Gets the item_id of this CheckParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID检查或条件检查。 - 如给定item_id参数,则进行指定ID检查,否则进行条件检查。 + + :return: The item_id of this CheckParam. + :rtype: str + """ + return self._item_id + + @item_id.setter + def item_id(self, item_id): + """Sets the item_id of this CheckParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID检查或条件检查。 - 如给定item_id参数,则进行指定ID检查,否则进行条件检查。 + + :param item_id: The item_id of this CheckParam. + :type item_id: str + """ + self._item_id = item_id + + @property + def limit(self): + """Gets the limit of this CheckParam. + + 返回检查结果的数量,默认为10,取值范围为[1, 100]。仅对条件检查生效。 + + :return: The limit of this CheckParam. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this CheckParam. + + 返回检查结果的数量,默认为10,取值范围为[1, 100]。仅对条件检查生效。 + + :param limit: The limit of this CheckParam. + :type limit: int + """ + self._limit = limit + + @property + def last_item(self): + """Gets the last_item of this CheckParam. + + :return: The last_item of this CheckParam. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + return self._last_item + + @last_item.setter + def last_item(self, last_item): + """Sets the last_item of this CheckParam. + + :param last_item: The last_item of this CheckParam. + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + self._last_item = last_item + + @property + def custom_tags(self): + """Gets the custom_tags of this CheckParam. + + 自定义字符标签,用于对服务实例中的数据进行custom_tags条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + + :return: The custom_tags of this CheckParam. + :rtype: dict(str, list[str]) + """ + return self._custom_tags + + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this CheckParam. + + 自定义字符标签,用于对服务实例中的数据进行custom_tags条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + + :param custom_tags: The custom_tags of this CheckParam. + :type custom_tags: dict(str, list[str]) + """ + self._custom_tags = custom_tags + + @property + def custom_num_tags(self): + """Gets the custom_num_tags of this CheckParam. + + 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + + :return: The custom_num_tags of this CheckParam. + :rtype: dict(str, RangeParam) + """ + return self._custom_num_tags + + @custom_num_tags.setter + def custom_num_tags(self, custom_num_tags): + """Sets the custom_num_tags of this CheckParam. + + 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + + :param custom_num_tags: The custom_num_tags of this CheckParam. + :type custom_num_tags: dict(str, RangeParam) + """ + self._custom_num_tags = custom_num_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, CheckParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_rest_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_rest_info.py new file mode 100755 index 000000000..b46b63c5f --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/check_rest_info.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CheckRestInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'existed': 'bool', + 'item_info': 'ItemSource', + 'items': 'list[SearchItem]', + 'check_info': 'CheckInfo' + } + + attribute_map = { + 'existed': 'existed', + 'item_info': 'item_info', + 'items': 'items', + 'check_info': 'check_info' + } + + def __init__(self, existed=None, item_info=None, items=None, check_info=None): + """CheckRestInfo + + The model defined in huaweicloud sdk + + :param existed: 数据是否存在,存在返回true,不存在返回false。仅在指定ID检查时包含该字段。 + :type existed: bool + :param item_info: + :type item_info: :class:`huaweicloudsdkimagesearch.v2.ItemSource` + :param items: 检查结果列表,仅在条件检查时包含该字段。 + :type items: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`] + :param check_info: + :type check_info: :class:`huaweicloudsdkimagesearch.v2.CheckInfo` + """ + + + + self._existed = None + self._item_info = None + self._items = None + self._check_info = None + self.discriminator = None + + if existed is not None: + self.existed = existed + if item_info is not None: + self.item_info = item_info + if items is not None: + self.items = items + if check_info is not None: + self.check_info = check_info + + @property + def existed(self): + """Gets the existed of this CheckRestInfo. + + 数据是否存在,存在返回true,不存在返回false。仅在指定ID检查时包含该字段。 + + :return: The existed of this CheckRestInfo. + :rtype: bool + """ + return self._existed + + @existed.setter + def existed(self, existed): + """Sets the existed of this CheckRestInfo. + + 数据是否存在,存在返回true,不存在返回false。仅在指定ID检查时包含该字段。 + + :param existed: The existed of this CheckRestInfo. + :type existed: bool + """ + self._existed = existed + + @property + def item_info(self): + """Gets the item_info of this CheckRestInfo. + + :return: The item_info of this CheckRestInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.ItemSource` + """ + return self._item_info + + @item_info.setter + def item_info(self, item_info): + """Sets the item_info of this CheckRestInfo. + + :param item_info: The item_info of this CheckRestInfo. + :type item_info: :class:`huaweicloudsdkimagesearch.v2.ItemSource` + """ + self._item_info = item_info + + @property + def items(self): + """Gets the items of this CheckRestInfo. + + 检查结果列表,仅在条件检查时包含该字段。 + + :return: The items of this CheckRestInfo. + :rtype: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this CheckRestInfo. + + 检查结果列表,仅在条件检查时包含该字段。 + + :param items: The items of this CheckRestInfo. + :type items: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`] + """ + self._items = items + + @property + def check_info(self): + """Gets the check_info of this CheckRestInfo. + + :return: The check_info of this CheckRestInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckInfo` + """ + return self._check_info + + @check_info.setter + def check_info(self, check_info): + """Sets the check_info of this CheckRestInfo. + + :param check_info: The check_info of this CheckRestInfo. + :type check_info: :class:`huaweicloudsdkimagesearch.v2.CheckInfo` + """ + self._check_info = check_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CheckRestInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_info.py new file mode 100755 index 000000000..883d2d489 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_info.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_num': 'float', + 'delete_num': 'float' + } + + attribute_map = { + 'total_num': 'total_num', + 'delete_num': 'delete_num' + } + + def __init__(self, total_num=None, delete_num=None): + """DeleteInfo + + The model defined in huaweicloud sdk + + :param total_num: 符合条件的结果总数。 + :type total_num: float + :param delete_num: 本次删除的结果总数,目前一次请求最多删除100条结果。 + :type delete_num: float + """ + + + + self._total_num = None + self._delete_num = None + self.discriminator = None + + if total_num is not None: + self.total_num = total_num + if delete_num is not None: + self.delete_num = delete_num + + @property + def total_num(self): + """Gets the total_num of this DeleteInfo. + + 符合条件的结果总数。 + + :return: The total_num of this DeleteInfo. + :rtype: float + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this DeleteInfo. + + 符合条件的结果总数。 + + :param total_num: The total_num of this DeleteInfo. + :type total_num: float + """ + self._total_num = total_num + + @property + def delete_num(self): + """Gets the delete_num of this DeleteInfo. + + 本次删除的结果总数,目前一次请求最多删除100条结果。 + + :return: The delete_num of this DeleteInfo. + :rtype: float + """ + return self._delete_num + + @delete_num.setter + def delete_num(self, delete_num): + """Sets the delete_num of this DeleteInfo. + + 本次删除的结果总数,目前一次请求最多删除100条结果。 + + :param delete_num: The delete_num of this DeleteInfo. + :type delete_num: float + """ + self._delete_num = delete_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_param.py new file mode 100755 index 000000000..7901ed3ba --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_param.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'force': 'bool', + 'item_id': 'str', + 'custom_tags': 'dict(str, list[str])', + 'custom_num_tags': 'dict(str, RangeParam)' + } + + attribute_map = { + 'force': 'force', + 'item_id': 'item_id', + 'custom_tags': 'custom_tags', + 'custom_num_tags': 'custom_num_tags' + } + + def __init__(self, force=None, item_id=None, custom_tags=None, custom_num_tags=None): + """DeleteParam + + The model defined in huaweicloud sdk + + :param force: 是否幂等删除数据,默认为false。仅对指定ID删除生效。 - false: 数据不存在时返回错误信息。 - true: 数据不存在时返回成功,用于幂等删除场景。 + :type force: bool + :param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID删除或条件删除。 - 如给定item_id参数,则进行指定ID删除,否则进行条件删除。 + :type item_id: str + :param custom_tags: 自定义字符标签,用于对服务实例中的数据进行custom_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + :type custom_tags: dict(str, list[str]) + :param custom_num_tags: 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + :type custom_num_tags: dict(str, RangeParam) + """ + + + + self._force = None + self._item_id = None + self._custom_tags = None + self._custom_num_tags = None + self.discriminator = None + + if force is not None: + self.force = force + if item_id is not None: + self.item_id = item_id + if custom_tags is not None: + self.custom_tags = custom_tags + if custom_num_tags is not None: + self.custom_num_tags = custom_num_tags + + @property + def force(self): + """Gets the force of this DeleteParam. + + 是否幂等删除数据,默认为false。仅对指定ID删除生效。 - false: 数据不存在时返回错误信息。 - true: 数据不存在时返回成功,用于幂等删除场景。 + + :return: The force of this DeleteParam. + :rtype: bool + """ + return self._force + + @force.setter + def force(self, force): + """Sets the force of this DeleteParam. + + 是否幂等删除数据,默认为false。仅对指定ID删除生效。 - false: 数据不存在时返回错误信息。 - true: 数据不存在时返回成功,用于幂等删除场景。 + + :param force: The force of this DeleteParam. + :type force: bool + """ + self._force = force + + @property + def item_id(self): + """Gets the item_id of this DeleteParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID删除或条件删除。 - 如给定item_id参数,则进行指定ID删除,否则进行条件删除。 + + :return: The item_id of this DeleteParam. + :rtype: str + """ + return self._item_id + + @item_id.setter + def item_id(self, item_id): + """Sets the item_id of this DeleteParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID删除或条件删除。 - 如给定item_id参数,则进行指定ID删除,否则进行条件删除。 + + :param item_id: The item_id of this DeleteParam. + :type item_id: str + """ + self._item_id = item_id + + @property + def custom_tags(self): + """Gets the custom_tags of this DeleteParam. + + 自定义字符标签,用于对服务实例中的数据进行custom_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + + :return: The custom_tags of this DeleteParam. + :rtype: dict(str, list[str]) + """ + return self._custom_tags + + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this DeleteParam. + + 自定义字符标签,用于对服务实例中的数据进行custom_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + + :param custom_tags: The custom_tags of this DeleteParam. + :type custom_tags: dict(str, list[str]) + """ + self._custom_tags = custom_tags + + @property + def custom_num_tags(self): + """Gets the custom_num_tags of this DeleteParam. + + 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + + :return: The custom_num_tags of this DeleteParam. + :rtype: dict(str, RangeParam) + """ + return self._custom_num_tags + + @custom_num_tags.setter + def custom_num_tags(self, custom_num_tags): + """Sets the custom_num_tags of this DeleteParam. + + 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + + :param custom_num_tags: The custom_num_tags of this DeleteParam. + :type custom_num_tags: dict(str, RangeParam) + """ + self._custom_num_tags = custom_num_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, DeleteParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info.py new file mode 100755 index 000000000..0ce5f7384 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRestInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'items': 'list[DeleteRestInfoItems]', + 'delete_info': 'DeleteInfo' + } + + attribute_map = { + 'items': 'items', + 'delete_info': 'delete_info' + } + + def __init__(self, items=None, delete_info=None): + """DeleteRestInfo + + The model defined in huaweicloud sdk + + :param items: 删除数据列表。 + :type items: list[:class:`huaweicloudsdkimagesearch.v2.DeleteRestInfoItems`] + :param delete_info: + :type delete_info: :class:`huaweicloudsdkimagesearch.v2.DeleteInfo` + """ + + + + self._items = None + self._delete_info = None + self.discriminator = None + + if items is not None: + self.items = items + if delete_info is not None: + self.delete_info = delete_info + + @property + def items(self): + """Gets the items of this DeleteRestInfo. + + 删除数据列表。 + + :return: The items of this DeleteRestInfo. + :rtype: list[:class:`huaweicloudsdkimagesearch.v2.DeleteRestInfoItems`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this DeleteRestInfo. + + 删除数据列表。 + + :param items: The items of this DeleteRestInfo. + :type items: list[:class:`huaweicloudsdkimagesearch.v2.DeleteRestInfoItems`] + """ + self._items = items + + @property + def delete_info(self): + """Gets the delete_info of this DeleteRestInfo. + + :return: The delete_info of this DeleteRestInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteInfo` + """ + return self._delete_info + + @delete_info.setter + def delete_info(self, delete_info): + """Sets the delete_info of this DeleteRestInfo. + + :param delete_info: The delete_info of this DeleteRestInfo. + :type delete_info: :class:`huaweicloudsdkimagesearch.v2.DeleteInfo` + """ + self._delete_info = delete_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteRestInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_request_body.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py similarity index 73% rename from huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_request_body.py rename to huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py index 3a160b153..31822a9d7 100755 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/independent_request_body.py +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class IndependentRequestBody: +class DeleteRestInfoItems: """ Attributes: @@ -20,46 +20,51 @@ class IndependentRequestBody: sensitive_list = [] openapi_types = { - 'type': 'IndependentReq' + 'id': 'str' } attribute_map = { - 'type': 'type' + 'id': 'id' } - def __init__(self, type=None): - """IndependentRequestBody + def __init__(self, id=None): + """DeleteRestInfoItems The model defined in huaweicloud sdk - :param type: - :type type: :class:`huaweicloudsdkcss.v1.IndependentReq` + :param id: 数据唯一ID。 + :type id: str """ - self._type = None + self._id = None self.discriminator = None - self.type = type + if id is not None: + self.id = id @property - def type(self): - """Gets the type of this IndependentRequestBody. + def id(self): + """Gets the id of this DeleteRestInfoItems. - :return: The type of this IndependentRequestBody. - :rtype: :class:`huaweicloudsdkcss.v1.IndependentReq` + 数据唯一ID。 + + :return: The id of this DeleteRestInfoItems. + :rtype: str """ - return self._type + return self._id - @type.setter - def type(self, type): - """Sets the type of this IndependentRequestBody. + @id.setter + def id(self, id): + """Sets the id of this DeleteRestInfoItems. - :param type: The type of this IndependentRequestBody. - :type type: :class:`huaweicloudsdkcss.v1.IndependentReq` + 数据唯一ID。 + + :param id: The id of this DeleteRestInfoItems. + :type id: str """ - self._type = type + self._id = id def to_dict(self): """Returns the model properties as a dict""" @@ -103,7 +108,7 @@ class IndependentRequestBody: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, IndependentRequestBody): + if not isinstance(other, DeleteRestInfoItems): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/item_source.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/item_source.py new file mode 100755 index 000000000..076006564 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/item_source.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ItemSource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'desc': 'str', + 'custom_tags': 'dict(str, str)', + 'custom_num_tags': 'dict(str, float)', + 'keywords': 'list[str]' + } + + attribute_map = { + 'desc': 'desc', + 'custom_tags': 'custom_tags', + 'custom_num_tags': 'custom_num_tags', + 'keywords': 'keywords' + } + + def __init__(self, desc=None, custom_tags=None, custom_num_tags=None, keywords=None): + """ItemSource + + The model defined in huaweicloud sdk + + :param desc: 数据描述信息。 + :type desc: str + :param custom_tags: 数据自定义字符标签。 + :type custom_tags: dict(str, str) + :param custom_num_tags: 数据自定义数值标签。 + :type custom_num_tags: dict(str, float) + :param keywords: 数据关键词列表。 + :type keywords: list[str] + """ + + + + self._desc = None + self._custom_tags = None + self._custom_num_tags = None + self._keywords = None + self.discriminator = None + + if desc is not None: + self.desc = desc + if custom_tags is not None: + self.custom_tags = custom_tags + if custom_num_tags is not None: + self.custom_num_tags = custom_num_tags + if keywords is not None: + self.keywords = keywords + + @property + def desc(self): + """Gets the desc of this ItemSource. + + 数据描述信息。 + + :return: The desc of this ItemSource. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this ItemSource. + + 数据描述信息。 + + :param desc: The desc of this ItemSource. + :type desc: str + """ + self._desc = desc + + @property + def custom_tags(self): + """Gets the custom_tags of this ItemSource. + + 数据自定义字符标签。 + + :return: The custom_tags of this ItemSource. + :rtype: dict(str, str) + """ + return self._custom_tags + + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this ItemSource. + + 数据自定义字符标签。 + + :param custom_tags: The custom_tags of this ItemSource. + :type custom_tags: dict(str, str) + """ + self._custom_tags = custom_tags + + @property + def custom_num_tags(self): + """Gets the custom_num_tags of this ItemSource. + + 数据自定义数值标签。 + + :return: The custom_num_tags of this ItemSource. + :rtype: dict(str, float) + """ + return self._custom_num_tags + + @custom_num_tags.setter + def custom_num_tags(self, custom_num_tags): + """Sets the custom_num_tags of this ItemSource. + + 数据自定义数值标签。 + + :param custom_num_tags: The custom_num_tags of this ItemSource. + :type custom_num_tags: dict(str, float) + """ + self._custom_num_tags = custom_num_tags + + @property + def keywords(self): + """Gets the keywords of this ItemSource. + + 数据关键词列表。 + + :return: The keywords of this ItemSource. + :rtype: list[str] + """ + return self._keywords + + @keywords.setter + def keywords(self, keywords): + """Sets the keywords of this ItemSource. + + 数据关键词列表。 + + :param keywords: The keywords of this ItemSource. + :type keywords: list[str] + """ + self._keywords = keywords + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ItemSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/range_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/range_param.py new file mode 100755 index 000000000..93c017475 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/range_param.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RangeParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + '_from': 'float', + 'to': 'float' + } + + attribute_map = { + '_from': 'from', + 'to': 'to' + } + + def __init__(self, _from=None, to=None): + """RangeParam + + The model defined in huaweicloud sdk + + :param _from: 数值下界,默认包含该下界。 + :type _from: float + :param to: 数值上界,默认包含该上界。 + :type to: float + """ + + + + self.__from = None + self._to = None + self.discriminator = None + + if _from is not None: + self._from = _from + if to is not None: + self.to = to + + @property + def _from(self): + """Gets the _from of this RangeParam. + + 数值下界,默认包含该下界。 + + :return: The _from of this RangeParam. + :rtype: float + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this RangeParam. + + 数值下界,默认包含该下界。 + + :param _from: The _from of this RangeParam. + :type _from: float + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this RangeParam. + + 数值上界,默认包含该上界。 + + :return: The to of this RangeParam. + :rtype: float + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this RangeParam. + + 数值上界,默认包含该上界。 + + :param to: The to of this RangeParam. + :type to: float + """ + self._to = to + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RangeParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_request.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_request.py similarity index 62% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_request.py rename to huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_request.py index a154e1d71..5587c6776 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_request.py +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunModifyPictureRequest: +class RunAddDataRequest: """ Attributes: @@ -20,73 +20,73 @@ class RunModifyPictureRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str', - 'body': 'RunModifyPictureReq' + 'service_name': 'str', + 'body': 'AddDataParam' } attribute_map = { - 'instance_name': 'instance_name', + 'service_name': 'service_name', 'body': 'body' } - def __init__(self, instance_name=None, body=None): - """RunModifyPictureRequest + def __init__(self, service_name=None, body=None): + """RunAddDataRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str - :param body: Body of the RunModifyPictureRequest - :type body: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureReq` + :param service_name: 服务实例的名称,用户创建服务实例时指定。 + :type service_name: str + :param body: Body of the RunAddDataRequest + :type body: :class:`huaweicloudsdkimagesearch.v2.AddDataParam` """ - self._instance_name = None + self._service_name = None self._body = None self.discriminator = None - self.instance_name = instance_name + self.service_name = service_name if body is not None: self.body = body @property - def instance_name(self): - """Gets the instance_name of this RunModifyPictureRequest. + def service_name(self): + """Gets the service_name of this RunAddDataRequest. - 实例名称。 + 服务实例的名称,用户创建服务实例时指定。 - :return: The instance_name of this RunModifyPictureRequest. + :return: The service_name of this RunAddDataRequest. :rtype: str """ - return self._instance_name + return self._service_name - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunModifyPictureRequest. + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this RunAddDataRequest. - 实例名称。 + 服务实例的名称,用户创建服务实例时指定。 - :param instance_name: The instance_name of this RunModifyPictureRequest. - :type instance_name: str + :param service_name: The service_name of this RunAddDataRequest. + :type service_name: str """ - self._instance_name = instance_name + self._service_name = service_name @property def body(self): - """Gets the body of this RunModifyPictureRequest. + """Gets the body of this RunAddDataRequest. - :return: The body of this RunModifyPictureRequest. - :rtype: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureReq` + :return: The body of this RunAddDataRequest. + :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataParam` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunModifyPictureRequest. + """Sets the body of this RunAddDataRequest. - :param body: The body of this RunModifyPictureRequest. - :type body: :class:`huaweicloudsdkimagesearch.v1.RunModifyPictureReq` + :param body: The body of this RunAddDataRequest. + :type body: :class:`huaweicloudsdkimagesearch.v2.AddDataParam` """ self._body = body @@ -132,7 +132,7 @@ class RunModifyPictureRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunModifyPictureRequest): + if not isinstance(other, RunAddDataRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_response.py new file mode 100755 index 000000000..417502ba0 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_add_data_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunAddDataResponse(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': 'str', + 'data': 'AddDataRestInfo' + } + + attribute_map = { + 'result': 'result', + 'data': 'data' + } + + def __init__(self, result=None, data=None): + """RunAddDataResponse + + The model defined in huaweicloud sdk + + :param result: 添加数据完成返回success。 + :type result: str + :param data: + :type data: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo` + """ + + super(RunAddDataResponse, self).__init__() + + self._result = None + self._data = None + self.discriminator = None + + if result is not None: + self.result = result + if data is not None: + self.data = data + + @property + def result(self): + """Gets the result of this RunAddDataResponse. + + 添加数据完成返回success。 + + :return: The result of this RunAddDataResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this RunAddDataResponse. + + 添加数据完成返回success。 + + :param result: The result of this RunAddDataResponse. + :type result: str + """ + self._result = result + + @property + def data(self): + """Gets the data of this RunAddDataResponse. + + :return: The data of this RunAddDataResponse. + :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RunAddDataResponse. + + :param data: The data of this RunAddDataResponse. + :type data: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo` + """ + 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, RunAddDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_request.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_request.py new file mode 100755 index 000000000..0b8e07a4a --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunCheckDataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'service_name': 'str', + 'body': 'CheckParam' + } + + attribute_map = { + 'service_name': 'service_name', + 'body': 'body' + } + + def __init__(self, service_name=None, body=None): + """RunCheckDataRequest + + The model defined in huaweicloud sdk + + :param service_name: 服务实例的名称,用户创建服务实例时指定。 + :type service_name: str + :param body: Body of the RunCheckDataRequest + :type body: :class:`huaweicloudsdkimagesearch.v2.CheckParam` + """ + + + + self._service_name = None + self._body = None + self.discriminator = None + + self.service_name = service_name + if body is not None: + self.body = body + + @property + def service_name(self): + """Gets the service_name of this RunCheckDataRequest. + + 服务实例的名称,用户创建服务实例时指定。 + + :return: The service_name of this RunCheckDataRequest. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this RunCheckDataRequest. + + 服务实例的名称,用户创建服务实例时指定。 + + :param service_name: The service_name of this RunCheckDataRequest. + :type service_name: str + """ + self._service_name = service_name + + @property + def body(self): + """Gets the body of this RunCheckDataRequest. + + :return: The body of this RunCheckDataRequest. + :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckParam` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunCheckDataRequest. + + :param body: The body of this RunCheckDataRequest. + :type body: :class:`huaweicloudsdkimagesearch.v2.CheckParam` + """ + 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, RunCheckDataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_response.py new file mode 100755 index 000000000..6cffe3dc1 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_check_data_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunCheckDataResponse(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': 'str', + 'data': 'CheckRestInfo' + } + + attribute_map = { + 'result': 'result', + 'data': 'data' + } + + def __init__(self, result=None, data=None): + """RunCheckDataResponse + + The model defined in huaweicloud sdk + + :param result: 检查数据完成返回success。 + :type result: str + :param data: + :type data: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo` + """ + + super(RunCheckDataResponse, self).__init__() + + self._result = None + self._data = None + self.discriminator = None + + if result is not None: + self.result = result + if data is not None: + self.data = data + + @property + def result(self): + """Gets the result of this RunCheckDataResponse. + + 检查数据完成返回success。 + + :return: The result of this RunCheckDataResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this RunCheckDataResponse. + + 检查数据完成返回success。 + + :param result: The result of this RunCheckDataResponse. + :type result: str + """ + self._result = result + + @property + def data(self): + """Gets the data of this RunCheckDataResponse. + + :return: The data of this RunCheckDataResponse. + :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RunCheckDataResponse. + + :param data: The data of this RunCheckDataResponse. + :type data: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo` + """ + 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, RunCheckDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py new file mode 100755 index 000000000..7168e2972 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunDeleteDataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'service_name': 'str', + 'body': 'DeleteParam' + } + + attribute_map = { + 'service_name': 'service_name', + 'body': 'body' + } + + def __init__(self, service_name=None, body=None): + """RunDeleteDataRequest + + The model defined in huaweicloud sdk + + :param service_name: 服务实例的名称,用户创建服务实例时指定。 + :type service_name: str + :param body: Body of the RunDeleteDataRequest + :type body: :class:`huaweicloudsdkimagesearch.v2.DeleteParam` + """ + + + + self._service_name = None + self._body = None + self.discriminator = None + + self.service_name = service_name + if body is not None: + self.body = body + + @property + def service_name(self): + """Gets the service_name of this RunDeleteDataRequest. + + 服务实例的名称,用户创建服务实例时指定。 + + :return: The service_name of this RunDeleteDataRequest. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this RunDeleteDataRequest. + + 服务实例的名称,用户创建服务实例时指定。 + + :param service_name: The service_name of this RunDeleteDataRequest. + :type service_name: str + """ + self._service_name = service_name + + @property + def body(self): + """Gets the body of this RunDeleteDataRequest. + + :return: The body of this RunDeleteDataRequest. + :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteParam` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunDeleteDataRequest. + + :param body: The body of this RunDeleteDataRequest. + :type body: :class:`huaweicloudsdkimagesearch.v2.DeleteParam` + """ + 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, RunDeleteDataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py new file mode 100755 index 000000000..10de426e4 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunDeleteDataResponse(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': 'str', + 'data': 'DeleteRestInfo' + } + + attribute_map = { + 'result': 'result', + 'data': 'data' + } + + def __init__(self, result=None, data=None): + """RunDeleteDataResponse + + The model defined in huaweicloud sdk + + :param result: 删除数据完成返回success。 + :type result: str + :param data: + :type data: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo` + """ + + super(RunDeleteDataResponse, self).__init__() + + self._result = None + self._data = None + self.discriminator = None + + if result is not None: + self.result = result + if data is not None: + self.data = data + + @property + def result(self): + """Gets the result of this RunDeleteDataResponse. + + 删除数据完成返回success。 + + :return: The result of this RunDeleteDataResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this RunDeleteDataResponse. + + 删除数据完成返回success。 + + :param result: The result of this RunDeleteDataResponse. + :type result: str + """ + self._result = result + + @property + def data(self): + """Gets the data of this RunDeleteDataResponse. + + :return: The data of this RunDeleteDataResponse. + :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RunDeleteDataResponse. + + :param data: The data of this RunDeleteDataResponse. + :type data: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo` + """ + 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, RunDeleteDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_request.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_request.py similarity index 62% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_request.py rename to huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_request.py index 04a13891e..000026de3 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_request.py +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunSearchPictureRequest: +class RunSearchRequest: """ Attributes: @@ -20,73 +20,73 @@ class RunSearchPictureRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str', - 'body': 'SearchPictureReq' + 'service_name': 'str', + 'body': 'SearchParam' } attribute_map = { - 'instance_name': 'instance_name', + 'service_name': 'service_name', 'body': 'body' } - def __init__(self, instance_name=None, body=None): - """RunSearchPictureRequest + def __init__(self, service_name=None, body=None): + """RunSearchRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str - :param body: Body of the RunSearchPictureRequest - :type body: :class:`huaweicloudsdkimagesearch.v1.SearchPictureReq` + :param service_name: 服务实例的名称,用户创建服务实例时指定。 + :type service_name: str + :param body: Body of the RunSearchRequest + :type body: :class:`huaweicloudsdkimagesearch.v2.SearchParam` """ - self._instance_name = None + self._service_name = None self._body = None self.discriminator = None - self.instance_name = instance_name + self.service_name = service_name if body is not None: self.body = body @property - def instance_name(self): - """Gets the instance_name of this RunSearchPictureRequest. + def service_name(self): + """Gets the service_name of this RunSearchRequest. - 实例名称。 + 服务实例的名称,用户创建服务实例时指定。 - :return: The instance_name of this RunSearchPictureRequest. + :return: The service_name of this RunSearchRequest. :rtype: str """ - return self._instance_name + return self._service_name - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunSearchPictureRequest. + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this RunSearchRequest. - 实例名称。 + 服务实例的名称,用户创建服务实例时指定。 - :param instance_name: The instance_name of this RunSearchPictureRequest. - :type instance_name: str + :param service_name: The service_name of this RunSearchRequest. + :type service_name: str """ - self._instance_name = instance_name + self._service_name = service_name @property def body(self): - """Gets the body of this RunSearchPictureRequest. + """Gets the body of this RunSearchRequest. - :return: The body of this RunSearchPictureRequest. - :rtype: :class:`huaweicloudsdkimagesearch.v1.SearchPictureReq` + :return: The body of this RunSearchRequest. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchParam` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunSearchPictureRequest. + """Sets the body of this RunSearchRequest. - :param body: The body of this RunSearchPictureRequest. - :type body: :class:`huaweicloudsdkimagesearch.v1.SearchPictureReq` + :param body: The body of this RunSearchRequest. + :type body: :class:`huaweicloudsdkimagesearch.v2.SearchParam` """ self._body = body @@ -132,7 +132,7 @@ class RunSearchPictureRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunSearchPictureRequest): + if not isinstance(other, RunSearchRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_response.py new file mode 100755 index 000000000..df1a8dc9d --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_search_response.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunSearchResponse(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': 'str', + 'data': 'SearchRestInfo' + } + + attribute_map = { + 'result': 'result', + 'data': 'data' + } + + def __init__(self, result=None, data=None): + """RunSearchResponse + + The model defined in huaweicloud sdk + + :param result: 搜索完成返回success。 + :type result: str + :param data: + :type data: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfo` + """ + + super(RunSearchResponse, self).__init__() + + self._result = None + self._data = None + self.discriminator = None + + if result is not None: + self.result = result + if data is not None: + self.data = data + + @property + def result(self): + """Gets the result of this RunSearchResponse. + + 搜索完成返回success。 + + :return: The result of this RunSearchResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this RunSearchResponse. + + 搜索完成返回success。 + + :param result: The result of this RunSearchResponse. + :type result: str + """ + self._result = result + + @property + def data(self): + """Gets the data of this RunSearchResponse. + + :return: The data of this RunSearchResponse. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfo` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this RunSearchResponse. + + :param data: The data of this RunSearchResponse. + :type data: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfo` + """ + 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, RunSearchResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_request.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_request.py new file mode 100755 index 000000000..dc6098f96 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunUpdateDataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'service_name': 'str', + 'body': 'UpdateParam' + } + + attribute_map = { + 'service_name': 'service_name', + 'body': 'body' + } + + def __init__(self, service_name=None, body=None): + """RunUpdateDataRequest + + The model defined in huaweicloud sdk + + :param service_name: 服务实例的名称,用户创建服务实例时指定。 + :type service_name: str + :param body: Body of the RunUpdateDataRequest + :type body: :class:`huaweicloudsdkimagesearch.v2.UpdateParam` + """ + + + + self._service_name = None + self._body = None + self.discriminator = None + + self.service_name = service_name + if body is not None: + self.body = body + + @property + def service_name(self): + """Gets the service_name of this RunUpdateDataRequest. + + 服务实例的名称,用户创建服务实例时指定。 + + :return: The service_name of this RunUpdateDataRequest. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this RunUpdateDataRequest. + + 服务实例的名称,用户创建服务实例时指定。 + + :param service_name: The service_name of this RunUpdateDataRequest. + :type service_name: str + """ + self._service_name = service_name + + @property + def body(self): + """Gets the body of this RunUpdateDataRequest. + + :return: The body of this RunUpdateDataRequest. + :rtype: :class:`huaweicloudsdkimagesearch.v2.UpdateParam` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunUpdateDataRequest. + + :param body: The body of this RunUpdateDataRequest. + :type body: :class:`huaweicloudsdkimagesearch.v2.UpdateParam` + """ + 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, RunUpdateDataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_response.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_response.py similarity index 79% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_response.py rename to huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_response.py index b8a41a85e..24b59bd89 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_response.py +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/run_update_data_response.py @@ -8,7 +8,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunAddPictureResponse(SdkResponse): +class RunUpdateDataResponse(SdkResponse): """ Attributes: @@ -28,15 +28,15 @@ class RunAddPictureResponse(SdkResponse): } def __init__(self, result=None): - """RunAddPictureResponse + """RunUpdateDataResponse The model defined in huaweicloud sdk - :param result: 调用成功时表示调用结果。 调用失败时无此字段。 + :param result: 更新数据完成返回success。 :type result: str """ - super(RunAddPictureResponse, self).__init__() + super(RunUpdateDataResponse, self).__init__() self._result = None self.discriminator = None @@ -46,22 +46,22 @@ class RunAddPictureResponse(SdkResponse): @property def result(self): - """Gets the result of this RunAddPictureResponse. + """Gets the result of this RunUpdateDataResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 更新数据完成返回success。 - :return: The result of this RunAddPictureResponse. + :return: The result of this RunUpdateDataResponse. :rtype: str """ return self._result @result.setter def result(self, result): - """Sets the result of this RunAddPictureResponse. + """Sets the result of this RunUpdateDataResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 更新数据完成返回success。 - :param result: The result of this RunAddPictureResponse. + :param result: The result of this RunUpdateDataResponse. :type result: str """ self._result = result @@ -108,7 +108,7 @@ class RunAddPictureResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunAddPictureResponse): + if not isinstance(other, RunUpdateDataResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_after_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_after_param.py new file mode 100755 index 000000000..1d9326b1b --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_after_param.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchAfterParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'score': 'float', + 'id': 'str' + } + + attribute_map = { + 'score': 'score', + 'id': 'id' + } + + def __init__(self, score=None, id=None): + """SearchAfterParam + + The model defined in huaweicloud sdk + + :param score: 结果的得分。 + :type score: float + :param id: 结果的唯一ID。 + :type id: str + """ + + + + self._score = None + self._id = None + self.discriminator = None + + if score is not None: + self.score = score + if id is not None: + self.id = id + + @property + def score(self): + """Gets the score of this SearchAfterParam. + + 结果的得分。 + + :return: The score of this SearchAfterParam. + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this SearchAfterParam. + + 结果的得分。 + + :param score: The score of this SearchAfterParam. + :type score: float + """ + self._score = score + + @property + def id(self): + """Gets the id of this SearchAfterParam. + + 结果的唯一ID。 + + :return: The id of this SearchAfterParam. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SearchAfterParam. + + 结果的唯一ID。 + + :param id: The id of this SearchAfterParam. + :type id: str + """ + self._id = 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, SearchAfterParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_info.py new file mode 100755 index 000000000..a328b8004 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_info.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_num': 'float', + 'return_num': 'float', + 'search_time': 'float', + 'last_item': 'SearchAfterParam' + } + + attribute_map = { + 'total_num': 'total_num', + 'return_num': 'return_num', + 'search_time': 'search_time', + 'last_item': 'last_item' + } + + def __init__(self, total_num=None, return_num=None, search_time=None, last_item=None): + """SearchInfo + + The model defined in huaweicloud sdk + + :param total_num: 搜索结果总数。 + :type total_num: float + :param return_num: 返回结果总数。 + :type return_num: float + :param search_time: 搜索过程耗时,单位为毫秒。 + :type search_time: float + :param last_item: + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + + + + self._total_num = None + self._return_num = None + self._search_time = None + self._last_item = None + self.discriminator = None + + if total_num is not None: + self.total_num = total_num + if return_num is not None: + self.return_num = return_num + if search_time is not None: + self.search_time = search_time + if last_item is not None: + self.last_item = last_item + + @property + def total_num(self): + """Gets the total_num of this SearchInfo. + + 搜索结果总数。 + + :return: The total_num of this SearchInfo. + :rtype: float + """ + return self._total_num + + @total_num.setter + def total_num(self, total_num): + """Sets the total_num of this SearchInfo. + + 搜索结果总数。 + + :param total_num: The total_num of this SearchInfo. + :type total_num: float + """ + self._total_num = total_num + + @property + def return_num(self): + """Gets the return_num of this SearchInfo. + + 返回结果总数。 + + :return: The return_num of this SearchInfo. + :rtype: float + """ + return self._return_num + + @return_num.setter + def return_num(self, return_num): + """Sets the return_num of this SearchInfo. + + 返回结果总数。 + + :param return_num: The return_num of this SearchInfo. + :type return_num: float + """ + self._return_num = return_num + + @property + def search_time(self): + """Gets the search_time of this SearchInfo. + + 搜索过程耗时,单位为毫秒。 + + :return: The search_time of this SearchInfo. + :rtype: float + """ + return self._search_time + + @search_time.setter + def search_time(self, search_time): + """Sets the search_time of this SearchInfo. + + 搜索过程耗时,单位为毫秒。 + + :param search_time: The search_time of this SearchInfo. + :type search_time: float + """ + self._search_time = search_time + + @property + def last_item(self): + """Gets the last_item of this SearchInfo. + + :return: The last_item of this SearchInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + return self._last_item + + @last_item.setter + def last_item(self, last_item): + """Sets the last_item of this SearchInfo. + + :param last_item: The last_item of this SearchInfo. + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + self._last_item = last_item + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_item.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_item.py new file mode 100755 index 000000000..836482015 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_item.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'score': 'float', + 'source': 'ItemSource' + } + + attribute_map = { + 'id': 'id', + 'score': 'score', + 'source': 'source' + } + + def __init__(self, id=None, score=None, source=None): + """SearchItem + + The model defined in huaweicloud sdk + + :param id: 数据唯一ID。 + :type id: str + :param score: 数据匹配分数。 + :type score: float + :param source: + :type source: :class:`huaweicloudsdkimagesearch.v2.ItemSource` + """ + + + + self._id = None + self._score = None + self._source = None + self.discriminator = None + + if id is not None: + self.id = id + if score is not None: + self.score = score + if source is not None: + self.source = source + + @property + def id(self): + """Gets the id of this SearchItem. + + 数据唯一ID。 + + :return: The id of this SearchItem. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SearchItem. + + 数据唯一ID。 + + :param id: The id of this SearchItem. + :type id: str + """ + self._id = id + + @property + def score(self): + """Gets the score of this SearchItem. + + 数据匹配分数。 + + :return: The score of this SearchItem. + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this SearchItem. + + 数据匹配分数。 + + :param score: The score of this SearchItem. + :type score: float + """ + self._score = score + + @property + def source(self): + """Gets the source of this SearchItem. + + :return: The source of this SearchItem. + :rtype: :class:`huaweicloudsdkimagesearch.v2.ItemSource` + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this SearchItem. + + :param source: The source of this SearchItem. + :type source: :class:`huaweicloudsdkimagesearch.v2.ItemSource` + """ + self._source = source + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_optional_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_optional_param.py new file mode 100755 index 000000000..07cc924e0 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_optional_param.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchOptionalParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'do_det': 'bool', + 'box': 'str', + 'do_cls': 'bool', + 'category': 'float', + 'collapse_key': 'str' + } + + attribute_map = { + 'do_det': 'do_det', + 'box': 'box', + 'do_cls': 'do_cls', + 'category': 'category', + 'collapse_key': 'collapse_key' + } + + def __init__(self, do_det=None, box=None, do_cls=None, category=None, collapse_key=None): + """SearchOptionalParam + + The model defined in huaweicloud sdk + + :param do_det: 是否进行目标检测,默认为true。 + :type do_det: bool + :param box: 目标矩形框坐标,如给定则不进行目标检测,直接使用该box作为目标。格式为“x1,y1,x2,y2”(无空格),x1/y1为目标左上角坐标,x2/y2为目标右下角坐标,具体要求如下: - 0 <= x1 < x2 <= width,默认要求x2-x1 >= 15,具体可参考服务类型说明。 - 0 <= y1 < y2 <= height,默认要求y2-y1 >= 15,具体可参考服务类型说明。 + :type box: str + :param do_cls: 是否进行对象分类,默认为true。 + :type do_cls: bool + :param category: 对象类目,如给定则不进行对象分类,直接使用该category作为类目。具体类目信息可参见对应的服务类型说明。 + :type category: float + :param collapse_key: 去重标签名,必须为服务实例custom_tags中已存在的key。 - 如给定则会对该key下相同value的数据进行去重,仅保留得分最高的数据。 - 针对没有设置该标签的数据,会直接过滤。 + :type collapse_key: str + """ + + + + self._do_det = None + self._box = None + self._do_cls = None + self._category = None + self._collapse_key = None + self.discriminator = None + + if do_det is not None: + self.do_det = do_det + if box is not None: + self.box = box + if do_cls is not None: + self.do_cls = do_cls + if category is not None: + self.category = category + if collapse_key is not None: + self.collapse_key = collapse_key + + @property + def do_det(self): + """Gets the do_det of this SearchOptionalParam. + + 是否进行目标检测,默认为true。 + + :return: The do_det of this SearchOptionalParam. + :rtype: bool + """ + return self._do_det + + @do_det.setter + def do_det(self, do_det): + """Sets the do_det of this SearchOptionalParam. + + 是否进行目标检测,默认为true。 + + :param do_det: The do_det of this SearchOptionalParam. + :type do_det: bool + """ + self._do_det = do_det + + @property + def box(self): + """Gets the box of this SearchOptionalParam. + + 目标矩形框坐标,如给定则不进行目标检测,直接使用该box作为目标。格式为“x1,y1,x2,y2”(无空格),x1/y1为目标左上角坐标,x2/y2为目标右下角坐标,具体要求如下: - 0 <= x1 < x2 <= width,默认要求x2-x1 >= 15,具体可参考服务类型说明。 - 0 <= y1 < y2 <= height,默认要求y2-y1 >= 15,具体可参考服务类型说明。 + + :return: The box of this SearchOptionalParam. + :rtype: str + """ + return self._box + + @box.setter + def box(self, box): + """Sets the box of this SearchOptionalParam. + + 目标矩形框坐标,如给定则不进行目标检测,直接使用该box作为目标。格式为“x1,y1,x2,y2”(无空格),x1/y1为目标左上角坐标,x2/y2为目标右下角坐标,具体要求如下: - 0 <= x1 < x2 <= width,默认要求x2-x1 >= 15,具体可参考服务类型说明。 - 0 <= y1 < y2 <= height,默认要求y2-y1 >= 15,具体可参考服务类型说明。 + + :param box: The box of this SearchOptionalParam. + :type box: str + """ + self._box = box + + @property + def do_cls(self): + """Gets the do_cls of this SearchOptionalParam. + + 是否进行对象分类,默认为true。 + + :return: The do_cls of this SearchOptionalParam. + :rtype: bool + """ + return self._do_cls + + @do_cls.setter + def do_cls(self, do_cls): + """Sets the do_cls of this SearchOptionalParam. + + 是否进行对象分类,默认为true。 + + :param do_cls: The do_cls of this SearchOptionalParam. + :type do_cls: bool + """ + self._do_cls = do_cls + + @property + def category(self): + """Gets the category of this SearchOptionalParam. + + 对象类目,如给定则不进行对象分类,直接使用该category作为类目。具体类目信息可参见对应的服务类型说明。 + + :return: The category of this SearchOptionalParam. + :rtype: float + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this SearchOptionalParam. + + 对象类目,如给定则不进行对象分类,直接使用该category作为类目。具体类目信息可参见对应的服务类型说明。 + + :param category: The category of this SearchOptionalParam. + :type category: float + """ + self._category = category + + @property + def collapse_key(self): + """Gets the collapse_key of this SearchOptionalParam. + + 去重标签名,必须为服务实例custom_tags中已存在的key。 - 如给定则会对该key下相同value的数据进行去重,仅保留得分最高的数据。 - 针对没有设置该标签的数据,会直接过滤。 + + :return: The collapse_key of this SearchOptionalParam. + :rtype: str + """ + return self._collapse_key + + @collapse_key.setter + def collapse_key(self, collapse_key): + """Sets the collapse_key of this SearchOptionalParam. + + 去重标签名,必须为服务实例custom_tags中已存在的key。 - 如给定则会对该key下相同value的数据进行去重,仅保留得分最高的数据。 - 针对没有设置该标签的数据,会直接过滤。 + + :param collapse_key: The collapse_key of this SearchOptionalParam. + :type collapse_key: str + """ + self._collapse_key = collapse_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchOptionalParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_param.py new file mode 100755 index 000000000..0c9f01b8a --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_param.py @@ -0,0 +1,399 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'search_type': 'str', + 'limit': 'int', + 'offset': 'int', + 'last_item': 'SearchAfterParam', + 'min_score': 'float', + 'custom_tags': 'dict(str, list[str])', + 'custom_num_tags': 'dict(str, RangeParam)', + 'image_base64': 'str', + 'image_url': 'str', + 'keywords': 'list[str]', + 'optional_params': 'SearchOptionalParam' + } + + attribute_map = { + 'search_type': 'search_type', + 'limit': 'limit', + 'offset': 'offset', + 'last_item': 'last_item', + 'min_score': 'min_score', + 'custom_tags': 'custom_tags', + 'custom_num_tags': 'custom_num_tags', + 'image_base64': 'image_base64', + 'image_url': 'image_url', + 'keywords': 'keywords', + 'optional_params': 'optional_params' + } + + def __init__(self, search_type=None, limit=None, offset=None, last_item=None, min_score=None, custom_tags=None, custom_num_tags=None, image_base64=None, image_url=None, keywords=None, optional_params=None): + """SearchParam + + The model defined in huaweicloud sdk + + :param search_type: 搜索类型,必须为服务实例支持的搜索类型。服务实例的搜索类型列表可在创建服务实例时进行配置。 - 可以使用枚举名或者枚举值(例如IMAGE/0),枚举值可能会变动,建议使用枚举名。 + :type search_type: str + :param limit: 返回搜索结果的数量,默认为10,取值范围为[1, 100]。 + :type limit: int + :param offset: 返回搜索结果的偏移量,即返回序号在[offset, offset+limit]内的搜索结果。默认为0,取值范围为[0, N]。 - 默认情况下,搜索要求offset+limit <= 1000。 - 针对支持全量召回的场景,使用全量召回时要求offset==0。 + :type offset: int + :param last_item: + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + :param min_score: 返回搜索结果的最小得分,用于对搜索结果进行score过滤,取值范围为[0, 1]。 - 目前仅对IMAGE/CATEGORY搜索类型生效。 + :type min_score: float + :param custom_tags: 自定义字符标签,用于对搜索结果进行custom_tags过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + :type custom_tags: dict(str, list[str]) + :param custom_num_tags: 自定义数值标签,用于对搜索结果进行custom_num_tags过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + :type custom_num_tags: dict(str, RangeParam) + :param image_base64: 图像文件的base64字符串,基于图像搜索时,与image_url二选一。要求如下: - 格式:目前仅支持JPEG/JPG/PNG/BMP格式的图像。 - 尺寸:默认情况下,要求图像的最短边大于128px,最长边小于4096px。部分服务类型有特殊要求,可参见服务类型说明。 - 大小:图像文件大小要求不超过5M。 - 其他:图片中不能包含旋转信息。 + :type image_base64: str + :param image_url: 图像文件的服务可访问URL,字符长度范围为[1, 4096]。基于图像搜索时,与image_base64二选一。 + :type image_url: str + :param keywords: 关键词列表,搜索时关键词数量范围为[1, 10],关键词字符长度范围为[1, 64]。使用KEYWORD搜索类型进行搜索时,必须提供该参数。 + :type keywords: list[str] + :param optional_params: + :type optional_params: :class:`huaweicloudsdkimagesearch.v2.SearchOptionalParam` + """ + + + + self._search_type = None + self._limit = None + self._offset = None + self._last_item = None + self._min_score = None + self._custom_tags = None + self._custom_num_tags = None + self._image_base64 = None + self._image_url = None + self._keywords = None + self._optional_params = None + self.discriminator = None + + self.search_type = search_type + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if last_item is not None: + self.last_item = last_item + if min_score is not None: + self.min_score = min_score + if custom_tags is not None: + self.custom_tags = custom_tags + if custom_num_tags is not None: + self.custom_num_tags = custom_num_tags + if image_base64 is not None: + self.image_base64 = image_base64 + if image_url is not None: + self.image_url = image_url + if keywords is not None: + self.keywords = keywords + if optional_params is not None: + self.optional_params = optional_params + + @property + def search_type(self): + """Gets the search_type of this SearchParam. + + 搜索类型,必须为服务实例支持的搜索类型。服务实例的搜索类型列表可在创建服务实例时进行配置。 - 可以使用枚举名或者枚举值(例如IMAGE/0),枚举值可能会变动,建议使用枚举名。 + + :return: The search_type of this SearchParam. + :rtype: str + """ + return self._search_type + + @search_type.setter + def search_type(self, search_type): + """Sets the search_type of this SearchParam. + + 搜索类型,必须为服务实例支持的搜索类型。服务实例的搜索类型列表可在创建服务实例时进行配置。 - 可以使用枚举名或者枚举值(例如IMAGE/0),枚举值可能会变动,建议使用枚举名。 + + :param search_type: The search_type of this SearchParam. + :type search_type: str + """ + self._search_type = search_type + + @property + def limit(self): + """Gets the limit of this SearchParam. + + 返回搜索结果的数量,默认为10,取值范围为[1, 100]。 + + :return: The limit of this SearchParam. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this SearchParam. + + 返回搜索结果的数量,默认为10,取值范围为[1, 100]。 + + :param limit: The limit of this SearchParam. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this SearchParam. + + 返回搜索结果的偏移量,即返回序号在[offset, offset+limit]内的搜索结果。默认为0,取值范围为[0, N]。 - 默认情况下,搜索要求offset+limit <= 1000。 - 针对支持全量召回的场景,使用全量召回时要求offset==0。 + + :return: The offset of this SearchParam. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this SearchParam. + + 返回搜索结果的偏移量,即返回序号在[offset, offset+limit]内的搜索结果。默认为0,取值范围为[0, N]。 - 默认情况下,搜索要求offset+limit <= 1000。 - 针对支持全量召回的场景,使用全量召回时要求offset==0。 + + :param offset: The offset of this SearchParam. + :type offset: int + """ + self._offset = offset + + @property + def last_item(self): + """Gets the last_item of this SearchParam. + + :return: The last_item of this SearchParam. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + return self._last_item + + @last_item.setter + def last_item(self, last_item): + """Sets the last_item of this SearchParam. + + :param last_item: The last_item of this SearchParam. + :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam` + """ + self._last_item = last_item + + @property + def min_score(self): + """Gets the min_score of this SearchParam. + + 返回搜索结果的最小得分,用于对搜索结果进行score过滤,取值范围为[0, 1]。 - 目前仅对IMAGE/CATEGORY搜索类型生效。 + + :return: The min_score of this SearchParam. + :rtype: float + """ + return self._min_score + + @min_score.setter + def min_score(self, min_score): + """Sets the min_score of this SearchParam. + + 返回搜索结果的最小得分,用于对搜索结果进行score过滤,取值范围为[0, 1]。 - 目前仅对IMAGE/CATEGORY搜索类型生效。 + + :param min_score: The min_score of this SearchParam. + :type min_score: float + """ + self._min_score = min_score + + @property + def custom_tags(self): + """Gets the custom_tags of this SearchParam. + + 自定义字符标签,用于对搜索结果进行custom_tags过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + + :return: The custom_tags of this SearchParam. + :rtype: dict(str, list[str]) + """ + return self._custom_tags + + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this SearchParam. + + 自定义字符标签,用于对搜索结果进行custom_tags过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。 + + :param custom_tags: The custom_tags of this SearchParam. + :type custom_tags: dict(str, list[str]) + """ + self._custom_tags = custom_tags + + @property + def custom_num_tags(self): + """Gets the custom_num_tags of this SearchParam. + + 自定义数值标签,用于对搜索结果进行custom_num_tags过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + + :return: The custom_num_tags of this SearchParam. + :rtype: dict(str, RangeParam) + """ + return self._custom_num_tags + + @custom_num_tags.setter + def custom_num_tags(self, custom_num_tags): + """Sets the custom_num_tags of this SearchParam. + + 自定义数值标签,用于对搜索结果进行custom_num_tags过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。 + + :param custom_num_tags: The custom_num_tags of this SearchParam. + :type custom_num_tags: dict(str, RangeParam) + """ + self._custom_num_tags = custom_num_tags + + @property + def image_base64(self): + """Gets the image_base64 of this SearchParam. + + 图像文件的base64字符串,基于图像搜索时,与image_url二选一。要求如下: - 格式:目前仅支持JPEG/JPG/PNG/BMP格式的图像。 - 尺寸:默认情况下,要求图像的最短边大于128px,最长边小于4096px。部分服务类型有特殊要求,可参见服务类型说明。 - 大小:图像文件大小要求不超过5M。 - 其他:图片中不能包含旋转信息。 + + :return: The image_base64 of this SearchParam. + :rtype: str + """ + return self._image_base64 + + @image_base64.setter + def image_base64(self, image_base64): + """Sets the image_base64 of this SearchParam. + + 图像文件的base64字符串,基于图像搜索时,与image_url二选一。要求如下: - 格式:目前仅支持JPEG/JPG/PNG/BMP格式的图像。 - 尺寸:默认情况下,要求图像的最短边大于128px,最长边小于4096px。部分服务类型有特殊要求,可参见服务类型说明。 - 大小:图像文件大小要求不超过5M。 - 其他:图片中不能包含旋转信息。 + + :param image_base64: The image_base64 of this SearchParam. + :type image_base64: str + """ + self._image_base64 = image_base64 + + @property + def image_url(self): + """Gets the image_url of this SearchParam. + + 图像文件的服务可访问URL,字符长度范围为[1, 4096]。基于图像搜索时,与image_base64二选一。 + + :return: The image_url of this SearchParam. + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this SearchParam. + + 图像文件的服务可访问URL,字符长度范围为[1, 4096]。基于图像搜索时,与image_base64二选一。 + + :param image_url: The image_url of this SearchParam. + :type image_url: str + """ + self._image_url = image_url + + @property + def keywords(self): + """Gets the keywords of this SearchParam. + + 关键词列表,搜索时关键词数量范围为[1, 10],关键词字符长度范围为[1, 64]。使用KEYWORD搜索类型进行搜索时,必须提供该参数。 + + :return: The keywords of this SearchParam. + :rtype: list[str] + """ + return self._keywords + + @keywords.setter + def keywords(self, keywords): + """Sets the keywords of this SearchParam. + + 关键词列表,搜索时关键词数量范围为[1, 10],关键词字符长度范围为[1, 64]。使用KEYWORD搜索类型进行搜索时,必须提供该参数。 + + :param keywords: The keywords of this SearchParam. + :type keywords: list[str] + """ + self._keywords = keywords + + @property + def optional_params(self): + """Gets the optional_params of this SearchParam. + + :return: The optional_params of this SearchParam. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchOptionalParam` + """ + return self._optional_params + + @optional_params.setter + def optional_params(self, optional_params): + """Sets the optional_params of this SearchParam. + + :param optional_params: The optional_params of this SearchParam. + :type optional_params: :class:`huaweicloudsdkimagesearch.v2.SearchOptionalParam` + """ + self._optional_params = optional_params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info.py new file mode 100755 index 000000000..ebc99a70d --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchRestInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'items': 'list[SearchItem]', + 'search_info': 'SearchInfo', + 'image_info': 'SearchRestInfoImageInfo' + } + + attribute_map = { + 'items': 'items', + 'search_info': 'search_info', + 'image_info': 'image_info' + } + + def __init__(self, items=None, search_info=None, image_info=None): + """SearchRestInfo + + The model defined in huaweicloud sdk + + :param items: 搜索结果列表。 + :type items: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`] + :param search_info: + :type search_info: :class:`huaweicloudsdkimagesearch.v2.SearchInfo` + :param image_info: + :type image_info: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfoImageInfo` + """ + + + + self._items = None + self._search_info = None + self._image_info = None + self.discriminator = None + + if items is not None: + self.items = items + if search_info is not None: + self.search_info = search_info + if image_info is not None: + self.image_info = image_info + + @property + def items(self): + """Gets the items of this SearchRestInfo. + + 搜索结果列表。 + + :return: The items of this SearchRestInfo. + :rtype: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this SearchRestInfo. + + 搜索结果列表。 + + :param items: The items of this SearchRestInfo. + :type items: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`] + """ + self._items = items + + @property + def search_info(self): + """Gets the search_info of this SearchRestInfo. + + :return: The search_info of this SearchRestInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchInfo` + """ + return self._search_info + + @search_info.setter + def search_info(self, search_info): + """Sets the search_info of this SearchRestInfo. + + :param search_info: The search_info of this SearchRestInfo. + :type search_info: :class:`huaweicloudsdkimagesearch.v2.SearchInfo` + """ + self._search_info = search_info + + @property + def image_info(self): + """Gets the image_info of this SearchRestInfo. + + :return: The image_info of this SearchRestInfo. + :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfoImageInfo` + """ + return self._image_info + + @image_info.setter + def image_info(self, image_info): + """Sets the image_info of this SearchRestInfo. + + :param image_info: The image_info of this SearchRestInfo. + :type image_info: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfoImageInfo` + """ + self._image_info = image_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchRestInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py new file mode 100755 index 000000000..79d260806 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchRestInfoImageInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'box': 'str', + 'category': 'float', + 'category_name': 'str', + 'objects': 'list[AddDataRestInfoImageInfoObjects]' + } + + attribute_map = { + 'box': 'box', + 'category': 'category', + 'category_name': 'category_name', + 'objects': 'objects' + } + + def __init__(self, box=None, category=None, category_name=None, objects=None): + """SearchRestInfoImageInfo + + The model defined in huaweicloud sdk + + :param box: 用于搜索的主体目标框。 + :type box: str + :param category: 用于搜索的主体类目序号。 + :type category: float + :param category_name: 用于搜索的主体类目名称。 + :type category_name: str + :param objects: 搜索图像中的所有主体列表。 + :type objects: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`] + """ + + + + self._box = None + self._category = None + self._category_name = None + self._objects = None + self.discriminator = None + + if box is not None: + self.box = box + if category is not None: + self.category = category + if category_name is not None: + self.category_name = category_name + if objects is not None: + self.objects = objects + + @property + def box(self): + """Gets the box of this SearchRestInfoImageInfo. + + 用于搜索的主体目标框。 + + :return: The box of this SearchRestInfoImageInfo. + :rtype: str + """ + return self._box + + @box.setter + def box(self, box): + """Sets the box of this SearchRestInfoImageInfo. + + 用于搜索的主体目标框。 + + :param box: The box of this SearchRestInfoImageInfo. + :type box: str + """ + self._box = box + + @property + def category(self): + """Gets the category of this SearchRestInfoImageInfo. + + 用于搜索的主体类目序号。 + + :return: The category of this SearchRestInfoImageInfo. + :rtype: float + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this SearchRestInfoImageInfo. + + 用于搜索的主体类目序号。 + + :param category: The category of this SearchRestInfoImageInfo. + :type category: float + """ + self._category = category + + @property + def category_name(self): + """Gets the category_name of this SearchRestInfoImageInfo. + + 用于搜索的主体类目名称。 + + :return: The category_name of this SearchRestInfoImageInfo. + :rtype: str + """ + return self._category_name + + @category_name.setter + def category_name(self, category_name): + """Sets the category_name of this SearchRestInfoImageInfo. + + 用于搜索的主体类目名称。 + + :param category_name: The category_name of this SearchRestInfoImageInfo. + :type category_name: str + """ + self._category_name = category_name + + @property + def objects(self): + """Gets the objects of this SearchRestInfoImageInfo. + + 搜索图像中的所有主体列表。 + + :return: The objects of this SearchRestInfoImageInfo. + :rtype: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`] + """ + return self._objects + + @objects.setter + def objects(self, objects): + """Sets the objects of this SearchRestInfoImageInfo. + + 搜索图像中的所有主体列表。 + + :param objects: The objects of this SearchRestInfoImageInfo. + :type objects: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`] + """ + self._objects = objects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchRestInfoImageInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/update_param.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/update_param.py new file mode 100755 index 000000000..3fa41b165 --- /dev/null +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/model/update_param.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'item_id': 'str', + 'desc': 'str', + 'custom_tags': 'dict(str, str)', + 'custom_num_tags': 'dict(str, float)' + } + + attribute_map = { + 'item_id': 'item_id', + 'desc': 'desc', + 'custom_tags': 'custom_tags', + 'custom_num_tags': 'custom_num_tags' + } + + def __init__(self, item_id=None, desc=None, custom_tags=None, custom_num_tags=None): + """UpdateParam + + The model defined in huaweicloud sdk + + :param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 + :type item_id: str + :param desc: 数据的描述信息,字符长度范围为[1, 2048]。 + :type desc: str + :param custom_tags: 数据的自定义字符标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。 + :type custom_tags: dict(str, str) + :param custom_num_tags: 数据的自定义数值标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。 + :type custom_num_tags: dict(str, float) + """ + + + + self._item_id = None + self._desc = None + self._custom_tags = None + self._custom_num_tags = None + self.discriminator = None + + self.item_id = item_id + if desc is not None: + self.desc = desc + if custom_tags is not None: + self.custom_tags = custom_tags + if custom_num_tags is not None: + self.custom_num_tags = custom_num_tags + + @property + def item_id(self): + """Gets the item_id of this UpdateParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 + + :return: The item_id of this UpdateParam. + :rtype: str + """ + return self._item_id + + @item_id.setter + def item_id(self, item_id): + """Sets the item_id of this UpdateParam. + + 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 + + :param item_id: The item_id of this UpdateParam. + :type item_id: str + """ + self._item_id = item_id + + @property + def desc(self): + """Gets the desc of this UpdateParam. + + 数据的描述信息,字符长度范围为[1, 2048]。 + + :return: The desc of this UpdateParam. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this UpdateParam. + + 数据的描述信息,字符长度范围为[1, 2048]。 + + :param desc: The desc of this UpdateParam. + :type desc: str + """ + self._desc = desc + + @property + def custom_tags(self): + """Gets the custom_tags of this UpdateParam. + + 数据的自定义字符标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。 + + :return: The custom_tags of this UpdateParam. + :rtype: dict(str, str) + """ + return self._custom_tags + + @custom_tags.setter + def custom_tags(self, custom_tags): + """Sets the custom_tags of this UpdateParam. + + 数据的自定义字符标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。 + + :param custom_tags: The custom_tags of this UpdateParam. + :type custom_tags: dict(str, str) + """ + self._custom_tags = custom_tags + + @property + def custom_num_tags(self): + """Gets the custom_num_tags of this UpdateParam. + + 数据的自定义数值标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。 + + :return: The custom_num_tags of this UpdateParam. + :rtype: dict(str, float) + """ + return self._custom_num_tags + + @custom_num_tags.setter + def custom_num_tags(self, custom_num_tags): + """Sets the custom_num_tags of this UpdateParam. + + 数据的自定义数值标签,可用于搜索时的过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。 + + :param custom_num_tags: The custom_num_tags of this UpdateParam. + :type custom_num_tags: dict(str, float) + """ + self._custom_num_tags = custom_num_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, UpdateParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/region/__init__.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/__init__.py similarity index 100% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/region/__init__.py rename to huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/__init__.py diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/region/imagesearch_region.py b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py similarity index 72% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/region/imagesearch_region.py rename to huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py index 4a39ebc86..b3794e553 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/region/imagesearch_region.py +++ b/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v2/region/imagesearch_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ImageSearchRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IMAGESEARCH") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://imagesearch.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://imagesearch.cn-north-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://imagesearch.ap-southeast-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://mms.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://mms.cn-north-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://mms.ap-southeast-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index 1f842676d..06037f4ce 100755 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 016de2cb8..54194f1ca 100755 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/region/ims_region.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/region/ims_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ImsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IMS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://ims.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ims.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ims.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://ims.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ims.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ims.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://ims.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://ims.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ims.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ims.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://ims.cn-north-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://ims.cn-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://ims.cn-north-9.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://ims.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://ims.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://ims.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://ims.na-mexico-1.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://ims.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://ims.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ims.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ims.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://ims.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ims.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ims.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://ims.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://ims.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ims.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ims.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://ims.cn-north-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://ims.cn-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://ims.cn-north-9.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://ims.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://ims.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://ims.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://ims.na-mexico-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://ims.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 6de196570..6e4a2adc1 100755 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 88bc447d9..2f38392b7 100755 --- a/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py +++ b/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IoTAnalyticsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IOTANALYTICS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iota.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iota.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 006bdc85a..2139a7608 100755 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 f50110515..6ab8885ac 100755 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IoTDARegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IOTDA") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iotda.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://iotda.cn-south-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://iotda.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://iotda.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://iotda.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iotda.cn-north-4.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://iotda.cn-south-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://iotda.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://iotda.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://iotda.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 516da9290..794c1a10d 100755 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 2bdec2204..612833316 100755 --- a/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/region/iotedge_region.py +++ b/huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/region/iotedge_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IoTEdgeRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IOTEDGE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iotedge-api.cn-north-4.myhuaweicloud.cn") + CN_NORTH_4 = Region("cn-north-4", + "https://iotedge-api.cn-north-4.myhuaweicloud.cn") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 07a5e1cb1..5d5553c58 100755 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 db54304ac..54542ba3b 100755 --- a/huaweicloud-sdk-ivs/huaweicloudsdkivs/v2/region/ivs_region.py +++ b/huaweicloud-sdk-ivs/huaweicloudsdkivs/v2/region/ivs_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class IvsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IVS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ivs.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ivs.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ivs.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ivs.cn-north-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 464b39e94..22d6ef0ad 100755 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 b50400aaf..bdb02481d 100755 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class KafkaRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("KAFKA") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dms.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dms.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dms.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dms.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dms.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dms.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dms.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dms.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dms.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dms.ru-northwest-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dms.cn-north-9.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dms.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dms.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dms.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dms.na-mexico-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dms.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dms.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dms.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dms.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dms.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dms.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dms.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dms.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dms.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dms.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dms.cn-north-9.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dms.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dms.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dms.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dms.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index a99e9319d..7bd33eedb 100755 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 8006b094c..d71aa7c58 100755 --- a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/region/kms_region.py +++ b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/region/kms_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class KmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("KMS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://kms.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://kms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://kms.cn-north-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://kms.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://kms.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://kms.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://kms.cn-south-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://kms.af-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://kms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://kms.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://kms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://kms.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://kms.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://kms.sa-brazil-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://kms.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://kms.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://kms.cn-north-9.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://kms.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://kms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://kms.cn-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://kms.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://kms.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://kms.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://kms.cn-south-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://kms.af-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://kms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://kms.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://kms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://kms.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://kms.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://kms.sa-brazil-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://kms.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://kms.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://kms.cn-north-9.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index d1d407852..67b433c91 100755 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 bd165fc07..7cfbb6c6e 100755 --- a/huaweicloud-sdk-kps/huaweicloudsdkkps/v3/region/kps_region.py +++ b/huaweicloud-sdk-kps/huaweicloudsdkkps/v3/region/kps_region.py @@ -9,32 +9,32 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class KpsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("KPS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://kms.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://kms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://kms.cn-north-2.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://kms.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://kms.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://kms.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://kms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://kms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://kms.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://kms.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://kms.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://kms.la-north-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://kms.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://kms.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://kms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://kms.cn-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://kms.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://kms.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://kms.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://kms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://kms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://kms.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://kms.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://kms.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://kms.la-north-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://kms.ap-southeast-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index d725c054b..9334945ef 100755 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 b758058e9..39bb18900 100755 --- a/huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/region/lakeformation_region.py +++ b/huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/region/lakeformation_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class LakeFormationRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("LAKEFORMATION") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://lakeformation.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://lakeformation.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://lakeformation.cn-north-4.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://lakeformation.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://lakeformation.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://lakeformation.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-9": CN_NORTH_9, diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 12f79a82c..bdc1f888e 100755 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 cfa5afe9c..02a23fb3f 100755 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/region/live_region.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/region/live_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class LiveRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("LIVE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://live.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://live.cn-north-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://live.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://live.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://live.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://live.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://live.cn-north-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://live.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://live.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://live.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py index cfa5afe9c..02a23fb3f 100755 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/region/live_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class LiveRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("LIVE") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://live.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://live.cn-north-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://live.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://live.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://live.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://live.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://live.cn-north-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://live.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://live.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://live.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index e59a37315..9edadb92b 100755 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 cec3dbbc9..34db24f29 100755 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/region/lts_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class LtsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("LTS") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://lts.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://lts.cn-east-3.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://lts.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://lts.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://lts.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://lts.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://lts.cn-southwest-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://lts.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://lts.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://lts.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://lts.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://lts.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://lts.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://lts.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://lts-pctest.cn-north-9.myhuaweicloud.cn") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://lts.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://lts.na-mexico-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://lts.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://lts.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://lts.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://lts.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://lts.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://lts.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://lts.cn-southwest-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://lts.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://lts.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://lts.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://lts.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://lts.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://lts.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://lts.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://lts-pctest.cn-north-9.myhuaweicloud.cn") + CN_SOUTH_2 = Region("cn-south-2", + "https://lts.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://lts.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index 2e7fb0c7f..a0a5cf005 100755 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 5224dbb57..e664f3427 100755 --- a/huaweicloud-sdk-mapds/huaweicloudsdkmapds/v1/region/mapds_region.py +++ b/huaweicloud-sdk-mapds/huaweicloudsdkmapds/v1/region/mapds_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class MapDSRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MAPDS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://mapds.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://mapds.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://mapds.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://mapds.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 1fc3cfaed..7da4bf0b9 100755 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 64d6f10c8..6322fa44c 100755 --- a/huaweicloud-sdk-mas/huaweicloudsdkmas/v1/region/mas_region.py +++ b/huaweicloud-sdk-mas/huaweicloudsdkmas/v1/region/mas_region.py @@ -9,34 +9,34 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class MasRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MAS") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://mas.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://mas.cn-east-3.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://mas.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://mas.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://mas.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://mas.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://mas.cn-southwest-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://mas.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://mas.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://mas.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://mas.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://mas.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://mas.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://mas.la-north-2.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://mas.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://mas.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://mas.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://mas.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://mas.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://mas.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://mas.cn-southwest-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://mas.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://mas.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://mas.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://mas.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://mas.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://mas.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://mas.la-north-2.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index dc0ae5932..47155b3f6 100755 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 f2a153be0..fa7da705f 100755 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/region/meeting_region.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/region/meeting_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class MeetingRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MEETING") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://api.meeting.huaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://api-intl.meeting.huaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://api.meeting.huaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://api-intl.meeting.huaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index ae4468737..771474b26 100755 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 9d01d9c59..ffe0b0895 100755 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py +++ b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/region/moderation_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ModerationRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MODERATION") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://moderation.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://moderation.cn-north-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://moderation.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://moderation.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://moderation.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://moderation.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://moderation.cn-north-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://moderation.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://moderation.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://moderation.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py index 9d01d9c59..ffe0b0895 100755 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py +++ b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/region/moderation_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ModerationRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MODERATION") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://moderation.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://moderation.cn-north-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://moderation.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://moderation.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://moderation.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://moderation.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://moderation.cn-north-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://moderation.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://moderation.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://moderation.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 677d791b0..853058734 100755 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 3cbf8443a..b705c8401 100755 --- a/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/region/mpc_region.py +++ b/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/region/mpc_region.py @@ -9,18 +9,18 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class MpcRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MPC") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://mpc.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://mts.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://mpc.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://mpc.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://mpc.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://mpc.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://mpc.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://mts.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://mpc.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://mpc.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://mpc.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://mpc.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index fba00c5f0..e49bb26a5 100755 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 01f7f5783..dd0e52ca5 100755 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/region/mrs_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class MrsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MRS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://mrs.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://mrs.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://mrs.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://mrs.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://mrs.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://mrs.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://mrs.ap-southeast-1.myhuaweicloud.cn") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://mrs.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://mrs.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://mrs.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://mrs.ru-northwest-2.myhuaweicloud.cn") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://mrs.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://mrs.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://mrs.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://mrs.na-mexico-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://mrs.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://mrs.cn-southwest-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://mrs.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://mrs.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://mrs.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://mrs.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://mrs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://mrs.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://mrs.ap-southeast-1.myhuaweicloud.cn") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://mrs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://mrs.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://mrs.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://mrs.ru-northwest-2.myhuaweicloud.cn") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://mrs.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://mrs.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://mrs.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://mrs.na-mexico-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://mrs.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://mrs.cn-southwest-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py index 01f7f5783..dd0e52ca5 100755 --- a/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py +++ b/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v2/region/mrs_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class MrsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("MRS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://mrs.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://mrs.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://mrs.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://mrs.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://mrs.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://mrs.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://mrs.ap-southeast-1.myhuaweicloud.cn") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://mrs.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://mrs.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://mrs.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://mrs.ru-northwest-2.myhuaweicloud.cn") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://mrs.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://mrs.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://mrs.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://mrs.na-mexico-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://mrs.cn-north-9.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://mrs.cn-southwest-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://mrs.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://mrs.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://mrs.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://mrs.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://mrs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://mrs.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://mrs.ap-southeast-1.myhuaweicloud.cn") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://mrs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://mrs.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://mrs.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://mrs.ru-northwest-2.myhuaweicloud.cn") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://mrs.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://mrs.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://mrs.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://mrs.na-mexico-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://mrs.cn-north-9.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://mrs.cn-southwest-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index 59121f940..42f0161e3 100755 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 4a8b6e04f..b70cf3402 100755 --- a/huaweicloud-sdk-nat/huaweicloudsdknat/v2/region/nat_region.py +++ b/huaweicloud-sdk-nat/huaweicloudsdknat/v2/region/nat_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class NatRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("NAT") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://nat.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://nat.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://nat.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://nat.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://nat.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://nat.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://nat.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://nat.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://nat.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://nat.ap-southeast-3.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://nat.cn-south-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://nat.cn-north-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://nat.ru-northwest-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://nat.na-mexico-1.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://nat.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://nat.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://nat.la-north-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://nat.cn-north-9.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://nat.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://nat.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://nat.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://nat.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://nat.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://nat.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://nat.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://nat.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://nat.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://nat.ap-southeast-3.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://nat.cn-south-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://nat.cn-north-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://nat.ru-northwest-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://nat.na-mexico-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://nat.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://nat.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://nat.la-north-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://nat.cn-north-9.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 7fd3d29e2..92be645c1 100755 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 c9a7a2d12..d22eed8ef 100755 --- a/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/region/nlp_region.py +++ b/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/region/nlp_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class NlpRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("NLP") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://nlp-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://nlp-ext.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index acbb2691f..9f46c7f70 100755 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py index 2503a9e02..938ae4f0e 100755 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/region/ocr_region.py @@ -9,24 +9,24 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class OcrRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("OCR") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://ocr.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ocr.cn-south-1.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://ocr.cn-east-3.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://ocr.cn-north-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://ocr.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://ocr.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ocr.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://ocr.la-south-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://ocr.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://ocr.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ocr.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://ocr.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://ocr.cn-north-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://ocr.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://ocr.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ocr.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://ocr.la-south-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://ocr.af-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 05501c366..5a009e7ba 100755 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 5f732597c..d47595f15 100755 --- a/huaweicloud-sdk-oms/huaweicloudsdkoms/v2/region/oms_region.py +++ b/huaweicloud-sdk-oms/huaweicloudsdkoms/v2/region/oms_region.py @@ -9,26 +9,26 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class OmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("OMS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://oms.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://oms.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://oms.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://oms.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://oms.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://oms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://oms.ap-southeast-3.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://oms.la-south-2.myhuaweicloud.com") - - CN_SOUTH_4 = Region(id="cn-south-4", endpoint="https://oms.cn-south-4.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://oms.cn-southwest-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://oms.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://oms.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://oms.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://oms.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://oms.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://oms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://oms.ap-southeast-3.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://oms.la-south-2.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://oms.cn-south-4.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://oms.cn-southwest-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index a1aaabe42..d474fe903 100755 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/__init__.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/__init__.py index cb18adbef..459e648c4 100755 --- a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/__init__.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/__init__.py @@ -12,9 +12,16 @@ from huaweicloudsdkosm.v2.model.accessory_url import AccessoryUrl from huaweicloudsdkosm.v2.model.agency_v2 import AgencyV2 from huaweicloudsdkosm.v2.model.agree_tenant_authorization_v2_req import AgreeTenantAuthorizationV2Req from huaweicloudsdkosm.v2.model.agreement_vo import AgreementVO +from huaweicloudsdkosm.v2.model.answer import Answer +from huaweicloudsdkosm.v2.model.answer_detail import AnswerDetail +from huaweicloudsdkosm.v2.model.answer_info import AnswerInfo +from huaweicloudsdkosm.v2.model.answer_qa_pair import AnswerQaPair from huaweicloudsdkosm.v2.model.area_code_simple_info_v2 import AreaCodeSimpleInfoV2 +from huaweicloudsdkosm.v2.model.article import Article +from huaweicloudsdkosm.v2.model.ask_question_req import AskQuestionReq from huaweicloudsdkosm.v2.model.case_label_info import CaseLabelInfo from huaweicloudsdkosm.v2.model.case_realtion_info import CaseRealtionInfo +from huaweicloudsdkosm.v2.model.cbs_flow_entry import CbsFlowEntry from huaweicloudsdkosm.v2.model.check_hosts_request import CheckHostsRequest from huaweicloudsdkosm.v2.model.check_hosts_response import CheckHostsResponse from huaweicloudsdkosm.v2.model.check_need_verify_request import CheckNeedVerifyRequest @@ -25,13 +32,28 @@ from huaweicloudsdkosm.v2.model.common_param_v2 import CommonParamV2 from huaweicloudsdkosm.v2.model.confirm_authorizations_request import ConfirmAuthorizationsRequest from huaweicloudsdkosm.v2.model.confirm_authorizations_response import ConfirmAuthorizationsResponse from huaweicloudsdkosm.v2.model.contact_v2 import ContactV2 +from huaweicloudsdkosm.v2.model.contact_way_info_v2 import ContactWayInfoV2 from huaweicloudsdkosm.v2.model.create_and_delete_privilege_req import CreateAndDeletePrivilegeReq +from huaweicloudsdkosm.v2.model.create_ask_question_request import CreateAskQuestionRequest +from huaweicloudsdkosm.v2.model.create_ask_question_response import CreateAskQuestionResponse +from huaweicloudsdkosm.v2.model.create_authorization_request import CreateAuthorizationRequest +from huaweicloudsdkosm.v2.model.create_authorization_response import CreateAuthorizationResponse from huaweicloudsdkosm.v2.model.create_case_extends_param_request import CreateCaseExtendsParamRequest from huaweicloudsdkosm.v2.model.create_case_extends_param_response import CreateCaseExtendsParamResponse from huaweicloudsdkosm.v2.model.create_case_labels_request import CreateCaseLabelsRequest from huaweicloudsdkosm.v2.model.create_case_labels_response import CreateCaseLabelsResponse from huaweicloudsdkosm.v2.model.create_cases_request import CreateCasesRequest from huaweicloudsdkosm.v2.model.create_cases_response import CreateCasesResponse +from huaweicloudsdkosm.v2.model.create_diagnose_feedback_request import CreateDiagnoseFeedbackRequest +from huaweicloudsdkosm.v2.model.create_diagnose_feedback_response import CreateDiagnoseFeedbackResponse +from huaweicloudsdkosm.v2.model.create_diagnose_job_request import CreateDiagnoseJobRequest +from huaweicloudsdkosm.v2.model.create_diagnose_job_response import CreateDiagnoseJobResponse +from huaweicloudsdkosm.v2.model.create_evaluate_request import CreateEvaluateRequest +from huaweicloudsdkosm.v2.model.create_evaluate_response import CreateEvaluateResponse +from huaweicloudsdkosm.v2.model.create_feedback_req import CreateFeedbackReq +from huaweicloudsdkosm.v2.model.create_feedback_request import CreateFeedbackRequest +from huaweicloudsdkosm.v2.model.create_feedback_response import CreateFeedbackResponse +from huaweicloudsdkosm.v2.model.create_feedback_v2_req import CreateFeedbackV2Req from huaweicloudsdkosm.v2.model.create_labels_req import CreateLabelsReq from huaweicloudsdkosm.v2.model.create_labels_request import CreateLabelsRequest from huaweicloudsdkosm.v2.model.create_labels_response import CreateLabelsResponse @@ -42,12 +64,21 @@ from huaweicloudsdkosm.v2.model.create_messages_response import CreateMessagesRe from huaweicloudsdkosm.v2.model.create_order_incident_v2_req import CreateOrderIncidentV2Req from huaweicloudsdkosm.v2.model.create_privileges_request import CreatePrivilegesRequest from huaweicloudsdkosm.v2.model.create_privileges_response import CreatePrivilegesResponse +from huaweicloudsdkosm.v2.model.create_qa_ask_request import CreateQaAskRequest +from huaweicloudsdkosm.v2.model.create_qa_ask_response import CreateQaAskResponse +from huaweicloudsdkosm.v2.model.create_qa_feedbacks_request import CreateQaFeedbacksRequest +from huaweicloudsdkosm.v2.model.create_qa_feedbacks_response import CreateQaFeedbacksResponse +from huaweicloudsdkosm.v2.model.create_question_in_session_request import CreateQuestionInSessionRequest +from huaweicloudsdkosm.v2.model.create_question_in_session_response import CreateQuestionInSessionResponse from huaweicloudsdkosm.v2.model.create_relations_req import CreateRelationsReq from huaweicloudsdkosm.v2.model.create_relations_request import CreateRelationsRequest from huaweicloudsdkosm.v2.model.create_relations_response import CreateRelationsResponse from huaweicloudsdkosm.v2.model.create_score_v2_req import CreateScoreV2Req from huaweicloudsdkosm.v2.model.create_scores_request import CreateScoresRequest from huaweicloudsdkosm.v2.model.create_scores_response import CreateScoresResponse +from huaweicloudsdkosm.v2.model.create_session_request import CreateSessionRequest +from huaweicloudsdkosm.v2.model.create_session_response import CreateSessionResponse +from huaweicloudsdkosm.v2.model.create_user_center_authorization_v2_req import CreateUserCenterAuthorizationV2Req from huaweicloudsdkosm.v2.model.data_center_v2_do import DataCenterV2Do from huaweicloudsdkosm.v2.model.delete_accessories_request import DeleteAccessoriesRequest from huaweicloudsdkosm.v2.model.delete_accessories_response import DeleteAccessoriesResponse @@ -58,13 +89,17 @@ from huaweicloudsdkosm.v2.model.delete_labels_response import DeleteLabelsRespon from huaweicloudsdkosm.v2.model.delete_relation_request import DeleteRelationRequest from huaweicloudsdkosm.v2.model.delete_relation_response import DeleteRelationResponse from huaweicloudsdkosm.v2.model.delete_relations_req import DeleteRelationsReq +from huaweicloudsdkosm.v2.model.diagnose_record_vo import DiagnoseRecordVo from huaweicloudsdkosm.v2.model.download_accessories_request import DownloadAccessoriesRequest from huaweicloudsdkosm.v2.model.download_accessories_response import DownloadAccessoriesResponse from huaweicloudsdkosm.v2.model.download_cases_request import DownloadCasesRequest from huaweicloudsdkosm.v2.model.download_cases_response import DownloadCasesResponse from huaweicloudsdkosm.v2.model.download_images_request import DownloadImagesRequest from huaweicloudsdkosm.v2.model.download_images_response import DownloadImagesResponse +from huaweicloudsdkosm.v2.model.evaluate_request_req import EvaluateRequestReq +from huaweicloudsdkosm.v2.model.extend_question import ExtendQuestion from huaweicloudsdkosm.v2.model.extends_param_v2 import ExtendsParamV2 +from huaweicloudsdkosm.v2.model.feedback_option import FeedbackOption from huaweicloudsdkosm.v2.model.file_operate_log import FileOperateLog from huaweicloudsdkosm.v2.model.im_status_v2 import ImStatusV2 from huaweicloudsdkosm.v2.model.im_unread_v2 import ImUnreadV2 @@ -81,13 +116,19 @@ from huaweicloudsdkosm.v2.model.incident_satisfaction_v2_do import IncidentSatis from huaweicloudsdkosm.v2.model.incident_status_count import IncidentStatusCount from huaweicloudsdkosm.v2.model.incident_sub_type_v2_do import IncidentSubTypeV2Do from huaweicloudsdkosm.v2.model.incident_temp_v2 import IncidentTempV2 +from huaweicloudsdkosm.v2.model.intellectual_property_v2 import IntellectualPropertyV2 +from huaweicloudsdkosm.v2.model.item_result_detail_vo import ItemResultDetailVo +from huaweicloudsdkosm.v2.model.item_result_vo import ItemResultVo from huaweicloudsdkosm.v2.model.label_info import LabelInfo +from huaweicloudsdkosm.v2.model.lang_result import LangResult from huaweicloudsdkosm.v2.model.list_accessory_access_urls_request import ListAccessoryAccessUrlsRequest from huaweicloudsdkosm.v2.model.list_accessory_access_urls_response import ListAccessoryAccessUrlsResponse from huaweicloudsdkosm.v2.model.list_agencies_request import ListAgenciesRequest from huaweicloudsdkosm.v2.model.list_agencies_response import ListAgenciesResponse from huaweicloudsdkosm.v2.model.list_area_codes_request import ListAreaCodesRequest from huaweicloudsdkosm.v2.model.list_area_codes_response import ListAreaCodesResponse +from huaweicloudsdkosm.v2.model.list_articles_request import ListArticlesRequest +from huaweicloudsdkosm.v2.model.list_articles_response import ListArticlesResponse from huaweicloudsdkosm.v2.model.list_authorizations_request import ListAuthorizationsRequest from huaweicloudsdkosm.v2.model.list_authorizations_response import ListAuthorizationsResponse from huaweicloudsdkosm.v2.model.list_case_categories_request import ListCaseCategoriesRequest @@ -110,8 +151,16 @@ from huaweicloudsdkosm.v2.model.list_cases_request import ListCasesRequest from huaweicloudsdkosm.v2.model.list_cases_response import ListCasesResponse from huaweicloudsdkosm.v2.model.list_customers_regions_request import ListCustomersRegionsRequest from huaweicloudsdkosm.v2.model.list_customers_regions_response import ListCustomersRegionsResponse +from huaweicloudsdkosm.v2.model.list_diagnose_items_request import ListDiagnoseItemsRequest +from huaweicloudsdkosm.v2.model.list_diagnose_items_response import ListDiagnoseItemsResponse +from huaweicloudsdkosm.v2.model.list_diagnose_job_request import ListDiagnoseJobRequest +from huaweicloudsdkosm.v2.model.list_diagnose_job_response import ListDiagnoseJobResponse +from huaweicloudsdkosm.v2.model.list_diagnose_records_request import ListDiagnoseRecordsRequest +from huaweicloudsdkosm.v2.model.list_diagnose_records_response import ListDiagnoseRecordsResponse from huaweicloudsdkosm.v2.model.list_extends_params_request import ListExtendsParamsRequest from huaweicloudsdkosm.v2.model.list_extends_params_response import ListExtendsParamsResponse +from huaweicloudsdkosm.v2.model.list_feedback_option_request import ListFeedbackOptionRequest +from huaweicloudsdkosm.v2.model.list_feedback_option_response import ListFeedbackOptionResponse from huaweicloudsdkosm.v2.model.list_has_verified_contacts_request import ListHasVerifiedContactsRequest from huaweicloudsdkosm.v2.model.list_has_verified_contacts_response import ListHasVerifiedContactsResponse from huaweicloudsdkosm.v2.model.list_history_operate_logs_request import ListHistoryOperateLogsRequest @@ -126,12 +175,16 @@ from huaweicloudsdkosm.v2.model.list_more_instant_messages_request import ListMo from huaweicloudsdkosm.v2.model.list_more_instant_messages_response import ListMoreInstantMessagesResponse from huaweicloudsdkosm.v2.model.list_new_instant_messages_request import ListNewInstantMessagesRequest from huaweicloudsdkosm.v2.model.list_new_instant_messages_response import ListNewInstantMessagesResponse +from huaweicloudsdkosm.v2.model.list_notices_request import ListNoticesRequest +from huaweicloudsdkosm.v2.model.list_notices_response import ListNoticesResponse from huaweicloudsdkosm.v2.model.list_privileges_request import ListPrivilegesRequest from huaweicloudsdkosm.v2.model.list_privileges_response import ListPrivilegesResponse from huaweicloudsdkosm.v2.model.list_problem_types_request import ListProblemTypesRequest from huaweicloudsdkosm.v2.model.list_problem_types_response import ListProblemTypesResponse from huaweicloudsdkosm.v2.model.list_product_categories_request import ListProductCategoriesRequest from huaweicloudsdkosm.v2.model.list_product_categories_response import ListProductCategoriesResponse +from huaweicloudsdkosm.v2.model.list_recommend_words_request import ListRecommendWordsRequest +from huaweicloudsdkosm.v2.model.list_recommend_words_response import ListRecommendWordsResponse from huaweicloudsdkosm.v2.model.list_regions_request import ListRegionsRequest from huaweicloudsdkosm.v2.model.list_regions_response import ListRegionsResponse from huaweicloudsdkosm.v2.model.list_relation_request import ListRelationRequest @@ -142,26 +195,48 @@ from huaweicloudsdkosm.v2.model.list_severities_request import ListSeveritiesReq from huaweicloudsdkosm.v2.model.list_severities_response import ListSeveritiesResponse from huaweicloudsdkosm.v2.model.list_sub_customers_request import ListSubCustomersRequest from huaweicloudsdkosm.v2.model.list_sub_customers_response import ListSubCustomersResponse +from huaweicloudsdkosm.v2.model.list_tools_request import ListToolsRequest +from huaweicloudsdkosm.v2.model.list_tools_response import ListToolsResponse from huaweicloudsdkosm.v2.model.list_transport_histories_request import ListTransportHistoriesRequest from huaweicloudsdkosm.v2.model.list_transport_histories_response import ListTransportHistoriesResponse from huaweicloudsdkosm.v2.model.list_unread_new_instant_messages_request import ListUnreadNewInstantMessagesRequest from huaweicloudsdkosm.v2.model.list_unread_new_instant_messages_response import ListUnreadNewInstantMessagesResponse +from huaweicloudsdkosm.v2.model.notice import Notice from huaweicloudsdkosm.v2.model.operate_authorization_v2_req import OperateAuthorizationV2Req from huaweicloudsdkosm.v2.model.operate_history_session import OperateHistorySession from huaweicloudsdkosm.v2.model.operate_log import OperateLog from huaweicloudsdkosm.v2.model.partners_service_info import PartnersServiceInfo from huaweicloudsdkosm.v2.model.put_case_ext_param_req import PutCaseExtParamReq +from huaweicloudsdkosm.v2.model.qa_ask_req import QaAskReq +from huaweicloudsdkosm.v2.model.qa_feedback_req import QaFeedbackReq +from huaweicloudsdkosm.v2.model.qa_flow_hit_node_vo import QaFlowHitNodeVo +from huaweicloudsdkosm.v2.model.qa_flow_hit_result import QaFlowHitResult +from huaweicloudsdkosm.v2.model.qa_graph_answer import QaGraphAnswer +from huaweicloudsdkosm.v2.model.qa_pair import QaPair +from huaweicloudsdkosm.v2.model.qabot_answer import QabotAnswer +from huaweicloudsdkosm.v2.model.query_associated_question_req import QueryAssociatedQuestionReq +from huaweicloudsdkosm.v2.model.query_diagnose_items_req import QueryDiagnoseItemsReq from huaweicloudsdkosm.v2.model.query_message_info_v2 import QueryMessageInfoV2 +from huaweicloudsdkosm.v2.model.recommend_word import RecommendWord from huaweicloudsdkosm.v2.model.region import Region +from huaweicloudsdkosm.v2.model.relation_theme import RelationTheme +from huaweicloudsdkosm.v2.model.relevance_qapair import RelevanceQapair from huaweicloudsdkosm.v2.model.revoke_message_request import RevokeMessageRequest from huaweicloudsdkosm.v2.model.revoke_message_response import RevokeMessageResponse from huaweicloudsdkosm.v2.model.satisfaction_dimension_simple_info_v2 import SatisfactionDimensionSimpleInfoV2 +from huaweicloudsdkosm.v2.model.search_articles_req import SearchArticlesReq +from huaweicloudsdkosm.v2.model.search_notices_req import SearchNoticesReq +from huaweicloudsdkosm.v2.model.search_qa_pairs_req import SearchQaPairsReq +from huaweicloudsdkosm.v2.model.search_tools_req import SearchToolsReq from huaweicloudsdkosm.v2.model.send_verify_code_req import SendVerifyCodeReq from huaweicloudsdkosm.v2.model.send_verify_codes_request import SendVerifyCodesRequest from huaweicloudsdkosm.v2.model.send_verify_codes_response import SendVerifyCodesResponse +from huaweicloudsdkosm.v2.model.session_ask_question_req import SessionAskQuestionReq from huaweicloudsdkosm.v2.model.severity_v2_do import SeverityV2Do from huaweicloudsdkosm.v2.model.show_accessory_limits_request import ShowAccessoryLimitsRequest from huaweicloudsdkosm.v2.model.show_accessory_limits_response import ShowAccessoryLimitsResponse +from huaweicloudsdkosm.v2.model.show_associated_questions_request import ShowAssociatedQuestionsRequest +from huaweicloudsdkosm.v2.model.show_associated_questions_response import ShowAssociatedQuestionsResponse from huaweicloudsdkosm.v2.model.show_authorization_detail_request import ShowAuthorizationDetailRequest from huaweicloudsdkosm.v2.model.show_authorization_detail_response import ShowAuthorizationDetailResponse from huaweicloudsdkosm.v2.model.show_case_detail_request import ShowCaseDetailRequest @@ -172,22 +247,33 @@ from huaweicloudsdkosm.v2.model.show_case_status_request import ShowCaseStatusRe from huaweicloudsdkosm.v2.model.show_case_status_response import ShowCaseStatusResponse from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_request import ShowCustomerPrivilegePolicyRequest from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_response import ShowCustomerPrivilegePolicyResponse +from huaweicloudsdkosm.v2.model.show_download_accessory_url_request import ShowDownloadAccessoryUrlRequest +from huaweicloudsdkosm.v2.model.show_download_accessory_url_response import ShowDownloadAccessoryUrlResponse from huaweicloudsdkosm.v2.model.show_latest_published_agreement_request import ShowLatestPublishedAgreementRequest from huaweicloudsdkosm.v2.model.show_latest_published_agreement_response import ShowLatestPublishedAgreementResponse from huaweicloudsdkosm.v2.model.show_partners_cases_privilege_request import ShowPartnersCasesPrivilegeRequest from huaweicloudsdkosm.v2.model.show_partners_cases_privilege_response import ShowPartnersCasesPrivilegeResponse from huaweicloudsdkosm.v2.model.show_partners_service_info_request import ShowPartnersServiceInfoRequest from huaweicloudsdkosm.v2.model.show_partners_service_info_response import ShowPartnersServiceInfoResponse +from huaweicloudsdkosm.v2.model.show_qa_pair_detail_request import ShowQaPairDetailRequest +from huaweicloudsdkosm.v2.model.show_qa_pair_detail_response import ShowQaPairDetailResponse +from huaweicloudsdkosm.v2.model.show_qa_pairs_request import ShowQaPairsRequest +from huaweicloudsdkosm.v2.model.show_qa_pairs_response import ShowQaPairsResponse from huaweicloudsdkosm.v2.model.show_signed_latest_published_agreement_request import ShowSignedLatestPublishedAgreementRequest from huaweicloudsdkosm.v2.model.show_signed_latest_published_agreement_response import ShowSignedLatestPublishedAgreementResponse +from huaweicloudsdkosm.v2.model.show_theme_request import ShowThemeRequest +from huaweicloudsdkosm.v2.model.show_theme_response import ShowThemeResponse from huaweicloudsdkosm.v2.model.sign_agreement_req import SignAgreementReq from huaweicloudsdkosm.v2.model.sign_published_agreement_request import SignPublishedAgreementRequest from huaweicloudsdkosm.v2.model.sign_published_agreement_response import SignPublishedAgreementResponse from huaweicloudsdkosm.v2.model.simple_accessory_v2 import SimpleAccessoryV2 from huaweicloudsdkosm.v2.model.simple_incident_business_type_v2 import SimpleIncidentBusinessTypeV2 +from huaweicloudsdkosm.v2.model.simple_qa_pair import SimpleQaPair from huaweicloudsdkosm.v2.model.sub_cutomer_info_v2 import SubCutomerInfoV2 +from huaweicloudsdkosm.v2.model.submit_diagnose_job_req import SubmitDiagnoseJobReq from huaweicloudsdkosm.v2.model.tenant_agree_auth_detail_v2 import TenantAgreeAuthDetailV2 from huaweicloudsdkosm.v2.model.tenant_config_v2 import TenantConfigV2 +from huaweicloudsdkosm.v2.model.tool import Tool from huaweicloudsdkosm.v2.model.update_authorizations_request import UpdateAuthorizationsRequest from huaweicloudsdkosm.v2.model.update_authorizations_response import UpdateAuthorizationsResponse from huaweicloudsdkosm.v2.model.update_case_contact_info_req import UpdateCaseContactInfoReq diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/__init__.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/__init__.py index f137db13a..14d2dc252 100755 --- a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/__init__.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/__init__.py @@ -9,9 +9,16 @@ from huaweicloudsdkosm.v2.model.accessory_url import AccessoryUrl from huaweicloudsdkosm.v2.model.agency_v2 import AgencyV2 from huaweicloudsdkosm.v2.model.agree_tenant_authorization_v2_req import AgreeTenantAuthorizationV2Req from huaweicloudsdkosm.v2.model.agreement_vo import AgreementVO +from huaweicloudsdkosm.v2.model.answer import Answer +from huaweicloudsdkosm.v2.model.answer_detail import AnswerDetail +from huaweicloudsdkosm.v2.model.answer_info import AnswerInfo +from huaweicloudsdkosm.v2.model.answer_qa_pair import AnswerQaPair from huaweicloudsdkosm.v2.model.area_code_simple_info_v2 import AreaCodeSimpleInfoV2 +from huaweicloudsdkosm.v2.model.article import Article +from huaweicloudsdkosm.v2.model.ask_question_req import AskQuestionReq from huaweicloudsdkosm.v2.model.case_label_info import CaseLabelInfo from huaweicloudsdkosm.v2.model.case_realtion_info import CaseRealtionInfo +from huaweicloudsdkosm.v2.model.cbs_flow_entry import CbsFlowEntry from huaweicloudsdkosm.v2.model.check_hosts_request import CheckHostsRequest from huaweicloudsdkosm.v2.model.check_hosts_response import CheckHostsResponse from huaweicloudsdkosm.v2.model.check_need_verify_request import CheckNeedVerifyRequest @@ -22,13 +29,28 @@ from huaweicloudsdkosm.v2.model.common_param_v2 import CommonParamV2 from huaweicloudsdkosm.v2.model.confirm_authorizations_request import ConfirmAuthorizationsRequest from huaweicloudsdkosm.v2.model.confirm_authorizations_response import ConfirmAuthorizationsResponse from huaweicloudsdkosm.v2.model.contact_v2 import ContactV2 +from huaweicloudsdkosm.v2.model.contact_way_info_v2 import ContactWayInfoV2 from huaweicloudsdkosm.v2.model.create_and_delete_privilege_req import CreateAndDeletePrivilegeReq +from huaweicloudsdkosm.v2.model.create_ask_question_request import CreateAskQuestionRequest +from huaweicloudsdkosm.v2.model.create_ask_question_response import CreateAskQuestionResponse +from huaweicloudsdkosm.v2.model.create_authorization_request import CreateAuthorizationRequest +from huaweicloudsdkosm.v2.model.create_authorization_response import CreateAuthorizationResponse from huaweicloudsdkosm.v2.model.create_case_extends_param_request import CreateCaseExtendsParamRequest from huaweicloudsdkosm.v2.model.create_case_extends_param_response import CreateCaseExtendsParamResponse from huaweicloudsdkosm.v2.model.create_case_labels_request import CreateCaseLabelsRequest from huaweicloudsdkosm.v2.model.create_case_labels_response import CreateCaseLabelsResponse from huaweicloudsdkosm.v2.model.create_cases_request import CreateCasesRequest from huaweicloudsdkosm.v2.model.create_cases_response import CreateCasesResponse +from huaweicloudsdkosm.v2.model.create_diagnose_feedback_request import CreateDiagnoseFeedbackRequest +from huaweicloudsdkosm.v2.model.create_diagnose_feedback_response import CreateDiagnoseFeedbackResponse +from huaweicloudsdkosm.v2.model.create_diagnose_job_request import CreateDiagnoseJobRequest +from huaweicloudsdkosm.v2.model.create_diagnose_job_response import CreateDiagnoseJobResponse +from huaweicloudsdkosm.v2.model.create_evaluate_request import CreateEvaluateRequest +from huaweicloudsdkosm.v2.model.create_evaluate_response import CreateEvaluateResponse +from huaweicloudsdkosm.v2.model.create_feedback_req import CreateFeedbackReq +from huaweicloudsdkosm.v2.model.create_feedback_request import CreateFeedbackRequest +from huaweicloudsdkosm.v2.model.create_feedback_response import CreateFeedbackResponse +from huaweicloudsdkosm.v2.model.create_feedback_v2_req import CreateFeedbackV2Req from huaweicloudsdkosm.v2.model.create_labels_req import CreateLabelsReq from huaweicloudsdkosm.v2.model.create_labels_request import CreateLabelsRequest from huaweicloudsdkosm.v2.model.create_labels_response import CreateLabelsResponse @@ -39,12 +61,21 @@ from huaweicloudsdkosm.v2.model.create_messages_response import CreateMessagesRe from huaweicloudsdkosm.v2.model.create_order_incident_v2_req import CreateOrderIncidentV2Req from huaweicloudsdkosm.v2.model.create_privileges_request import CreatePrivilegesRequest from huaweicloudsdkosm.v2.model.create_privileges_response import CreatePrivilegesResponse +from huaweicloudsdkosm.v2.model.create_qa_ask_request import CreateQaAskRequest +from huaweicloudsdkosm.v2.model.create_qa_ask_response import CreateQaAskResponse +from huaweicloudsdkosm.v2.model.create_qa_feedbacks_request import CreateQaFeedbacksRequest +from huaweicloudsdkosm.v2.model.create_qa_feedbacks_response import CreateQaFeedbacksResponse +from huaweicloudsdkosm.v2.model.create_question_in_session_request import CreateQuestionInSessionRequest +from huaweicloudsdkosm.v2.model.create_question_in_session_response import CreateQuestionInSessionResponse from huaweicloudsdkosm.v2.model.create_relations_req import CreateRelationsReq from huaweicloudsdkosm.v2.model.create_relations_request import CreateRelationsRequest from huaweicloudsdkosm.v2.model.create_relations_response import CreateRelationsResponse from huaweicloudsdkosm.v2.model.create_score_v2_req import CreateScoreV2Req from huaweicloudsdkosm.v2.model.create_scores_request import CreateScoresRequest from huaweicloudsdkosm.v2.model.create_scores_response import CreateScoresResponse +from huaweicloudsdkosm.v2.model.create_session_request import CreateSessionRequest +from huaweicloudsdkosm.v2.model.create_session_response import CreateSessionResponse +from huaweicloudsdkosm.v2.model.create_user_center_authorization_v2_req import CreateUserCenterAuthorizationV2Req from huaweicloudsdkosm.v2.model.data_center_v2_do import DataCenterV2Do from huaweicloudsdkosm.v2.model.delete_accessories_request import DeleteAccessoriesRequest from huaweicloudsdkosm.v2.model.delete_accessories_response import DeleteAccessoriesResponse @@ -55,13 +86,17 @@ from huaweicloudsdkosm.v2.model.delete_labels_response import DeleteLabelsRespon from huaweicloudsdkosm.v2.model.delete_relation_request import DeleteRelationRequest from huaweicloudsdkosm.v2.model.delete_relation_response import DeleteRelationResponse from huaweicloudsdkosm.v2.model.delete_relations_req import DeleteRelationsReq +from huaweicloudsdkosm.v2.model.diagnose_record_vo import DiagnoseRecordVo from huaweicloudsdkosm.v2.model.download_accessories_request import DownloadAccessoriesRequest from huaweicloudsdkosm.v2.model.download_accessories_response import DownloadAccessoriesResponse from huaweicloudsdkosm.v2.model.download_cases_request import DownloadCasesRequest from huaweicloudsdkosm.v2.model.download_cases_response import DownloadCasesResponse from huaweicloudsdkosm.v2.model.download_images_request import DownloadImagesRequest from huaweicloudsdkosm.v2.model.download_images_response import DownloadImagesResponse +from huaweicloudsdkosm.v2.model.evaluate_request_req import EvaluateRequestReq +from huaweicloudsdkosm.v2.model.extend_question import ExtendQuestion from huaweicloudsdkosm.v2.model.extends_param_v2 import ExtendsParamV2 +from huaweicloudsdkosm.v2.model.feedback_option import FeedbackOption from huaweicloudsdkosm.v2.model.file_operate_log import FileOperateLog from huaweicloudsdkosm.v2.model.im_status_v2 import ImStatusV2 from huaweicloudsdkosm.v2.model.im_unread_v2 import ImUnreadV2 @@ -78,13 +113,19 @@ from huaweicloudsdkosm.v2.model.incident_satisfaction_v2_do import IncidentSatis from huaweicloudsdkosm.v2.model.incident_status_count import IncidentStatusCount from huaweicloudsdkosm.v2.model.incident_sub_type_v2_do import IncidentSubTypeV2Do from huaweicloudsdkosm.v2.model.incident_temp_v2 import IncidentTempV2 +from huaweicloudsdkosm.v2.model.intellectual_property_v2 import IntellectualPropertyV2 +from huaweicloudsdkosm.v2.model.item_result_detail_vo import ItemResultDetailVo +from huaweicloudsdkosm.v2.model.item_result_vo import ItemResultVo from huaweicloudsdkosm.v2.model.label_info import LabelInfo +from huaweicloudsdkosm.v2.model.lang_result import LangResult from huaweicloudsdkosm.v2.model.list_accessory_access_urls_request import ListAccessoryAccessUrlsRequest from huaweicloudsdkosm.v2.model.list_accessory_access_urls_response import ListAccessoryAccessUrlsResponse from huaweicloudsdkosm.v2.model.list_agencies_request import ListAgenciesRequest from huaweicloudsdkosm.v2.model.list_agencies_response import ListAgenciesResponse from huaweicloudsdkosm.v2.model.list_area_codes_request import ListAreaCodesRequest from huaweicloudsdkosm.v2.model.list_area_codes_response import ListAreaCodesResponse +from huaweicloudsdkosm.v2.model.list_articles_request import ListArticlesRequest +from huaweicloudsdkosm.v2.model.list_articles_response import ListArticlesResponse from huaweicloudsdkosm.v2.model.list_authorizations_request import ListAuthorizationsRequest from huaweicloudsdkosm.v2.model.list_authorizations_response import ListAuthorizationsResponse from huaweicloudsdkosm.v2.model.list_case_categories_request import ListCaseCategoriesRequest @@ -107,8 +148,16 @@ from huaweicloudsdkosm.v2.model.list_cases_request import ListCasesRequest from huaweicloudsdkosm.v2.model.list_cases_response import ListCasesResponse from huaweicloudsdkosm.v2.model.list_customers_regions_request import ListCustomersRegionsRequest from huaweicloudsdkosm.v2.model.list_customers_regions_response import ListCustomersRegionsResponse +from huaweicloudsdkosm.v2.model.list_diagnose_items_request import ListDiagnoseItemsRequest +from huaweicloudsdkosm.v2.model.list_diagnose_items_response import ListDiagnoseItemsResponse +from huaweicloudsdkosm.v2.model.list_diagnose_job_request import ListDiagnoseJobRequest +from huaweicloudsdkosm.v2.model.list_diagnose_job_response import ListDiagnoseJobResponse +from huaweicloudsdkosm.v2.model.list_diagnose_records_request import ListDiagnoseRecordsRequest +from huaweicloudsdkosm.v2.model.list_diagnose_records_response import ListDiagnoseRecordsResponse from huaweicloudsdkosm.v2.model.list_extends_params_request import ListExtendsParamsRequest from huaweicloudsdkosm.v2.model.list_extends_params_response import ListExtendsParamsResponse +from huaweicloudsdkosm.v2.model.list_feedback_option_request import ListFeedbackOptionRequest +from huaweicloudsdkosm.v2.model.list_feedback_option_response import ListFeedbackOptionResponse from huaweicloudsdkosm.v2.model.list_has_verified_contacts_request import ListHasVerifiedContactsRequest from huaweicloudsdkosm.v2.model.list_has_verified_contacts_response import ListHasVerifiedContactsResponse from huaweicloudsdkosm.v2.model.list_history_operate_logs_request import ListHistoryOperateLogsRequest @@ -123,12 +172,16 @@ from huaweicloudsdkosm.v2.model.list_more_instant_messages_request import ListMo from huaweicloudsdkosm.v2.model.list_more_instant_messages_response import ListMoreInstantMessagesResponse from huaweicloudsdkosm.v2.model.list_new_instant_messages_request import ListNewInstantMessagesRequest from huaweicloudsdkosm.v2.model.list_new_instant_messages_response import ListNewInstantMessagesResponse +from huaweicloudsdkosm.v2.model.list_notices_request import ListNoticesRequest +from huaweicloudsdkosm.v2.model.list_notices_response import ListNoticesResponse from huaweicloudsdkosm.v2.model.list_privileges_request import ListPrivilegesRequest from huaweicloudsdkosm.v2.model.list_privileges_response import ListPrivilegesResponse from huaweicloudsdkosm.v2.model.list_problem_types_request import ListProblemTypesRequest from huaweicloudsdkosm.v2.model.list_problem_types_response import ListProblemTypesResponse from huaweicloudsdkosm.v2.model.list_product_categories_request import ListProductCategoriesRequest from huaweicloudsdkosm.v2.model.list_product_categories_response import ListProductCategoriesResponse +from huaweicloudsdkosm.v2.model.list_recommend_words_request import ListRecommendWordsRequest +from huaweicloudsdkosm.v2.model.list_recommend_words_response import ListRecommendWordsResponse from huaweicloudsdkosm.v2.model.list_regions_request import ListRegionsRequest from huaweicloudsdkosm.v2.model.list_regions_response import ListRegionsResponse from huaweicloudsdkosm.v2.model.list_relation_request import ListRelationRequest @@ -139,26 +192,48 @@ from huaweicloudsdkosm.v2.model.list_severities_request import ListSeveritiesReq from huaweicloudsdkosm.v2.model.list_severities_response import ListSeveritiesResponse from huaweicloudsdkosm.v2.model.list_sub_customers_request import ListSubCustomersRequest from huaweicloudsdkosm.v2.model.list_sub_customers_response import ListSubCustomersResponse +from huaweicloudsdkosm.v2.model.list_tools_request import ListToolsRequest +from huaweicloudsdkosm.v2.model.list_tools_response import ListToolsResponse from huaweicloudsdkosm.v2.model.list_transport_histories_request import ListTransportHistoriesRequest from huaweicloudsdkosm.v2.model.list_transport_histories_response import ListTransportHistoriesResponse from huaweicloudsdkosm.v2.model.list_unread_new_instant_messages_request import ListUnreadNewInstantMessagesRequest from huaweicloudsdkosm.v2.model.list_unread_new_instant_messages_response import ListUnreadNewInstantMessagesResponse +from huaweicloudsdkosm.v2.model.notice import Notice from huaweicloudsdkosm.v2.model.operate_authorization_v2_req import OperateAuthorizationV2Req from huaweicloudsdkosm.v2.model.operate_history_session import OperateHistorySession from huaweicloudsdkosm.v2.model.operate_log import OperateLog from huaweicloudsdkosm.v2.model.partners_service_info import PartnersServiceInfo from huaweicloudsdkosm.v2.model.put_case_ext_param_req import PutCaseExtParamReq +from huaweicloudsdkosm.v2.model.qa_ask_req import QaAskReq +from huaweicloudsdkosm.v2.model.qa_feedback_req import QaFeedbackReq +from huaweicloudsdkosm.v2.model.qa_flow_hit_node_vo import QaFlowHitNodeVo +from huaweicloudsdkosm.v2.model.qa_flow_hit_result import QaFlowHitResult +from huaweicloudsdkosm.v2.model.qa_graph_answer import QaGraphAnswer +from huaweicloudsdkosm.v2.model.qa_pair import QaPair +from huaweicloudsdkosm.v2.model.qabot_answer import QabotAnswer +from huaweicloudsdkosm.v2.model.query_associated_question_req import QueryAssociatedQuestionReq +from huaweicloudsdkosm.v2.model.query_diagnose_items_req import QueryDiagnoseItemsReq from huaweicloudsdkosm.v2.model.query_message_info_v2 import QueryMessageInfoV2 +from huaweicloudsdkosm.v2.model.recommend_word import RecommendWord from huaweicloudsdkosm.v2.model.region import Region +from huaweicloudsdkosm.v2.model.relation_theme import RelationTheme +from huaweicloudsdkosm.v2.model.relevance_qapair import RelevanceQapair from huaweicloudsdkosm.v2.model.revoke_message_request import RevokeMessageRequest from huaweicloudsdkosm.v2.model.revoke_message_response import RevokeMessageResponse from huaweicloudsdkosm.v2.model.satisfaction_dimension_simple_info_v2 import SatisfactionDimensionSimpleInfoV2 +from huaweicloudsdkosm.v2.model.search_articles_req import SearchArticlesReq +from huaweicloudsdkosm.v2.model.search_notices_req import SearchNoticesReq +from huaweicloudsdkosm.v2.model.search_qa_pairs_req import SearchQaPairsReq +from huaweicloudsdkosm.v2.model.search_tools_req import SearchToolsReq from huaweicloudsdkosm.v2.model.send_verify_code_req import SendVerifyCodeReq from huaweicloudsdkosm.v2.model.send_verify_codes_request import SendVerifyCodesRequest from huaweicloudsdkosm.v2.model.send_verify_codes_response import SendVerifyCodesResponse +from huaweicloudsdkosm.v2.model.session_ask_question_req import SessionAskQuestionReq from huaweicloudsdkosm.v2.model.severity_v2_do import SeverityV2Do from huaweicloudsdkosm.v2.model.show_accessory_limits_request import ShowAccessoryLimitsRequest from huaweicloudsdkosm.v2.model.show_accessory_limits_response import ShowAccessoryLimitsResponse +from huaweicloudsdkosm.v2.model.show_associated_questions_request import ShowAssociatedQuestionsRequest +from huaweicloudsdkosm.v2.model.show_associated_questions_response import ShowAssociatedQuestionsResponse from huaweicloudsdkosm.v2.model.show_authorization_detail_request import ShowAuthorizationDetailRequest from huaweicloudsdkosm.v2.model.show_authorization_detail_response import ShowAuthorizationDetailResponse from huaweicloudsdkosm.v2.model.show_case_detail_request import ShowCaseDetailRequest @@ -169,22 +244,33 @@ from huaweicloudsdkosm.v2.model.show_case_status_request import ShowCaseStatusRe from huaweicloudsdkosm.v2.model.show_case_status_response import ShowCaseStatusResponse from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_request import ShowCustomerPrivilegePolicyRequest from huaweicloudsdkosm.v2.model.show_customer_privilege_policy_response import ShowCustomerPrivilegePolicyResponse +from huaweicloudsdkosm.v2.model.show_download_accessory_url_request import ShowDownloadAccessoryUrlRequest +from huaweicloudsdkosm.v2.model.show_download_accessory_url_response import ShowDownloadAccessoryUrlResponse from huaweicloudsdkosm.v2.model.show_latest_published_agreement_request import ShowLatestPublishedAgreementRequest from huaweicloudsdkosm.v2.model.show_latest_published_agreement_response import ShowLatestPublishedAgreementResponse from huaweicloudsdkosm.v2.model.show_partners_cases_privilege_request import ShowPartnersCasesPrivilegeRequest from huaweicloudsdkosm.v2.model.show_partners_cases_privilege_response import ShowPartnersCasesPrivilegeResponse from huaweicloudsdkosm.v2.model.show_partners_service_info_request import ShowPartnersServiceInfoRequest from huaweicloudsdkosm.v2.model.show_partners_service_info_response import ShowPartnersServiceInfoResponse +from huaweicloudsdkosm.v2.model.show_qa_pair_detail_request import ShowQaPairDetailRequest +from huaweicloudsdkosm.v2.model.show_qa_pair_detail_response import ShowQaPairDetailResponse +from huaweicloudsdkosm.v2.model.show_qa_pairs_request import ShowQaPairsRequest +from huaweicloudsdkosm.v2.model.show_qa_pairs_response import ShowQaPairsResponse from huaweicloudsdkosm.v2.model.show_signed_latest_published_agreement_request import ShowSignedLatestPublishedAgreementRequest from huaweicloudsdkosm.v2.model.show_signed_latest_published_agreement_response import ShowSignedLatestPublishedAgreementResponse +from huaweicloudsdkosm.v2.model.show_theme_request import ShowThemeRequest +from huaweicloudsdkosm.v2.model.show_theme_response import ShowThemeResponse from huaweicloudsdkosm.v2.model.sign_agreement_req import SignAgreementReq from huaweicloudsdkosm.v2.model.sign_published_agreement_request import SignPublishedAgreementRequest from huaweicloudsdkosm.v2.model.sign_published_agreement_response import SignPublishedAgreementResponse from huaweicloudsdkosm.v2.model.simple_accessory_v2 import SimpleAccessoryV2 from huaweicloudsdkosm.v2.model.simple_incident_business_type_v2 import SimpleIncidentBusinessTypeV2 +from huaweicloudsdkosm.v2.model.simple_qa_pair import SimpleQaPair from huaweicloudsdkosm.v2.model.sub_cutomer_info_v2 import SubCutomerInfoV2 +from huaweicloudsdkosm.v2.model.submit_diagnose_job_req import SubmitDiagnoseJobReq from huaweicloudsdkosm.v2.model.tenant_agree_auth_detail_v2 import TenantAgreeAuthDetailV2 from huaweicloudsdkosm.v2.model.tenant_config_v2 import TenantConfigV2 +from huaweicloudsdkosm.v2.model.tool import Tool from huaweicloudsdkosm.v2.model.update_authorizations_request import UpdateAuthorizationsRequest from huaweicloudsdkosm.v2.model.update_authorizations_response import UpdateAuthorizationsResponse from huaweicloudsdkosm.v2.model.update_case_contact_info_req import UpdateCaseContactInfoReq diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer.py new file mode 100755 index 000000000..7e0f15e7c --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Answer: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'content': 'str', + 'id': 'str', + 'tags': 'list[str]', + 'answer_type': 'str', + 'qa_flow_entry': 'CbsFlowEntry' + } + + attribute_map = { + 'content': 'content', + 'id': 'id', + 'tags': 'tags', + 'answer_type': 'answer_type', + 'qa_flow_entry': 'qa_flow_entry' + } + + def __init__(self, content=None, id=None, tags=None, answer_type=None, qa_flow_entry=None): + """Answer + + The model defined in huaweicloud sdk + + :param content: 答案内容 + :type content: str + :param id: 答案Id + :type id: str + :param tags: 标签列表 + :type tags: list[str] + :param answer_type: - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR: + :type answer_type: str + :param qa_flow_entry: + :type qa_flow_entry: :class:`huaweicloudsdkosm.v2.CbsFlowEntry` + """ + + + + self._content = None + self._id = None + self._tags = None + self._answer_type = None + self._qa_flow_entry = None + self.discriminator = None + + if content is not None: + self.content = content + if id is not None: + self.id = id + if tags is not None: + self.tags = tags + if answer_type is not None: + self.answer_type = answer_type + if qa_flow_entry is not None: + self.qa_flow_entry = qa_flow_entry + + @property + def content(self): + """Gets the content of this Answer. + + 答案内容 + + :return: The content of this Answer. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this Answer. + + 答案内容 + + :param content: The content of this Answer. + :type content: str + """ + self._content = content + + @property + def id(self): + """Gets the id of this Answer. + + 答案Id + + :return: The id of this Answer. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Answer. + + 答案Id + + :param id: The id of this Answer. + :type id: str + """ + self._id = id + + @property + def tags(self): + """Gets the tags of this Answer. + + 标签列表 + + :return: The tags of this Answer. + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this Answer. + + 标签列表 + + :param tags: The tags of this Answer. + :type tags: list[str] + """ + self._tags = tags + + @property + def answer_type(self): + """Gets the answer_type of this Answer. + + - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR: + + :return: The answer_type of this Answer. + :rtype: str + """ + return self._answer_type + + @answer_type.setter + def answer_type(self, answer_type): + """Sets the answer_type of this Answer. + + - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR: + + :param answer_type: The answer_type of this Answer. + :type answer_type: str + """ + self._answer_type = answer_type + + @property + def qa_flow_entry(self): + """Gets the qa_flow_entry of this Answer. + + :return: The qa_flow_entry of this Answer. + :rtype: :class:`huaweicloudsdkosm.v2.CbsFlowEntry` + """ + return self._qa_flow_entry + + @qa_flow_entry.setter + def qa_flow_entry(self, qa_flow_entry): + """Sets the qa_flow_entry of this Answer. + + :param qa_flow_entry: The qa_flow_entry of this Answer. + :type qa_flow_entry: :class:`huaweicloudsdkosm.v2.CbsFlowEntry` + """ + self._qa_flow_entry = qa_flow_entry + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Answer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_detail.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_detail.py new file mode 100755 index 000000000..0390a5d2e --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_detail.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AnswerDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'qabot_answers': 'list[QabotAnswer]', + 'qa_flow_answers': 'QaFlowHitResult', + 'chat_answer': 'str', + 'graph_answer': 'QaGraphAnswer' + } + + attribute_map = { + 'qabot_answers': 'qabot_answers', + 'qa_flow_answers': 'qa_flow_answers', + 'chat_answer': 'chat_answer', + 'graph_answer': 'graph_answer' + } + + def __init__(self, qabot_answers=None, qa_flow_answers=None, chat_answer=None, graph_answer=None): + """AnswerDetail + + The model defined in huaweicloud sdk + + :param qabot_answers: 答案列表 + :type qabot_answers: list[:class:`huaweicloudsdkosm.v2.QabotAnswer`] + :param qa_flow_answers: + :type qa_flow_answers: :class:`huaweicloudsdkosm.v2.QaFlowHitResult` + :param chat_answer: 问题 + :type chat_answer: str + :param graph_answer: + :type graph_answer: :class:`huaweicloudsdkosm.v2.QaGraphAnswer` + """ + + + + self._qabot_answers = None + self._qa_flow_answers = None + self._chat_answer = None + self._graph_answer = None + self.discriminator = None + + if qabot_answers is not None: + self.qabot_answers = qabot_answers + if qa_flow_answers is not None: + self.qa_flow_answers = qa_flow_answers + if chat_answer is not None: + self.chat_answer = chat_answer + if graph_answer is not None: + self.graph_answer = graph_answer + + @property + def qabot_answers(self): + """Gets the qabot_answers of this AnswerDetail. + + 答案列表 + + :return: The qabot_answers of this AnswerDetail. + :rtype: list[:class:`huaweicloudsdkosm.v2.QabotAnswer`] + """ + return self._qabot_answers + + @qabot_answers.setter + def qabot_answers(self, qabot_answers): + """Sets the qabot_answers of this AnswerDetail. + + 答案列表 + + :param qabot_answers: The qabot_answers of this AnswerDetail. + :type qabot_answers: list[:class:`huaweicloudsdkosm.v2.QabotAnswer`] + """ + self._qabot_answers = qabot_answers + + @property + def qa_flow_answers(self): + """Gets the qa_flow_answers of this AnswerDetail. + + :return: The qa_flow_answers of this AnswerDetail. + :rtype: :class:`huaweicloudsdkosm.v2.QaFlowHitResult` + """ + return self._qa_flow_answers + + @qa_flow_answers.setter + def qa_flow_answers(self, qa_flow_answers): + """Sets the qa_flow_answers of this AnswerDetail. + + :param qa_flow_answers: The qa_flow_answers of this AnswerDetail. + :type qa_flow_answers: :class:`huaweicloudsdkosm.v2.QaFlowHitResult` + """ + self._qa_flow_answers = qa_flow_answers + + @property + def chat_answer(self): + """Gets the chat_answer of this AnswerDetail. + + 问题 + + :return: The chat_answer of this AnswerDetail. + :rtype: str + """ + return self._chat_answer + + @chat_answer.setter + def chat_answer(self, chat_answer): + """Sets the chat_answer of this AnswerDetail. + + 问题 + + :param chat_answer: The chat_answer of this AnswerDetail. + :type chat_answer: str + """ + self._chat_answer = chat_answer + + @property + def graph_answer(self): + """Gets the graph_answer of this AnswerDetail. + + :return: The graph_answer of this AnswerDetail. + :rtype: :class:`huaweicloudsdkosm.v2.QaGraphAnswer` + """ + return self._graph_answer + + @graph_answer.setter + def graph_answer(self, graph_answer): + """Sets the graph_answer of this AnswerDetail. + + :param graph_answer: The graph_answer of this AnswerDetail. + :type graph_answer: :class:`huaweicloudsdkosm.v2.QaGraphAnswer` + """ + self._graph_answer = graph_answer + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnswerDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_info.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_info.py new file mode 100755 index 000000000..5e733070f --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_info.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AnswerInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'answer': 'str', + 'link': 'str', + 'question': 'str', + 'qa_pair_id': 'str', + 'relevance_details': 'list[RelevanceQapair]' + } + + attribute_map = { + 'answer': 'answer', + 'link': 'link', + 'question': 'question', + 'qa_pair_id': 'qa_pair_id', + 'relevance_details': 'relevance_details' + } + + def __init__(self, answer=None, link=None, question=None, qa_pair_id=None, relevance_details=None): + """AnswerInfo + + The model defined in huaweicloud sdk + + :param answer: 答案 + :type answer: str + :param link: 链接 + :type link: str + :param question: 问题 + :type question: str + :param qa_pair_id: 语料Id + :type qa_pair_id: str + :param relevance_details: 相关问题详情列表 + :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + + + + self._answer = None + self._link = None + self._question = None + self._qa_pair_id = None + self._relevance_details = None + self.discriminator = None + + if answer is not None: + self.answer = answer + if link is not None: + self.link = link + if question is not None: + self.question = question + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + if relevance_details is not None: + self.relevance_details = relevance_details + + @property + def answer(self): + """Gets the answer of this AnswerInfo. + + 答案 + + :return: The answer of this AnswerInfo. + :rtype: str + """ + return self._answer + + @answer.setter + def answer(self, answer): + """Sets the answer of this AnswerInfo. + + 答案 + + :param answer: The answer of this AnswerInfo. + :type answer: str + """ + self._answer = answer + + @property + def link(self): + """Gets the link of this AnswerInfo. + + 链接 + + :return: The link of this AnswerInfo. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this AnswerInfo. + + 链接 + + :param link: The link of this AnswerInfo. + :type link: str + """ + self._link = link + + @property + def question(self): + """Gets the question of this AnswerInfo. + + 问题 + + :return: The question of this AnswerInfo. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this AnswerInfo. + + 问题 + + :param question: The question of this AnswerInfo. + :type question: str + """ + self._question = question + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this AnswerInfo. + + 语料Id + + :return: The qa_pair_id of this AnswerInfo. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this AnswerInfo. + + 语料Id + + :param qa_pair_id: The qa_pair_id of this AnswerInfo. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_id + + @property + def relevance_details(self): + """Gets the relevance_details of this AnswerInfo. + + 相关问题详情列表 + + :return: The relevance_details of this AnswerInfo. + :rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + return self._relevance_details + + @relevance_details.setter + def relevance_details(self, relevance_details): + """Sets the relevance_details of this AnswerInfo. + + 相关问题详情列表 + + :param relevance_details: The relevance_details of this AnswerInfo. + :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + self._relevance_details = relevance_details + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnswerInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_qa_pair.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_qa_pair.py new file mode 100755 index 000000000..662130093 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/answer_qa_pair.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AnswerQaPair: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'score': 'float', + 'answer': 'str', + 'domain': 'str', + 'link': 'str', + 'question': 'str', + 'qa_pair_id': 'str', + 'relevance_details': 'list[RelevanceQapair]', + 'task_complete': 'bool' + } + + attribute_map = { + 'score': 'score', + 'answer': 'answer', + 'domain': 'domain', + 'link': 'link', + 'question': 'question', + 'qa_pair_id': 'qa_pair_id', + 'relevance_details': 'relevance_details', + 'task_complete': 'task_complete' + } + + def __init__(self, score=None, answer=None, domain=None, link=None, question=None, qa_pair_id=None, relevance_details=None, task_complete=None): + """AnswerQaPair + + The model defined in huaweicloud sdk + + :param score: 相似度得分 + :type score: float + :param answer: 答案 + :type answer: str + :param domain: 主题 + :type domain: str + :param link: 链接 + :type link: str + :param question: 问题 + :type question: str + :param qa_pair_id: 语料Id + :type qa_pair_id: str + :param relevance_details: 相关问题详情列表 + :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + :param task_complete: 技能意图识别是否结束 + :type task_complete: bool + """ + + + + self._score = None + self._answer = None + self._domain = None + self._link = None + self._question = None + self._qa_pair_id = None + self._relevance_details = None + self._task_complete = None + self.discriminator = None + + if score is not None: + self.score = score + if answer is not None: + self.answer = answer + if domain is not None: + self.domain = domain + if link is not None: + self.link = link + if question is not None: + self.question = question + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + if relevance_details is not None: + self.relevance_details = relevance_details + if task_complete is not None: + self.task_complete = task_complete + + @property + def score(self): + """Gets the score of this AnswerQaPair. + + 相似度得分 + + :return: The score of this AnswerQaPair. + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this AnswerQaPair. + + 相似度得分 + + :param score: The score of this AnswerQaPair. + :type score: float + """ + self._score = score + + @property + def answer(self): + """Gets the answer of this AnswerQaPair. + + 答案 + + :return: The answer of this AnswerQaPair. + :rtype: str + """ + return self._answer + + @answer.setter + def answer(self, answer): + """Sets the answer of this AnswerQaPair. + + 答案 + + :param answer: The answer of this AnswerQaPair. + :type answer: str + """ + self._answer = answer + + @property + def domain(self): + """Gets the domain of this AnswerQaPair. + + 主题 + + :return: The domain of this AnswerQaPair. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AnswerQaPair. + + 主题 + + :param domain: The domain of this AnswerQaPair. + :type domain: str + """ + self._domain = domain + + @property + def link(self): + """Gets the link of this AnswerQaPair. + + 链接 + + :return: The link of this AnswerQaPair. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this AnswerQaPair. + + 链接 + + :param link: The link of this AnswerQaPair. + :type link: str + """ + self._link = link + + @property + def question(self): + """Gets the question of this AnswerQaPair. + + 问题 + + :return: The question of this AnswerQaPair. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this AnswerQaPair. + + 问题 + + :param question: The question of this AnswerQaPair. + :type question: str + """ + self._question = question + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this AnswerQaPair. + + 语料Id + + :return: The qa_pair_id of this AnswerQaPair. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this AnswerQaPair. + + 语料Id + + :param qa_pair_id: The qa_pair_id of this AnswerQaPair. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_id + + @property + def relevance_details(self): + """Gets the relevance_details of this AnswerQaPair. + + 相关问题详情列表 + + :return: The relevance_details of this AnswerQaPair. + :rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + return self._relevance_details + + @relevance_details.setter + def relevance_details(self, relevance_details): + """Sets the relevance_details of this AnswerQaPair. + + 相关问题详情列表 + + :param relevance_details: The relevance_details of this AnswerQaPair. + :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + self._relevance_details = relevance_details + + @property + def task_complete(self): + """Gets the task_complete of this AnswerQaPair. + + 技能意图识别是否结束 + + :return: The task_complete of this AnswerQaPair. + :rtype: bool + """ + return self._task_complete + + @task_complete.setter + def task_complete(self, task_complete): + """Sets the task_complete of this AnswerQaPair. + + 技能意图识别是否结束 + + :param task_complete: The task_complete of this AnswerQaPair. + :type task_complete: bool + """ + self._task_complete = task_complete + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnswerQaPair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/article.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/article.py new file mode 100755 index 000000000..368171bd1 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/article.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Article: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'code': 'str', + 'name': 'str', + 'url': 'str', + 'create_time': 'int', + 'update_time': 'int', + 'product_type_id': 'str', + 'business_type_id': 'str', + 'problem_type_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'code': 'code', + 'name': 'name', + 'url': 'url', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'product_type_id': 'product_type_id', + 'business_type_id': 'business_type_id', + 'problem_type_id': 'problem_type_id' + } + + def __init__(self, id=None, code=None, name=None, url=None, create_time=None, update_time=None, product_type_id=None, business_type_id=None, problem_type_id=None): + """Article + + The model defined in huaweicloud sdk + + :param id: 案例Id + :type id: str + :param code: 案例编码 + :type code: str + :param name: 案例名称 + :type name: str + :param url: 案例链接 + :type url: str + :param create_time: 创建时间 + :type create_time: int + :param update_time: 更新时间 + :type update_time: int + :param product_type_id: 产品类型Id + :type product_type_id: str + :param business_type_id: 业务类型Id + :type business_type_id: str + :param problem_type_id: 问题类型Id + :type problem_type_id: str + """ + + + + self._id = None + self._code = None + self._name = None + self._url = None + self._create_time = None + self._update_time = None + self._product_type_id = None + self._business_type_id = None + self._problem_type_id = None + self.discriminator = None + + if id is not None: + self.id = id + if code is not None: + self.code = code + if name is not None: + self.name = name + if url is not None: + self.url = url + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if product_type_id is not None: + self.product_type_id = product_type_id + if business_type_id is not None: + self.business_type_id = business_type_id + if problem_type_id is not None: + self.problem_type_id = problem_type_id + + @property + def id(self): + """Gets the id of this Article. + + 案例Id + + :return: The id of this Article. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Article. + + 案例Id + + :param id: The id of this Article. + :type id: str + """ + self._id = id + + @property + def code(self): + """Gets the code of this Article. + + 案例编码 + + :return: The code of this Article. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this Article. + + 案例编码 + + :param code: The code of this Article. + :type code: str + """ + self._code = code + + @property + def name(self): + """Gets the name of this Article. + + 案例名称 + + :return: The name of this Article. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Article. + + 案例名称 + + :param name: The name of this Article. + :type name: str + """ + self._name = name + + @property + def url(self): + """Gets the url of this Article. + + 案例链接 + + :return: The url of this Article. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Article. + + 案例链接 + + :param url: The url of this Article. + :type url: str + """ + self._url = url + + @property + def create_time(self): + """Gets the create_time of this Article. + + 创建时间 + + :return: The create_time of this Article. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this Article. + + 创建时间 + + :param create_time: The create_time of this Article. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this Article. + + 更新时间 + + :return: The update_time of this Article. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this Article. + + 更新时间 + + :param update_time: The update_time of this Article. + :type update_time: int + """ + self._update_time = update_time + + @property + def product_type_id(self): + """Gets the product_type_id of this Article. + + 产品类型Id + + :return: The product_type_id of this Article. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this Article. + + 产品类型Id + + :param product_type_id: The product_type_id of this Article. + :type product_type_id: str + """ + self._product_type_id = product_type_id + + @property + def business_type_id(self): + """Gets the business_type_id of this Article. + + 业务类型Id + + :return: The business_type_id of this Article. + :rtype: str + """ + return self._business_type_id + + @business_type_id.setter + def business_type_id(self, business_type_id): + """Sets the business_type_id of this Article. + + 业务类型Id + + :param business_type_id: The business_type_id of this Article. + :type business_type_id: str + """ + self._business_type_id = business_type_id + + @property + def problem_type_id(self): + """Gets the problem_type_id of this Article. + + 问题类型Id + + :return: The problem_type_id of this Article. + :rtype: str + """ + return self._problem_type_id + + @problem_type_id.setter + def problem_type_id(self, problem_type_id): + """Sets the problem_type_id of this Article. + + 问题类型Id + + :param problem_type_id: The problem_type_id of this Article. + :type problem_type_id: str + """ + self._problem_type_id = problem_type_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, Article): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/ask_question_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/ask_question_req.py new file mode 100755 index 000000000..36e7b65d8 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/ask_question_req.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AskQuestionReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'domains': 'list[str]', + 'top': 'int', + 'session_id': 'str', + 'source_qa_pair_id': 'str', + 'operate_type': 'int', + 'threshold_enable': 'str', + 'product_type_id': 'str' + } + + attribute_map = { + 'question': 'question', + 'domains': 'domains', + 'top': 'top', + 'session_id': 'session_id', + 'source_qa_pair_id': 'source_qa_pair_id', + 'operate_type': 'operate_type', + 'threshold_enable': 'threshold_enable', + 'product_type_id': 'product_type_id' + } + + def __init__(self, question=None, domains=None, top=None, session_id=None, source_qa_pair_id=None, operate_type=None, threshold_enable=None, product_type_id=None): + """AskQuestionReq + + The model defined in huaweicloud sdk + + :param question: 用户输入问题 + :type question: str + :param domains: 主题列表 + :type domains: list[str] + :param top: 返回匹配度最高的数据条数 + :type top: int + :param session_id: 会话ID + :type session_id: str + :param source_qa_pair_id: 语料ID + :type source_qa_pair_id: str + :param operate_type: 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示 + :type operate_type: int + :param threshold_enable: 是否启用内部阈值开关 + :type threshold_enable: str + :param product_type_id: 产品类型id + :type product_type_id: str + """ + + + + self._question = None + self._domains = None + self._top = None + self._session_id = None + self._source_qa_pair_id = None + self._operate_type = None + self._threshold_enable = None + self._product_type_id = None + self.discriminator = None + + self.question = question + if domains is not None: + self.domains = domains + if top is not None: + self.top = top + self.session_id = session_id + if source_qa_pair_id is not None: + self.source_qa_pair_id = source_qa_pair_id + if operate_type is not None: + self.operate_type = operate_type + if threshold_enable is not None: + self.threshold_enable = threshold_enable + if product_type_id is not None: + self.product_type_id = product_type_id + + @property + def question(self): + """Gets the question of this AskQuestionReq. + + 用户输入问题 + + :return: The question of this AskQuestionReq. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this AskQuestionReq. + + 用户输入问题 + + :param question: The question of this AskQuestionReq. + :type question: str + """ + self._question = question + + @property + def domains(self): + """Gets the domains of this AskQuestionReq. + + 主题列表 + + :return: The domains of this AskQuestionReq. + :rtype: list[str] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this AskQuestionReq. + + 主题列表 + + :param domains: The domains of this AskQuestionReq. + :type domains: list[str] + """ + self._domains = domains + + @property + def top(self): + """Gets the top of this AskQuestionReq. + + 返回匹配度最高的数据条数 + + :return: The top of this AskQuestionReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this AskQuestionReq. + + 返回匹配度最高的数据条数 + + :param top: The top of this AskQuestionReq. + :type top: int + """ + self._top = top + + @property + def session_id(self): + """Gets the session_id of this AskQuestionReq. + + 会话ID + + :return: The session_id of this AskQuestionReq. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this AskQuestionReq. + + 会话ID + + :param session_id: The session_id of this AskQuestionReq. + :type session_id: str + """ + self._session_id = session_id + + @property + def source_qa_pair_id(self): + """Gets the source_qa_pair_id of this AskQuestionReq. + + 语料ID + + :return: The source_qa_pair_id of this AskQuestionReq. + :rtype: str + """ + return self._source_qa_pair_id + + @source_qa_pair_id.setter + def source_qa_pair_id(self, source_qa_pair_id): + """Sets the source_qa_pair_id of this AskQuestionReq. + + 语料ID + + :param source_qa_pair_id: The source_qa_pair_id of this AskQuestionReq. + :type source_qa_pair_id: str + """ + self._source_qa_pair_id = source_qa_pair_id + + @property + def operate_type(self): + """Gets the operate_type of this AskQuestionReq. + + 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示 + + :return: The operate_type of this AskQuestionReq. + :rtype: int + """ + return self._operate_type + + @operate_type.setter + def operate_type(self, operate_type): + """Sets the operate_type of this AskQuestionReq. + + 操作类型:0-手动输入,1-单击热点问题,2-单击猜你想问,3-单击推荐问题,4-单击问题提示 + + :param operate_type: The operate_type of this AskQuestionReq. + :type operate_type: int + """ + self._operate_type = operate_type + + @property + def threshold_enable(self): + """Gets the threshold_enable of this AskQuestionReq. + + 是否启用内部阈值开关 + + :return: The threshold_enable of this AskQuestionReq. + :rtype: str + """ + return self._threshold_enable + + @threshold_enable.setter + def threshold_enable(self, threshold_enable): + """Sets the threshold_enable of this AskQuestionReq. + + 是否启用内部阈值开关 + + :param threshold_enable: The threshold_enable of this AskQuestionReq. + :type threshold_enable: str + """ + self._threshold_enable = threshold_enable + + @property + def product_type_id(self): + """Gets the product_type_id of this AskQuestionReq. + + 产品类型id + + :return: The product_type_id of this AskQuestionReq. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this AskQuestionReq. + + 产品类型id + + :param product_type_id: The product_type_id of this AskQuestionReq. + :type product_type_id: str + """ + self._product_type_id = product_type_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, AskQuestionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/cbs_flow_entry.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/cbs_flow_entry.py new file mode 100755 index 000000000..5c9fa492e --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/cbs_flow_entry.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CbsFlowEntry: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'qa_flow_id': 'str', + 'start_node_id': 'str' + } + + attribute_map = { + 'qa_flow_id': 'qa_flow_id', + 'start_node_id': 'start_node_id' + } + + def __init__(self, qa_flow_id=None, start_node_id=None): + """CbsFlowEntry + + The model defined in huaweicloud sdk + + :param qa_flow_id: 问题流程id + :type qa_flow_id: str + :param start_node_id: 开始节点id + :type start_node_id: str + """ + + + + self._qa_flow_id = None + self._start_node_id = None + self.discriminator = None + + if qa_flow_id is not None: + self.qa_flow_id = qa_flow_id + if start_node_id is not None: + self.start_node_id = start_node_id + + @property + def qa_flow_id(self): + """Gets the qa_flow_id of this CbsFlowEntry. + + 问题流程id + + :return: The qa_flow_id of this CbsFlowEntry. + :rtype: str + """ + return self._qa_flow_id + + @qa_flow_id.setter + def qa_flow_id(self, qa_flow_id): + """Sets the qa_flow_id of this CbsFlowEntry. + + 问题流程id + + :param qa_flow_id: The qa_flow_id of this CbsFlowEntry. + :type qa_flow_id: str + """ + self._qa_flow_id = qa_flow_id + + @property + def start_node_id(self): + """Gets the start_node_id of this CbsFlowEntry. + + 开始节点id + + :return: The start_node_id of this CbsFlowEntry. + :rtype: str + """ + return self._start_node_id + + @start_node_id.setter + def start_node_id(self, start_node_id): + """Sets the start_node_id of this CbsFlowEntry. + + 开始节点id + + :param start_node_id: The start_node_id of this CbsFlowEntry. + :type start_node_id: str + """ + self._start_node_id = start_node_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, CbsFlowEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/contact_way_info_v2.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/contact_way_info_v2.py new file mode 100755 index 000000000..e8d8bff77 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/contact_way_info_v2.py @@ -0,0 +1,346 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ContactWayInfoV2: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'mobile': 'str', + 'mail': 'str', + 'area': 'str', + 'address': 'str', + 'id_type': 'int', + 'company_name': 'str', + 'id_files': 'list[str]', + 'other_way': 'str' + } + + attribute_map = { + 'name': 'name', + 'mobile': 'mobile', + 'mail': 'mail', + 'area': 'area', + 'address': 'address', + 'id_type': 'id_type', + 'company_name': 'company_name', + 'id_files': 'id_files', + 'other_way': 'other_way' + } + + def __init__(self, name=None, mobile=None, mail=None, area=None, address=None, id_type=None, company_name=None, id_files=None, other_way=None): + """ContactWayInfoV2 + + The model defined in huaweicloud sdk + + :param name: 姓名或名称 + :type name: str + :param mobile: 联系电话 + :type mobile: str + :param mail: 联系邮箱 + :type mail: str + :param area: 国家/地区 + :type area: str + :param address: 地址 + :type address: str + :param id_type: 身份。企业 10;个人 20;授权代理人 21;律师 22;知识产权所有人 23 + :type id_type: int + :param company_name: 公司名称 + :type company_name: str + :param id_files: 身份证明附件列表,至少1个,最多3个 + :type id_files: list[str] + :param other_way: 其他联系方式 + :type other_way: str + """ + + + + self._name = None + self._mobile = None + self._mail = None + self._area = None + self._address = None + self._id_type = None + self._company_name = None + self._id_files = None + self._other_way = None + self.discriminator = None + + self.name = name + self.mobile = mobile + if mail is not None: + self.mail = mail + if area is not None: + self.area = area + if address is not None: + self.address = address + self.id_type = id_type + if company_name is not None: + self.company_name = company_name + self.id_files = id_files + if other_way is not None: + self.other_way = other_way + + @property + def name(self): + """Gets the name of this ContactWayInfoV2. + + 姓名或名称 + + :return: The name of this ContactWayInfoV2. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ContactWayInfoV2. + + 姓名或名称 + + :param name: The name of this ContactWayInfoV2. + :type name: str + """ + self._name = name + + @property + def mobile(self): + """Gets the mobile of this ContactWayInfoV2. + + 联系电话 + + :return: The mobile of this ContactWayInfoV2. + :rtype: str + """ + return self._mobile + + @mobile.setter + def mobile(self, mobile): + """Sets the mobile of this ContactWayInfoV2. + + 联系电话 + + :param mobile: The mobile of this ContactWayInfoV2. + :type mobile: str + """ + self._mobile = mobile + + @property + def mail(self): + """Gets the mail of this ContactWayInfoV2. + + 联系邮箱 + + :return: The mail of this ContactWayInfoV2. + :rtype: str + """ + return self._mail + + @mail.setter + def mail(self, mail): + """Sets the mail of this ContactWayInfoV2. + + 联系邮箱 + + :param mail: The mail of this ContactWayInfoV2. + :type mail: str + """ + self._mail = mail + + @property + def area(self): + """Gets the area of this ContactWayInfoV2. + + 国家/地区 + + :return: The area of this ContactWayInfoV2. + :rtype: str + """ + return self._area + + @area.setter + def area(self, area): + """Sets the area of this ContactWayInfoV2. + + 国家/地区 + + :param area: The area of this ContactWayInfoV2. + :type area: str + """ + self._area = area + + @property + def address(self): + """Gets the address of this ContactWayInfoV2. + + 地址 + + :return: The address of this ContactWayInfoV2. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this ContactWayInfoV2. + + 地址 + + :param address: The address of this ContactWayInfoV2. + :type address: str + """ + self._address = address + + @property + def id_type(self): + """Gets the id_type of this ContactWayInfoV2. + + 身份。企业 10;个人 20;授权代理人 21;律师 22;知识产权所有人 23 + + :return: The id_type of this ContactWayInfoV2. + :rtype: int + """ + return self._id_type + + @id_type.setter + def id_type(self, id_type): + """Sets the id_type of this ContactWayInfoV2. + + 身份。企业 10;个人 20;授权代理人 21;律师 22;知识产权所有人 23 + + :param id_type: The id_type of this ContactWayInfoV2. + :type id_type: int + """ + self._id_type = id_type + + @property + def company_name(self): + """Gets the company_name of this ContactWayInfoV2. + + 公司名称 + + :return: The company_name of this ContactWayInfoV2. + :rtype: str + """ + return self._company_name + + @company_name.setter + def company_name(self, company_name): + """Sets the company_name of this ContactWayInfoV2. + + 公司名称 + + :param company_name: The company_name of this ContactWayInfoV2. + :type company_name: str + """ + self._company_name = company_name + + @property + def id_files(self): + """Gets the id_files of this ContactWayInfoV2. + + 身份证明附件列表,至少1个,最多3个 + + :return: The id_files of this ContactWayInfoV2. + :rtype: list[str] + """ + return self._id_files + + @id_files.setter + def id_files(self, id_files): + """Sets the id_files of this ContactWayInfoV2. + + 身份证明附件列表,至少1个,最多3个 + + :param id_files: The id_files of this ContactWayInfoV2. + :type id_files: list[str] + """ + self._id_files = id_files + + @property + def other_way(self): + """Gets the other_way of this ContactWayInfoV2. + + 其他联系方式 + + :return: The other_way of this ContactWayInfoV2. + :rtype: str + """ + return self._other_way + + @other_way.setter + def other_way(self, other_way): + """Sets the other_way of this ContactWayInfoV2. + + 其他联系方式 + + :param other_way: The other_way of this ContactWayInfoV2. + :type other_way: str + """ + self._other_way = other_way + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContactWayInfoV2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_request.py new file mode 100755 index 000000000..448f02b7b --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_request.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAskQuestionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'body': 'AskQuestionReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, body=None): + """CreateAskQuestionRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param body: Body of the CreateAskQuestionRequest + :type body: :class:`huaweicloudsdkosm.v2.AskQuestionReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._body = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this CreateAskQuestionRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this CreateAskQuestionRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this CreateAskQuestionRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this CreateAskQuestionRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this CreateAskQuestionRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this CreateAskQuestionRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this CreateAskQuestionRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this CreateAskQuestionRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this CreateAskQuestionRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this CreateAskQuestionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateAskQuestionRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this CreateAskQuestionRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateAskQuestionRequest. + + :return: The body of this CreateAskQuestionRequest. + :rtype: :class:`huaweicloudsdkosm.v2.AskQuestionReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAskQuestionRequest. + + :param body: The body of this CreateAskQuestionRequest. + :type body: :class:`huaweicloudsdkosm.v2.AskQuestionReq` + """ + 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, CreateAskQuestionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_response.py new file mode 100755 index 000000000..1d5f7109e --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_ask_question_response.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAskQuestionResponse(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 = { + 'question': 'str', + 'answers': 'list[AnswerQaPair]', + 'error_code': 'str', + 'error_msg': 'str', + 'request_id': 'str' + } + + attribute_map = { + 'question': 'question', + 'answers': 'answers', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'request_id': 'request_id' + } + + def __init__(self, question=None, answers=None, error_code=None, error_msg=None, request_id=None): + """CreateAskQuestionResponse + + The model defined in huaweicloud sdk + + :param question: 问题 + :type question: str + :param answers: 答案列表 + :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param request_id: 请求Id + :type request_id: str + """ + + super(CreateAskQuestionResponse, self).__init__() + + self._question = None + self._answers = None + self._error_code = None + self._error_msg = None + self._request_id = None + self.discriminator = None + + if question is not None: + self.question = question + if answers is not None: + self.answers = answers + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if request_id is not None: + self.request_id = request_id + + @property + def question(self): + """Gets the question of this CreateAskQuestionResponse. + + 问题 + + :return: The question of this CreateAskQuestionResponse. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this CreateAskQuestionResponse. + + 问题 + + :param question: The question of this CreateAskQuestionResponse. + :type question: str + """ + self._question = question + + @property + def answers(self): + """Gets the answers of this CreateAskQuestionResponse. + + 答案列表 + + :return: The answers of this CreateAskQuestionResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`] + """ + return self._answers + + @answers.setter + def answers(self, answers): + """Sets the answers of this CreateAskQuestionResponse. + + 答案列表 + + :param answers: The answers of this CreateAskQuestionResponse. + :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`] + """ + self._answers = answers + + @property + def error_code(self): + """Gets the error_code of this CreateAskQuestionResponse. + + 错误码 + + :return: The error_code of this CreateAskQuestionResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateAskQuestionResponse. + + 错误码 + + :param error_code: The error_code of this CreateAskQuestionResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateAskQuestionResponse. + + 错误描述 + + :return: The error_msg of this CreateAskQuestionResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateAskQuestionResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateAskQuestionResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def request_id(self): + """Gets the request_id of this CreateAskQuestionResponse. + + 请求Id + + :return: The request_id of this CreateAskQuestionResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateAskQuestionResponse. + + 请求Id + + :param request_id: The request_id of this CreateAskQuestionResponse. + :type request_id: str + """ + self._request_id = 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, CreateAskQuestionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_request.py similarity index 62% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_request.py rename to huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_request.py index 15b61d06a..c6b598d0b 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_add_picture_request.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunAddPictureRequest: +class CreateAuthorizationRequest: """ Attributes: @@ -20,73 +20,73 @@ class RunAddPictureRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str', - 'body': 'AddPictureRequestReq' + 'case_id': 'str', + 'body': 'CreateUserCenterAuthorizationV2Req' } attribute_map = { - 'instance_name': 'instance_name', + 'case_id': 'case_id', 'body': 'body' } - def __init__(self, instance_name=None, body=None): - """RunAddPictureRequest + def __init__(self, case_id=None, body=None): + """CreateAuthorizationRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str - :param body: Body of the RunAddPictureRequest - :type body: :class:`huaweicloudsdkimagesearch.v1.AddPictureRequestReq` + :param case_id: 事件id + :type case_id: str + :param body: Body of the CreateAuthorizationRequest + :type body: :class:`huaweicloudsdkosm.v2.CreateUserCenterAuthorizationV2Req` """ - self._instance_name = None + self._case_id = None self._body = None self.discriminator = None - self.instance_name = instance_name + self.case_id = case_id if body is not None: self.body = body @property - def instance_name(self): - """Gets the instance_name of this RunAddPictureRequest. + def case_id(self): + """Gets the case_id of this CreateAuthorizationRequest. - 实例名称。 + 事件id - :return: The instance_name of this RunAddPictureRequest. + :return: The case_id of this CreateAuthorizationRequest. :rtype: str """ - return self._instance_name + return self._case_id - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunAddPictureRequest. + @case_id.setter + def case_id(self, case_id): + """Sets the case_id of this CreateAuthorizationRequest. - 实例名称。 + 事件id - :param instance_name: The instance_name of this RunAddPictureRequest. - :type instance_name: str + :param case_id: The case_id of this CreateAuthorizationRequest. + :type case_id: str """ - self._instance_name = instance_name + self._case_id = case_id @property def body(self): - """Gets the body of this RunAddPictureRequest. + """Gets the body of this CreateAuthorizationRequest. - :return: The body of this RunAddPictureRequest. - :rtype: :class:`huaweicloudsdkimagesearch.v1.AddPictureRequestReq` + :return: The body of this CreateAuthorizationRequest. + :rtype: :class:`huaweicloudsdkosm.v2.CreateUserCenterAuthorizationV2Req` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunAddPictureRequest. + """Sets the body of this CreateAuthorizationRequest. - :param body: The body of this RunAddPictureRequest. - :type body: :class:`huaweicloudsdkimagesearch.v1.AddPictureRequestReq` + :param body: The body of this CreateAuthorizationRequest. + :type body: :class:`huaweicloudsdkosm.v2.CreateUserCenterAuthorizationV2Req` """ self._body = body @@ -132,7 +132,7 @@ class RunAddPictureRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunAddPictureRequest): + if not isinstance(other, CreateAuthorizationRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_response.py similarity index 56% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_response.py rename to huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_response.py index e009299b6..3a6074df6 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_search_picture_response.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_authorization_response.py @@ -8,7 +8,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunSearchPictureResponse(SdkResponse): +class CreateAuthorizationResponse(SdkResponse): """ Attributes: @@ -20,80 +20,80 @@ class RunSearchPictureResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'count': 'int', - 'result': 'list[SearchPictureItem]' + 'error_code': 'str', + 'error_msg': 'str' } attribute_map = { - 'count': 'count', - 'result': 'result' + 'error_code': 'error_code', + 'error_msg': 'error_msg' } - def __init__(self, count=None, result=None): - """RunSearchPictureResponse + def __init__(self, error_code=None, error_msg=None): + """CreateAuthorizationResponse The model defined in huaweicloud sdk - :param count: 搜索结果总数。 - :type count: int - :param result: 搜索结果详情。 - :type result: list[:class:`huaweicloudsdkimagesearch.v1.SearchPictureItem`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str """ - super(RunSearchPictureResponse, self).__init__() + super(CreateAuthorizationResponse, self).__init__() - self._count = None - self._result = None + self._error_code = None + self._error_msg = None self.discriminator = None - if count is not None: - self.count = count - if result is not None: - self.result = result + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg @property - def count(self): - """Gets the count of this RunSearchPictureResponse. + def error_code(self): + """Gets the error_code of this CreateAuthorizationResponse. - 搜索结果总数。 + 错误码 - :return: The count of this RunSearchPictureResponse. - :rtype: int + :return: The error_code of this CreateAuthorizationResponse. + :rtype: str """ - return self._count + return self._error_code - @count.setter - def count(self, count): - """Sets the count of this RunSearchPictureResponse. + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateAuthorizationResponse. - 搜索结果总数。 + 错误码 - :param count: The count of this RunSearchPictureResponse. - :type count: int + :param error_code: The error_code of this CreateAuthorizationResponse. + :type error_code: str """ - self._count = count + self._error_code = error_code @property - def result(self): - """Gets the result of this RunSearchPictureResponse. + def error_msg(self): + """Gets the error_msg of this CreateAuthorizationResponse. - 搜索结果详情。 + 错误描述 - :return: The result of this RunSearchPictureResponse. - :rtype: list[:class:`huaweicloudsdkimagesearch.v1.SearchPictureItem`] + :return: The error_msg of this CreateAuthorizationResponse. + :rtype: str """ - return self._result + return self._error_msg - @result.setter - def result(self, result): - """Sets the result of this RunSearchPictureResponse. + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateAuthorizationResponse. - 搜索结果详情。 + 错误描述 - :param result: The result of this RunSearchPictureResponse. - :type result: list[:class:`huaweicloudsdkimagesearch.v1.SearchPictureItem`] + :param error_msg: The error_msg of this CreateAuthorizationResponse. + :type error_msg: str """ - self._result = result + self._error_msg = error_msg def to_dict(self): """Returns the model properties as a dict""" @@ -137,7 +137,7 @@ class RunSearchPictureResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunSearchPictureResponse): + if not isinstance(other, CreateAuthorizationResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_request.py new file mode 100755 index 000000000..65212f30d --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDiagnoseFeedbackRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateFeedbackReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateDiagnoseFeedbackRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateDiagnoseFeedbackRequest + :type body: :class:`huaweicloudsdkosm.v2.CreateFeedbackReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateDiagnoseFeedbackRequest. + + :return: The body of this CreateDiagnoseFeedbackRequest. + :rtype: :class:`huaweicloudsdkosm.v2.CreateFeedbackReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDiagnoseFeedbackRequest. + + :param body: The body of this CreateDiagnoseFeedbackRequest. + :type body: :class:`huaweicloudsdkosm.v2.CreateFeedbackReq` + """ + 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, CreateDiagnoseFeedbackRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_response.py new file mode 100755 index 000000000..70fb29224 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_feedback_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDiagnoseFeedbackResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """CreateDiagnoseFeedbackResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(CreateDiagnoseFeedbackResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this CreateDiagnoseFeedbackResponse. + + 错误码 + + :return: The error_code of this CreateDiagnoseFeedbackResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateDiagnoseFeedbackResponse. + + 错误码 + + :param error_code: The error_code of this CreateDiagnoseFeedbackResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateDiagnoseFeedbackResponse. + + 错误描述 + + :return: The error_msg of this CreateDiagnoseFeedbackResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateDiagnoseFeedbackResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateDiagnoseFeedbackResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDiagnoseFeedbackResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_request.py new file mode 100755 index 000000000..4100ab3cd --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDiagnoseJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'SubmitDiagnoseJobReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateDiagnoseJobRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateDiagnoseJobRequest + :type body: :class:`huaweicloudsdkosm.v2.SubmitDiagnoseJobReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateDiagnoseJobRequest. + + :return: The body of this CreateDiagnoseJobRequest. + :rtype: :class:`huaweicloudsdkosm.v2.SubmitDiagnoseJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDiagnoseJobRequest. + + :param body: The body of this CreateDiagnoseJobRequest. + :type body: :class:`huaweicloudsdkosm.v2.SubmitDiagnoseJobReq` + """ + 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, CreateDiagnoseJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_response.py new file mode 100755 index 000000000..65484432c --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_diagnose_job_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDiagnoseJobResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'job_id': 'job_id' + } + + def __init__(self, error_code=None, error_msg=None, job_id=None): + """CreateDiagnoseJobResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param job_id: 工具任务ID + :type job_id: str + """ + + super(CreateDiagnoseJobResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._job_id = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if job_id is not None: + self.job_id = job_id + + @property + def error_code(self): + """Gets the error_code of this CreateDiagnoseJobResponse. + + 错误码 + + :return: The error_code of this CreateDiagnoseJobResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateDiagnoseJobResponse. + + 错误码 + + :param error_code: The error_code of this CreateDiagnoseJobResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateDiagnoseJobResponse. + + 错误描述 + + :return: The error_msg of this CreateDiagnoseJobResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateDiagnoseJobResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateDiagnoseJobResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def job_id(self): + """Gets the job_id of this CreateDiagnoseJobResponse. + + 工具任务ID + + :return: The job_id of this CreateDiagnoseJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateDiagnoseJobResponse. + + 工具任务ID + + :param job_id: The job_id of this CreateDiagnoseJobResponse. + :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, CreateDiagnoseJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_request.py new file mode 100755 index 000000000..3aaf17e5d --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_request.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEvaluateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'session_id': 'str', + 'request_id': 'str', + 'body': 'EvaluateRequestReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'session_id': 'session_id', + 'request_id': 'request_id', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, session_id=None, request_id=None, body=None): + """CreateEvaluateRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param session_id: 会话Id + :type session_id: str + :param request_id: 请求Id + :type request_id: str + :param body: Body of the CreateEvaluateRequest + :type body: :class:`huaweicloudsdkosm.v2.EvaluateRequestReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._session_id = None + self._request_id = None + self._body = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.session_id = session_id + self.request_id = request_id + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this CreateEvaluateRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this CreateEvaluateRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this CreateEvaluateRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this CreateEvaluateRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this CreateEvaluateRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this CreateEvaluateRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this CreateEvaluateRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this CreateEvaluateRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this CreateEvaluateRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this CreateEvaluateRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateEvaluateRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this CreateEvaluateRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def session_id(self): + """Gets the session_id of this CreateEvaluateRequest. + + 会话Id + + :return: The session_id of this CreateEvaluateRequest. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this CreateEvaluateRequest. + + 会话Id + + :param session_id: The session_id of this CreateEvaluateRequest. + :type session_id: str + """ + self._session_id = session_id + + @property + def request_id(self): + """Gets the request_id of this CreateEvaluateRequest. + + 请求Id + + :return: The request_id of this CreateEvaluateRequest. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateEvaluateRequest. + + 请求Id + + :param request_id: The request_id of this CreateEvaluateRequest. + :type request_id: str + """ + self._request_id = request_id + + @property + def body(self): + """Gets the body of this CreateEvaluateRequest. + + :return: The body of this CreateEvaluateRequest. + :rtype: :class:`huaweicloudsdkosm.v2.EvaluateRequestReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateEvaluateRequest. + + :param body: The body of this CreateEvaluateRequest. + :type body: :class:`huaweicloudsdkosm.v2.EvaluateRequestReq` + """ + 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, CreateEvaluateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_response.py new file mode 100755 index 000000000..400554ac5 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_evaluate_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateEvaluateResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'request_id': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'request_id': 'request_id' + } + + def __init__(self, error_code=None, error_msg=None, request_id=None): + """CreateEvaluateResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param request_id: 请求Id + :type request_id: str + """ + + super(CreateEvaluateResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._request_id = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if request_id is not None: + self.request_id = request_id + + @property + def error_code(self): + """Gets the error_code of this CreateEvaluateResponse. + + 错误码 + + :return: The error_code of this CreateEvaluateResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateEvaluateResponse. + + 错误码 + + :param error_code: The error_code of this CreateEvaluateResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateEvaluateResponse. + + 错误描述 + + :return: The error_msg of this CreateEvaluateResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateEvaluateResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateEvaluateResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def request_id(self): + """Gets the request_id of this CreateEvaluateResponse. + + 请求Id + + :return: The request_id of this CreateEvaluateResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateEvaluateResponse. + + 请求Id + + :param request_id: The request_id of this CreateEvaluateResponse. + :type request_id: str + """ + self._request_id = 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, CreateEvaluateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_req.py new file mode 100755 index 000000000..8410e94ad --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_req.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFeedbackReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'content': 'str', + 'is_helpful': 'bool' + } + + attribute_map = { + 'type': 'type', + 'content': 'content', + 'is_helpful': 'is_helpful' + } + + def __init__(self, type=None, content=None, is_helpful=None): + """CreateFeedbackReq + + The model defined in huaweicloud sdk + + :param type: 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + :type type: int + :param content: 反馈内容 + :type content: str + :param is_helpful: 是否有帮助 + :type is_helpful: bool + """ + + + + self._type = None + self._content = None + self._is_helpful = None + self.discriminator = None + + self.type = type + if content is not None: + self.content = content + self.is_helpful = is_helpful + + @property + def type(self): + """Gets the type of this CreateFeedbackReq. + + 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + + :return: The type of this CreateFeedbackReq. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateFeedbackReq. + + 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + + :param type: The type of this CreateFeedbackReq. + :type type: int + """ + self._type = type + + @property + def content(self): + """Gets the content of this CreateFeedbackReq. + + 反馈内容 + + :return: The content of this CreateFeedbackReq. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CreateFeedbackReq. + + 反馈内容 + + :param content: The content of this CreateFeedbackReq. + :type content: str + """ + self._content = content + + @property + def is_helpful(self): + """Gets the is_helpful of this CreateFeedbackReq. + + 是否有帮助 + + :return: The is_helpful of this CreateFeedbackReq. + :rtype: bool + """ + return self._is_helpful + + @is_helpful.setter + def is_helpful(self, is_helpful): + """Sets the is_helpful of this CreateFeedbackReq. + + 是否有帮助 + + :param is_helpful: The is_helpful of this CreateFeedbackReq. + :type is_helpful: bool + """ + self._is_helpful = is_helpful + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFeedbackReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_request.py new file mode 100755 index 000000000..cfd3aa7c2 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFeedbackRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateFeedbackV2Req' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateFeedbackRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateFeedbackRequest + :type body: :class:`huaweicloudsdkosm.v2.CreateFeedbackV2Req` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateFeedbackRequest. + + :return: The body of this CreateFeedbackRequest. + :rtype: :class:`huaweicloudsdkosm.v2.CreateFeedbackV2Req` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateFeedbackRequest. + + :param body: The body of this CreateFeedbackRequest. + :type body: :class:`huaweicloudsdkosm.v2.CreateFeedbackV2Req` + """ + 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, CreateFeedbackRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_response.py new file mode 100755 index 000000000..3ed6d9c67 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFeedbackResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """CreateFeedbackResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(CreateFeedbackResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this CreateFeedbackResponse. + + 错误码 + + :return: The error_code of this CreateFeedbackResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateFeedbackResponse. + + 错误码 + + :param error_code: The error_code of this CreateFeedbackResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateFeedbackResponse. + + 错误描述 + + :return: The error_msg of this CreateFeedbackResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateFeedbackResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateFeedbackResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFeedbackResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_v2_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_v2_req.py new file mode 100755 index 000000000..cefadadc5 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_feedback_v2_req.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFeedbackV2Req: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'title': 'str', + 'content': 'str', + 'files': 'list[str]', + 'ip': 'IntellectualPropertyV2', + 'contacts': 'ContactWayInfoV2' + } + + attribute_map = { + 'type': 'type', + 'title': 'title', + 'content': 'content', + 'files': 'files', + 'ip': 'ip', + 'contacts': 'contacts' + } + + def __init__(self, type=None, title=None, content=None, files=None, ip=None, contacts=None): + """CreateFeedbackV2Req + + The model defined in huaweicloud sdk + + :param type: 举报类型 + :type type: str + :param title: 涉案的华为云产品或服务; 举报网址 + :type title: str + :param content: 侵权详情说明或举报内容及说明 + :type content: str + :param files: 相关证明附件列表 + :type files: list[str] + :param ip: + :type ip: :class:`huaweicloudsdkosm.v2.IntellectualPropertyV2` + :param contacts: + :type contacts: :class:`huaweicloudsdkosm.v2.ContactWayInfoV2` + """ + + + + self._type = None + self._title = None + self._content = None + self._files = None + self._ip = None + self._contacts = None + self.discriminator = None + + self.type = type + self.title = title + self.content = content + self.files = files + if ip is not None: + self.ip = ip + self.contacts = contacts + + @property + def type(self): + """Gets the type of this CreateFeedbackV2Req. + + 举报类型 + + :return: The type of this CreateFeedbackV2Req. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateFeedbackV2Req. + + 举报类型 + + :param type: The type of this CreateFeedbackV2Req. + :type type: str + """ + self._type = type + + @property + def title(self): + """Gets the title of this CreateFeedbackV2Req. + + 涉案的华为云产品或服务; 举报网址 + + :return: The title of this CreateFeedbackV2Req. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this CreateFeedbackV2Req. + + 涉案的华为云产品或服务; 举报网址 + + :param title: The title of this CreateFeedbackV2Req. + :type title: str + """ + self._title = title + + @property + def content(self): + """Gets the content of this CreateFeedbackV2Req. + + 侵权详情说明或举报内容及说明 + + :return: The content of this CreateFeedbackV2Req. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this CreateFeedbackV2Req. + + 侵权详情说明或举报内容及说明 + + :param content: The content of this CreateFeedbackV2Req. + :type content: str + """ + self._content = content + + @property + def files(self): + """Gets the files of this CreateFeedbackV2Req. + + 相关证明附件列表 + + :return: The files of this CreateFeedbackV2Req. + :rtype: list[str] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this CreateFeedbackV2Req. + + 相关证明附件列表 + + :param files: The files of this CreateFeedbackV2Req. + :type files: list[str] + """ + self._files = files + + @property + def ip(self): + """Gets the ip of this CreateFeedbackV2Req. + + :return: The ip of this CreateFeedbackV2Req. + :rtype: :class:`huaweicloudsdkosm.v2.IntellectualPropertyV2` + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this CreateFeedbackV2Req. + + :param ip: The ip of this CreateFeedbackV2Req. + :type ip: :class:`huaweicloudsdkosm.v2.IntellectualPropertyV2` + """ + self._ip = ip + + @property + def contacts(self): + """Gets the contacts of this CreateFeedbackV2Req. + + :return: The contacts of this CreateFeedbackV2Req. + :rtype: :class:`huaweicloudsdkosm.v2.ContactWayInfoV2` + """ + return self._contacts + + @contacts.setter + def contacts(self, contacts): + """Sets the contacts of this CreateFeedbackV2Req. + + :param contacts: The contacts of this CreateFeedbackV2Req. + :type contacts: :class:`huaweicloudsdkosm.v2.ContactWayInfoV2` + """ + self._contacts = contacts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFeedbackV2Req): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_request.py new file mode 100755 index 000000000..34782ced7 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_request.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateQaAskRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'body': 'QaAskReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, body=None): + """CreateQaAskRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param body: Body of the CreateQaAskRequest + :type body: :class:`huaweicloudsdkosm.v2.QaAskReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._body = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this CreateQaAskRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this CreateQaAskRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this CreateQaAskRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this CreateQaAskRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this CreateQaAskRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this CreateQaAskRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this CreateQaAskRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this CreateQaAskRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this CreateQaAskRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this CreateQaAskRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateQaAskRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this CreateQaAskRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateQaAskRequest. + + :return: The body of this CreateQaAskRequest. + :rtype: :class:`huaweicloudsdkosm.v2.QaAskReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateQaAskRequest. + + :param body: The body of this CreateQaAskRequest. + :type body: :class:`huaweicloudsdkosm.v2.QaAskReq` + """ + 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, CreateQaAskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_response.py new file mode 100755 index 000000000..4759c53c4 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_ask_response.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateQaAskResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'lang_result': 'LangResult', + 'reply_type': 'str', + 'session_id': 'str', + 'request_id': 'str', + 'answers_detail': 'AnswerDetail' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'lang_result': 'lang_result', + 'reply_type': 'reply_type', + 'session_id': 'session_id', + 'request_id': 'request_id', + 'answers_detail': 'answers_detail' + } + + def __init__(self, error_code=None, error_msg=None, lang_result=None, reply_type=None, session_id=None, request_id=None, answers_detail=None): + """CreateQaAskResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param lang_result: + :type lang_result: :class:`huaweicloudsdkosm.v2.LangResult` + :param reply_type: - QA_BOT: - TASK_BOT: - CHAT_BOT: - GRAPH_BOT: - HW_CLOUD: + :type reply_type: str + :param session_id: 会话ID + :type session_id: str + :param request_id: 请求ID + :type request_id: str + :param answers_detail: + :type answers_detail: :class:`huaweicloudsdkosm.v2.AnswerDetail` + """ + + super(CreateQaAskResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._lang_result = None + self._reply_type = None + self._session_id = None + self._request_id = None + self._answers_detail = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if lang_result is not None: + self.lang_result = lang_result + if reply_type is not None: + self.reply_type = reply_type + if session_id is not None: + self.session_id = session_id + if request_id is not None: + self.request_id = request_id + if answers_detail is not None: + self.answers_detail = answers_detail + + @property + def error_code(self): + """Gets the error_code of this CreateQaAskResponse. + + 错误码 + + :return: The error_code of this CreateQaAskResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateQaAskResponse. + + 错误码 + + :param error_code: The error_code of this CreateQaAskResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateQaAskResponse. + + 错误描述 + + :return: The error_msg of this CreateQaAskResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateQaAskResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateQaAskResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def lang_result(self): + """Gets the lang_result of this CreateQaAskResponse. + + :return: The lang_result of this CreateQaAskResponse. + :rtype: :class:`huaweicloudsdkosm.v2.LangResult` + """ + return self._lang_result + + @lang_result.setter + def lang_result(self, lang_result): + """Sets the lang_result of this CreateQaAskResponse. + + :param lang_result: The lang_result of this CreateQaAskResponse. + :type lang_result: :class:`huaweicloudsdkosm.v2.LangResult` + """ + self._lang_result = lang_result + + @property + def reply_type(self): + """Gets the reply_type of this CreateQaAskResponse. + + - QA_BOT: - TASK_BOT: - CHAT_BOT: - GRAPH_BOT: - HW_CLOUD: + + :return: The reply_type of this CreateQaAskResponse. + :rtype: str + """ + return self._reply_type + + @reply_type.setter + def reply_type(self, reply_type): + """Sets the reply_type of this CreateQaAskResponse. + + - QA_BOT: - TASK_BOT: - CHAT_BOT: - GRAPH_BOT: - HW_CLOUD: + + :param reply_type: The reply_type of this CreateQaAskResponse. + :type reply_type: str + """ + self._reply_type = reply_type + + @property + def session_id(self): + """Gets the session_id of this CreateQaAskResponse. + + 会话ID + + :return: The session_id of this CreateQaAskResponse. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this CreateQaAskResponse. + + 会话ID + + :param session_id: The session_id of this CreateQaAskResponse. + :type session_id: str + """ + self._session_id = session_id + + @property + def request_id(self): + """Gets the request_id of this CreateQaAskResponse. + + 请求ID + + :return: The request_id of this CreateQaAskResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateQaAskResponse. + + 请求ID + + :param request_id: The request_id of this CreateQaAskResponse. + :type request_id: str + """ + self._request_id = request_id + + @property + def answers_detail(self): + """Gets the answers_detail of this CreateQaAskResponse. + + :return: The answers_detail of this CreateQaAskResponse. + :rtype: :class:`huaweicloudsdkosm.v2.AnswerDetail` + """ + return self._answers_detail + + @answers_detail.setter + def answers_detail(self, answers_detail): + """Sets the answers_detail of this CreateQaAskResponse. + + :param answers_detail: The answers_detail of this CreateQaAskResponse. + :type answers_detail: :class:`huaweicloudsdkosm.v2.AnswerDetail` + """ + self._answers_detail = answers_detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateQaAskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py new file mode 100755 index 000000000..184c2fb23 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateQaFeedbacksRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'feedback_type': 'str', + 'body': 'QaFeedbackReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'feedback_type': 'feedback_type', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, feedback_type=None, body=None): + """CreateQaFeedbacksRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param feedback_type: - LIKE: - CANCEL_LIKE: - DISLIKE: - ALL: + :type feedback_type: str + :param body: Body of the CreateQaFeedbacksRequest + :type body: :class:`huaweicloudsdkosm.v2.QaFeedbackReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._feedback_type = None + self._body = None + self.discriminator = None + + if x_service_key is not None: + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.feedback_type = feedback_type + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this CreateQaFeedbacksRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this CreateQaFeedbacksRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this CreateQaFeedbacksRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this CreateQaFeedbacksRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this CreateQaFeedbacksRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this CreateQaFeedbacksRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this CreateQaFeedbacksRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this CreateQaFeedbacksRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this CreateQaFeedbacksRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this CreateQaFeedbacksRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateQaFeedbacksRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this CreateQaFeedbacksRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def feedback_type(self): + """Gets the feedback_type of this CreateQaFeedbacksRequest. + + - LIKE: - CANCEL_LIKE: - DISLIKE: - ALL: + + :return: The feedback_type of this CreateQaFeedbacksRequest. + :rtype: str + """ + return self._feedback_type + + @feedback_type.setter + def feedback_type(self, feedback_type): + """Sets the feedback_type of this CreateQaFeedbacksRequest. + + - LIKE: - CANCEL_LIKE: - DISLIKE: - ALL: + + :param feedback_type: The feedback_type of this CreateQaFeedbacksRequest. + :type feedback_type: str + """ + self._feedback_type = feedback_type + + @property + def body(self): + """Gets the body of this CreateQaFeedbacksRequest. + + :return: The body of this CreateQaFeedbacksRequest. + :rtype: :class:`huaweicloudsdkosm.v2.QaFeedbackReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateQaFeedbacksRequest. + + :param body: The body of this CreateQaFeedbacksRequest. + :type body: :class:`huaweicloudsdkosm.v2.QaFeedbackReq` + """ + 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, CreateQaFeedbacksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py new file mode 100755 index 000000000..52eb7f966 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateQaFeedbacksResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'feedback_id': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'feedback_id': 'feedback_id' + } + + def __init__(self, error_code=None, error_msg=None, feedback_id=None): + """CreateQaFeedbacksResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param feedback_id: 反馈记录id + :type feedback_id: str + """ + + super(CreateQaFeedbacksResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._feedback_id = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if feedback_id is not None: + self.feedback_id = feedback_id + + @property + def error_code(self): + """Gets the error_code of this CreateQaFeedbacksResponse. + + 错误码 + + :return: The error_code of this CreateQaFeedbacksResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateQaFeedbacksResponse. + + 错误码 + + :param error_code: The error_code of this CreateQaFeedbacksResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateQaFeedbacksResponse. + + 错误描述 + + :return: The error_msg of this CreateQaFeedbacksResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateQaFeedbacksResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateQaFeedbacksResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def feedback_id(self): + """Gets the feedback_id of this CreateQaFeedbacksResponse. + + 反馈记录id + + :return: The feedback_id of this CreateQaFeedbacksResponse. + :rtype: str + """ + return self._feedback_id + + @feedback_id.setter + def feedback_id(self, feedback_id): + """Sets the feedback_id of this CreateQaFeedbacksResponse. + + 反馈记录id + + :param feedback_id: The feedback_id of this CreateQaFeedbacksResponse. + :type feedback_id: str + """ + self._feedback_id = feedback_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, CreateQaFeedbacksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_request.py new file mode 100755 index 000000000..1d80a1898 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_request.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateQuestionInSessionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'session_id': 'str', + 'body': 'SessionAskQuestionReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'session_id': 'session_id', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, session_id=None, body=None): + """CreateQuestionInSessionRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param session_id: 会话Id + :type session_id: str + :param body: Body of the CreateQuestionInSessionRequest + :type body: :class:`huaweicloudsdkosm.v2.SessionAskQuestionReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._session_id = None + self._body = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.session_id = session_id + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this CreateQuestionInSessionRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this CreateQuestionInSessionRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this CreateQuestionInSessionRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this CreateQuestionInSessionRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this CreateQuestionInSessionRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this CreateQuestionInSessionRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this CreateQuestionInSessionRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this CreateQuestionInSessionRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this CreateQuestionInSessionRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this CreateQuestionInSessionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateQuestionInSessionRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this CreateQuestionInSessionRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def session_id(self): + """Gets the session_id of this CreateQuestionInSessionRequest. + + 会话Id + + :return: The session_id of this CreateQuestionInSessionRequest. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this CreateQuestionInSessionRequest. + + 会话Id + + :param session_id: The session_id of this CreateQuestionInSessionRequest. + :type session_id: str + """ + self._session_id = session_id + + @property + def body(self): + """Gets the body of this CreateQuestionInSessionRequest. + + :return: The body of this CreateQuestionInSessionRequest. + :rtype: :class:`huaweicloudsdkosm.v2.SessionAskQuestionReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateQuestionInSessionRequest. + + :param body: The body of this CreateQuestionInSessionRequest. + :type body: :class:`huaweicloudsdkosm.v2.SessionAskQuestionReq` + """ + 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, CreateQuestionInSessionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_response.py new file mode 100755 index 000000000..a2b876947 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_question_in_session_response.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateQuestionInSessionResponse(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 = { + 'answers': 'list[AnswerQaPair]', + 'error_code': 'str', + 'error_msg': 'str', + 'answer_type': 'int', + 'request_id': 'str' + } + + attribute_map = { + 'answers': 'answers', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'answer_type': 'answer_type', + 'request_id': 'request_id' + } + + def __init__(self, answers=None, error_code=None, error_msg=None, answer_type=None, request_id=None): + """CreateQuestionInSessionResponse + + The model defined in huaweicloud sdk + + :param answers: 答案列表 + :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param answer_type: 答案类型:0 知识库回复,1 技能回复,2 闲聊回复,3 华为云答案。 + :type answer_type: int + :param request_id: 请求Id + :type request_id: str + """ + + super(CreateQuestionInSessionResponse, self).__init__() + + self._answers = None + self._error_code = None + self._error_msg = None + self._answer_type = None + self._request_id = None + self.discriminator = None + + if answers is not None: + self.answers = answers + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if answer_type is not None: + self.answer_type = answer_type + if request_id is not None: + self.request_id = request_id + + @property + def answers(self): + """Gets the answers of this CreateQuestionInSessionResponse. + + 答案列表 + + :return: The answers of this CreateQuestionInSessionResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`] + """ + return self._answers + + @answers.setter + def answers(self, answers): + """Sets the answers of this CreateQuestionInSessionResponse. + + 答案列表 + + :param answers: The answers of this CreateQuestionInSessionResponse. + :type answers: list[:class:`huaweicloudsdkosm.v2.AnswerQaPair`] + """ + self._answers = answers + + @property + def error_code(self): + """Gets the error_code of this CreateQuestionInSessionResponse. + + 错误码 + + :return: The error_code of this CreateQuestionInSessionResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateQuestionInSessionResponse. + + 错误码 + + :param error_code: The error_code of this CreateQuestionInSessionResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateQuestionInSessionResponse. + + 错误描述 + + :return: The error_msg of this CreateQuestionInSessionResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateQuestionInSessionResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateQuestionInSessionResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def answer_type(self): + """Gets the answer_type of this CreateQuestionInSessionResponse. + + 答案类型:0 知识库回复,1 技能回复,2 闲聊回复,3 华为云答案。 + + :return: The answer_type of this CreateQuestionInSessionResponse. + :rtype: int + """ + return self._answer_type + + @answer_type.setter + def answer_type(self, answer_type): + """Sets the answer_type of this CreateQuestionInSessionResponse. + + 答案类型:0 知识库回复,1 技能回复,2 闲聊回复,3 华为云答案。 + + :param answer_type: The answer_type of this CreateQuestionInSessionResponse. + :type answer_type: int + """ + self._answer_type = answer_type + + @property + def request_id(self): + """Gets the request_id of this CreateQuestionInSessionResponse. + + 请求Id + + :return: The request_id of this CreateQuestionInSessionResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this CreateQuestionInSessionResponse. + + 请求Id + + :param request_id: The request_id of this CreateQuestionInSessionResponse. + :type request_id: str + """ + self._request_id = 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, CreateQuestionInSessionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_request.py new file mode 100755 index 000000000..ef7ecac2d --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_request.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSessionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None): + """CreateSessionRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + + @property + def x_service_key(self): + """Gets the x_service_key of this CreateSessionRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this CreateSessionRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this CreateSessionRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this CreateSessionRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this CreateSessionRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this CreateSessionRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this CreateSessionRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this CreateSessionRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this CreateSessionRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this CreateSessionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateSessionRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this CreateSessionRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSessionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_response.py new file mode 100755 index 000000000..d344a3c3c --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_session_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSessionResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'session_id': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'session_id': 'session_id' + } + + def __init__(self, error_code=None, error_msg=None, session_id=None): + """CreateSessionResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param session_id: 会话Id + :type session_id: str + """ + + super(CreateSessionResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._session_id = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if session_id is not None: + self.session_id = session_id + + @property + def error_code(self): + """Gets the error_code of this CreateSessionResponse. + + 错误码 + + :return: The error_code of this CreateSessionResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateSessionResponse. + + 错误码 + + :param error_code: The error_code of this CreateSessionResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateSessionResponse. + + 错误描述 + + :return: The error_msg of this CreateSessionResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateSessionResponse. + + 错误描述 + + :param error_msg: The error_msg of this CreateSessionResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def session_id(self): + """Gets the session_id of this CreateSessionResponse. + + 会话Id + + :return: The session_id of this CreateSessionResponse. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this CreateSessionResponse. + + 会话Id + + :param session_id: The session_id of this CreateSessionResponse. + :type session_id: str + """ + self._session_id = session_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, CreateSessionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_user_center_authorization_v2_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_user_center_authorization_v2_req.py new file mode 100755 index 000000000..e6f331e10 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/create_user_center_authorization_v2_req.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateUserCenterAuthorizationV2Req: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'is_authorized': 'int', + 'authorization_content': 'str' + } + + attribute_map = { + 'is_authorized': 'is_authorized', + 'authorization_content': 'authorization_content' + } + + def __init__(self, is_authorized=None, authorization_content=None): + """CreateUserCenterAuthorizationV2Req + + The model defined in huaweicloud sdk + + :param is_authorized: 是否同意 0不同意 1同意 + :type is_authorized: int + :param authorization_content: 机密信息内容 + :type authorization_content: str + """ + + + + self._is_authorized = None + self._authorization_content = None + self.discriminator = None + + if is_authorized is not None: + self.is_authorized = is_authorized + if authorization_content is not None: + self.authorization_content = authorization_content + + @property + def is_authorized(self): + """Gets the is_authorized of this CreateUserCenterAuthorizationV2Req. + + 是否同意 0不同意 1同意 + + :return: The is_authorized of this CreateUserCenterAuthorizationV2Req. + :rtype: int + """ + return self._is_authorized + + @is_authorized.setter + def is_authorized(self, is_authorized): + """Sets the is_authorized of this CreateUserCenterAuthorizationV2Req. + + 是否同意 0不同意 1同意 + + :param is_authorized: The is_authorized of this CreateUserCenterAuthorizationV2Req. + :type is_authorized: int + """ + self._is_authorized = is_authorized + + @property + def authorization_content(self): + """Gets the authorization_content of this CreateUserCenterAuthorizationV2Req. + + 机密信息内容 + + :return: The authorization_content of this CreateUserCenterAuthorizationV2Req. + :rtype: str + """ + return self._authorization_content + + @authorization_content.setter + def authorization_content(self, authorization_content): + """Sets the authorization_content of this CreateUserCenterAuthorizationV2Req. + + 机密信息内容 + + :param authorization_content: The authorization_content of this CreateUserCenterAuthorizationV2Req. + :type authorization_content: str + """ + self._authorization_content = authorization_content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUserCenterAuthorizationV2Req): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/diagnose_record_vo.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/diagnose_record_vo.py new file mode 100755 index 000000000..c1a8179e8 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/diagnose_record_vo.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DiagnoseRecordVo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'status': 'str', + 'params': 'dict(str, str)', + 'domain_id': 'str', + 'create_time': 'int', + 'job_id': 'str', + 'abnormal_items': 'list[str]', + 'red_count': 'int', + 'region': 'str' + } + + attribute_map = { + 'id': 'id', + 'status': 'status', + 'params': 'params', + 'domain_id': 'domain_id', + 'create_time': 'create_time', + 'job_id': 'job_id', + 'abnormal_items': 'abnormal_items', + 'red_count': 'red_count', + 'region': 'region' + } + + def __init__(self, id=None, status=None, params=None, domain_id=None, create_time=None, job_id=None, abnormal_items=None, red_count=None, region=None): + """DiagnoseRecordVo + + The model defined in huaweicloud sdk + + :param id: ID + :type id: str + :param status: 状态 + :type status: str + :param params: 不同诊断定独有的属性 + :type params: dict(str, str) + :param domain_id: 创建人 + :type domain_id: str + :param create_time: 创建时间戳 + :type create_time: int + :param job_id: 任务ID + :type job_id: str + :param abnormal_items: 异常项id列表 + :type abnormal_items: list[str] + :param red_count: 异常项数量 + :type red_count: int + :param region: 区域 + :type region: str + """ + + + + self._id = None + self._status = None + self._params = None + self._domain_id = None + self._create_time = None + self._job_id = None + self._abnormal_items = None + self._red_count = None + self._region = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if params is not None: + self.params = params + if domain_id is not None: + self.domain_id = domain_id + if create_time is not None: + self.create_time = create_time + if job_id is not None: + self.job_id = job_id + if abnormal_items is not None: + self.abnormal_items = abnormal_items + if red_count is not None: + self.red_count = red_count + if region is not None: + self.region = region + + @property + def id(self): + """Gets the id of this DiagnoseRecordVo. + + ID + + :return: The id of this DiagnoseRecordVo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DiagnoseRecordVo. + + ID + + :param id: The id of this DiagnoseRecordVo. + :type id: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this DiagnoseRecordVo. + + 状态 + + :return: The status of this DiagnoseRecordVo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DiagnoseRecordVo. + + 状态 + + :param status: The status of this DiagnoseRecordVo. + :type status: str + """ + self._status = status + + @property + def params(self): + """Gets the params of this DiagnoseRecordVo. + + 不同诊断定独有的属性 + + :return: The params of this DiagnoseRecordVo. + :rtype: dict(str, str) + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this DiagnoseRecordVo. + + 不同诊断定独有的属性 + + :param params: The params of this DiagnoseRecordVo. + :type params: dict(str, str) + """ + self._params = params + + @property + def domain_id(self): + """Gets the domain_id of this DiagnoseRecordVo. + + 创建人 + + :return: The domain_id of this DiagnoseRecordVo. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this DiagnoseRecordVo. + + 创建人 + + :param domain_id: The domain_id of this DiagnoseRecordVo. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def create_time(self): + """Gets the create_time of this DiagnoseRecordVo. + + 创建时间戳 + + :return: The create_time of this DiagnoseRecordVo. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this DiagnoseRecordVo. + + 创建时间戳 + + :param create_time: The create_time of this DiagnoseRecordVo. + :type create_time: int + """ + self._create_time = create_time + + @property + def job_id(self): + """Gets the job_id of this DiagnoseRecordVo. + + 任务ID + + :return: The job_id of this DiagnoseRecordVo. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this DiagnoseRecordVo. + + 任务ID + + :param job_id: The job_id of this DiagnoseRecordVo. + :type job_id: str + """ + self._job_id = job_id + + @property + def abnormal_items(self): + """Gets the abnormal_items of this DiagnoseRecordVo. + + 异常项id列表 + + :return: The abnormal_items of this DiagnoseRecordVo. + :rtype: list[str] + """ + return self._abnormal_items + + @abnormal_items.setter + def abnormal_items(self, abnormal_items): + """Sets the abnormal_items of this DiagnoseRecordVo. + + 异常项id列表 + + :param abnormal_items: The abnormal_items of this DiagnoseRecordVo. + :type abnormal_items: list[str] + """ + self._abnormal_items = abnormal_items + + @property + def red_count(self): + """Gets the red_count of this DiagnoseRecordVo. + + 异常项数量 + + :return: The red_count of this DiagnoseRecordVo. + :rtype: int + """ + return self._red_count + + @red_count.setter + def red_count(self, red_count): + """Sets the red_count of this DiagnoseRecordVo. + + 异常项数量 + + :param red_count: The red_count of this DiagnoseRecordVo. + :type red_count: int + """ + self._red_count = red_count + + @property + def region(self): + """Gets the region of this DiagnoseRecordVo. + + 区域 + + :return: The region of this DiagnoseRecordVo. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this DiagnoseRecordVo. + + 区域 + + :param region: The region of this DiagnoseRecordVo. + :type region: str + """ + self._region = region + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DiagnoseRecordVo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/evaluate_request_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/evaluate_request_req.py new file mode 100755 index 000000000..0304d125a --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/evaluate_request_req.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EvaluateRequestReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'degree': 'int' + } + + attribute_map = { + 'degree': 'degree' + } + + def __init__(self, degree=None): + """EvaluateRequestReq + + The model defined in huaweicloud sdk + + :param degree: 评价结果 + :type degree: int + """ + + + + self._degree = None + self.discriminator = None + + if degree is not None: + self.degree = degree + + @property + def degree(self): + """Gets the degree of this EvaluateRequestReq. + + 评价结果 + + :return: The degree of this EvaluateRequestReq. + :rtype: int + """ + return self._degree + + @degree.setter + def degree(self, degree): + """Sets the degree of this EvaluateRequestReq. + + 评价结果 + + :param degree: The degree of this EvaluateRequestReq. + :type degree: int + """ + self._degree = degree + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EvaluateRequestReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/extend_question.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/extend_question.py new file mode 100755 index 000000000..6752c73bc --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/extend_question.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExtendQuestion: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'content': 'str', + 'score': 'float' + } + + attribute_map = { + 'content': 'content', + 'score': 'score' + } + + def __init__(self, content=None, score=None): + """ExtendQuestion + + The model defined in huaweicloud sdk + + :param content: 扩展问内容 + :type content: str + :param score: 分值 + :type score: float + """ + + + + self._content = None + self._score = None + self.discriminator = None + + if content is not None: + self.content = content + if score is not None: + self.score = score + + @property + def content(self): + """Gets the content of this ExtendQuestion. + + 扩展问内容 + + :return: The content of this ExtendQuestion. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this ExtendQuestion. + + 扩展问内容 + + :param content: The content of this ExtendQuestion. + :type content: str + """ + self._content = content + + @property + def score(self): + """Gets the score of this ExtendQuestion. + + 分值 + + :return: The score of this ExtendQuestion. + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this ExtendQuestion. + + 分值 + + :param score: The score of this ExtendQuestion. + :type score: float + """ + self._score = score + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExtendQuestion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/feedback_option.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/feedback_option.py new file mode 100755 index 000000000..3dea46944 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/feedback_option.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FeedbackOption: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'feedback_option_id': 'str', + 'feedback_option_name': 'str' + } + + attribute_map = { + 'feedback_option_id': 'feedback_option_id', + 'feedback_option_name': 'feedback_option_name' + } + + def __init__(self, feedback_option_id=None, feedback_option_name=None): + """FeedbackOption + + The model defined in huaweicloud sdk + + :param feedback_option_id: 反馈选项id + :type feedback_option_id: str + :param feedback_option_name: 反馈选项名称 + :type feedback_option_name: str + """ + + + + self._feedback_option_id = None + self._feedback_option_name = None + self.discriminator = None + + if feedback_option_id is not None: + self.feedback_option_id = feedback_option_id + if feedback_option_name is not None: + self.feedback_option_name = feedback_option_name + + @property + def feedback_option_id(self): + """Gets the feedback_option_id of this FeedbackOption. + + 反馈选项id + + :return: The feedback_option_id of this FeedbackOption. + :rtype: str + """ + return self._feedback_option_id + + @feedback_option_id.setter + def feedback_option_id(self, feedback_option_id): + """Sets the feedback_option_id of this FeedbackOption. + + 反馈选项id + + :param feedback_option_id: The feedback_option_id of this FeedbackOption. + :type feedback_option_id: str + """ + self._feedback_option_id = feedback_option_id + + @property + def feedback_option_name(self): + """Gets the feedback_option_name of this FeedbackOption. + + 反馈选项名称 + + :return: The feedback_option_name of this FeedbackOption. + :rtype: str + """ + return self._feedback_option_name + + @feedback_option_name.setter + def feedback_option_name(self, feedback_option_name): + """Sets the feedback_option_name of this FeedbackOption. + + 反馈选项名称 + + :param feedback_option_name: The feedback_option_name of this FeedbackOption. + :type feedback_option_name: str + """ + self._feedback_option_name = feedback_option_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, FeedbackOption): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/intellectual_property_v2.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/intellectual_property_v2.py new file mode 100755 index 000000000..4b9d53b6a --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/intellectual_property_v2.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IntellectualPropertyV2: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ip_type': 'str', + 'ip_area': 'str', + 'ip_number': 'str', + 'ip_content': 'str' + } + + attribute_map = { + 'ip_type': 'ip_type', + 'ip_area': 'ip_area', + 'ip_number': 'ip_number', + 'ip_content': 'ip_content' + } + + def __init__(self, ip_type=None, ip_area=None, ip_number=None, ip_content=None): + """IntellectualPropertyV2 + + The model defined in huaweicloud sdk + + :param ip_type: 知识产权类型,分:著作权-copyright、商标权-trademark、专利权-patent + :type ip_type: str + :param ip_area: 知识产权注册国家/地区 + :type ip_area: str + :param ip_number: 商标注册号/专利申请号 + :type ip_number: str + :param ip_content: 知识产权情况简述 + :type ip_content: str + """ + + + + self._ip_type = None + self._ip_area = None + self._ip_number = None + self._ip_content = None + self.discriminator = None + + if ip_type is not None: + self.ip_type = ip_type + if ip_area is not None: + self.ip_area = ip_area + if ip_number is not None: + self.ip_number = ip_number + if ip_content is not None: + self.ip_content = ip_content + + @property + def ip_type(self): + """Gets the ip_type of this IntellectualPropertyV2. + + 知识产权类型,分:著作权-copyright、商标权-trademark、专利权-patent + + :return: The ip_type of this IntellectualPropertyV2. + :rtype: str + """ + return self._ip_type + + @ip_type.setter + def ip_type(self, ip_type): + """Sets the ip_type of this IntellectualPropertyV2. + + 知识产权类型,分:著作权-copyright、商标权-trademark、专利权-patent + + :param ip_type: The ip_type of this IntellectualPropertyV2. + :type ip_type: str + """ + self._ip_type = ip_type + + @property + def ip_area(self): + """Gets the ip_area of this IntellectualPropertyV2. + + 知识产权注册国家/地区 + + :return: The ip_area of this IntellectualPropertyV2. + :rtype: str + """ + return self._ip_area + + @ip_area.setter + def ip_area(self, ip_area): + """Sets the ip_area of this IntellectualPropertyV2. + + 知识产权注册国家/地区 + + :param ip_area: The ip_area of this IntellectualPropertyV2. + :type ip_area: str + """ + self._ip_area = ip_area + + @property + def ip_number(self): + """Gets the ip_number of this IntellectualPropertyV2. + + 商标注册号/专利申请号 + + :return: The ip_number of this IntellectualPropertyV2. + :rtype: str + """ + return self._ip_number + + @ip_number.setter + def ip_number(self, ip_number): + """Sets the ip_number of this IntellectualPropertyV2. + + 商标注册号/专利申请号 + + :param ip_number: The ip_number of this IntellectualPropertyV2. + :type ip_number: str + """ + self._ip_number = ip_number + + @property + def ip_content(self): + """Gets the ip_content of this IntellectualPropertyV2. + + 知识产权情况简述 + + :return: The ip_content of this IntellectualPropertyV2. + :rtype: str + """ + return self._ip_content + + @ip_content.setter + def ip_content(self, ip_content): + """Sets the ip_content of this IntellectualPropertyV2. + + 知识产权情况简述 + + :param ip_content: The ip_content of this IntellectualPropertyV2. + :type ip_content: str + """ + self._ip_content = ip_content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IntellectualPropertyV2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_detail_vo.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_detail_vo.py new file mode 100755 index 000000000..ca9e0f645 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_detail_vo.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ItemResultDetailVo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'level': 'int', + 'suggestion': 'str', + 'response': 'str', + 'check_id': 'str', + 'check_name': 'str', + 'check_name_en': 'str', + 'suggestion_url': 'str' + } + + attribute_map = { + 'status': 'status', + 'level': 'level', + 'suggestion': 'suggestion', + 'response': 'response', + 'check_id': 'check_id', + 'check_name': 'check_name', + 'check_name_en': 'check_name_en', + 'suggestion_url': 'suggestion_url' + } + + def __init__(self, status=None, level=None, suggestion=None, response=None, check_id=None, check_name=None, check_name_en=None, suggestion_url=None): + """ItemResultDetailVo + + The model defined in huaweicloud sdk + + :param status: 状态 + :type status: int + :param level: 检查项风险等级 + :type level: int + :param suggestion: 检查项修复建议 + :type suggestion: str + :param response: 检查项response + :type response: str + :param check_id: 检查项ID + :type check_id: str + :param check_name: 检查项名称 + :type check_name: str + :param check_name_en: 检查项英文名称 + :type check_name_en: str + :param suggestion_url: 检查项修复建议URL + :type suggestion_url: str + """ + + + + self._status = None + self._level = None + self._suggestion = None + self._response = None + self._check_id = None + self._check_name = None + self._check_name_en = None + self._suggestion_url = None + self.discriminator = None + + if status is not None: + self.status = status + if level is not None: + self.level = level + if suggestion is not None: + self.suggestion = suggestion + if response is not None: + self.response = response + if check_id is not None: + self.check_id = check_id + if check_name is not None: + self.check_name = check_name + if check_name_en is not None: + self.check_name_en = check_name_en + if suggestion_url is not None: + self.suggestion_url = suggestion_url + + @property + def status(self): + """Gets the status of this ItemResultDetailVo. + + 状态 + + :return: The status of this ItemResultDetailVo. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ItemResultDetailVo. + + 状态 + + :param status: The status of this ItemResultDetailVo. + :type status: int + """ + self._status = status + + @property + def level(self): + """Gets the level of this ItemResultDetailVo. + + 检查项风险等级 + + :return: The level of this ItemResultDetailVo. + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this ItemResultDetailVo. + + 检查项风险等级 + + :param level: The level of this ItemResultDetailVo. + :type level: int + """ + self._level = level + + @property + def suggestion(self): + """Gets the suggestion of this ItemResultDetailVo. + + 检查项修复建议 + + :return: The suggestion of this ItemResultDetailVo. + :rtype: str + """ + return self._suggestion + + @suggestion.setter + def suggestion(self, suggestion): + """Sets the suggestion of this ItemResultDetailVo. + + 检查项修复建议 + + :param suggestion: The suggestion of this ItemResultDetailVo. + :type suggestion: str + """ + self._suggestion = suggestion + + @property + def response(self): + """Gets the response of this ItemResultDetailVo. + + 检查项response + + :return: The response of this ItemResultDetailVo. + :rtype: str + """ + return self._response + + @response.setter + def response(self, response): + """Sets the response of this ItemResultDetailVo. + + 检查项response + + :param response: The response of this ItemResultDetailVo. + :type response: str + """ + self._response = response + + @property + def check_id(self): + """Gets the check_id of this ItemResultDetailVo. + + 检查项ID + + :return: The check_id of this ItemResultDetailVo. + :rtype: str + """ + return self._check_id + + @check_id.setter + def check_id(self, check_id): + """Sets the check_id of this ItemResultDetailVo. + + 检查项ID + + :param check_id: The check_id of this ItemResultDetailVo. + :type check_id: str + """ + self._check_id = check_id + + @property + def check_name(self): + """Gets the check_name of this ItemResultDetailVo. + + 检查项名称 + + :return: The check_name of this ItemResultDetailVo. + :rtype: str + """ + return self._check_name + + @check_name.setter + def check_name(self, check_name): + """Sets the check_name of this ItemResultDetailVo. + + 检查项名称 + + :param check_name: The check_name of this ItemResultDetailVo. + :type check_name: str + """ + self._check_name = check_name + + @property + def check_name_en(self): + """Gets the check_name_en of this ItemResultDetailVo. + + 检查项英文名称 + + :return: The check_name_en of this ItemResultDetailVo. + :rtype: str + """ + return self._check_name_en + + @check_name_en.setter + def check_name_en(self, check_name_en): + """Sets the check_name_en of this ItemResultDetailVo. + + 检查项英文名称 + + :param check_name_en: The check_name_en of this ItemResultDetailVo. + :type check_name_en: str + """ + self._check_name_en = check_name_en + + @property + def suggestion_url(self): + """Gets the suggestion_url of this ItemResultDetailVo. + + 检查项修复建议URL + + :return: The suggestion_url of this ItemResultDetailVo. + :rtype: str + """ + return self._suggestion_url + + @suggestion_url.setter + def suggestion_url(self, suggestion_url): + """Sets the suggestion_url of this ItemResultDetailVo. + + 检查项修复建议URL + + :param suggestion_url: The suggestion_url of this ItemResultDetailVo. + :type suggestion_url: str + """ + self._suggestion_url = suggestion_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ItemResultDetailVo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_vo.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_vo.py new file mode 100755 index 000000000..6cce93160 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/item_result_vo.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ItemResultVo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'visible': 'int', + 'resource_id': 'str', + 'resource_name': 'str', + 'check_id': 'str', + 'check_name': 'str', + 'problem_level': 'int' + } + + attribute_map = { + 'status': 'status', + 'visible': 'visible', + 'resource_id': 'resource_id', + 'resource_name': 'resource_name', + 'check_id': 'check_id', + 'check_name': 'check_name', + 'problem_level': 'problem_level' + } + + def __init__(self, status=None, visible=None, resource_id=None, resource_name=None, check_id=None, check_name=None, problem_level=None): + """ItemResultVo + + The model defined in huaweicloud sdk + + :param status: 执行状态 + :type status: int + :param visible: 是否可见 + :type visible: int + :param resource_id: 检查项的大类Id + :type resource_id: str + :param resource_name: 检查项的大类名称 + :type resource_name: str + :param check_id: 检查项ID + :type check_id: str + :param check_name: 执行状态 + :type check_name: str + :param problem_level: 问题等级 0:未执行,3 正常,4 异常;可用于判断检查项执行结果 + :type problem_level: int + """ + + + + self._status = None + self._visible = None + self._resource_id = None + self._resource_name = None + self._check_id = None + self._check_name = None + self._problem_level = None + self.discriminator = None + + if status is not None: + self.status = status + if visible is not None: + self.visible = visible + if resource_id is not None: + self.resource_id = resource_id + if resource_name is not None: + self.resource_name = resource_name + if check_id is not None: + self.check_id = check_id + if check_name is not None: + self.check_name = check_name + if problem_level is not None: + self.problem_level = problem_level + + @property + def status(self): + """Gets the status of this ItemResultVo. + + 执行状态 + + :return: The status of this ItemResultVo. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ItemResultVo. + + 执行状态 + + :param status: The status of this ItemResultVo. + :type status: int + """ + self._status = status + + @property + def visible(self): + """Gets the visible of this ItemResultVo. + + 是否可见 + + :return: The visible of this ItemResultVo. + :rtype: int + """ + return self._visible + + @visible.setter + def visible(self, visible): + """Sets the visible of this ItemResultVo. + + 是否可见 + + :param visible: The visible of this ItemResultVo. + :type visible: int + """ + self._visible = visible + + @property + def resource_id(self): + """Gets the resource_id of this ItemResultVo. + + 检查项的大类Id + + :return: The resource_id of this ItemResultVo. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ItemResultVo. + + 检查项的大类Id + + :param resource_id: The resource_id of this ItemResultVo. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def resource_name(self): + """Gets the resource_name of this ItemResultVo. + + 检查项的大类名称 + + :return: The resource_name of this ItemResultVo. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this ItemResultVo. + + 检查项的大类名称 + + :param resource_name: The resource_name of this ItemResultVo. + :type resource_name: str + """ + self._resource_name = resource_name + + @property + def check_id(self): + """Gets the check_id of this ItemResultVo. + + 检查项ID + + :return: The check_id of this ItemResultVo. + :rtype: str + """ + return self._check_id + + @check_id.setter + def check_id(self, check_id): + """Sets the check_id of this ItemResultVo. + + 检查项ID + + :param check_id: The check_id of this ItemResultVo. + :type check_id: str + """ + self._check_id = check_id + + @property + def check_name(self): + """Gets the check_name of this ItemResultVo. + + 执行状态 + + :return: The check_name of this ItemResultVo. + :rtype: str + """ + return self._check_name + + @check_name.setter + def check_name(self, check_name): + """Sets the check_name of this ItemResultVo. + + 执行状态 + + :param check_name: The check_name of this ItemResultVo. + :type check_name: str + """ + self._check_name = check_name + + @property + def problem_level(self): + """Gets the problem_level of this ItemResultVo. + + 问题等级 0:未执行,3 正常,4 异常;可用于判断检查项执行结果 + + :return: The problem_level of this ItemResultVo. + :rtype: int + """ + return self._problem_level + + @problem_level.setter + def problem_level(self, problem_level): + """Sets the problem_level of this ItemResultVo. + + 问题等级 0:未执行,3 正常,4 异常;可用于判断检查项执行结果 + + :param problem_level: The problem_level of this ItemResultVo. + :type problem_level: int + """ + self._problem_level = problem_level + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ItemResultVo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/lang_result.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/lang_result.py new file mode 100755 index 000000000..af08fc797 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/lang_result.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LangResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'language': 'str', + 'is_en': 'bool' + } + + attribute_map = { + 'language': 'language', + 'is_en': 'is_en' + } + + def __init__(self, language=None, is_en=None): + """LangResult + + The model defined in huaweicloud sdk + + :param language: 语言 + :type language: str + :param is_en: 是否英语 + :type is_en: bool + """ + + + + self._language = None + self._is_en = None + self.discriminator = None + + if language is not None: + self.language = language + if is_en is not None: + self.is_en = is_en + + @property + def language(self): + """Gets the language of this LangResult. + + 语言 + + :return: The language of this LangResult. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this LangResult. + + 语言 + + :param language: The language of this LangResult. + :type language: str + """ + self._language = language + + @property + def is_en(self): + """Gets the is_en of this LangResult. + + 是否英语 + + :return: The is_en of this LangResult. + :rtype: bool + """ + return self._is_en + + @is_en.setter + def is_en(self, is_en): + """Sets the is_en of this LangResult. + + 是否英语 + + :param is_en: The is_en of this LangResult. + :type is_en: bool + """ + self._is_en = is_en + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LangResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_request.py new file mode 100755 index 000000000..3c78435c9 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_request.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListArticlesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'search_type': 'str', + 'body': 'SearchArticlesReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'search_type': 'search_type', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, search_type=None, body=None): + """ListArticlesRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param search_type: 搜索类型:HOT-热点案例,RECOMMEND-推荐案例 + :type search_type: str + :param body: Body of the ListArticlesRequest + :type body: :class:`huaweicloudsdkosm.v2.SearchArticlesReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._search_type = None + self._body = None + self.discriminator = None + + if x_service_key is not None: + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.search_type = search_type + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this ListArticlesRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ListArticlesRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ListArticlesRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ListArticlesRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ListArticlesRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ListArticlesRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ListArticlesRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ListArticlesRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ListArticlesRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ListArticlesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListArticlesRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ListArticlesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def search_type(self): + """Gets the search_type of this ListArticlesRequest. + + 搜索类型:HOT-热点案例,RECOMMEND-推荐案例 + + :return: The search_type of this ListArticlesRequest. + :rtype: str + """ + return self._search_type + + @search_type.setter + def search_type(self, search_type): + """Sets the search_type of this ListArticlesRequest. + + 搜索类型:HOT-热点案例,RECOMMEND-推荐案例 + + :param search_type: The search_type of this ListArticlesRequest. + :type search_type: str + """ + self._search_type = search_type + + @property + def body(self): + """Gets the body of this ListArticlesRequest. + + :return: The body of this ListArticlesRequest. + :rtype: :class:`huaweicloudsdkosm.v2.SearchArticlesReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListArticlesRequest. + + :param body: The body of this ListArticlesRequest. + :type body: :class:`huaweicloudsdkosm.v2.SearchArticlesReq` + """ + 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, ListArticlesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_response.py new file mode 100755 index 000000000..9226cc65d --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_articles_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListArticlesResponse(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 = { + 'articles': 'list[Article]', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'articles': 'articles', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, articles=None, error_code=None, error_msg=None): + """ListArticlesResponse + + The model defined in huaweicloud sdk + + :param articles: 热点/推荐案例列表 + :type articles: list[:class:`huaweicloudsdkosm.v2.Article`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(ListArticlesResponse, self).__init__() + + self._articles = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if articles is not None: + self.articles = articles + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def articles(self): + """Gets the articles of this ListArticlesResponse. + + 热点/推荐案例列表 + + :return: The articles of this ListArticlesResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.Article`] + """ + return self._articles + + @articles.setter + def articles(self, articles): + """Sets the articles of this ListArticlesResponse. + + 热点/推荐案例列表 + + :param articles: The articles of this ListArticlesResponse. + :type articles: list[:class:`huaweicloudsdkosm.v2.Article`] + """ + self._articles = articles + + @property + def error_code(self): + """Gets the error_code of this ListArticlesResponse. + + 错误码 + + :return: The error_code of this ListArticlesResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListArticlesResponse. + + 错误码 + + :param error_code: The error_code of this ListArticlesResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListArticlesResponse. + + 错误描述 + + :return: The error_msg of this ListArticlesResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListArticlesResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListArticlesResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListArticlesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_request.py new file mode 100755 index 000000000..51bb4fd09 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDiagnoseItemsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'QueryDiagnoseItemsReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListDiagnoseItemsRequest + + The model defined in huaweicloud sdk + + :param body: Body of the ListDiagnoseItemsRequest + :type body: :class:`huaweicloudsdkosm.v2.QueryDiagnoseItemsReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ListDiagnoseItemsRequest. + + :return: The body of this ListDiagnoseItemsRequest. + :rtype: :class:`huaweicloudsdkosm.v2.QueryDiagnoseItemsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListDiagnoseItemsRequest. + + :param body: The body of this ListDiagnoseItemsRequest. + :type body: :class:`huaweicloudsdkosm.v2.QueryDiagnoseItemsReq` + """ + 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, ListDiagnoseItemsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_response.py new file mode 100755 index 000000000..65663925a --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_items_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDiagnoseItemsResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'item_results': 'list[ItemResultDetailVo]' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'item_results': 'item_results' + } + + def __init__(self, error_code=None, error_msg=None, item_results=None): + """ListDiagnoseItemsResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param item_results: 检查项结果列表 + :type item_results: list[:class:`huaweicloudsdkosm.v2.ItemResultDetailVo`] + """ + + super(ListDiagnoseItemsResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._item_results = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if item_results is not None: + self.item_results = item_results + + @property + def error_code(self): + """Gets the error_code of this ListDiagnoseItemsResponse. + + 错误码 + + :return: The error_code of this ListDiagnoseItemsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListDiagnoseItemsResponse. + + 错误码 + + :param error_code: The error_code of this ListDiagnoseItemsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListDiagnoseItemsResponse. + + 错误描述 + + :return: The error_msg of this ListDiagnoseItemsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListDiagnoseItemsResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListDiagnoseItemsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def item_results(self): + """Gets the item_results of this ListDiagnoseItemsResponse. + + 检查项结果列表 + + :return: The item_results of this ListDiagnoseItemsResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.ItemResultDetailVo`] + """ + return self._item_results + + @item_results.setter + def item_results(self, item_results): + """Sets the item_results of this ListDiagnoseItemsResponse. + + 检查项结果列表 + + :param item_results: The item_results of this ListDiagnoseItemsResponse. + :type item_results: list[:class:`huaweicloudsdkosm.v2.ItemResultDetailVo`] + """ + self._item_results = item_results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDiagnoseItemsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/delete_picture_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_request.py similarity index 72% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/delete_picture_req.py rename to huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_request.py index d7844d57c..b0dd0d004 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/delete_picture_req.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class DeletePictureReq: +class ListDiagnoseJobRequest: """ Attributes: @@ -20,51 +20,51 @@ class DeletePictureReq: sensitive_list = [] openapi_types = { - 'path': 'str' + 'job_id': 'str' } attribute_map = { - 'path': 'path' + 'job_id': 'job_id' } - def __init__(self, path=None): - """DeletePictureReq + def __init__(self, job_id=None): + """ListDiagnoseJobRequest The model defined in huaweicloud sdk - :param path: 图片URL路径,作为图片库中索引图片的ID。 - :type path: str + :param job_id: 任务id + :type job_id: str """ - self._path = None + self._job_id = None self.discriminator = None - if path is not None: - self.path = path + if job_id is not None: + self.job_id = job_id @property - def path(self): - """Gets the path of this DeletePictureReq. + def job_id(self): + """Gets the job_id of this ListDiagnoseJobRequest. - 图片URL路径,作为图片库中索引图片的ID。 + 任务id - :return: The path of this DeletePictureReq. + :return: The job_id of this ListDiagnoseJobRequest. :rtype: str """ - return self._path + return self._job_id - @path.setter - def path(self, path): - """Sets the path of this DeletePictureReq. + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ListDiagnoseJobRequest. - 图片URL路径,作为图片库中索引图片的ID。 + 任务id - :param path: The path of this DeletePictureReq. - :type path: str + :param job_id: The job_id of this ListDiagnoseJobRequest. + :type job_id: str """ - self._path = path + self._job_id = job_id def to_dict(self): """Returns the model properties as a dict""" @@ -108,7 +108,7 @@ class DeletePictureReq: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DeletePictureReq): + if not isinstance(other, ListDiagnoseJobRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_response.py new file mode 100755 index 000000000..1812ce3f5 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_job_response.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDiagnoseJobResponse(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': 'int', + 'error_code': 'str', + 'error_msg': 'str', + 'job_id': 'int', + 'domain_id': 'str', + 'items_result': 'list[ItemResultVo]', + 'create_time': 'int' + } + + attribute_map = { + 'status': 'status', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'job_id': 'job_id', + 'domain_id': 'domain_id', + 'items_result': 'items_result', + 'create_time': 'create_time' + } + + def __init__(self, status=None, error_code=None, error_msg=None, job_id=None, domain_id=None, items_result=None, create_time=None): + """ListDiagnoseJobResponse + + The model defined in huaweicloud sdk + + :param status: 任务执行的状态 0:准备中,2:执行中,3:完成,4:失败,7:未执行,8:不可用;用于判断任务的是否执行结束,3就是结束了,4,7,8说明是TSC诊断脚本有问题,OSM这边无法处理 + :type status: int + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param job_id: 任务ID + :type job_id: int + :param domain_id: 租户ID + :type domain_id: str + :param items_result: 任务的检查项结果 + :type items_result: list[:class:`huaweicloudsdkosm.v2.ItemResultVo`] + :param create_time: 任务创建时间 + :type create_time: int + """ + + super(ListDiagnoseJobResponse, self).__init__() + + self._status = None + self._error_code = None + self._error_msg = None + self._job_id = None + self._domain_id = None + self._items_result = None + self._create_time = None + self.discriminator = None + + if status is not None: + self.status = status + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if job_id is not None: + self.job_id = job_id + if domain_id is not None: + self.domain_id = domain_id + if items_result is not None: + self.items_result = items_result + if create_time is not None: + self.create_time = create_time + + @property + def status(self): + """Gets the status of this ListDiagnoseJobResponse. + + 任务执行的状态 0:准备中,2:执行中,3:完成,4:失败,7:未执行,8:不可用;用于判断任务的是否执行结束,3就是结束了,4,7,8说明是TSC诊断脚本有问题,OSM这边无法处理 + + :return: The status of this ListDiagnoseJobResponse. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListDiagnoseJobResponse. + + 任务执行的状态 0:准备中,2:执行中,3:完成,4:失败,7:未执行,8:不可用;用于判断任务的是否执行结束,3就是结束了,4,7,8说明是TSC诊断脚本有问题,OSM这边无法处理 + + :param status: The status of this ListDiagnoseJobResponse. + :type status: int + """ + self._status = status + + @property + def error_code(self): + """Gets the error_code of this ListDiagnoseJobResponse. + + 错误码 + + :return: The error_code of this ListDiagnoseJobResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListDiagnoseJobResponse. + + 错误码 + + :param error_code: The error_code of this ListDiagnoseJobResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListDiagnoseJobResponse. + + 错误描述 + + :return: The error_msg of this ListDiagnoseJobResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListDiagnoseJobResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListDiagnoseJobResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def job_id(self): + """Gets the job_id of this ListDiagnoseJobResponse. + + 任务ID + + :return: The job_id of this ListDiagnoseJobResponse. + :rtype: int + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ListDiagnoseJobResponse. + + 任务ID + + :param job_id: The job_id of this ListDiagnoseJobResponse. + :type job_id: int + """ + self._job_id = job_id + + @property + def domain_id(self): + """Gets the domain_id of this ListDiagnoseJobResponse. + + 租户ID + + :return: The domain_id of this ListDiagnoseJobResponse. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ListDiagnoseJobResponse. + + 租户ID + + :param domain_id: The domain_id of this ListDiagnoseJobResponse. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def items_result(self): + """Gets the items_result of this ListDiagnoseJobResponse. + + 任务的检查项结果 + + :return: The items_result of this ListDiagnoseJobResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.ItemResultVo`] + """ + return self._items_result + + @items_result.setter + def items_result(self, items_result): + """Sets the items_result of this ListDiagnoseJobResponse. + + 任务的检查项结果 + + :param items_result: The items_result of this ListDiagnoseJobResponse. + :type items_result: list[:class:`huaweicloudsdkosm.v2.ItemResultVo`] + """ + self._items_result = items_result + + @property + def create_time(self): + """Gets the create_time of this ListDiagnoseJobResponse. + + 任务创建时间 + + :return: The create_time of this ListDiagnoseJobResponse. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ListDiagnoseJobResponse. + + 任务创建时间 + + :param create_time: The create_time of this ListDiagnoseJobResponse. + :type create_time: int + """ + self._create_time = create_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, ListDiagnoseJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_request.py new file mode 100755 index 000000000..c2c50fd4b --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_request.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDiagnoseRecordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'page_size': 'int', + 'page_no': 'int', + 'type': 'int' + } + + attribute_map = { + 'page_size': 'page_size', + 'page_no': 'page_no', + 'type': 'type' + } + + def __init__(self, page_size=None, page_no=None, type=None): + """ListDiagnoseRecordsRequest + + The model defined in huaweicloud sdk + + :param page_size: 单页大小 + :type page_size: int + :param page_no: 页码 + :type page_no: int + :param type: 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + :type type: int + """ + + + + self._page_size = None + self._page_no = None + self._type = None + self.discriminator = None + + if page_size is not None: + self.page_size = page_size + if page_no is not None: + self.page_no = page_no + if type is not None: + self.type = type + + @property + def page_size(self): + """Gets the page_size of this ListDiagnoseRecordsRequest. + + 单页大小 + + :return: The page_size of this ListDiagnoseRecordsRequest. + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this ListDiagnoseRecordsRequest. + + 单页大小 + + :param page_size: The page_size of this ListDiagnoseRecordsRequest. + :type page_size: int + """ + self._page_size = page_size + + @property + def page_no(self): + """Gets the page_no of this ListDiagnoseRecordsRequest. + + 页码 + + :return: The page_no of this ListDiagnoseRecordsRequest. + :rtype: int + """ + return self._page_no + + @page_no.setter + def page_no(self, page_no): + """Sets the page_no of this ListDiagnoseRecordsRequest. + + 页码 + + :param page_no: The page_no of this ListDiagnoseRecordsRequest. + :type page_no: int + """ + self._page_no = page_no + + @property + def type(self): + """Gets the type of this ListDiagnoseRecordsRequest. + + 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + + :return: The type of this ListDiagnoseRecordsRequest. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListDiagnoseRecordsRequest. + + 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + + :param type: The type of this ListDiagnoseRecordsRequest. + :type type: int + """ + self._type = 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, ListDiagnoseRecordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_response.py new file mode 100755 index 000000000..5ddb2348c --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_diagnose_records_response.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDiagnoseRecordsResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'total_count': 'int', + 'records': 'list[DiagnoseRecordVo]' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'total_count': 'total_count', + 'records': 'records' + } + + def __init__(self, error_code=None, error_msg=None, total_count=None, records=None): + """ListDiagnoseRecordsResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param total_count: 总条数 + :type total_count: int + :param records: 获取的诊断记录列表 + :type records: list[:class:`huaweicloudsdkosm.v2.DiagnoseRecordVo`] + """ + + super(ListDiagnoseRecordsResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._total_count = None + self._records = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if total_count is not None: + self.total_count = total_count + if records is not None: + self.records = records + + @property + def error_code(self): + """Gets the error_code of this ListDiagnoseRecordsResponse. + + 错误码 + + :return: The error_code of this ListDiagnoseRecordsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListDiagnoseRecordsResponse. + + 错误码 + + :param error_code: The error_code of this ListDiagnoseRecordsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListDiagnoseRecordsResponse. + + 错误描述 + + :return: The error_msg of this ListDiagnoseRecordsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListDiagnoseRecordsResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListDiagnoseRecordsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def total_count(self): + """Gets the total_count of this ListDiagnoseRecordsResponse. + + 总条数 + + :return: The total_count of this ListDiagnoseRecordsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListDiagnoseRecordsResponse. + + 总条数 + + :param total_count: The total_count of this ListDiagnoseRecordsResponse. + :type total_count: int + """ + self._total_count = total_count + + @property + def records(self): + """Gets the records of this ListDiagnoseRecordsResponse. + + 获取的诊断记录列表 + + :return: The records of this ListDiagnoseRecordsResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.DiagnoseRecordVo`] + """ + return self._records + + @records.setter + def records(self, records): + """Sets the records of this ListDiagnoseRecordsResponse. + + 获取的诊断记录列表 + + :param records: The records of this ListDiagnoseRecordsResponse. + :type records: list[:class:`huaweicloudsdkosm.v2.DiagnoseRecordVo`] + """ + self._records = records + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDiagnoseRecordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_request.py new file mode 100755 index 000000000..2141ceda5 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_request.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFeedbackOptionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'status': 'str', + 'feedback_source': 'str' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'status': 'status', + 'feedback_source': 'feedback_source' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, status=None, feedback_source=None): + """ListFeedbackOptionRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param status: - UNPUBLISHED: - PUBLISH: + :type status: str + :param feedback_source: - FAQ: - FLOW: + :type feedback_source: str + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._status = None + self._feedback_source = None + self.discriminator = None + + if x_service_key is not None: + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.status = status + if feedback_source is not None: + self.feedback_source = feedback_source + + @property + def x_service_key(self): + """Gets the x_service_key of this ListFeedbackOptionRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ListFeedbackOptionRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ListFeedbackOptionRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ListFeedbackOptionRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ListFeedbackOptionRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ListFeedbackOptionRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ListFeedbackOptionRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ListFeedbackOptionRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ListFeedbackOptionRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ListFeedbackOptionRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListFeedbackOptionRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ListFeedbackOptionRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def status(self): + """Gets the status of this ListFeedbackOptionRequest. + + - UNPUBLISHED: - PUBLISH: + + :return: The status of this ListFeedbackOptionRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListFeedbackOptionRequest. + + - UNPUBLISHED: - PUBLISH: + + :param status: The status of this ListFeedbackOptionRequest. + :type status: str + """ + self._status = status + + @property + def feedback_source(self): + """Gets the feedback_source of this ListFeedbackOptionRequest. + + - FAQ: - FLOW: + + :return: The feedback_source of this ListFeedbackOptionRequest. + :rtype: str + """ + return self._feedback_source + + @feedback_source.setter + def feedback_source(self, feedback_source): + """Sets the feedback_source of this ListFeedbackOptionRequest. + + - FAQ: - FLOW: + + :param feedback_source: The feedback_source of this ListFeedbackOptionRequest. + :type feedback_source: str + """ + self._feedback_source = feedback_source + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFeedbackOptionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_response.py new file mode 100755 index 000000000..c701e41c2 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_feedback_option_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFeedbackOptionResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'feedback_options': 'list[FeedbackOption]' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'feedback_options': 'feedback_options' + } + + def __init__(self, error_code=None, error_msg=None, feedback_options=None): + """ListFeedbackOptionResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param feedback_options: 选项列表 + :type feedback_options: list[:class:`huaweicloudsdkosm.v2.FeedbackOption`] + """ + + super(ListFeedbackOptionResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._feedback_options = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if feedback_options is not None: + self.feedback_options = feedback_options + + @property + def error_code(self): + """Gets the error_code of this ListFeedbackOptionResponse. + + 错误码 + + :return: The error_code of this ListFeedbackOptionResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListFeedbackOptionResponse. + + 错误码 + + :param error_code: The error_code of this ListFeedbackOptionResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListFeedbackOptionResponse. + + 错误描述 + + :return: The error_msg of this ListFeedbackOptionResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListFeedbackOptionResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListFeedbackOptionResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def feedback_options(self): + """Gets the feedback_options of this ListFeedbackOptionResponse. + + 选项列表 + + :return: The feedback_options of this ListFeedbackOptionResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.FeedbackOption`] + """ + return self._feedback_options + + @feedback_options.setter + def feedback_options(self, feedback_options): + """Sets the feedback_options of this ListFeedbackOptionResponse. + + 选项列表 + + :param feedback_options: The feedback_options of this ListFeedbackOptionResponse. + :type feedback_options: list[:class:`huaweicloudsdkosm.v2.FeedbackOption`] + """ + self._feedback_options = feedback_options + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFeedbackOptionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_request.py new file mode 100755 index 000000000..e505ba824 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListNoticesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'body': 'SearchNoticesReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, body=None): + """ListNoticesRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param body: Body of the ListNoticesRequest + :type body: :class:`huaweicloudsdkosm.v2.SearchNoticesReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._body = None + self.discriminator = None + + if x_service_key is not None: + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this ListNoticesRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ListNoticesRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ListNoticesRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ListNoticesRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ListNoticesRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ListNoticesRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ListNoticesRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ListNoticesRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ListNoticesRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ListNoticesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListNoticesRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ListNoticesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this ListNoticesRequest. + + :return: The body of this ListNoticesRequest. + :rtype: :class:`huaweicloudsdkosm.v2.SearchNoticesReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListNoticesRequest. + + :param body: The body of this ListNoticesRequest. + :type body: :class:`huaweicloudsdkosm.v2.SearchNoticesReq` + """ + 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, ListNoticesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_response.py new file mode 100755 index 000000000..a7118d166 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_notices_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListNoticesResponse(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 = { + 'notices': 'list[Notice]', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'notices': 'notices', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, notices=None, error_code=None, error_msg=None): + """ListNoticesResponse + + The model defined in huaweicloud sdk + + :param notices: 推荐公告列表 + :type notices: list[:class:`huaweicloudsdkosm.v2.Notice`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(ListNoticesResponse, self).__init__() + + self._notices = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if notices is not None: + self.notices = notices + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def notices(self): + """Gets the notices of this ListNoticesResponse. + + 推荐公告列表 + + :return: The notices of this ListNoticesResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.Notice`] + """ + return self._notices + + @notices.setter + def notices(self, notices): + """Sets the notices of this ListNoticesResponse. + + 推荐公告列表 + + :param notices: The notices of this ListNoticesResponse. + :type notices: list[:class:`huaweicloudsdkosm.v2.Notice`] + """ + self._notices = notices + + @property + def error_code(self): + """Gets the error_code of this ListNoticesResponse. + + 错误码 + + :return: The error_code of this ListNoticesResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListNoticesResponse. + + 错误码 + + :param error_code: The error_code of this ListNoticesResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListNoticesResponse. + + 错误描述 + + :return: The error_msg of this ListNoticesResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListNoticesResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListNoticesResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListNoticesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_request.py new file mode 100755 index 000000000..810085427 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_request.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRecommendWordsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'recommend_word_id': 'str', + 'level_value': 'int', + 'theme_name': 'str' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'recommend_word_id': 'recommend_word_id', + 'level_value': 'level_value', + 'theme_name': 'theme_name' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, recommend_word_id=None, level_value=None, theme_name=None): + """ListRecommendWordsRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param recommend_word_id: 推荐词Id + :type recommend_word_id: str + :param level_value: 推荐词层级 + :type level_value: int + :param theme_name: 主题名称 + :type theme_name: str + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._recommend_word_id = None + self._level_value = None + self._theme_name = None + self.discriminator = None + + if x_service_key is not None: + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if recommend_word_id is not None: + self.recommend_word_id = recommend_word_id + if level_value is not None: + self.level_value = level_value + if theme_name is not None: + self.theme_name = theme_name + + @property + def x_service_key(self): + """Gets the x_service_key of this ListRecommendWordsRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ListRecommendWordsRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ListRecommendWordsRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ListRecommendWordsRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ListRecommendWordsRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ListRecommendWordsRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ListRecommendWordsRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ListRecommendWordsRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ListRecommendWordsRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ListRecommendWordsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListRecommendWordsRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ListRecommendWordsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def recommend_word_id(self): + """Gets the recommend_word_id of this ListRecommendWordsRequest. + + 推荐词Id + + :return: The recommend_word_id of this ListRecommendWordsRequest. + :rtype: str + """ + return self._recommend_word_id + + @recommend_word_id.setter + def recommend_word_id(self, recommend_word_id): + """Sets the recommend_word_id of this ListRecommendWordsRequest. + + 推荐词Id + + :param recommend_word_id: The recommend_word_id of this ListRecommendWordsRequest. + :type recommend_word_id: str + """ + self._recommend_word_id = recommend_word_id + + @property + def level_value(self): + """Gets the level_value of this ListRecommendWordsRequest. + + 推荐词层级 + + :return: The level_value of this ListRecommendWordsRequest. + :rtype: int + """ + return self._level_value + + @level_value.setter + def level_value(self, level_value): + """Sets the level_value of this ListRecommendWordsRequest. + + 推荐词层级 + + :param level_value: The level_value of this ListRecommendWordsRequest. + :type level_value: int + """ + self._level_value = level_value + + @property + def theme_name(self): + """Gets the theme_name of this ListRecommendWordsRequest. + + 主题名称 + + :return: The theme_name of this ListRecommendWordsRequest. + :rtype: str + """ + return self._theme_name + + @theme_name.setter + def theme_name(self, theme_name): + """Sets the theme_name of this ListRecommendWordsRequest. + + 主题名称 + + :param theme_name: The theme_name of this ListRecommendWordsRequest. + :type theme_name: str + """ + self._theme_name = theme_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, ListRecommendWordsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_response.py new file mode 100755 index 000000000..c0ab23137 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_recommend_words_response.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListRecommendWordsResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'recommend_words': 'list[RecommendWord]', + 'total_count': 'int' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'recommend_words': 'recommend_words', + 'total_count': 'total_count' + } + + def __init__(self, error_code=None, error_msg=None, recommend_words=None, total_count=None): + """ListRecommendWordsResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param recommend_words: 推荐词列表 + :type recommend_words: list[:class:`huaweicloudsdkosm.v2.RecommendWord`] + :param total_count: 推荐词总数 + :type total_count: int + """ + + super(ListRecommendWordsResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._recommend_words = None + self._total_count = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if recommend_words is not None: + self.recommend_words = recommend_words + if total_count is not None: + self.total_count = total_count + + @property + def error_code(self): + """Gets the error_code of this ListRecommendWordsResponse. + + 错误码 + + :return: The error_code of this ListRecommendWordsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListRecommendWordsResponse. + + 错误码 + + :param error_code: The error_code of this ListRecommendWordsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListRecommendWordsResponse. + + 错误描述 + + :return: The error_msg of this ListRecommendWordsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListRecommendWordsResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListRecommendWordsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def recommend_words(self): + """Gets the recommend_words of this ListRecommendWordsResponse. + + 推荐词列表 + + :return: The recommend_words of this ListRecommendWordsResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.RecommendWord`] + """ + return self._recommend_words + + @recommend_words.setter + def recommend_words(self, recommend_words): + """Sets the recommend_words of this ListRecommendWordsResponse. + + 推荐词列表 + + :param recommend_words: The recommend_words of this ListRecommendWordsResponse. + :type recommend_words: list[:class:`huaweicloudsdkosm.v2.RecommendWord`] + """ + self._recommend_words = recommend_words + + @property + def total_count(self): + """Gets the total_count of this ListRecommendWordsResponse. + + 推荐词总数 + + :return: The total_count of this ListRecommendWordsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListRecommendWordsResponse. + + 推荐词总数 + + :param total_count: The total_count of this ListRecommendWordsResponse. + :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, ListRecommendWordsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_request.py new file mode 100755 index 000000000..708fdfec1 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListToolsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'body': 'SearchToolsReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, body=None): + """ListToolsRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param body: Body of the ListToolsRequest + :type body: :class:`huaweicloudsdkosm.v2.SearchToolsReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._body = None + self.discriminator = None + + if x_service_key is not None: + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this ListToolsRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ListToolsRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ListToolsRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ListToolsRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ListToolsRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ListToolsRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ListToolsRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ListToolsRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ListToolsRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ListToolsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListToolsRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ListToolsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this ListToolsRequest. + + :return: The body of this ListToolsRequest. + :rtype: :class:`huaweicloudsdkosm.v2.SearchToolsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListToolsRequest. + + :param body: The body of this ListToolsRequest. + :type body: :class:`huaweicloudsdkosm.v2.SearchToolsReq` + """ + 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, ListToolsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_response.py new file mode 100755 index 000000000..33019373f --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/list_tools_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListToolsResponse(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 = { + 'tools': 'list[Tool]', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'tools': 'tools', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, tools=None, error_code=None, error_msg=None): + """ListToolsResponse + + The model defined in huaweicloud sdk + + :param tools: 推荐工具列表 + :type tools: list[:class:`huaweicloudsdkosm.v2.Tool`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(ListToolsResponse, self).__init__() + + self._tools = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if tools is not None: + self.tools = tools + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def tools(self): + """Gets the tools of this ListToolsResponse. + + 推荐工具列表 + + :return: The tools of this ListToolsResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.Tool`] + """ + return self._tools + + @tools.setter + def tools(self, tools): + """Sets the tools of this ListToolsResponse. + + 推荐工具列表 + + :param tools: The tools of this ListToolsResponse. + :type tools: list[:class:`huaweicloudsdkosm.v2.Tool`] + """ + self._tools = tools + + @property + def error_code(self): + """Gets the error_code of this ListToolsResponse. + + 错误码 + + :return: The error_code of this ListToolsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListToolsResponse. + + 错误码 + + :param error_code: The error_code of this ListToolsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListToolsResponse. + + 错误描述 + + :return: The error_msg of this ListToolsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListToolsResponse. + + 错误描述 + + :param error_msg: The error_msg of this ListToolsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListToolsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/notice.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/notice.py new file mode 100755 index 000000000..99da6c54d --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/notice.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Notice: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'content': 'str', + 'create_time': 'int', + 'update_time': 'int' + } + + attribute_map = { + 'id': 'id', + 'content': 'content', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, id=None, content=None, create_time=None, update_time=None): + """Notice + + The model defined in huaweicloud sdk + + :param id: 公告Id + :type id: str + :param content: 公告内容 + :type content: str + :param create_time: 创建时间 + :type create_time: int + :param update_time: 更新时间 + :type update_time: int + """ + + + + self._id = None + self._content = None + self._create_time = None + self._update_time = None + self.discriminator = None + + self.id = id + self.content = content + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def id(self): + """Gets the id of this Notice. + + 公告Id + + :return: The id of this Notice. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Notice. + + 公告Id + + :param id: The id of this Notice. + :type id: str + """ + self._id = id + + @property + def content(self): + """Gets the content of this Notice. + + 公告内容 + + :return: The content of this Notice. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this Notice. + + 公告内容 + + :param content: The content of this Notice. + :type content: str + """ + self._content = content + + @property + def create_time(self): + """Gets the create_time of this Notice. + + 创建时间 + + :return: The create_time of this Notice. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this Notice. + + 创建时间 + + :param create_time: The create_time of this Notice. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this Notice. + + 更新时间 + + :return: The update_time of this Notice. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this Notice. + + 更新时间 + + :param update_time: The update_time of this Notice. + :type update_time: int + """ + 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, Notice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_ask_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_ask_req.py new file mode 100755 index 000000000..ed7845816 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_ask_req.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QaAskReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'top': 'int', + 'themes': 'list[RelationTheme]', + 'source': 'str', + 'session_id': 'str', + 'source_qa_pair_id': 'str', + 'alternative_answer_enable': 'bool', + 'product_type_id': 'str', + 'specify_node_id': 'str' + } + + attribute_map = { + 'question': 'question', + 'top': 'top', + 'themes': 'themes', + 'source': 'source', + 'session_id': 'session_id', + 'source_qa_pair_id': 'source_qa_pair_id', + 'alternative_answer_enable': 'alternative_answer_enable', + 'product_type_id': 'product_type_id', + 'specify_node_id': 'specify_node_id' + } + + def __init__(self, question=None, top=None, themes=None, source=None, session_id=None, source_qa_pair_id=None, alternative_answer_enable=None, product_type_id=None, specify_node_id=None): + """QaAskReq + + The model defined in huaweicloud sdk + + :param question: 用户输入问题 + :type question: str + :param top: 最大返回数据条数 + :type top: int + :param themes: 主题列表 + :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + :param source: - PORTAL: - INCIDENT: + :type source: str + :param session_id: 会话ID + :type session_id: str + :param source_qa_pair_id: 语料ID + :type source_qa_pair_id: str + :param alternative_answer_enable: 是否需要备选答案 + :type alternative_answer_enable: bool + :param product_type_id: 产品类型Id + :type product_type_id: str + :param specify_node_id: 指定的节点ID + :type specify_node_id: str + """ + + + + self._question = None + self._top = None + self._themes = None + self._source = None + self._session_id = None + self._source_qa_pair_id = None + self._alternative_answer_enable = None + self._product_type_id = None + self._specify_node_id = None + self.discriminator = None + + self.question = question + if top is not None: + self.top = top + if themes is not None: + self.themes = themes + if source is not None: + self.source = source + if session_id is not None: + self.session_id = session_id + if source_qa_pair_id is not None: + self.source_qa_pair_id = source_qa_pair_id + if alternative_answer_enable is not None: + self.alternative_answer_enable = alternative_answer_enable + if product_type_id is not None: + self.product_type_id = product_type_id + if specify_node_id is not None: + self.specify_node_id = specify_node_id + + @property + def question(self): + """Gets the question of this QaAskReq. + + 用户输入问题 + + :return: The question of this QaAskReq. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this QaAskReq. + + 用户输入问题 + + :param question: The question of this QaAskReq. + :type question: str + """ + self._question = question + + @property + def top(self): + """Gets the top of this QaAskReq. + + 最大返回数据条数 + + :return: The top of this QaAskReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this QaAskReq. + + 最大返回数据条数 + + :param top: The top of this QaAskReq. + :type top: int + """ + self._top = top + + @property + def themes(self): + """Gets the themes of this QaAskReq. + + 主题列表 + + :return: The themes of this QaAskReq. + :rtype: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + """ + return self._themes + + @themes.setter + def themes(self, themes): + """Sets the themes of this QaAskReq. + + 主题列表 + + :param themes: The themes of this QaAskReq. + :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + """ + self._themes = themes + + @property + def source(self): + """Gets the source of this QaAskReq. + + - PORTAL: - INCIDENT: + + :return: The source of this QaAskReq. + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this QaAskReq. + + - PORTAL: - INCIDENT: + + :param source: The source of this QaAskReq. + :type source: str + """ + self._source = source + + @property + def session_id(self): + """Gets the session_id of this QaAskReq. + + 会话ID + + :return: The session_id of this QaAskReq. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this QaAskReq. + + 会话ID + + :param session_id: The session_id of this QaAskReq. + :type session_id: str + """ + self._session_id = session_id + + @property + def source_qa_pair_id(self): + """Gets the source_qa_pair_id of this QaAskReq. + + 语料ID + + :return: The source_qa_pair_id of this QaAskReq. + :rtype: str + """ + return self._source_qa_pair_id + + @source_qa_pair_id.setter + def source_qa_pair_id(self, source_qa_pair_id): + """Sets the source_qa_pair_id of this QaAskReq. + + 语料ID + + :param source_qa_pair_id: The source_qa_pair_id of this QaAskReq. + :type source_qa_pair_id: str + """ + self._source_qa_pair_id = source_qa_pair_id + + @property + def alternative_answer_enable(self): + """Gets the alternative_answer_enable of this QaAskReq. + + 是否需要备选答案 + + :return: The alternative_answer_enable of this QaAskReq. + :rtype: bool + """ + return self._alternative_answer_enable + + @alternative_answer_enable.setter + def alternative_answer_enable(self, alternative_answer_enable): + """Sets the alternative_answer_enable of this QaAskReq. + + 是否需要备选答案 + + :param alternative_answer_enable: The alternative_answer_enable of this QaAskReq. + :type alternative_answer_enable: bool + """ + self._alternative_answer_enable = alternative_answer_enable + + @property + def product_type_id(self): + """Gets the product_type_id of this QaAskReq. + + 产品类型Id + + :return: The product_type_id of this QaAskReq. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this QaAskReq. + + 产品类型Id + + :param product_type_id: The product_type_id of this QaAskReq. + :type product_type_id: str + """ + self._product_type_id = product_type_id + + @property + def specify_node_id(self): + """Gets the specify_node_id of this QaAskReq. + + 指定的节点ID + + :return: The specify_node_id of this QaAskReq. + :rtype: str + """ + return self._specify_node_id + + @specify_node_id.setter + def specify_node_id(self, specify_node_id): + """Sets the specify_node_id of this QaAskReq. + + 指定的节点ID + + :param specify_node_id: The specify_node_id of this QaAskReq. + :type specify_node_id: str + """ + self._specify_node_id = specify_node_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, QaAskReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_feedback_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_feedback_req.py new file mode 100755 index 000000000..54334ead4 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_feedback_req.py @@ -0,0 +1,348 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QaFeedbackReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'feedback_id': 'str', + 'qa_pair_source': 'str', + 'feedback_option_id': 'str', + 'feedback_description': 'str', + 'qa_pair_id': 'str', + 'request_id': 'str', + 'feedback_source': 'str', + 'flow_node_id': 'str' + } + + attribute_map = { + 'question': 'question', + 'feedback_id': 'feedback_id', + 'qa_pair_source': 'qa_pair_source', + 'feedback_option_id': 'feedback_option_id', + 'feedback_description': 'feedback_description', + 'qa_pair_id': 'qa_pair_id', + 'request_id': 'request_id', + 'feedback_source': 'feedback_source', + 'flow_node_id': 'flow_node_id' + } + + def __init__(self, question=None, feedback_id=None, qa_pair_source=None, feedback_option_id=None, feedback_description=None, qa_pair_id=None, request_id=None, feedback_source=None, flow_node_id=None): + """QaFeedbackReq + + The model defined in huaweicloud sdk + + :param question: 用户问题 + :type question: str + :param feedback_id: 反馈记录Id + :type feedback_id: str + :param qa_pair_source: - IROBOT_QA: - RECOMMEND_WORD_QA: + :type qa_pair_source: str + :param feedback_option_id: 反馈选项id + :type feedback_option_id: str + :param feedback_description: 反馈描述 + :type feedback_description: str + :param qa_pair_id: 语料id + :type qa_pair_id: str + :param request_id: 请求id + :type request_id: str + :param feedback_source: - FAQ: - FLOW: + :type feedback_source: str + :param flow_node_id: 流程节点Id + :type flow_node_id: str + """ + + + + self._question = None + self._feedback_id = None + self._qa_pair_source = None + self._feedback_option_id = None + self._feedback_description = None + self._qa_pair_id = None + self._request_id = None + self._feedback_source = None + self._flow_node_id = None + self.discriminator = None + + self.question = question + if feedback_id is not None: + self.feedback_id = feedback_id + if qa_pair_source is not None: + self.qa_pair_source = qa_pair_source + if feedback_option_id is not None: + self.feedback_option_id = feedback_option_id + if feedback_description is not None: + self.feedback_description = feedback_description + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + if request_id is not None: + self.request_id = request_id + self.feedback_source = feedback_source + if flow_node_id is not None: + self.flow_node_id = flow_node_id + + @property + def question(self): + """Gets the question of this QaFeedbackReq. + + 用户问题 + + :return: The question of this QaFeedbackReq. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this QaFeedbackReq. + + 用户问题 + + :param question: The question of this QaFeedbackReq. + :type question: str + """ + self._question = question + + @property + def feedback_id(self): + """Gets the feedback_id of this QaFeedbackReq. + + 反馈记录Id + + :return: The feedback_id of this QaFeedbackReq. + :rtype: str + """ + return self._feedback_id + + @feedback_id.setter + def feedback_id(self, feedback_id): + """Sets the feedback_id of this QaFeedbackReq. + + 反馈记录Id + + :param feedback_id: The feedback_id of this QaFeedbackReq. + :type feedback_id: str + """ + self._feedback_id = feedback_id + + @property + def qa_pair_source(self): + """Gets the qa_pair_source of this QaFeedbackReq. + + - IROBOT_QA: - RECOMMEND_WORD_QA: + + :return: The qa_pair_source of this QaFeedbackReq. + :rtype: str + """ + return self._qa_pair_source + + @qa_pair_source.setter + def qa_pair_source(self, qa_pair_source): + """Sets the qa_pair_source of this QaFeedbackReq. + + - IROBOT_QA: - RECOMMEND_WORD_QA: + + :param qa_pair_source: The qa_pair_source of this QaFeedbackReq. + :type qa_pair_source: str + """ + self._qa_pair_source = qa_pair_source + + @property + def feedback_option_id(self): + """Gets the feedback_option_id of this QaFeedbackReq. + + 反馈选项id + + :return: The feedback_option_id of this QaFeedbackReq. + :rtype: str + """ + return self._feedback_option_id + + @feedback_option_id.setter + def feedback_option_id(self, feedback_option_id): + """Sets the feedback_option_id of this QaFeedbackReq. + + 反馈选项id + + :param feedback_option_id: The feedback_option_id of this QaFeedbackReq. + :type feedback_option_id: str + """ + self._feedback_option_id = feedback_option_id + + @property + def feedback_description(self): + """Gets the feedback_description of this QaFeedbackReq. + + 反馈描述 + + :return: The feedback_description of this QaFeedbackReq. + :rtype: str + """ + return self._feedback_description + + @feedback_description.setter + def feedback_description(self, feedback_description): + """Sets the feedback_description of this QaFeedbackReq. + + 反馈描述 + + :param feedback_description: The feedback_description of this QaFeedbackReq. + :type feedback_description: str + """ + self._feedback_description = feedback_description + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this QaFeedbackReq. + + 语料id + + :return: The qa_pair_id of this QaFeedbackReq. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this QaFeedbackReq. + + 语料id + + :param qa_pair_id: The qa_pair_id of this QaFeedbackReq. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_id + + @property + def request_id(self): + """Gets the request_id of this QaFeedbackReq. + + 请求id + + :return: The request_id of this QaFeedbackReq. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this QaFeedbackReq. + + 请求id + + :param request_id: The request_id of this QaFeedbackReq. + :type request_id: str + """ + self._request_id = request_id + + @property + def feedback_source(self): + """Gets the feedback_source of this QaFeedbackReq. + + - FAQ: - FLOW: + + :return: The feedback_source of this QaFeedbackReq. + :rtype: str + """ + return self._feedback_source + + @feedback_source.setter + def feedback_source(self, feedback_source): + """Sets the feedback_source of this QaFeedbackReq. + + - FAQ: - FLOW: + + :param feedback_source: The feedback_source of this QaFeedbackReq. + :type feedback_source: str + """ + self._feedback_source = feedback_source + + @property + def flow_node_id(self): + """Gets the flow_node_id of this QaFeedbackReq. + + 流程节点Id + + :return: The flow_node_id of this QaFeedbackReq. + :rtype: str + """ + return self._flow_node_id + + @flow_node_id.setter + def flow_node_id(self, flow_node_id): + """Sets the flow_node_id of this QaFeedbackReq. + + 流程节点Id + + :param flow_node_id: The flow_node_id of this QaFeedbackReq. + :type flow_node_id: str + """ + self._flow_node_id = flow_node_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, QaFeedbackReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py new file mode 100755 index 000000000..c3a7961ac --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QaFlowHitNodeVo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'content': 'str', + 'answer_type': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'content': 'content', + 'answer_type': 'answer_type' + } + + def __init__(self, id=None, name=None, content=None, answer_type=None): + """QaFlowHitNodeVo + + The model defined in huaweicloud sdk + + :param id: ID + :type id: str + :param name: 名称 + :type name: str + :param content: 内容 + :type content: str + :param answer_type: - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR: + :type answer_type: str + """ + + + + self._id = None + self._name = None + self._content = None + self._answer_type = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if content is not None: + self.content = content + if answer_type is not None: + self.answer_type = answer_type + + @property + def id(self): + """Gets the id of this QaFlowHitNodeVo. + + ID + + :return: The id of this QaFlowHitNodeVo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this QaFlowHitNodeVo. + + ID + + :param id: The id of this QaFlowHitNodeVo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this QaFlowHitNodeVo. + + 名称 + + :return: The name of this QaFlowHitNodeVo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this QaFlowHitNodeVo. + + 名称 + + :param name: The name of this QaFlowHitNodeVo. + :type name: str + """ + self._name = name + + @property + def content(self): + """Gets the content of this QaFlowHitNodeVo. + + 内容 + + :return: The content of this QaFlowHitNodeVo. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this QaFlowHitNodeVo. + + 内容 + + :param content: The content of this QaFlowHitNodeVo. + :type content: str + """ + self._content = content + + @property + def answer_type(self): + """Gets the answer_type of this QaFlowHitNodeVo. + + - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR: + + :return: The answer_type of this QaFlowHitNodeVo. + :rtype: str + """ + return self._answer_type + + @answer_type.setter + def answer_type(self, answer_type): + """Sets the answer_type of this QaFlowHitNodeVo. + + - TEXT: - RICH_TEXT: - FLOW: - QA_PAIR: + + :param answer_type: The answer_type of this QaFlowHitNodeVo. + :type answer_type: str + """ + self._answer_type = answer_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, QaFlowHitNodeVo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_result.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_result.py new file mode 100755 index 000000000..1dcb286e8 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_flow_hit_result.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QaFlowHitResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'session_id': 'str', + 'current_node': 'QaFlowHitNodeVo', + 'candidate_nodes': 'list[QaFlowHitNodeVo]', + 'is_completed': 'bool' + } + + attribute_map = { + 'session_id': 'session_id', + 'current_node': 'current_node', + 'candidate_nodes': 'candidate_nodes', + 'is_completed': 'is_completed' + } + + def __init__(self, session_id=None, current_node=None, candidate_nodes=None, is_completed=None): + """QaFlowHitResult + + The model defined in huaweicloud sdk + + :param session_id: seesionID + :type session_id: str + :param current_node: + :type current_node: :class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo` + :param candidate_nodes: 备用节点 + :type candidate_nodes: list[:class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`] + :param is_completed: 是否完整 + :type is_completed: bool + """ + + + + self._session_id = None + self._current_node = None + self._candidate_nodes = None + self._is_completed = None + self.discriminator = None + + if session_id is not None: + self.session_id = session_id + if current_node is not None: + self.current_node = current_node + if candidate_nodes is not None: + self.candidate_nodes = candidate_nodes + if is_completed is not None: + self.is_completed = is_completed + + @property + def session_id(self): + """Gets the session_id of this QaFlowHitResult. + + seesionID + + :return: The session_id of this QaFlowHitResult. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """Sets the session_id of this QaFlowHitResult. + + seesionID + + :param session_id: The session_id of this QaFlowHitResult. + :type session_id: str + """ + self._session_id = session_id + + @property + def current_node(self): + """Gets the current_node of this QaFlowHitResult. + + :return: The current_node of this QaFlowHitResult. + :rtype: :class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo` + """ + return self._current_node + + @current_node.setter + def current_node(self, current_node): + """Sets the current_node of this QaFlowHitResult. + + :param current_node: The current_node of this QaFlowHitResult. + :type current_node: :class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo` + """ + self._current_node = current_node + + @property + def candidate_nodes(self): + """Gets the candidate_nodes of this QaFlowHitResult. + + 备用节点 + + :return: The candidate_nodes of this QaFlowHitResult. + :rtype: list[:class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`] + """ + return self._candidate_nodes + + @candidate_nodes.setter + def candidate_nodes(self, candidate_nodes): + """Sets the candidate_nodes of this QaFlowHitResult. + + 备用节点 + + :param candidate_nodes: The candidate_nodes of this QaFlowHitResult. + :type candidate_nodes: list[:class:`huaweicloudsdkosm.v2.QaFlowHitNodeVo`] + """ + self._candidate_nodes = candidate_nodes + + @property + def is_completed(self): + """Gets the is_completed of this QaFlowHitResult. + + 是否完整 + + :return: The is_completed of this QaFlowHitResult. + :rtype: bool + """ + return self._is_completed + + @is_completed.setter + def is_completed(self, is_completed): + """Sets the is_completed of this QaFlowHitResult. + + 是否完整 + + :param is_completed: The is_completed of this QaFlowHitResult. + :type is_completed: bool + """ + self._is_completed = is_completed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QaFlowHitResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_graph_answer.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_graph_answer.py new file mode 100755 index 000000000..6e8ceef81 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_graph_answer.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QaGraphAnswer: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'answer': 'str', + 'score': 'float', + 'type': 'int', + 'options': 'list[str]' + } + + attribute_map = { + 'answer': 'answer', + 'score': 'score', + 'type': 'type', + 'options': 'options' + } + + def __init__(self, answer=None, score=None, type=None, options=None): + """QaGraphAnswer + + The model defined in huaweicloud sdk + + :param answer: 答案 + :type answer: str + :param score: 评分 + :type score: float + :param type: 类型 + :type type: int + :param options: 列表 + :type options: list[str] + """ + + + + self._answer = None + self._score = None + self._type = None + self._options = None + self.discriminator = None + + if answer is not None: + self.answer = answer + if score is not None: + self.score = score + if type is not None: + self.type = type + if options is not None: + self.options = options + + @property + def answer(self): + """Gets the answer of this QaGraphAnswer. + + 答案 + + :return: The answer of this QaGraphAnswer. + :rtype: str + """ + return self._answer + + @answer.setter + def answer(self, answer): + """Sets the answer of this QaGraphAnswer. + + 答案 + + :param answer: The answer of this QaGraphAnswer. + :type answer: str + """ + self._answer = answer + + @property + def score(self): + """Gets the score of this QaGraphAnswer. + + 评分 + + :return: The score of this QaGraphAnswer. + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this QaGraphAnswer. + + 评分 + + :param score: The score of this QaGraphAnswer. + :type score: float + """ + self._score = score + + @property + def type(self): + """Gets the type of this QaGraphAnswer. + + 类型 + + :return: The type of this QaGraphAnswer. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this QaGraphAnswer. + + 类型 + + :param type: The type of this QaGraphAnswer. + :type type: int + """ + self._type = type + + @property + def options(self): + """Gets the options of this QaGraphAnswer. + + 列表 + + :return: The options of this QaGraphAnswer. + :rtype: list[str] + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this QaGraphAnswer. + + 列表 + + :param options: The options of this QaGraphAnswer. + :type options: list[str] + """ + self._options = options + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QaGraphAnswer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_pair.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_pair.py new file mode 100755 index 000000000..b481713e6 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qa_pair.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QaPair: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain': 'str', + 'link': 'str', + 'question': 'str', + 'answers': 'list[Answer]', + 'qa_pair_id': 'str', + 'ex_questions': 'list[ExtendQuestion]', + 'related_question_ids': 'list[str]' + } + + attribute_map = { + 'domain': 'domain', + 'link': 'link', + 'question': 'question', + 'answers': 'answers', + 'qa_pair_id': 'qa_pair_id', + 'ex_questions': 'ex_questions', + 'related_question_ids': 'related_question_ids' + } + + def __init__(self, domain=None, link=None, question=None, answers=None, qa_pair_id=None, ex_questions=None, related_question_ids=None): + """QaPair + + The model defined in huaweicloud sdk + + :param domain: 主题 + :type domain: str + :param link: 链接 + :type link: str + :param question: 问题 + :type question: str + :param answers: 答案列表 + :type answers: list[:class:`huaweicloudsdkosm.v2.Answer`] + :param qa_pair_id: 语料Id + :type qa_pair_id: str + :param ex_questions: 扩展问题列表 + :type ex_questions: list[:class:`huaweicloudsdkosm.v2.ExtendQuestion`] + :param related_question_ids: 相关问题列表 + :type related_question_ids: list[str] + """ + + + + self._domain = None + self._link = None + self._question = None + self._answers = None + self._qa_pair_id = None + self._ex_questions = None + self._related_question_ids = None + self.discriminator = None + + if domain is not None: + self.domain = domain + if link is not None: + self.link = link + if question is not None: + self.question = question + if answers is not None: + self.answers = answers + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + if ex_questions is not None: + self.ex_questions = ex_questions + if related_question_ids is not None: + self.related_question_ids = related_question_ids + + @property + def domain(self): + """Gets the domain of this QaPair. + + 主题 + + :return: The domain of this QaPair. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this QaPair. + + 主题 + + :param domain: The domain of this QaPair. + :type domain: str + """ + self._domain = domain + + @property + def link(self): + """Gets the link of this QaPair. + + 链接 + + :return: The link of this QaPair. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this QaPair. + + 链接 + + :param link: The link of this QaPair. + :type link: str + """ + self._link = link + + @property + def question(self): + """Gets the question of this QaPair. + + 问题 + + :return: The question of this QaPair. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this QaPair. + + 问题 + + :param question: The question of this QaPair. + :type question: str + """ + self._question = question + + @property + def answers(self): + """Gets the answers of this QaPair. + + 答案列表 + + :return: The answers of this QaPair. + :rtype: list[:class:`huaweicloudsdkosm.v2.Answer`] + """ + return self._answers + + @answers.setter + def answers(self, answers): + """Sets the answers of this QaPair. + + 答案列表 + + :param answers: The answers of this QaPair. + :type answers: list[:class:`huaweicloudsdkosm.v2.Answer`] + """ + self._answers = answers + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this QaPair. + + 语料Id + + :return: The qa_pair_id of this QaPair. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this QaPair. + + 语料Id + + :param qa_pair_id: The qa_pair_id of this QaPair. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_id + + @property + def ex_questions(self): + """Gets the ex_questions of this QaPair. + + 扩展问题列表 + + :return: The ex_questions of this QaPair. + :rtype: list[:class:`huaweicloudsdkosm.v2.ExtendQuestion`] + """ + return self._ex_questions + + @ex_questions.setter + def ex_questions(self, ex_questions): + """Sets the ex_questions of this QaPair. + + 扩展问题列表 + + :param ex_questions: The ex_questions of this QaPair. + :type ex_questions: list[:class:`huaweicloudsdkosm.v2.ExtendQuestion`] + """ + self._ex_questions = ex_questions + + @property + def related_question_ids(self): + """Gets the related_question_ids of this QaPair. + + 相关问题列表 + + :return: The related_question_ids of this QaPair. + :rtype: list[str] + """ + return self._related_question_ids + + @related_question_ids.setter + def related_question_ids(self, related_question_ids): + """Sets the related_question_ids of this QaPair. + + 相关问题列表 + + :param related_question_ids: The related_question_ids of this QaPair. + :type related_question_ids: list[str] + """ + self._related_question_ids = related_question_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QaPair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qabot_answer.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qabot_answer.py new file mode 100755 index 000000000..9d559f0c5 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/qabot_answer.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QabotAnswer: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'answer': 'str', + 'score': 'float', + 'domain': 'str', + 'link': 'str', + 'qa_pair_id': 'str', + 'domain_id': 'str', + 'top_score_question': 'str', + 'relevance_details': 'list[RelevanceQapair]' + } + + attribute_map = { + 'question': 'question', + 'answer': 'answer', + 'score': 'score', + 'domain': 'domain', + 'link': 'link', + 'qa_pair_id': 'qa_pair_id', + 'domain_id': 'domain_id', + 'top_score_question': 'top_score_question', + 'relevance_details': 'relevance_details' + } + + def __init__(self, question=None, answer=None, score=None, domain=None, link=None, qa_pair_id=None, domain_id=None, top_score_question=None, relevance_details=None): + """QabotAnswer + + The model defined in huaweicloud sdk + + :param question: 问题 + :type question: str + :param answer: 答案 + :type answer: str + :param score: 评分 + :type score: float + :param domain: 主题 + :type domain: str + :param link: 链接地址 + :type link: str + :param qa_pair_id: 语料id + :type qa_pair_id: str + :param domain_id: 主题id + :type domain_id: str + :param top_score_question: 推荐答案 + :type top_score_question: str + :param relevance_details: 相关问题列表 + :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + + + + self._question = None + self._answer = None + self._score = None + self._domain = None + self._link = None + self._qa_pair_id = None + self._domain_id = None + self._top_score_question = None + self._relevance_details = None + self.discriminator = None + + if question is not None: + self.question = question + if answer is not None: + self.answer = answer + if score is not None: + self.score = score + if domain is not None: + self.domain = domain + if link is not None: + self.link = link + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + if domain_id is not None: + self.domain_id = domain_id + if top_score_question is not None: + self.top_score_question = top_score_question + if relevance_details is not None: + self.relevance_details = relevance_details + + @property + def question(self): + """Gets the question of this QabotAnswer. + + 问题 + + :return: The question of this QabotAnswer. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this QabotAnswer. + + 问题 + + :param question: The question of this QabotAnswer. + :type question: str + """ + self._question = question + + @property + def answer(self): + """Gets the answer of this QabotAnswer. + + 答案 + + :return: The answer of this QabotAnswer. + :rtype: str + """ + return self._answer + + @answer.setter + def answer(self, answer): + """Sets the answer of this QabotAnswer. + + 答案 + + :param answer: The answer of this QabotAnswer. + :type answer: str + """ + self._answer = answer + + @property + def score(self): + """Gets the score of this QabotAnswer. + + 评分 + + :return: The score of this QabotAnswer. + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this QabotAnswer. + + 评分 + + :param score: The score of this QabotAnswer. + :type score: float + """ + self._score = score + + @property + def domain(self): + """Gets the domain of this QabotAnswer. + + 主题 + + :return: The domain of this QabotAnswer. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this QabotAnswer. + + 主题 + + :param domain: The domain of this QabotAnswer. + :type domain: str + """ + self._domain = domain + + @property + def link(self): + """Gets the link of this QabotAnswer. + + 链接地址 + + :return: The link of this QabotAnswer. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this QabotAnswer. + + 链接地址 + + :param link: The link of this QabotAnswer. + :type link: str + """ + self._link = link + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this QabotAnswer. + + 语料id + + :return: The qa_pair_id of this QabotAnswer. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this QabotAnswer. + + 语料id + + :param qa_pair_id: The qa_pair_id of this QabotAnswer. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_id + + @property + def domain_id(self): + """Gets the domain_id of this QabotAnswer. + + 主题id + + :return: The domain_id of this QabotAnswer. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this QabotAnswer. + + 主题id + + :param domain_id: The domain_id of this QabotAnswer. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def top_score_question(self): + """Gets the top_score_question of this QabotAnswer. + + 推荐答案 + + :return: The top_score_question of this QabotAnswer. + :rtype: str + """ + return self._top_score_question + + @top_score_question.setter + def top_score_question(self, top_score_question): + """Sets the top_score_question of this QabotAnswer. + + 推荐答案 + + :param top_score_question: The top_score_question of this QabotAnswer. + :type top_score_question: str + """ + self._top_score_question = top_score_question + + @property + def relevance_details(self): + """Gets the relevance_details of this QabotAnswer. + + 相关问题列表 + + :return: The relevance_details of this QabotAnswer. + :rtype: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + return self._relevance_details + + @relevance_details.setter + def relevance_details(self, relevance_details): + """Sets the relevance_details of this QabotAnswer. + + 相关问题列表 + + :param relevance_details: The relevance_details of this QabotAnswer. + :type relevance_details: list[:class:`huaweicloudsdkosm.v2.RelevanceQapair`] + """ + self._relevance_details = relevance_details + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QabotAnswer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_associated_question_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_associated_question_req.py new file mode 100755 index 000000000..e12180b08 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_associated_question_req.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryAssociatedQuestionReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'top': 'int', + 'domains': 'list[str]' + } + + attribute_map = { + 'question': 'question', + 'top': 'top', + 'domains': 'domains' + } + + def __init__(self, question=None, top=None, domains=None): + """QueryAssociatedQuestionReq + + The model defined in huaweicloud sdk + + :param question: 用户输入问题 + :type question: str + :param top: 返回匹配度最高的数据条数 + :type top: int + :param domains: 问答领域 + :type domains: list[str] + """ + + + + self._question = None + self._top = None + self._domains = None + self.discriminator = None + + self.question = question + if top is not None: + self.top = top + if domains is not None: + self.domains = domains + + @property + def question(self): + """Gets the question of this QueryAssociatedQuestionReq. + + 用户输入问题 + + :return: The question of this QueryAssociatedQuestionReq. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this QueryAssociatedQuestionReq. + + 用户输入问题 + + :param question: The question of this QueryAssociatedQuestionReq. + :type question: str + """ + self._question = question + + @property + def top(self): + """Gets the top of this QueryAssociatedQuestionReq. + + 返回匹配度最高的数据条数 + + :return: The top of this QueryAssociatedQuestionReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this QueryAssociatedQuestionReq. + + 返回匹配度最高的数据条数 + + :param top: The top of this QueryAssociatedQuestionReq. + :type top: int + """ + self._top = top + + @property + def domains(self): + """Gets the domains of this QueryAssociatedQuestionReq. + + 问答领域 + + :return: The domains of this QueryAssociatedQuestionReq. + :rtype: list[str] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this QueryAssociatedQuestionReq. + + 问答领域 + + :param domains: The domains of this QueryAssociatedQuestionReq. + :type domains: list[str] + """ + self._domains = domains + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryAssociatedQuestionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_diagnose_items_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_diagnose_items_req.py new file mode 100755 index 000000000..ab5e84d34 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/query_diagnose_items_req.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryDiagnoseItemsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'item_ids': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'item_ids': 'item_ids' + } + + def __init__(self, job_id=None, item_ids=None): + """QueryDiagnoseItemsReq + + The model defined in huaweicloud sdk + + :param job_id: job id + :type job_id: str + :param item_ids: 诊断项id列表 + :type item_ids: str + """ + + + + self._job_id = None + self._item_ids = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + if item_ids is not None: + self.item_ids = item_ids + + @property + def job_id(self): + """Gets the job_id of this QueryDiagnoseItemsReq. + + job id + + :return: The job_id of this QueryDiagnoseItemsReq. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this QueryDiagnoseItemsReq. + + job id + + :param job_id: The job_id of this QueryDiagnoseItemsReq. + :type job_id: str + """ + self._job_id = job_id + + @property + def item_ids(self): + """Gets the item_ids of this QueryDiagnoseItemsReq. + + 诊断项id列表 + + :return: The item_ids of this QueryDiagnoseItemsReq. + :rtype: str + """ + return self._item_ids + + @item_ids.setter + def item_ids(self, item_ids): + """Sets the item_ids of this QueryDiagnoseItemsReq. + + 诊断项id列表 + + :param item_ids: The item_ids of this QueryDiagnoseItemsReq. + :type item_ids: str + """ + self._item_ids = item_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryDiagnoseItemsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/recommend_word.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/recommend_word.py new file mode 100755 index 000000000..29e5dcea3 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/recommend_word.py @@ -0,0 +1,288 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecommendWord: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'recommend_word_id': 'str', + 'recommend_word_name': 'str', + 'level_value': 'int', + 'sort_value': 'int', + 'theme_id': 'str', + 'theme_name': 'str', + 'answer_info': 'AnswerInfo' + } + + attribute_map = { + 'recommend_word_id': 'recommend_word_id', + 'recommend_word_name': 'recommend_word_name', + 'level_value': 'level_value', + 'sort_value': 'sort_value', + 'theme_id': 'theme_id', + 'theme_name': 'theme_name', + 'answer_info': 'answer_info' + } + + def __init__(self, recommend_word_id=None, recommend_word_name=None, level_value=None, sort_value=None, theme_id=None, theme_name=None, answer_info=None): + """RecommendWord + + The model defined in huaweicloud sdk + + :param recommend_word_id: 推荐词Id + :type recommend_word_id: str + :param recommend_word_name: 推荐词 + :type recommend_word_name: str + :param level_value: 推荐词层级 + :type level_value: int + :param sort_value: 推荐词排序,序号越小越靠前 + :type sort_value: int + :param theme_id: 主题Id + :type theme_id: str + :param theme_name: 主题名称 + :type theme_name: str + :param answer_info: + :type answer_info: :class:`huaweicloudsdkosm.v2.AnswerInfo` + """ + + + + self._recommend_word_id = None + self._recommend_word_name = None + self._level_value = None + self._sort_value = None + self._theme_id = None + self._theme_name = None + self._answer_info = None + self.discriminator = None + + if recommend_word_id is not None: + self.recommend_word_id = recommend_word_id + if recommend_word_name is not None: + self.recommend_word_name = recommend_word_name + if level_value is not None: + self.level_value = level_value + if sort_value is not None: + self.sort_value = sort_value + if theme_id is not None: + self.theme_id = theme_id + if theme_name is not None: + self.theme_name = theme_name + if answer_info is not None: + self.answer_info = answer_info + + @property + def recommend_word_id(self): + """Gets the recommend_word_id of this RecommendWord. + + 推荐词Id + + :return: The recommend_word_id of this RecommendWord. + :rtype: str + """ + return self._recommend_word_id + + @recommend_word_id.setter + def recommend_word_id(self, recommend_word_id): + """Sets the recommend_word_id of this RecommendWord. + + 推荐词Id + + :param recommend_word_id: The recommend_word_id of this RecommendWord. + :type recommend_word_id: str + """ + self._recommend_word_id = recommend_word_id + + @property + def recommend_word_name(self): + """Gets the recommend_word_name of this RecommendWord. + + 推荐词 + + :return: The recommend_word_name of this RecommendWord. + :rtype: str + """ + return self._recommend_word_name + + @recommend_word_name.setter + def recommend_word_name(self, recommend_word_name): + """Sets the recommend_word_name of this RecommendWord. + + 推荐词 + + :param recommend_word_name: The recommend_word_name of this RecommendWord. + :type recommend_word_name: str + """ + self._recommend_word_name = recommend_word_name + + @property + def level_value(self): + """Gets the level_value of this RecommendWord. + + 推荐词层级 + + :return: The level_value of this RecommendWord. + :rtype: int + """ + return self._level_value + + @level_value.setter + def level_value(self, level_value): + """Sets the level_value of this RecommendWord. + + 推荐词层级 + + :param level_value: The level_value of this RecommendWord. + :type level_value: int + """ + self._level_value = level_value + + @property + def sort_value(self): + """Gets the sort_value of this RecommendWord. + + 推荐词排序,序号越小越靠前 + + :return: The sort_value of this RecommendWord. + :rtype: int + """ + return self._sort_value + + @sort_value.setter + def sort_value(self, sort_value): + """Sets the sort_value of this RecommendWord. + + 推荐词排序,序号越小越靠前 + + :param sort_value: The sort_value of this RecommendWord. + :type sort_value: int + """ + self._sort_value = sort_value + + @property + def theme_id(self): + """Gets the theme_id of this RecommendWord. + + 主题Id + + :return: The theme_id of this RecommendWord. + :rtype: str + """ + return self._theme_id + + @theme_id.setter + def theme_id(self, theme_id): + """Sets the theme_id of this RecommendWord. + + 主题Id + + :param theme_id: The theme_id of this RecommendWord. + :type theme_id: str + """ + self._theme_id = theme_id + + @property + def theme_name(self): + """Gets the theme_name of this RecommendWord. + + 主题名称 + + :return: The theme_name of this RecommendWord. + :rtype: str + """ + return self._theme_name + + @theme_name.setter + def theme_name(self, theme_name): + """Sets the theme_name of this RecommendWord. + + 主题名称 + + :param theme_name: The theme_name of this RecommendWord. + :type theme_name: str + """ + self._theme_name = theme_name + + @property + def answer_info(self): + """Gets the answer_info of this RecommendWord. + + :return: The answer_info of this RecommendWord. + :rtype: :class:`huaweicloudsdkosm.v2.AnswerInfo` + """ + return self._answer_info + + @answer_info.setter + def answer_info(self, answer_info): + """Sets the answer_info of this RecommendWord. + + :param answer_info: The answer_info of this RecommendWord. + :type answer_info: :class:`huaweicloudsdkosm.v2.AnswerInfo` + """ + self._answer_info = answer_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RecommendWord): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relation_theme.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relation_theme.py new file mode 100755 index 000000000..f818c14b6 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relation_theme.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RelationTheme: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'theme_name': 'str', + 'relation_type': 'str' + } + + attribute_map = { + 'theme_name': 'theme_name', + 'relation_type': 'relation_type' + } + + def __init__(self, theme_name=None, relation_type=None): + """RelationTheme + + The model defined in huaweicloud sdk + + :param theme_name: 主题 + :type theme_name: str + :param relation_type: - NON_PRIMARY: 主主题 - PRIMARY: + :type relation_type: str + """ + + + + self._theme_name = None + self._relation_type = None + self.discriminator = None + + if theme_name is not None: + self.theme_name = theme_name + if relation_type is not None: + self.relation_type = relation_type + + @property + def theme_name(self): + """Gets the theme_name of this RelationTheme. + + 主题 + + :return: The theme_name of this RelationTheme. + :rtype: str + """ + return self._theme_name + + @theme_name.setter + def theme_name(self, theme_name): + """Sets the theme_name of this RelationTheme. + + 主题 + + :param theme_name: The theme_name of this RelationTheme. + :type theme_name: str + """ + self._theme_name = theme_name + + @property + def relation_type(self): + """Gets the relation_type of this RelationTheme. + + - NON_PRIMARY: 主主题 - PRIMARY: + + :return: The relation_type of this RelationTheme. + :rtype: str + """ + return self._relation_type + + @relation_type.setter + def relation_type(self, relation_type): + """Sets the relation_type of this RelationTheme. + + - NON_PRIMARY: 主主题 - PRIMARY: + + :param relation_type: The relation_type of this RelationTheme. + :type relation_type: str + """ + self._relation_type = relation_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, RelationTheme): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relevance_qapair.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relevance_qapair.py new file mode 100755 index 000000000..58a700bfe --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/relevance_qapair.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RelevanceQapair: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'link': 'str', + 'question': 'str', + 'qa_pair_id': 'str' + } + + attribute_map = { + 'link': 'link', + 'question': 'question', + 'qa_pair_id': 'qa_pair_id' + } + + def __init__(self, link=None, question=None, qa_pair_id=None): + """RelevanceQapair + + The model defined in huaweicloud sdk + + :param link: 链接 + :type link: str + :param question: 标准问题 + :type question: str + :param qa_pair_id: 标准问题Id + :type qa_pair_id: str + """ + + + + self._link = None + self._question = None + self._qa_pair_id = None + self.discriminator = None + + if link is not None: + self.link = link + if question is not None: + self.question = question + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + + @property + def link(self): + """Gets the link of this RelevanceQapair. + + 链接 + + :return: The link of this RelevanceQapair. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this RelevanceQapair. + + 链接 + + :param link: The link of this RelevanceQapair. + :type link: str + """ + self._link = link + + @property + def question(self): + """Gets the question of this RelevanceQapair. + + 标准问题 + + :return: The question of this RelevanceQapair. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this RelevanceQapair. + + 标准问题 + + :param question: The question of this RelevanceQapair. + :type question: str + """ + self._question = question + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this RelevanceQapair. + + 标准问题Id + + :return: The qa_pair_id of this RelevanceQapair. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this RelevanceQapair. + + 标准问题Id + + :param qa_pair_id: The qa_pair_id of this RelevanceQapair. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_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, RelevanceQapair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_articles_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_articles_req.py new file mode 100755 index 000000000..03869105c --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_articles_req.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchArticlesReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'product_type_id': 'str', + 'business_type_id': 'str', + 'problem_type_id': 'str' + } + + attribute_map = { + 'top': 'top', + 'product_type_id': 'product_type_id', + 'business_type_id': 'business_type_id', + 'problem_type_id': 'problem_type_id' + } + + def __init__(self, top=None, product_type_id=None, business_type_id=None, problem_type_id=None): + """SearchArticlesReq + + The model defined in huaweicloud sdk + + :param top: 返回匹配度最高的数据条数 + :type top: int + :param product_type_id: 产品类型Id + :type product_type_id: str + :param business_type_id: 业务类型Id + :type business_type_id: str + :param problem_type_id: 问题类型Id + :type problem_type_id: str + """ + + + + self._top = None + self._product_type_id = None + self._business_type_id = None + self._problem_type_id = None + self.discriminator = None + + if top is not None: + self.top = top + self.product_type_id = product_type_id + if business_type_id is not None: + self.business_type_id = business_type_id + if problem_type_id is not None: + self.problem_type_id = problem_type_id + + @property + def top(self): + """Gets the top of this SearchArticlesReq. + + 返回匹配度最高的数据条数 + + :return: The top of this SearchArticlesReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this SearchArticlesReq. + + 返回匹配度最高的数据条数 + + :param top: The top of this SearchArticlesReq. + :type top: int + """ + self._top = top + + @property + def product_type_id(self): + """Gets the product_type_id of this SearchArticlesReq. + + 产品类型Id + + :return: The product_type_id of this SearchArticlesReq. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this SearchArticlesReq. + + 产品类型Id + + :param product_type_id: The product_type_id of this SearchArticlesReq. + :type product_type_id: str + """ + self._product_type_id = product_type_id + + @property + def business_type_id(self): + """Gets the business_type_id of this SearchArticlesReq. + + 业务类型Id + + :return: The business_type_id of this SearchArticlesReq. + :rtype: str + """ + return self._business_type_id + + @business_type_id.setter + def business_type_id(self, business_type_id): + """Sets the business_type_id of this SearchArticlesReq. + + 业务类型Id + + :param business_type_id: The business_type_id of this SearchArticlesReq. + :type business_type_id: str + """ + self._business_type_id = business_type_id + + @property + def problem_type_id(self): + """Gets the problem_type_id of this SearchArticlesReq. + + 问题类型Id + + :return: The problem_type_id of this SearchArticlesReq. + :rtype: str + """ + return self._problem_type_id + + @problem_type_id.setter + def problem_type_id(self, problem_type_id): + """Sets the problem_type_id of this SearchArticlesReq. + + 问题类型Id + + :param problem_type_id: The problem_type_id of this SearchArticlesReq. + :type problem_type_id: str + """ + self._problem_type_id = problem_type_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, SearchArticlesReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_notices_req.py similarity index 57% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_response.py rename to huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_notices_req.py index 262f34bce..99fbc637c 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_response.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_notices_req.py @@ -4,11 +4,11 @@ import re import six -from huaweicloudsdkcore.sdk_response import SdkResponse + from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCheckPictureResponse(SdkResponse): +class SearchNoticesReq: """ Attributes: @@ -20,51 +20,79 @@ class RunCheckPictureResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'exist': 'str' + 'top': 'int', + 'product_type_id': 'str' } attribute_map = { - 'exist': 'exist' + 'top': 'top', + 'product_type_id': 'product_type_id' } - def __init__(self, exist=None): - """RunCheckPictureResponse + def __init__(self, top=None, product_type_id=None): + """SearchNoticesReq The model defined in huaweicloud sdk - :param exist: 调用成功时表示调用结果。 调用失败时无此字段。 - true表示图像索引库中存在查询的图片。 - false表示图像索引库中不存在查询的图片。 - :type exist: str + :param top: 返回匹配度最高的数据条数 + :type top: int + :param product_type_id: 产品类型Id + :type product_type_id: str """ - super(RunCheckPictureResponse, self).__init__() + - self._exist = None + self._top = None + self._product_type_id = None self.discriminator = None - if exist is not None: - self.exist = exist + if top is not None: + self.top = top + self.product_type_id = product_type_id @property - def exist(self): - """Gets the exist of this RunCheckPictureResponse. + def top(self): + """Gets the top of this SearchNoticesReq. - 调用成功时表示调用结果。 调用失败时无此字段。 - true表示图像索引库中存在查询的图片。 - false表示图像索引库中不存在查询的图片。 + 返回匹配度最高的数据条数 - :return: The exist of this RunCheckPictureResponse. + :return: The top of this SearchNoticesReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this SearchNoticesReq. + + 返回匹配度最高的数据条数 + + :param top: The top of this SearchNoticesReq. + :type top: int + """ + self._top = top + + @property + def product_type_id(self): + """Gets the product_type_id of this SearchNoticesReq. + + 产品类型Id + + :return: The product_type_id of this SearchNoticesReq. :rtype: str """ - return self._exist + return self._product_type_id - @exist.setter - def exist(self, exist): - """Sets the exist of this RunCheckPictureResponse. + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this SearchNoticesReq. - 调用成功时表示调用结果。 调用失败时无此字段。 - true表示图像索引库中存在查询的图片。 - false表示图像索引库中不存在查询的图片。 + 产品类型Id - :param exist: The exist of this RunCheckPictureResponse. - :type exist: str + :param product_type_id: The product_type_id of this SearchNoticesReq. + :type product_type_id: str """ - self._exist = exist + self._product_type_id = product_type_id def to_dict(self): """Returns the model properties as a dict""" @@ -108,7 +136,7 @@ class RunCheckPictureResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCheckPictureResponse): + if not isinstance(other, SearchNoticesReq): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_qa_pairs_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_qa_pairs_req.py new file mode 100755 index 000000000..d5ca2bf67 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_qa_pairs_req.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchQaPairsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain': 'str', + 'top': 'int' + } + + attribute_map = { + 'domain': 'domain', + 'top': 'top' + } + + def __init__(self, domain=None, top=None): + """SearchQaPairsReq + + The model defined in huaweicloud sdk + + :param domain: 主题名称 + :type domain: str + :param top: 返回匹配度最高的数据条数 + :type top: int + """ + + + + self._domain = None + self._top = None + self.discriminator = None + + if domain is not None: + self.domain = domain + if top is not None: + self.top = top + + @property + def domain(self): + """Gets the domain of this SearchQaPairsReq. + + 主题名称 + + :return: The domain of this SearchQaPairsReq. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this SearchQaPairsReq. + + 主题名称 + + :param domain: The domain of this SearchQaPairsReq. + :type domain: str + """ + self._domain = domain + + @property + def top(self): + """Gets the top of this SearchQaPairsReq. + + 返回匹配度最高的数据条数 + + :return: The top of this SearchQaPairsReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this SearchQaPairsReq. + + 返回匹配度最高的数据条数 + + :param top: The top of this SearchQaPairsReq. + :type top: int + """ + self._top = top + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchQaPairsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_tools_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_tools_req.py new file mode 100755 index 000000000..4c88293ef --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/search_tools_req.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchToolsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'product_type_id': 'str', + 'business_type_id': 'str', + 'problem_type_id': 'str' + } + + attribute_map = { + 'top': 'top', + 'product_type_id': 'product_type_id', + 'business_type_id': 'business_type_id', + 'problem_type_id': 'problem_type_id' + } + + def __init__(self, top=None, product_type_id=None, business_type_id=None, problem_type_id=None): + """SearchToolsReq + + The model defined in huaweicloud sdk + + :param top: 返回匹配度最高的数据条数 + :type top: int + :param product_type_id: 产品类型Id + :type product_type_id: str + :param business_type_id: 业务类型Id + :type business_type_id: str + :param problem_type_id: 问题类型Id + :type problem_type_id: str + """ + + + + self._top = None + self._product_type_id = None + self._business_type_id = None + self._problem_type_id = None + self.discriminator = None + + if top is not None: + self.top = top + self.product_type_id = product_type_id + if business_type_id is not None: + self.business_type_id = business_type_id + if problem_type_id is not None: + self.problem_type_id = problem_type_id + + @property + def top(self): + """Gets the top of this SearchToolsReq. + + 返回匹配度最高的数据条数 + + :return: The top of this SearchToolsReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this SearchToolsReq. + + 返回匹配度最高的数据条数 + + :param top: The top of this SearchToolsReq. + :type top: int + """ + self._top = top + + @property + def product_type_id(self): + """Gets the product_type_id of this SearchToolsReq. + + 产品类型Id + + :return: The product_type_id of this SearchToolsReq. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this SearchToolsReq. + + 产品类型Id + + :param product_type_id: The product_type_id of this SearchToolsReq. + :type product_type_id: str + """ + self._product_type_id = product_type_id + + @property + def business_type_id(self): + """Gets the business_type_id of this SearchToolsReq. + + 业务类型Id + + :return: The business_type_id of this SearchToolsReq. + :rtype: str + """ + return self._business_type_id + + @business_type_id.setter + def business_type_id(self, business_type_id): + """Sets the business_type_id of this SearchToolsReq. + + 业务类型Id + + :param business_type_id: The business_type_id of this SearchToolsReq. + :type business_type_id: str + """ + self._business_type_id = business_type_id + + @property + def problem_type_id(self): + """Gets the problem_type_id of this SearchToolsReq. + + 问题类型Id + + :return: The problem_type_id of this SearchToolsReq. + :rtype: str + """ + return self._problem_type_id + + @problem_type_id.setter + def problem_type_id(self, problem_type_id): + """Sets the problem_type_id of this SearchToolsReq. + + 问题类型Id + + :param problem_type_id: The problem_type_id of this SearchToolsReq. + :type problem_type_id: str + """ + self._problem_type_id = problem_type_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, SearchToolsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/session_ask_question_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/session_ask_question_req.py new file mode 100755 index 000000000..4fa3fd496 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/session_ask_question_req.py @@ -0,0 +1,291 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SessionAskQuestionReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'domain': 'str', + 'top': 'int', + 'themes': 'list[RelationTheme]', + 'source_qa_pair_id': 'str', + 'chat_enable': 'bool', + 'product_type_id': 'str' + } + + attribute_map = { + 'question': 'question', + 'domain': 'domain', + 'top': 'top', + 'themes': 'themes', + 'source_qa_pair_id': 'source_qa_pair_id', + 'chat_enable': 'chat_enable', + 'product_type_id': 'product_type_id' + } + + def __init__(self, question=None, domain=None, top=None, themes=None, source_qa_pair_id=None, chat_enable=None, product_type_id=None): + """SessionAskQuestionReq + + The model defined in huaweicloud sdk + + :param question: 用户输入问题 + :type question: str + :param domain: 问答领域 + :type domain: str + :param top: 最大返回数据条数 + :type top: int + :param themes: 主题列表 + :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + :param source_qa_pair_id: 语料ID + :type source_qa_pair_id: str + :param chat_enable: 是否需要兜底 + :type chat_enable: bool + :param product_type_id: 产品类型Id + :type product_type_id: str + """ + + + + self._question = None + self._domain = None + self._top = None + self._themes = None + self._source_qa_pair_id = None + self._chat_enable = None + self._product_type_id = None + self.discriminator = None + + self.question = question + if domain is not None: + self.domain = domain + if top is not None: + self.top = top + if themes is not None: + self.themes = themes + if source_qa_pair_id is not None: + self.source_qa_pair_id = source_qa_pair_id + if chat_enable is not None: + self.chat_enable = chat_enable + if product_type_id is not None: + self.product_type_id = product_type_id + + @property + def question(self): + """Gets the question of this SessionAskQuestionReq. + + 用户输入问题 + + :return: The question of this SessionAskQuestionReq. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this SessionAskQuestionReq. + + 用户输入问题 + + :param question: The question of this SessionAskQuestionReq. + :type question: str + """ + self._question = question + + @property + def domain(self): + """Gets the domain of this SessionAskQuestionReq. + + 问答领域 + + :return: The domain of this SessionAskQuestionReq. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this SessionAskQuestionReq. + + 问答领域 + + :param domain: The domain of this SessionAskQuestionReq. + :type domain: str + """ + self._domain = domain + + @property + def top(self): + """Gets the top of this SessionAskQuestionReq. + + 最大返回数据条数 + + :return: The top of this SessionAskQuestionReq. + :rtype: int + """ + return self._top + + @top.setter + def top(self, top): + """Sets the top of this SessionAskQuestionReq. + + 最大返回数据条数 + + :param top: The top of this SessionAskQuestionReq. + :type top: int + """ + self._top = top + + @property + def themes(self): + """Gets the themes of this SessionAskQuestionReq. + + 主题列表 + + :return: The themes of this SessionAskQuestionReq. + :rtype: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + """ + return self._themes + + @themes.setter + def themes(self, themes): + """Sets the themes of this SessionAskQuestionReq. + + 主题列表 + + :param themes: The themes of this SessionAskQuestionReq. + :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + """ + self._themes = themes + + @property + def source_qa_pair_id(self): + """Gets the source_qa_pair_id of this SessionAskQuestionReq. + + 语料ID + + :return: The source_qa_pair_id of this SessionAskQuestionReq. + :rtype: str + """ + return self._source_qa_pair_id + + @source_qa_pair_id.setter + def source_qa_pair_id(self, source_qa_pair_id): + """Sets the source_qa_pair_id of this SessionAskQuestionReq. + + 语料ID + + :param source_qa_pair_id: The source_qa_pair_id of this SessionAskQuestionReq. + :type source_qa_pair_id: str + """ + self._source_qa_pair_id = source_qa_pair_id + + @property + def chat_enable(self): + """Gets the chat_enable of this SessionAskQuestionReq. + + 是否需要兜底 + + :return: The chat_enable of this SessionAskQuestionReq. + :rtype: bool + """ + return self._chat_enable + + @chat_enable.setter + def chat_enable(self, chat_enable): + """Sets the chat_enable of this SessionAskQuestionReq. + + 是否需要兜底 + + :param chat_enable: The chat_enable of this SessionAskQuestionReq. + :type chat_enable: bool + """ + self._chat_enable = chat_enable + + @property + def product_type_id(self): + """Gets the product_type_id of this SessionAskQuestionReq. + + 产品类型Id + + :return: The product_type_id of this SessionAskQuestionReq. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this SessionAskQuestionReq. + + 产品类型Id + + :param product_type_id: The product_type_id of this SessionAskQuestionReq. + :type product_type_id: str + """ + self._product_type_id = product_type_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, SessionAskQuestionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_request.py new file mode 100755 index 000000000..b88f76600 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_request.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAssociatedQuestionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'body': 'QueryAssociatedQuestionReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, body=None): + """ShowAssociatedQuestionsRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param body: Body of the ShowAssociatedQuestionsRequest + :type body: :class:`huaweicloudsdkosm.v2.QueryAssociatedQuestionReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._body = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this ShowAssociatedQuestionsRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ShowAssociatedQuestionsRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ShowAssociatedQuestionsRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ShowAssociatedQuestionsRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ShowAssociatedQuestionsRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ShowAssociatedQuestionsRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ShowAssociatedQuestionsRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ShowAssociatedQuestionsRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ShowAssociatedQuestionsRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ShowAssociatedQuestionsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowAssociatedQuestionsRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ShowAssociatedQuestionsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this ShowAssociatedQuestionsRequest. + + :return: The body of this ShowAssociatedQuestionsRequest. + :rtype: :class:`huaweicloudsdkosm.v2.QueryAssociatedQuestionReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowAssociatedQuestionsRequest. + + :param body: The body of this ShowAssociatedQuestionsRequest. + :type body: :class:`huaweicloudsdkosm.v2.QueryAssociatedQuestionReq` + """ + 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, ShowAssociatedQuestionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_response.py new file mode 100755 index 000000000..1debc6430 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_associated_questions_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAssociatedQuestionsResponse(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 = { + 'questions': 'list[str]', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'questions': 'questions', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, questions=None, error_code=None, error_msg=None): + """ShowAssociatedQuestionsResponse + + The model defined in huaweicloud sdk + + :param questions: 问题列表 + :type questions: list[str] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(ShowAssociatedQuestionsResponse, self).__init__() + + self._questions = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if questions is not None: + self.questions = questions + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def questions(self): + """Gets the questions of this ShowAssociatedQuestionsResponse. + + 问题列表 + + :return: The questions of this ShowAssociatedQuestionsResponse. + :rtype: list[str] + """ + return self._questions + + @questions.setter + def questions(self, questions): + """Sets the questions of this ShowAssociatedQuestionsResponse. + + 问题列表 + + :param questions: The questions of this ShowAssociatedQuestionsResponse. + :type questions: list[str] + """ + self._questions = questions + + @property + def error_code(self): + """Gets the error_code of this ShowAssociatedQuestionsResponse. + + 错误码 + + :return: The error_code of this ShowAssociatedQuestionsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowAssociatedQuestionsResponse. + + 错误码 + + :param error_code: The error_code of this ShowAssociatedQuestionsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowAssociatedQuestionsResponse. + + 错误描述 + + :return: The error_msg of this ShowAssociatedQuestionsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowAssociatedQuestionsResponse. + + 错误描述 + + :param error_msg: The error_msg of this ShowAssociatedQuestionsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAssociatedQuestionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py new file mode 100755 index 000000000..85c1c73d8 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDownloadAccessoryUrlRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'accessory_id': 'str', + 'relation_type': 'str', + 'relation_id': 'str', + 'incident_id': 'str' + } + + attribute_map = { + 'accessory_id': 'accessory_id', + 'relation_type': 'relation_type', + 'relation_id': 'relation_id', + 'incident_id': 'incident_id' + } + + def __init__(self, accessory_id=None, relation_type=None, relation_id=None, incident_id=None): + """ShowDownloadAccessoryUrlRequest + + The model defined in huaweicloud sdk + + :param accessory_id: 附件id + :type accessory_id: str + :param relation_type: - DEFAULT: - NO_RELATION: - NOTIFICATION: - INCIDENT: - MESSAGE: - INSPECTION: - CONNECT: + :type relation_type: str + :param relation_id: 关联id + :type relation_id: str + :param incident_id: 工单id + :type incident_id: str + """ + + + + self._accessory_id = None + self._relation_type = None + self._relation_id = None + self._incident_id = None + self.discriminator = None + + self.accessory_id = accessory_id + self.relation_type = relation_type + if relation_id is not None: + self.relation_id = relation_id + if incident_id is not None: + self.incident_id = incident_id + + @property + def accessory_id(self): + """Gets the accessory_id of this ShowDownloadAccessoryUrlRequest. + + 附件id + + :return: The accessory_id of this ShowDownloadAccessoryUrlRequest. + :rtype: str + """ + return self._accessory_id + + @accessory_id.setter + def accessory_id(self, accessory_id): + """Sets the accessory_id of this ShowDownloadAccessoryUrlRequest. + + 附件id + + :param accessory_id: The accessory_id of this ShowDownloadAccessoryUrlRequest. + :type accessory_id: str + """ + self._accessory_id = accessory_id + + @property + def relation_type(self): + """Gets the relation_type of this ShowDownloadAccessoryUrlRequest. + + - DEFAULT: - NO_RELATION: - NOTIFICATION: - INCIDENT: - MESSAGE: - INSPECTION: - CONNECT: + + :return: The relation_type of this ShowDownloadAccessoryUrlRequest. + :rtype: str + """ + return self._relation_type + + @relation_type.setter + def relation_type(self, relation_type): + """Sets the relation_type of this ShowDownloadAccessoryUrlRequest. + + - DEFAULT: - NO_RELATION: - NOTIFICATION: - INCIDENT: - MESSAGE: - INSPECTION: - CONNECT: + + :param relation_type: The relation_type of this ShowDownloadAccessoryUrlRequest. + :type relation_type: str + """ + self._relation_type = relation_type + + @property + def relation_id(self): + """Gets the relation_id of this ShowDownloadAccessoryUrlRequest. + + 关联id + + :return: The relation_id of this ShowDownloadAccessoryUrlRequest. + :rtype: str + """ + return self._relation_id + + @relation_id.setter + def relation_id(self, relation_id): + """Sets the relation_id of this ShowDownloadAccessoryUrlRequest. + + 关联id + + :param relation_id: The relation_id of this ShowDownloadAccessoryUrlRequest. + :type relation_id: str + """ + self._relation_id = relation_id + + @property + def incident_id(self): + """Gets the incident_id of this ShowDownloadAccessoryUrlRequest. + + 工单id + + :return: The incident_id of this ShowDownloadAccessoryUrlRequest. + :rtype: str + """ + return self._incident_id + + @incident_id.setter + def incident_id(self, incident_id): + """Sets the incident_id of this ShowDownloadAccessoryUrlRequest. + + 工单id + + :param incident_id: The incident_id of this ShowDownloadAccessoryUrlRequest. + :type incident_id: str + """ + self._incident_id = incident_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDownloadAccessoryUrlRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_response.py new file mode 100755 index 000000000..c30304f9e --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_download_accessory_url_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDownloadAccessoryUrlResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'accessory_url': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'accessory_url': 'accessory_url' + } + + def __init__(self, error_code=None, error_msg=None, accessory_url=None): + """ShowDownloadAccessoryUrlResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param accessory_url: 附件下载url + :type accessory_url: str + """ + + super(ShowDownloadAccessoryUrlResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._accessory_url = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if accessory_url is not None: + self.accessory_url = accessory_url + + @property + def error_code(self): + """Gets the error_code of this ShowDownloadAccessoryUrlResponse. + + 错误码 + + :return: The error_code of this ShowDownloadAccessoryUrlResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowDownloadAccessoryUrlResponse. + + 错误码 + + :param error_code: The error_code of this ShowDownloadAccessoryUrlResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowDownloadAccessoryUrlResponse. + + 错误描述 + + :return: The error_msg of this ShowDownloadAccessoryUrlResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowDownloadAccessoryUrlResponse. + + 错误描述 + + :param error_msg: The error_msg of this ShowDownloadAccessoryUrlResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def accessory_url(self): + """Gets the accessory_url of this ShowDownloadAccessoryUrlResponse. + + 附件下载url + + :return: The accessory_url of this ShowDownloadAccessoryUrlResponse. + :rtype: str + """ + return self._accessory_url + + @accessory_url.setter + def accessory_url(self, accessory_url): + """Sets the accessory_url of this ShowDownloadAccessoryUrlResponse. + + 附件下载url + + :param accessory_url: The accessory_url of this ShowDownloadAccessoryUrlResponse. + :type accessory_url: str + """ + self._accessory_url = accessory_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDownloadAccessoryUrlResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py new file mode 100755 index 000000000..931ab780c --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowQaPairDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'qa_pair_id': 'str' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'qa_pair_id': 'qa_pair_id' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, qa_pair_id=None): + """ShowQaPairDetailRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param qa_pair_id: 语料Id + :type qa_pair_id: str + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._qa_pair_id = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.qa_pair_id = qa_pair_id + + @property + def x_service_key(self): + """Gets the x_service_key of this ShowQaPairDetailRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ShowQaPairDetailRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ShowQaPairDetailRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ShowQaPairDetailRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ShowQaPairDetailRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ShowQaPairDetailRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ShowQaPairDetailRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ShowQaPairDetailRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ShowQaPairDetailRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ShowQaPairDetailRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowQaPairDetailRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ShowQaPairDetailRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this ShowQaPairDetailRequest. + + 语料Id + + :return: The qa_pair_id of this ShowQaPairDetailRequest. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this ShowQaPairDetailRequest. + + 语料Id + + :param qa_pair_id: The qa_pair_id of this ShowQaPairDetailRequest. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_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, ShowQaPairDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py new file mode 100755 index 000000000..ebe290dcc --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowQaPairDetailResponse(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 = { + 'qapair': 'QaPair', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'qapair': 'qapair', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, qapair=None, error_code=None, error_msg=None): + """ShowQaPairDetailResponse + + The model defined in huaweicloud sdk + + :param qapair: + :type qapair: :class:`huaweicloudsdkosm.v2.QaPair` + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(ShowQaPairDetailResponse, self).__init__() + + self._qapair = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if qapair is not None: + self.qapair = qapair + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def qapair(self): + """Gets the qapair of this ShowQaPairDetailResponse. + + :return: The qapair of this ShowQaPairDetailResponse. + :rtype: :class:`huaweicloudsdkosm.v2.QaPair` + """ + return self._qapair + + @qapair.setter + def qapair(self, qapair): + """Sets the qapair of this ShowQaPairDetailResponse. + + :param qapair: The qapair of this ShowQaPairDetailResponse. + :type qapair: :class:`huaweicloudsdkosm.v2.QaPair` + """ + self._qapair = qapair + + @property + def error_code(self): + """Gets the error_code of this ShowQaPairDetailResponse. + + 错误码 + + :return: The error_code of this ShowQaPairDetailResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowQaPairDetailResponse. + + 错误码 + + :param error_code: The error_code of this ShowQaPairDetailResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowQaPairDetailResponse. + + 错误描述 + + :return: The error_msg of this ShowQaPairDetailResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowQaPairDetailResponse. + + 错误描述 + + :param error_msg: The error_msg of this ShowQaPairDetailResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowQaPairDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_request.py new file mode 100755 index 000000000..92b1bff42 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_request.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowQaPairsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'search_type': 'str', + 'body': 'SearchQaPairsReq' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'search_type': 'search_type', + 'body': 'body' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, search_type=None, body=None): + """ShowQaPairsRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param search_type: - HOT: - RECOMMEND: + :type search_type: str + :param body: Body of the ShowQaPairsRequest + :type body: :class:`huaweicloudsdkosm.v2.SearchQaPairsReq` + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._search_type = None + self._body = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + self.search_type = search_type + if body is not None: + self.body = body + + @property + def x_service_key(self): + """Gets the x_service_key of this ShowQaPairsRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ShowQaPairsRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ShowQaPairsRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ShowQaPairsRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ShowQaPairsRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ShowQaPairsRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ShowQaPairsRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ShowQaPairsRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ShowQaPairsRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ShowQaPairsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowQaPairsRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ShowQaPairsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def search_type(self): + """Gets the search_type of this ShowQaPairsRequest. + + - HOT: - RECOMMEND: + + :return: The search_type of this ShowQaPairsRequest. + :rtype: str + """ + return self._search_type + + @search_type.setter + def search_type(self, search_type): + """Sets the search_type of this ShowQaPairsRequest. + + - HOT: - RECOMMEND: + + :param search_type: The search_type of this ShowQaPairsRequest. + :type search_type: str + """ + self._search_type = search_type + + @property + def body(self): + """Gets the body of this ShowQaPairsRequest. + + :return: The body of this ShowQaPairsRequest. + :rtype: :class:`huaweicloudsdkosm.v2.SearchQaPairsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowQaPairsRequest. + + :param body: The body of this ShowQaPairsRequest. + :type body: :class:`huaweicloudsdkosm.v2.SearchQaPairsReq` + """ + 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, ShowQaPairsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_response.py new file mode 100755 index 000000000..03ba8d82e --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_qa_pairs_response.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowQaPairsResponse(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 = { + 'error_code': 'str', + 'error_msg': 'str', + 'qa_pairs': 'list[SimpleQaPair]' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'qa_pairs': 'qa_pairs' + } + + def __init__(self, error_code=None, error_msg=None, qa_pairs=None): + """ShowQaPairsResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param qa_pairs: 语料列表 + :type qa_pairs: list[:class:`huaweicloudsdkosm.v2.SimpleQaPair`] + """ + + super(ShowQaPairsResponse, self).__init__() + + self._error_code = None + self._error_msg = None + self._qa_pairs = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if qa_pairs is not None: + self.qa_pairs = qa_pairs + + @property + def error_code(self): + """Gets the error_code of this ShowQaPairsResponse. + + 错误码 + + :return: The error_code of this ShowQaPairsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowQaPairsResponse. + + 错误码 + + :param error_code: The error_code of this ShowQaPairsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowQaPairsResponse. + + 错误描述 + + :return: The error_msg of this ShowQaPairsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowQaPairsResponse. + + 错误描述 + + :param error_msg: The error_msg of this ShowQaPairsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def qa_pairs(self): + """Gets the qa_pairs of this ShowQaPairsResponse. + + 语料列表 + + :return: The qa_pairs of this ShowQaPairsResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.SimpleQaPair`] + """ + return self._qa_pairs + + @qa_pairs.setter + def qa_pairs(self, qa_pairs): + """Sets the qa_pairs of this ShowQaPairsResponse. + + 语料列表 + + :param qa_pairs: The qa_pairs of this ShowQaPairsResponse. + :type qa_pairs: list[:class:`huaweicloudsdkosm.v2.SimpleQaPair`] + """ + self._qa_pairs = qa_pairs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowQaPairsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_request.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_request.py new file mode 100755 index 000000000..fdbdeb9dc --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_request.py @@ -0,0 +1,262 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowThemeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_service_key': 'str', + 'x_site': 'str', + 'x_language': 'str', + 'product_type_id': 'str', + 'product_type_name': 'str', + 'product_type_short_name': 'str' + } + + attribute_map = { + 'x_service_key': 'x-service-key', + 'x_site': 'x-site', + 'x_language': 'x-language', + 'product_type_id': 'product_type_id', + 'product_type_name': 'product_type_name', + 'product_type_short_name': 'product_type_short_name' + } + + def __init__(self, x_service_key=None, x_site=None, x_language=None, product_type_id=None, product_type_name=None, product_type_short_name=None): + """ShowThemeRequest + + The model defined in huaweicloud sdk + + :param x_service_key: 调用智能客服服务标志。 + :type x_service_key: str + :param x_site: 站点标记,0-中国站 1-国际站 + :type x_site: str + :param x_language: 区域语言简写,en-us zh-cn + :type x_language: str + :param product_type_id: 产品类型Id + :type product_type_id: str + :param product_type_name: 产品类型名称 + :type product_type_name: str + :param product_type_short_name: 产品类型缩写 + :type product_type_short_name: str + """ + + + + self._x_service_key = None + self._x_site = None + self._x_language = None + self._product_type_id = None + self._product_type_name = None + self._product_type_short_name = None + self.discriminator = None + + self.x_service_key = x_service_key + if x_site is not None: + self.x_site = x_site + if x_language is not None: + self.x_language = x_language + if product_type_id is not None: + self.product_type_id = product_type_id + if product_type_name is not None: + self.product_type_name = product_type_name + if product_type_short_name is not None: + self.product_type_short_name = product_type_short_name + + @property + def x_service_key(self): + """Gets the x_service_key of this ShowThemeRequest. + + 调用智能客服服务标志。 + + :return: The x_service_key of this ShowThemeRequest. + :rtype: str + """ + return self._x_service_key + + @x_service_key.setter + def x_service_key(self, x_service_key): + """Sets the x_service_key of this ShowThemeRequest. + + 调用智能客服服务标志。 + + :param x_service_key: The x_service_key of this ShowThemeRequest. + :type x_service_key: str + """ + self._x_service_key = x_service_key + + @property + def x_site(self): + """Gets the x_site of this ShowThemeRequest. + + 站点标记,0-中国站 1-国际站 + + :return: The x_site of this ShowThemeRequest. + :rtype: str + """ + return self._x_site + + @x_site.setter + def x_site(self, x_site): + """Sets the x_site of this ShowThemeRequest. + + 站点标记,0-中国站 1-国际站 + + :param x_site: The x_site of this ShowThemeRequest. + :type x_site: str + """ + self._x_site = x_site + + @property + def x_language(self): + """Gets the x_language of this ShowThemeRequest. + + 区域语言简写,en-us zh-cn + + :return: The x_language of this ShowThemeRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ShowThemeRequest. + + 区域语言简写,en-us zh-cn + + :param x_language: The x_language of this ShowThemeRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def product_type_id(self): + """Gets the product_type_id of this ShowThemeRequest. + + 产品类型Id + + :return: The product_type_id of this ShowThemeRequest. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this ShowThemeRequest. + + 产品类型Id + + :param product_type_id: The product_type_id of this ShowThemeRequest. + :type product_type_id: str + """ + self._product_type_id = product_type_id + + @property + def product_type_name(self): + """Gets the product_type_name of this ShowThemeRequest. + + 产品类型名称 + + :return: The product_type_name of this ShowThemeRequest. + :rtype: str + """ + return self._product_type_name + + @product_type_name.setter + def product_type_name(self, product_type_name): + """Sets the product_type_name of this ShowThemeRequest. + + 产品类型名称 + + :param product_type_name: The product_type_name of this ShowThemeRequest. + :type product_type_name: str + """ + self._product_type_name = product_type_name + + @property + def product_type_short_name(self): + """Gets the product_type_short_name of this ShowThemeRequest. + + 产品类型缩写 + + :return: The product_type_short_name of this ShowThemeRequest. + :rtype: str + """ + return self._product_type_short_name + + @product_type_short_name.setter + def product_type_short_name(self, product_type_short_name): + """Sets the product_type_short_name of this ShowThemeRequest. + + 产品类型缩写 + + :param product_type_short_name: The product_type_short_name of this ShowThemeRequest. + :type product_type_short_name: str + """ + self._product_type_short_name = product_type_short_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, ShowThemeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_response.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_response.py new file mode 100755 index 000000000..db0f264b9 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/show_theme_response.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowThemeResponse(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 = { + 'themes': 'list[RelationTheme]', + 'error_code': 'str', + 'error_msg': 'str', + 'product_type_id': 'str', + 'theme_name': 'str' + } + + attribute_map = { + 'themes': 'themes', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'product_type_id': 'product_type_id', + 'theme_name': 'theme_name' + } + + def __init__(self, themes=None, error_code=None, error_msg=None, product_type_id=None, theme_name=None): + """ShowThemeResponse + + The model defined in huaweicloud sdk + + :param themes: 关联主题列表 + :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + :param product_type_id: 产品类型Id + :type product_type_id: str + :param theme_name: 主题名称 + :type theme_name: str + """ + + super(ShowThemeResponse, self).__init__() + + self._themes = None + self._error_code = None + self._error_msg = None + self._product_type_id = None + self._theme_name = None + self.discriminator = None + + if themes is not None: + self.themes = themes + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if product_type_id is not None: + self.product_type_id = product_type_id + if theme_name is not None: + self.theme_name = theme_name + + @property + def themes(self): + """Gets the themes of this ShowThemeResponse. + + 关联主题列表 + + :return: The themes of this ShowThemeResponse. + :rtype: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + """ + return self._themes + + @themes.setter + def themes(self, themes): + """Sets the themes of this ShowThemeResponse. + + 关联主题列表 + + :param themes: The themes of this ShowThemeResponse. + :type themes: list[:class:`huaweicloudsdkosm.v2.RelationTheme`] + """ + self._themes = themes + + @property + def error_code(self): + """Gets the error_code of this ShowThemeResponse. + + 错误码 + + :return: The error_code of this ShowThemeResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowThemeResponse. + + 错误码 + + :param error_code: The error_code of this ShowThemeResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowThemeResponse. + + 错误描述 + + :return: The error_msg of this ShowThemeResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowThemeResponse. + + 错误描述 + + :param error_msg: The error_msg of this ShowThemeResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def product_type_id(self): + """Gets the product_type_id of this ShowThemeResponse. + + 产品类型Id + + :return: The product_type_id of this ShowThemeResponse. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this ShowThemeResponse. + + 产品类型Id + + :param product_type_id: The product_type_id of this ShowThemeResponse. + :type product_type_id: str + """ + self._product_type_id = product_type_id + + @property + def theme_name(self): + """Gets the theme_name of this ShowThemeResponse. + + 主题名称 + + :return: The theme_name of this ShowThemeResponse. + :rtype: str + """ + return self._theme_name + + @theme_name.setter + def theme_name(self, theme_name): + """Sets the theme_name of this ShowThemeResponse. + + 主题名称 + + :param theme_name: The theme_name of this ShowThemeResponse. + :type theme_name: str + """ + self._theme_name = theme_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, ShowThemeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/simple_qa_pair.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/simple_qa_pair.py new file mode 100755 index 000000000..352b0b3bf --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/simple_qa_pair.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SimpleQaPair: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'question': 'str', + 'domain': 'str', + 'qa_pair_id': 'str' + } + + attribute_map = { + 'question': 'question', + 'domain': 'domain', + 'qa_pair_id': 'qa_pair_id' + } + + def __init__(self, question=None, domain=None, qa_pair_id=None): + """SimpleQaPair + + The model defined in huaweicloud sdk + + :param question: 问题 + :type question: str + :param domain: 主题 + :type domain: str + :param qa_pair_id: 语料Id + :type qa_pair_id: str + """ + + + + self._question = None + self._domain = None + self._qa_pair_id = None + self.discriminator = None + + if question is not None: + self.question = question + if domain is not None: + self.domain = domain + if qa_pair_id is not None: + self.qa_pair_id = qa_pair_id + + @property + def question(self): + """Gets the question of this SimpleQaPair. + + 问题 + + :return: The question of this SimpleQaPair. + :rtype: str + """ + return self._question + + @question.setter + def question(self, question): + """Sets the question of this SimpleQaPair. + + 问题 + + :param question: The question of this SimpleQaPair. + :type question: str + """ + self._question = question + + @property + def domain(self): + """Gets the domain of this SimpleQaPair. + + 主题 + + :return: The domain of this SimpleQaPair. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this SimpleQaPair. + + 主题 + + :param domain: The domain of this SimpleQaPair. + :type domain: str + """ + self._domain = domain + + @property + def qa_pair_id(self): + """Gets the qa_pair_id of this SimpleQaPair. + + 语料Id + + :return: The qa_pair_id of this SimpleQaPair. + :rtype: str + """ + return self._qa_pair_id + + @qa_pair_id.setter + def qa_pair_id(self, qa_pair_id): + """Sets the qa_pair_id of this SimpleQaPair. + + 语料Id + + :param qa_pair_id: The qa_pair_id of this SimpleQaPair. + :type qa_pair_id: str + """ + self._qa_pair_id = qa_pair_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, SimpleQaPair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/submit_diagnose_job_req.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/submit_diagnose_job_req.py new file mode 100755 index 000000000..91a5a2886 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/submit_diagnose_job_req.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SubmitDiagnoseJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'params': 'dict(str, str)', + 'region_id': 'str' + } + + attribute_map = { + 'type': 'type', + 'params': 'params', + 'region_id': 'region_id' + } + + def __init__(self, type=None, params=None, region_id=None): + """SubmitDiagnoseJobReq + + The model defined in huaweicloud sdk + + :param type: 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + :type type: int + :param params: 类型对应的特有参数,例如ecs需要传eip,rds 需要传输instanceId + :type params: dict(str, str) + :param region_id: 节点id + :type region_id: str + """ + + + + self._type = None + self._params = None + self._region_id = None + self.discriminator = None + + self.type = type + if params is not None: + self.params = params + if region_id is not None: + self.region_id = region_id + + @property + def type(self): + """Gets the type of this SubmitDiagnoseJobReq. + + 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + + :return: The type of this SubmitDiagnoseJobReq. + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SubmitDiagnoseJobReq. + + 任务类型,例如 ecs诊断任务 1,rds诊断任务 2 + + :param type: The type of this SubmitDiagnoseJobReq. + :type type: int + """ + self._type = type + + @property + def params(self): + """Gets the params of this SubmitDiagnoseJobReq. + + 类型对应的特有参数,例如ecs需要传eip,rds 需要传输instanceId + + :return: The params of this SubmitDiagnoseJobReq. + :rtype: dict(str, str) + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this SubmitDiagnoseJobReq. + + 类型对应的特有参数,例如ecs需要传eip,rds 需要传输instanceId + + :param params: The params of this SubmitDiagnoseJobReq. + :type params: dict(str, str) + """ + self._params = params + + @property + def region_id(self): + """Gets the region_id of this SubmitDiagnoseJobReq. + + 节点id + + :return: The region_id of this SubmitDiagnoseJobReq. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this SubmitDiagnoseJobReq. + + 节点id + + :param region_id: The region_id of this SubmitDiagnoseJobReq. + :type region_id: str + """ + self._region_id = region_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SubmitDiagnoseJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/tool.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/tool.py new file mode 100755 index 000000000..39c9d6384 --- /dev/null +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/tool.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Tool: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'icon': 'str', + 'problem_type_id': 'str', + 'business_type_id': 'str', + 'product_type_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'icon': 'icon', + 'problem_type_id': 'problem_type_id', + 'business_type_id': 'business_type_id', + 'product_type_id': 'product_type_id' + } + + def __init__(self, id=None, name=None, url=None, icon=None, problem_type_id=None, business_type_id=None, product_type_id=None): + """Tool + + The model defined in huaweicloud sdk + + :param id: 工具Id + :type id: str + :param name: 工具名称 + :type name: str + :param url: 工具链接 + :type url: str + :param icon: 图标内容,Base64格式 + :type icon: str + :param problem_type_id: 问题分类Id + :type problem_type_id: str + :param business_type_id: 业务类型Id + :type business_type_id: str + :param product_type_id: 产品类型Id + :type product_type_id: str + """ + + + + self._id = None + self._name = None + self._url = None + self._icon = None + self._problem_type_id = None + self._business_type_id = None + self._product_type_id = None + self.discriminator = None + + self.id = id + self.name = name + if url is not None: + self.url = url + if icon is not None: + self.icon = icon + if problem_type_id is not None: + self.problem_type_id = problem_type_id + if business_type_id is not None: + self.business_type_id = business_type_id + if product_type_id is not None: + self.product_type_id = product_type_id + + @property + def id(self): + """Gets the id of this Tool. + + 工具Id + + :return: The id of this Tool. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Tool. + + 工具Id + + :param id: The id of this Tool. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this Tool. + + 工具名称 + + :return: The name of this Tool. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Tool. + + 工具名称 + + :param name: The name of this Tool. + :type name: str + """ + self._name = name + + @property + def url(self): + """Gets the url of this Tool. + + 工具链接 + + :return: The url of this Tool. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this Tool. + + 工具链接 + + :param url: The url of this Tool. + :type url: str + """ + self._url = url + + @property + def icon(self): + """Gets the icon of this Tool. + + 图标内容,Base64格式 + + :return: The icon of this Tool. + :rtype: str + """ + return self._icon + + @icon.setter + def icon(self, icon): + """Sets the icon of this Tool. + + 图标内容,Base64格式 + + :param icon: The icon of this Tool. + :type icon: str + """ + self._icon = icon + + @property + def problem_type_id(self): + """Gets the problem_type_id of this Tool. + + 问题分类Id + + :return: The problem_type_id of this Tool. + :rtype: str + """ + return self._problem_type_id + + @problem_type_id.setter + def problem_type_id(self, problem_type_id): + """Sets the problem_type_id of this Tool. + + 问题分类Id + + :param problem_type_id: The problem_type_id of this Tool. + :type problem_type_id: str + """ + self._problem_type_id = problem_type_id + + @property + def business_type_id(self): + """Gets the business_type_id of this Tool. + + 业务类型Id + + :return: The business_type_id of this Tool. + :rtype: str + """ + return self._business_type_id + + @business_type_id.setter + def business_type_id(self, business_type_id): + """Sets the business_type_id of this Tool. + + 业务类型Id + + :param business_type_id: The business_type_id of this Tool. + :type business_type_id: str + """ + self._business_type_id = business_type_id + + @property + def product_type_id(self): + """Gets the product_type_id of this Tool. + + 产品类型Id + + :return: The product_type_id of this Tool. + :rtype: str + """ + return self._product_type_id + + @product_type_id.setter + def product_type_id(self, product_type_id): + """Sets the product_type_id of this Tool. + + 产品类型Id + + :param product_type_id: The product_type_id of this Tool. + :type product_type_id: str + """ + self._product_type_id = product_type_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, Tool): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_async_client.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_async_client.py index 8af9aec0e..f210e59dd 100755 --- a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_async_client.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_async_client.py @@ -318,6 +318,136 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_ask_question_async(self, request): + """语料提问 + + 基于语料的一次问答 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAskQuestion + :type request: :class:`huaweicloudsdkosm.v2.CreateAskQuestionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateAskQuestionResponse` + """ + return self.create_ask_question_with_http_info(request) + + def create_ask_question_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'create_ask_question_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/ask', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAskQuestionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_authorization_async(self, request): + """创建授权 + + 创建授权 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAuthorization + :type request: :class:`huaweicloudsdkosm.v2.CreateAuthorizationRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateAuthorizationResponse` + """ + return self.create_authorization_with_http_info(request) + + def create_authorization_with_http_info(self, request): + all_params = ['case_id', 'create_authorization_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'case_id' in local_var_params: + path_params['case_id'] = local_var_params['case_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/servicerequest/cases/{case_id}/authorizations', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAuthorizationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_case_extends_param_async(self, request): """提交工单扩展参数 @@ -528,6 +658,260 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_diagnose_feedback_async(self, request): + """用户反馈是否有帮助 + + 用户反馈是否有帮助 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDiagnoseFeedback + :type request: :class:`huaweicloudsdkosm.v2.CreateDiagnoseFeedbackRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateDiagnoseFeedbackResponse` + """ + return self.create_diagnose_feedback_with_http_info(request) + + def create_diagnose_feedback_with_http_info(self, request): + all_params = ['create_diagnose_feedback_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/feedback', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDiagnoseFeedbackResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_diagnose_job_async(self, request): + """开始一键诊断 + + 开始一键诊断 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDiagnoseJob + :type request: :class:`huaweicloudsdkosm.v2.CreateDiagnoseJobRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateDiagnoseJobResponse` + """ + return self.create_diagnose_job_with_http_info(request) + + def create_diagnose_job_with_http_info(self, request): + all_params = ['create_diagnose_job_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/job/start', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDiagnoseJobResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_evaluate_async(self, request): + """问答满意度评价 + + 一次问答完毕后, 针对这一次问答提交满意度评价 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateEvaluate + :type request: :class:`huaweicloudsdkosm.v2.CreateEvaluateRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateEvaluateResponse` + """ + return self.create_evaluate_with_http_info(request) + + def create_evaluate_with_http_info(self, request): + all_params = ['x_service_key', 'session_id', 'request_id', 'x_site', 'x_language', 'create_evaluate_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'session_id' in local_var_params: + path_params['session_id'] = local_var_params['session_id'] + if 'request_id' in local_var_params: + path_params['request_id'] = local_var_params['request_id'] + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/sessions/{session_id}/{request_id}/evaluate', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateEvaluateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_feedback_async(self, request): + """创建举报反馈 + + 创建举报反馈 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateFeedback + :type request: :class:`huaweicloudsdkosm.v2.CreateFeedbackRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateFeedbackResponse` + """ + return self.create_feedback_with_http_info(request) + + def create_feedback_with_http_info(self, request): + all_params = ['create_feedback_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/servicerequest/feedbacks', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateFeedbackResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_labels_async(self, request): """创建标签 @@ -731,6 +1115,211 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_qa_ask_async(self, request): + """新问答接口 + + 支持多轮流程问答接口 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateQaAsk + :type request: :class:`huaweicloudsdkosm.v2.CreateQaAskRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateQaAskResponse` + """ + return self.create_qa_ask_with_http_info(request) + + def create_qa_ask_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'create_qa_ask_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/ask', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateQaAskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_qa_feedbacks_async(self, request): + """反馈评价 + + 提交/取消反馈评价 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateQaFeedbacks + :type request: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksResponse` + """ + return self.create_qa_feedbacks_with_http_info(request) + + def create_qa_feedbacks_with_http_info(self, request): + all_params = ['feedback_type', 'x_service_key', 'x_site', 'x_language', 'create_qa_feedbacks_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'feedback_type' in local_var_params: + query_params.append(('feedback_type', local_var_params['feedback_type'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/feedbacks', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateQaFeedbacksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_question_in_session_async(self, request): + """提问(在制定的会话中) + + 提问(在制定的会话中) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateQuestionInSession + :type request: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionResponse` + """ + return self.create_question_in_session_with_http_info(request) + + def create_question_in_session_with_http_info(self, request): + all_params = ['x_service_key', 'session_id', 'x_site', 'x_language', 'create_question_in_session_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'session_id' in local_var_params: + path_params['session_id'] = local_var_params['session_id'] + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/sessions/{session_id}/ask', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateQuestionInSessionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_relations_async(self, request): """创建关联 @@ -869,6 +1458,71 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_session_async(self, request): + """创建问答会话 + + 用于创建问答会话, 创建会话后可开始问答 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateSession + :type request: :class:`huaweicloudsdkosm.v2.CreateSessionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateSessionResponse` + """ + return self.create_session_with_http_info(request) + + def create_session_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/sessions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateSessionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def delete_accessories_async(self, request): """删除附件 @@ -1572,6 +2226,75 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_articles_async(self, request): + """查询案例 + + 查询满足指定条件的案例列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListArticles + :type request: :class:`huaweicloudsdkosm.v2.ListArticlesRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListArticlesResponse` + """ + return self.list_articles_with_http_info(request) + + def list_articles_with_http_info(self, request): + all_params = ['search_type', 'x_service_key', 'x_site', 'x_language', 'list_articles_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'search_type' in local_var_params: + query_params.append(('search_type', local_var_params['search_type'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/articles/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListArticlesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_authorizations_async(self, request): """查看授权列表 @@ -2347,6 +3070,193 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_diagnose_items_async(self, request): + """根据itemIds查询指定的诊断检查项执行结果 + + 根据itemIds查询指定的诊断检查项执行结果 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDiagnoseItems + :type request: :class:`huaweicloudsdkosm.v2.ListDiagnoseItemsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListDiagnoseItemsResponse` + """ + return self.list_diagnose_items_with_http_info(request) + + def list_diagnose_items_with_http_info(self, request): + all_params = ['list_diagnose_items_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/job/show-items', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDiagnoseItemsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_diagnose_job_async(self, request): + """查询诊断任务执行结果 + + 查询诊断任务执行结果 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDiagnoseJob + :type request: :class:`huaweicloudsdkosm.v2.ListDiagnoseJobRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListDiagnoseJobResponse` + """ + return self.list_diagnose_job_with_http_info(request) + + def list_diagnose_job_with_http_info(self, request): + all_params = ['job_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'job_id' in local_var_params: + query_params.append(('job_id', local_var_params['job_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/job', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDiagnoseJobResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_diagnose_records_async(self, request): + """查询诊断历史记录列表 + + 查询诊断历史记录列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDiagnoseRecords + :type request: :class:`huaweicloudsdkosm.v2.ListDiagnoseRecordsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListDiagnoseRecordsResponse` + """ + return self.list_diagnose_records_with_http_info(request) + + def list_diagnose_records_with_http_info(self, request): + all_params = ['page_size', 'page_no', 'type'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/records', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDiagnoseRecordsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_extends_params_async(self, request): """查询附加参数 @@ -2418,6 +3328,75 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_feedback_option_async(self, request): + """查询反馈选项 + + 查询符合条件的反馈选项 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFeedbackOption + :type request: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionResponse` + """ + return self.list_feedback_option_with_http_info(request) + + def list_feedback_option_with_http_info(self, request): + all_params = ['status', 'x_service_key', 'x_site', 'x_language', 'feedback_source'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'feedback_source' in local_var_params: + query_params.append(('feedback_source', local_var_params['feedback_source'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/feedbacks/options', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListFeedbackOptionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_has_verified_contacts_async(self, request): """查询已验证的列表 @@ -2948,6 +3927,73 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_notices_async(self, request): + """查询公告 + + 查询满足指定条件的公告列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListNotices + :type request: :class:`huaweicloudsdkosm.v2.ListNoticesRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListNoticesResponse` + """ + return self.list_notices_with_http_info(request) + + def list_notices_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'list_notices_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/notices/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListNoticesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_privileges_async(self, request): """查询工单权限 @@ -3149,6 +4195,77 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_recommend_words_async(self, request): + """查询推荐热词 + + 查询指定条件的推荐热词 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListRecommendWords + :type request: :class:`huaweicloudsdkosm.v2.ListRecommendWordsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListRecommendWordsResponse` + """ + return self.list_recommend_words_with_http_info(request) + + def list_recommend_words_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'recommend_word_id', 'level_value', 'theme_name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recommend_word_id' in local_var_params: + query_params.append(('recommend_word_id', local_var_params['recommend_word_id'])) + if 'level_value' in local_var_params: + query_params.append(('level_value', local_var_params['level_value'])) + if 'theme_name' in local_var_params: + query_params.append(('theme_name', local_var_params['theme_name'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/recommend-words', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListRecommendWordsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_regions_async(self, request): """查询区域列表 @@ -3484,6 +4601,73 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_tools_async(self, request): + """查询工具 + + 查询满足指定条件的工具列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListTools + :type request: :class:`huaweicloudsdkosm.v2.ListToolsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListToolsResponse` + """ + return self.list_tools_with_http_info(request) + + def list_tools_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'list_tools_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/tools/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListToolsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_transport_histories_async(self, request): """查询堡垒机文件传输记录 @@ -3834,6 +5018,73 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_associated_questions_async(self, request): + """查询联想问题 + + 根据当前输入, 联想相关的问题 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAssociatedQuestions + :type request: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsResponse` + """ + return self.show_associated_questions_with_http_info(request) + + def show_associated_questions_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'show_associated_questions_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/associate', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAssociatedQuestionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_authorization_detail_async(self, request): """查询授权详情 @@ -4173,6 +5424,73 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_download_accessory_url_async(self, request): + """附件下载地址 + + 附件下载地址 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDownloadAccessoryUrl + :type request: :class:`huaweicloudsdkosm.v2.ShowDownloadAccessoryUrlRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowDownloadAccessoryUrlResponse` + """ + return self.show_download_accessory_url_with_http_info(request) + + def show_download_accessory_url_with_http_info(self, request): + all_params = ['accessory_id', 'relation_type', 'relation_id', 'incident_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'accessory_id' in local_var_params: + path_params['accessory_id'] = local_var_params['accessory_id'] + + query_params = [] + if 'relation_type' in local_var_params: + query_params.append(('relation_type', local_var_params['relation_type'])) + if 'relation_id' in local_var_params: + query_params.append(('relation_id', local_var_params['relation_id'])) + if 'incident_id' in local_var_params: + query_params.append(('incident_id', local_var_params['incident_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/servicerequest/accessorys/{accessory_id}/access-url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowDownloadAccessoryUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_latest_published_agreement_async(self, request): """查看最新发布版本协议详情 @@ -4374,6 +5692,142 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_qa_pair_detail_async(self, request): + """查询语料详情 + + 查询指定语料的详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowQaPairDetail + :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailResponse` + """ + return self.show_qa_pair_detail_with_http_info(request) + + def show_qa_pair_detail_with_http_info(self, request): + all_params = ['x_service_key', 'qa_pair_id', 'x_site', 'x_language'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'qa_pair_id' in local_var_params: + path_params['qa_pair_id'] = local_var_params['qa_pair_id'] + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/{qa_pair_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowQaPairDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_qa_pairs_async(self, request): + """查询语料 + + 查询满足指定条件的语料列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowQaPairs + :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairsResponse` + """ + return self.show_qa_pairs_with_http_info(request) + + def show_qa_pairs_with_http_info(self, request): + all_params = ['x_service_key', 'search_type', 'x_site', 'x_language', 'show_qa_pairs_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'search_type' in local_var_params: + query_params.append(('search_type', local_var_params['search_type'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowQaPairsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_signed_latest_published_agreement_async(self, request): """查询用户是否签署最新协议 @@ -4441,6 +5895,77 @@ class OsmAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_theme_async(self, request): + """产品类型转为主题 + + 产品类型转为主题 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTheme + :type request: :class:`huaweicloudsdkosm.v2.ShowThemeRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowThemeResponse` + """ + return self.show_theme_with_http_info(request) + + def show_theme_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'product_type_id', 'product_type_name', 'product_type_short_name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'product_type_id' in local_var_params: + query_params.append(('product_type_id', local_var_params['product_type_id'])) + if 'product_type_name' in local_var_params: + query_params.append(('product_type_name', local_var_params['product_type_name'])) + if 'product_type_short_name' in local_var_params: + query_params.append(('product_type_short_name', local_var_params['product_type_short_name'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/themes/convert', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowThemeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def sign_published_agreement_async(self, request): """签署协议 diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_client.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_client.py index bb2192966..8c781a1d9 100755 --- a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_client.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/osm_client.py @@ -314,6 +314,134 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_ask_question(self, request): + """语料提问 + + 基于语料的一次问答 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAskQuestion + :type request: :class:`huaweicloudsdkosm.v2.CreateAskQuestionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateAskQuestionResponse` + """ + return self.create_ask_question_with_http_info(request) + + def create_ask_question_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'create_ask_question_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/ask', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAskQuestionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_authorization(self, request): + """创建授权 + + 创建授权 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAuthorization + :type request: :class:`huaweicloudsdkosm.v2.CreateAuthorizationRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateAuthorizationResponse` + """ + return self.create_authorization_with_http_info(request) + + def create_authorization_with_http_info(self, request): + all_params = ['case_id', 'create_authorization_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'case_id' in local_var_params: + path_params['case_id'] = local_var_params['case_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/servicerequest/cases/{case_id}/authorizations', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateAuthorizationResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_case_extends_param(self, request): """提交工单扩展参数 @@ -521,6 +649,256 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_diagnose_feedback(self, request): + """用户反馈是否有帮助 + + 用户反馈是否有帮助 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDiagnoseFeedback + :type request: :class:`huaweicloudsdkosm.v2.CreateDiagnoseFeedbackRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateDiagnoseFeedbackResponse` + """ + return self.create_diagnose_feedback_with_http_info(request) + + def create_diagnose_feedback_with_http_info(self, request): + all_params = ['create_diagnose_feedback_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/feedback', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDiagnoseFeedbackResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_diagnose_job(self, request): + """开始一键诊断 + + 开始一键诊断 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDiagnoseJob + :type request: :class:`huaweicloudsdkosm.v2.CreateDiagnoseJobRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateDiagnoseJobResponse` + """ + return self.create_diagnose_job_with_http_info(request) + + def create_diagnose_job_with_http_info(self, request): + all_params = ['create_diagnose_job_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/job/start', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateDiagnoseJobResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_evaluate(self, request): + """问答满意度评价 + + 一次问答完毕后, 针对这一次问答提交满意度评价 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateEvaluate + :type request: :class:`huaweicloudsdkosm.v2.CreateEvaluateRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateEvaluateResponse` + """ + return self.create_evaluate_with_http_info(request) + + def create_evaluate_with_http_info(self, request): + all_params = ['x_service_key', 'session_id', 'request_id', 'x_site', 'x_language', 'create_evaluate_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'session_id' in local_var_params: + path_params['session_id'] = local_var_params['session_id'] + if 'request_id' in local_var_params: + path_params['request_id'] = local_var_params['request_id'] + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/sessions/{session_id}/{request_id}/evaluate', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateEvaluateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_feedback(self, request): + """创建举报反馈 + + 创建举报反馈 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateFeedback + :type request: :class:`huaweicloudsdkosm.v2.CreateFeedbackRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateFeedbackResponse` + """ + return self.create_feedback_with_http_info(request) + + def create_feedback_with_http_info(self, request): + all_params = ['create_feedback_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/servicerequest/feedbacks', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateFeedbackResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_labels(self, request): """创建标签 @@ -721,6 +1099,208 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_qa_ask(self, request): + """新问答接口 + + 支持多轮流程问答接口 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateQaAsk + :type request: :class:`huaweicloudsdkosm.v2.CreateQaAskRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateQaAskResponse` + """ + return self.create_qa_ask_with_http_info(request) + + def create_qa_ask_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'create_qa_ask_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/ask', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateQaAskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_qa_feedbacks(self, request): + """反馈评价 + + 提交/取消反馈评价 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateQaFeedbacks + :type request: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateQaFeedbacksResponse` + """ + return self.create_qa_feedbacks_with_http_info(request) + + def create_qa_feedbacks_with_http_info(self, request): + all_params = ['feedback_type', 'x_service_key', 'x_site', 'x_language', 'create_qa_feedbacks_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'feedback_type' in local_var_params: + query_params.append(('feedback_type', local_var_params['feedback_type'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/feedbacks', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateQaFeedbacksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_question_in_session(self, request): + """提问(在制定的会话中) + + 提问(在制定的会话中) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateQuestionInSession + :type request: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateQuestionInSessionResponse` + """ + return self.create_question_in_session_with_http_info(request) + + def create_question_in_session_with_http_info(self, request): + all_params = ['x_service_key', 'session_id', 'x_site', 'x_language', 'create_question_in_session_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'session_id' in local_var_params: + path_params['session_id'] = local_var_params['session_id'] + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/sessions/{session_id}/ask', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateQuestionInSessionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_relations(self, request): """创建关联 @@ -857,6 +1437,70 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_session(self, request): + """创建问答会话 + + 用于创建问答会话, 创建会话后可开始问答 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateSession + :type request: :class:`huaweicloudsdkosm.v2.CreateSessionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.CreateSessionResponse` + """ + return self.create_session_with_http_info(request) + + def create_session_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/sessions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateSessionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def delete_accessories(self, request): """删除附件 @@ -1550,6 +2194,74 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_articles(self, request): + """查询案例 + + 查询满足指定条件的案例列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListArticles + :type request: :class:`huaweicloudsdkosm.v2.ListArticlesRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListArticlesResponse` + """ + return self.list_articles_with_http_info(request) + + def list_articles_with_http_info(self, request): + all_params = ['search_type', 'x_service_key', 'x_site', 'x_language', 'list_articles_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'search_type' in local_var_params: + query_params.append(('search_type', local_var_params['search_type'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/articles/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListArticlesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_authorizations(self, request): """查看授权列表 @@ -2314,6 +3026,190 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_diagnose_items(self, request): + """根据itemIds查询指定的诊断检查项执行结果 + + 根据itemIds查询指定的诊断检查项执行结果 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDiagnoseItems + :type request: :class:`huaweicloudsdkosm.v2.ListDiagnoseItemsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListDiagnoseItemsResponse` + """ + return self.list_diagnose_items_with_http_info(request) + + def list_diagnose_items_with_http_info(self, request): + all_params = ['list_diagnose_items_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/job/show-items', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDiagnoseItemsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_diagnose_job(self, request): + """查询诊断任务执行结果 + + 查询诊断任务执行结果 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDiagnoseJob + :type request: :class:`huaweicloudsdkosm.v2.ListDiagnoseJobRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListDiagnoseJobResponse` + """ + return self.list_diagnose_job_with_http_info(request) + + def list_diagnose_job_with_http_info(self, request): + all_params = ['job_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'job_id' in local_var_params: + query_params.append(('job_id', local_var_params['job_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/job', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDiagnoseJobResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_diagnose_records(self, request): + """查询诊断历史记录列表 + + 查询诊断历史记录列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDiagnoseRecords + :type request: :class:`huaweicloudsdkosm.v2.ListDiagnoseRecordsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListDiagnoseRecordsResponse` + """ + return self.list_diagnose_records_with_http_info(request) + + def list_diagnose_records_with_http_info(self, request): + all_params = ['page_size', 'page_no', 'type'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/servicerequest/diagnose/records', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListDiagnoseRecordsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_extends_params(self, request): """查询附加参数 @@ -2384,6 +3280,74 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_feedback_option(self, request): + """查询反馈选项 + + 查询符合条件的反馈选项 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFeedbackOption + :type request: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListFeedbackOptionResponse` + """ + return self.list_feedback_option_with_http_info(request) + + def list_feedback_option_with_http_info(self, request): + all_params = ['status', 'x_service_key', 'x_site', 'x_language', 'feedback_source'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'feedback_source' in local_var_params: + query_params.append(('feedback_source', local_var_params['feedback_source'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/feedbacks/options', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListFeedbackOptionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_has_verified_contacts(self, request): """查询已验证的列表 @@ -2907,6 +3871,72 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_notices(self, request): + """查询公告 + + 查询满足指定条件的公告列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListNotices + :type request: :class:`huaweicloudsdkosm.v2.ListNoticesRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListNoticesResponse` + """ + return self.list_notices_with_http_info(request) + + def list_notices_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'list_notices_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/notices/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListNoticesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_privileges(self, request): """查询工单权限 @@ -3105,6 +4135,76 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_recommend_words(self, request): + """查询推荐热词 + + 查询指定条件的推荐热词 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListRecommendWords + :type request: :class:`huaweicloudsdkosm.v2.ListRecommendWordsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListRecommendWordsResponse` + """ + return self.list_recommend_words_with_http_info(request) + + def list_recommend_words_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'recommend_word_id', 'level_value', 'theme_name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'recommend_word_id' in local_var_params: + query_params.append(('recommend_word_id', local_var_params['recommend_word_id'])) + if 'level_value' in local_var_params: + query_params.append(('level_value', local_var_params['level_value'])) + if 'theme_name' in local_var_params: + query_params.append(('theme_name', local_var_params['theme_name'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/recommend-words', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListRecommendWordsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_regions(self, request): """查询区域列表 @@ -3435,6 +4535,72 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def list_tools(self, request): + """查询工具 + + 查询满足指定条件的工具列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListTools + :type request: :class:`huaweicloudsdkosm.v2.ListToolsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ListToolsResponse` + """ + return self.list_tools_with_http_info(request) + + def list_tools_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'list_tools_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/tools/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ListToolsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def list_transport_histories(self, request): """查询堡垒机文件传输记录 @@ -3780,6 +4946,72 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_associated_questions(self, request): + """查询联想问题 + + 根据当前输入, 联想相关的问题 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAssociatedQuestions + :type request: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowAssociatedQuestionsResponse` + """ + return self.show_associated_questions_with_http_info(request) + + def show_associated_questions_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'show_associated_questions_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/associate', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowAssociatedQuestionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_authorization_detail(self, request): """查询授权详情 @@ -4114,6 +5346,72 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_download_accessory_url(self, request): + """附件下载地址 + + 附件下载地址 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDownloadAccessoryUrl + :type request: :class:`huaweicloudsdkosm.v2.ShowDownloadAccessoryUrlRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowDownloadAccessoryUrlResponse` + """ + return self.show_download_accessory_url_with_http_info(request) + + def show_download_accessory_url_with_http_info(self, request): + all_params = ['accessory_id', 'relation_type', 'relation_id', 'incident_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'accessory_id' in local_var_params: + path_params['accessory_id'] = local_var_params['accessory_id'] + + query_params = [] + if 'relation_type' in local_var_params: + query_params.append(('relation_type', local_var_params['relation_type'])) + if 'relation_id' in local_var_params: + query_params.append(('relation_id', local_var_params['relation_id'])) + if 'incident_id' in local_var_params: + query_params.append(('incident_id', local_var_params['incident_id'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/servicerequest/accessorys/{accessory_id}/access-url', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowDownloadAccessoryUrlResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_latest_published_agreement(self, request): """查看最新发布版本协议详情 @@ -4312,6 +5610,140 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_qa_pair_detail(self, request): + """查询语料详情 + + 查询指定语料的详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowQaPairDetail + :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairDetailResponse` + """ + return self.show_qa_pair_detail_with_http_info(request) + + def show_qa_pair_detail_with_http_info(self, request): + all_params = ['x_service_key', 'qa_pair_id', 'x_site', 'x_language'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'qa_pair_id' in local_var_params: + path_params['qa_pair_id'] = local_var_params['qa_pair_id'] + + query_params = [] + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/{qa_pair_id}', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowQaPairDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_qa_pairs(self, request): + """查询语料 + + 查询满足指定条件的语料列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowQaPairs + :type request: :class:`huaweicloudsdkosm.v2.ShowQaPairsRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowQaPairsResponse` + """ + return self.show_qa_pairs_with_http_info(request) + + def show_qa_pairs_with_http_info(self, request): + all_params = ['x_service_key', 'search_type', 'x_site', 'x_language', 'show_qa_pairs_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'search_type' in local_var_params: + query_params.append(('search_type', local_var_params['search_type'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/qapairs/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowQaPairsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_signed_latest_published_agreement(self, request): """查询用户是否签署最新协议 @@ -4378,6 +5810,76 @@ class OsmClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_theme(self, request): + """产品类型转为主题 + + 产品类型转为主题 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTheme + :type request: :class:`huaweicloudsdkosm.v2.ShowThemeRequest` + :rtype: :class:`huaweicloudsdkosm.v2.ShowThemeResponse` + """ + return self.show_theme_with_http_info(request) + + def show_theme_with_http_info(self, request): + all_params = ['x_service_key', 'x_site', 'x_language', 'product_type_id', 'product_type_name', 'product_type_short_name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'product_type_id' in local_var_params: + query_params.append(('product_type_id', local_var_params['product_type_id'])) + if 'product_type_name' in local_var_params: + query_params.append(('product_type_name', local_var_params['product_type_name'])) + if 'product_type_short_name' in local_var_params: + query_params.append(('product_type_short_name', local_var_params['product_type_short_name'])) + + header_params = {} + if 'x_service_key' in local_var_params: + header_params['x-service-key'] = local_var_params['x_service_key'] + if 'x_site' in local_var_params: + header_params['x-site'] = local_var_params['x_site'] + if 'x_language' in local_var_params: + header_params['x-language'] = local_var_params['x_language'] + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/irobot/themes/convert', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowThemeResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def sign_published_agreement(self, request): """签署协议 diff --git a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py index b6c5c5643..44d28c5bc 100755 --- a/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py +++ b/huaweicloud-sdk-osm/huaweicloudsdkosm/v2/region/osm_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class OsmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("OSM") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://osm.cn-south-1.myhuaweicloud.cn") + CN_SOUTH_1 = Region("cn-south-1", + "https://osm.cn-south-1.myhuaweicloud.cn") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 34e7960e9..007b8ff0e 100755 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 6faa67127..a9b603192 100755 --- a/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/region/projectman_region.py +++ b/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/region/projectman_region.py @@ -9,24 +9,24 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ProjectManRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("PROJECTMAN") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://projectman-ext.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://projectman-ext.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://projectman-ext.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://projectman-ext.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://projectman-ext.cn-southwest-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://projectman-ext.cn-east-3.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://projectman-ext.ap-southeast-3.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://projectman-ext.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://projectman-ext.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://projectman-ext.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://projectman-ext.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://projectman-ext.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://projectman-ext.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://projectman-ext.cn-southwest-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://projectman-ext.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://projectman-ext.ap-southeast-3.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://projectman-ext.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://projectman-ext.sa-brazil-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index a362a0b6b..7069b2b2e 100755 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 3362a0c86..c9d5add5c 100755 --- a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py +++ b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class RabbitMQRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("RABBITMQ") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dms.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dms.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dms.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dms.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dms.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dms.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dms.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dms.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dms.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dms.ru-northwest-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dms.cn-north-9.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://dms.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://dms.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://dms.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://dms.na-mexico-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dms.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dms.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dms.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dms.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dms.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dms.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dms.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dms.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dms.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dms.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dms.cn-north-9.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://dms.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://dms.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://dms.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dms.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index bd673d9bf..ab8fb86cd 100755 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py index 643b7fa8b..f7536a0d4 100755 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/region/rds_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class RdsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("RDS") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://rds.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://rds.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://rds.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://rds.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://rds.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://rds.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://rds.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://rds.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://rds.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://rds.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://rds.ru-northwest-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://rds.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://rds.la-north-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://rds.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://rds.na-mexico-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://rds.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://rds.cn-north-9.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://rds.cn-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://rds.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://rds.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://rds.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://rds.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://rds.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://rds.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://rds.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://rds.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://rds.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://rds.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://rds.ru-northwest-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://rds.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://rds.la-north-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://rds.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://rds.na-mexico-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://rds.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://rds.cn-north-9.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://rds.cn-north-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index d407a71ff..bbb0730d4 100755 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 3bdb120fc..258eccac8 100755 --- a/huaweicloud-sdk-res/huaweicloudsdkres/v1/region/res_region.py +++ b/huaweicloud-sdk-res/huaweicloudsdkres/v1/region/res_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ResRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("RES") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://res.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://res.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index a4952dadf..edfc9a8b8 100755 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_policy_assignments_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_policy_assignments_request.py index d76945f74..592e380d2 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_policy_assignments_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_policy_assignments_request.py @@ -18,61 +18,32 @@ class CreatePolicyAssignmentsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'body': 'PolicyAssignmentRequestBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'body': 'body' } - def __init__(self, x_auth_token=None, body=None): + def __init__(self, body=None): """CreatePolicyAssignmentsRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param body: Body of the CreatePolicyAssignmentsRequest :type body: :class:`huaweicloudsdkrms.v1.PolicyAssignmentRequestBody` """ - self._x_auth_token = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this CreatePolicyAssignmentsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this CreatePolicyAssignmentsRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this CreatePolicyAssignmentsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this CreatePolicyAssignmentsRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def body(self): """Gets the body of this CreatePolicyAssignmentsRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_stored_query_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_stored_query_request.py index 4a75eb354..19ecc03ab 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_stored_query_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_stored_query_request.py @@ -18,61 +18,32 @@ class CreateStoredQueryRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'body': 'StoredQueryRequestBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'body': 'body' } - def __init__(self, x_auth_token=None, body=None): + def __init__(self, body=None): """CreateStoredQueryRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param body: Body of the CreateStoredQueryRequest :type body: :class:`huaweicloudsdkrms.v1.StoredQueryRequestBody` """ - self._x_auth_token = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this CreateStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this CreateStoredQueryRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this CreateStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this CreateStoredQueryRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def body(self): """Gets the body of this CreateStoredQueryRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_tracker_config_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_tracker_config_request.py index 0781cba1f..b3beeb184 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_tracker_config_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/create_tracker_config_request.py @@ -18,61 +18,32 @@ class CreateTrackerConfigRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'body': 'TrackerConfigBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'body': 'body' } - def __init__(self, x_auth_token=None, body=None): + def __init__(self, body=None): """CreateTrackerConfigRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param body: Body of the CreateTrackerConfigRequest :type body: :class:`huaweicloudsdkrms.v1.TrackerConfigBody` """ - self._x_auth_token = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this CreateTrackerConfigRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this CreateTrackerConfigRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this CreateTrackerConfigRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this CreateTrackerConfigRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def body(self): """Gets the body of this CreateTrackerConfigRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_policy_assignment_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_policy_assignment_request.py index c49a336c4..b27f3bba7 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_policy_assignment_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_policy_assignment_request.py @@ -18,60 +18,31 @@ class DeletePolicyAssignmentRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id' } - def __init__(self, x_auth_token=None, policy_assignment_id=None): + def __init__(self, policy_assignment_id=None): """DeletePolicyAssignmentRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str """ - self._x_auth_token = None self._policy_assignment_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this DeletePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this DeletePolicyAssignmentRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this DeletePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this DeletePolicyAssignmentRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this DeletePolicyAssignmentRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_stored_query_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_stored_query_request.py index 03638423a..18a826bba 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_stored_query_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_stored_query_request.py @@ -18,60 +18,31 @@ class DeleteStoredQueryRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'query_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'query_id': 'query_id' } - def __init__(self, x_auth_token=None, query_id=None): + def __init__(self, query_id=None): """DeleteStoredQueryRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param query_id: 查询ID :type query_id: str """ - self._x_auth_token = None self._query_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.query_id = query_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this DeleteStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this DeleteStoredQueryRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this DeleteStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this DeleteStoredQueryRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def query_id(self): """Gets the query_id of this DeleteStoredQueryRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_tracker_config_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_tracker_config_request.py index cbd273789..0d61df512 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_tracker_config_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/delete_tracker_config_request.py @@ -18,54 +18,23 @@ class DeleteTrackerConfigRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token' } - def __init__(self, x_auth_token=None): + def __init__(self): """DeleteTrackerConfigRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str """ - - self._x_auth_token = None self.discriminator = None - self.x_auth_token = x_auth_token - - @property - def x_auth_token(self): - """Gets the x_auth_token of this DeleteTrackerConfigRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this DeleteTrackerConfigRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this DeleteTrackerConfigRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this DeleteTrackerConfigRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/disable_policy_assignment_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/disable_policy_assignment_request.py index 680f66c02..02dedefc6 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/disable_policy_assignment_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/disable_policy_assignment_request.py @@ -18,60 +18,31 @@ class DisablePolicyAssignmentRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id' } - def __init__(self, x_auth_token=None, policy_assignment_id=None): + def __init__(self, policy_assignment_id=None): """DisablePolicyAssignmentRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str """ - self._x_auth_token = None self._policy_assignment_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this DisablePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this DisablePolicyAssignmentRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this DisablePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this DisablePolicyAssignmentRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this DisablePolicyAssignmentRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/enable_policy_assignment_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/enable_policy_assignment_request.py index 252b0ea2f..430fc09b9 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/enable_policy_assignment_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/enable_policy_assignment_request.py @@ -18,60 +18,31 @@ class EnablePolicyAssignmentRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id' } - def __init__(self, x_auth_token=None, policy_assignment_id=None): + def __init__(self, policy_assignment_id=None): """EnablePolicyAssignmentRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str """ - self._x_auth_token = None self._policy_assignment_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this EnablePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this EnablePolicyAssignmentRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this EnablePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this EnablePolicyAssignmentRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this EnablePolicyAssignmentRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_all_resources_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_all_resources_request.py index fa15f6965..ad78c2a55 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_all_resources_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_all_resources_request.py @@ -18,10 +18,8 @@ class ListAllResourcesRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'region_id': 'str', 'ep_id': 'str', 'type': 'str', @@ -30,7 +28,6 @@ class ListAllResourcesRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'region_id': 'region_id', 'ep_id': 'ep_id', 'type': 'type', @@ -38,13 +35,11 @@ class ListAllResourcesRequest: 'marker': 'marker' } - def __init__(self, x_auth_token=None, region_id=None, ep_id=None, type=None, limit=None, marker=None): + def __init__(self, region_id=None, ep_id=None, type=None, limit=None, marker=None): """ListAllResourcesRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param region_id: 区域ID :type region_id: str :param ep_id: 企业项目ID @@ -59,7 +54,6 @@ class ListAllResourcesRequest: - self._x_auth_token = None self._region_id = None self._ep_id = None self._type = None @@ -67,7 +61,6 @@ class ListAllResourcesRequest: self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token if region_id is not None: self.region_id = region_id if ep_id is not None: @@ -79,28 +72,6 @@ class ListAllResourcesRequest: if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListAllResourcesRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListAllResourcesRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListAllResourcesRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListAllResourcesRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def region_id(self): """Gets the region_id of this ListAllResourcesRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_built_in_policy_definitions_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_built_in_policy_definitions_request.py index a44d0d357..aed841260 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_built_in_policy_definitions_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_built_in_policy_definitions_request.py @@ -18,61 +18,32 @@ class ListBuiltInPolicyDefinitionsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'x_language': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'x_language': 'X-Language' } - def __init__(self, x_auth_token=None, x_language=None): + def __init__(self, x_language=None): """ListBuiltInPolicyDefinitionsRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param x_language: 选择接口返回的信息的语言,默认为\"zh-cn\"中文 :type x_language: str """ - self._x_auth_token = None self._x_language = None self.discriminator = None - self.x_auth_token = x_auth_token if x_language is not None: self.x_language = x_language - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListBuiltInPolicyDefinitionsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListBuiltInPolicyDefinitionsRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListBuiltInPolicyDefinitionsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListBuiltInPolicyDefinitionsRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def x_language(self): """Gets the x_language of this ListBuiltInPolicyDefinitionsRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_assignments_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_assignments_request.py index da4e4541c..20d39e7b6 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_assignments_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_assignments_request.py @@ -18,54 +18,23 @@ class ListPolicyAssignmentsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token' } - def __init__(self, x_auth_token=None): + def __init__(self): """ListPolicyAssignmentsRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str """ - - self._x_auth_token = None self.discriminator = None - self.x_auth_token = x_auth_token - - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListPolicyAssignmentsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListPolicyAssignmentsRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListPolicyAssignmentsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListPolicyAssignmentsRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_request.py index 4ac339432..c38041ef3 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_request.py @@ -18,10 +18,8 @@ class ListPolicyStatesByAssignmentIdRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str', 'compliance_state': 'str', 'resource_id': 'str', @@ -31,7 +29,6 @@ class ListPolicyStatesByAssignmentIdRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id', 'compliance_state': 'compliance_state', 'resource_id': 'resource_id', @@ -40,13 +37,11 @@ class ListPolicyStatesByAssignmentIdRequest: 'marker': 'marker' } - def __init__(self, x_auth_token=None, policy_assignment_id=None, compliance_state=None, resource_id=None, resource_name=None, limit=None, marker=None): + def __init__(self, policy_assignment_id=None, compliance_state=None, resource_id=None, resource_name=None, limit=None, marker=None): """ListPolicyStatesByAssignmentIdRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str :param compliance_state: 合规状态 @@ -63,7 +58,6 @@ class ListPolicyStatesByAssignmentIdRequest: - self._x_auth_token = None self._policy_assignment_id = None self._compliance_state = None self._resource_id = None @@ -72,7 +66,6 @@ class ListPolicyStatesByAssignmentIdRequest: self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id if compliance_state is not None: self.compliance_state = compliance_state @@ -85,28 +78,6 @@ class ListPolicyStatesByAssignmentIdRequest: if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListPolicyStatesByAssignmentIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListPolicyStatesByAssignmentIdRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListPolicyStatesByAssignmentIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListPolicyStatesByAssignmentIdRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this ListPolicyStatesByAssignmentIdRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_domain_id_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_domain_id_request.py index 06aacb51d..bc4748a10 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_domain_id_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_domain_id_request.py @@ -18,10 +18,8 @@ class ListPolicyStatesByDomainIdRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'compliance_state': 'str', 'resource_id': 'str', 'resource_name': 'str', @@ -30,7 +28,6 @@ class ListPolicyStatesByDomainIdRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'compliance_state': 'compliance_state', 'resource_id': 'resource_id', 'resource_name': 'resource_name', @@ -38,13 +35,11 @@ class ListPolicyStatesByDomainIdRequest: 'marker': 'marker' } - def __init__(self, x_auth_token=None, compliance_state=None, resource_id=None, resource_name=None, limit=None, marker=None): + def __init__(self, compliance_state=None, resource_id=None, resource_name=None, limit=None, marker=None): """ListPolicyStatesByDomainIdRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param compliance_state: 合规状态 :type compliance_state: str :param resource_id: 资源ID @@ -59,7 +54,6 @@ class ListPolicyStatesByDomainIdRequest: - self._x_auth_token = None self._compliance_state = None self._resource_id = None self._resource_name = None @@ -67,7 +61,6 @@ class ListPolicyStatesByDomainIdRequest: self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token if compliance_state is not None: self.compliance_state = compliance_state if resource_id is not None: @@ -79,28 +72,6 @@ class ListPolicyStatesByDomainIdRequest: if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListPolicyStatesByDomainIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListPolicyStatesByDomainIdRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListPolicyStatesByDomainIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListPolicyStatesByDomainIdRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def compliance_state(self): """Gets the compliance_state of this ListPolicyStatesByDomainIdRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_resource_id_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_resource_id_request.py index 6fc9149ec..d1c704e61 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_resource_id_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_resource_id_request.py @@ -18,10 +18,8 @@ class ListPolicyStatesByResourceIdRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'resource_id': 'str', 'compliance_state': 'str', 'limit': 'int', @@ -29,20 +27,17 @@ class ListPolicyStatesByResourceIdRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'resource_id': 'resource_id', 'compliance_state': 'compliance_state', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_auth_token=None, resource_id=None, compliance_state=None, limit=None, marker=None): + def __init__(self, resource_id=None, compliance_state=None, limit=None, marker=None): """ListPolicyStatesByResourceIdRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param resource_id: 资源ID :type resource_id: str :param compliance_state: 合规状态 @@ -55,14 +50,12 @@ class ListPolicyStatesByResourceIdRequest: - self._x_auth_token = None self._resource_id = None self._compliance_state = None self._limit = None self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token self.resource_id = resource_id if compliance_state is not None: self.compliance_state = compliance_state @@ -71,28 +64,6 @@ class ListPolicyStatesByResourceIdRequest: if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListPolicyStatesByResourceIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListPolicyStatesByResourceIdRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListPolicyStatesByResourceIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListPolicyStatesByResourceIdRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def resource_id(self): """Gets the resource_id of this ListPolicyStatesByResourceIdRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_providers_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_providers_request.py index d264c4466..46d4c2402 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_providers_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_providers_request.py @@ -18,29 +18,24 @@ class ListProvidersRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'offset': 'int', 'limit': 'int', 'x_language': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'offset': 'offset', 'limit': 'limit', 'x_language': 'X-Language' } - def __init__(self, x_auth_token=None, offset=None, limit=None, x_language=None): + def __init__(self, offset=None, limit=None, x_language=None): """ListProvidersRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param offset: 分页偏移 :type offset: int :param limit: 最大的返回数量 @@ -51,13 +46,11 @@ class ListProvidersRequest: - self._x_auth_token = None self._offset = None self._limit = None self._x_language = None self.discriminator = None - self.x_auth_token = x_auth_token if offset is not None: self.offset = offset if limit is not None: @@ -65,28 +58,6 @@ class ListProvidersRequest: if x_language is not None: self.x_language = x_language - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListProvidersRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListProvidersRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListProvidersRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListProvidersRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def offset(self): """Gets the offset of this ListProvidersRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_regions_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_regions_request.py index 578d26c6c..1fb0a38f2 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_regions_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_regions_request.py @@ -18,61 +18,32 @@ class ListRegionsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'x_language': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'x_language': 'X-Language' } - def __init__(self, x_auth_token=None, x_language=None): + def __init__(self, x_language=None): """ListRegionsRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param x_language: 选择接口返回的信息的语言,默认为\"zh-cn\"中文 :type x_language: str """ - self._x_auth_token = None self._x_language = None self.discriminator = None - self.x_auth_token = x_auth_token if x_language is not None: self.x_language = x_language - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListRegionsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListRegionsRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListRegionsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListRegionsRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def x_language(self): """Gets the x_language of this ListRegionsRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py index 1029744e4..e63b6bb40 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py @@ -18,10 +18,8 @@ class ListResourcesRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'provider': 'str', 'type': 'str', 'region_id': 'str', @@ -32,7 +30,6 @@ class ListResourcesRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'provider': 'provider', 'type': 'type', 'region_id': 'region_id', @@ -42,13 +39,11 @@ class ListResourcesRequest: 'marker': 'marker' } - def __init__(self, x_auth_token=None, provider=None, type=None, region_id=None, ep_id=None, tag=None, limit=None, marker=None): + def __init__(self, provider=None, type=None, region_id=None, ep_id=None, tag=None, limit=None, marker=None): """ListResourcesRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param provider: 云服务名称 :type provider: str :param type: 资源类型名称 @@ -67,7 +62,6 @@ class ListResourcesRequest: - self._x_auth_token = None self._provider = None self._type = None self._region_id = None @@ -77,7 +71,6 @@ class ListResourcesRequest: self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token self.provider = provider self.type = type if region_id is not None: @@ -91,28 +84,6 @@ class ListResourcesRequest: if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListResourcesRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListResourcesRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListResourcesRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListResourcesRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def provider(self): """Gets the provider of this ListResourcesRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_schemas_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_schemas_request.py index 552f806da..a0657c6f1 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_schemas_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_schemas_request.py @@ -18,27 +18,22 @@ class ListSchemasRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'limit': 'int', 'marker': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_auth_token=None, limit=None, marker=None): + def __init__(self, limit=None, marker=None): """ListSchemasRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param limit: 最大的返回数量 :type limit: int :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 @@ -47,39 +42,15 @@ class ListSchemasRequest: - self._x_auth_token = None self._limit = None self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token if limit is not None: self.limit = limit if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListSchemasRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListSchemasRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListSchemasRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListSchemasRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def limit(self): """Gets the limit of this ListSchemasRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_stored_queries_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_stored_queries_request.py index 08be7fe63..324e21692 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_stored_queries_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_stored_queries_request.py @@ -18,29 +18,24 @@ class ListStoredQueriesRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'limit': 'int', 'marker': 'str', 'name': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'limit': 'limit', 'marker': 'marker', 'name': 'name' } - def __init__(self, x_auth_token=None, limit=None, marker=None, name=None): + def __init__(self, limit=None, marker=None, name=None): """ListStoredQueriesRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param limit: 最大的返回数量 :type limit: int :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 @@ -51,13 +46,11 @@ class ListStoredQueriesRequest: - self._x_auth_token = None self._limit = None self._marker = None self._name = None self.discriminator = None - self.x_auth_token = x_auth_token if limit is not None: self.limit = limit if marker is not None: @@ -65,28 +58,6 @@ class ListStoredQueriesRequest: if name is not None: self.name = name - @property - def x_auth_token(self): - """Gets the x_auth_token of this ListStoredQueriesRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ListStoredQueriesRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ListStoredQueriesRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ListStoredQueriesRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def limit(self): """Gets the limit of this ListStoredQueriesRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_evaluation_by_policy_assignment_id_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_evaluation_by_policy_assignment_id_request.py index cdcf60cfa..203ee2632 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_evaluation_by_policy_assignment_id_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_evaluation_by_policy_assignment_id_request.py @@ -18,60 +18,31 @@ class RunEvaluationByPolicyAssignmentIdRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id' } - def __init__(self, x_auth_token=None, policy_assignment_id=None): + def __init__(self, policy_assignment_id=None): """RunEvaluationByPolicyAssignmentIdRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str """ - self._x_auth_token = None self._policy_assignment_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this RunEvaluationByPolicyAssignmentIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this RunEvaluationByPolicyAssignmentIdRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this RunEvaluationByPolicyAssignmentIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this RunEvaluationByPolicyAssignmentIdRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this RunEvaluationByPolicyAssignmentIdRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_query_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_query_request.py index 20c2b0eee..3898782b2 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_query_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/run_query_request.py @@ -18,61 +18,32 @@ class RunQueryRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'body': 'QueryRunRequestBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'body': 'body' } - def __init__(self, x_auth_token=None, body=None): + def __init__(self, body=None): """RunQueryRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param body: Body of the RunQueryRequest :type body: :class:`huaweicloudsdkrms.v1.QueryRunRequestBody` """ - self._x_auth_token = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this RunQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this RunQueryRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this RunQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this RunQueryRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def body(self): """Gets the body of this RunQueryRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_built_in_policy_definition_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_built_in_policy_definition_request.py index 7ecdc8aca..4be1da869 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_built_in_policy_definition_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_built_in_policy_definition_request.py @@ -18,27 +18,22 @@ class ShowBuiltInPolicyDefinitionRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_definition_id': 'str', 'x_language': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_definition_id': 'policy_definition_id', 'x_language': 'X-Language' } - def __init__(self, x_auth_token=None, policy_definition_id=None, x_language=None): + def __init__(self, policy_definition_id=None, x_language=None): """ShowBuiltInPolicyDefinitionRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_definition_id: 策略ID :type policy_definition_id: str :param x_language: 选择接口返回的信息的语言,默认为\"zh-cn\"中文 @@ -47,38 +42,14 @@ class ShowBuiltInPolicyDefinitionRequest: - self._x_auth_token = None self._policy_definition_id = None self._x_language = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_definition_id = policy_definition_id if x_language is not None: self.x_language = x_language - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowBuiltInPolicyDefinitionRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowBuiltInPolicyDefinitionRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowBuiltInPolicyDefinitionRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowBuiltInPolicyDefinitionRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_definition_id(self): """Gets the policy_definition_id of this ShowBuiltInPolicyDefinitionRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_evaluation_state_by_assignment_id_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_evaluation_state_by_assignment_id_request.py index 6f04faba7..532caa548 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_evaluation_state_by_assignment_id_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_evaluation_state_by_assignment_id_request.py @@ -18,60 +18,31 @@ class ShowEvaluationStateByAssignmentIdRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id' } - def __init__(self, x_auth_token=None, policy_assignment_id=None): + def __init__(self, policy_assignment_id=None): """ShowEvaluationStateByAssignmentIdRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str """ - self._x_auth_token = None self._policy_assignment_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowEvaluationStateByAssignmentIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowEvaluationStateByAssignmentIdRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowEvaluationStateByAssignmentIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowEvaluationStateByAssignmentIdRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this ShowEvaluationStateByAssignmentIdRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_policy_assignment_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_policy_assignment_request.py index 98f4b0898..16f87ccf0 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_policy_assignment_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_policy_assignment_request.py @@ -18,60 +18,31 @@ class ShowPolicyAssignmentRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id' } - def __init__(self, x_auth_token=None, policy_assignment_id=None): + def __init__(self, policy_assignment_id=None): """ShowPolicyAssignmentRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str """ - self._x_auth_token = None self._policy_assignment_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowPolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowPolicyAssignmentRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowPolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowPolicyAssignmentRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this ShowPolicyAssignmentRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_by_id_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_by_id_request.py index eeccea3a4..d4bd0259c 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_by_id_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_by_id_request.py @@ -18,29 +18,24 @@ class ShowResourceByIdRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'provider': 'str', 'type': 'str', 'resource_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'provider': 'provider', 'type': 'type', 'resource_id': 'resource_id' } - def __init__(self, x_auth_token=None, provider=None, type=None, resource_id=None): + def __init__(self, provider=None, type=None, resource_id=None): """ShowResourceByIdRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param provider: 云服务名称 :type provider: str :param type: 资源类型名称 @@ -51,39 +46,15 @@ class ShowResourceByIdRequest: - self._x_auth_token = None self._provider = None self._type = None self._resource_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.provider = provider self.type = type self.resource_id = resource_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowResourceByIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowResourceByIdRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowResourceByIdRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowResourceByIdRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def provider(self): """Gets the provider of this ShowResourceByIdRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py index 47274d86e..d29c03054 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_history_request.py @@ -18,10 +18,8 @@ class ShowResourceHistoryRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'resource_id': 'str', 'marker': 'str', 'limit': 'int', @@ -31,7 +29,6 @@ class ShowResourceHistoryRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'resource_id': 'resource_id', 'marker': 'marker', 'limit': 'limit', @@ -40,13 +37,11 @@ class ShowResourceHistoryRequest: 'chronological_order': 'chronological_order' } - def __init__(self, x_auth_token=None, resource_id=None, marker=None, limit=None, earlier_time=None, later_time=None, chronological_order=None): + def __init__(self, resource_id=None, marker=None, limit=None, earlier_time=None, later_time=None, chronological_order=None): """ShowResourceHistoryRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param resource_id: 资源ID :type resource_id: str :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 @@ -63,7 +58,6 @@ class ShowResourceHistoryRequest: - self._x_auth_token = None self._resource_id = None self._marker = None self._limit = None @@ -72,7 +66,6 @@ class ShowResourceHistoryRequest: self._chronological_order = None self.discriminator = None - self.x_auth_token = x_auth_token self.resource_id = resource_id if marker is not None: self.marker = marker @@ -85,28 +78,6 @@ class ShowResourceHistoryRequest: if chronological_order is not None: self.chronological_order = chronological_order - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowResourceHistoryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowResourceHistoryRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowResourceHistoryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowResourceHistoryRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def resource_id(self): """Gets the resource_id of this ShowResourceHistoryRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_relations_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_relations_request.py index 149d22db4..ef0348731 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_relations_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_resource_relations_request.py @@ -18,10 +18,8 @@ class ShowResourceRelationsRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'resource_id': 'str', 'direction': 'str', 'limit': 'int', @@ -29,20 +27,17 @@ class ShowResourceRelationsRequest: } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'resource_id': 'resource_id', 'direction': 'direction', 'limit': 'limit', 'marker': 'marker' } - def __init__(self, x_auth_token=None, resource_id=None, direction=None, limit=None, marker=None): + def __init__(self, resource_id=None, direction=None, limit=None, marker=None): """ShowResourceRelationsRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param resource_id: 资源ID :type resource_id: str :param direction: 资源关系的指向 @@ -55,14 +50,12 @@ class ShowResourceRelationsRequest: - self._x_auth_token = None self._resource_id = None self._direction = None self._limit = None self._marker = None self.discriminator = None - self.x_auth_token = x_auth_token self.resource_id = resource_id self.direction = direction if limit is not None: @@ -70,28 +63,6 @@ class ShowResourceRelationsRequest: if marker is not None: self.marker = marker - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowResourceRelationsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowResourceRelationsRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowResourceRelationsRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowResourceRelationsRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def resource_id(self): """Gets the resource_id of this ShowResourceRelationsRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_stored_query_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_stored_query_request.py index 9fbcb0d9f..b0784c8f3 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_stored_query_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_stored_query_request.py @@ -18,60 +18,31 @@ class ShowStoredQueryRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'query_id': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'query_id': 'query_id' } - def __init__(self, x_auth_token=None, query_id=None): + def __init__(self, query_id=None): """ShowStoredQueryRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param query_id: 查询ID :type query_id: str """ - self._x_auth_token = None self._query_id = None self.discriminator = None - self.x_auth_token = x_auth_token self.query_id = query_id - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowStoredQueryRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowStoredQueryRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def query_id(self): """Gets the query_id of this ShowStoredQueryRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_tracker_config_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_tracker_config_request.py index 144a65d24..fa7bbe1aa 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_tracker_config_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/show_tracker_config_request.py @@ -18,54 +18,23 @@ class ShowTrackerConfigRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str' } attribute_map = { - 'x_auth_token': 'X-Auth-Token' } - def __init__(self, x_auth_token=None): + def __init__(self): """ShowTrackerConfigRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str """ - - self._x_auth_token = None self.discriminator = None - self.x_auth_token = x_auth_token - - @property - def x_auth_token(self): - """Gets the x_auth_token of this ShowTrackerConfigRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this ShowTrackerConfigRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this ShowTrackerConfigRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this ShowTrackerConfigRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_assignment_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_assignment_request.py index a45a2b651..8ff6195c9 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_assignment_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_assignment_request.py @@ -18,27 +18,22 @@ class UpdatePolicyAssignmentRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'policy_assignment_id': 'str', 'body': 'PolicyAssignmentRequestBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'policy_assignment_id': 'policy_assignment_id', 'body': 'body' } - def __init__(self, x_auth_token=None, policy_assignment_id=None, body=None): + def __init__(self, policy_assignment_id=None, body=None): """UpdatePolicyAssignmentRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param policy_assignment_id: 规则ID :type policy_assignment_id: str :param body: Body of the UpdatePolicyAssignmentRequest @@ -47,38 +42,14 @@ class UpdatePolicyAssignmentRequest: - self._x_auth_token = None self._policy_assignment_id = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token self.policy_assignment_id = policy_assignment_id if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this UpdatePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this UpdatePolicyAssignmentRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this UpdatePolicyAssignmentRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this UpdatePolicyAssignmentRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def policy_assignment_id(self): """Gets the policy_assignment_id of this UpdatePolicyAssignmentRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_state_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_state_request.py index e2e7de72f..46f91525a 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_state_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_policy_state_request.py @@ -18,61 +18,32 @@ class UpdatePolicyStateRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'body': 'PolicyStateRequestBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'body': 'body' } - def __init__(self, x_auth_token=None, body=None): + def __init__(self, body=None): """UpdatePolicyStateRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param body: Body of the UpdatePolicyStateRequest :type body: :class:`huaweicloudsdkrms.v1.PolicyStateRequestBody` """ - self._x_auth_token = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this UpdatePolicyStateRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this UpdatePolicyStateRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this UpdatePolicyStateRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this UpdatePolicyStateRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def body(self): """Gets the body of this UpdatePolicyStateRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_stored_query_request.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_stored_query_request.py index 82eec2871..f573e526d 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_stored_query_request.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/update_stored_query_request.py @@ -18,27 +18,22 @@ class UpdateStoredQueryRequest: and the value is json key in definition. """ sensitive_list = [] - sensitive_list.append('x_auth_token') openapi_types = { - 'x_auth_token': 'str', 'query_id': 'str', 'body': 'StoredQueryRequestBody' } attribute_map = { - 'x_auth_token': 'X-Auth-Token', 'query_id': 'query_id', 'body': 'body' } - def __init__(self, x_auth_token=None, query_id=None, body=None): + def __init__(self, query_id=None, body=None): """UpdateStoredQueryRequest The model defined in huaweicloud sdk - :param x_auth_token: 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - :type x_auth_token: str :param query_id: 查询ID :type query_id: str :param body: Body of the UpdateStoredQueryRequest @@ -47,38 +42,14 @@ class UpdateStoredQueryRequest: - self._x_auth_token = None self._query_id = None self._body = None self.discriminator = None - self.x_auth_token = x_auth_token self.query_id = query_id if body is not None: self.body = body - @property - def x_auth_token(self): - """Gets the x_auth_token of this UpdateStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :return: The x_auth_token of this UpdateStoredQueryRequest. - :rtype: str - """ - return self._x_auth_token - - @x_auth_token.setter - def x_auth_token(self, x_auth_token): - """Sets the x_auth_token of this UpdateStoredQueryRequest. - - 用户Token。 获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。 - - :param x_auth_token: The x_auth_token of this UpdateStoredQueryRequest. - :type x_auth_token: str - """ - self._x_auth_token = x_auth_token - @property def query_id(self): """Gets the query_id of this UpdateStoredQueryRequest. diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py index d76d39e32..75468096f 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/region/rms_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class RmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("RMS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://rms.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://rms.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_async_client.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_async_client.py index 91019f942..eb01fd5dd 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_async_client.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_async_client.py @@ -57,7 +57,7 @@ class RmsAsyncClient(Client): return self.show_resource_history_with_http_info(request) def show_resource_history_with_http_info(self, request): - all_params = ['x_auth_token', 'resource_id', 'marker', 'limit', 'earlier_time', 'later_time', 'chronological_order'] + all_params = ['resource_id', 'marker', 'limit', 'earlier_time', 'later_time', 'chronological_order'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -84,8 +84,6 @@ class RmsAsyncClient(Client): query_params.append(('chronological_order', local_var_params['chronological_order'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -130,7 +128,7 @@ class RmsAsyncClient(Client): return self.create_policy_assignments_with_http_info(request) def create_policy_assignments_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_request_body'] + all_params = ['policy_assignment_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -145,8 +143,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -193,7 +189,7 @@ class RmsAsyncClient(Client): return self.delete_policy_assignment_with_http_info(request) def delete_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -210,8 +206,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -256,7 +250,7 @@ class RmsAsyncClient(Client): return self.disable_policy_assignment_with_http_info(request) def disable_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -273,8 +267,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -319,7 +311,7 @@ class RmsAsyncClient(Client): return self.enable_policy_assignment_with_http_info(request) def enable_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -336,8 +328,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -382,7 +372,7 @@ class RmsAsyncClient(Client): return self.list_built_in_policy_definitions_with_http_info(request) def list_built_in_policy_definitions_with_http_info(self, request): - all_params = ['x_auth_token', 'x_language'] + all_params = ['x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -397,8 +387,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -445,7 +433,7 @@ class RmsAsyncClient(Client): return self.list_policy_assignments_with_http_info(request) def list_policy_assignments_with_http_info(self, request): - all_params = ['x_auth_token'] + all_params = [] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -460,8 +448,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -506,7 +492,7 @@ class RmsAsyncClient(Client): return self.list_policy_states_by_assignment_id_with_http_info(request) def list_policy_states_by_assignment_id_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id', 'compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] + all_params = ['policy_assignment_id', 'compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -533,8 +519,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -579,7 +563,7 @@ class RmsAsyncClient(Client): return self.list_policy_states_by_domain_id_with_http_info(request) def list_policy_states_by_domain_id_with_http_info(self, request): - all_params = ['x_auth_token', 'compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] + all_params = ['compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -604,8 +588,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -650,7 +632,7 @@ class RmsAsyncClient(Client): return self.list_policy_states_by_resource_id_with_http_info(request) def list_policy_states_by_resource_id_with_http_info(self, request): - all_params = ['x_auth_token', 'resource_id', 'compliance_state', 'limit', 'marker'] + all_params = ['resource_id', 'compliance_state', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -673,8 +655,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -719,7 +699,7 @@ class RmsAsyncClient(Client): return self.run_evaluation_by_policy_assignment_id_with_http_info(request) def run_evaluation_by_policy_assignment_id_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -736,8 +716,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -782,7 +760,7 @@ class RmsAsyncClient(Client): return self.show_built_in_policy_definition_with_http_info(request) def show_built_in_policy_definition_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_definition_id', 'x_language'] + all_params = ['policy_definition_id', 'x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -799,8 +777,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -847,7 +823,7 @@ class RmsAsyncClient(Client): return self.show_evaluation_state_by_assignment_id_with_http_info(request) def show_evaluation_state_by_assignment_id_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -864,8 +840,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -910,7 +884,7 @@ class RmsAsyncClient(Client): return self.show_policy_assignment_with_http_info(request) def show_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -927,8 +901,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -973,7 +945,7 @@ class RmsAsyncClient(Client): return self.update_policy_assignment_with_http_info(request) def update_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id', 'policy_assignment_request_body'] + all_params = ['policy_assignment_id', 'policy_assignment_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -990,8 +962,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1038,7 +1008,7 @@ class RmsAsyncClient(Client): return self.update_policy_state_with_http_info(request) def update_policy_state_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_state_request_body'] + all_params = ['policy_state_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1053,8 +1023,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1101,7 +1069,7 @@ class RmsAsyncClient(Client): return self.create_stored_query_with_http_info(request) def create_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'stored_query_request_body'] + all_params = ['stored_query_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1116,8 +1084,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1164,7 +1130,7 @@ class RmsAsyncClient(Client): return self.delete_stored_query_with_http_info(request) def delete_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_id'] + all_params = ['query_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1181,8 +1147,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1227,7 +1191,7 @@ class RmsAsyncClient(Client): return self.list_schemas_with_http_info(request) def list_schemas_with_http_info(self, request): - all_params = ['x_auth_token', 'limit', 'marker'] + all_params = ['limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1246,8 +1210,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1292,7 +1254,7 @@ class RmsAsyncClient(Client): return self.list_stored_queries_with_http_info(request) def list_stored_queries_with_http_info(self, request): - all_params = ['x_auth_token', 'limit', 'marker', 'name'] + all_params = ['limit', 'marker', 'name'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1313,8 +1275,6 @@ class RmsAsyncClient(Client): query_params.append(('name', local_var_params['name'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1359,7 +1319,7 @@ class RmsAsyncClient(Client): return self.run_query_with_http_info(request) def run_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_run_request_body'] + all_params = ['query_run_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1374,8 +1334,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1422,7 +1380,7 @@ class RmsAsyncClient(Client): return self.show_stored_query_with_http_info(request) def show_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_id'] + all_params = ['query_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1439,8 +1397,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1485,7 +1441,7 @@ class RmsAsyncClient(Client): return self.update_stored_query_with_http_info(request) def update_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_id', 'stored_query_request_body'] + all_params = ['query_id', 'stored_query_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1502,8 +1458,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1550,7 +1504,7 @@ class RmsAsyncClient(Client): return self.list_regions_with_http_info(request) def list_regions_with_http_info(self, request): - all_params = ['x_auth_token', 'x_language'] + all_params = ['x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1565,8 +1519,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -1613,7 +1565,7 @@ class RmsAsyncClient(Client): return self.show_resource_relations_with_http_info(request) def show_resource_relations_with_http_info(self, request): - all_params = ['x_auth_token', 'resource_id', 'direction', 'limit', 'marker'] + all_params = ['resource_id', 'direction', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1636,8 +1588,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1682,7 +1632,7 @@ class RmsAsyncClient(Client): return self.list_all_resources_with_http_info(request) def list_all_resources_with_http_info(self, request): - all_params = ['x_auth_token', 'region_id', 'ep_id', 'type', 'limit', 'marker'] + all_params = ['region_id', 'ep_id', 'type', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1707,8 +1657,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1753,7 +1701,7 @@ class RmsAsyncClient(Client): return self.list_providers_with_http_info(request) def list_providers_with_http_info(self, request): - all_params = ['x_auth_token', 'offset', 'limit', 'x_language'] + all_params = ['offset', 'limit', 'x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1772,8 +1720,6 @@ class RmsAsyncClient(Client): query_params.append(('limit', local_var_params['limit'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -1820,7 +1766,7 @@ class RmsAsyncClient(Client): return self.list_resources_with_http_info(request) def list_resources_with_http_info(self, request): - all_params = ['x_auth_token', 'provider', 'type', 'region_id', 'ep_id', 'tag', 'limit', 'marker'] + all_params = ['provider', 'type', 'region_id', 'ep_id', 'tag', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1849,8 +1795,6 @@ class RmsAsyncClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1895,7 +1839,7 @@ class RmsAsyncClient(Client): return self.show_resource_by_id_with_http_info(request) def show_resource_by_id_with_http_info(self, request): - all_params = ['x_auth_token', 'provider', 'type', 'resource_id'] + all_params = ['provider', 'type', 'resource_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1916,8 +1860,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1962,7 +1904,7 @@ class RmsAsyncClient(Client): return self.create_tracker_config_with_http_info(request) def create_tracker_config_with_http_info(self, request): - all_params = ['x_auth_token', 'tracker_config_body'] + all_params = ['tracker_config_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1977,8 +1919,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -2025,7 +1965,7 @@ class RmsAsyncClient(Client): return self.delete_tracker_config_with_http_info(request) def delete_tracker_config_with_http_info(self, request): - all_params = ['x_auth_token'] + all_params = [] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -2040,8 +1980,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -2086,7 +2024,7 @@ class RmsAsyncClient(Client): return self.show_tracker_config_with_http_info(request) def show_tracker_config_with_http_info(self, request): - all_params = ['x_auth_token'] + all_params = [] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -2101,8 +2039,6 @@ class RmsAsyncClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} diff --git a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_client.py b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_client.py index e6306db23..fe5674766 100755 --- a/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_client.py +++ b/huaweicloud-sdk-rms/huaweicloudsdkrms/v1/rms_client.py @@ -56,7 +56,7 @@ class RmsClient(Client): return self.show_resource_history_with_http_info(request) def show_resource_history_with_http_info(self, request): - all_params = ['x_auth_token', 'resource_id', 'marker', 'limit', 'earlier_time', 'later_time', 'chronological_order'] + all_params = ['resource_id', 'marker', 'limit', 'earlier_time', 'later_time', 'chronological_order'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -83,8 +83,6 @@ class RmsClient(Client): query_params.append(('chronological_order', local_var_params['chronological_order'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -128,7 +126,7 @@ class RmsClient(Client): return self.create_policy_assignments_with_http_info(request) def create_policy_assignments_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_request_body'] + all_params = ['policy_assignment_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -143,8 +141,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -190,7 +186,7 @@ class RmsClient(Client): return self.delete_policy_assignment_with_http_info(request) def delete_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -207,8 +203,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -252,7 +246,7 @@ class RmsClient(Client): return self.disable_policy_assignment_with_http_info(request) def disable_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -269,8 +263,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -314,7 +306,7 @@ class RmsClient(Client): return self.enable_policy_assignment_with_http_info(request) def enable_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -331,8 +323,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -376,7 +366,7 @@ class RmsClient(Client): return self.list_built_in_policy_definitions_with_http_info(request) def list_built_in_policy_definitions_with_http_info(self, request): - all_params = ['x_auth_token', 'x_language'] + all_params = ['x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -391,8 +381,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -438,7 +426,7 @@ class RmsClient(Client): return self.list_policy_assignments_with_http_info(request) def list_policy_assignments_with_http_info(self, request): - all_params = ['x_auth_token'] + all_params = [] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -453,8 +441,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -498,7 +484,7 @@ class RmsClient(Client): return self.list_policy_states_by_assignment_id_with_http_info(request) def list_policy_states_by_assignment_id_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id', 'compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] + all_params = ['policy_assignment_id', 'compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -525,8 +511,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -570,7 +554,7 @@ class RmsClient(Client): return self.list_policy_states_by_domain_id_with_http_info(request) def list_policy_states_by_domain_id_with_http_info(self, request): - all_params = ['x_auth_token', 'compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] + all_params = ['compliance_state', 'resource_id', 'resource_name', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -595,8 +579,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -640,7 +622,7 @@ class RmsClient(Client): return self.list_policy_states_by_resource_id_with_http_info(request) def list_policy_states_by_resource_id_with_http_info(self, request): - all_params = ['x_auth_token', 'resource_id', 'compliance_state', 'limit', 'marker'] + all_params = ['resource_id', 'compliance_state', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -663,8 +645,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -708,7 +688,7 @@ class RmsClient(Client): return self.run_evaluation_by_policy_assignment_id_with_http_info(request) def run_evaluation_by_policy_assignment_id_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -725,8 +705,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -770,7 +748,7 @@ class RmsClient(Client): return self.show_built_in_policy_definition_with_http_info(request) def show_built_in_policy_definition_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_definition_id', 'x_language'] + all_params = ['policy_definition_id', 'x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -787,8 +765,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -834,7 +810,7 @@ class RmsClient(Client): return self.show_evaluation_state_by_assignment_id_with_http_info(request) def show_evaluation_state_by_assignment_id_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -851,8 +827,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -896,7 +870,7 @@ class RmsClient(Client): return self.show_policy_assignment_with_http_info(request) def show_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id'] + all_params = ['policy_assignment_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -913,8 +887,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -958,7 +930,7 @@ class RmsClient(Client): return self.update_policy_assignment_with_http_info(request) def update_policy_assignment_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_assignment_id', 'policy_assignment_request_body'] + all_params = ['policy_assignment_id', 'policy_assignment_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -975,8 +947,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1022,7 +992,7 @@ class RmsClient(Client): return self.update_policy_state_with_http_info(request) def update_policy_state_with_http_info(self, request): - all_params = ['x_auth_token', 'policy_state_request_body'] + all_params = ['policy_state_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1037,8 +1007,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1084,7 +1052,7 @@ class RmsClient(Client): return self.create_stored_query_with_http_info(request) def create_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'stored_query_request_body'] + all_params = ['stored_query_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1099,8 +1067,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1146,7 +1112,7 @@ class RmsClient(Client): return self.delete_stored_query_with_http_info(request) def delete_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_id'] + all_params = ['query_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1163,8 +1129,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1208,7 +1172,7 @@ class RmsClient(Client): return self.list_schemas_with_http_info(request) def list_schemas_with_http_info(self, request): - all_params = ['x_auth_token', 'limit', 'marker'] + all_params = ['limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1227,8 +1191,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1272,7 +1234,7 @@ class RmsClient(Client): return self.list_stored_queries_with_http_info(request) def list_stored_queries_with_http_info(self, request): - all_params = ['x_auth_token', 'limit', 'marker', 'name'] + all_params = ['limit', 'marker', 'name'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1293,8 +1255,6 @@ class RmsClient(Client): query_params.append(('name', local_var_params['name'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1338,7 +1298,7 @@ class RmsClient(Client): return self.run_query_with_http_info(request) def run_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_run_request_body'] + all_params = ['query_run_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1353,8 +1313,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1400,7 +1358,7 @@ class RmsClient(Client): return self.show_stored_query_with_http_info(request) def show_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_id'] + all_params = ['query_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1417,8 +1375,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1462,7 +1418,7 @@ class RmsClient(Client): return self.update_stored_query_with_http_info(request) def update_stored_query_with_http_info(self, request): - all_params = ['x_auth_token', 'query_id', 'stored_query_request_body'] + all_params = ['query_id', 'stored_query_request_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1479,8 +1435,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1526,7 +1480,7 @@ class RmsClient(Client): return self.list_regions_with_http_info(request) def list_regions_with_http_info(self, request): - all_params = ['x_auth_token', 'x_language'] + all_params = ['x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1541,8 +1495,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -1588,7 +1540,7 @@ class RmsClient(Client): return self.show_resource_relations_with_http_info(request) def show_resource_relations_with_http_info(self, request): - all_params = ['x_auth_token', 'resource_id', 'direction', 'limit', 'marker'] + all_params = ['resource_id', 'direction', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1611,8 +1563,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1656,7 +1606,7 @@ class RmsClient(Client): return self.list_all_resources_with_http_info(request) def list_all_resources_with_http_info(self, request): - all_params = ['x_auth_token', 'region_id', 'ep_id', 'type', 'limit', 'marker'] + all_params = ['region_id', 'ep_id', 'type', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1681,8 +1631,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1726,7 +1674,7 @@ class RmsClient(Client): return self.list_providers_with_http_info(request) def list_providers_with_http_info(self, request): - all_params = ['x_auth_token', 'offset', 'limit', 'x_language'] + all_params = ['offset', 'limit', 'x_language'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1745,8 +1693,6 @@ class RmsClient(Client): query_params.append(('limit', local_var_params['limit'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] if 'x_language' in local_var_params: header_params['X-Language'] = local_var_params['x_language'] @@ -1792,7 +1738,7 @@ class RmsClient(Client): return self.list_resources_with_http_info(request) def list_resources_with_http_info(self, request): - all_params = ['x_auth_token', 'provider', 'type', 'region_id', 'ep_id', 'tag', 'limit', 'marker'] + all_params = ['provider', 'type', 'region_id', 'ep_id', 'tag', 'limit', 'marker'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1821,8 +1767,6 @@ class RmsClient(Client): query_params.append(('marker', local_var_params['marker'])) header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1866,7 +1810,7 @@ class RmsClient(Client): return self.show_resource_by_id_with_http_info(request) def show_resource_by_id_with_http_info(self, request): - all_params = ['x_auth_token', 'provider', 'type', 'resource_id'] + all_params = ['provider', 'type', 'resource_id'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1887,8 +1831,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1932,7 +1874,7 @@ class RmsClient(Client): return self.create_tracker_config_with_http_info(request) def create_tracker_config_with_http_info(self, request): - all_params = ['x_auth_token', 'tracker_config_body'] + all_params = ['tracker_config_body'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1947,8 +1889,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -1994,7 +1934,7 @@ class RmsClient(Client): return self.delete_tracker_config_with_http_info(request) def delete_tracker_config_with_http_info(self, request): - all_params = ['x_auth_token'] + all_params = [] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -2009,8 +1949,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} @@ -2054,7 +1992,7 @@ class RmsClient(Client): return self.show_tracker_config_with_http_info(request) def show_tracker_config_with_http_info(self, request): - all_params = ['x_auth_token'] + all_params = [] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -2069,8 +2007,6 @@ class RmsClient(Client): query_params = [] header_params = {} - if 'x_auth_token' in local_var_params: - header_params['X-Auth-Token'] = local_var_params['x_auth_token'] form_params = {} diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 74e1c6987..cef435bfa 100755 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py index fab78345d..6c533743c 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/__init__.py @@ -6,6 +6,9 @@ from __future__ import absolute_import from huaweicloudsdkrocketmq.v2.rocketmq_client import RocketMQClient from huaweicloudsdkrocketmq.v2.rocketmq_async_client import RocketMQAsyncClient # import models into sdk package +from huaweicloudsdkrocketmq.v2.model.batch_create_or_delete_rocketmq_tag_request import BatchCreateOrDeleteRocketmqTagRequest +from huaweicloudsdkrocketmq.v2.model.batch_create_or_delete_rocketmq_tag_response import BatchCreateOrDeleteRocketmqTagResponse +from huaweicloudsdkrocketmq.v2.model.batch_create_or_delete_tag_req import BatchCreateOrDeleteTagReq from huaweicloudsdkrocketmq.v2.model.batch_delete_consumer_group_req import BatchDeleteConsumerGroupReq from huaweicloudsdkrocketmq.v2.model.batch_delete_consumer_group_resp import BatchDeleteConsumerGroupResp from huaweicloudsdkrocketmq.v2.model.batch_delete_instance_req import BatchDeleteInstanceReq @@ -17,11 +20,15 @@ from huaweicloudsdkrocketmq.v2.model.batch_delete_topic_resp import BatchDeleteT from huaweicloudsdkrocketmq.v2.model.batch_update_consumer_group_req import BatchUpdateConsumerGroupReq from huaweicloudsdkrocketmq.v2.model.batch_update_consumer_group_request import BatchUpdateConsumerGroupRequest from huaweicloudsdkrocketmq.v2.model.batch_update_consumer_group_response import BatchUpdateConsumerGroupResponse +from huaweicloudsdkrocketmq.v2.model.bss_param import BssParam from huaweicloudsdkrocketmq.v2.model.consumer_group import ConsumerGroup from huaweicloudsdkrocketmq.v2.model.create_consumer_group_or_batch_delete_consumer_group_req import CreateConsumerGroupOrBatchDeleteConsumerGroupReq from huaweicloudsdkrocketmq.v2.model.create_consumer_group_or_batch_delete_consumer_group_request import CreateConsumerGroupOrBatchDeleteConsumerGroupRequest from huaweicloudsdkrocketmq.v2.model.create_consumer_group_or_batch_delete_consumer_group_response import CreateConsumerGroupOrBatchDeleteConsumerGroupResponse from huaweicloudsdkrocketmq.v2.model.create_group_resp import CreateGroupResp +from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_req import CreateInstanceByEngineReq +from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_request import CreateInstanceByEngineRequest +from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_response import CreateInstanceByEngineResponse from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse @@ -84,6 +91,10 @@ from huaweicloudsdkrocketmq.v2.model.show_instance_resp import ShowInstanceResp from huaweicloudsdkrocketmq.v2.model.show_instance_response import ShowInstanceResponse from huaweicloudsdkrocketmq.v2.model.show_one_topic_request import ShowOneTopicRequest from huaweicloudsdkrocketmq.v2.model.show_one_topic_response import ShowOneTopicResponse +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_request import ShowRocketmqProjectTagsRequest +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_response import ShowRocketmqProjectTagsResponse +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_tags_request import ShowRocketmqTagsRequest +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_tags_response import ShowRocketmqTagsResponse from huaweicloudsdkrocketmq.v2.model.show_topic_status_request import ShowTopicStatusRequest from huaweicloudsdkrocketmq.v2.model.show_topic_status_resp_brokers import ShowTopicStatusRespBrokers from huaweicloudsdkrocketmq.v2.model.show_topic_status_resp_queues import ShowTopicStatusRespQueues @@ -91,6 +102,7 @@ from huaweicloudsdkrocketmq.v2.model.show_topic_status_response import ShowTopic from huaweicloudsdkrocketmq.v2.model.show_user_request import ShowUserRequest from huaweicloudsdkrocketmq.v2.model.show_user_response import ShowUserResponse from huaweicloudsdkrocketmq.v2.model.tag_entity import TagEntity +from huaweicloudsdkrocketmq.v2.model.tag_multy_value_entity import TagMultyValueEntity from huaweicloudsdkrocketmq.v2.model.topic import Topic from huaweicloudsdkrocketmq.v2.model.topic_brokers import TopicBrokers from huaweicloudsdkrocketmq.v2.model.update_consumer_group_request import UpdateConsumerGroupRequest diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py index 628e6abee..68c39c597 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/__init__.py @@ -3,6 +3,9 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdkrocketmq.v2.model.batch_create_or_delete_rocketmq_tag_request import BatchCreateOrDeleteRocketmqTagRequest +from huaweicloudsdkrocketmq.v2.model.batch_create_or_delete_rocketmq_tag_response import BatchCreateOrDeleteRocketmqTagResponse +from huaweicloudsdkrocketmq.v2.model.batch_create_or_delete_tag_req import BatchCreateOrDeleteTagReq from huaweicloudsdkrocketmq.v2.model.batch_delete_consumer_group_req import BatchDeleteConsumerGroupReq from huaweicloudsdkrocketmq.v2.model.batch_delete_consumer_group_resp import BatchDeleteConsumerGroupResp from huaweicloudsdkrocketmq.v2.model.batch_delete_instance_req import BatchDeleteInstanceReq @@ -14,11 +17,15 @@ from huaweicloudsdkrocketmq.v2.model.batch_delete_topic_resp import BatchDeleteT from huaweicloudsdkrocketmq.v2.model.batch_update_consumer_group_req import BatchUpdateConsumerGroupReq from huaweicloudsdkrocketmq.v2.model.batch_update_consumer_group_request import BatchUpdateConsumerGroupRequest from huaweicloudsdkrocketmq.v2.model.batch_update_consumer_group_response import BatchUpdateConsumerGroupResponse +from huaweicloudsdkrocketmq.v2.model.bss_param import BssParam from huaweicloudsdkrocketmq.v2.model.consumer_group import ConsumerGroup from huaweicloudsdkrocketmq.v2.model.create_consumer_group_or_batch_delete_consumer_group_req import CreateConsumerGroupOrBatchDeleteConsumerGroupReq from huaweicloudsdkrocketmq.v2.model.create_consumer_group_or_batch_delete_consumer_group_request import CreateConsumerGroupOrBatchDeleteConsumerGroupRequest from huaweicloudsdkrocketmq.v2.model.create_consumer_group_or_batch_delete_consumer_group_response import CreateConsumerGroupOrBatchDeleteConsumerGroupResponse from huaweicloudsdkrocketmq.v2.model.create_group_resp import CreateGroupResp +from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_req import CreateInstanceByEngineReq +from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_request import CreateInstanceByEngineRequest +from huaweicloudsdkrocketmq.v2.model.create_instance_by_engine_response import CreateInstanceByEngineResponse from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_req import CreatePostPaidInstanceReq from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_request import CreatePostPaidInstanceRequest from huaweicloudsdkrocketmq.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse @@ -81,6 +88,10 @@ from huaweicloudsdkrocketmq.v2.model.show_instance_resp import ShowInstanceResp from huaweicloudsdkrocketmq.v2.model.show_instance_response import ShowInstanceResponse from huaweicloudsdkrocketmq.v2.model.show_one_topic_request import ShowOneTopicRequest from huaweicloudsdkrocketmq.v2.model.show_one_topic_response import ShowOneTopicResponse +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_request import ShowRocketmqProjectTagsRequest +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_response import ShowRocketmqProjectTagsResponse +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_tags_request import ShowRocketmqTagsRequest +from huaweicloudsdkrocketmq.v2.model.show_rocketmq_tags_response import ShowRocketmqTagsResponse from huaweicloudsdkrocketmq.v2.model.show_topic_status_request import ShowTopicStatusRequest from huaweicloudsdkrocketmq.v2.model.show_topic_status_resp_brokers import ShowTopicStatusRespBrokers from huaweicloudsdkrocketmq.v2.model.show_topic_status_resp_queues import ShowTopicStatusRespQueues @@ -88,6 +99,7 @@ from huaweicloudsdkrocketmq.v2.model.show_topic_status_response import ShowTopic from huaweicloudsdkrocketmq.v2.model.show_user_request import ShowUserRequest from huaweicloudsdkrocketmq.v2.model.show_user_response import ShowUserResponse from huaweicloudsdkrocketmq.v2.model.tag_entity import TagEntity +from huaweicloudsdkrocketmq.v2.model.tag_multy_value_entity import TagMultyValueEntity from huaweicloudsdkrocketmq.v2.model.topic import Topic from huaweicloudsdkrocketmq.v2.model.topic_brokers import TopicBrokers from huaweicloudsdkrocketmq.v2.model.update_consumer_group_request import UpdateConsumerGroupRequest diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py new file mode 100755 index 000000000..a30929e55 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchCreateOrDeleteRocketmqTagRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'body': 'BatchCreateOrDeleteTagReq' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """BatchCreateOrDeleteRocketmqTagRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the BatchCreateOrDeleteRocketmqTagRequest + :type body: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteTagReq` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this BatchCreateOrDeleteRocketmqTagRequest. + + 实例ID。 + + :return: The instance_id of this BatchCreateOrDeleteRocketmqTagRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchCreateOrDeleteRocketmqTagRequest. + + 实例ID。 + + :param instance_id: The instance_id of this BatchCreateOrDeleteRocketmqTagRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this BatchCreateOrDeleteRocketmqTagRequest. + + :return: The body of this BatchCreateOrDeleteRocketmqTagRequest. + :rtype: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteTagReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchCreateOrDeleteRocketmqTagRequest. + + :param body: The body of this BatchCreateOrDeleteRocketmqTagRequest. + :type body: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteTagReq` + """ + 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, BatchCreateOrDeleteRocketmqTagRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py new file mode 100755 index 000000000..5d865ac2d --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchCreateOrDeleteRocketmqTagResponse(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): + """BatchCreateOrDeleteRocketmqTagResponse + + The model defined in huaweicloud sdk + + """ + + super(BatchCreateOrDeleteRocketmqTagResponse, 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, BatchCreateOrDeleteRocketmqTagResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_req.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py similarity index 59% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_req.py rename to huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py index 8caa01c69..84aae1046 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_modify_picture_req.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunModifyPictureReq: +class BatchCreateOrDeleteTagReq: """ Attributes: @@ -20,76 +20,78 @@ class RunModifyPictureReq: sensitive_list = [] openapi_types = { - 'path': 'str', - 'tags': 'object' + 'action': 'str', + 'tags': 'list[TagEntity]' } attribute_map = { - 'path': 'path', + 'action': 'action', 'tags': 'tags' } - def __init__(self, path=None, tags=None): - """RunModifyPictureReq + def __init__(self, action=None, tags=None): + """BatchCreateOrDeleteTagReq The model defined in huaweicloud sdk - :param path: 图片URL路径,作为图片库中索引图片的ID。 - :type path: str - :param tags: 自定义标签,格式为key:value对,其中: - 标签名(key值)须存在于实例中; - 标签内容(value值)为自定义标签值。 - :type tags: object + :param action: 操作标识(仅支持小写): - create(创建) - delete(删除) + :type action: str + :param tags: 标签列表。 + :type tags: list[:class:`huaweicloudsdkrocketmq.v2.TagEntity`] """ - self._path = None + self._action = None self._tags = None self.discriminator = None - self.path = path - self.tags = tags + if action is not None: + self.action = action + if tags is not None: + self.tags = tags @property - def path(self): - """Gets the path of this RunModifyPictureReq. + def action(self): + """Gets the action of this BatchCreateOrDeleteTagReq. - 图片URL路径,作为图片库中索引图片的ID。 + 操作标识(仅支持小写): - create(创建) - delete(删除) - :return: The path of this RunModifyPictureReq. + :return: The action of this BatchCreateOrDeleteTagReq. :rtype: str """ - return self._path + return self._action - @path.setter - def path(self, path): - """Sets the path of this RunModifyPictureReq. + @action.setter + def action(self, action): + """Sets the action of this BatchCreateOrDeleteTagReq. - 图片URL路径,作为图片库中索引图片的ID。 + 操作标识(仅支持小写): - create(创建) - delete(删除) - :param path: The path of this RunModifyPictureReq. - :type path: str + :param action: The action of this BatchCreateOrDeleteTagReq. + :type action: str """ - self._path = path + self._action = action @property def tags(self): - """Gets the tags of this RunModifyPictureReq. + """Gets the tags of this BatchCreateOrDeleteTagReq. - 自定义标签,格式为key:value对,其中: - 标签名(key值)须存在于实例中; - 标签内容(value值)为自定义标签值。 + 标签列表。 - :return: The tags of this RunModifyPictureReq. - :rtype: object + :return: The tags of this BatchCreateOrDeleteTagReq. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.TagEntity`] """ return self._tags @tags.setter def tags(self, tags): - """Sets the tags of this RunModifyPictureReq. + """Sets the tags of this BatchCreateOrDeleteTagReq. - 自定义标签,格式为key:value对,其中: - 标签名(key值)须存在于实例中; - 标签内容(value值)为自定义标签值。 + 标签列表。 - :param tags: The tags of this RunModifyPictureReq. - :type tags: object + :param tags: The tags of this BatchCreateOrDeleteTagReq. + :type tags: list[:class:`huaweicloudsdkrocketmq.v2.TagEntity`] """ self._tags = tags @@ -135,7 +137,7 @@ class RunModifyPictureReq: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunModifyPictureReq): + if not isinstance(other, BatchCreateOrDeleteTagReq): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/bss_param.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/bss_param.py new file mode 100755 index 000000000..5c818b832 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/bss_param.py @@ -0,0 +1,234 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BssParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'is_auto_renew': 'bool', + 'charging_mode': 'str', + 'is_auto_pay': 'bool', + 'period_type': 'str', + 'period_num': 'int' + } + + attribute_map = { + 'is_auto_renew': 'is_auto_renew', + 'charging_mode': 'charging_mode', + 'is_auto_pay': 'is_auto_pay', + 'period_type': 'period_type', + 'period_num': 'period_num' + } + + def __init__(self, is_auto_renew=None, charging_mode=None, is_auto_pay=None, period_type=None, period_num=None): + """BssParam + + The model defined in huaweicloud sdk + + :param is_auto_renew: 是否自动续订。 取值范围: - true: 自动续订。 - false: 不自动续订。 默认不自动续订。 + :type is_auto_renew: bool + :param charging_mode: 计费模式。 功能说明:付费方式。 取值范围: - prePaid:预付费,即包年包月; - postPaid:后付费,即按需付费; 默认为postPaid。 + :type charging_mode: str + :param is_auto_pay: 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。 取值范围: - true:是(自动支付) - false:否(需要客户手动支付) 默认为手动支付。 + :type is_auto_pay: bool + :param period_type: 订购周期类型。 取值范围: - month:月 - year:年 **chargingMode为prePaid时生效且为必选值。** + :type period_type: str + :param period_num: 订购周期数。 取值范围: - periodType=month(周期类型为月)时,取值为[1,9]; - periodType=year(周期类型为年)时,取值为[1,3]; **chargingMode为prePaid时生效且为必选值。** + :type period_num: int + """ + + + + self._is_auto_renew = None + self._charging_mode = None + self._is_auto_pay = None + self._period_type = None + self._period_num = None + self.discriminator = None + + if is_auto_renew is not None: + self.is_auto_renew = is_auto_renew + if charging_mode is not None: + self.charging_mode = charging_mode + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + if period_type is not None: + self.period_type = period_type + if period_num is not None: + self.period_num = period_num + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this BssParam. + + 是否自动续订。 取值范围: - true: 自动续订。 - false: 不自动续订。 默认不自动续订。 + + :return: The is_auto_renew of this BssParam. + :rtype: bool + """ + return self._is_auto_renew + + @is_auto_renew.setter + def is_auto_renew(self, is_auto_renew): + """Sets the is_auto_renew of this BssParam. + + 是否自动续订。 取值范围: - true: 自动续订。 - false: 不自动续订。 默认不自动续订。 + + :param is_auto_renew: The is_auto_renew of this BssParam. + :type is_auto_renew: bool + """ + self._is_auto_renew = is_auto_renew + + @property + def charging_mode(self): + """Gets the charging_mode of this BssParam. + + 计费模式。 功能说明:付费方式。 取值范围: - prePaid:预付费,即包年包月; - postPaid:后付费,即按需付费; 默认为postPaid。 + + :return: The charging_mode of this BssParam. + :rtype: str + """ + return self._charging_mode + + @charging_mode.setter + def charging_mode(self, charging_mode): + """Sets the charging_mode of this BssParam. + + 计费模式。 功能说明:付费方式。 取值范围: - prePaid:预付费,即包年包月; - postPaid:后付费,即按需付费; 默认为postPaid。 + + :param charging_mode: The charging_mode of this BssParam. + :type charging_mode: str + """ + self._charging_mode = charging_mode + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this BssParam. + + 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。 取值范围: - true:是(自动支付) - false:否(需要客户手动支付) 默认为手动支付。 + + :return: The is_auto_pay of this BssParam. + :rtype: bool + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this BssParam. + + 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。 取值范围: - true:是(自动支付) - false:否(需要客户手动支付) 默认为手动支付。 + + :param is_auto_pay: The is_auto_pay of this BssParam. + :type is_auto_pay: bool + """ + self._is_auto_pay = is_auto_pay + + @property + def period_type(self): + """Gets the period_type of this BssParam. + + 订购周期类型。 取值范围: - month:月 - year:年 **chargingMode为prePaid时生效且为必选值。** + + :return: The period_type of this BssParam. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this BssParam. + + 订购周期类型。 取值范围: - month:月 - year:年 **chargingMode为prePaid时生效且为必选值。** + + :param period_type: The period_type of this BssParam. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this BssParam. + + 订购周期数。 取值范围: - periodType=month(周期类型为月)时,取值为[1,9]; - periodType=year(周期类型为年)时,取值为[1,3]; **chargingMode为prePaid时生效且为必选值。** + + :return: The period_num of this BssParam. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this BssParam. + + 订购周期数。 取值范围: - periodType=month(周期类型为月)时,取值为[1,9]; - periodType=year(周期类型为年)时,取值为[1,3]; **chargingMode为prePaid时生效且为必选值。** + + :param period_num: The period_num of this BssParam. + :type period_num: int + """ + self._period_num = period_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BssParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py new file mode 100755 index 000000000..29b6285ee --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py @@ -0,0 +1,625 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateInstanceByEngineReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'description': 'str', + 'engine': 'str', + 'engine_version': 'str', + 'storage_space': 'int', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str', + 'available_zones': 'list[str]', + 'product_id': 'str', + 'ssl_enable': 'bool', + 'storage_spec_code': 'str', + 'enterprise_project_id': 'str', + 'enable_acl': 'bool', + 'ipv6_enable': 'bool', + 'enable_publicip': 'bool', + 'publicip_id': 'str', + 'broker_num': 'int', + 'bss_param': 'BssParam' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'engine': 'engine', + 'engine_version': 'engine_version', + 'storage_space': 'storage_space', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'security_group_id': 'security_group_id', + 'available_zones': 'available_zones', + 'product_id': 'product_id', + 'ssl_enable': 'ssl_enable', + 'storage_spec_code': 'storage_spec_code', + 'enterprise_project_id': 'enterprise_project_id', + 'enable_acl': 'enable_acl', + 'ipv6_enable': 'ipv6_enable', + 'enable_publicip': 'enable_publicip', + 'publicip_id': 'publicip_id', + 'broker_num': 'broker_num', + 'bss_param': 'bss_param' + } + + def __init__(self, name=None, description=None, engine=None, engine_version=None, storage_space=None, vpc_id=None, subnet_id=None, security_group_id=None, available_zones=None, product_id=None, ssl_enable=None, storage_spec_code=None, enterprise_project_id=None, enable_acl=None, ipv6_enable=None, enable_publicip=None, publicip_id=None, broker_num=None, bss_param=None): + """CreateInstanceByEngineReq + + The model defined in huaweicloud sdk + + :param name: 实例名称。 由英文字符开头,只能由英文字母、数字、中划线、下划线组成,长度为4~64的字符。 + :type name: str + :param description: 实例的描述信息。 长度不超过1024的字符串。 > \\与\"在json报文中属于特殊字符,如果参数值中需要显示\\或者\"字符,请在字符前增加转义字符\\,比如\\\\或者\\\"。 + :type description: str + :param engine: 消息引擎。取值填写为:reliability。 + :type engine: str + :param engine_version: 消息引擎的版本。取值填写为:4.8.0。 + :type engine_version: str + :param storage_space: 存储空间。 + :type storage_space: int + :param vpc_id: 虚拟私有云ID。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 + :type vpc_id: str + :param subnet_id: 子网信息。 获取方法如下: - 登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 + :type subnet_id: str + :param security_group_id: 指定实例所属的安全组。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 + :type security_group_id: str + :param available_zones: 创建节点到指定且有资源的可用区ID。该参数不能为空数组或者数组的值为空, 请注意查看该可用区是否有资源。 创建RocketMQ实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。 + :type available_zones: list[str] + :param product_id: RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000 + :type product_id: str + :param ssl_enable: 是否打开SSL加密访问。 - true:打开SSL加密访问。 - false:不打开SSL加密访问。 + :type ssl_enable: bool + :param storage_spec_code: 存储IO规格。 - dms.physical.storage.high.v2: 高IO类型磁盘 - dms.physical.storage.ultra.v2: 超高IO类型磁盘 + :type storage_spec_code: str + :param enterprise_project_id: 企业项目ID。若为企业项目帐号,该参数必填。 + :type enterprise_project_id: str + :param enable_acl: 是否开启访问控制列表。 + :type enable_acl: bool + :param ipv6_enable: 是否支持IPV6。 - true: 支持 - false:不支持 + :type ipv6_enable: bool + :param enable_publicip: 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启 + :type enable_publicip: bool + :param publicip_id: 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。 + :type publicip_id: str + :param broker_num: 代理个数 + :type broker_num: int + :param bss_param: + :type bss_param: :class:`huaweicloudsdkrocketmq.v2.BssParam` + """ + + + + self._name = None + self._description = None + self._engine = None + self._engine_version = None + self._storage_space = None + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self._available_zones = None + self._product_id = None + self._ssl_enable = None + self._storage_spec_code = None + self._enterprise_project_id = None + self._enable_acl = None + self._ipv6_enable = None + self._enable_publicip = None + self._publicip_id = None + self._broker_num = None + self._bss_param = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.engine = engine + self.engine_version = engine_version + self.storage_space = storage_space + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.security_group_id = security_group_id + self.available_zones = available_zones + self.product_id = product_id + if ssl_enable is not None: + self.ssl_enable = ssl_enable + self.storage_spec_code = storage_spec_code + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if enable_acl is not None: + self.enable_acl = enable_acl + if ipv6_enable is not None: + self.ipv6_enable = ipv6_enable + if enable_publicip is not None: + self.enable_publicip = enable_publicip + if publicip_id is not None: + self.publicip_id = publicip_id + self.broker_num = broker_num + if bss_param is not None: + self.bss_param = bss_param + + @property + def name(self): + """Gets the name of this CreateInstanceByEngineReq. + + 实例名称。 由英文字符开头,只能由英文字母、数字、中划线、下划线组成,长度为4~64的字符。 + + :return: The name of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateInstanceByEngineReq. + + 实例名称。 由英文字符开头,只能由英文字母、数字、中划线、下划线组成,长度为4~64的字符。 + + :param name: The name of this CreateInstanceByEngineReq. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateInstanceByEngineReq. + + 实例的描述信息。 长度不超过1024的字符串。 > \\与\"在json报文中属于特殊字符,如果参数值中需要显示\\或者\"字符,请在字符前增加转义字符\\,比如\\\\或者\\\"。 + + :return: The description of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateInstanceByEngineReq. + + 实例的描述信息。 长度不超过1024的字符串。 > \\与\"在json报文中属于特殊字符,如果参数值中需要显示\\或者\"字符,请在字符前增加转义字符\\,比如\\\\或者\\\"。 + + :param description: The description of this CreateInstanceByEngineReq. + :type description: str + """ + self._description = description + + @property + def engine(self): + """Gets the engine of this CreateInstanceByEngineReq. + + 消息引擎。取值填写为:reliability。 + + :return: The engine of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this CreateInstanceByEngineReq. + + 消息引擎。取值填写为:reliability。 + + :param engine: The engine of this CreateInstanceByEngineReq. + :type engine: str + """ + self._engine = engine + + @property + def engine_version(self): + """Gets the engine_version of this CreateInstanceByEngineReq. + + 消息引擎的版本。取值填写为:4.8.0。 + + :return: The engine_version of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._engine_version + + @engine_version.setter + def engine_version(self, engine_version): + """Sets the engine_version of this CreateInstanceByEngineReq. + + 消息引擎的版本。取值填写为:4.8.0。 + + :param engine_version: The engine_version of this CreateInstanceByEngineReq. + :type engine_version: str + """ + self._engine_version = engine_version + + @property + def storage_space(self): + """Gets the storage_space of this CreateInstanceByEngineReq. + + 存储空间。 + + :return: The storage_space of this CreateInstanceByEngineReq. + :rtype: int + """ + return self._storage_space + + @storage_space.setter + def storage_space(self, storage_space): + """Sets the storage_space of this CreateInstanceByEngineReq. + + 存储空间。 + + :param storage_space: The storage_space of this CreateInstanceByEngineReq. + :type storage_space: int + """ + self._storage_space = storage_space + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateInstanceByEngineReq. + + 虚拟私有云ID。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 + + :return: The vpc_id of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateInstanceByEngineReq. + + 虚拟私有云ID。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 + + :param vpc_id: The vpc_id of this CreateInstanceByEngineReq. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this CreateInstanceByEngineReq. + + 子网信息。 获取方法如下: - 登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 + + :return: The subnet_id of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this CreateInstanceByEngineReq. + + 子网信息。 获取方法如下: - 登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 + + :param subnet_id: The subnet_id of this CreateInstanceByEngineReq. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this CreateInstanceByEngineReq. + + 指定实例所属的安全组。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 + + :return: The security_group_id of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._security_group_id + + @security_group_id.setter + def security_group_id(self, security_group_id): + """Sets the security_group_id of this CreateInstanceByEngineReq. + + 指定实例所属的安全组。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 + + :param security_group_id: The security_group_id of this CreateInstanceByEngineReq. + :type security_group_id: str + """ + self._security_group_id = security_group_id + + @property + def available_zones(self): + """Gets the available_zones of this CreateInstanceByEngineReq. + + 创建节点到指定且有资源的可用区ID。该参数不能为空数组或者数组的值为空, 请注意查看该可用区是否有资源。 创建RocketMQ实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。 + + :return: The available_zones of this CreateInstanceByEngineReq. + :rtype: list[str] + """ + return self._available_zones + + @available_zones.setter + def available_zones(self, available_zones): + """Sets the available_zones of this CreateInstanceByEngineReq. + + 创建节点到指定且有资源的可用区ID。该参数不能为空数组或者数组的值为空, 请注意查看该可用区是否有资源。 创建RocketMQ实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。 + + :param available_zones: The available_zones of this CreateInstanceByEngineReq. + :type available_zones: list[str] + """ + self._available_zones = available_zones + + @property + def product_id(self): + """Gets the product_id of this CreateInstanceByEngineReq. + + RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000 + + :return: The product_id of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._product_id + + @product_id.setter + def product_id(self, product_id): + """Sets the product_id of this CreateInstanceByEngineReq. + + RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000 + + :param product_id: The product_id of this CreateInstanceByEngineReq. + :type product_id: str + """ + self._product_id = product_id + + @property + def ssl_enable(self): + """Gets the ssl_enable of this CreateInstanceByEngineReq. + + 是否打开SSL加密访问。 - true:打开SSL加密访问。 - false:不打开SSL加密访问。 + + :return: The ssl_enable of this CreateInstanceByEngineReq. + :rtype: bool + """ + return self._ssl_enable + + @ssl_enable.setter + def ssl_enable(self, ssl_enable): + """Sets the ssl_enable of this CreateInstanceByEngineReq. + + 是否打开SSL加密访问。 - true:打开SSL加密访问。 - false:不打开SSL加密访问。 + + :param ssl_enable: The ssl_enable of this CreateInstanceByEngineReq. + :type ssl_enable: bool + """ + self._ssl_enable = ssl_enable + + @property + def storage_spec_code(self): + """Gets the storage_spec_code of this CreateInstanceByEngineReq. + + 存储IO规格。 - dms.physical.storage.high.v2: 高IO类型磁盘 - dms.physical.storage.ultra.v2: 超高IO类型磁盘 + + :return: The storage_spec_code of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._storage_spec_code + + @storage_spec_code.setter + def storage_spec_code(self, storage_spec_code): + """Sets the storage_spec_code of this CreateInstanceByEngineReq. + + 存储IO规格。 - dms.physical.storage.high.v2: 高IO类型磁盘 - dms.physical.storage.ultra.v2: 超高IO类型磁盘 + + :param storage_spec_code: The storage_spec_code of this CreateInstanceByEngineReq. + :type storage_spec_code: str + """ + self._storage_spec_code = storage_spec_code + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateInstanceByEngineReq. + + 企业项目ID。若为企业项目帐号,该参数必填。 + + :return: The enterprise_project_id of this CreateInstanceByEngineReq. + :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 CreateInstanceByEngineReq. + + 企业项目ID。若为企业项目帐号,该参数必填。 + + :param enterprise_project_id: The enterprise_project_id of this CreateInstanceByEngineReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def enable_acl(self): + """Gets the enable_acl of this CreateInstanceByEngineReq. + + 是否开启访问控制列表。 + + :return: The enable_acl of this CreateInstanceByEngineReq. + :rtype: bool + """ + return self._enable_acl + + @enable_acl.setter + def enable_acl(self, enable_acl): + """Sets the enable_acl of this CreateInstanceByEngineReq. + + 是否开启访问控制列表。 + + :param enable_acl: The enable_acl of this CreateInstanceByEngineReq. + :type enable_acl: bool + """ + self._enable_acl = enable_acl + + @property + def ipv6_enable(self): + """Gets the ipv6_enable of this CreateInstanceByEngineReq. + + 是否支持IPV6。 - true: 支持 - false:不支持 + + :return: The ipv6_enable of this CreateInstanceByEngineReq. + :rtype: bool + """ + return self._ipv6_enable + + @ipv6_enable.setter + def ipv6_enable(self, ipv6_enable): + """Sets the ipv6_enable of this CreateInstanceByEngineReq. + + 是否支持IPV6。 - true: 支持 - false:不支持 + + :param ipv6_enable: The ipv6_enable of this CreateInstanceByEngineReq. + :type ipv6_enable: bool + """ + self._ipv6_enable = ipv6_enable + + @property + def enable_publicip(self): + """Gets the enable_publicip of this CreateInstanceByEngineReq. + + 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启 + + :return: The enable_publicip of this CreateInstanceByEngineReq. + :rtype: bool + """ + return self._enable_publicip + + @enable_publicip.setter + def enable_publicip(self, enable_publicip): + """Sets the enable_publicip of this CreateInstanceByEngineReq. + + 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启 + + :param enable_publicip: The enable_publicip of this CreateInstanceByEngineReq. + :type enable_publicip: bool + """ + self._enable_publicip = enable_publicip + + @property + def publicip_id(self): + """Gets the publicip_id of this CreateInstanceByEngineReq. + + 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。 + + :return: The publicip_id of this CreateInstanceByEngineReq. + :rtype: str + """ + return self._publicip_id + + @publicip_id.setter + def publicip_id(self, publicip_id): + """Sets the publicip_id of this CreateInstanceByEngineReq. + + 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。 + + :param publicip_id: The publicip_id of this CreateInstanceByEngineReq. + :type publicip_id: str + """ + self._publicip_id = publicip_id + + @property + def broker_num(self): + """Gets the broker_num of this CreateInstanceByEngineReq. + + 代理个数 + + :return: The broker_num of this CreateInstanceByEngineReq. + :rtype: int + """ + return self._broker_num + + @broker_num.setter + def broker_num(self, broker_num): + """Sets the broker_num of this CreateInstanceByEngineReq. + + 代理个数 + + :param broker_num: The broker_num of this CreateInstanceByEngineReq. + :type broker_num: int + """ + self._broker_num = broker_num + + @property + def bss_param(self): + """Gets the bss_param of this CreateInstanceByEngineReq. + + :return: The bss_param of this CreateInstanceByEngineReq. + :rtype: :class:`huaweicloudsdkrocketmq.v2.BssParam` + """ + return self._bss_param + + @bss_param.setter + def bss_param(self, bss_param): + """Sets the bss_param of this CreateInstanceByEngineReq. + + :param bss_param: The bss_param of this CreateInstanceByEngineReq. + :type bss_param: :class:`huaweicloudsdkrocketmq.v2.BssParam` + """ + self._bss_param = bss_param + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateInstanceByEngineReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_request.py similarity index 62% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_request.py rename to huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_request.py index 031f4bb21..7adce5cb1 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_check_picture_request.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunCheckPictureRequest: +class CreateInstanceByEngineRequest: """ Attributes: @@ -20,73 +20,73 @@ class RunCheckPictureRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str', - 'body': 'DeletePictureReq' + 'engine': 'str', + 'body': 'CreateInstanceByEngineReq' } attribute_map = { - 'instance_name': 'instance_name', + 'engine': 'engine', 'body': 'body' } - def __init__(self, instance_name=None, body=None): - """RunCheckPictureRequest + def __init__(self, engine=None, body=None): + """CreateInstanceByEngineRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str - :param body: Body of the RunCheckPictureRequest - :type body: :class:`huaweicloudsdkimagesearch.v1.DeletePictureReq` + :param engine: 消息引擎。 + :type engine: str + :param body: Body of the CreateInstanceByEngineRequest + :type body: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineReq` """ - self._instance_name = None + self._engine = None self._body = None self.discriminator = None - self.instance_name = instance_name + self.engine = engine if body is not None: self.body = body @property - def instance_name(self): - """Gets the instance_name of this RunCheckPictureRequest. + def engine(self): + """Gets the engine of this CreateInstanceByEngineRequest. - 实例名称。 + 消息引擎。 - :return: The instance_name of this RunCheckPictureRequest. + :return: The engine of this CreateInstanceByEngineRequest. :rtype: str """ - return self._instance_name + return self._engine - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunCheckPictureRequest. + @engine.setter + def engine(self, engine): + """Sets the engine of this CreateInstanceByEngineRequest. - 实例名称。 + 消息引擎。 - :param instance_name: The instance_name of this RunCheckPictureRequest. - :type instance_name: str + :param engine: The engine of this CreateInstanceByEngineRequest. + :type engine: str """ - self._instance_name = instance_name + self._engine = engine @property def body(self): - """Gets the body of this RunCheckPictureRequest. + """Gets the body of this CreateInstanceByEngineRequest. - :return: The body of this RunCheckPictureRequest. - :rtype: :class:`huaweicloudsdkimagesearch.v1.DeletePictureReq` + :return: The body of this CreateInstanceByEngineRequest. + :rtype: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineReq` """ return self._body @body.setter def body(self, body): - """Sets the body of this RunCheckPictureRequest. + """Sets the body of this CreateInstanceByEngineRequest. - :param body: The body of this RunCheckPictureRequest. - :type body: :class:`huaweicloudsdkimagesearch.v1.DeletePictureReq` + :param body: The body of this CreateInstanceByEngineRequest. + :type body: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineReq` """ self._body = body @@ -132,7 +132,7 @@ class RunCheckPictureRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunCheckPictureRequest): + if not isinstance(other, CreateInstanceByEngineRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_response.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_response.py similarity index 68% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_response.py rename to huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_response.py index 20ffa1709..866fc1642 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_picture_response.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_response.py @@ -8,7 +8,7 @@ from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunDeletePictureResponse(SdkResponse): +class CreateInstanceByEngineResponse(SdkResponse): """ Attributes: @@ -20,51 +20,51 @@ class RunDeletePictureResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'str' + 'instance_id': 'str' } attribute_map = { - 'result': 'result' + 'instance_id': 'instance_id' } - def __init__(self, result=None): - """RunDeletePictureResponse + def __init__(self, instance_id=None): + """CreateInstanceByEngineResponse The model defined in huaweicloud sdk - :param result: 调用成功时表示调用结果。 调用失败时无此字段。 - :type result: str + :param instance_id: 实例ID。 + :type instance_id: str """ - super(RunDeletePictureResponse, self).__init__() + super(CreateInstanceByEngineResponse, self).__init__() - self._result = None + self._instance_id = None self.discriminator = None - if result is not None: - self.result = result + if instance_id is not None: + self.instance_id = instance_id @property - def result(self): - """Gets the result of this RunDeletePictureResponse. + def instance_id(self): + """Gets the instance_id of this CreateInstanceByEngineResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 实例ID。 - :return: The result of this RunDeletePictureResponse. + :return: The instance_id of this CreateInstanceByEngineResponse. :rtype: str """ - return self._result + return self._instance_id - @result.setter - def result(self, result): - """Sets the result of this RunDeletePictureResponse. + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateInstanceByEngineResponse. - 调用成功时表示调用结果。 调用失败时无此字段。 + 实例ID。 - :param result: The result of this RunDeletePictureResponse. - :type result: str + :param instance_id: The instance_id of this CreateInstanceByEngineResponse. + :type instance_id: str """ - self._result = result + self._instance_id = instance_id def to_dict(self): """Returns the model properties as a dict""" @@ -108,7 +108,7 @@ class RunDeletePictureResponse(SdkResponse): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunDeletePictureResponse): + if not isinstance(other, CreateInstanceByEngineResponse): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py index 3bfc60f9b..23ac22636 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py @@ -21,15 +21,19 @@ class ListConsumerGroupOfTopicRequest: openapi_types = { 'instance_id': 'str', - 'topic': 'str' + 'topic': 'str', + 'limit': 'int', + 'offset': 'int' } attribute_map = { 'instance_id': 'instance_id', - 'topic': 'topic' + 'topic': 'topic', + 'limit': 'limit', + 'offset': 'offset' } - def __init__(self, instance_id=None, topic=None): + def __init__(self, instance_id=None, topic=None, limit=None, offset=None): """ListConsumerGroupOfTopicRequest The model defined in huaweicloud sdk @@ -38,16 +42,26 @@ class ListConsumerGroupOfTopicRequest: :type instance_id: str :param topic: 主题名称。 :type topic: str + :param limit: 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + :type limit: int + :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0。 + :type offset: int """ self._instance_id = None self._topic = None + self._limit = None + self._offset = None self.discriminator = None self.instance_id = instance_id self.topic = topic + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset @property def instance_id(self): @@ -93,6 +107,50 @@ class ListConsumerGroupOfTopicRequest: """ self._topic = topic + @property + def limit(self): + """Gets the limit of this ListConsumerGroupOfTopicRequest. + + 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + + :return: The limit of this ListConsumerGroupOfTopicRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListConsumerGroupOfTopicRequest. + + 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + + :param limit: The limit of this ListConsumerGroupOfTopicRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListConsumerGroupOfTopicRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :return: The offset of this ListConsumerGroupOfTopicRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListConsumerGroupOfTopicRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :param offset: The offset of this ListConsumerGroupOfTopicRequest. + :type offset: int + """ + self._offset = offset + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_instances_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_instances_request.py index be7cbb9f2..808b36bfb 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_instances_request.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/list_instances_request.py @@ -26,7 +26,9 @@ class ListInstancesRequest: 'status': 'str', 'include_failure': 'str', 'exact_match_name': 'str', - 'enterprise_project_id': 'str' + 'enterprise_project_id': 'str', + 'limit': 'int', + 'offset': 'int' } attribute_map = { @@ -36,10 +38,12 @@ class ListInstancesRequest: 'status': 'status', 'include_failure': 'include_failure', 'exact_match_name': 'exact_match_name', - 'enterprise_project_id': 'enterprise_project_id' + 'enterprise_project_id': 'enterprise_project_id', + 'limit': 'limit', + 'offset': 'offset' } - def __init__(self, engine=None, name=None, instance_id=None, status=None, include_failure=None, exact_match_name=None, enterprise_project_id=None): + def __init__(self, engine=None, name=None, instance_id=None, status=None, include_failure=None, exact_match_name=None, enterprise_project_id=None, limit=None, offset=None): """ListInstancesRequest The model defined in huaweicloud sdk @@ -58,6 +62,10 @@ class ListInstancesRequest: :type exact_match_name: str :param enterprise_project_id: 企业项目ID。 :type enterprise_project_id: str + :param limit: 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + :type limit: int + :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0。 + :type offset: int """ @@ -69,6 +77,8 @@ class ListInstancesRequest: self._include_failure = None self._exact_match_name = None self._enterprise_project_id = None + self._limit = None + self._offset = None self.discriminator = None if engine is not None: @@ -85,6 +95,10 @@ class ListInstancesRequest: self.exact_match_name = exact_match_name if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset @property def engine(self): @@ -240,6 +254,50 @@ class ListInstancesRequest: """ self._enterprise_project_id = enterprise_project_id + @property + def limit(self): + """Gets the limit of this ListInstancesRequest. + + 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + + :return: The limit of this ListInstancesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListInstancesRequest. + + 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + + :param limit: The limit of this ListInstancesRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListInstancesRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :return: The offset of this ListInstancesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListInstancesRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :param offset: The offset of this ListInstancesRequest. + :type offset: int + """ + self._offset = offset + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py index 7cddc7f1f..e2d64a63c 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py @@ -22,16 +22,20 @@ class ShowConsumerListOrDetailsRequest: openapi_types = { 'instance_id': 'str', 'group': 'str', - 'topic': 'str' + 'topic': 'str', + 'limit': 'int', + 'offset': 'int' } attribute_map = { 'instance_id': 'instance_id', 'group': 'group', - 'topic': 'topic' + 'topic': 'topic', + 'limit': 'limit', + 'offset': 'offset' } - def __init__(self, instance_id=None, group=None, topic=None): + def __init__(self, instance_id=None, group=None, topic=None, limit=None, offset=None): """ShowConsumerListOrDetailsRequest The model defined in huaweicloud sdk @@ -42,6 +46,10 @@ class ShowConsumerListOrDetailsRequest: :type group: str :param topic: 待查询的topic,不指定时查询topic列表,指定时查询详情。 :type topic: str + :param limit: 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + :type limit: int + :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0。 + :type offset: int """ @@ -49,12 +57,18 @@ class ShowConsumerListOrDetailsRequest: self._instance_id = None self._group = None self._topic = None + self._limit = None + self._offset = None self.discriminator = None self.instance_id = instance_id self.group = group if topic is not None: self.topic = topic + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset @property def instance_id(self): @@ -122,6 +136,50 @@ class ShowConsumerListOrDetailsRequest: """ self._topic = topic + @property + def limit(self): + """Gets the limit of this ShowConsumerListOrDetailsRequest. + + 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + + :return: The limit of this ShowConsumerListOrDetailsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowConsumerListOrDetailsRequest. + + 当次查询返回的最大个数,默认值为10,取值范围为1~50。 + + :param limit: The limit of this ShowConsumerListOrDetailsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ShowConsumerListOrDetailsRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :return: The offset of this ShowConsumerListOrDetailsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowConsumerListOrDetailsRequest. + + 偏移量,表示从此偏移量开始查询, offset大于等于0。 + + :param offset: The offset of this ShowConsumerListOrDetailsRequest. + :type offset: int + """ + self._offset = offset + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py new file mode 100755 index 000000000..75882e839 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRocketmqProjectTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowRocketmqProjectTagsRequest + + The model defined in huaweicloud sdk + + """ + + + 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, ShowRocketmqProjectTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py new file mode 100755 index 000000000..3e1957c8f --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRocketmqProjectTagsResponse(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[TagMultyValueEntity]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ShowRocketmqProjectTagsResponse + + The model defined in huaweicloud sdk + + :param tags: 标签列表 + :type tags: list[:class:`huaweicloudsdkrocketmq.v2.TagMultyValueEntity`] + """ + + super(ShowRocketmqProjectTagsResponse, 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 ShowRocketmqProjectTagsResponse. + + 标签列表 + + :return: The tags of this ShowRocketmqProjectTagsResponse. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.TagMultyValueEntity`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowRocketmqProjectTagsResponse. + + 标签列表 + + :param tags: The tags of this ShowRocketmqProjectTagsResponse. + :type tags: list[:class:`huaweicloudsdkrocketmq.v2.TagMultyValueEntity`] + """ + 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, ShowRocketmqProjectTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_request.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py similarity index 70% rename from huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_request.py rename to huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py index b41432e9d..aa617a6c0 100755 --- a/huaweicloud-sdk-imagesearch/huaweicloudsdkimagesearch/v1/model/run_delete_instance_request.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class RunDeleteInstanceRequest: +class ShowRocketmqTagsRequest: """ Attributes: @@ -20,50 +20,50 @@ class RunDeleteInstanceRequest: sensitive_list = [] openapi_types = { - 'instance_name': 'str' + 'instance_id': 'str' } attribute_map = { - 'instance_name': 'instance_name' + 'instance_id': 'instance_id' } - def __init__(self, instance_name=None): - """RunDeleteInstanceRequest + def __init__(self, instance_id=None): + """ShowRocketmqTagsRequest The model defined in huaweicloud sdk - :param instance_name: 实例名称。 - :type instance_name: str + :param instance_id: 实例ID。 + :type instance_id: str """ - self._instance_name = None + self._instance_id = None self.discriminator = None - self.instance_name = instance_name + self.instance_id = instance_id @property - def instance_name(self): - """Gets the instance_name of this RunDeleteInstanceRequest. + def instance_id(self): + """Gets the instance_id of this ShowRocketmqTagsRequest. - 实例名称。 + 实例ID。 - :return: The instance_name of this RunDeleteInstanceRequest. + :return: The instance_id of this ShowRocketmqTagsRequest. :rtype: str """ - return self._instance_name + return self._instance_id - @instance_name.setter - def instance_name(self, instance_name): - """Sets the instance_name of this RunDeleteInstanceRequest. + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowRocketmqTagsRequest. - 实例名称。 + 实例ID。 - :param instance_name: The instance_name of this RunDeleteInstanceRequest. - :type instance_name: str + :param instance_id: The instance_id of this ShowRocketmqTagsRequest. + :type instance_id: str """ - self._instance_name = instance_name + self._instance_id = instance_id def to_dict(self): """Returns the model properties as a dict""" @@ -107,7 +107,7 @@ class RunDeleteInstanceRequest: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RunDeleteInstanceRequest): + if not isinstance(other, ShowRocketmqTagsRequest): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py new file mode 100755 index 000000000..37846f55d --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRocketmqTagsResponse(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[TagEntity]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ShowRocketmqTagsResponse + + The model defined in huaweicloud sdk + + :param tags: 标签列表 + :type tags: list[:class:`huaweicloudsdkrocketmq.v2.TagEntity`] + """ + + super(ShowRocketmqTagsResponse, 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 ShowRocketmqTagsResponse. + + 标签列表 + + :return: The tags of this ShowRocketmqTagsResponse. + :rtype: list[:class:`huaweicloudsdkrocketmq.v2.TagEntity`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowRocketmqTagsResponse. + + 标签列表 + + :param tags: The tags of this ShowRocketmqTagsResponse. + :type tags: list[:class:`huaweicloudsdkrocketmq.v2.TagEntity`] + """ + 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, ShowRocketmqTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py new file mode 100755 index 000000000..a3a7d4093 --- /dev/null +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TagMultyValueEntity: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """TagMultyValueEntity + + The model defined in huaweicloud sdk + + :param key: 键。最大长度36个unicode字符。 key不能为空,不能为空字符串。 不能包含下列字符:非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 + :type key: str + :param values: 值。每个值最大长度43个unicode字符。 value不能为空,可以空字符串。 不能包含下列字符:非打印字符ASCII(0-31), “=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 + :type values: list[str] + """ + + + + self._key = None + self._values = None + self.discriminator = None + + if key is not None: + self.key = key + if values is not None: + self.values = values + + @property + def key(self): + """Gets the key of this TagMultyValueEntity. + + 键。最大长度36个unicode字符。 key不能为空,不能为空字符串。 不能包含下列字符:非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 + + :return: The key of this TagMultyValueEntity. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this TagMultyValueEntity. + + 键。最大长度36个unicode字符。 key不能为空,不能为空字符串。 不能包含下列字符:非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 + + :param key: The key of this TagMultyValueEntity. + :type key: str + """ + self._key = key + + @property + def values(self): + """Gets the values of this TagMultyValueEntity. + + 值。每个值最大长度43个unicode字符。 value不能为空,可以空字符串。 不能包含下列字符:非打印字符ASCII(0-31), “=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 + + :return: The values of this TagMultyValueEntity. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this TagMultyValueEntity. + + 值。每个值最大长度43个unicode字符。 value不能为空,可以空字符串。 不能包含下列字符:非打印字符ASCII(0-31), “=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 + + :param values: The values of this TagMultyValueEntity. + :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, TagMultyValueEntity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py index 0372b40b3..d77549edb 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py @@ -9,34 +9,34 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class RocketMQRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ROCKETMQ") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://dms.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://dms.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://dms.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://dms.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://dms.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://dms.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://dms.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://dms.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://dms.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://dms.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://dms.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://dms.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://dms.ru-northwest-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://dms.cn-north-9.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://dms.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://dms.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://dms.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://dms.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://dms.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://dms.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://dms.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://dms.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://dms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://dms.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://dms.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://dms.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://dms.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://dms.cn-north-9.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_async_client.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_async_client.py index 4b5ff7fe8..d9bbdabbd 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_async_client.py @@ -42,6 +42,69 @@ class RocketMQAsyncClient(Client): return ClientBuilder(clazz) + def batch_create_or_delete_rocketmq_tag_async(self, request): + """批量添加或删除实例标签 + + 批量添加或删除实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchCreateOrDeleteRocketmqTag + :type request: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteRocketmqTagRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteRocketmqTagResponse` + """ + return self.batch_create_or_delete_rocketmq_tag_with_http_info(request) + + def batch_create_or_delete_rocketmq_tag_with_http_info(self, request): + all_params = ['instance_id', 'batch_create_or_delete_rocketmq_tag_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/rocketmq/{instance_id}/tags/action', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchCreateOrDeleteRocketmqTagResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def batch_delete_instances_async(self, request): """批量删除实例 @@ -231,6 +294,69 @@ class RocketMQAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_instance_by_engine_async(self, request): + """创建实例 + + 该接口支持创建按需和包周期两种计费方式的实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateInstanceByEngine + :type request: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineResponse` + """ + return self.create_instance_by_engine_with_http_info(request) + + def create_instance_by_engine_with_http_info(self, request): + all_params = ['engine', 'create_instance_by_engine_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{engine}/{project_id}/instances', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateInstanceByEngineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_post_paid_instance_async(self, request): """创建实例(按需) @@ -876,7 +1002,7 @@ class RocketMQAsyncClient(Client): return self.list_instances_with_http_info(request) def list_instances_with_http_info(self, request): - all_params = ['engine', 'name', 'instance_id', 'status', 'include_failure', 'exact_match_name', 'enterprise_project_id'] + all_params = ['engine', 'name', 'instance_id', 'status', 'include_failure', 'exact_match_name', 'enterprise_project_id', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -903,6 +1029,10 @@ class RocketMQAsyncClient(Client): query_params.append(('exact_match_name', local_var_params['exact_match_name'])) if 'enterprise_project_id' in local_var_params: query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + 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 = {} @@ -1288,7 +1418,7 @@ class RocketMQAsyncClient(Client): return self.show_consumer_list_or_details_with_http_info(request) def show_consumer_list_or_details_with_http_info(self, request): - all_params = ['instance_id', 'group', 'topic'] + all_params = ['instance_id', 'group', 'topic', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1307,6 +1437,10 @@ class RocketMQAsyncClient(Client): query_params = [] if 'topic' in local_var_params: query_params.append(('topic', local_var_params['topic'])) + 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 = {} @@ -1462,6 +1596,126 @@ class RocketMQAsyncClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_rocketmq_project_tags_async(self, request): + """查询项目标签 + + 查询项目标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRocketmqProjectTags + :type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqProjectTagsRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqProjectTagsResponse` + """ + return self.show_rocketmq_project_tags_with_http_info(request) + + def show_rocketmq_project_tags_with_http_info(self, request): + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/rocketmq/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowRocketmqProjectTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_rocketmq_tags_async(self, request): + """查询实例标签 + + 查询实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRocketmqTags + :type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqTagsRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqTagsResponse` + """ + return self.show_rocketmq_tags_with_http_info(request) + + def show_rocketmq_tags_with_http_info(self, request): + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/rocketmq/{instance_id}/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowRocketmqTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_user_async(self, request): """查询用户详情 @@ -1861,7 +2115,7 @@ class RocketMQAsyncClient(Client): return self.list_consumer_group_of_topic_with_http_info(request) def list_consumer_group_of_topic_with_http_info(self, request): - all_params = ['instance_id', 'topic'] + all_params = ['instance_id', 'topic', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1878,6 +2132,10 @@ class RocketMQAsyncClient(Client): path_params['topic'] = local_var_params['topic'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_client.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_client.py index 9ab09daf9..7eb12df8c 100755 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_client.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/rocketmq_client.py @@ -42,6 +42,68 @@ class RocketMQClient(Client): return ClientBuilder(clazz) + def batch_create_or_delete_rocketmq_tag(self, request): + """批量添加或删除实例标签 + + 批量添加或删除实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchCreateOrDeleteRocketmqTag + :type request: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteRocketmqTagRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.BatchCreateOrDeleteRocketmqTagResponse` + """ + return self.batch_create_or_delete_rocketmq_tag_with_http_info(request) + + def batch_create_or_delete_rocketmq_tag_with_http_info(self, request): + all_params = ['instance_id', 'batch_create_or_delete_rocketmq_tag_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/rocketmq/{instance_id}/tags/action', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='BatchCreateOrDeleteRocketmqTagResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def batch_delete_instances(self, request): """批量删除实例 @@ -228,6 +290,68 @@ class RocketMQClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def create_instance_by_engine(self, request): + """创建实例 + + 该接口支持创建按需和包周期两种计费方式的实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateInstanceByEngine + :type request: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.CreateInstanceByEngineResponse` + """ + return self.create_instance_by_engine_with_http_info(request) + + def create_instance_by_engine_with_http_info(self, request): + all_params = ['engine', 'create_instance_by_engine_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{engine}/{project_id}/instances', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='CreateInstanceByEngineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def create_post_paid_instance(self, request): """创建实例(按需) @@ -862,7 +986,7 @@ class RocketMQClient(Client): return self.list_instances_with_http_info(request) def list_instances_with_http_info(self, request): - all_params = ['engine', 'name', 'instance_id', 'status', 'include_failure', 'exact_match_name', 'enterprise_project_id'] + all_params = ['engine', 'name', 'instance_id', 'status', 'include_failure', 'exact_match_name', 'enterprise_project_id', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -889,6 +1013,10 @@ class RocketMQClient(Client): query_params.append(('exact_match_name', local_var_params['exact_match_name'])) if 'enterprise_project_id' in local_var_params: query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + 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 = {} @@ -1268,7 +1396,7 @@ class RocketMQClient(Client): return self.show_consumer_list_or_details_with_http_info(request) def show_consumer_list_or_details_with_http_info(self, request): - all_params = ['instance_id', 'group', 'topic'] + all_params = ['instance_id', 'group', 'topic', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1287,6 +1415,10 @@ class RocketMQClient(Client): query_params = [] if 'topic' in local_var_params: query_params.append(('topic', local_var_params['topic'])) + 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 = {} @@ -1440,6 +1572,124 @@ class RocketMQClient(Client): collection_formats=collection_formats, request_type=request.__class__.__name__) + def show_rocketmq_project_tags(self, request): + """查询项目标签 + + 查询项目标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRocketmqProjectTags + :type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqProjectTagsRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqProjectTagsResponse` + """ + return self.show_rocketmq_project_tags_with_http_info(request) + + def show_rocketmq_project_tags_with_http_info(self, request): + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/rocketmq/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowRocketmqProjectTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_rocketmq_tags(self, request): + """查询实例标签 + + 查询实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRocketmqTags + :type request: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqTagsRequest` + :rtype: :class:`huaweicloudsdkrocketmq.v2.ShowRocketmqTagsResponse` + """ + return self.show_rocketmq_tags_with_http_info(request) + + def show_rocketmq_tags_with_http_info(self, request): + all_params = ['instance_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + return self.call_api( + resource_path='/v2/{project_id}/rocketmq/{instance_id}/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + cname=cname, + response_type='ShowRocketmqTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + def show_user(self, request): """查询用户详情 @@ -1832,7 +2082,7 @@ class RocketMQClient(Client): return self.list_consumer_group_of_topic_with_http_info(request) def list_consumer_group_of_topic_with_http_info(self, request): - all_params = ['instance_id', 'topic'] + all_params = ['instance_id', 'topic', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -1849,6 +2099,10 @@ class RocketMQClient(Client): path_params['topic'] = local_var_params['topic'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 164a08602..ce3fb3e11 100755 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 953b3b8f8..27d41a2a7 100755 --- a/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/region/roma_region.py +++ b/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/region/roma_region.py @@ -9,22 +9,22 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class RomaRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("ROMA") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://roma.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://roma.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://roma.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://roma.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://roma.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://roma.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://roma.ap-southeast-3.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://roma.ru-northwest-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://roma.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://roma.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://roma.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://roma.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://roma.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://roma.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://roma.ap-southeast-3.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://roma.ru-northwest-2.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index 93bd2804e..328fdac7b 100755 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 9ec9ae58b..b4ce830e0 100755 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v1/region/sa_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SaRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SA") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sa.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://secmaster.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sa.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://secmaster.cn-east-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py index 9ec9ae58b..b4ce830e0 100755 --- a/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py +++ b/huaweicloud-sdk-sa/huaweicloudsdksa/v2/region/sa_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SaRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SA") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sa.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://secmaster.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sa.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://secmaster.cn-east-3.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 015309e23..cad6d7185 100755 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 39bba3939..b028c2b27 100755 --- a/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/region/scm_region.py +++ b/huaweicloud-sdk-scm/huaweicloudsdkscm/v3/region/scm_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ScmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SCM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://scm.cn-north-4.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://scm.ap-southeast-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://scm.cn-north-4.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://scm.ap-southeast-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index 1825adfe3..6d03ea689 100755 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 e6f528c26..7e2928e40 100755 --- a/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/region/sdrs_region.py +++ b/huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/region/sdrs_region.py @@ -9,20 +9,20 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SdrsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SDRS") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://sdrs.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sdrs.cn-north-4.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://sdrs.ap-southeast-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://sdrs.cn-south-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://sdrs.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://sdrs.cn-east-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://sdrs.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://sdrs.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sdrs.cn-north-4.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://sdrs.ap-southeast-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://sdrs.cn-south-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://sdrs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://sdrs.cn-east-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://sdrs.af-south-1.myhuaweicloud.com") static_fields = { "ap-southeast-3": AP_SOUTHEAST_3, diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index ae3606e12..613453d22 100755 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 376e518b2..0b34cdfc9 100755 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v1/region/secmaster_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SecMasterRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SECMASTER") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sa.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://secmaster.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://secmaster.cn-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sa.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://secmaster.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://secmaster.cn-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py index 376e518b2..0b34cdfc9 100755 --- a/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py +++ b/huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/region/secmaster_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SecMasterRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SECMASTER") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sa.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://secmaster.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://secmaster.cn-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sa.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://secmaster.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://secmaster.cn-south-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index c54a991c3..60a117d0e 100755 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 7976e21b0..a494803ed 100755 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/region/servicestage_region.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/region/servicestage_region.py @@ -9,32 +9,32 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class ServiceStageRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SERVICESTAGE") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://servicestage.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://servicestage.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://servicestage.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://servicestage.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://servicestage.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://servicestage.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://servicestage.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://servicestage.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://servicestage.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://servicestage.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://servicestage.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://servicestage.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://servicestage.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://servicestage.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://servicestage.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://servicestage.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://servicestage.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://servicestage.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://servicestage.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://servicestage.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://servicestage.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://servicestage.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://servicestage.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://servicestage.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://servicestage.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://servicestage.la-north-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index ca2c19d0b..6e2109f82 100755 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 693859e35..157ee9925 100755 --- a/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +++ b/huaweicloud-sdk-sfsturbo/huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SFSTurboRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SFSTURBO") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://sfs-turbo.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://sfs-turbo.cn-east-3.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://sfs-turbo.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://sfs-turbo.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sfs-turbo.cn-north-4.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://sfs-turbo.cn-north-9.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://sfs-turbo.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://sfs-turbo.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://sfs-turbo.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://sfs-turbo.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://sfs-turbo.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://sfs-turbo.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://sfs-turbo.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://sfs-turbo.la-south-2.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://sfs-turbo.la-north-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://sfs-turbo.af-south-1.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://sfs-turbo.na-mexico-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://sfs-turbo.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://sfs-turbo.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://sfs-turbo.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://sfs-turbo.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sfs-turbo.cn-north-4.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://sfs-turbo.cn-north-9.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://sfs-turbo.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://sfs-turbo.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://sfs-turbo.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://sfs-turbo.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://sfs-turbo.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://sfs-turbo.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://sfs-turbo.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://sfs-turbo.la-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://sfs-turbo.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://sfs-turbo.af-south-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://sfs-turbo.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index fa7eba455..687c809e2 100755 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 d168026d2..7773c8edb 100755 --- a/huaweicloud-sdk-sis/huaweicloudsdksis/v1/region/sis_region.py +++ b/huaweicloud-sdk-sis/huaweicloudsdksis/v1/region/sis_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SisRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SIS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://sis-ext.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://sis-ext.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://sis-ext.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://sis-ext.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://sis-ext.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://sis-ext.cn-east-3.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 1a884945b..5cb852e72 100755 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 7944ba645..577975955 100755 --- a/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/region/smn_region.py +++ b/huaweicloud-sdk-smn/huaweicloudsdksmn/v2/region/smn_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SmnRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SMN") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://smn.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://smn.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://smn.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://smn.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://smn.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://smn.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://smn.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://smn.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://smn.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://smn.ap-southeast-3.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://smn.cn-north-2.myhuaweicloud.cn") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://smn.cn-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://smn.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://smn.la-north-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://smn.sa-brazil-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://smn.la-south-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://smn.cn-north-9.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://smn.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://smn.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://smn.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://smn.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://smn.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://smn.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://smn.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://smn.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://smn.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://smn.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://smn.cn-north-2.myhuaweicloud.cn") + CN_SOUTH_2 = Region("cn-south-2", + "https://smn.cn-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://smn.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://smn.la-north-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://smn.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://smn.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://smn.cn-north-9.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index fb284f03b..0e474f2c7 100755 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 64c26fb48..52d065d93 100755 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/region/sms_region.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/region/sms_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SMS") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://sms.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://sms.ap-southeast-1.myhuaweicloud.com") static_fields = { "ap-southeast-1": AP_SOUTHEAST_1, diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index fe1b69c5c..0682b0c12 100755 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 1129da328..b35f4a7cb 100755 --- a/huaweicloud-sdk-swr/huaweicloudsdkswr/v2/region/swr_region.py +++ b/huaweicloud-sdk-swr/huaweicloudsdkswr/v2/region/swr_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class SwrRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("SWR") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://swr-api.af-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://swr-api.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://swr-api.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://swr-api.ap-southeast-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://swr-api.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://swr-api.cn-east-3.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://swr-api.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://swr-api.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://swr-api.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://swr-api.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://swr-api.cn-south-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://swr-api.cn-southwest-2.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://swr-api.ru-northwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://swr-api.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://swr-api.sa-brazil-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://swr-api.cn-north-9.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://swr-api.na-mexico-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://swr-api.la-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://swr-api.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://swr-api.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://swr-api.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://swr-api.ap-southeast-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://swr-api.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://swr-api.cn-east-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://swr-api.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://swr-api.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://swr-api.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://swr-api.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://swr-api.cn-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://swr-api.cn-southwest-2.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://swr-api.ru-northwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://swr-api.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://swr-api.sa-brazil-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://swr-api.cn-north-9.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://swr-api.na-mexico-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://swr-api.la-north-2.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 9b72ec03f..02530cf38 100755 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 19db4f3b7..34881fb63 100755 --- a/huaweicloud-sdk-tms/huaweicloudsdktms/v1/region/tms_region.py +++ b/huaweicloud-sdk-tms/huaweicloudsdktms/v1/region/tms_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class TmsRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("TMS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://tms.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://tms.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 599eedca9..f64871bc0 100755 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 0d4375e34..1b72a3447 100755 --- a/huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/region/ugo_region.py +++ b/huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/region/ugo_region.py @@ -9,10 +9,10 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class UgoRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("UGO") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://ugo.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://ugo.ap-southeast-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://ugo.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://ugo.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 8f1ff2005..cf55c84de 100755 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 03ab6741d..62d788665 100755 --- a/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/region/vas_region.py +++ b/huaweicloud-sdk-vas/huaweicloudsdkvas/v2/region/vas_region.py @@ -9,22 +9,22 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VasRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VAS") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://iva.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iva.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://iva.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://iva.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://iva.cn-south-1.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://iva.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://iva.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://iva.ap-southeast-3.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://iva.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iva.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://iva.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://iva.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://iva.cn-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://iva.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://iva.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://iva.ap-southeast-3.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 0f4f9a33f..972c88888 100755 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 a273dd23e..325c0160f 100755 --- a/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/region/vcm_region.py +++ b/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/region/vcm_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VcmRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VCM") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://iva.cn-north-4.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://iva.cn-north-4.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index c69edf52c..40201e70a 100755 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 f4e3fec4f..1d300163d 100755 --- a/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py +++ b/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/region/vod_region.py @@ -9,12 +9,12 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VodRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VOD") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vod.cn-east-2.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vod.cn-north-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vod.cn-north-4.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://vod.cn-east-2.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://vod.cn-north-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vod.cn-north-4.myhuaweicloud.com") static_fields = { "cn-east-2": CN_EAST_2, diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index b7028dac0..9d9b089a4 100755 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 f9370bab9..3fecf1b9d 100755 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/region/vpc_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VpcRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VPC") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://vpc.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vpc.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vpc.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vpc.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://vpc.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://vpc.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://vpc.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://vpc.ap-southeast-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://vpc.cn-north-9.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://vpc.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://vpc.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://vpc.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://vpc.la-north-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://vpc.cn-south-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://vpc.cn-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://vpc.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://vpc.na-mexico-1.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://vpc.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://vpc.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vpc.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://vpc.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://vpc.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://vpc.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://vpc.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://vpc.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://vpc.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://vpc.cn-north-9.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://vpc.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://vpc.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://vpc.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://vpc.la-north-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://vpc.cn-south-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://vpc.cn-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://vpc.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://vpc.na-mexico-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://vpc.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py index f9370bab9..3fecf1b9d 100755 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/region/vpc_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VpcRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VPC") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://vpc.af-south-1.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vpc.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vpc.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vpc.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://vpc.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://vpc.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://vpc.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://vpc.ap-southeast-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://vpc.cn-north-9.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://vpc.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://vpc.ap-southeast-3.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://vpc.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://vpc.la-north-2.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://vpc.cn-south-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://vpc.cn-north-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://vpc.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://vpc.na-mexico-1.myhuaweicloud.com") - - AP_SOUTHEAST_4 = Region(id="ap-southeast-4", endpoint="https://vpc.ap-southeast-4.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://vpc.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vpc.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://vpc.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://vpc.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://vpc.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://vpc.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://vpc.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://vpc.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://vpc.cn-north-9.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://vpc.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://vpc.ap-southeast-3.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://vpc.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://vpc.la-north-2.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://vpc.cn-south-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://vpc.cn-north-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://vpc.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://vpc.na-mexico-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://vpc.ap-southeast-4.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 135a1b693..ddf557524 100755 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] 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 f456d3b47..f75b3a1ea 100755 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/region/vpcep_region.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/region/vpcep_region.py @@ -9,40 +9,40 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VpcepRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VPCEP") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vpcep.cn-north-4.myhuaweicloud.com") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://vpcep.cn-north-1.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://vpcep.cn-east-2.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://vpcep.cn-east-3.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://vpcep.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://vpcep.cn-southwest-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://vpcep.ap-southeast-1.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://vpcep.la-south-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://vpcep.na-mexico-1.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://vpcep.cn-north-9.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://vpcep.ap-southeast-3.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://vpcep.ap-southeast-2.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://vpcep.cn-north-2.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://vpcep.af-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://vpcep.cn-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://vpcep.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://vpcep.la-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vpcep.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://vpcep.cn-north-1.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://vpcep.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://vpcep.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://vpcep.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://vpcep.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://vpcep.ap-southeast-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://vpcep.la-south-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://vpcep.na-mexico-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://vpcep.cn-north-9.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://vpcep.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://vpcep.ap-southeast-2.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://vpcep.cn-north-2.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://vpcep.af-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://vpcep.cn-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://vpcep.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://vpcep.la-north-2.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 22e261b8b..97395f02c 100755 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vss/huaweicloudsdkvss/v3/region/vss_region.py b/huaweicloud-sdk-vss/huaweicloudsdkvss/v3/region/vss_region.py index 5a66e6320..63007677b 100755 --- a/huaweicloud-sdk-vss/huaweicloudsdkvss/v3/region/vss_region.py +++ b/huaweicloud-sdk-vss/huaweicloudsdkvss/v3/region/vss_region.py @@ -9,8 +9,8 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class VssRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("VSS") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://vss.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://vss.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, diff --git a/huaweicloud-sdk-vss/requirements.txt b/huaweicloud-sdk-vss/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-vss/requirements.txt +++ b/huaweicloud-sdk-vss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-vss/setup.py b/huaweicloud-sdk-vss/setup.py index 881bfa6f3..d5ec4c13e 100755 --- a/huaweicloud-sdk-vss/setup.py +++ b/huaweicloud-sdk-vss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvss" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_host_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_host_request_body.py index 9373698e6..30002ff51 100755 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_host_request_body.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_host_request_body.py @@ -66,7 +66,7 @@ class CreateHostRequestBody: :type web_tag: str :param exclusive_ip: 是否使用独享ip - true:使用独享ip - false:不实用独享ip :type exclusive_ip: bool - :param paid_type: 套餐付费模式,目前只支持prePaid预付款模式 + :param paid_type: 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。 :type paid_type: str :param proxy: 防护域名是否使用代理 - false:不使用代理 - true:使用代理 :type proxy: bool @@ -269,7 +269,7 @@ class CreateHostRequestBody: def paid_type(self): """Gets the paid_type of this CreateHostRequestBody. - 套餐付费模式,目前只支持prePaid预付款模式 + 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。 :return: The paid_type of this CreateHostRequestBody. :rtype: str @@ -280,7 +280,7 @@ class CreateHostRequestBody: def paid_type(self, paid_type): """Sets the paid_type of this CreateHostRequestBody. - 套餐付费模式,目前只支持prePaid预付款模式 + 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。 :param paid_type: The paid_type of this CreateHostRequestBody. :type paid_type: str diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py index 71af3217b..f7d619f67 100755 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/region/waf_region.py @@ -9,42 +9,42 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class WafRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("WAF") - - CN_NORTH_1 = Region(id="cn-north-1", endpoint="https://waf.cn-north-1.myhuaweicloud.com") - - CN_NORTH_2 = Region(id="cn-north-2", endpoint="https://waf.cn-north-2.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://waf.cn-north-4.myhuaweicloud.com") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://waf.cn-east-3.myhuaweicloud.com") - - CN_EAST_2 = Region(id="cn-east-2", endpoint="https://waf.cn-east-2.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://waf.cn-south-1.myhuaweicloud.com") - - CN_SOUTH_2 = Region(id="cn-south-2", endpoint="https://waf.cn-south-2.myhuaweicloud.com") - - AP_SOUTHEAST_1 = Region(id="ap-southeast-1", endpoint="https://waf.ap-southeast-1.myhuaweicloud.com") - - AP_SOUTHEAST_2 = Region(id="ap-southeast-2", endpoint="https://waf.ap-southeast-2.myhuaweicloud.com") - - AP_SOUTHEAST_3 = Region(id="ap-southeast-3", endpoint="https://waf.ap-southeast-3.myhuaweicloud.com") - - AF_SOUTH_1 = Region(id="af-south-1", endpoint="https://waf.af-south-1.myhuaweicloud.com") - - RU_NORTHWEST_2 = Region(id="ru-northwest-2", endpoint="https://waf.ru-northwest-2.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://waf.cn-southwest-2.myhuaweicloud.com") - - CN_NORTH_9 = Region(id="cn-north-9", endpoint="https://waf.cn-north-9.myhuaweicloud.cn") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://waf.la-south-2.myhuaweicloud.com") - - SA_BRAZIL_1 = Region(id="sa-brazil-1", endpoint="https://waf.sa-brazil-1.myhuaweicloud.com") - - LA_NORTH_2 = Region(id="la-north-2", endpoint="https://waf.la-north-2.myhuaweicloud.com") - - NA_MEXICO_1 = Region(id="na-mexico-1", endpoint="https://waf.na-mexico-1.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://waf.cn-north-1.myhuaweicloud.com") + CN_NORTH_2 = Region("cn-north-2", + "https://waf.cn-north-2.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://waf.cn-north-4.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://waf.cn-east-3.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://waf.cn-east-2.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://waf.cn-south-1.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://waf.cn-south-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://waf.ap-southeast-1.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://waf.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://waf.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://waf.af-south-1.myhuaweicloud.com") + RU_NORTHWEST_2 = Region("ru-northwest-2", + "https://waf.ru-northwest-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://waf.cn-southwest-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://waf.cn-north-9.myhuaweicloud.cn") + LA_SOUTH_2 = Region("la-south-2", + "https://waf.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://waf.sa-brazil-1.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://waf.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://waf.na-mexico-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 3959397ee..b400b47d4 100755 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py index 2f0939d67..24c7efcf3 100755 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/region/workspace_region.py @@ -9,16 +9,16 @@ from huaweicloudsdkcore.region.provider import RegionProviderChain class WorkspaceRegion: _PROVIDER = RegionProviderChain.get_default_region_provider_chain("WORKSPACE") - - CN_EAST_3 = Region(id="cn-east-3", endpoint="https://workspace.cn-east-3.myhuaweicloud.com") - - CN_NORTH_4 = Region(id="cn-north-4", endpoint="https://workspace.cn-north-4.myhuaweicloud.com") - - CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://workspace.cn-south-1.myhuaweicloud.com") - - CN_SOUTHWEST_2 = Region(id="cn-southwest-2", endpoint="https://workspace.cn-southwest-2.myhuaweicloud.com") - - LA_SOUTH_2 = Region(id="la-south-2", endpoint="https://workspace.la-south-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://workspace.cn-east-3.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://workspace.cn-north-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://workspace.cn-south-1.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://workspace.cn-southwest-2.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://workspace.la-south-2.myhuaweicloud.com") static_fields = { "cn-east-3": CN_EAST_3, diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 9279470b4..17fc8d230 100755 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.25 \ No newline at end of file +huaweicloudsdkcore >= 3.1.26 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index f3e7aa7e1..87aa537f0 100755 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.25" +VERSION = "3.1.26" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.25"] +REQUIRES = ["huaweicloudsdkcore>=3.1.26"] OPTIONS = { 'bdist_wheel': {