From c094b00525f98b7d331efa31cbaf4825247964bb Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 8 Aug 2024 16:10:39 +0800 Subject: [PATCH] release 3.1.109 source code --- CHANGELOG.md | 370 ++++ CHANGELOG_CN.md | 370 ++++ VERSION | 2 +- huaweicloud-sdk-aad/requirements.txt | 2 +- huaweicloud-sdk-aad/setup.py | 4 +- huaweicloud-sdk-all/requirements.txt | 327 +-- huaweicloud-sdk-all/setup.py | 329 +-- huaweicloud-sdk-antiddos/requirements.txt | 2 +- huaweicloud-sdk-antiddos/setup.py | 4 +- huaweicloud-sdk-aom/requirements.txt | 2 +- huaweicloud-sdk-aom/setup.py | 4 +- .../huaweicloudsdkaos/v1/__init__.py | 32 + .../huaweicloudsdkaos/v1/aos_async_client.py | 557 +++++ .../huaweicloudsdkaos/v1/aos_client.py | 557 +++++ .../huaweicloudsdkaos/v1/model/__init__.py | 32 + .../configuration_primitive_type_holder.py | 111 + ...ion_primitive_type_holder_configuration.py | 144 ++ .../v1/model/create_private_hook_request.py | 139 ++ .../model/create_private_hook_request_body.py | 283 +++ .../v1/model/create_private_hook_response.py | 116 ++ .../create_private_hook_version_request.py | 167 ++ ...reate_private_hook_version_request_body.py | 230 ++ .../create_private_hook_version_response.py | 85 + .../v1/model/delete_private_hook_request.py | 171 ++ .../v1/model/delete_private_hook_response.py | 85 + .../delete_private_hook_version_request.py | 199 ++ .../delete_private_hook_version_response.py | 85 + ..._hook_create_time_primitive_type_holder.py | 115 + ...k_default_version_primitive_type_holder.py | 115 + ..._hook_description_primitive_type_holder.py | 115 + .../private_hook_id_primitive_type_holder.py | 115 + ...private_hook_name_primitive_type_holder.py | 114 + .../v1/model/private_hook_summary.py | 284 +++ ..._hook_update_time_primitive_type_holder.py | 115 + ...rsion_create_time_primitive_type_holder.py | 115 + ...rsion_description_primitive_type_holder.py | 115 + ...vate_hook_version_primitive_type_holder.py | 114 + .../v1/model/private_hook_version_summary.py | 229 ++ ...ivate_policy_body_primitive_type_holder.py | 115 + ...rivate_policy_uri_primitive_type_holder.py | 115 + .../show_private_hook_metadata_request.py | 171 ++ .../show_private_hook_metadata_response.py | 285 +++ ...w_private_hook_version_metadata_request.py | 199 ++ ..._private_hook_version_metadata_response.py | 230 ++ .../update_private_hook_metadata_request.py | 167 ++ ...date_private_hook_metadata_request_body.py | 198 ++ .../update_private_hook_metadata_response.py | 85 + huaweicloud-sdk-aos/requirements.txt | 2 +- huaweicloud-sdk-aos/setup.py | 4 +- huaweicloud-sdk-apig/requirements.txt | 2 +- huaweicloud-sdk-apig/setup.py | 4 +- huaweicloud-sdk-apm/requirements.txt | 2 +- huaweicloud-sdk-apm/setup.py | 4 +- huaweicloud-sdk-as/requirements.txt | 2 +- huaweicloud-sdk-as/setup.py | 4 +- huaweicloud-sdk-asm/requirements.txt | 2 +- huaweicloud-sdk-asm/setup.py | 4 +- huaweicloud-sdk-bcs/requirements.txt | 2 +- huaweicloud-sdk-bcs/setup.py | 4 +- huaweicloud-sdk-bms/requirements.txt | 2 +- huaweicloud-sdk-bms/setup.py | 4 +- huaweicloud-sdk-bss/requirements.txt | 2 +- huaweicloud-sdk-bss/setup.py | 4 +- huaweicloud-sdk-bssintl/requirements.txt | 2 +- huaweicloud-sdk-bssintl/setup.py | 4 +- huaweicloud-sdk-cae/requirements.txt | 2 +- huaweicloud-sdk-cae/setup.py | 4 +- huaweicloud-sdk-campusgo/requirements.txt | 2 +- huaweicloud-sdk-campusgo/setup.py | 4 +- huaweicloud-sdk-cbh/requirements.txt | 2 +- huaweicloud-sdk-cbh/setup.py | 4 +- huaweicloud-sdk-cbr/requirements.txt | 2 +- huaweicloud-sdk-cbr/setup.py | 4 +- huaweicloud-sdk-cbs/requirements.txt | 2 +- huaweicloud-sdk-cbs/setup.py | 4 +- huaweicloud-sdk-cc/requirements.txt | 2 +- huaweicloud-sdk-cc/setup.py | 4 +- .../huaweicloudsdkcce/v3/region/cce_region.py | 3 + huaweicloud-sdk-cce/requirements.txt | 2 +- huaweicloud-sdk-cce/setup.py | 4 +- huaweicloud-sdk-ccm/requirements.txt | 2 +- huaweicloud-sdk-ccm/setup.py | 4 +- huaweicloud-sdk-cdm/requirements.txt | 2 +- huaweicloud-sdk-cdm/setup.py | 4 +- huaweicloud-sdk-cdn/requirements.txt | 2 +- huaweicloud-sdk-cdn/setup.py | 4 +- huaweicloud-sdk-ces/requirements.txt | 2 +- huaweicloud-sdk-ces/setup.py | 4 +- huaweicloud-sdk-cfw/requirements.txt | 2 +- huaweicloud-sdk-cfw/setup.py | 4 +- huaweicloud-sdk-cgs/requirements.txt | 2 +- huaweicloud-sdk-cgs/setup.py | 4 +- huaweicloud-sdk-classroom/requirements.txt | 2 +- huaweicloud-sdk-classroom/setup.py | 4 +- huaweicloud-sdk-cloudide/requirements.txt | 2 +- huaweicloud-sdk-cloudide/setup.py | 4 +- huaweicloud-sdk-cloudpond/requirements.txt | 2 +- huaweicloud-sdk-cloudpond/setup.py | 4 +- huaweicloud-sdk-cloudrtc/requirements.txt | 2 +- huaweicloud-sdk-cloudrtc/setup.py | 4 +- huaweicloud-sdk-cloudtable/requirements.txt | 2 +- huaweicloud-sdk-cloudtable/setup.py | 4 +- huaweicloud-sdk-cloudtest/requirements.txt | 2 +- huaweicloud-sdk-cloudtest/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsartifact/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsbuild/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartscheck/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsdeploy/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsgovernance/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsinspector/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartspipeline/setup.py | 4 +- huaweicloud-sdk-codecraft/requirements.txt | 2 +- huaweicloud-sdk-codecraft/setup.py | 4 +- huaweicloud-sdk-codehub/requirements.txt | 2 +- huaweicloud-sdk-codehub/setup.py | 4 +- .../v1/config_async_client.py | 2 - .../huaweicloudsdkconfig/v1/config_client.py | 2 - ...date_remediation_configuration_response.py | 6 +- .../list_remediation_exceptions_request.py | 35 +- .../remediation_configuration_request_body.py | 6 +- ...show_remediation_configuration_response.py | 6 +- huaweicloud-sdk-config/requirements.txt | 2 +- huaweicloud-sdk-config/setup.py | 4 +- huaweicloud-sdk-core/setup.py | 2 +- .../tests/test_credentials.py | 55 +- huaweicloud-sdk-cph/requirements.txt | 2 +- huaweicloud-sdk-cph/setup.py | 4 +- huaweicloud-sdk-cpts/requirements.txt | 2 +- huaweicloud-sdk-cpts/setup.py | 4 +- huaweicloud-sdk-cse/requirements.txt | 2 +- huaweicloud-sdk-cse/setup.py | 4 +- huaweicloud-sdk-csms/requirements.txt | 2 +- huaweicloud-sdk-csms/setup.py | 4 +- huaweicloud-sdk-css/requirements.txt | 2 +- huaweicloud-sdk-css/setup.py | 4 +- huaweicloud-sdk-cts/requirements.txt | 2 +- huaweicloud-sdk-cts/setup.py | 4 +- huaweicloud-sdk-das/requirements.txt | 2 +- huaweicloud-sdk-das/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-dataartsstudio/setup.py | 4 +- huaweicloud-sdk-dbss/requirements.txt | 2 +- huaweicloud-sdk-dbss/setup.py | 4 +- huaweicloud-sdk-dc/requirements.txt | 2 +- huaweicloud-sdk-dc/setup.py | 4 +- huaweicloud-sdk-dcs/requirements.txt | 2 +- huaweicloud-sdk-dcs/setup.py | 4 +- huaweicloud-sdk-ddm/requirements.txt | 2 +- huaweicloud-sdk-ddm/setup.py | 4 +- huaweicloud-sdk-dds/requirements.txt | 2 +- huaweicloud-sdk-dds/setup.py | 4 +- huaweicloud-sdk-deh/requirements.txt | 2 +- huaweicloud-sdk-deh/setup.py | 4 +- huaweicloud-sdk-devstar/requirements.txt | 2 +- huaweicloud-sdk-devstar/setup.py | 4 +- .../huaweicloudsdkdgc/v1/model/job_info.py | 89 +- huaweicloud-sdk-dgc/requirements.txt | 2 +- huaweicloud-sdk-dgc/setup.py | 4 +- huaweicloud-sdk-dis/requirements.txt | 2 +- huaweicloud-sdk-dis/setup.py | 4 +- huaweicloud-sdk-dlf/requirements.txt | 2 +- huaweicloud-sdk-dlf/setup.py | 4 +- huaweicloud-sdk-dli/requirements.txt | 2 +- huaweicloud-sdk-dli/setup.py | 4 +- huaweicloud-sdk-dns/requirements.txt | 2 +- huaweicloud-sdk-dns/setup.py | 4 +- huaweicloud-sdk-dris/requirements.txt | 2 +- huaweicloud-sdk-dris/setup.py | 4 +- huaweicloud-sdk-drs/requirements.txt | 2 +- huaweicloud-sdk-drs/setup.py | 4 +- huaweicloud-sdk-dsc/requirements.txt | 2 +- huaweicloud-sdk-dsc/setup.py | 4 +- huaweicloud-sdk-dwr/requirements.txt | 2 +- huaweicloud-sdk-dwr/setup.py | 4 +- huaweicloud-sdk-dws/requirements.txt | 2 +- huaweicloud-sdk-dws/setup.py | 4 +- huaweicloud-sdk-ec/requirements.txt | 2 +- huaweicloud-sdk-ec/setup.py | 4 +- huaweicloud-sdk-ecs/requirements.txt | 2 +- huaweicloud-sdk-ecs/setup.py | 4 +- huaweicloud-sdk-edgesec/requirements.txt | 2 +- huaweicloud-sdk-edgesec/setup.py | 4 +- huaweicloud-sdk-eg/requirements.txt | 2 +- huaweicloud-sdk-eg/setup.py | 4 +- .../huaweicloudsdkeihealth/v1/__init__.py | 31 + .../v1/eihealth_async_client.py | 543 +++++ .../v1/eihealth_client.py | 543 +++++ .../v1/model/__init__.py | 31 + .../v1/model/base_model.py | 142 ++ .../v1/model/base_model_dto.py | 231 ++ .../v1/model/bind_site_dto.py | 6 +- .../v1/model/cpi_receptor.py | 226 ++ .../v1/model/create_admet_job_req.py | 64 +- .../v1/model/create_cpi_job_req.py | 166 ++ .../v1/model/create_cpi_job_request.py | 139 ++ .../v1/model/create_cpi_job_response.py | 145 ++ .../v1/model/create_dock_job_req.py | 35 +- ...reate_drug_ligand_interaction2d_svg_req.py | 35 +- .../v1/model/create_gen_job_req.py | 338 +++ .../v1/model/create_gen_job_request.py | 139 ++ .../v1/model/create_gen_job_response.py | 145 ++ .../model/create_ligand_preview_task_req.py | 35 +- .../v1/model/create_model_req.py | 35 +- .../v1/model/create_optm_job_req.py | 31 +- .../v1/model/create_target_opt_job_req.py | 184 ++ .../v1/model/create_target_opt_job_request.py | 139 ++ .../model/create_target_opt_job_response.py | 145 ++ .../v1/model/fasta_receptor.py | 197 ++ .../v1/model/interaction.py | 166 ++ .../v1/model/interaction_constraint_dto.py | 167 ++ .../v1/model/interaction_type.py | 91 + .../v1/model/list_base_model_request.py | 202 ++ .../v1/model/list_base_model_response.py | 145 ++ .../v1/model/list_drug_model_request.py | 41 +- .../v1/model/md_param.py | 169 ++ .../v1/model/md_step_param.py | 202 ++ .../v1/model/model_dto.py | 64 +- .../v1/model/pocket_fragment.py | 31 +- .../v1/model/run_fasta_preprocess_req.py | 168 ++ .../v1/model/run_fasta_preprocess_request.py | 139 ++ .../v1/model/run_fasta_preprocess_response.py | 145 ++ .../v1/model/show_admet_job_response.py | 60 +- .../v1/model/show_cpi_job_request.py | 142 ++ .../v1/model/show_cpi_job_response.py | 170 ++ .../v1/model/show_docking_job_response.py | 31 +- .../v1/model/show_gen_job_request.py | 142 ++ .../v1/model/show_gen_job_response.py | 365 ++++ .../v1/model/show_optm_job_response.py | 27 +- .../v1/model/show_target_opt_job_request.py | 142 ++ .../v1/model/show_target_opt_job_response.py | 187 ++ .../v1/model/strong_constraint_dto.py | 31 +- .../v1/model/strong_constraint_type.py | 1 + .../v1/model/target_opt_ligand.py | 139 ++ .../v1/model/target_opt_receptor.py | 255 +++ .../v1/model/weak_constraint_dto.py | 31 +- .../v1/model/weak_constraint_type.py | 1 + huaweicloud-sdk-eihealth/requirements.txt | 2 +- huaweicloud-sdk-eihealth/setup.py | 4 +- huaweicloud-sdk-eip/requirements.txt | 2 +- huaweicloud-sdk-eip/setup.py | 4 +- huaweicloud-sdk-elb/requirements.txt | 2 +- huaweicloud-sdk-elb/setup.py | 4 +- huaweicloud-sdk-eps/requirements.txt | 2 +- huaweicloud-sdk-eps/setup.py | 4 +- huaweicloud-sdk-er/requirements.txt | 2 +- huaweicloud-sdk-er/setup.py | 4 +- huaweicloud-sdk-evs/requirements.txt | 2 +- huaweicloud-sdk-evs/setup.py | 4 +- huaweicloud-sdk-frs/requirements.txt | 2 +- huaweicloud-sdk-frs/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-functiongraph/setup.py | 4 +- huaweicloud-sdk-ga/requirements.txt | 2 +- huaweicloud-sdk-ga/setup.py | 4 +- huaweicloud-sdk-gaussdb/requirements.txt | 2 +- huaweicloud-sdk-gaussdb/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbfornosql/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbforopengauss/setup.py | 4 +- huaweicloud-sdk-geip/requirements.txt | 2 +- huaweicloud-sdk-geip/setup.py | 4 +- huaweicloud-sdk-ges/requirements.txt | 2 +- huaweicloud-sdk-ges/setup.py | 4 +- huaweicloud-sdk-gsl/requirements.txt | 2 +- huaweicloud-sdk-gsl/setup.py | 4 +- huaweicloud-sdk-hilens/requirements.txt | 2 +- huaweicloud-sdk-hilens/setup.py | 4 +- .../v5/model/image_local_info.py | 122 +- huaweicloud-sdk-hss/requirements.txt | 2 +- huaweicloud-sdk-hss/setup.py | 4 +- .../huaweicloudsdkiam/v3/iam_async_client.py | 138 +- .../huaweicloudsdkiam/v3/iam_client.py | 138 +- huaweicloud-sdk-iam/requirements.txt | 2 +- huaweicloud-sdk-iam/setup.py | 4 +- .../v1/iamaccessanalyzer_async_client.py | 4 +- .../v1/iamaccessanalyzer_client.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-iamaccessanalyzer/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-identitycenter/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-identitycenterstore/setup.py | 4 +- huaweicloud-sdk-idme/requirements.txt | 2 +- huaweicloud-sdk-idme/setup.py | 4 +- .../model/batch_create_using_post_request.py | 6 +- .../requirements.txt | 2 +- huaweicloud-sdk-idmeclassicapi/setup.py | 4 +- huaweicloud-sdk-iec/requirements.txt | 2 +- huaweicloud-sdk-iec/setup.py | 4 +- huaweicloud-sdk-ief/requirements.txt | 2 +- huaweicloud-sdk-ief/setup.py | 4 +- huaweicloud-sdk-image/requirements.txt | 2 +- huaweicloud-sdk-image/setup.py | 4 +- huaweicloud-sdk-imagesearch/requirements.txt | 2 +- huaweicloud-sdk-imagesearch/setup.py | 4 +- huaweicloud-sdk-ims/requirements.txt | 2 +- huaweicloud-sdk-ims/setup.py | 4 +- huaweicloud-sdk-iotanalytics/requirements.txt | 2 +- huaweicloud-sdk-iotanalytics/setup.py | 4 +- .../v5/region/iotda_region.py | 3 + huaweicloud-sdk-iotda/requirements.txt | 2 +- huaweicloud-sdk-iotda/setup.py | 4 +- huaweicloud-sdk-iotdm/LICENSE | 13 + huaweicloud-sdk-iotdm/README_PYPI.md | 1 + .../huaweicloudsdkiotdm/__init__.py | 0 .../huaweicloudsdkiotdm/v5/__init__.py | 46 + .../v5/iotdm_async_client.py | 690 ++++++ .../huaweicloudsdkiotdm/v5/iotdm_client.py | 687 ++++++ .../huaweicloudsdkiotdm/v5/model/__init__.py | 43 + .../v5/model/access_info.py | 343 +++ .../v5/model/additional_params.py | 252 +++ .../v5/model/additional_params_resp.py | 227 ++ .../v5/model/bind_instance_tags.py | 114 + .../v5/model/bind_instance_tags_request.py | 139 ++ .../v5/model/bind_instance_tags_response.py | 112 + .../v5/model/change_instance_charge_mode.py | 200 ++ .../change_instance_charge_mode_request.py | 139 ++ .../change_instance_charge_mode_response.py | 116 ++ .../v5/model/charge_info.py | 230 ++ .../v5/model/create_instance.py | 302 +++ .../v5/model/create_instance_request.py | 111 + .../v5/model/create_instance_response.py | 394 ++++ .../v5/model/delete_instance_request.py | 114 + .../v5/model/delete_instance_response.py | 112 + .../huaweicloudsdkiotdm/v5/model/flavor.py | 143 ++ .../v5/model/forwarding_info.py | 144 ++ .../v5/model/ip_allow_list.py | 143 ++ .../v5/model/ip_white_list.py | 143 ++ .../v5/model/list_instances_request.py | 231 ++ .../v5/model/list_instances_response.py | 174 ++ .../v5/model/operate_window.py | 142 ++ .../huaweicloudsdkiotdm/v5/model/port.py | 289 +++ .../v5/model/query_instance_simplify.py | 343 +++ .../v5/model/resize_instance.py | 168 ++ .../v5/model/resize_instance_request.py | 139 ++ .../v5/model/resize_instance_response.py | 116 ++ .../v5/model/show_instance_request.py | 114 + .../v5/model/show_instance_response.py | 510 +++++ .../huaweicloudsdkiotdm/v5/model/tag.py | 143 ++ .../v5/model/unbind_instance_tags.py | 114 + .../v5/model/unbind_instance_tags_request.py | 139 ++ .../v5/model/unbind_instance_tags_response.py | 112 + .../v5/model/update_access_info.py | 197 ++ .../v5/model/update_forwarding_info.py | 114 + .../v5/model/update_instance.py | 219 ++ .../v5/model/update_instance_request.py | 139 ++ .../v5/model/update_instance_response.py | 510 +++++ .../huaweicloudsdkiotdm/v5/region/__init__.py | 0 .../v5/region/iotdm_region.py | 58 + huaweicloud-sdk-iotdm/requirements.txt | 1 + huaweicloud-sdk-iotdm/setup.py | 55 + huaweicloud-sdk-iotedge/requirements.txt | 2 +- huaweicloud-sdk-iotedge/setup.py | 4 +- huaweicloud-sdk-ivs/requirements.txt | 2 +- huaweicloud-sdk-ivs/setup.py | 4 +- huaweicloud-sdk-kafka/requirements.txt | 2 +- huaweicloud-sdk-kafka/setup.py | 4 +- huaweicloud-sdk-kms/requirements.txt | 2 +- huaweicloud-sdk-kms/setup.py | 4 +- huaweicloud-sdk-koomessage/requirements.txt | 2 +- huaweicloud-sdk-koomessage/setup.py | 4 +- huaweicloud-sdk-kps/requirements.txt | 2 +- huaweicloud-sdk-kps/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-lakeformation/setup.py | 4 +- huaweicloud-sdk-live/requirements.txt | 2 +- huaweicloud-sdk-live/setup.py | 4 +- huaweicloud-sdk-lts/requirements.txt | 2 +- huaweicloud-sdk-lts/setup.py | 4 +- huaweicloud-sdk-mapds/requirements.txt | 2 +- huaweicloud-sdk-mapds/setup.py | 4 +- huaweicloud-sdk-mas/requirements.txt | 2 +- huaweicloud-sdk-mas/setup.py | 4 +- huaweicloud-sdk-meeting/requirements.txt | 2 +- huaweicloud-sdk-meeting/setup.py | 4 +- huaweicloud-sdk-metastudio/requirements.txt | 2 +- huaweicloud-sdk-metastudio/setup.py | 4 +- huaweicloud-sdk-moderation/requirements.txt | 2 +- huaweicloud-sdk-moderation/setup.py | 4 +- huaweicloud-sdk-mpc/requirements.txt | 2 +- huaweicloud-sdk-mpc/setup.py | 4 +- huaweicloud-sdk-mrs/requirements.txt | 2 +- huaweicloud-sdk-mrs/setup.py | 4 +- huaweicloud-sdk-msgsms/requirements.txt | 2 +- huaweicloud-sdk-msgsms/setup.py | 4 +- huaweicloud-sdk-mssi/requirements.txt | 2 +- huaweicloud-sdk-mssi/setup.py | 4 +- huaweicloud-sdk-nat/requirements.txt | 2 +- huaweicloud-sdk-nat/setup.py | 4 +- huaweicloud-sdk-nlp/requirements.txt | 2 +- huaweicloud-sdk-nlp/setup.py | 4 +- huaweicloud-sdk-obs/requirements.txt | 2 +- huaweicloud-sdk-obs/setup.py | 4 +- .../smart_document_recognizer_request_body.py | 31 +- huaweicloud-sdk-ocr/requirements.txt | 2 +- huaweicloud-sdk-ocr/setup.py | 4 +- huaweicloud-sdk-octopus/requirements.txt | 2 +- huaweicloud-sdk-octopus/setup.py | 4 +- huaweicloud-sdk-oms/requirements.txt | 2 +- huaweicloud-sdk-oms/setup.py | 4 +- huaweicloud-sdk-optverse/requirements.txt | 2 +- huaweicloud-sdk-optverse/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-organizations/setup.py | 4 +- huaweicloud-sdk-orgid/requirements.txt | 2 +- huaweicloud-sdk-orgid/setup.py | 4 +- huaweicloud-sdk-oroas/requirements.txt | 2 +- huaweicloud-sdk-oroas/setup.py | 4 +- huaweicloud-sdk-osm/requirements.txt | 2 +- huaweicloud-sdk-osm/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-pangulargemodels/setup.py | 4 +- huaweicloud-sdk-projectman/requirements.txt | 2 +- huaweicloud-sdk-projectman/setup.py | 4 +- huaweicloud-sdk-rabbitmq/requirements.txt | 2 +- huaweicloud-sdk-rabbitmq/setup.py | 4 +- huaweicloud-sdk-ram/requirements.txt | 2 +- huaweicloud-sdk-ram/setup.py | 4 +- huaweicloud-sdk-rds/requirements.txt | 2 +- huaweicloud-sdk-rds/setup.py | 4 +- huaweicloud-sdk-res/requirements.txt | 2 +- huaweicloud-sdk-res/setup.py | 4 +- huaweicloud-sdk-rgc/requirements.txt | 2 +- huaweicloud-sdk-rgc/setup.py | 4 +- huaweicloud-sdk-rms/requirements.txt | 2 +- huaweicloud-sdk-rms/setup.py | 4 +- huaweicloud-sdk-rocketmq/requirements.txt | 2 +- huaweicloud-sdk-rocketmq/setup.py | 4 +- huaweicloud-sdk-roma/requirements.txt | 2 +- huaweicloud-sdk-roma/setup.py | 4 +- huaweicloud-sdk-sa/requirements.txt | 2 +- huaweicloud-sdk-sa/setup.py | 4 +- huaweicloud-sdk-scm/requirements.txt | 2 +- huaweicloud-sdk-scm/setup.py | 4 +- huaweicloud-sdk-sdrs/requirements.txt | 2 +- huaweicloud-sdk-sdrs/setup.py | 4 +- huaweicloud-sdk-secmaster/requirements.txt | 2 +- huaweicloud-sdk-secmaster/setup.py | 4 +- huaweicloud-sdk-servicestage/requirements.txt | 2 +- huaweicloud-sdk-servicestage/setup.py | 4 +- huaweicloud-sdk-sfsturbo/requirements.txt | 2 +- huaweicloud-sdk-sfsturbo/setup.py | 4 +- huaweicloud-sdk-sis/requirements.txt | 2 +- huaweicloud-sdk-sis/setup.py | 4 +- huaweicloud-sdk-smn/requirements.txt | 2 +- huaweicloud-sdk-smn/setup.py | 4 +- huaweicloud-sdk-sms/requirements.txt | 2 +- huaweicloud-sdk-sms/setup.py | 4 +- huaweicloud-sdk-sts/requirements.txt | 2 +- huaweicloud-sdk-sts/setup.py | 4 +- huaweicloud-sdk-swr/requirements.txt | 2 +- huaweicloud-sdk-swr/setup.py | 4 +- huaweicloud-sdk-tics/requirements.txt | 2 +- huaweicloud-sdk-tics/setup.py | 4 +- huaweicloud-sdk-tms/requirements.txt | 2 +- huaweicloud-sdk-tms/setup.py | 4 +- huaweicloud-sdk-ugo/requirements.txt | 2 +- huaweicloud-sdk-ugo/setup.py | 4 +- huaweicloud-sdk-vas/requirements.txt | 2 +- huaweicloud-sdk-vas/setup.py | 4 +- huaweicloud-sdk-vcm/requirements.txt | 2 +- huaweicloud-sdk-vcm/setup.py | 4 +- huaweicloud-sdk-vod/requirements.txt | 2 +- huaweicloud-sdk-vod/setup.py | 4 +- ...tch_create_sub_network_interface_option.py | 122 +- .../create_sub_network_interface_option.py | 122 +- .../v3/model/sub_network_interface.py | 150 +- .../update_sub_network_interface_option.py | 35 +- .../update_traffic_mirror_session_option.py | 35 +- huaweicloud-sdk-vpc/requirements.txt | 2 +- huaweicloud-sdk-vpc/setup.py | 4 +- .../v1/model/create_endpoint_request_body.py | 20 +- .../v1/model/create_endpoint_response.py | 20 +- .../model/delete_endpoint_policy_response.py | 20 +- .../v1/model/endpoint_response_body.py | 20 +- .../list_endpoint_info_details_response.py | 20 +- .../update_endpoint_policy_request_body.py | 20 +- .../model/update_endpoint_policy_response.py | 20 +- .../model/update_endpoint_white_response.py | 45 +- .../v1/vpcep_async_client.py | 8 +- .../huaweicloudsdkvpcep/v1/vpcep_client.py | 8 +- huaweicloud-sdk-vpcep/requirements.txt | 2 +- huaweicloud-sdk-vpcep/setup.py | 4 +- huaweicloud-sdk-vpn/requirements.txt | 2 +- huaweicloud-sdk-vpn/setup.py | 4 +- .../model/create_premium_host_request_body.py | 118 +- huaweicloud-sdk-waf/requirements.txt | 2 +- huaweicloud-sdk-waf/setup.py | 4 +- huaweicloud-sdk-workspace/requirements.txt | 2 +- huaweicloud-sdk-workspace/setup.py | 4 +- .../huaweicloudsdkworkspaceapp/v1/__init__.py | 66 + .../v1/model/__init__.py | 66 + .../v1/model/app_category_enum.py | 95 + .../v1/model/app_server.py | 64 +- .../v1/model/app_server_status.py | 2 + .../v1/model/app_server_task_status.py | 2 + .../model/attach_image_server_app_request.py | 139 ++ .../model/attach_image_server_app_response.py | 116 ++ .../v1/model/attach_server_app_info.py | 144 ++ .../v1/model/attach_server_app_req.py | 114 + .../v1/model/authorize_obs_req.py | 114 + .../v1/model/authorize_obs_request.py | 111 + .../v1/model/authorize_obs_response.py | 315 +++ .../v1/model/base_server_group.py | 180 +- .../v1/model/batch_delete_image_server_req.py | 143 ++ .../batch_delete_image_server_request.py | 111 + .../batch_delete_image_server_response.py | 116 ++ .../model/batch_delete_warehouse_app_req.py | 114 + .../batch_delete_warehouse_app_request.py | 111 + .../batch_delete_warehouse_app_response.py | 85 + .../v1/model/batch_rejoin_domain_req.py | 6 +- .../v1/model/check_quota_request.py | 31 +- .../v1/model/create_app_server_req.py | 31 +- .../v1/model/create_image_server_req.py | 610 ++++++ .../v1/model/create_image_server_request.py | 140 ++ .../v1/model/create_image_server_response.py | 116 ++ .../v1/model/create_server_group_req.py | 151 +- .../v1/model/create_server_group_response.py | 205 +- .../v1/model/create_server_image_req.py | 172 ++ .../v1/model/create_warehouse_app_req.py | 333 +++ .../v1/model/create_warehouse_app_request.py | 111 + .../v1/model/create_warehouse_app_response.py | 597 ++++++ .../v1/model/image_account_info.py | 171 ++ .../v1/model/image_job_detail_info.py | 331 +++ .../v1/model/image_job_detail_status.py | 93 + .../v1/model/image_job_execute_info.py | 144 ++ .../v1/model/image_job_info.py | 252 +++ .../v1/model/image_job_resource_info.py | 144 ++ .../v1/model/image_job_status.py | 90 + .../v1/model/image_job_type.py | 89 + .../v1/model/image_ref.py | 200 ++ .../v1/model/image_server.py | 484 +++++ .../v1/model/image_server_status.py | 93 + .../v1/model/job_type.py | 3 + .../v1/model/list_app_connection_response.py | 6 +- .../list_app_group_authorization_response.py | 6 +- .../v1/model/list_app_group_response.py | 6 +- .../v1/model/list_image_servers_request.py | 231 ++ .../v1/model/list_image_servers_response.py | 145 ++ ...list_latest_attached_server_app_request.py | 114 + ...ist_latest_attached_server_app_response.py | 116 ++ .../model/list_persistent_storage_response.py | 6 +- .../v1/model/list_policy_group_response.py | 6 +- .../v1/model/list_policy_template_response.py | 6 +- .../v1/model/list_product_request.py | 31 +- .../v1/model/list_published_app_response.py | 6 +- .../v1/model/list_server_groups_request.py | 93 +- .../v1/model/list_server_groups_response.py | 6 +- .../model/list_server_metric_data_request.py | 282 +++ .../model/list_server_metric_data_response.py | 116 ++ .../v1/model/list_servers_response.py | 6 +- .../v1/model/list_sessions_request.py | 374 ++++ .../v1/model/list_sessions_response.py | 145 ++ .../v1/model/list_share_folder_response.py | 6 +- .../model/list_storage_assignment_response.py | 6 +- .../list_storage_policy_statement_response.py | 6 +- .../v1/model/list_user_connection_response.py | 6 +- .../v1/model/list_warehouse_apps_request.py | 260 +++ .../v1/model/list_warehouse_apps_response.py | 145 ++ .../v1/model/obs_policy_statement.py | 169 ++ .../v1/model/page_resp.py | 6 +- ...clipboard_clipboard_redirection_options.py | 122 +- .../v1/model/policy.py | 140 ++ .../v1/model/policy_effect_enum.py | 88 + .../v1/model/product_info.py | 31 +- .../v1/model/publish_app_response.py | 6 +- .../v1/model/recreate_server_image_request.py | 139 ++ .../model/recreate_server_image_response.py | 116 ++ .../v1/model/server_data_points.py | 289 +++ .../v1/model/server_group.py | 205 +- .../v1/model/server_metric_data.py | 173 ++ .../v1/model/session_info.py | 869 ++++++++ .../v1/model/show_image_job_request.py | 114 + .../v1/model/show_image_job_response.py | 282 +++ .../v1/model/show_publishable_app_response.py | 6 +- .../v1/model/show_server_vnc_request.py | 114 + .../v1/model/show_server_vnc_response.py | 174 ++ .../v1/model/string_set.py | 6 +- .../v1/model/tms_tag.py | 143 ++ .../v1/model/update_image_server_req.py | 144 ++ .../v1/model/update_image_server_request.py | 139 ++ .../v1/model/update_image_server_response.py | 85 + .../v1/model/update_server_group_req.py | 35 +- .../v1/model/update_warehouse_app_req.py | 281 +++ .../v1/model/update_warehouse_app_request.py | 139 ++ .../v1/model/update_warehouse_app_response.py | 85 + .../upload_warehouse_app_icon_request.py | 111 + .../upload_warehouse_app_icon_request_body.py | 115 + .../upload_warehouse_app_icon_response.py | 116 ++ .../v1/model/usb_port_redirection_options.py | 6 +- .../v1/model/verify_status_enum.py | 89 + .../v1/model/warehouse_app.py | 596 ++++++ .../v1/model/wdh_param.py | 12 +- .../v1/workspaceapp_async_client.py | 1851 ++++++++++++++--- .../v1/workspaceapp_client.py | 1851 ++++++++++++++--- huaweicloud-sdk-workspaceapp/requirements.txt | 2 +- huaweicloud-sdk-workspaceapp/setup.py | 4 +- 605 files changed, 41895 insertions(+), 1960 deletions(-) create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder_configuration.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_response.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_response.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_response.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_create_time_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_default_version_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_description_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_name_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_update_time_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_create_time_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_description_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py create mode 100644 huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model_dto.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/cpi_receptor.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_req.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/fasta_receptor.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_type.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_param.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_step_param.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_ligand.py create mode 100644 huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_receptor.py create mode 100644 huaweicloud-sdk-iotdm/LICENSE create mode 100644 huaweicloud-sdk-iotdm/README_PYPI.md create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/__init__.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/__init__.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_async_client.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_client.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/__init__.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/access_info.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params_resp.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/charge_info.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/flavor.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/forwarding_info.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_allow_list.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_white_list.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/operate_window.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/port.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/query_instance_simplify.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/tag.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_access_info.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_forwarding_info.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_request.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_response.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/__init__.py create mode 100644 huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/iotdm_region.py create mode 100644 huaweicloud-sdk-iotdm/requirements.txt create mode 100644 huaweicloud-sdk-iotdm/setup.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_category_enum.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_image_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_account_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_status.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_execute_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_resource_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_status.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_type.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_ref.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server_status.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/obs_policy_statement.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_effect_enum.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_data_points.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_metric_data.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_info.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/tms_tag.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_req.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request_body.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_response.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/verify_status_enum.py create mode 100644 huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/warehouse_app.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 19b394313f..7e6be1848f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,373 @@ +# 3.1.109 2024-08-08 + +### HuaweiCloud SDK Config + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListRemediationExceptions** + - changes of request param + - `- resource_name` + +### HuaweiCloud SDK DGC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateJob** + - changes of request param + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **UpdateJob** + - changes of request param + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **CreateSupplementdata** + - changes of request param + - `+ dependJobs.cleanOverdueDays` + - `+ dependJobs.cleanWaitingJob` + - `+ dependJobs.emptyRunningJob` + +### HuaweiCloud SDK eiHealth + +- _Features_ + - Support the following APIs: + - `CreateCpiJob` + - `ShowCpiJob` + - `CreateTargetOptJob` + - `ShowTargetOptJob` + - `CreateGenJob` + - `ShowGenJob` + - `RunFastaPreprocess` + - `ListBaseModel` +- _Bug Fix_ + - None +- _Change_ + - **CreateAdmetJob** + - changes of request param + - `+ base_model_id` + - `+ save_fingerprint` + - **ShowAdmetJob** + - changes of response param + - `+ base_model` + - `+ save_fingerprint` + - **CreatePocketMolDesignJob** + - changes of request param + - `+ ligands.name` + - **ShowPocketMolDesignJob** + - changes of response param + - `+ ligands.name` + - **CreateDrugLigandInteraction2dSvg** + - changes of request param + - `+ name` + - **CreateDrugLigandPreviewTask** + - changes of request param + - `+ generate_3d` + - **CreateOptmJob** + - changes of request param + - `+ base_model_id` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **ShowOptmJob** + - changes of response param + - `+ base_model` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **CreateDockingJob** + - changes of request param + - `+ engine` + - **ShowDockingJob** + - changes of response param + - `+ engine` + - **CreateDrugModel** + - changes of request param + - `+ base_model_id` + - **ListDrugModel** + - changes of request param + - `+ base_model_list` + - changes of response param + - `+ models.base_model_id` + - `+ models.base_model_name` + +### HuaweiCloud SDK HSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListImageLocal** + - changes of response param + - `+ data_list.severity_level` + - `+ data_list.host_name` + - `+ data_list.host_id` + - `+ data_list.agent_id` + +### HuaweiCloud SDK OCR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeSmartDocumentRecognizer** + - changes of request param + - `+ single_orientation_mode` + +### HuaweiCloud SDK VPC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListSubNetworkInterfaces** + - changes of response param + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **CreateSubNetworkInterface** + - changes of request param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - changes of response param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **BatchCreateSubNetworkInterface** + - changes of request param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - changes of response param + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **ShowSubNetworkInterface** + - changes of response param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **UpdateSubNetworkInterface** + - changes of request param + - `+ sub_network_interface.allowed_address_pairs` + - changes of response param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **MigrateSubNetworkInterface** + - changes of response param + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **UpdateTrafficMirrorSession** + - changes of request param + - `- traffic_mirror_session.type` + +### HuaweiCloud SDK WAF + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreatePremiumHost** + - changes of request param + - `+ mode` + - `+ loadbalancer_id` + - `+ listener_id` + - `+ protocol_port` + +### HuaweiCloud SDK WorkspaceApp + +- _Features_ + - Support the following APIs: + - `AuthorizeObs` + - `UploadWarehouseAppIcon` + - `ListWarehouseApps` + - `CreateWarehouseApp` + - `UpdateWarehouseApp` + - `BatchDeleteWarehouseApp` + - `ListSessions` + - `ShowServerVnc` + - `ListServerMetricData` + - `ShowImageJob` + - `ListImageServers` + - `CreateImageServer` + - `UpdateImageServer` + - `BatchDeleteImageServer` + - `AttachImageServerApp` + - `ListLatestAttachedServerApp` + - `RecreateServerImage` +- _Bug Fix_ + - None +- _Change_ + - **UpdateServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchStartServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchRejoinDomain** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchMigrateHostsServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchUpdateTsvi** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **UpdateAppGroup** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **UpdateApp** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchRebootServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchStopServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **UpdateServerGroup** + - changes of request param + - `* X-Auth-Token: required -> optional` + - `+ server_group_status` + - **ListProduct** + - changes of request param + - `+ flavor_id` + - changes of response param + - `+ products.series_type` + - **CreateAppServers** + - changes of request param + - `+ flavor_id` + - **CheckQuota** + - changes of request param + - `+ flavor_id` + - **ListServers** + - changes of response param + - `+ items.enterprise_project_id` + - `+ items.tags` + - `+ items.job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - `+ items.product_info.series_type` + - `+ items.vm_status: enum value [BUILD_SNAPSHOT,RESTORE_SNAPSHOT]` + - `+ items.task_status: enum value [build_snapshot,restore_snapshot]` + - **CreateServerGroup** + - changes of request param + - `+ flavor_id` + - `+ tags` + - `+ enterprise_project_id` + - `+ primary_server_group_id` + - `+ server_group_status` + - changes of response param + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ product_info.series_type` + - **ListServerGroups** + - changes of request param + - `+ tags` + - `+ enterprise_project_id` + - `+ is_secondary_server_group` + - changes of response param + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ items.enterprise_project_id` + - `+ items.primary_server_group_ids` + - `+ items.secondary_server_group_ids` + - `+ items.server_group_status` + - `+ items.site_type` + - `+ items.site_id` + - `+ items.tags` + - `+ items.product_info.series_type` + - **ShowJobDetail** + - changes of response param + - `+ job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - **ShowOriginalPolicyInfo** + - changes of response param + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyGroup** + - changes of response param + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyGroup** + - changes of request param + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyGroup** + - changes of request param + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyTemplate** + - changes of response param + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyTemplate** + - changes of request param + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyTemplate** + - changes of request param + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + # 3.1.108 2024-08-01 ### HuaweiCloud SDK BSSINTL diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 1598aad37d..6843538151 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,373 @@ +# 3.1.109 2024-08-08 + +### HuaweiCloud SDK Config + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListRemediationExceptions** + - 请求参数变更 + - `- resource_name` + +### HuaweiCloud SDK DGC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateJob** + - 请求参数变更 + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **UpdateJob** + - 请求参数变更 + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **CreateSupplementdata** + - 请求参数变更 + - `+ dependJobs.cleanOverdueDays` + - `+ dependJobs.cleanWaitingJob` + - `+ dependJobs.emptyRunningJob` + +### HuaweiCloud SDK eiHealth + +- _新增特性_ + - 支持以下接口: + - `CreateCpiJob` + - `ShowCpiJob` + - `CreateTargetOptJob` + - `ShowTargetOptJob` + - `CreateGenJob` + - `ShowGenJob` + - `RunFastaPreprocess` + - `ListBaseModel` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateAdmetJob** + - 请求参数变更 + - `+ base_model_id` + - `+ save_fingerprint` + - **ShowAdmetJob** + - 响应参数变更 + - `+ base_model` + - `+ save_fingerprint` + - **CreatePocketMolDesignJob** + - 请求参数变更 + - `+ ligands.name` + - **ShowPocketMolDesignJob** + - 响应参数变更 + - `+ ligands.name` + - **CreateDrugLigandInteraction2dSvg** + - 请求参数变更 + - `+ name` + - **CreateDrugLigandPreviewTask** + - 请求参数变更 + - `+ generate_3d` + - **CreateOptmJob** + - 请求参数变更 + - `+ base_model_id` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **ShowOptmJob** + - 响应参数变更 + - `+ base_model` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **CreateDockingJob** + - 请求参数变更 + - `+ engine` + - **ShowDockingJob** + - 响应参数变更 + - `+ engine` + - **CreateDrugModel** + - 请求参数变更 + - `+ base_model_id` + - **ListDrugModel** + - 请求参数变更 + - `+ base_model_list` + - 响应参数变更 + - `+ models.base_model_id` + - `+ models.base_model_name` + +### HuaweiCloud SDK HSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListImageLocal** + - 响应参数变更 + - `+ data_list.severity_level` + - `+ data_list.host_name` + - `+ data_list.host_id` + - `+ data_list.agent_id` + +### HuaweiCloud SDK OCR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeSmartDocumentRecognizer** + - 请求参数变更 + - `+ single_orientation_mode` + +### HuaweiCloud SDK VPC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListSubNetworkInterfaces** + - 响应参数变更 + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **CreateSubNetworkInterface** + - 请求参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - 响应参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **BatchCreateSubNetworkInterface** + - 请求参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - 响应参数变更 + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **ShowSubNetworkInterface** + - 响应参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **UpdateSubNetworkInterface** + - 请求参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - 响应参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **MigrateSubNetworkInterface** + - 响应参数变更 + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **UpdateTrafficMirrorSession** + - 请求参数变更 + - `- traffic_mirror_session.type` + +### HuaweiCloud SDK WAF + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreatePremiumHost** + - 请求参数变更 + - `+ mode` + - `+ loadbalancer_id` + - `+ listener_id` + - `+ protocol_port` + +### HuaweiCloud SDK WorkspaceApp + +- _新增特性_ + - 支持以下接口: + - `AuthorizeObs` + - `UploadWarehouseAppIcon` + - `ListWarehouseApps` + - `CreateWarehouseApp` + - `UpdateWarehouseApp` + - `BatchDeleteWarehouseApp` + - `ListSessions` + - `ShowServerVnc` + - `ListServerMetricData` + - `ShowImageJob` + - `ListImageServers` + - `CreateImageServer` + - `UpdateImageServer` + - `BatchDeleteImageServer` + - `AttachImageServerApp` + - `ListLatestAttachedServerApp` + - `RecreateServerImage` +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchStartServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchRejoinDomain** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchMigrateHostsServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchUpdateTsvi** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **UpdateAppGroup** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **UpdateApp** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchRebootServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchStopServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **UpdateServerGroup** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - `+ server_group_status` + - **ListProduct** + - 请求参数变更 + - `+ flavor_id` + - 响应参数变更 + - `+ products.series_type` + - **CreateAppServers** + - 请求参数变更 + - `+ flavor_id` + - **CheckQuota** + - 请求参数变更 + - `+ flavor_id` + - **ListServers** + - 响应参数变更 + - `+ items.enterprise_project_id` + - `+ items.tags` + - `+ items.job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - `+ items.product_info.series_type` + - `+ items.vm_status: enum value [BUILD_SNAPSHOT,RESTORE_SNAPSHOT]` + - `+ items.task_status: enum value [build_snapshot,restore_snapshot]` + - **CreateServerGroup** + - 请求参数变更 + - `+ flavor_id` + - `+ tags` + - `+ enterprise_project_id` + - `+ primary_server_group_id` + - `+ server_group_status` + - 响应参数变更 + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ product_info.series_type` + - **ListServerGroups** + - 请求参数变更 + - `+ tags` + - `+ enterprise_project_id` + - `+ is_secondary_server_group` + - 响应参数变更 + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ items.enterprise_project_id` + - `+ items.primary_server_group_ids` + - `+ items.secondary_server_group_ids` + - `+ items.server_group_status` + - `+ items.site_type` + - `+ items.site_id` + - `+ items.tags` + - `+ items.product_info.series_type` + - **ShowJobDetail** + - 响应参数变更 + - `+ job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - **ShowOriginalPolicyInfo** + - 响应参数变更 + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyGroup** + - 响应参数变更 + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyGroup** + - 请求参数变更 + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyGroup** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyTemplate** + - 响应参数变更 + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyTemplate** + - 请求参数变更 + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyTemplate** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + # 3.1.108 2024-08-01 ### HuaweiCloud SDK BSSINTL diff --git a/VERSION b/VERSION index d904254e61..8dd544f29c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.108 +3.1.109 diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index cfc907fd3a..4443f0b882 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 4495ee427e..610b141a1e 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,163 +1,164 @@ -huaweicloudsdkcore == 3.1.108 -huaweicloudsdkaad == 3.1.108 -huaweicloudsdkantiddos == 3.1.108 -huaweicloudsdkaom == 3.1.108 -huaweicloudsdkaos == 3.1.108 -huaweicloudsdkapig == 3.1.108 -huaweicloudsdkapm == 3.1.108 -huaweicloudsdkas == 3.1.108 -huaweicloudsdkasm == 3.1.108 -huaweicloudsdkbcs == 3.1.108 -huaweicloudsdkbms == 3.1.108 -huaweicloudsdkbss == 3.1.108 -huaweicloudsdkbssintl == 3.1.108 -huaweicloudsdkcae == 3.1.108 -huaweicloudsdkcampusgo == 3.1.108 -huaweicloudsdkcbh == 3.1.108 -huaweicloudsdkcbr == 3.1.108 -huaweicloudsdkcbs == 3.1.108 -huaweicloudsdkcc == 3.1.108 -huaweicloudsdkcce == 3.1.108 -huaweicloudsdkccm == 3.1.108 -huaweicloudsdkcdm == 3.1.108 -huaweicloudsdkcdn == 3.1.108 -huaweicloudsdkces == 3.1.108 -huaweicloudsdkcfw == 3.1.108 -huaweicloudsdkcgs == 3.1.108 -huaweicloudsdkclassroom == 3.1.108 -huaweicloudsdkcloudide == 3.1.108 -huaweicloudsdkcloudpond == 3.1.108 -huaweicloudsdkcloudrtc == 3.1.108 -huaweicloudsdkcloudtable == 3.1.108 -huaweicloudsdkcloudtest == 3.1.108 -huaweicloudsdkcodeartsartifact == 3.1.108 -huaweicloudsdkcodeartsbuild == 3.1.108 -huaweicloudsdkcodeartscheck == 3.1.108 -huaweicloudsdkcodeartsdeploy == 3.1.108 -huaweicloudsdkcodeartsgovernance == 3.1.108 -huaweicloudsdkcodeartsinspector == 3.1.108 -huaweicloudsdkcodeartspipeline == 3.1.108 -huaweicloudsdkcodecraft == 3.1.108 -huaweicloudsdkcodehub == 3.1.108 -huaweicloudsdkconfig == 3.1.108 -huaweicloudsdkcph == 3.1.108 -huaweicloudsdkcpts == 3.1.108 -huaweicloudsdkcse == 3.1.108 -huaweicloudsdkcsms == 3.1.108 -huaweicloudsdkcss == 3.1.108 -huaweicloudsdkcts == 3.1.108 -huaweicloudsdkdas == 3.1.108 -huaweicloudsdkdataartsstudio == 3.1.108 -huaweicloudsdkdbss == 3.1.108 -huaweicloudsdkdc == 3.1.108 -huaweicloudsdkdcs == 3.1.108 -huaweicloudsdkddm == 3.1.108 -huaweicloudsdkdds == 3.1.108 -huaweicloudsdkdeh == 3.1.108 -huaweicloudsdkdevstar == 3.1.108 -huaweicloudsdkdgc == 3.1.108 -huaweicloudsdkdis == 3.1.108 -huaweicloudsdkdlf == 3.1.108 -huaweicloudsdkdli == 3.1.108 -huaweicloudsdkdns == 3.1.108 -huaweicloudsdkdris == 3.1.108 -huaweicloudsdkdrs == 3.1.108 -huaweicloudsdkdsc == 3.1.108 -huaweicloudsdkdwr == 3.1.108 -huaweicloudsdkdws == 3.1.108 -huaweicloudsdkec == 3.1.108 -huaweicloudsdkecs == 3.1.108 -huaweicloudsdkedgesec == 3.1.108 -huaweicloudsdkeg == 3.1.108 -huaweicloudsdkeihealth == 3.1.108 -huaweicloudsdkeip == 3.1.108 -huaweicloudsdkelb == 3.1.108 -huaweicloudsdkeps == 3.1.108 -huaweicloudsdker == 3.1.108 -huaweicloudsdkevs == 3.1.108 -huaweicloudsdkfrs == 3.1.108 -huaweicloudsdkfunctiongraph == 3.1.108 -huaweicloudsdkga == 3.1.108 -huaweicloudsdkgaussdb == 3.1.108 -huaweicloudsdkgaussdbfornosql == 3.1.108 -huaweicloudsdkgaussdbforopengauss == 3.1.108 -huaweicloudsdkgeip == 3.1.108 -huaweicloudsdkges == 3.1.108 -huaweicloudsdkgsl == 3.1.108 -huaweicloudsdkhilens == 3.1.108 -huaweicloudsdkhss == 3.1.108 -huaweicloudsdkiam == 3.1.108 -huaweicloudsdkiamaccessanalyzer == 3.1.108 -huaweicloudsdkidentitycenter == 3.1.108 -huaweicloudsdkidentitycenterstore == 3.1.108 -huaweicloudsdkidme == 3.1.108 -huaweicloudsdkidmeclassicapi == 3.1.108 -huaweicloudsdkiec == 3.1.108 -huaweicloudsdkief == 3.1.108 -huaweicloudsdkimage == 3.1.108 -huaweicloudsdkimagesearch == 3.1.108 -huaweicloudsdkims == 3.1.108 -huaweicloudsdkiotanalytics == 3.1.108 -huaweicloudsdkiotda == 3.1.108 -huaweicloudsdkiotedge == 3.1.108 -huaweicloudsdkivs == 3.1.108 -huaweicloudsdkkafka == 3.1.108 -huaweicloudsdkkms == 3.1.108 -huaweicloudsdkkoomessage == 3.1.108 -huaweicloudsdkkps == 3.1.108 -huaweicloudsdklakeformation == 3.1.108 -huaweicloudsdklive == 3.1.108 -huaweicloudsdklts == 3.1.108 -huaweicloudsdkmapds == 3.1.108 -huaweicloudsdkmas == 3.1.108 -huaweicloudsdkmeeting == 3.1.108 -huaweicloudsdkmetastudio == 3.1.108 -huaweicloudsdkmoderation == 3.1.108 -huaweicloudsdkmpc == 3.1.108 -huaweicloudsdkmrs == 3.1.108 -huaweicloudsdkmsgsms == 3.1.108 -huaweicloudsdkmssi == 3.1.108 -huaweicloudsdknat == 3.1.108 -huaweicloudsdknlp == 3.1.108 -huaweicloudsdkobs == 3.1.108 -huaweicloudsdkocr == 3.1.108 -huaweicloudsdkoctopus == 3.1.108 -huaweicloudsdkoms == 3.1.108 -huaweicloudsdkoptverse == 3.1.108 -huaweicloudsdkorganizations == 3.1.108 -huaweicloudsdkorgid == 3.1.108 -huaweicloudsdkoroas == 3.1.108 -huaweicloudsdkosm == 3.1.108 -huaweicloudsdkpangulargemodels == 3.1.108 -huaweicloudsdkprojectman == 3.1.108 -huaweicloudsdkrabbitmq == 3.1.108 -huaweicloudsdkram == 3.1.108 -huaweicloudsdkrds == 3.1.108 -huaweicloudsdkres == 3.1.108 -huaweicloudsdkrgc == 3.1.108 -huaweicloudsdkrms == 3.1.108 -huaweicloudsdkrocketmq == 3.1.108 -huaweicloudsdkroma == 3.1.108 -huaweicloudsdksa == 3.1.108 -huaweicloudsdkscm == 3.1.108 -huaweicloudsdksdrs == 3.1.108 -huaweicloudsdksecmaster == 3.1.108 -huaweicloudsdkservicestage == 3.1.108 -huaweicloudsdksfsturbo == 3.1.108 -huaweicloudsdksis == 3.1.108 -huaweicloudsdksmn == 3.1.108 -huaweicloudsdksms == 3.1.108 -huaweicloudsdksts == 3.1.108 -huaweicloudsdkswr == 3.1.108 -huaweicloudsdktics == 3.1.108 -huaweicloudsdktms == 3.1.108 -huaweicloudsdkugo == 3.1.108 -huaweicloudsdkvas == 3.1.108 -huaweicloudsdkvcm == 3.1.108 -huaweicloudsdkvod == 3.1.108 -huaweicloudsdkvpc == 3.1.108 -huaweicloudsdkvpcep == 3.1.108 -huaweicloudsdkvpn == 3.1.108 -huaweicloudsdkwaf == 3.1.108 -huaweicloudsdkworkspace == 3.1.108 -huaweicloudsdkworkspaceapp == 3.1.108 +huaweicloudsdkcore == 3.1.109 +huaweicloudsdkaad == 3.1.109 +huaweicloudsdkantiddos == 3.1.109 +huaweicloudsdkaom == 3.1.109 +huaweicloudsdkaos == 3.1.109 +huaweicloudsdkapig == 3.1.109 +huaweicloudsdkapm == 3.1.109 +huaweicloudsdkas == 3.1.109 +huaweicloudsdkasm == 3.1.109 +huaweicloudsdkbcs == 3.1.109 +huaweicloudsdkbms == 3.1.109 +huaweicloudsdkbss == 3.1.109 +huaweicloudsdkbssintl == 3.1.109 +huaweicloudsdkcae == 3.1.109 +huaweicloudsdkcampusgo == 3.1.109 +huaweicloudsdkcbh == 3.1.109 +huaweicloudsdkcbr == 3.1.109 +huaweicloudsdkcbs == 3.1.109 +huaweicloudsdkcc == 3.1.109 +huaweicloudsdkcce == 3.1.109 +huaweicloudsdkccm == 3.1.109 +huaweicloudsdkcdm == 3.1.109 +huaweicloudsdkcdn == 3.1.109 +huaweicloudsdkces == 3.1.109 +huaweicloudsdkcfw == 3.1.109 +huaweicloudsdkcgs == 3.1.109 +huaweicloudsdkclassroom == 3.1.109 +huaweicloudsdkcloudide == 3.1.109 +huaweicloudsdkcloudpond == 3.1.109 +huaweicloudsdkcloudrtc == 3.1.109 +huaweicloudsdkcloudtable == 3.1.109 +huaweicloudsdkcloudtest == 3.1.109 +huaweicloudsdkcodeartsartifact == 3.1.109 +huaweicloudsdkcodeartsbuild == 3.1.109 +huaweicloudsdkcodeartscheck == 3.1.109 +huaweicloudsdkcodeartsdeploy == 3.1.109 +huaweicloudsdkcodeartsgovernance == 3.1.109 +huaweicloudsdkcodeartsinspector == 3.1.109 +huaweicloudsdkcodeartspipeline == 3.1.109 +huaweicloudsdkcodecraft == 3.1.109 +huaweicloudsdkcodehub == 3.1.109 +huaweicloudsdkconfig == 3.1.109 +huaweicloudsdkcph == 3.1.109 +huaweicloudsdkcpts == 3.1.109 +huaweicloudsdkcse == 3.1.109 +huaweicloudsdkcsms == 3.1.109 +huaweicloudsdkcss == 3.1.109 +huaweicloudsdkcts == 3.1.109 +huaweicloudsdkdas == 3.1.109 +huaweicloudsdkdataartsstudio == 3.1.109 +huaweicloudsdkdbss == 3.1.109 +huaweicloudsdkdc == 3.1.109 +huaweicloudsdkdcs == 3.1.109 +huaweicloudsdkddm == 3.1.109 +huaweicloudsdkdds == 3.1.109 +huaweicloudsdkdeh == 3.1.109 +huaweicloudsdkdevstar == 3.1.109 +huaweicloudsdkdgc == 3.1.109 +huaweicloudsdkdis == 3.1.109 +huaweicloudsdkdlf == 3.1.109 +huaweicloudsdkdli == 3.1.109 +huaweicloudsdkdns == 3.1.109 +huaweicloudsdkdris == 3.1.109 +huaweicloudsdkdrs == 3.1.109 +huaweicloudsdkdsc == 3.1.109 +huaweicloudsdkdwr == 3.1.109 +huaweicloudsdkdws == 3.1.109 +huaweicloudsdkec == 3.1.109 +huaweicloudsdkecs == 3.1.109 +huaweicloudsdkedgesec == 3.1.109 +huaweicloudsdkeg == 3.1.109 +huaweicloudsdkeihealth == 3.1.109 +huaweicloudsdkeip == 3.1.109 +huaweicloudsdkelb == 3.1.109 +huaweicloudsdkeps == 3.1.109 +huaweicloudsdker == 3.1.109 +huaweicloudsdkevs == 3.1.109 +huaweicloudsdkfrs == 3.1.109 +huaweicloudsdkfunctiongraph == 3.1.109 +huaweicloudsdkga == 3.1.109 +huaweicloudsdkgaussdb == 3.1.109 +huaweicloudsdkgaussdbfornosql == 3.1.109 +huaweicloudsdkgaussdbforopengauss == 3.1.109 +huaweicloudsdkgeip == 3.1.109 +huaweicloudsdkges == 3.1.109 +huaweicloudsdkgsl == 3.1.109 +huaweicloudsdkhilens == 3.1.109 +huaweicloudsdkhss == 3.1.109 +huaweicloudsdkiam == 3.1.109 +huaweicloudsdkiamaccessanalyzer == 3.1.109 +huaweicloudsdkidentitycenter == 3.1.109 +huaweicloudsdkidentitycenterstore == 3.1.109 +huaweicloudsdkidme == 3.1.109 +huaweicloudsdkidmeclassicapi == 3.1.109 +huaweicloudsdkiec == 3.1.109 +huaweicloudsdkief == 3.1.109 +huaweicloudsdkimage == 3.1.109 +huaweicloudsdkimagesearch == 3.1.109 +huaweicloudsdkims == 3.1.109 +huaweicloudsdkiotanalytics == 3.1.109 +huaweicloudsdkiotda == 3.1.109 +huaweicloudsdkiotdm == 3.1.109 +huaweicloudsdkiotedge == 3.1.109 +huaweicloudsdkivs == 3.1.109 +huaweicloudsdkkafka == 3.1.109 +huaweicloudsdkkms == 3.1.109 +huaweicloudsdkkoomessage == 3.1.109 +huaweicloudsdkkps == 3.1.109 +huaweicloudsdklakeformation == 3.1.109 +huaweicloudsdklive == 3.1.109 +huaweicloudsdklts == 3.1.109 +huaweicloudsdkmapds == 3.1.109 +huaweicloudsdkmas == 3.1.109 +huaweicloudsdkmeeting == 3.1.109 +huaweicloudsdkmetastudio == 3.1.109 +huaweicloudsdkmoderation == 3.1.109 +huaweicloudsdkmpc == 3.1.109 +huaweicloudsdkmrs == 3.1.109 +huaweicloudsdkmsgsms == 3.1.109 +huaweicloudsdkmssi == 3.1.109 +huaweicloudsdknat == 3.1.109 +huaweicloudsdknlp == 3.1.109 +huaweicloudsdkobs == 3.1.109 +huaweicloudsdkocr == 3.1.109 +huaweicloudsdkoctopus == 3.1.109 +huaweicloudsdkoms == 3.1.109 +huaweicloudsdkoptverse == 3.1.109 +huaweicloudsdkorganizations == 3.1.109 +huaweicloudsdkorgid == 3.1.109 +huaweicloudsdkoroas == 3.1.109 +huaweicloudsdkosm == 3.1.109 +huaweicloudsdkpangulargemodels == 3.1.109 +huaweicloudsdkprojectman == 3.1.109 +huaweicloudsdkrabbitmq == 3.1.109 +huaweicloudsdkram == 3.1.109 +huaweicloudsdkrds == 3.1.109 +huaweicloudsdkres == 3.1.109 +huaweicloudsdkrgc == 3.1.109 +huaweicloudsdkrms == 3.1.109 +huaweicloudsdkrocketmq == 3.1.109 +huaweicloudsdkroma == 3.1.109 +huaweicloudsdksa == 3.1.109 +huaweicloudsdkscm == 3.1.109 +huaweicloudsdksdrs == 3.1.109 +huaweicloudsdksecmaster == 3.1.109 +huaweicloudsdkservicestage == 3.1.109 +huaweicloudsdksfsturbo == 3.1.109 +huaweicloudsdksis == 3.1.109 +huaweicloudsdksmn == 3.1.109 +huaweicloudsdksms == 3.1.109 +huaweicloudsdksts == 3.1.109 +huaweicloudsdkswr == 3.1.109 +huaweicloudsdktics == 3.1.109 +huaweicloudsdktms == 3.1.109 +huaweicloudsdkugo == 3.1.109 +huaweicloudsdkvas == 3.1.109 +huaweicloudsdkvcm == 3.1.109 +huaweicloudsdkvod == 3.1.109 +huaweicloudsdkvpc == 3.1.109 +huaweicloudsdkvpcep == 3.1.109 +huaweicloudsdkvpn == 3.1.109 +huaweicloudsdkwaf == 3.1.109 +huaweicloudsdkworkspace == 3.1.109 +huaweicloudsdkworkspaceapp == 3.1.109 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 9a398c1f01..68566c7fbd 100644 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,169 +34,170 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.108', - 'huaweicloudsdkaad==3.1.108', - 'huaweicloudsdkantiddos==3.1.108', - 'huaweicloudsdkaom==3.1.108', - 'huaweicloudsdkaos==3.1.108', - 'huaweicloudsdkapig==3.1.108', - 'huaweicloudsdkapm==3.1.108', - 'huaweicloudsdkas==3.1.108', - 'huaweicloudsdkasm==3.1.108', - 'huaweicloudsdkbcs==3.1.108', - 'huaweicloudsdkbms==3.1.108', - 'huaweicloudsdkbss==3.1.108', - 'huaweicloudsdkbssintl==3.1.108', - 'huaweicloudsdkcae==3.1.108', - 'huaweicloudsdkcampusgo==3.1.108', - 'huaweicloudsdkcbh==3.1.108', - 'huaweicloudsdkcbr==3.1.108', - 'huaweicloudsdkcbs==3.1.108', - 'huaweicloudsdkcc==3.1.108', - 'huaweicloudsdkcce==3.1.108', - 'huaweicloudsdkccm==3.1.108', - 'huaweicloudsdkcdm==3.1.108', - 'huaweicloudsdkcdn==3.1.108', - 'huaweicloudsdkces==3.1.108', - 'huaweicloudsdkcfw==3.1.108', - 'huaweicloudsdkcgs==3.1.108', - 'huaweicloudsdkclassroom==3.1.108', - 'huaweicloudsdkcloudide==3.1.108', - 'huaweicloudsdkcloudpond==3.1.108', - 'huaweicloudsdkcloudrtc==3.1.108', - 'huaweicloudsdkcloudtable==3.1.108', - 'huaweicloudsdkcloudtest==3.1.108', - 'huaweicloudsdkcodeartsartifact==3.1.108', - 'huaweicloudsdkcodeartsbuild==3.1.108', - 'huaweicloudsdkcodeartscheck==3.1.108', - 'huaweicloudsdkcodeartsdeploy==3.1.108', - 'huaweicloudsdkcodeartsgovernance==3.1.108', - 'huaweicloudsdkcodeartsinspector==3.1.108', - 'huaweicloudsdkcodeartspipeline==3.1.108', - 'huaweicloudsdkcodecraft==3.1.108', - 'huaweicloudsdkcodehub==3.1.108', - 'huaweicloudsdkconfig==3.1.108', - 'huaweicloudsdkcph==3.1.108', - 'huaweicloudsdkcpts==3.1.108', - 'huaweicloudsdkcse==3.1.108', - 'huaweicloudsdkcsms==3.1.108', - 'huaweicloudsdkcss==3.1.108', - 'huaweicloudsdkcts==3.1.108', - 'huaweicloudsdkdas==3.1.108', - 'huaweicloudsdkdataartsstudio==3.1.108', - 'huaweicloudsdkdbss==3.1.108', - 'huaweicloudsdkdc==3.1.108', - 'huaweicloudsdkdcs==3.1.108', - 'huaweicloudsdkddm==3.1.108', - 'huaweicloudsdkdds==3.1.108', - 'huaweicloudsdkdeh==3.1.108', - 'huaweicloudsdkdevstar==3.1.108', - 'huaweicloudsdkdgc==3.1.108', - 'huaweicloudsdkdis==3.1.108', - 'huaweicloudsdkdlf==3.1.108', - 'huaweicloudsdkdli==3.1.108', - 'huaweicloudsdkdns==3.1.108', - 'huaweicloudsdkdris==3.1.108', - 'huaweicloudsdkdrs==3.1.108', - 'huaweicloudsdkdsc==3.1.108', - 'huaweicloudsdkdwr==3.1.108', - 'huaweicloudsdkdws==3.1.108', - 'huaweicloudsdkec==3.1.108', - 'huaweicloudsdkecs==3.1.108', - 'huaweicloudsdkedgesec==3.1.108', - 'huaweicloudsdkeg==3.1.108', - 'huaweicloudsdkeihealth==3.1.108', - 'huaweicloudsdkeip==3.1.108', - 'huaweicloudsdkelb==3.1.108', - 'huaweicloudsdkeps==3.1.108', - 'huaweicloudsdker==3.1.108', - 'huaweicloudsdkevs==3.1.108', - 'huaweicloudsdkfrs==3.1.108', - 'huaweicloudsdkfunctiongraph==3.1.108', - 'huaweicloudsdkga==3.1.108', - 'huaweicloudsdkgaussdb==3.1.108', - 'huaweicloudsdkgaussdbfornosql==3.1.108', - 'huaweicloudsdkgaussdbforopengauss==3.1.108', - 'huaweicloudsdkgeip==3.1.108', - 'huaweicloudsdkges==3.1.108', - 'huaweicloudsdkgsl==3.1.108', - 'huaweicloudsdkhilens==3.1.108', - 'huaweicloudsdkhss==3.1.108', - 'huaweicloudsdkiam==3.1.108', - 'huaweicloudsdkiamaccessanalyzer==3.1.108', - 'huaweicloudsdkidentitycenter==3.1.108', - 'huaweicloudsdkidentitycenterstore==3.1.108', - 'huaweicloudsdkidme==3.1.108', - 'huaweicloudsdkidmeclassicapi==3.1.108', - 'huaweicloudsdkiec==3.1.108', - 'huaweicloudsdkief==3.1.108', - 'huaweicloudsdkimage==3.1.108', - 'huaweicloudsdkimagesearch==3.1.108', - 'huaweicloudsdkims==3.1.108', - 'huaweicloudsdkiotanalytics==3.1.108', - 'huaweicloudsdkiotda==3.1.108', - 'huaweicloudsdkiotedge==3.1.108', - 'huaweicloudsdkivs==3.1.108', - 'huaweicloudsdkkafka==3.1.108', - 'huaweicloudsdkkms==3.1.108', - 'huaweicloudsdkkoomessage==3.1.108', - 'huaweicloudsdkkps==3.1.108', - 'huaweicloudsdklakeformation==3.1.108', - 'huaweicloudsdklive==3.1.108', - 'huaweicloudsdklts==3.1.108', - 'huaweicloudsdkmapds==3.1.108', - 'huaweicloudsdkmas==3.1.108', - 'huaweicloudsdkmeeting==3.1.108', - 'huaweicloudsdkmetastudio==3.1.108', - 'huaweicloudsdkmoderation==3.1.108', - 'huaweicloudsdkmpc==3.1.108', - 'huaweicloudsdkmrs==3.1.108', - 'huaweicloudsdkmsgsms==3.1.108', - 'huaweicloudsdkmssi==3.1.108', - 'huaweicloudsdknat==3.1.108', - 'huaweicloudsdknlp==3.1.108', - 'huaweicloudsdkobs==3.1.108', - 'huaweicloudsdkocr==3.1.108', - 'huaweicloudsdkoctopus==3.1.108', - 'huaweicloudsdkoms==3.1.108', - 'huaweicloudsdkoptverse==3.1.108', - 'huaweicloudsdkorganizations==3.1.108', - 'huaweicloudsdkorgid==3.1.108', - 'huaweicloudsdkoroas==3.1.108', - 'huaweicloudsdkosm==3.1.108', - 'huaweicloudsdkpangulargemodels==3.1.108', - 'huaweicloudsdkprojectman==3.1.108', - 'huaweicloudsdkrabbitmq==3.1.108', - 'huaweicloudsdkram==3.1.108', - 'huaweicloudsdkrds==3.1.108', - 'huaweicloudsdkres==3.1.108', - 'huaweicloudsdkrgc==3.1.108', - 'huaweicloudsdkrms==3.1.108', - 'huaweicloudsdkrocketmq==3.1.108', - 'huaweicloudsdkroma==3.1.108', - 'huaweicloudsdksa==3.1.108', - 'huaweicloudsdkscm==3.1.108', - 'huaweicloudsdksdrs==3.1.108', - 'huaweicloudsdksecmaster==3.1.108', - 'huaweicloudsdkservicestage==3.1.108', - 'huaweicloudsdksfsturbo==3.1.108', - 'huaweicloudsdksis==3.1.108', - 'huaweicloudsdksmn==3.1.108', - 'huaweicloudsdksms==3.1.108', - 'huaweicloudsdksts==3.1.108', - 'huaweicloudsdkswr==3.1.108', - 'huaweicloudsdktics==3.1.108', - 'huaweicloudsdktms==3.1.108', - 'huaweicloudsdkugo==3.1.108', - 'huaweicloudsdkvas==3.1.108', - 'huaweicloudsdkvcm==3.1.108', - 'huaweicloudsdkvod==3.1.108', - 'huaweicloudsdkvpc==3.1.108', - 'huaweicloudsdkvpcep==3.1.108', - 'huaweicloudsdkvpn==3.1.108', - 'huaweicloudsdkwaf==3.1.108', - 'huaweicloudsdkworkspace==3.1.108', - 'huaweicloudsdkworkspaceapp==3.1.108', + 'huaweicloudsdkcore==3.1.109', + 'huaweicloudsdkaad==3.1.109', + 'huaweicloudsdkantiddos==3.1.109', + 'huaweicloudsdkaom==3.1.109', + 'huaweicloudsdkaos==3.1.109', + 'huaweicloudsdkapig==3.1.109', + 'huaweicloudsdkapm==3.1.109', + 'huaweicloudsdkas==3.1.109', + 'huaweicloudsdkasm==3.1.109', + 'huaweicloudsdkbcs==3.1.109', + 'huaweicloudsdkbms==3.1.109', + 'huaweicloudsdkbss==3.1.109', + 'huaweicloudsdkbssintl==3.1.109', + 'huaweicloudsdkcae==3.1.109', + 'huaweicloudsdkcampusgo==3.1.109', + 'huaweicloudsdkcbh==3.1.109', + 'huaweicloudsdkcbr==3.1.109', + 'huaweicloudsdkcbs==3.1.109', + 'huaweicloudsdkcc==3.1.109', + 'huaweicloudsdkcce==3.1.109', + 'huaweicloudsdkccm==3.1.109', + 'huaweicloudsdkcdm==3.1.109', + 'huaweicloudsdkcdn==3.1.109', + 'huaweicloudsdkces==3.1.109', + 'huaweicloudsdkcfw==3.1.109', + 'huaweicloudsdkcgs==3.1.109', + 'huaweicloudsdkclassroom==3.1.109', + 'huaweicloudsdkcloudide==3.1.109', + 'huaweicloudsdkcloudpond==3.1.109', + 'huaweicloudsdkcloudrtc==3.1.109', + 'huaweicloudsdkcloudtable==3.1.109', + 'huaweicloudsdkcloudtest==3.1.109', + 'huaweicloudsdkcodeartsartifact==3.1.109', + 'huaweicloudsdkcodeartsbuild==3.1.109', + 'huaweicloudsdkcodeartscheck==3.1.109', + 'huaweicloudsdkcodeartsdeploy==3.1.109', + 'huaweicloudsdkcodeartsgovernance==3.1.109', + 'huaweicloudsdkcodeartsinspector==3.1.109', + 'huaweicloudsdkcodeartspipeline==3.1.109', + 'huaweicloudsdkcodecraft==3.1.109', + 'huaweicloudsdkcodehub==3.1.109', + 'huaweicloudsdkconfig==3.1.109', + 'huaweicloudsdkcph==3.1.109', + 'huaweicloudsdkcpts==3.1.109', + 'huaweicloudsdkcse==3.1.109', + 'huaweicloudsdkcsms==3.1.109', + 'huaweicloudsdkcss==3.1.109', + 'huaweicloudsdkcts==3.1.109', + 'huaweicloudsdkdas==3.1.109', + 'huaweicloudsdkdataartsstudio==3.1.109', + 'huaweicloudsdkdbss==3.1.109', + 'huaweicloudsdkdc==3.1.109', + 'huaweicloudsdkdcs==3.1.109', + 'huaweicloudsdkddm==3.1.109', + 'huaweicloudsdkdds==3.1.109', + 'huaweicloudsdkdeh==3.1.109', + 'huaweicloudsdkdevstar==3.1.109', + 'huaweicloudsdkdgc==3.1.109', + 'huaweicloudsdkdis==3.1.109', + 'huaweicloudsdkdlf==3.1.109', + 'huaweicloudsdkdli==3.1.109', + 'huaweicloudsdkdns==3.1.109', + 'huaweicloudsdkdris==3.1.109', + 'huaweicloudsdkdrs==3.1.109', + 'huaweicloudsdkdsc==3.1.109', + 'huaweicloudsdkdwr==3.1.109', + 'huaweicloudsdkdws==3.1.109', + 'huaweicloudsdkec==3.1.109', + 'huaweicloudsdkecs==3.1.109', + 'huaweicloudsdkedgesec==3.1.109', + 'huaweicloudsdkeg==3.1.109', + 'huaweicloudsdkeihealth==3.1.109', + 'huaweicloudsdkeip==3.1.109', + 'huaweicloudsdkelb==3.1.109', + 'huaweicloudsdkeps==3.1.109', + 'huaweicloudsdker==3.1.109', + 'huaweicloudsdkevs==3.1.109', + 'huaweicloudsdkfrs==3.1.109', + 'huaweicloudsdkfunctiongraph==3.1.109', + 'huaweicloudsdkga==3.1.109', + 'huaweicloudsdkgaussdb==3.1.109', + 'huaweicloudsdkgaussdbfornosql==3.1.109', + 'huaweicloudsdkgaussdbforopengauss==3.1.109', + 'huaweicloudsdkgeip==3.1.109', + 'huaweicloudsdkges==3.1.109', + 'huaweicloudsdkgsl==3.1.109', + 'huaweicloudsdkhilens==3.1.109', + 'huaweicloudsdkhss==3.1.109', + 'huaweicloudsdkiam==3.1.109', + 'huaweicloudsdkiamaccessanalyzer==3.1.109', + 'huaweicloudsdkidentitycenter==3.1.109', + 'huaweicloudsdkidentitycenterstore==3.1.109', + 'huaweicloudsdkidme==3.1.109', + 'huaweicloudsdkidmeclassicapi==3.1.109', + 'huaweicloudsdkiec==3.1.109', + 'huaweicloudsdkief==3.1.109', + 'huaweicloudsdkimage==3.1.109', + 'huaweicloudsdkimagesearch==3.1.109', + 'huaweicloudsdkims==3.1.109', + 'huaweicloudsdkiotanalytics==3.1.109', + 'huaweicloudsdkiotda==3.1.109', + 'huaweicloudsdkiotdm==3.1.109', + 'huaweicloudsdkiotedge==3.1.109', + 'huaweicloudsdkivs==3.1.109', + 'huaweicloudsdkkafka==3.1.109', + 'huaweicloudsdkkms==3.1.109', + 'huaweicloudsdkkoomessage==3.1.109', + 'huaweicloudsdkkps==3.1.109', + 'huaweicloudsdklakeformation==3.1.109', + 'huaweicloudsdklive==3.1.109', + 'huaweicloudsdklts==3.1.109', + 'huaweicloudsdkmapds==3.1.109', + 'huaweicloudsdkmas==3.1.109', + 'huaweicloudsdkmeeting==3.1.109', + 'huaweicloudsdkmetastudio==3.1.109', + 'huaweicloudsdkmoderation==3.1.109', + 'huaweicloudsdkmpc==3.1.109', + 'huaweicloudsdkmrs==3.1.109', + 'huaweicloudsdkmsgsms==3.1.109', + 'huaweicloudsdkmssi==3.1.109', + 'huaweicloudsdknat==3.1.109', + 'huaweicloudsdknlp==3.1.109', + 'huaweicloudsdkobs==3.1.109', + 'huaweicloudsdkocr==3.1.109', + 'huaweicloudsdkoctopus==3.1.109', + 'huaweicloudsdkoms==3.1.109', + 'huaweicloudsdkoptverse==3.1.109', + 'huaweicloudsdkorganizations==3.1.109', + 'huaweicloudsdkorgid==3.1.109', + 'huaweicloudsdkoroas==3.1.109', + 'huaweicloudsdkosm==3.1.109', + 'huaweicloudsdkpangulargemodels==3.1.109', + 'huaweicloudsdkprojectman==3.1.109', + 'huaweicloudsdkrabbitmq==3.1.109', + 'huaweicloudsdkram==3.1.109', + 'huaweicloudsdkrds==3.1.109', + 'huaweicloudsdkres==3.1.109', + 'huaweicloudsdkrgc==3.1.109', + 'huaweicloudsdkrms==3.1.109', + 'huaweicloudsdkrocketmq==3.1.109', + 'huaweicloudsdkroma==3.1.109', + 'huaweicloudsdksa==3.1.109', + 'huaweicloudsdkscm==3.1.109', + 'huaweicloudsdksdrs==3.1.109', + 'huaweicloudsdksecmaster==3.1.109', + 'huaweicloudsdkservicestage==3.1.109', + 'huaweicloudsdksfsturbo==3.1.109', + 'huaweicloudsdksis==3.1.109', + 'huaweicloudsdksmn==3.1.109', + 'huaweicloudsdksms==3.1.109', + 'huaweicloudsdksts==3.1.109', + 'huaweicloudsdkswr==3.1.109', + 'huaweicloudsdktics==3.1.109', + 'huaweicloudsdktms==3.1.109', + 'huaweicloudsdkugo==3.1.109', + 'huaweicloudsdkvas==3.1.109', + 'huaweicloudsdkvcm==3.1.109', + 'huaweicloudsdkvod==3.1.109', + 'huaweicloudsdkvpc==3.1.109', + 'huaweicloudsdkvpcep==3.1.109', + 'huaweicloudsdkvpn==3.1.109', + 'huaweicloudsdkwaf==3.1.109', + 'huaweicloudsdkworkspace==3.1.109', + 'huaweicloudsdkworkspaceapp==3.1.109', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 56945f70d0..7f6208018b 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 99643f8fd3..ecdd6965aa 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py index 49313344e7..fbd1cc7253 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/__init__.py @@ -15,6 +15,8 @@ from huaweicloudsdkaos.v1.model.base_template import BaseTemplate from huaweicloudsdkaos.v1.model.base_template_version import BaseTemplateVersion from huaweicloudsdkaos.v1.model.call_identity_primitive_type_holder import CallIdentityPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.configuration_primitive_type_holder import ConfigurationPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.configuration_primitive_type_holder_configuration import ConfigurationPrimitiveTypeHolderConfiguration from huaweicloudsdkaos.v1.model.continue_deploy_stack_request import ContinueDeployStackRequest from huaweicloudsdkaos.v1.model.continue_deploy_stack_request_body import ContinueDeployStackRequestBody from huaweicloudsdkaos.v1.model.continue_deploy_stack_response import ContinueDeployStackResponse @@ -24,6 +26,12 @@ from huaweicloudsdkaos.v1.model.create_execution_plan_request import CreateExecutionPlanRequest from huaweicloudsdkaos.v1.model.create_execution_plan_request_body import CreateExecutionPlanRequestBody from huaweicloudsdkaos.v1.model.create_execution_plan_response import CreateExecutionPlanResponse +from huaweicloudsdkaos.v1.model.create_private_hook_request import CreatePrivateHookRequest +from huaweicloudsdkaos.v1.model.create_private_hook_request_body import CreatePrivateHookRequestBody +from huaweicloudsdkaos.v1.model.create_private_hook_response import CreatePrivateHookResponse +from huaweicloudsdkaos.v1.model.create_private_hook_version_request import CreatePrivateHookVersionRequest +from huaweicloudsdkaos.v1.model.create_private_hook_version_request_body import CreatePrivateHookVersionRequestBody +from huaweicloudsdkaos.v1.model.create_private_hook_version_response import CreatePrivateHookVersionResponse from huaweicloudsdkaos.v1.model.create_private_provider_request import CreatePrivateProviderRequest from huaweicloudsdkaos.v1.model.create_private_provider_request_body import CreatePrivateProviderRequestBody from huaweicloudsdkaos.v1.model.create_private_provider_response import CreatePrivateProviderResponse @@ -41,6 +49,10 @@ from huaweicloudsdkaos.v1.model.create_stack_set_response import CreateStackSetResponse from huaweicloudsdkaos.v1.model.delete_execution_plan_request import DeleteExecutionPlanRequest from huaweicloudsdkaos.v1.model.delete_execution_plan_response import DeleteExecutionPlanResponse +from huaweicloudsdkaos.v1.model.delete_private_hook_request import DeletePrivateHookRequest +from huaweicloudsdkaos.v1.model.delete_private_hook_response import DeletePrivateHookResponse +from huaweicloudsdkaos.v1.model.delete_private_hook_version_request import DeletePrivateHookVersionRequest +from huaweicloudsdkaos.v1.model.delete_private_hook_version_response import DeletePrivateHookVersionResponse from huaweicloudsdkaos.v1.model.delete_stack_enhanced_request import DeleteStackEnhancedRequest from huaweicloudsdkaos.v1.model.delete_stack_enhanced_request_body import DeleteStackEnhancedRequestBody from huaweicloudsdkaos.v1.model.delete_stack_enhanced_response import DeleteStackEnhancedResponse @@ -128,6 +140,19 @@ from huaweicloudsdkaos.v1.model.parse_template_variables_request_body import ParseTemplateVariablesRequestBody from huaweicloudsdkaos.v1.model.parse_template_variables_response import ParseTemplateVariablesResponse from huaweicloudsdkaos.v1.model.permission_model_primitive_type_holder import PermissionModelPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_create_time_primitive_type_holder import PrivateHookCreateTimePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_default_version_primitive_type_holder import PrivateHookDefaultVersionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_description_primitive_type_holder import PrivateHookDescriptionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_id_primitive_type_holder import PrivateHookIdPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_name_primitive_type_holder import PrivateHookNamePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_summary import PrivateHookSummary +from huaweicloudsdkaos.v1.model.private_hook_update_time_primitive_type_holder import PrivateHookUpdateTimePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_create_time_primitive_type_holder import PrivateHookVersionCreateTimePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_description_primitive_type_holder import PrivateHookVersionDescriptionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_primitive_type_holder import PrivateHookVersionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_summary import PrivateHookVersionSummary +from huaweicloudsdkaos.v1.model.private_policy_body_primitive_type_holder import PrivatePolicyBodyPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_policy_uri_primitive_type_holder import PrivatePolicyURIPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.private_provider_description_primitive_type_holder import PrivateProviderDescriptionPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.private_provider_id_primitive_type_holder import PrivateProviderIdPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.private_provider_name_primitive_type_holder import PrivateProviderNamePrimitiveTypeHolder @@ -141,6 +166,10 @@ from huaweicloudsdkaos.v1.model.resource_price_response import ResourcePriceResponse from huaweicloudsdkaos.v1.model.resource_type_primitive_type_holder import ResourceTypePrimitiveTypeHolder from huaweicloudsdkaos.v1.model.retain_all_resources_type_holder import RetainAllResourcesTypeHolder +from huaweicloudsdkaos.v1.model.show_private_hook_metadata_request import ShowPrivateHookMetadataRequest +from huaweicloudsdkaos.v1.model.show_private_hook_metadata_response import ShowPrivateHookMetadataResponse +from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_request import ShowPrivateHookVersionMetadataRequest +from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_response import ShowPrivateHookVersionMetadataResponse from huaweicloudsdkaos.v1.model.show_stack_instance_request import ShowStackInstanceRequest from huaweicloudsdkaos.v1.model.show_stack_instance_response import ShowStackInstanceResponse from huaweicloudsdkaos.v1.model.show_stack_set_metadata_request import ShowStackSetMetadataRequest @@ -187,6 +216,9 @@ from huaweicloudsdkaos.v1.model.template_body_primitive_type_holder import TemplateBodyPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.template_uri_primitive_type_holder import TemplateURIPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.template_version import TemplateVersion +from huaweicloudsdkaos.v1.model.update_private_hook_metadata_request import UpdatePrivateHookMetadataRequest +from huaweicloudsdkaos.v1.model.update_private_hook_metadata_request_body import UpdatePrivateHookMetadataRequestBody +from huaweicloudsdkaos.v1.model.update_private_hook_metadata_response import UpdatePrivateHookMetadataResponse from huaweicloudsdkaos.v1.model.update_stack_instances_request import UpdateStackInstancesRequest from huaweicloudsdkaos.v1.model.update_stack_instances_request_body import UpdateStackInstancesRequestBody from huaweicloudsdkaos.v1.model.update_stack_instances_response import UpdateStackInstancesResponse diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py index a7d7bd5fb2..16e726b719 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py @@ -870,6 +870,563 @@ def _list_execution_plans_http_info(self, request): return http_info + def create_private_hook_async(self, request): + """创建私有hook + + 创建私有hook(CreatePrivateHook) + + 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * 支持hook策略模板检验的资源栈服务API: + DeployStack + DeleteStack + * 创建私有hook时指定的版本为初始默认版本。 + * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 + * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 + * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: + ``` + hook_result := { + \"is_passed\": Bool, + \"err_msg\": String, + } + ``` + 其中is_passed必选,err_msg可选。RFS通过查询policy.hook_result[is_passed]判断是否通过策略校验。 + * 如果policy.hook_result[is_passed]的结果是true,则表示通过策略校验,资源编排服务会继续部署资源。 + * 如果policy.hook_result[is_passed]的结果是false,则表示没有通过策略校验,资源编排服务会停止部署资源。并记录资源栈事件信息,信息的内容为policy.hook_result[err_msg]。如果没有设置err_msg,则资源栈事件信息内容为默认错误信息(校验私有hook失败)。 + * 如果没有使用policy.hook_result,则该策略不会生效,资源编排服务会继续部署资源。 + * 策略模板中不支持调用其他服务API等方式获取数据、不支持任何形式的网络访问、不支持以任何形式的自定义函数或者方法等、不支持读取本地文件以及系统操作。 + + 私有hook的策略模板语法如下: + ``` + package policy + + import rego.v1 + + hook_result := { + \"is_passed\": input.message == \"world\", + \"err_msg\": \"The error msg when private hook is not passed the validation\", + } + ``` + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePrivateHook + :type request: :class:`huaweicloudsdkaos.v1.CreatePrivateHookRequest` + :rtype: :class:`huaweicloudsdkaos.v1.CreatePrivateHookResponse` + """ + http_info = self._create_private_hook_http_info(request) + return self._call_api(**http_info) + + def create_private_hook_async_invoker(self, request): + http_info = self._create_private_hook_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_private_hook_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/private-hooks", + "request_type": request.__class__.__name__, + "response_type": "CreatePrivateHookResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_private_hook_version_async(self, request): + """创建私有hook版本 + + 创建私有hook版本(CreatePrivateHookVersion) + + 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreatePrivateHookVersion + :type request: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionRequest` + :rtype: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionResponse` + """ + http_info = self._create_private_hook_version_http_info(request) + return self._call_api(**http_info) + + def create_private_hook_version_async_invoker(self, request): + http_info = self._create_private_hook_version_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_private_hook_version_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/private-hooks/{hook_name}/versions", + "request_type": request.__class__.__name__, + "response_type": "CreatePrivateHookVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_private_hook_async(self, request): + """删除私有hook + + 删除私有hook(DeletePrivateHook) + + 删除某个私有hook以及私有hook下的全部hook版本 + * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + **请谨慎操作,删除私有hook将会删除该私有hook和该私有hook下的所有私有hook版本。** + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePrivateHook + :type request: :class:`huaweicloudsdkaos.v1.DeletePrivateHookRequest` + :rtype: :class:`huaweicloudsdkaos.v1.DeletePrivateHookResponse` + """ + http_info = self._delete_private_hook_http_info(request) + return self._call_api(**http_info) + + def delete_private_hook_async_invoker(self, request): + http_info = self._delete_private_hook_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_private_hook_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/private-hooks/{hook_name}", + "request_type": request.__class__.__name__, + "response_type": "DeletePrivateHookResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_private_hook_version_async(self, request): + """删除私有hook版本 + + 删除私有hook版本(DeletePrivateHookVersion) + + 删除某个私有hook版本 + * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + **请谨慎操作** + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeletePrivateHookVersion + :type request: :class:`huaweicloudsdkaos.v1.DeletePrivateHookVersionRequest` + :rtype: :class:`huaweicloudsdkaos.v1.DeletePrivateHookVersionResponse` + """ + http_info = self._delete_private_hook_version_http_info(request) + return self._call_api(**http_info) + + def delete_private_hook_version_async_invoker(self, request): + http_info = self._delete_private_hook_version_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_private_hook_version_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/private-hooks/{hook_name}/versions/{hook_version}", + "request_type": request.__class__.__name__, + "response_type": "DeletePrivateHookVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + if 'hook_version' in local_var_params: + path_params['hook_version'] = local_var_params['hook_version'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_private_hook_metadata_async(self, request): + """获取私有hook元数据 + + 获取私有hook元数据(ShowPrivateHookMetadata) + + 获取某个私有hook的元数据信息 + + * 具体返回的信息见ShowPrivateHookMetadataResponseBody,若想查看私有hook下全部版本,请调用ListPrivateHookVersions。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查两个是否匹配,如果不匹配则会返回400。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPrivateHookMetadata + :type request: :class:`huaweicloudsdkaos.v1.ShowPrivateHookMetadataRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ShowPrivateHookMetadataResponse` + """ + http_info = self._show_private_hook_metadata_http_info(request) + return self._call_api(**http_info) + + def show_private_hook_metadata_async_invoker(self, request): + http_info = self._show_private_hook_metadata_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_private_hook_metadata_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks/{hook_name}/metadata", + "request_type": request.__class__.__name__, + "response_type": "ShowPrivateHookMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_private_hook_version_metadata_async(self, request): + """获取私有hook版本元数据 + + 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + + 获取当前私有hook对应的版本的元数据信息 + + * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 + * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowPrivateHookVersionMetadata + :type request: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionMetadataRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionMetadataResponse` + """ + http_info = self._show_private_hook_version_metadata_http_info(request) + return self._call_api(**http_info) + + def show_private_hook_version_metadata_async_invoker(self, request): + http_info = self._show_private_hook_version_metadata_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_private_hook_version_metadata_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks/{hook_name}/versions/{hook_version}/metadata", + "request_type": request.__class__.__name__, + "response_type": "ShowPrivateHookVersionMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + if 'hook_version' in local_var_params: + path_params['hook_version'] = local_var_params['hook_version'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_private_hook_metadata_async(self, request): + """更新私有hook元数据 + + 更新私有hook元数据(UpdatePrivateHookMetadata) + + 更新当前私有hook的元数据信息 + + * 目前支持更新私有hook的描述、默认版本、配置。 + * 如果需要创建新的版本,请调用CreatePrivateHookVersion。 + * 更新为增量更新,即如果某个参数不提供,则保持原始值。 + * 如果请求中没有需要被更新的参数(如请求中没有任何内容,或仅有hook_id),则返回400。注意:即使更新原始值和目标值一致也被认为是有效更新 + * 更新后私有hook的更新时间(update_time)也会被更新 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePrivateHookMetadata + :type request: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataRequest` + :rtype: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataResponse` + """ + http_info = self._update_private_hook_metadata_http_info(request) + return self._call_api(**http_info) + + def update_private_hook_metadata_async_invoker(self, request): + http_info = self._update_private_hook_metadata_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_private_hook_metadata_http_info(self, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/private-hooks/{hook_name}/metadata", + "request_type": request.__class__.__name__, + "response_type": "UpdatePrivateHookMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def continue_deploy_stack_async(self, request): """继续部署资源栈 diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py index 5c44c57f03..8d6a441f24 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py @@ -870,6 +870,563 @@ def _list_execution_plans_http_info(cls, request): return http_info + def create_private_hook(self, request): + """创建私有hook + + 创建私有hook(CreatePrivateHook) + + 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * 支持hook策略模板检验的资源栈服务API: + DeployStack + DeleteStack + * 创建私有hook时指定的版本为初始默认版本。 + * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 + * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 + * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: + ``` + hook_result := { + \"is_passed\": Bool, + \"err_msg\": String, + } + ``` + 其中is_passed必选,err_msg可选。RFS通过查询policy.hook_result[is_passed]判断是否通过策略校验。 + * 如果policy.hook_result[is_passed]的结果是true,则表示通过策略校验,资源编排服务会继续部署资源。 + * 如果policy.hook_result[is_passed]的结果是false,则表示没有通过策略校验,资源编排服务会停止部署资源。并记录资源栈事件信息,信息的内容为policy.hook_result[err_msg]。如果没有设置err_msg,则资源栈事件信息内容为默认错误信息(校验私有hook失败)。 + * 如果没有使用policy.hook_result,则该策略不会生效,资源编排服务会继续部署资源。 + * 策略模板中不支持调用其他服务API等方式获取数据、不支持任何形式的网络访问、不支持以任何形式的自定义函数或者方法等、不支持读取本地文件以及系统操作。 + + 私有hook的策略模板语法如下: + ``` + package policy + + import rego.v1 + + hook_result := { + \"is_passed\": input.message == \"world\", + \"err_msg\": \"The error msg when private hook is not passed the validation\", + } + ``` + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePrivateHook + :type request: :class:`huaweicloudsdkaos.v1.CreatePrivateHookRequest` + :rtype: :class:`huaweicloudsdkaos.v1.CreatePrivateHookResponse` + """ + http_info = self._create_private_hook_http_info(request) + return self._call_api(**http_info) + + def create_private_hook_invoker(self, request): + http_info = self._create_private_hook_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_private_hook_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/private-hooks", + "request_type": request.__class__.__name__, + "response_type": "CreatePrivateHookResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_private_hook_version(self, request): + """创建私有hook版本 + + 创建私有hook版本(CreatePrivateHookVersion) + + 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreatePrivateHookVersion + :type request: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionRequest` + :rtype: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionResponse` + """ + http_info = self._create_private_hook_version_http_info(request) + return self._call_api(**http_info) + + def create_private_hook_version_invoker(self, request): + http_info = self._create_private_hook_version_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_private_hook_version_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/private-hooks/{hook_name}/versions", + "request_type": request.__class__.__name__, + "response_type": "CreatePrivateHookVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_private_hook(self, request): + """删除私有hook + + 删除私有hook(DeletePrivateHook) + + 删除某个私有hook以及私有hook下的全部hook版本 + * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + **请谨慎操作,删除私有hook将会删除该私有hook和该私有hook下的所有私有hook版本。** + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePrivateHook + :type request: :class:`huaweicloudsdkaos.v1.DeletePrivateHookRequest` + :rtype: :class:`huaweicloudsdkaos.v1.DeletePrivateHookResponse` + """ + http_info = self._delete_private_hook_http_info(request) + return self._call_api(**http_info) + + def delete_private_hook_invoker(self, request): + http_info = self._delete_private_hook_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_private_hook_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/private-hooks/{hook_name}", + "request_type": request.__class__.__name__, + "response_type": "DeletePrivateHookResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_private_hook_version(self, request): + """删除私有hook版本 + + 删除私有hook版本(DeletePrivateHookVersion) + + 删除某个私有hook版本 + * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + **请谨慎操作** + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeletePrivateHookVersion + :type request: :class:`huaweicloudsdkaos.v1.DeletePrivateHookVersionRequest` + :rtype: :class:`huaweicloudsdkaos.v1.DeletePrivateHookVersionResponse` + """ + http_info = self._delete_private_hook_version_http_info(request) + return self._call_api(**http_info) + + def delete_private_hook_version_invoker(self, request): + http_info = self._delete_private_hook_version_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_private_hook_version_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/private-hooks/{hook_name}/versions/{hook_version}", + "request_type": request.__class__.__name__, + "response_type": "DeletePrivateHookVersionResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + if 'hook_version' in local_var_params: + path_params['hook_version'] = local_var_params['hook_version'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_private_hook_metadata(self, request): + """获取私有hook元数据 + + 获取私有hook元数据(ShowPrivateHookMetadata) + + 获取某个私有hook的元数据信息 + + * 具体返回的信息见ShowPrivateHookMetadataResponseBody,若想查看私有hook下全部版本,请调用ListPrivateHookVersions。 + * 若hook_name和hook_id同时存在,则资源编排服务会检查两个是否匹配,如果不匹配则会返回400。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPrivateHookMetadata + :type request: :class:`huaweicloudsdkaos.v1.ShowPrivateHookMetadataRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ShowPrivateHookMetadataResponse` + """ + http_info = self._show_private_hook_metadata_http_info(request) + return self._call_api(**http_info) + + def show_private_hook_metadata_invoker(self, request): + http_info = self._show_private_hook_metadata_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_private_hook_metadata_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks/{hook_name}/metadata", + "request_type": request.__class__.__name__, + "response_type": "ShowPrivateHookMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_private_hook_version_metadata(self, request): + """获取私有hook版本元数据 + + 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + + 获取当前私有hook对应的版本的元数据信息 + + * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 + * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowPrivateHookVersionMetadata + :type request: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionMetadataRequest` + :rtype: :class:`huaweicloudsdkaos.v1.ShowPrivateHookVersionMetadataResponse` + """ + http_info = self._show_private_hook_version_metadata_http_info(request) + return self._call_api(**http_info) + + def show_private_hook_version_metadata_invoker(self, request): + http_info = self._show_private_hook_version_metadata_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_private_hook_version_metadata_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/private-hooks/{hook_name}/versions/{hook_version}/metadata", + "request_type": request.__class__.__name__, + "response_type": "ShowPrivateHookVersionMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + if 'hook_version' in local_var_params: + path_params['hook_version'] = local_var_params['hook_version'] + + query_params = [] + if 'hook_id' in local_var_params: + query_params.append(('hook_id', local_var_params['hook_id'])) + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_private_hook_metadata(self, request): + """更新私有hook元数据 + + 更新私有hook元数据(UpdatePrivateHookMetadata) + + 更新当前私有hook的元数据信息 + + * 目前支持更新私有hook的描述、默认版本、配置。 + * 如果需要创建新的版本,请调用CreatePrivateHookVersion。 + * 更新为增量更新,即如果某个参数不提供,则保持原始值。 + * 如果请求中没有需要被更新的参数(如请求中没有任何内容,或仅有hook_id),则返回400。注意:即使更新原始值和目标值一致也被认为是有效更新 + * 更新后私有hook的更新时间(update_time)也会被更新 + * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePrivateHookMetadata + :type request: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataRequest` + :rtype: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataResponse` + """ + http_info = self._update_private_hook_metadata_http_info(request) + return self._call_api(**http_info) + + def update_private_hook_metadata_invoker(self, request): + http_info = self._update_private_hook_metadata_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_private_hook_metadata_http_info(cls, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/private-hooks/{hook_name}/metadata", + "request_type": request.__class__.__name__, + "response_type": "UpdatePrivateHookMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'hook_name' in local_var_params: + path_params['hook_name'] = local_var_params['hook_name'] + + query_params = [] + + header_params = {} + if 'client_request_id' in local_var_params: + header_params['Client-Request-Id'] = local_var_params['client_request_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['token'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def continue_deploy_stack(self, request): """继续部署资源栈 diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py index 402936ef08..4c7646acc8 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/__init__.py @@ -13,6 +13,8 @@ from huaweicloudsdkaos.v1.model.base_template import BaseTemplate from huaweicloudsdkaos.v1.model.base_template_version import BaseTemplateVersion from huaweicloudsdkaos.v1.model.call_identity_primitive_type_holder import CallIdentityPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.configuration_primitive_type_holder import ConfigurationPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.configuration_primitive_type_holder_configuration import ConfigurationPrimitiveTypeHolderConfiguration from huaweicloudsdkaos.v1.model.continue_deploy_stack_request import ContinueDeployStackRequest from huaweicloudsdkaos.v1.model.continue_deploy_stack_request_body import ContinueDeployStackRequestBody from huaweicloudsdkaos.v1.model.continue_deploy_stack_response import ContinueDeployStackResponse @@ -22,6 +24,12 @@ from huaweicloudsdkaos.v1.model.create_execution_plan_request import CreateExecutionPlanRequest from huaweicloudsdkaos.v1.model.create_execution_plan_request_body import CreateExecutionPlanRequestBody from huaweicloudsdkaos.v1.model.create_execution_plan_response import CreateExecutionPlanResponse +from huaweicloudsdkaos.v1.model.create_private_hook_request import CreatePrivateHookRequest +from huaweicloudsdkaos.v1.model.create_private_hook_request_body import CreatePrivateHookRequestBody +from huaweicloudsdkaos.v1.model.create_private_hook_response import CreatePrivateHookResponse +from huaweicloudsdkaos.v1.model.create_private_hook_version_request import CreatePrivateHookVersionRequest +from huaweicloudsdkaos.v1.model.create_private_hook_version_request_body import CreatePrivateHookVersionRequestBody +from huaweicloudsdkaos.v1.model.create_private_hook_version_response import CreatePrivateHookVersionResponse from huaweicloudsdkaos.v1.model.create_private_provider_request import CreatePrivateProviderRequest from huaweicloudsdkaos.v1.model.create_private_provider_request_body import CreatePrivateProviderRequestBody from huaweicloudsdkaos.v1.model.create_private_provider_response import CreatePrivateProviderResponse @@ -39,6 +47,10 @@ from huaweicloudsdkaos.v1.model.create_stack_set_response import CreateStackSetResponse from huaweicloudsdkaos.v1.model.delete_execution_plan_request import DeleteExecutionPlanRequest from huaweicloudsdkaos.v1.model.delete_execution_plan_response import DeleteExecutionPlanResponse +from huaweicloudsdkaos.v1.model.delete_private_hook_request import DeletePrivateHookRequest +from huaweicloudsdkaos.v1.model.delete_private_hook_response import DeletePrivateHookResponse +from huaweicloudsdkaos.v1.model.delete_private_hook_version_request import DeletePrivateHookVersionRequest +from huaweicloudsdkaos.v1.model.delete_private_hook_version_response import DeletePrivateHookVersionResponse from huaweicloudsdkaos.v1.model.delete_stack_enhanced_request import DeleteStackEnhancedRequest from huaweicloudsdkaos.v1.model.delete_stack_enhanced_request_body import DeleteStackEnhancedRequestBody from huaweicloudsdkaos.v1.model.delete_stack_enhanced_response import DeleteStackEnhancedResponse @@ -126,6 +138,19 @@ from huaweicloudsdkaos.v1.model.parse_template_variables_request_body import ParseTemplateVariablesRequestBody from huaweicloudsdkaos.v1.model.parse_template_variables_response import ParseTemplateVariablesResponse from huaweicloudsdkaos.v1.model.permission_model_primitive_type_holder import PermissionModelPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_create_time_primitive_type_holder import PrivateHookCreateTimePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_default_version_primitive_type_holder import PrivateHookDefaultVersionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_description_primitive_type_holder import PrivateHookDescriptionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_id_primitive_type_holder import PrivateHookIdPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_name_primitive_type_holder import PrivateHookNamePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_summary import PrivateHookSummary +from huaweicloudsdkaos.v1.model.private_hook_update_time_primitive_type_holder import PrivateHookUpdateTimePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_create_time_primitive_type_holder import PrivateHookVersionCreateTimePrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_description_primitive_type_holder import PrivateHookVersionDescriptionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_primitive_type_holder import PrivateHookVersionPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_hook_version_summary import PrivateHookVersionSummary +from huaweicloudsdkaos.v1.model.private_policy_body_primitive_type_holder import PrivatePolicyBodyPrimitiveTypeHolder +from huaweicloudsdkaos.v1.model.private_policy_uri_primitive_type_holder import PrivatePolicyURIPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.private_provider_description_primitive_type_holder import PrivateProviderDescriptionPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.private_provider_id_primitive_type_holder import PrivateProviderIdPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.private_provider_name_primitive_type_holder import PrivateProviderNamePrimitiveTypeHolder @@ -139,6 +164,10 @@ from huaweicloudsdkaos.v1.model.resource_price_response import ResourcePriceResponse from huaweicloudsdkaos.v1.model.resource_type_primitive_type_holder import ResourceTypePrimitiveTypeHolder from huaweicloudsdkaos.v1.model.retain_all_resources_type_holder import RetainAllResourcesTypeHolder +from huaweicloudsdkaos.v1.model.show_private_hook_metadata_request import ShowPrivateHookMetadataRequest +from huaweicloudsdkaos.v1.model.show_private_hook_metadata_response import ShowPrivateHookMetadataResponse +from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_request import ShowPrivateHookVersionMetadataRequest +from huaweicloudsdkaos.v1.model.show_private_hook_version_metadata_response import ShowPrivateHookVersionMetadataResponse from huaweicloudsdkaos.v1.model.show_stack_instance_request import ShowStackInstanceRequest from huaweicloudsdkaos.v1.model.show_stack_instance_response import ShowStackInstanceResponse from huaweicloudsdkaos.v1.model.show_stack_set_metadata_request import ShowStackSetMetadataRequest @@ -185,6 +214,9 @@ from huaweicloudsdkaos.v1.model.template_body_primitive_type_holder import TemplateBodyPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.template_uri_primitive_type_holder import TemplateURIPrimitiveTypeHolder from huaweicloudsdkaos.v1.model.template_version import TemplateVersion +from huaweicloudsdkaos.v1.model.update_private_hook_metadata_request import UpdatePrivateHookMetadataRequest +from huaweicloudsdkaos.v1.model.update_private_hook_metadata_request_body import UpdatePrivateHookMetadataRequestBody +from huaweicloudsdkaos.v1.model.update_private_hook_metadata_response import UpdatePrivateHookMetadataResponse from huaweicloudsdkaos.v1.model.update_stack_instances_request import UpdateStackInstancesRequest from huaweicloudsdkaos.v1.model.update_stack_instances_request_body import UpdateStackInstancesRequestBody from huaweicloudsdkaos.v1.model.update_stack_instances_response import UpdateStackInstancesResponse diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder.py new file mode 100644 index 0000000000..2693eebc2c --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConfigurationPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'configuration': 'ConfigurationPrimitiveTypeHolderConfiguration' + } + + attribute_map = { + 'configuration': 'configuration' + } + + def __init__(self, configuration=None): + """ConfigurationPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param configuration: + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + + + + self._configuration = None + self.discriminator = None + + if configuration is not None: + self.configuration = configuration + + @property + def configuration(self): + """Gets the configuration of this ConfigurationPrimitiveTypeHolder. + + :return: The configuration of this ConfigurationPrimitiveTypeHolder. + :rtype: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """Sets the configuration of this ConfigurationPrimitiveTypeHolder. + + :param configuration: The configuration of this ConfigurationPrimitiveTypeHolder. + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + self._configuration = configuration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfigurationPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder_configuration.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder_configuration.py new file mode 100644 index 0000000000..bae57f5eb8 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/configuration_primitive_type_holder_configuration.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConfigurationPrimitiveTypeHolderConfiguration: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_stacks': 'str', + 'failure_mode': 'str' + } + + attribute_map = { + 'target_stacks': 'target_stacks', + 'failure_mode': 'failure_mode' + } + + def __init__(self, target_stacks=None, failure_mode=None): + """ConfigurationPrimitiveTypeHolderConfiguration + + The model defined in huaweicloud sdk + + :param target_stacks: 指定私有hook生效的目标资源栈,有效值为NONE或ALL。 NONE:指定此私有hook不会作用于任何资源栈 ALL:指定此私有hook将会应用于账号下的所有资源栈 + :type target_stacks: str + :param failure_mode: 指定私有hook校验失败后的行为,有效值为FAIL或WARN。 FAIL:指定此私有hook校验失败后资源栈将停止部署,资源栈状态将更新为DEPLOYMENT_FAILED。 WARN:指定此私有hook校验失败后仅通过资源栈事件展示警告消息,但不影响资源栈部署。 + :type failure_mode: str + """ + + + + self._target_stacks = None + self._failure_mode = None + self.discriminator = None + + if target_stacks is not None: + self.target_stacks = target_stacks + if failure_mode is not None: + self.failure_mode = failure_mode + + @property + def target_stacks(self): + """Gets the target_stacks of this ConfigurationPrimitiveTypeHolderConfiguration. + + 指定私有hook生效的目标资源栈,有效值为NONE或ALL。 NONE:指定此私有hook不会作用于任何资源栈 ALL:指定此私有hook将会应用于账号下的所有资源栈 + + :return: The target_stacks of this ConfigurationPrimitiveTypeHolderConfiguration. + :rtype: str + """ + return self._target_stacks + + @target_stacks.setter + def target_stacks(self, target_stacks): + """Sets the target_stacks of this ConfigurationPrimitiveTypeHolderConfiguration. + + 指定私有hook生效的目标资源栈,有效值为NONE或ALL。 NONE:指定此私有hook不会作用于任何资源栈 ALL:指定此私有hook将会应用于账号下的所有资源栈 + + :param target_stacks: The target_stacks of this ConfigurationPrimitiveTypeHolderConfiguration. + :type target_stacks: str + """ + self._target_stacks = target_stacks + + @property + def failure_mode(self): + """Gets the failure_mode of this ConfigurationPrimitiveTypeHolderConfiguration. + + 指定私有hook校验失败后的行为,有效值为FAIL或WARN。 FAIL:指定此私有hook校验失败后资源栈将停止部署,资源栈状态将更新为DEPLOYMENT_FAILED。 WARN:指定此私有hook校验失败后仅通过资源栈事件展示警告消息,但不影响资源栈部署。 + + :return: The failure_mode of this ConfigurationPrimitiveTypeHolderConfiguration. + :rtype: str + """ + return self._failure_mode + + @failure_mode.setter + def failure_mode(self, failure_mode): + """Sets the failure_mode of this ConfigurationPrimitiveTypeHolderConfiguration. + + 指定私有hook校验失败后的行为,有效值为FAIL或WARN。 FAIL:指定此私有hook校验失败后资源栈将停止部署,资源栈状态将更新为DEPLOYMENT_FAILED。 WARN:指定此私有hook校验失败后仅通过资源栈事件展示警告消息,但不影响资源栈部署。 + + :param failure_mode: The failure_mode of this ConfigurationPrimitiveTypeHolderConfiguration. + :type failure_mode: str + """ + self._failure_mode = failure_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfigurationPrimitiveTypeHolderConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request.py new file mode 100644 index 0000000000..82eb0d154b --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePrivateHookRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'body': 'CreatePrivateHookRequestBody' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'body': 'body' + } + + def __init__(self, client_request_id=None, body=None): + """CreatePrivateHookRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param body: Body of the CreatePrivateHookRequest + :type body: :class:`huaweicloudsdkaos.v1.CreatePrivateHookRequestBody` + """ + + + + self._client_request_id = None + self._body = None + self.discriminator = None + + self.client_request_id = client_request_id + if body is not None: + self.body = body + + @property + def client_request_id(self): + """Gets the client_request_id of this CreatePrivateHookRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this CreatePrivateHookRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this CreatePrivateHookRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this CreatePrivateHookRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def body(self): + """Gets the body of this CreatePrivateHookRequest. + + :return: The body of this CreatePrivateHookRequest. + :rtype: :class:`huaweicloudsdkaos.v1.CreatePrivateHookRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePrivateHookRequest. + + :param body: The body of this CreatePrivateHookRequest. + :type body: :class:`huaweicloudsdkaos.v1.CreatePrivateHookRequestBody` + """ + 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, CreatePrivateHookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py new file mode 100644 index 0000000000..e3a18cb2a0 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePrivateHookRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_name': 'str', + 'hook_version': 'str', + 'hook_description': 'str', + 'hook_version_description': 'str', + 'configuration': 'ConfigurationPrimitiveTypeHolderConfiguration', + 'policy_uri': 'str', + 'policy_body': 'str' + } + + attribute_map = { + 'hook_name': 'hook_name', + 'hook_version': 'hook_version', + 'hook_description': 'hook_description', + 'hook_version_description': 'hook_version_description', + 'configuration': 'configuration', + 'policy_uri': 'policy_uri', + 'policy_body': 'policy_body' + } + + def __init__(self, hook_name=None, hook_version=None, hook_description=None, hook_version_description=None, configuration=None, policy_uri=None, policy_body=None): + """CreatePrivateHookRequestBody + + The model defined in huaweicloud sdk + + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + :type hook_description: str + :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + :type hook_version_description: str + :param configuration: + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :type policy_uri: str + :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + :type policy_body: str + """ + + + + self._hook_name = None + self._hook_version = None + self._hook_description = None + self._hook_version_description = None + self._configuration = None + self._policy_uri = None + self._policy_body = None + self.discriminator = None + + self.hook_name = hook_name + self.hook_version = hook_version + if hook_description is not None: + self.hook_description = hook_description + if hook_version_description is not None: + self.hook_version_description = hook_version_description + if configuration is not None: + self.configuration = configuration + if policy_uri is not None: + self.policy_uri = policy_uri + if policy_body is not None: + self.policy_body = policy_body + + @property + def hook_name(self): + """Gets the hook_name of this CreatePrivateHookRequestBody. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this CreatePrivateHookRequestBody. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this CreatePrivateHookRequestBody. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this CreatePrivateHookRequestBody. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_version(self): + """Gets the hook_version of this CreatePrivateHookRequestBody. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this CreatePrivateHookRequestBody. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this CreatePrivateHookRequestBody. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this CreatePrivateHookRequestBody. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_description(self): + """Gets the hook_description of this CreatePrivateHookRequestBody. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :return: The hook_description of this CreatePrivateHookRequestBody. + :rtype: str + """ + return self._hook_description + + @hook_description.setter + def hook_description(self, hook_description): + """Sets the hook_description of this CreatePrivateHookRequestBody. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :param hook_description: The hook_description of this CreatePrivateHookRequestBody. + :type hook_description: str + """ + self._hook_description = hook_description + + @property + def hook_version_description(self): + """Gets the hook_version_description of this CreatePrivateHookRequestBody. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :return: The hook_version_description of this CreatePrivateHookRequestBody. + :rtype: str + """ + return self._hook_version_description + + @hook_version_description.setter + def hook_version_description(self, hook_version_description): + """Sets the hook_version_description of this CreatePrivateHookRequestBody. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :param hook_version_description: The hook_version_description of this CreatePrivateHookRequestBody. + :type hook_version_description: str + """ + self._hook_version_description = hook_version_description + + @property + def configuration(self): + """Gets the configuration of this CreatePrivateHookRequestBody. + + :return: The configuration of this CreatePrivateHookRequestBody. + :rtype: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """Sets the configuration of this CreatePrivateHookRequestBody. + + :param configuration: The configuration of this CreatePrivateHookRequestBody. + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + self._configuration = configuration + + @property + def policy_uri(self): + """Gets the policy_uri of this CreatePrivateHookRequestBody. + + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + + :return: The policy_uri of this CreatePrivateHookRequestBody. + :rtype: str + """ + return self._policy_uri + + @policy_uri.setter + def policy_uri(self, policy_uri): + """Sets the policy_uri of this CreatePrivateHookRequestBody. + + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + + :param policy_uri: The policy_uri of this CreatePrivateHookRequestBody. + :type policy_uri: str + """ + self._policy_uri = policy_uri + + @property + def policy_body(self): + """Gets the policy_body of this CreatePrivateHookRequestBody. + + 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + + :return: The policy_body of this CreatePrivateHookRequestBody. + :rtype: str + """ + return self._policy_body + + @policy_body.setter + def policy_body(self, policy_body): + """Sets the policy_body of this CreatePrivateHookRequestBody. + + 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + + :param policy_body: The policy_body of this CreatePrivateHookRequestBody. + :type policy_body: str + """ + self._policy_body = policy_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, CreatePrivateHookRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py new file mode 100644 index 0000000000..a3609eb2d5 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePrivateHookResponse(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 = { + 'hook_id': 'str' + } + + attribute_map = { + 'hook_id': 'hook_id' + } + + def __init__(self, hook_id=None): + """CreatePrivateHookResponse + + The model defined in huaweicloud sdk + + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + super(CreatePrivateHookResponse, self).__init__() + + self._hook_id = None + self.discriminator = None + + if hook_id is not None: + self.hook_id = hook_id + + @property + def hook_id(self): + """Gets the hook_id of this CreatePrivateHookResponse. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this CreatePrivateHookResponse. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this CreatePrivateHookResponse. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this CreatePrivateHookResponse. + :type hook_id: str + """ + self._hook_id = hook_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, CreatePrivateHookResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request.py new file mode 100644 index 0000000000..bd154f37b0 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePrivateHookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'body': 'CreatePrivateHookVersionRequestBody' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'body': 'body' + } + + def __init__(self, client_request_id=None, hook_name=None, body=None): + """CreatePrivateHookVersionRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param body: Body of the CreatePrivateHookVersionRequest + :type body: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionRequestBody` + """ + + + + self._client_request_id = None + self._hook_name = None + self._body = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + if body is not None: + self.body = body + + @property + def client_request_id(self): + """Gets the client_request_id of this CreatePrivateHookVersionRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this CreatePrivateHookVersionRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this CreatePrivateHookVersionRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this CreatePrivateHookVersionRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this CreatePrivateHookVersionRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this CreatePrivateHookVersionRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this CreatePrivateHookVersionRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this CreatePrivateHookVersionRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def body(self): + """Gets the body of this CreatePrivateHookVersionRequest. + + :return: The body of this CreatePrivateHookVersionRequest. + :rtype: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreatePrivateHookVersionRequest. + + :param body: The body of this CreatePrivateHookVersionRequest. + :type body: :class:`huaweicloudsdkaos.v1.CreatePrivateHookVersionRequestBody` + """ + 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, CreatePrivateHookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py new file mode 100644 index 0000000000..81f3fdd1e1 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePrivateHookVersionRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_id': 'str', + 'hook_version': 'str', + 'hook_version_description': 'str', + 'policy_uri': 'str', + 'policy_body': 'str' + } + + attribute_map = { + 'hook_id': 'hook_id', + 'hook_version': 'hook_version', + 'hook_version_description': 'hook_version_description', + 'policy_uri': 'policy_uri', + 'policy_body': 'policy_body' + } + + def __init__(self, hook_id=None, hook_version=None, hook_version_description=None, policy_uri=None, policy_body=None): + """CreatePrivateHookVersionRequestBody + + The model defined in huaweicloud sdk + + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + :type hook_version_description: str + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :type policy_uri: str + :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + :type policy_body: str + """ + + + + self._hook_id = None + self._hook_version = None + self._hook_version_description = None + self._policy_uri = None + self._policy_body = None + self.discriminator = None + + if hook_id is not None: + self.hook_id = hook_id + self.hook_version = hook_version + if hook_version_description is not None: + self.hook_version_description = hook_version_description + if policy_uri is not None: + self.policy_uri = policy_uri + if policy_body is not None: + self.policy_body = policy_body + + @property + def hook_id(self): + """Gets the hook_id of this CreatePrivateHookVersionRequestBody. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this CreatePrivateHookVersionRequestBody. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this CreatePrivateHookVersionRequestBody. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this CreatePrivateHookVersionRequestBody. + :type hook_id: str + """ + self._hook_id = hook_id + + @property + def hook_version(self): + """Gets the hook_version of this CreatePrivateHookVersionRequestBody. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this CreatePrivateHookVersionRequestBody. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this CreatePrivateHookVersionRequestBody. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this CreatePrivateHookVersionRequestBody. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_version_description(self): + """Gets the hook_version_description of this CreatePrivateHookVersionRequestBody. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :return: The hook_version_description of this CreatePrivateHookVersionRequestBody. + :rtype: str + """ + return self._hook_version_description + + @hook_version_description.setter + def hook_version_description(self, hook_version_description): + """Sets the hook_version_description of this CreatePrivateHookVersionRequestBody. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :param hook_version_description: The hook_version_description of this CreatePrivateHookVersionRequestBody. + :type hook_version_description: str + """ + self._hook_version_description = hook_version_description + + @property + def policy_uri(self): + """Gets the policy_uri of this CreatePrivateHookVersionRequestBody. + + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + + :return: The policy_uri of this CreatePrivateHookVersionRequestBody. + :rtype: str + """ + return self._policy_uri + + @policy_uri.setter + def policy_uri(self, policy_uri): + """Sets the policy_uri of this CreatePrivateHookVersionRequestBody. + + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + + :param policy_uri: The policy_uri of this CreatePrivateHookVersionRequestBody. + :type policy_uri: str + """ + self._policy_uri = policy_uri + + @property + def policy_body(self): + """Gets the policy_body of this CreatePrivateHookVersionRequestBody. + + 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + + :return: The policy_body of this CreatePrivateHookVersionRequestBody. + :rtype: str + """ + return self._policy_body + + @policy_body.setter + def policy_body(self, policy_body): + """Sets the policy_body of this CreatePrivateHookVersionRequestBody. + + 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + + :param policy_body: The policy_body of this CreatePrivateHookVersionRequestBody. + :type policy_body: str + """ + self._policy_body = policy_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, CreatePrivateHookVersionRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_response.py new file mode 100644 index 0000000000..6737187f36 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreatePrivateHookVersionResponse(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): + """CreatePrivateHookVersionResponse + + The model defined in huaweicloud sdk + + """ + + super(CreatePrivateHookVersionResponse, 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, CreatePrivateHookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py new file mode 100644 index 0000000000..32075071d1 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePrivateHookRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'hook_id': 'str' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'hook_id': 'hook_id' + } + + def __init__(self, client_request_id=None, hook_name=None, hook_id=None): + """DeletePrivateHookRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + + + self._client_request_id = None + self._hook_name = None + self._hook_id = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + if hook_id is not None: + self.hook_id = hook_id + + @property + def client_request_id(self): + """Gets the client_request_id of this DeletePrivateHookRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this DeletePrivateHookRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this DeletePrivateHookRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this DeletePrivateHookRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this DeletePrivateHookRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this DeletePrivateHookRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this DeletePrivateHookRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this DeletePrivateHookRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_id(self): + """Gets the hook_id of this DeletePrivateHookRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this DeletePrivateHookRequest. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this DeletePrivateHookRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this DeletePrivateHookRequest. + :type hook_id: str + """ + self._hook_id = hook_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, DeletePrivateHookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_response.py new file mode 100644 index 0000000000..b95b2e149b --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePrivateHookResponse(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): + """DeletePrivateHookResponse + + The model defined in huaweicloud sdk + + """ + + super(DeletePrivateHookResponse, 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, DeletePrivateHookResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py new file mode 100644 index 0000000000..f7190fa7ca --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePrivateHookVersionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'hook_version': 'str', + 'hook_id': 'str' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'hook_version': 'hook_version', + 'hook_id': 'hook_id' + } + + def __init__(self, client_request_id=None, hook_name=None, hook_version=None, hook_id=None): + """DeletePrivateHookVersionRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + + + self._client_request_id = None + self._hook_name = None + self._hook_version = None + self._hook_id = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + self.hook_version = hook_version + if hook_id is not None: + self.hook_id = hook_id + + @property + def client_request_id(self): + """Gets the client_request_id of this DeletePrivateHookVersionRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this DeletePrivateHookVersionRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this DeletePrivateHookVersionRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this DeletePrivateHookVersionRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this DeletePrivateHookVersionRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this DeletePrivateHookVersionRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this DeletePrivateHookVersionRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this DeletePrivateHookVersionRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_version(self): + """Gets the hook_version of this DeletePrivateHookVersionRequest. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this DeletePrivateHookVersionRequest. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this DeletePrivateHookVersionRequest. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this DeletePrivateHookVersionRequest. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_id(self): + """Gets the hook_id of this DeletePrivateHookVersionRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this DeletePrivateHookVersionRequest. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this DeletePrivateHookVersionRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this DeletePrivateHookVersionRequest. + :type hook_id: str + """ + self._hook_id = hook_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, DeletePrivateHookVersionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_response.py new file mode 100644 index 0000000000..a5257da720 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/delete_private_hook_version_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeletePrivateHookVersionResponse(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): + """DeletePrivateHookVersionResponse + + The model defined in huaweicloud sdk + + """ + + super(DeletePrivateHookVersionResponse, 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, DeletePrivateHookVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_create_time_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_create_time_primitive_type_holder.py new file mode 100644 index 0000000000..819905e1bc --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_create_time_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookCreateTimePrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'create_time': 'str' + } + + attribute_map = { + 'create_time': 'create_time' + } + + def __init__(self, create_time=None): + """PrivateHookCreateTimePrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param create_time: 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type create_time: str + """ + + + + self._create_time = None + self.discriminator = None + + if create_time is not None: + self.create_time = create_time + + @property + def create_time(self): + """Gets the create_time of this PrivateHookCreateTimePrimitiveTypeHolder. + + 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The create_time of this PrivateHookCreateTimePrimitiveTypeHolder. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PrivateHookCreateTimePrimitiveTypeHolder. + + 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param create_time: The create_time of this PrivateHookCreateTimePrimitiveTypeHolder. + :type create_time: str + """ + 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, PrivateHookCreateTimePrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_default_version_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_default_version_primitive_type_holder.py new file mode 100644 index 0000000000..c2ccc3545c --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_default_version_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookDefaultVersionPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'default_version': 'str' + } + + attribute_map = { + 'default_version': 'default_version' + } + + def __init__(self, default_version=None): + """PrivateHookDefaultVersionPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param default_version: 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type default_version: str + """ + + + + self._default_version = None + self.discriminator = None + + if default_version is not None: + self.default_version = default_version + + @property + def default_version(self): + """Gets the default_version of this PrivateHookDefaultVersionPrimitiveTypeHolder. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The default_version of this PrivateHookDefaultVersionPrimitiveTypeHolder. + :rtype: str + """ + return self._default_version + + @default_version.setter + def default_version(self, default_version): + """Sets the default_version of this PrivateHookDefaultVersionPrimitiveTypeHolder. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param default_version: The default_version of this PrivateHookDefaultVersionPrimitiveTypeHolder. + :type default_version: str + """ + self._default_version = default_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivateHookDefaultVersionPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_description_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_description_primitive_type_holder.py new file mode 100644 index 0000000000..901e0ed5bd --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_description_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookDescriptionPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_description': 'str' + } + + attribute_map = { + 'hook_description': 'hook_description' + } + + def __init__(self, hook_description=None): + """PrivateHookDescriptionPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + :type hook_description: str + """ + + + + self._hook_description = None + self.discriminator = None + + if hook_description is not None: + self.hook_description = hook_description + + @property + def hook_description(self): + """Gets the hook_description of this PrivateHookDescriptionPrimitiveTypeHolder. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :return: The hook_description of this PrivateHookDescriptionPrimitiveTypeHolder. + :rtype: str + """ + return self._hook_description + + @hook_description.setter + def hook_description(self, hook_description): + """Sets the hook_description of this PrivateHookDescriptionPrimitiveTypeHolder. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :param hook_description: The hook_description of this PrivateHookDescriptionPrimitiveTypeHolder. + :type hook_description: str + """ + self._hook_description = hook_description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivateHookDescriptionPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py new file mode 100644 index 0000000000..a911d2f780 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_id_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookIdPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_id': 'str' + } + + attribute_map = { + 'hook_id': 'hook_id' + } + + def __init__(self, hook_id=None): + """PrivateHookIdPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + + + self._hook_id = None + self.discriminator = None + + if hook_id is not None: + self.hook_id = hook_id + + @property + def hook_id(self): + """Gets the hook_id of this PrivateHookIdPrimitiveTypeHolder. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this PrivateHookIdPrimitiveTypeHolder. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this PrivateHookIdPrimitiveTypeHolder. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this PrivateHookIdPrimitiveTypeHolder. + :type hook_id: str + """ + self._hook_id = hook_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, PrivateHookIdPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_name_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_name_primitive_type_holder.py new file mode 100644 index 0000000000..b59b2921fa --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_name_primitive_type_holder.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookNamePrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_name': 'str' + } + + attribute_map = { + 'hook_name': 'hook_name' + } + + def __init__(self, hook_name=None): + """PrivateHookNamePrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + """ + + + + self._hook_name = None + self.discriminator = None + + self.hook_name = hook_name + + @property + def hook_name(self): + """Gets the hook_name of this PrivateHookNamePrimitiveTypeHolder. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this PrivateHookNamePrimitiveTypeHolder. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this PrivateHookNamePrimitiveTypeHolder. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this PrivateHookNamePrimitiveTypeHolder. + :type hook_name: str + """ + self._hook_name = hook_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, PrivateHookNamePrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py new file mode 100644 index 0000000000..36487dee94 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_summary.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_name': 'str', + 'hook_id': 'str', + 'hook_description': 'str', + 'default_version': 'str', + 'configuration': 'ConfigurationPrimitiveTypeHolderConfiguration', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'hook_name': 'hook_name', + 'hook_id': 'hook_id', + 'hook_description': 'hook_description', + 'default_version': 'default_version', + 'configuration': 'configuration', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, hook_name=None, hook_id=None, hook_description=None, default_version=None, configuration=None, create_time=None, update_time=None): + """PrivateHookSummary + + The model defined in huaweicloud sdk + + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + :type hook_description: str + :param default_version: 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type default_version: str + :param configuration: + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + :param create_time: 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type create_time: str + :param update_time: 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type update_time: str + """ + + + + self._hook_name = None + self._hook_id = None + self._hook_description = None + self._default_version = None + self._configuration = None + self._create_time = None + self._update_time = None + self.discriminator = None + + self.hook_name = hook_name + if hook_id is not None: + self.hook_id = hook_id + if hook_description is not None: + self.hook_description = hook_description + if default_version is not None: + self.default_version = default_version + if configuration is not None: + self.configuration = configuration + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def hook_name(self): + """Gets the hook_name of this PrivateHookSummary. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this PrivateHookSummary. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this PrivateHookSummary. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this PrivateHookSummary. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_id(self): + """Gets the hook_id of this PrivateHookSummary. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this PrivateHookSummary. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this PrivateHookSummary. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this PrivateHookSummary. + :type hook_id: str + """ + self._hook_id = hook_id + + @property + def hook_description(self): + """Gets the hook_description of this PrivateHookSummary. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :return: The hook_description of this PrivateHookSummary. + :rtype: str + """ + return self._hook_description + + @hook_description.setter + def hook_description(self, hook_description): + """Sets the hook_description of this PrivateHookSummary. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :param hook_description: The hook_description of this PrivateHookSummary. + :type hook_description: str + """ + self._hook_description = hook_description + + @property + def default_version(self): + """Gets the default_version of this PrivateHookSummary. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The default_version of this PrivateHookSummary. + :rtype: str + """ + return self._default_version + + @default_version.setter + def default_version(self, default_version): + """Sets the default_version of this PrivateHookSummary. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param default_version: The default_version of this PrivateHookSummary. + :type default_version: str + """ + self._default_version = default_version + + @property + def configuration(self): + """Gets the configuration of this PrivateHookSummary. + + :return: The configuration of this PrivateHookSummary. + :rtype: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """Sets the configuration of this PrivateHookSummary. + + :param configuration: The configuration of this PrivateHookSummary. + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + self._configuration = configuration + + @property + def create_time(self): + """Gets the create_time of this PrivateHookSummary. + + 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The create_time of this PrivateHookSummary. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PrivateHookSummary. + + 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param create_time: The create_time of this PrivateHookSummary. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this PrivateHookSummary. + + 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The update_time of this PrivateHookSummary. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PrivateHookSummary. + + 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param update_time: The update_time of this PrivateHookSummary. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivateHookSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_update_time_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_update_time_primitive_type_holder.py new file mode 100644 index 0000000000..d33a0b99c6 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_update_time_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookUpdateTimePrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'update_time': 'str' + } + + attribute_map = { + 'update_time': 'update_time' + } + + def __init__(self, update_time=None): + """PrivateHookUpdateTimePrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param update_time: 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type update_time: str + """ + + + + self._update_time = None + self.discriminator = None + + if update_time is not None: + self.update_time = update_time + + @property + def update_time(self): + """Gets the update_time of this PrivateHookUpdateTimePrimitiveTypeHolder. + + 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The update_time of this PrivateHookUpdateTimePrimitiveTypeHolder. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PrivateHookUpdateTimePrimitiveTypeHolder. + + 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param update_time: The update_time of this PrivateHookUpdateTimePrimitiveTypeHolder. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivateHookUpdateTimePrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_create_time_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_create_time_primitive_type_holder.py new file mode 100644 index 0000000000..5a28be87ec --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_create_time_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookVersionCreateTimePrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'create_time': 'str' + } + + attribute_map = { + 'create_time': 'create_time' + } + + def __init__(self, create_time=None): + """PrivateHookVersionCreateTimePrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param create_time: 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type create_time: str + """ + + + + self._create_time = None + self.discriminator = None + + if create_time is not None: + self.create_time = create_time + + @property + def create_time(self): + """Gets the create_time of this PrivateHookVersionCreateTimePrimitiveTypeHolder. + + 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The create_time of this PrivateHookVersionCreateTimePrimitiveTypeHolder. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PrivateHookVersionCreateTimePrimitiveTypeHolder. + + 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param create_time: The create_time of this PrivateHookVersionCreateTimePrimitiveTypeHolder. + :type create_time: str + """ + 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, PrivateHookVersionCreateTimePrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_description_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_description_primitive_type_holder.py new file mode 100644 index 0000000000..358fc5a39f --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_description_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookVersionDescriptionPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_version_description': 'str' + } + + attribute_map = { + 'hook_version_description': 'hook_version_description' + } + + def __init__(self, hook_version_description=None): + """PrivateHookVersionDescriptionPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + :type hook_version_description: str + """ + + + + self._hook_version_description = None + self.discriminator = None + + if hook_version_description is not None: + self.hook_version_description = hook_version_description + + @property + def hook_version_description(self): + """Gets the hook_version_description of this PrivateHookVersionDescriptionPrimitiveTypeHolder. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :return: The hook_version_description of this PrivateHookVersionDescriptionPrimitiveTypeHolder. + :rtype: str + """ + return self._hook_version_description + + @hook_version_description.setter + def hook_version_description(self, hook_version_description): + """Sets the hook_version_description of this PrivateHookVersionDescriptionPrimitiveTypeHolder. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :param hook_version_description: The hook_version_description of this PrivateHookVersionDescriptionPrimitiveTypeHolder. + :type hook_version_description: str + """ + self._hook_version_description = hook_version_description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivateHookVersionDescriptionPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_primitive_type_holder.py new file mode 100644 index 0000000000..7a6bf84781 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_primitive_type_holder.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookVersionPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_version': 'str' + } + + attribute_map = { + 'hook_version': 'hook_version' + } + + def __init__(self, hook_version=None): + """PrivateHookVersionPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + """ + + + + self._hook_version = None + self.discriminator = None + + self.hook_version = hook_version + + @property + def hook_version(self): + """Gets the hook_version of this PrivateHookVersionPrimitiveTypeHolder. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this PrivateHookVersionPrimitiveTypeHolder. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this PrivateHookVersionPrimitiveTypeHolder. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this PrivateHookVersionPrimitiveTypeHolder. + :type hook_version: str + """ + self._hook_version = hook_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivateHookVersionPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py new file mode 100644 index 0000000000..ec3ec113f2 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_hook_version_summary.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivateHookVersionSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_name': 'str', + 'hook_id': 'str', + 'hook_version': 'str', + 'hook_version_description': 'str', + 'create_time': 'str' + } + + attribute_map = { + 'hook_name': 'hook_name', + 'hook_id': 'hook_id', + 'hook_version': 'hook_version', + 'hook_version_description': 'hook_version_description', + 'create_time': 'create_time' + } + + def __init__(self, hook_name=None, hook_id=None, hook_version=None, hook_version_description=None, create_time=None): + """PrivateHookVersionSummary + + The model defined in huaweicloud sdk + + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + :type hook_version_description: str + :param create_time: 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type create_time: str + """ + + + + self._hook_name = None + self._hook_id = None + self._hook_version = None + self._hook_version_description = None + self._create_time = None + self.discriminator = None + + self.hook_name = hook_name + if hook_id is not None: + self.hook_id = hook_id + self.hook_version = hook_version + if hook_version_description is not None: + self.hook_version_description = hook_version_description + if create_time is not None: + self.create_time = create_time + + @property + def hook_name(self): + """Gets the hook_name of this PrivateHookVersionSummary. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this PrivateHookVersionSummary. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this PrivateHookVersionSummary. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this PrivateHookVersionSummary. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_id(self): + """Gets the hook_id of this PrivateHookVersionSummary. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this PrivateHookVersionSummary. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this PrivateHookVersionSummary. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this PrivateHookVersionSummary. + :type hook_id: str + """ + self._hook_id = hook_id + + @property + def hook_version(self): + """Gets the hook_version of this PrivateHookVersionSummary. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this PrivateHookVersionSummary. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this PrivateHookVersionSummary. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this PrivateHookVersionSummary. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_version_description(self): + """Gets the hook_version_description of this PrivateHookVersionSummary. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :return: The hook_version_description of this PrivateHookVersionSummary. + :rtype: str + """ + return self._hook_version_description + + @hook_version_description.setter + def hook_version_description(self, hook_version_description): + """Sets the hook_version_description of this PrivateHookVersionSummary. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :param hook_version_description: The hook_version_description of this PrivateHookVersionSummary. + :type hook_version_description: str + """ + self._hook_version_description = hook_version_description + + @property + def create_time(self): + """Gets the create_time of this PrivateHookVersionSummary. + + 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The create_time of this PrivateHookVersionSummary. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PrivateHookVersionSummary. + + 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param create_time: The create_time of this PrivateHookVersionSummary. + :type create_time: str + """ + 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, PrivateHookVersionSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py new file mode 100644 index 0000000000..fb4ddd6cc8 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivatePolicyBodyPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'policy_body': 'str' + } + + attribute_map = { + 'policy_body': 'policy_body' + } + + def __init__(self, policy_body=None): + """PrivatePolicyBodyPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + :type policy_body: str + """ + + + + self._policy_body = None + self.discriminator = None + + if policy_body is not None: + self.policy_body = policy_body + + @property + def policy_body(self): + """Gets the policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. + + 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + + :return: The policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. + :rtype: str + """ + return self._policy_body + + @policy_body.setter + def policy_body(self, policy_body): + """Sets the policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. + + 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + + :param policy_body: The policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. + :type policy_body: str + """ + self._policy_body = policy_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, PrivatePolicyBodyPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py new file mode 100644 index 0000000000..49642b1360 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PrivatePolicyURIPrimitiveTypeHolder: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'policy_uri': 'str' + } + + attribute_map = { + 'policy_uri': 'policy_uri' + } + + def __init__(self, policy_uri=None): + """PrivatePolicyURIPrimitiveTypeHolder + + The model defined in huaweicloud sdk + + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :type policy_uri: str + """ + + + + self._policy_uri = None + self.discriminator = None + + if policy_uri is not None: + self.policy_uri = policy_uri + + @property + def policy_uri(self): + """Gets the policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. + + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + + :return: The policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. + :rtype: str + """ + return self._policy_uri + + @policy_uri.setter + def policy_uri(self, policy_uri): + """Sets the policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. + + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + + :param policy_uri: The policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. + :type policy_uri: str + """ + self._policy_uri = policy_uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PrivatePolicyURIPrimitiveTypeHolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py new file mode 100644 index 0000000000..8d10fb5231 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPrivateHookMetadataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'hook_id': 'str' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'hook_id': 'hook_id' + } + + def __init__(self, client_request_id=None, hook_name=None, hook_id=None): + """ShowPrivateHookMetadataRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + + + self._client_request_id = None + self._hook_name = None + self._hook_id = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + if hook_id is not None: + self.hook_id = hook_id + + @property + def client_request_id(self): + """Gets the client_request_id of this ShowPrivateHookMetadataRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this ShowPrivateHookMetadataRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this ShowPrivateHookMetadataRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this ShowPrivateHookMetadataRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this ShowPrivateHookMetadataRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this ShowPrivateHookMetadataRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this ShowPrivateHookMetadataRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this ShowPrivateHookMetadataRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_id(self): + """Gets the hook_id of this ShowPrivateHookMetadataRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this ShowPrivateHookMetadataRequest. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this ShowPrivateHookMetadataRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this ShowPrivateHookMetadataRequest. + :type hook_id: str + """ + self._hook_id = hook_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, ShowPrivateHookMetadataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py new file mode 100644 index 0000000000..6874753938 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_metadata_response.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPrivateHookMetadataResponse(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 = { + 'hook_name': 'str', + 'hook_id': 'str', + 'hook_description': 'str', + 'default_version': 'str', + 'configuration': 'ConfigurationPrimitiveTypeHolderConfiguration', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'hook_name': 'hook_name', + 'hook_id': 'hook_id', + 'hook_description': 'hook_description', + 'default_version': 'default_version', + 'configuration': 'configuration', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, hook_name=None, hook_id=None, hook_description=None, default_version=None, configuration=None, create_time=None, update_time=None): + """ShowPrivateHookMetadataResponse + + The model defined in huaweicloud sdk + + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + :type hook_description: str + :param default_version: 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type default_version: str + :param configuration: + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + :param create_time: 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type create_time: str + :param update_time: 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type update_time: str + """ + + super(ShowPrivateHookMetadataResponse, self).__init__() + + self._hook_name = None + self._hook_id = None + self._hook_description = None + self._default_version = None + self._configuration = None + self._create_time = None + self._update_time = None + self.discriminator = None + + self.hook_name = hook_name + if hook_id is not None: + self.hook_id = hook_id + if hook_description is not None: + self.hook_description = hook_description + if default_version is not None: + self.default_version = default_version + if configuration is not None: + self.configuration = configuration + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def hook_name(self): + """Gets the hook_name of this ShowPrivateHookMetadataResponse. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this ShowPrivateHookMetadataResponse. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this ShowPrivateHookMetadataResponse. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this ShowPrivateHookMetadataResponse. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_id(self): + """Gets the hook_id of this ShowPrivateHookMetadataResponse. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this ShowPrivateHookMetadataResponse. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this ShowPrivateHookMetadataResponse. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this ShowPrivateHookMetadataResponse. + :type hook_id: str + """ + self._hook_id = hook_id + + @property + def hook_description(self): + """Gets the hook_description of this ShowPrivateHookMetadataResponse. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :return: The hook_description of this ShowPrivateHookMetadataResponse. + :rtype: str + """ + return self._hook_description + + @hook_description.setter + def hook_description(self, hook_description): + """Sets the hook_description of this ShowPrivateHookMetadataResponse. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :param hook_description: The hook_description of this ShowPrivateHookMetadataResponse. + :type hook_description: str + """ + self._hook_description = hook_description + + @property + def default_version(self): + """Gets the default_version of this ShowPrivateHookMetadataResponse. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The default_version of this ShowPrivateHookMetadataResponse. + :rtype: str + """ + return self._default_version + + @default_version.setter + def default_version(self, default_version): + """Sets the default_version of this ShowPrivateHookMetadataResponse. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param default_version: The default_version of this ShowPrivateHookMetadataResponse. + :type default_version: str + """ + self._default_version = default_version + + @property + def configuration(self): + """Gets the configuration of this ShowPrivateHookMetadataResponse. + + :return: The configuration of this ShowPrivateHookMetadataResponse. + :rtype: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """Sets the configuration of this ShowPrivateHookMetadataResponse. + + :param configuration: The configuration of this ShowPrivateHookMetadataResponse. + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + self._configuration = configuration + + @property + def create_time(self): + """Gets the create_time of this ShowPrivateHookMetadataResponse. + + 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The create_time of this ShowPrivateHookMetadataResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowPrivateHookMetadataResponse. + + 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param create_time: The create_time of this ShowPrivateHookMetadataResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowPrivateHookMetadataResponse. + + 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The update_time of this ShowPrivateHookMetadataResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowPrivateHookMetadataResponse. + + 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param update_time: The update_time of this ShowPrivateHookMetadataResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowPrivateHookMetadataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py new file mode 100644 index 0000000000..965f9c871b --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPrivateHookVersionMetadataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'hook_version': 'str', + 'hook_id': 'str' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'hook_version': 'hook_version', + 'hook_id': 'hook_id' + } + + def __init__(self, client_request_id=None, hook_name=None, hook_version=None, hook_id=None): + """ShowPrivateHookVersionMetadataRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + """ + + + + self._client_request_id = None + self._hook_name = None + self._hook_version = None + self._hook_id = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + self.hook_version = hook_version + if hook_id is not None: + self.hook_id = hook_id + + @property + def client_request_id(self): + """Gets the client_request_id of this ShowPrivateHookVersionMetadataRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this ShowPrivateHookVersionMetadataRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this ShowPrivateHookVersionMetadataRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this ShowPrivateHookVersionMetadataRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this ShowPrivateHookVersionMetadataRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this ShowPrivateHookVersionMetadataRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this ShowPrivateHookVersionMetadataRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this ShowPrivateHookVersionMetadataRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_version(self): + """Gets the hook_version of this ShowPrivateHookVersionMetadataRequest. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this ShowPrivateHookVersionMetadataRequest. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this ShowPrivateHookVersionMetadataRequest. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this ShowPrivateHookVersionMetadataRequest. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_id(self): + """Gets the hook_id of this ShowPrivateHookVersionMetadataRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this ShowPrivateHookVersionMetadataRequest. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this ShowPrivateHookVersionMetadataRequest. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this ShowPrivateHookVersionMetadataRequest. + :type hook_id: str + """ + self._hook_id = hook_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, ShowPrivateHookVersionMetadataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py new file mode 100644 index 0000000000..b76573dda9 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/show_private_hook_version_metadata_response.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowPrivateHookVersionMetadataResponse(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 = { + 'hook_name': 'str', + 'hook_id': 'str', + 'hook_version': 'str', + 'hook_version_description': 'str', + 'create_time': 'str' + } + + attribute_map = { + 'hook_name': 'hook_name', + 'hook_id': 'hook_id', + 'hook_version': 'hook_version', + 'hook_version_description': 'hook_version_description', + 'create_time': 'create_time' + } + + def __init__(self, hook_name=None, hook_id=None, hook_version=None, hook_version_description=None, create_time=None): + """ShowPrivateHookVersionMetadataResponse + + The model defined in huaweicloud sdk + + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + :param hook_version: 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type hook_version: str + :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + :type hook_version_description: str + :param create_time: 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + :type create_time: str + """ + + super(ShowPrivateHookVersionMetadataResponse, self).__init__() + + self._hook_name = None + self._hook_id = None + self._hook_version = None + self._hook_version_description = None + self._create_time = None + self.discriminator = None + + self.hook_name = hook_name + if hook_id is not None: + self.hook_id = hook_id + self.hook_version = hook_version + if hook_version_description is not None: + self.hook_version_description = hook_version_description + if create_time is not None: + self.create_time = create_time + + @property + def hook_name(self): + """Gets the hook_name of this ShowPrivateHookVersionMetadataResponse. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this ShowPrivateHookVersionMetadataResponse. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this ShowPrivateHookVersionMetadataResponse. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this ShowPrivateHookVersionMetadataResponse. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def hook_id(self): + """Gets the hook_id of this ShowPrivateHookVersionMetadataResponse. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this ShowPrivateHookVersionMetadataResponse. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this ShowPrivateHookVersionMetadataResponse. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this ShowPrivateHookVersionMetadataResponse. + :type hook_id: str + """ + self._hook_id = hook_id + + @property + def hook_version(self): + """Gets the hook_version of this ShowPrivateHookVersionMetadataResponse. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The hook_version of this ShowPrivateHookVersionMetadataResponse. + :rtype: str + """ + return self._hook_version + + @hook_version.setter + def hook_version(self, hook_version): + """Sets the hook_version of this ShowPrivateHookVersionMetadataResponse. + + 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param hook_version: The hook_version of this ShowPrivateHookVersionMetadataResponse. + :type hook_version: str + """ + self._hook_version = hook_version + + @property + def hook_version_description(self): + """Gets the hook_version_description of this ShowPrivateHookVersionMetadataResponse. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :return: The hook_version_description of this ShowPrivateHookVersionMetadataResponse. + :rtype: str + """ + return self._hook_version_description + + @hook_version_description.setter + def hook_version_description(self, hook_version_description): + """Sets the hook_version_description of this ShowPrivateHookVersionMetadataResponse. + + 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + + :param hook_version_description: The hook_version_description of this ShowPrivateHookVersionMetadataResponse. + :type hook_version_description: str + """ + self._hook_version_description = hook_version_description + + @property + def create_time(self): + """Gets the create_time of this ShowPrivateHookVersionMetadataResponse. + + 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :return: The create_time of this ShowPrivateHookVersionMetadataResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowPrivateHookVersionMetadataResponse. + + 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + + :param create_time: The create_time of this ShowPrivateHookVersionMetadataResponse. + :type create_time: str + """ + 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, ShowPrivateHookVersionMetadataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request.py new file mode 100644 index 0000000000..3ae2623c8d --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePrivateHookMetadataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'client_request_id': 'str', + 'hook_name': 'str', + 'body': 'UpdatePrivateHookMetadataRequestBody' + } + + attribute_map = { + 'client_request_id': 'Client-Request-Id', + 'hook_name': 'hook_name', + 'body': 'body' + } + + def __init__(self, client_request_id=None, hook_name=None, body=None): + """UpdatePrivateHookMetadataRequest + + The model defined in huaweicloud sdk + + :param client_request_id: 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + :type client_request_id: str + :param hook_name: 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + :type hook_name: str + :param body: Body of the UpdatePrivateHookMetadataRequest + :type body: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataRequestBody` + """ + + + + self._client_request_id = None + self._hook_name = None + self._body = None + self.discriminator = None + + self.client_request_id = client_request_id + self.hook_name = hook_name + if body is not None: + self.body = body + + @property + def client_request_id(self): + """Gets the client_request_id of this UpdatePrivateHookMetadataRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :return: The client_request_id of this UpdatePrivateHookMetadataRequest. + :rtype: str + """ + return self._client_request_id + + @client_request_id.setter + def client_request_id(self, client_request_id): + """Sets the client_request_id of this UpdatePrivateHookMetadataRequest. + + 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + + :param client_request_id: The client_request_id of this UpdatePrivateHookMetadataRequest. + :type client_request_id: str + """ + self._client_request_id = client_request_id + + @property + def hook_name(self): + """Gets the hook_name of this UpdatePrivateHookMetadataRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :return: The hook_name of this UpdatePrivateHookMetadataRequest. + :rtype: str + """ + return self._hook_name + + @hook_name.setter + def hook_name(self, hook_name): + """Sets the hook_name of this UpdatePrivateHookMetadataRequest. + + 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + + :param hook_name: The hook_name of this UpdatePrivateHookMetadataRequest. + :type hook_name: str + """ + self._hook_name = hook_name + + @property + def body(self): + """Gets the body of this UpdatePrivateHookMetadataRequest. + + :return: The body of this UpdatePrivateHookMetadataRequest. + :rtype: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePrivateHookMetadataRequest. + + :param body: The body of this UpdatePrivateHookMetadataRequest. + :type body: :class:`huaweicloudsdkaos.v1.UpdatePrivateHookMetadataRequestBody` + """ + 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, UpdatePrivateHookMetadataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py new file mode 100644 index 0000000000..184d7c9b32 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_request_body.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePrivateHookMetadataRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'hook_description': 'str', + 'hook_id': 'str', + 'default_version': 'str', + 'configuration': 'ConfigurationPrimitiveTypeHolderConfiguration' + } + + attribute_map = { + 'hook_description': 'hook_description', + 'hook_id': 'hook_id', + 'default_version': 'default_version', + 'configuration': 'configuration' + } + + def __init__(self, hook_description=None, hook_id=None, default_version=None, configuration=None): + """UpdatePrivateHookMetadataRequestBody + + The model defined in huaweicloud sdk + + :param hook_description: 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + :type hook_description: str + :param hook_id: 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + :type hook_id: str + :param default_version: 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + :type default_version: str + :param configuration: + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + + + + self._hook_description = None + self._hook_id = None + self._default_version = None + self._configuration = None + self.discriminator = None + + if hook_description is not None: + self.hook_description = hook_description + if hook_id is not None: + self.hook_id = hook_id + if default_version is not None: + self.default_version = default_version + if configuration is not None: + self.configuration = configuration + + @property + def hook_description(self): + """Gets the hook_description of this UpdatePrivateHookMetadataRequestBody. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :return: The hook_description of this UpdatePrivateHookMetadataRequestBody. + :rtype: str + """ + return self._hook_description + + @hook_description.setter + def hook_description(self, hook_description): + """Sets the hook_description of this UpdatePrivateHookMetadataRequestBody. + + 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + + :param hook_description: The hook_description of this UpdatePrivateHookMetadataRequestBody. + :type hook_description: str + """ + self._hook_description = hook_description + + @property + def hook_id(self): + """Gets the hook_id of this UpdatePrivateHookMetadataRequestBody. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :return: The hook_id of this UpdatePrivateHookMetadataRequestBody. + :rtype: str + """ + return self._hook_id + + @hook_id.setter + def hook_id(self, hook_id): + """Sets the hook_id of this UpdatePrivateHookMetadataRequestBody. + + 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + + :param hook_id: The hook_id of this UpdatePrivateHookMetadataRequestBody. + :type hook_id: str + """ + self._hook_id = hook_id + + @property + def default_version(self): + """Gets the default_version of this UpdatePrivateHookMetadataRequestBody. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :return: The default_version of this UpdatePrivateHookMetadataRequestBody. + :rtype: str + """ + return self._default_version + + @default_version.setter + def default_version(self, default_version): + """Sets the default_version of this UpdatePrivateHookMetadataRequestBody. + + 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + + :param default_version: The default_version of this UpdatePrivateHookMetadataRequestBody. + :type default_version: str + """ + self._default_version = default_version + + @property + def configuration(self): + """Gets the configuration of this UpdatePrivateHookMetadataRequestBody. + + :return: The configuration of this UpdatePrivateHookMetadataRequestBody. + :rtype: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + return self._configuration + + @configuration.setter + def configuration(self, configuration): + """Sets the configuration of this UpdatePrivateHookMetadataRequestBody. + + :param configuration: The configuration of this UpdatePrivateHookMetadataRequestBody. + :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` + """ + self._configuration = configuration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePrivateHookMetadataRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_response.py new file mode 100644 index 0000000000..8d83b30ab1 --- /dev/null +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/update_private_hook_metadata_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePrivateHookMetadataResponse(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): + """UpdatePrivateHookMetadataResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdatePrivateHookMetadataResponse, 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, UpdatePrivateHookMetadataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 3dcf208b93..4d08a63ee3 100644 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 5c0634a954..af5cf93a41 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index a2dfff8e82..c14ff5762a 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 9ef30e4e38..68e05d3f79 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index 0d97a5a4e4..30ee98a921 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 191dcc569a..1b55a265bc 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index 8c92b8f8c6..f640c3331d 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index e7210d1711..21b3b5a68c 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 4c9a24501f..8b8cef3e6b 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 1cbd81974e..961c424f4d 100644 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 951ad5d16f..815956033a 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 774511aafe..524fdf225f 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index f70398def1..0841dbf455 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 55301617a4..1bb32dd255 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index 2afff7a8c2..bca8e151ce 100644 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] 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 e74b9f57b3..c8d545aec6 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py @@ -64,6 +64,8 @@ class CceRegion: "https://cce.me-east-1.myhuaweicloud.com") CN_EAST_4 = Region("cn-east-4", "https://cce.cn-east-4.myhuaweicloud.com") + AF_NORTH_1 = Region("af-north-1", + "https://cce.af-north-1.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -95,6 +97,7 @@ class CceRegion: "ru-moscow-1": RU_MOSCOW_1, "me-east-1": ME_EAST_1, "cn-east-4": CN_EAST_4, + "af-north-1": AF_NORTH_1, } @classmethod diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 4a3e1c785f..697d5d9127 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 30d3480bc1..11a4bd7b00 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 4b1713f681..d6118f69c8 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 0686f56cb6..72c5c9e567 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 3e81deb059..df21f9ebf4 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 46761f5bd1..c94666ac3e 100644 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 459b4decd5..f32db4895e 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index e390708db9..30b936af3e 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 2d46ba3adf..c0ef0960e5 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 09d65df9c3..0958014a46 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index 8683cbf44c..ec7d373c25 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index a2b5700818..70ade2ef5b 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 004a95ba9c..cc94ea2c98 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index d5358e02ef..31f647b48e 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 68ce0af04b..9b666d2393 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 9970417c3b..0f7321916e 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index 847517d392..6355827988 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsgovernance/requirements.txt b/huaweicloud-sdk-codeartsgovernance/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartsgovernance/requirements.txt +++ b/huaweicloud-sdk-codeartsgovernance/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsgovernance/setup.py b/huaweicloud-sdk-codeartsgovernance/setup.py index feed5cfa14..22f1188b28 100644 --- a/huaweicloud-sdk-codeartsgovernance/setup.py +++ b/huaweicloud-sdk-codeartsgovernance/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsgovernance" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index 5e43e20aec..f0cb5757a3 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index 6efd1b2aa1..06202aa0f9 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index 8150ab8b25..23e4c3e0bb 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index 6893c61348..a14818c17e 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py index 91c6bded1a..7290c9be7d 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py @@ -3750,8 +3750,6 @@ def _list_remediation_exceptions_http_info(self, request): query_params.append(('marker', local_var_params['marker'])) if 'resource_id' in local_var_params: query_params.append(('resource_id', local_var_params['resource_id'])) - if 'resource_name' in local_var_params: - query_params.append(('resource_name', local_var_params['resource_name'])) header_params = {} diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py index f466e8d766..c5cfabe66b 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py @@ -3750,8 +3750,6 @@ def _list_remediation_exceptions_http_info(cls, request): query_params.append(('marker', local_var_params['marker'])) if 'resource_id' in local_var_params: query_params.append(('resource_id', local_var_params['resource_id'])) - if 'resource_name' in local_var_params: - query_params.append(('resource_name', local_var_params['resource_name'])) header_params = {} diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/create_or_update_remediation_configuration_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/create_or_update_remediation_configuration_response.py index d8ea3a5b37..036b385ef0 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/create_or_update_remediation_configuration_response.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/create_or_update_remediation_configuration_response.py @@ -62,7 +62,7 @@ def __init__(self, automatic=None, target_type=None, target_id=None, static_para :type static_parameter: list[:class:`huaweicloudsdkconfig.v1.RemediationStaticParameter`] :param resource_parameter: :type resource_parameter: :class:`huaweicloudsdkconfig.v1.RemediationResourceParameter` - :param maximum_attempts: 指定时间内自动修正的最大尝试次数。 + :param maximum_attempts: 指定时间内修正的最大尝试次数。 :type maximum_attempts: int :param retry_attempt_seconds: 用于防止循环修正的时间窗口,如果在指定时间内进行了自动修正的最大尝试次数,则将资源添加至修正例外。 :type retry_attempt_seconds: int @@ -229,7 +229,7 @@ def resource_parameter(self, resource_parameter): def maximum_attempts(self): """Gets the maximum_attempts of this CreateOrUpdateRemediationConfigurationResponse. - 指定时间内自动修正的最大尝试次数。 + 指定时间内修正的最大尝试次数。 :return: The maximum_attempts of this CreateOrUpdateRemediationConfigurationResponse. :rtype: int @@ -240,7 +240,7 @@ def maximum_attempts(self): def maximum_attempts(self, maximum_attempts): """Sets the maximum_attempts of this CreateOrUpdateRemediationConfigurationResponse. - 指定时间内自动修正的最大尝试次数。 + 指定时间内修正的最大尝试次数。 :param maximum_attempts: The maximum_attempts of this CreateOrUpdateRemediationConfigurationResponse. :type maximum_attempts: int diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_remediation_exceptions_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_remediation_exceptions_request.py index b3c54aff40..1306f889b8 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_remediation_exceptions_request.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/list_remediation_exceptions_request.py @@ -20,19 +20,17 @@ class ListRemediationExceptionsRequest: 'policy_assignment_id': 'str', 'limit': 'int', 'marker': 'str', - 'resource_id': 'str', - 'resource_name': 'str' + 'resource_id': 'str' } attribute_map = { 'policy_assignment_id': 'policy_assignment_id', 'limit': 'limit', 'marker': 'marker', - 'resource_id': 'resource_id', - 'resource_name': 'resource_name' + 'resource_id': 'resource_id' } - def __init__(self, policy_assignment_id=None, limit=None, marker=None, resource_id=None, resource_name=None): + def __init__(self, policy_assignment_id=None, limit=None, marker=None, resource_id=None): """ListRemediationExceptionsRequest The model defined in huaweicloud sdk @@ -45,8 +43,6 @@ def __init__(self, policy_assignment_id=None, limit=None, marker=None, resource_ :type marker: str :param resource_id: 资源ID :type resource_id: str - :param resource_name: 资源名称 - :type resource_name: str """ @@ -55,7 +51,6 @@ def __init__(self, policy_assignment_id=None, limit=None, marker=None, resource_ self._limit = None self._marker = None self._resource_id = None - self._resource_name = None self.discriminator = None self.policy_assignment_id = policy_assignment_id @@ -65,8 +60,6 @@ def __init__(self, policy_assignment_id=None, limit=None, marker=None, resource_ self.marker = marker if resource_id is not None: self.resource_id = resource_id - if resource_name is not None: - self.resource_name = resource_name @property def policy_assignment_id(self): @@ -156,28 +149,6 @@ def resource_id(self, resource_id): """ self._resource_id = resource_id - @property - def resource_name(self): - """Gets the resource_name of this ListRemediationExceptionsRequest. - - 资源名称 - - :return: The resource_name of this ListRemediationExceptionsRequest. - :rtype: str - """ - return self._resource_name - - @resource_name.setter - def resource_name(self, resource_name): - """Sets the resource_name of this ListRemediationExceptionsRequest. - - 资源名称 - - :param resource_name: The resource_name of this ListRemediationExceptionsRequest. - :type resource_name: str - """ - self._resource_name = resource_name - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_configuration_request_body.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_configuration_request_body.py index 0fb142feeb..ab8c3bf1a3 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_configuration_request_body.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_configuration_request_body.py @@ -55,7 +55,7 @@ def __init__(self, automatic=None, target_type=None, target_id=None, static_para :type static_parameter: list[:class:`huaweicloudsdkconfig.v1.RemediationStaticParameter`] :param resource_parameter: :type resource_parameter: :class:`huaweicloudsdkconfig.v1.RemediationResourceParameter` - :param maximum_attempts: 指定时间内自动修正的最大尝试次数。 + :param maximum_attempts: 指定时间内修正的最大尝试次数。 :type maximum_attempts: int :param retry_attempt_seconds: 用于防止循环修正的时间窗口,如果在指定时间内进行了自动修正的最大尝试次数,则将资源添加至修正例外。 :type retry_attempt_seconds: int @@ -204,7 +204,7 @@ def resource_parameter(self, resource_parameter): def maximum_attempts(self): """Gets the maximum_attempts of this RemediationConfigurationRequestBody. - 指定时间内自动修正的最大尝试次数。 + 指定时间内修正的最大尝试次数。 :return: The maximum_attempts of this RemediationConfigurationRequestBody. :rtype: int @@ -215,7 +215,7 @@ def maximum_attempts(self): def maximum_attempts(self, maximum_attempts): """Sets the maximum_attempts of this RemediationConfigurationRequestBody. - 指定时间内自动修正的最大尝试次数。 + 指定时间内修正的最大尝试次数。 :param maximum_attempts: The maximum_attempts of this RemediationConfigurationRequestBody. :type maximum_attempts: int diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_remediation_configuration_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_remediation_configuration_response.py index 430ff57fd0..b2ea6eba0c 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_remediation_configuration_response.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/show_remediation_configuration_response.py @@ -62,7 +62,7 @@ def __init__(self, automatic=None, target_type=None, target_id=None, static_para :type static_parameter: list[:class:`huaweicloudsdkconfig.v1.RemediationStaticParameter`] :param resource_parameter: :type resource_parameter: :class:`huaweicloudsdkconfig.v1.RemediationResourceParameter` - :param maximum_attempts: 指定时间内自动修正的最大尝试次数。 + :param maximum_attempts: 指定时间内修正的最大尝试次数。 :type maximum_attempts: int :param retry_attempt_seconds: 用于防止循环修正的时间窗口,如果在指定时间内进行了自动修正的最大尝试次数,则将资源添加至修正例外。 :type retry_attempt_seconds: int @@ -229,7 +229,7 @@ def resource_parameter(self, resource_parameter): def maximum_attempts(self): """Gets the maximum_attempts of this ShowRemediationConfigurationResponse. - 指定时间内自动修正的最大尝试次数。 + 指定时间内修正的最大尝试次数。 :return: The maximum_attempts of this ShowRemediationConfigurationResponse. :rtype: int @@ -240,7 +240,7 @@ def maximum_attempts(self): def maximum_attempts(self, maximum_attempts): """Sets the maximum_attempts of this ShowRemediationConfigurationResponse. - 指定时间内自动修正的最大尝试次数。 + 指定时间内修正的最大尝试次数。 :param maximum_attempts: The maximum_attempts of this ShowRemediationConfigurationResponse. :type maximum_attempts: int diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index e3194c67ae..de9cdcce38 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 5911677140..a7baca0ee9 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-core/tests/test_credentials.py b/huaweicloud-sdk-core/tests/test_credentials.py index 7f660e99aa..6996a53ce8 100644 --- a/huaweicloud-sdk-core/tests/test_credentials.py +++ b/huaweicloud-sdk-core/tests/test_credentials.py @@ -92,10 +92,13 @@ def test_global_credentials_sign_with_temp_aksk(sdk_request): def test_auto_get_project_id(mocked_http_client, mocked_responses): - mocked_responses.get("https://iam.myhuaweicloud.com/v3/projects", - content_type="application/json", - headers={"X-IAM-Trace-Id": "trace-id"}, - body="{\"projects\":[{\"id\":\"project_id\"}]}") + mocked_responses.add( + method=responses.GET, + url="https://iam.myhuaweicloud.com/v3/projects", + content_type="application/json", + headers={"X-IAM-Trace-Id": "trace-id"}, + body="{\"projects\":[{\"id\":\"project_id\"}]}" + ) credentials = BasicCredentials("ak", "sk") credentials.process_auth_params(mocked_http_client, "region-id-1") @@ -103,10 +106,13 @@ def test_auto_get_project_id(mocked_http_client, mocked_responses): def test_empty_project_id(mocked_http_client, mocked_responses): - mocked_responses.get("https://iam.myhuaweicloud.com/v3/projects", - content_type="application/json", - headers={"X-IAM-Trace-Id": "trace-id"}, - body="{\"projects\":[]}") + mocked_responses.add( + method=responses.GET, + url="https://iam.myhuaweicloud.com/v3/projects", + content_type="application/json", + headers={"X-IAM-Trace-Id": "trace-id"}, + body="{\"projects\":[]}" + ) credentials = BasicCredentials("ak", "sk") try: @@ -119,10 +125,13 @@ def test_empty_project_id(mocked_http_client, mocked_responses): def test_multiple_project_ids(mocked_http_client, mocked_responses): - mocked_responses.get("https://iam.myhuaweicloud.com/v3/projects", - content_type="application/json", - headers={"X-IAM-Trace-Id": "trace-id"}, - body="{\"projects\":[{\"id\":\"project_id1\"},{\"id\":\"project_id2\"}]}") + mocked_responses.add( + method=responses.GET, + url="https://iam.myhuaweicloud.com/v3/projects", + content_type="application/json", + headers={"X-IAM-Trace-Id": "trace-id"}, + body="{\"projects\":[{\"id\":\"project_id1\"},{\"id\":\"project_id2\"}]}" + ) credentials = BasicCredentials("ak", "sk") try: @@ -135,10 +144,13 @@ def test_multiple_project_ids(mocked_http_client, mocked_responses): def test_auto_get_domain_id(mocked_http_client, mocked_responses): - mocked_responses.get("https://iam.myhuaweicloud.com/v3/auth/domains", - content_type="application/json", - headers={"X-IAM-Trace-Id": "trace-id"}, - body="{\"domains\":[{\"id\":\"domain_id\"}]}") + mocked_responses.add( + method=responses.GET, + url="https://iam.myhuaweicloud.com/v3/auth/domains", + content_type="application/json", + headers={"X-IAM-Trace-Id": "trace-id"}, + body="{\"domains\":[{\"id\":\"domain_id\"}]}" + ) credentials = GlobalCredentials("ak", "sk") credentials.process_auth_params(mocked_http_client, "region-id") @@ -146,10 +158,13 @@ def test_auto_get_domain_id(mocked_http_client, mocked_responses): def test_empty_domain_id(mocked_http_client, mocked_responses): - mocked_responses.get("https://iam.myhuaweicloud.com/v3/auth/domains", - content_type="application/json", - headers={"X-IAM-Trace-Id": "trace-id"}, - body="{\"domains\":[]}") + mocked_responses.add( + method=responses.GET, + url="https://iam.myhuaweicloud.com/v3/auth/domains", + content_type="application/json", + headers={"X-IAM-Trace-Id": "trace-id"}, + body="{\"domains\":[]}" + ) credentials = GlobalCredentials("ak2", "sk2") try: diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index f65e900a02..ff09a52623 100644 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 47fd4aa8e2..4d95e44ca1 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 61db71631c..6ac832ea50 100644 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 1a45320fbd..361bc02abe 100644 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 058d463c4b..22378bc940 100644 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index f73287c47a..04e6b42434 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 26317603a9..108371d2ad 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 0cacc4f831..9194348b8d 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 04f2ec994e..dcd01da522 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 6ad09a15b3..8af3e1b253 100644 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 169aeed359..d09619a8ab 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index cecaae6039..c29e4ea46a 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index b2bbd100c9..3721c7cc93 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 827fc8747c..6842ca2a93 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 3a0a83904f..8b6a7a66ba 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py index b66d677835..a9fc92c9c7 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py @@ -22,6 +22,9 @@ class JobInfo: 'schedule': 'Schedule', 'params': 'list[JobParam]', 'directory': 'str', + 'clean_overdue_days': 'int', + 'clean_waiting_job': 'str', + 'empty_running_job': 'str', 'process_type': 'str', 'single_node_job_flag': 'bool', 'single_node_job_type': 'str', @@ -38,6 +41,9 @@ class JobInfo: 'schedule': 'schedule', 'params': 'params', 'directory': 'directory', + 'clean_overdue_days': 'cleanOverdueDays', + 'clean_waiting_job': 'cleanWaitingJob', + 'empty_running_job': 'emptyRunningJob', 'process_type': 'processType', 'single_node_job_flag': 'singleNodeJobFlag', 'single_node_job_type': 'singleNodeJobType', @@ -48,7 +54,7 @@ class JobInfo: 'approvers': 'approvers' } - def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, process_type=None, single_node_job_flag=None, single_node_job_type=None, last_update_user=None, log_path=None, basic_config=None, target_status=None, approvers=None): + def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, clean_overdue_days=None, clean_waiting_job=None, empty_running_job=None, process_type=None, single_node_job_flag=None, single_node_job_type=None, last_update_user=None, log_path=None, basic_config=None, target_status=None, approvers=None): """JobInfo The model defined in huaweicloud sdk @@ -63,6 +69,12 @@ def __init__(self, name=None, nodes=None, schedule=None, params=None, directory= :type params: list[:class:`huaweicloudsdkdgc.v1.JobParam`] :param directory: 作业在目录树上的路径。创建作业时如果路径目录不存在,会自动创建目录,如/dir/a/,默认在根目录/。 :type directory: str + :param clean_overdue_days: 设置作业的最大超时时间。 + :type clean_overdue_days: int + :param clean_waiting_job: 清除等待的作业。 + :type clean_waiting_job: str + :param empty_running_job: 取值为0和1,1表示空跑,0表示:取消空跑,不设置该参数时,默认为0。 + :type empty_running_job: str :param process_type: 作业类型,REAL_TIME: 实时处理,BATCH:批处理 :type process_type: str :param single_node_job_flag: 是否选择单任务,默认为false @@ -88,6 +100,9 @@ def __init__(self, name=None, nodes=None, schedule=None, params=None, directory= self._schedule = None self._params = None self._directory = None + self._clean_overdue_days = None + self._clean_waiting_job = None + self._empty_running_job = None self._process_type = None self._single_node_job_flag = None self._single_node_job_type = None @@ -105,6 +120,12 @@ def __init__(self, name=None, nodes=None, schedule=None, params=None, directory= self.params = params if directory is not None: self.directory = directory + if clean_overdue_days is not None: + self.clean_overdue_days = clean_overdue_days + if clean_waiting_job is not None: + self.clean_waiting_job = clean_waiting_job + if empty_running_job is not None: + self.empty_running_job = empty_running_job self.process_type = process_type if single_node_job_flag is not None: self.single_node_job_flag = single_node_job_flag @@ -227,6 +248,72 @@ def directory(self, directory): """ self._directory = directory + @property + def clean_overdue_days(self): + """Gets the clean_overdue_days of this JobInfo. + + 设置作业的最大超时时间。 + + :return: The clean_overdue_days of this JobInfo. + :rtype: int + """ + return self._clean_overdue_days + + @clean_overdue_days.setter + def clean_overdue_days(self, clean_overdue_days): + """Sets the clean_overdue_days of this JobInfo. + + 设置作业的最大超时时间。 + + :param clean_overdue_days: The clean_overdue_days of this JobInfo. + :type clean_overdue_days: int + """ + self._clean_overdue_days = clean_overdue_days + + @property + def clean_waiting_job(self): + """Gets the clean_waiting_job of this JobInfo. + + 清除等待的作业。 + + :return: The clean_waiting_job of this JobInfo. + :rtype: str + """ + return self._clean_waiting_job + + @clean_waiting_job.setter + def clean_waiting_job(self, clean_waiting_job): + """Sets the clean_waiting_job of this JobInfo. + + 清除等待的作业。 + + :param clean_waiting_job: The clean_waiting_job of this JobInfo. + :type clean_waiting_job: str + """ + self._clean_waiting_job = clean_waiting_job + + @property + def empty_running_job(self): + """Gets the empty_running_job of this JobInfo. + + 取值为0和1,1表示空跑,0表示:取消空跑,不设置该参数时,默认为0。 + + :return: The empty_running_job of this JobInfo. + :rtype: str + """ + return self._empty_running_job + + @empty_running_job.setter + def empty_running_job(self, empty_running_job): + """Sets the empty_running_job of this JobInfo. + + 取值为0和1,1表示空跑,0表示:取消空跑,不设置该参数时,默认为0。 + + :param empty_running_job: The empty_running_job of this JobInfo. + :type empty_running_job: str + """ + self._empty_running_job = empty_running_job + @property def process_type(self): """Gets the process_type of this JobInfo. diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index eccff48e1c..b290704ee5 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index 1e8eb78ca1..9a5c2ccfe1 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 17c538ae9d..c35fa86dc0 100644 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 9b2977c690..7810f271da 100644 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 153bd2b883..707bf9ece2 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index a6e8fd6272..2d6e986f01 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index e2e1dcc7e2..e4c6b27767 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index efe54b54a5..a4cef03843 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index 42ec7ee877..512b23191a 100644 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index f9e8afdbbc..e4131db868 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 5378b77711..ebf23ad328 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 38a06aaf06..1ff52a0ad0 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index ecc2ed6c7e..a6a91011fe 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index a12724e8aa..ef6d58e33c 100644 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py index b70e4cf557..acf707b789 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/__init__.py @@ -21,6 +21,8 @@ from huaweicloudsdkeihealth.v1.model.async_task_status import AsyncTaskStatus from huaweicloudsdkeihealth.v1.model.auto_job_list_dto import AutoJobListDto from huaweicloudsdkeihealth.v1.model.backup_dto import BackupDto +from huaweicloudsdkeihealth.v1.model.base_model import BaseModel +from huaweicloudsdkeihealth.v1.model.base_model_dto import BaseModelDto from huaweicloudsdkeihealth.v1.model.basic_drug_model import BasicDrugModel from huaweicloudsdkeihealth.v1.model.batch_cancel_job_request import BatchCancelJobRequest from huaweicloudsdkeihealth.v1.model.batch_cancel_job_response import BatchCancelJobResponse @@ -97,6 +99,7 @@ from huaweicloudsdkeihealth.v1.model.computing_spec_dto import ComputingSpecDto from huaweicloudsdkeihealth.v1.model.copy_data_request import CopyDataRequest from huaweicloudsdkeihealth.v1.model.copy_data_response import CopyDataResponse +from huaweicloudsdkeihealth.v1.model.cpi_receptor import CpiReceptor from huaweicloudsdkeihealth.v1.model.cpi_result import CpiResult from huaweicloudsdkeihealth.v1.model.cpi_result_item import CpiResultItem from huaweicloudsdkeihealth.v1.model.cpi_task_data import CpiTaskData @@ -119,6 +122,9 @@ from huaweicloudsdkeihealth.v1.model.create_computing_resource_req import CreateComputingResourceReq from huaweicloudsdkeihealth.v1.model.create_computing_resource_request import CreateComputingResourceRequest from huaweicloudsdkeihealth.v1.model.create_computing_resource_response import CreateComputingResourceResponse +from huaweicloudsdkeihealth.v1.model.create_cpi_job_req import CreateCpiJobReq +from huaweicloudsdkeihealth.v1.model.create_cpi_job_request import CreateCpiJobRequest +from huaweicloudsdkeihealth.v1.model.create_cpi_job_response import CreateCpiJobResponse from huaweicloudsdkeihealth.v1.model.create_cpi_task_request import CreateCpiTaskRequest from huaweicloudsdkeihealth.v1.model.create_cpi_task_response import CreateCpiTaskResponse from huaweicloudsdkeihealth.v1.model.create_css_cluster_req import CreateCssClusterReq @@ -158,6 +164,9 @@ from huaweicloudsdkeihealth.v1.model.create_fep_job_req import CreateFepJobReq from huaweicloudsdkeihealth.v1.model.create_fep_job_request import CreateFepJobRequest from huaweicloudsdkeihealth.v1.model.create_fep_job_response import CreateFepJobResponse +from huaweicloudsdkeihealth.v1.model.create_gen_job_req import CreateGenJobReq +from huaweicloudsdkeihealth.v1.model.create_gen_job_request import CreateGenJobRequest +from huaweicloudsdkeihealth.v1.model.create_gen_job_response import CreateGenJobResponse from huaweicloudsdkeihealth.v1.model.create_generation_task_request import CreateGenerationTaskRequest from huaweicloudsdkeihealth.v1.model.create_generation_task_response import CreateGenerationTaskResponse from huaweicloudsdkeihealth.v1.model.create_image_req import CreateImageReq @@ -225,6 +234,9 @@ from huaweicloudsdkeihealth.v1.model.create_synthesis_job_response import CreateSynthesisJobResponse from huaweicloudsdkeihealth.v1.model.create_synthesis_task_request import CreateSynthesisTaskRequest from huaweicloudsdkeihealth.v1.model.create_synthesis_task_response import CreateSynthesisTaskResponse +from huaweicloudsdkeihealth.v1.model.create_target_opt_job_req import CreateTargetOptJobReq +from huaweicloudsdkeihealth.v1.model.create_target_opt_job_request import CreateTargetOptJobRequest +from huaweicloudsdkeihealth.v1.model.create_target_opt_job_response import CreateTargetOptJobResponse from huaweicloudsdkeihealth.v1.model.create_template_req import CreateTemplateReq from huaweicloudsdkeihealth.v1.model.create_template_request import CreateTemplateRequest from huaweicloudsdkeihealth.v1.model.create_template_response import CreateTemplateResponse @@ -347,6 +359,7 @@ from huaweicloudsdkeihealth.v1.model.execute_job_response import ExecuteJobResponse from huaweicloudsdkeihealth.v1.model.extremum_dto import ExtremumDto from huaweicloudsdkeihealth.v1.model.failed_reason_record import FailedReasonRecord +from huaweicloudsdkeihealth.v1.model.fasta_receptor import FastaReceptor from huaweicloudsdkeihealth.v1.model.feature_enum import FeatureEnum from huaweicloudsdkeihealth.v1.model.fep_graph_dto import FepGraphDto from huaweicloudsdkeihealth.v1.model.fep_param_dto import FepParamDto @@ -398,6 +411,9 @@ from huaweicloudsdkeihealth.v1.model.install_nextflow_request import InstallNextflowRequest from huaweicloudsdkeihealth.v1.model.install_nextflow_request_body import InstallNextflowRequestBody from huaweicloudsdkeihealth.v1.model.install_nextflow_response import InstallNextflowResponse +from huaweicloudsdkeihealth.v1.model.interaction import Interaction +from huaweicloudsdkeihealth.v1.model.interaction_constraint_dto import InteractionConstraintDto +from huaweicloudsdkeihealth.v1.model.interaction_type import InteractionType from huaweicloudsdkeihealth.v1.model.io_acc_info_dto import IoAccInfoDto from huaweicloudsdkeihealth.v1.model.job_dto import JobDto from huaweicloudsdkeihealth.v1.model.job_event_rsp import JobEventRsp @@ -428,6 +444,8 @@ from huaweicloudsdkeihealth.v1.model.list_auto_job_response import ListAutoJobResponse from huaweicloudsdkeihealth.v1.model.list_backup_request import ListBackupRequest from huaweicloudsdkeihealth.v1.model.list_backup_response import ListBackupResponse +from huaweicloudsdkeihealth.v1.model.list_base_model_request import ListBaseModelRequest +from huaweicloudsdkeihealth.v1.model.list_base_model_response import ListBaseModelResponse from huaweicloudsdkeihealth.v1.model.list_bucket_request import ListBucketRequest from huaweicloudsdkeihealth.v1.model.list_bucket_response import ListBucketResponse from huaweicloudsdkeihealth.v1.model.list_checkpoint_request import ListCheckpointRequest @@ -544,6 +562,8 @@ from huaweicloudsdkeihealth.v1.model.list_workflow_statistic_response import ListWorkflowStatisticResponse from huaweicloudsdkeihealth.v1.model.log_content_dto import LogContentDto from huaweicloudsdkeihealth.v1.model.manage_asset_req import ManageAssetReq +from huaweicloudsdkeihealth.v1.model.md_param import MdParam +from huaweicloudsdkeihealth.v1.model.md_step_param import MdStepParam from huaweicloudsdkeihealth.v1.model.member_dto import MemberDto from huaweicloudsdkeihealth.v1.model.message_rsp import MessageRsp from huaweicloudsdkeihealth.v1.model.mfa_rsp import MfaRsp @@ -654,6 +674,9 @@ from huaweicloudsdkeihealth.v1.model.run_drug_ligand_to_smiles_conversion_response import RunDrugLigandToSmilesConversionResponse from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_request import RunDrugReceptorPreprocessRequest from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_response import RunDrugReceptorPreprocessResponse +from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_req import RunFastaPreprocessReq +from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_request import RunFastaPreprocessRequest +from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_response import RunFastaPreprocessResponse from huaweicloudsdkeihealth.v1.model.run_pocket_req import RunPocketReq from huaweicloudsdkeihealth.v1.model.run_receptor_preprocess_req import RunReceptorPreprocessReq from huaweicloudsdkeihealth.v1.model.run_surface_points_req import RunSurfacePointsReq @@ -687,6 +710,8 @@ from huaweicloudsdkeihealth.v1.model.show_bms_devices_response import ShowBmsDevicesResponse from huaweicloudsdkeihealth.v1.model.show_bucket_storage_request import ShowBucketStorageRequest from huaweicloudsdkeihealth.v1.model.show_bucket_storage_response import ShowBucketStorageResponse +from huaweicloudsdkeihealth.v1.model.show_cpi_job_request import ShowCpiJobRequest +from huaweicloudsdkeihealth.v1.model.show_cpi_job_response import ShowCpiJobResponse from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_request import ShowCpiTaskResultRequest from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_response import ShowCpiTaskResultResponse from huaweicloudsdkeihealth.v1.model.show_custom_props_task_result_request import ShowCustomPropsTaskResultRequest @@ -713,6 +738,8 @@ from huaweicloudsdkeihealth.v1.model.show_extremum_info_response import ShowExtremumInfoResponse from huaweicloudsdkeihealth.v1.model.show_fep_job_request import ShowFepJobRequest from huaweicloudsdkeihealth.v1.model.show_fep_job_response import ShowFepJobResponse +from huaweicloudsdkeihealth.v1.model.show_gen_job_request import ShowGenJobRequest +from huaweicloudsdkeihealth.v1.model.show_gen_job_response import ShowGenJobResponse from huaweicloudsdkeihealth.v1.model.show_generation_task_result_request import ShowGenerationTaskResultRequest from huaweicloudsdkeihealth.v1.model.show_generation_task_result_response import ShowGenerationTaskResultResponse from huaweicloudsdkeihealth.v1.model.show_instance_request import ShowInstanceRequest @@ -787,6 +814,8 @@ from huaweicloudsdkeihealth.v1.model.show_synthesis_job_response import ShowSynthesisJobResponse from huaweicloudsdkeihealth.v1.model.show_synthesis_task_result_request import ShowSynthesisTaskResultRequest from huaweicloudsdkeihealth.v1.model.show_synthesis_task_result_response import ShowSynthesisTaskResultResponse +from huaweicloudsdkeihealth.v1.model.show_target_opt_job_request import ShowTargetOptJobRequest +from huaweicloudsdkeihealth.v1.model.show_target_opt_job_response import ShowTargetOptJobResponse from huaweicloudsdkeihealth.v1.model.show_task_events_request import ShowTaskEventsRequest from huaweicloudsdkeihealth.v1.model.show_task_events_response import ShowTaskEventsResponse from huaweicloudsdkeihealth.v1.model.show_task_instance_events_request import ShowTaskInstanceEventsRequest @@ -854,6 +883,8 @@ from huaweicloudsdkeihealth.v1.model.synthesis_result_result_molecules import SynthesisResultResultMolecules from huaweicloudsdkeihealth.v1.model.synthesis_result_result_reactions import SynthesisResultResultReactions from huaweicloudsdkeihealth.v1.model.synthesis_task_data import SynthesisTaskData +from huaweicloudsdkeihealth.v1.model.target_opt_ligand import TargetOptLigand +from huaweicloudsdkeihealth.v1.model.target_opt_receptor import TargetOptReceptor from huaweicloudsdkeihealth.v1.model.task_definition_dto import TaskDefinitionDto from huaweicloudsdkeihealth.v1.model.task_dto import TaskDto from huaweicloudsdkeihealth.v1.model.task_event_rsp import TaskEventRsp diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py index 32919cde2b..8718c46308 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_async_client.py @@ -2298,6 +2298,73 @@ def _create_fep_job_http_info(self, request): return http_info + def create_gen_job_async(self, request): + """创建分子生成作业 + + 创建分子生成作业 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateGenJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateGenJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateGenJobResponse` + """ + http_info = self._create_gen_job_http_info(request) + return self._call_api(**http_info) + + def create_gen_job_async_invoker(self, request): + http_info = self._create_gen_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_gen_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/generation", + "request_type": request.__class__.__name__, + "response_type": "CreateGenJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_image_async(self, request): """创建镜像 @@ -3297,6 +3364,73 @@ def _create_synthesis_job_http_info(self, request): return http_info + def create_target_opt_job_async(self, request): + """创建靶点优化作业 + + 创建靶点优化作业 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateTargetOptJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobResponse` + """ + http_info = self._create_target_opt_job_http_info(request) + return self._call_api(**http_info) + + def create_target_opt_job_async_invoker(self, request): + http_info = self._create_target_opt_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_target_opt_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/target-optimization", + "request_type": request.__class__.__name__, + "response_type": "CreateTargetOptJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_template_async(self, request): """创建模板 @@ -6586,6 +6720,77 @@ def _list_backup_http_info(self, request): return http_info + def list_base_model_async(self, request): + """获取基模型列表 + + 获取基模型列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListBaseModel + :type request: :class:`huaweicloudsdkeihealth.v1.ListBaseModelRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ListBaseModelResponse` + """ + http_info = self._list_base_model_http_info(request) + return self._call_api(**http_info) + + def list_base_model_async_invoker(self, request): + http_info = self._list_base_model_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_base_model_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/base-models", + "request_type": request.__class__.__name__, + "response_type": "ListBaseModelResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_bucket_async(self, request): """获取桶列表 @@ -7512,6 +7717,9 @@ def _list_drug_model_http_info(self, request): query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) + if 'base_model_list' in local_var_params: + query_params.append(('base_model_list', local_var_params['base_model_list'])) + collection_formats['base_model_list'] = 'csv' header_params = {} @@ -10454,6 +10662,73 @@ def _retry_job_http_info(self, request): return http_info + def run_fasta_preprocess_async(self, request): + """受体预处理(Fasta格式) + + 受体预处理(Fasta格式),用于前端计算预期扣费次数 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for RunFastaPreprocess + :type request: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessResponse` + """ + http_info = self._run_fasta_preprocess_http_info(request) + return self._call_api(**http_info) + + def run_fasta_preprocess_async_invoker(self, request): + http_info = self._run_fasta_preprocess_http_info(request) + return AsyncInvoker(self, http_info) + + def _run_fasta_preprocess_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/receptor/fasta-preprocess", + "request_type": request.__class__.__name__, + "response_type": "RunFastaPreprocessResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show3d_structure_content_async(self, request): """获取生成study作业3D结构的内容 @@ -11652,6 +11927,73 @@ def _show_fep_job_http_info(self, request): return http_info + def show_gen_job_async(self, request): + """查询分子生成作业详情 + + 查询分子生成作业详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowGenJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowGenJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowGenJobResponse` + """ + http_info = self._show_gen_job_http_info(request) + return self._call_api(**http_info) + + def show_gen_job_async_invoker(self, request): + http_info = self._show_gen_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_gen_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/generation/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowGenJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_instance_async(self, request): """查询实例详情 @@ -13187,6 +13529,73 @@ def _show_synthesis_job_http_info(self, request): return http_info + def show_target_opt_job_async(self, request): + """查询靶点优化作业详情 + + 查询靶点优化作业详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowTargetOptJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowTargetOptJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowTargetOptJobResponse` + """ + http_info = self._show_target_opt_job_http_info(request) + return self._call_api(**http_info) + + def show_target_opt_job_async_invoker(self, request): + http_info = self._show_target_opt_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_target_opt_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/target-optimization/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowTargetOptJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_task_events_async(self, request): """获取子任务启动事件 @@ -16985,6 +17394,73 @@ def _show_admet_properties_http_info(self, request): return http_info + def create_cpi_job_async(self, request): + """创建CPI作业 + + 创建CPI作业 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateCpiJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobResponse` + """ + http_info = self._create_cpi_job_http_info(request) + return self._call_api(**http_info) + + def create_cpi_job_async_invoker(self, request): + http_info = self._create_cpi_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_cpi_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/cpi", + "request_type": request.__class__.__name__, + "response_type": "CreateCpiJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_cpi_task_async(self, request): """新建CPI任务接口 @@ -17050,6 +17526,73 @@ def _create_cpi_task_http_info(self, request): return http_info + def show_cpi_job_async(self, request): + """查询CPI作业详情 + + 查询CPI作业详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowCpiJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowCpiJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowCpiJobResponse` + """ + http_info = self._show_cpi_job_http_info(request) + return self._call_api(**http_info) + + def show_cpi_job_async_invoker(self, request): + http_info = self._show_cpi_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_cpi_job_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/cpi/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowCpiJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_cpi_task_result_async(self, request): """查询CPI任务 diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py index 113327ec0f..cf461a333a 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/eihealth_client.py @@ -2298,6 +2298,73 @@ def _create_fep_job_http_info(cls, request): return http_info + def create_gen_job(self, request): + """创建分子生成作业 + + 创建分子生成作业 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateGenJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateGenJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateGenJobResponse` + """ + http_info = self._create_gen_job_http_info(request) + return self._call_api(**http_info) + + def create_gen_job_invoker(self, request): + http_info = self._create_gen_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_gen_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/generation", + "request_type": request.__class__.__name__, + "response_type": "CreateGenJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_image(self, request): """创建镜像 @@ -3297,6 +3364,73 @@ def _create_synthesis_job_http_info(cls, request): return http_info + def create_target_opt_job(self, request): + """创建靶点优化作业 + + 创建靶点优化作业 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateTargetOptJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobResponse` + """ + http_info = self._create_target_opt_job_http_info(request) + return self._call_api(**http_info) + + def create_target_opt_job_invoker(self, request): + http_info = self._create_target_opt_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_target_opt_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/target-optimization", + "request_type": request.__class__.__name__, + "response_type": "CreateTargetOptJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_template(self, request): """创建模板 @@ -6586,6 +6720,77 @@ def _list_backup_http_info(cls, request): return http_info + def list_base_model(self, request): + """获取基模型列表 + + 获取基模型列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListBaseModel + :type request: :class:`huaweicloudsdkeihealth.v1.ListBaseModelRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ListBaseModelResponse` + """ + http_info = self._list_base_model_http_info(request) + return self._call_api(**http_info) + + def list_base_model_invoker(self, request): + http_info = self._list_base_model_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_base_model_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/base-models", + "request_type": request.__class__.__name__, + "response_type": "ListBaseModelResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def list_bucket(self, request): """获取桶列表 @@ -7512,6 +7717,9 @@ def _list_drug_model_http_info(cls, request): query_params.append(('limit', local_var_params['limit'])) if 'offset' in local_var_params: query_params.append(('offset', local_var_params['offset'])) + if 'base_model_list' in local_var_params: + query_params.append(('base_model_list', local_var_params['base_model_list'])) + collection_formats['base_model_list'] = 'csv' header_params = {} @@ -10454,6 +10662,73 @@ def _retry_job_http_info(cls, request): return http_info + def run_fasta_preprocess(self, request): + """受体预处理(Fasta格式) + + 受体预处理(Fasta格式),用于前端计算预期扣费次数 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for RunFastaPreprocess + :type request: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessResponse` + """ + http_info = self._run_fasta_preprocess_http_info(request) + return self._call_api(**http_info) + + def run_fasta_preprocess_invoker(self, request): + http_info = self._run_fasta_preprocess_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _run_fasta_preprocess_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/receptor/fasta-preprocess", + "request_type": request.__class__.__name__, + "response_type": "RunFastaPreprocessResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show3d_structure_content(self, request): """获取生成study作业3D结构的内容 @@ -11652,6 +11927,73 @@ def _show_fep_job_http_info(cls, request): return http_info + def show_gen_job(self, request): + """查询分子生成作业详情 + + 查询分子生成作业详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowGenJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowGenJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowGenJobResponse` + """ + http_info = self._show_gen_job_http_info(request) + return self._call_api(**http_info) + + def show_gen_job_invoker(self, request): + http_info = self._show_gen_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_gen_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/generation/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowGenJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_instance(self, request): """查询实例详情 @@ -13187,6 +13529,73 @@ def _show_synthesis_job_http_info(cls, request): return http_info + def show_target_opt_job(self, request): + """查询靶点优化作业详情 + + 查询靶点优化作业详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowTargetOptJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowTargetOptJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowTargetOptJobResponse` + """ + http_info = self._show_target_opt_job_http_info(request) + return self._call_api(**http_info) + + def show_target_opt_job_invoker(self, request): + http_info = self._show_target_opt_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_target_opt_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/target-optimization/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowTargetOptJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_task_events(self, request): """获取子任务启动事件 @@ -16985,6 +17394,73 @@ def _show_admet_properties_http_info(cls, request): return http_info + def create_cpi_job(self, request): + """创建CPI作业 + + 创建CPI作业 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateCpiJob + :type request: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobResponse` + """ + http_info = self._create_cpi_job_http_info(request) + return self._call_api(**http_info) + + def create_cpi_job_invoker(self, request): + http_info = self._create_cpi_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_cpi_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/cpi", + "request_type": request.__class__.__name__, + "response_type": "CreateCpiJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_cpi_task(self, request): """新建CPI任务接口 @@ -17050,6 +17526,73 @@ def _create_cpi_task_http_info(cls, request): return http_info + def show_cpi_job(self, request): + """查询CPI作业详情 + + 查询CPI作业详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowCpiJob + :type request: :class:`huaweicloudsdkeihealth.v1.ShowCpiJobRequest` + :rtype: :class:`huaweicloudsdkeihealth.v1.ShowCpiJobResponse` + """ + http_info = self._show_cpi_job_http_info(request) + return self._call_api(**http_info) + + def show_cpi_job_invoker(self, request): + http_info = self._show_cpi_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_cpi_job_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/cpi/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowCpiJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'eihealth_project_id' in local_var_params: + path_params['eihealth_project_id'] = local_var_params['eihealth_project_id'] + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_cpi_task_result(self, request): """查询CPI任务 diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py index 64d639ba9e..75838f9c62 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/__init__.py @@ -19,6 +19,8 @@ from huaweicloudsdkeihealth.v1.model.async_task_status import AsyncTaskStatus from huaweicloudsdkeihealth.v1.model.auto_job_list_dto import AutoJobListDto from huaweicloudsdkeihealth.v1.model.backup_dto import BackupDto +from huaweicloudsdkeihealth.v1.model.base_model import BaseModel +from huaweicloudsdkeihealth.v1.model.base_model_dto import BaseModelDto from huaweicloudsdkeihealth.v1.model.basic_drug_model import BasicDrugModel from huaweicloudsdkeihealth.v1.model.batch_cancel_job_request import BatchCancelJobRequest from huaweicloudsdkeihealth.v1.model.batch_cancel_job_response import BatchCancelJobResponse @@ -95,6 +97,7 @@ from huaweicloudsdkeihealth.v1.model.computing_spec_dto import ComputingSpecDto from huaweicloudsdkeihealth.v1.model.copy_data_request import CopyDataRequest from huaweicloudsdkeihealth.v1.model.copy_data_response import CopyDataResponse +from huaweicloudsdkeihealth.v1.model.cpi_receptor import CpiReceptor from huaweicloudsdkeihealth.v1.model.cpi_result import CpiResult from huaweicloudsdkeihealth.v1.model.cpi_result_item import CpiResultItem from huaweicloudsdkeihealth.v1.model.cpi_task_data import CpiTaskData @@ -117,6 +120,9 @@ from huaweicloudsdkeihealth.v1.model.create_computing_resource_req import CreateComputingResourceReq from huaweicloudsdkeihealth.v1.model.create_computing_resource_request import CreateComputingResourceRequest from huaweicloudsdkeihealth.v1.model.create_computing_resource_response import CreateComputingResourceResponse +from huaweicloudsdkeihealth.v1.model.create_cpi_job_req import CreateCpiJobReq +from huaweicloudsdkeihealth.v1.model.create_cpi_job_request import CreateCpiJobRequest +from huaweicloudsdkeihealth.v1.model.create_cpi_job_response import CreateCpiJobResponse from huaweicloudsdkeihealth.v1.model.create_cpi_task_request import CreateCpiTaskRequest from huaweicloudsdkeihealth.v1.model.create_cpi_task_response import CreateCpiTaskResponse from huaweicloudsdkeihealth.v1.model.create_css_cluster_req import CreateCssClusterReq @@ -156,6 +162,9 @@ from huaweicloudsdkeihealth.v1.model.create_fep_job_req import CreateFepJobReq from huaweicloudsdkeihealth.v1.model.create_fep_job_request import CreateFepJobRequest from huaweicloudsdkeihealth.v1.model.create_fep_job_response import CreateFepJobResponse +from huaweicloudsdkeihealth.v1.model.create_gen_job_req import CreateGenJobReq +from huaweicloudsdkeihealth.v1.model.create_gen_job_request import CreateGenJobRequest +from huaweicloudsdkeihealth.v1.model.create_gen_job_response import CreateGenJobResponse from huaweicloudsdkeihealth.v1.model.create_generation_task_request import CreateGenerationTaskRequest from huaweicloudsdkeihealth.v1.model.create_generation_task_response import CreateGenerationTaskResponse from huaweicloudsdkeihealth.v1.model.create_image_req import CreateImageReq @@ -223,6 +232,9 @@ from huaweicloudsdkeihealth.v1.model.create_synthesis_job_response import CreateSynthesisJobResponse from huaweicloudsdkeihealth.v1.model.create_synthesis_task_request import CreateSynthesisTaskRequest from huaweicloudsdkeihealth.v1.model.create_synthesis_task_response import CreateSynthesisTaskResponse +from huaweicloudsdkeihealth.v1.model.create_target_opt_job_req import CreateTargetOptJobReq +from huaweicloudsdkeihealth.v1.model.create_target_opt_job_request import CreateTargetOptJobRequest +from huaweicloudsdkeihealth.v1.model.create_target_opt_job_response import CreateTargetOptJobResponse from huaweicloudsdkeihealth.v1.model.create_template_req import CreateTemplateReq from huaweicloudsdkeihealth.v1.model.create_template_request import CreateTemplateRequest from huaweicloudsdkeihealth.v1.model.create_template_response import CreateTemplateResponse @@ -345,6 +357,7 @@ from huaweicloudsdkeihealth.v1.model.execute_job_response import ExecuteJobResponse from huaweicloudsdkeihealth.v1.model.extremum_dto import ExtremumDto from huaweicloudsdkeihealth.v1.model.failed_reason_record import FailedReasonRecord +from huaweicloudsdkeihealth.v1.model.fasta_receptor import FastaReceptor from huaweicloudsdkeihealth.v1.model.feature_enum import FeatureEnum from huaweicloudsdkeihealth.v1.model.fep_graph_dto import FepGraphDto from huaweicloudsdkeihealth.v1.model.fep_param_dto import FepParamDto @@ -396,6 +409,9 @@ from huaweicloudsdkeihealth.v1.model.install_nextflow_request import InstallNextflowRequest from huaweicloudsdkeihealth.v1.model.install_nextflow_request_body import InstallNextflowRequestBody from huaweicloudsdkeihealth.v1.model.install_nextflow_response import InstallNextflowResponse +from huaweicloudsdkeihealth.v1.model.interaction import Interaction +from huaweicloudsdkeihealth.v1.model.interaction_constraint_dto import InteractionConstraintDto +from huaweicloudsdkeihealth.v1.model.interaction_type import InteractionType from huaweicloudsdkeihealth.v1.model.io_acc_info_dto import IoAccInfoDto from huaweicloudsdkeihealth.v1.model.job_dto import JobDto from huaweicloudsdkeihealth.v1.model.job_event_rsp import JobEventRsp @@ -426,6 +442,8 @@ from huaweicloudsdkeihealth.v1.model.list_auto_job_response import ListAutoJobResponse from huaweicloudsdkeihealth.v1.model.list_backup_request import ListBackupRequest from huaweicloudsdkeihealth.v1.model.list_backup_response import ListBackupResponse +from huaweicloudsdkeihealth.v1.model.list_base_model_request import ListBaseModelRequest +from huaweicloudsdkeihealth.v1.model.list_base_model_response import ListBaseModelResponse from huaweicloudsdkeihealth.v1.model.list_bucket_request import ListBucketRequest from huaweicloudsdkeihealth.v1.model.list_bucket_response import ListBucketResponse from huaweicloudsdkeihealth.v1.model.list_checkpoint_request import ListCheckpointRequest @@ -542,6 +560,8 @@ from huaweicloudsdkeihealth.v1.model.list_workflow_statistic_response import ListWorkflowStatisticResponse from huaweicloudsdkeihealth.v1.model.log_content_dto import LogContentDto from huaweicloudsdkeihealth.v1.model.manage_asset_req import ManageAssetReq +from huaweicloudsdkeihealth.v1.model.md_param import MdParam +from huaweicloudsdkeihealth.v1.model.md_step_param import MdStepParam from huaweicloudsdkeihealth.v1.model.member_dto import MemberDto from huaweicloudsdkeihealth.v1.model.message_rsp import MessageRsp from huaweicloudsdkeihealth.v1.model.mfa_rsp import MfaRsp @@ -652,6 +672,9 @@ from huaweicloudsdkeihealth.v1.model.run_drug_ligand_to_smiles_conversion_response import RunDrugLigandToSmilesConversionResponse from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_request import RunDrugReceptorPreprocessRequest from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_response import RunDrugReceptorPreprocessResponse +from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_req import RunFastaPreprocessReq +from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_request import RunFastaPreprocessRequest +from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_response import RunFastaPreprocessResponse from huaweicloudsdkeihealth.v1.model.run_pocket_req import RunPocketReq from huaweicloudsdkeihealth.v1.model.run_receptor_preprocess_req import RunReceptorPreprocessReq from huaweicloudsdkeihealth.v1.model.run_surface_points_req import RunSurfacePointsReq @@ -685,6 +708,8 @@ from huaweicloudsdkeihealth.v1.model.show_bms_devices_response import ShowBmsDevicesResponse from huaweicloudsdkeihealth.v1.model.show_bucket_storage_request import ShowBucketStorageRequest from huaweicloudsdkeihealth.v1.model.show_bucket_storage_response import ShowBucketStorageResponse +from huaweicloudsdkeihealth.v1.model.show_cpi_job_request import ShowCpiJobRequest +from huaweicloudsdkeihealth.v1.model.show_cpi_job_response import ShowCpiJobResponse from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_request import ShowCpiTaskResultRequest from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_response import ShowCpiTaskResultResponse from huaweicloudsdkeihealth.v1.model.show_custom_props_task_result_request import ShowCustomPropsTaskResultRequest @@ -711,6 +736,8 @@ from huaweicloudsdkeihealth.v1.model.show_extremum_info_response import ShowExtremumInfoResponse from huaweicloudsdkeihealth.v1.model.show_fep_job_request import ShowFepJobRequest from huaweicloudsdkeihealth.v1.model.show_fep_job_response import ShowFepJobResponse +from huaweicloudsdkeihealth.v1.model.show_gen_job_request import ShowGenJobRequest +from huaweicloudsdkeihealth.v1.model.show_gen_job_response import ShowGenJobResponse from huaweicloudsdkeihealth.v1.model.show_generation_task_result_request import ShowGenerationTaskResultRequest from huaweicloudsdkeihealth.v1.model.show_generation_task_result_response import ShowGenerationTaskResultResponse from huaweicloudsdkeihealth.v1.model.show_instance_request import ShowInstanceRequest @@ -785,6 +812,8 @@ from huaweicloudsdkeihealth.v1.model.show_synthesis_job_response import ShowSynthesisJobResponse from huaweicloudsdkeihealth.v1.model.show_synthesis_task_result_request import ShowSynthesisTaskResultRequest from huaweicloudsdkeihealth.v1.model.show_synthesis_task_result_response import ShowSynthesisTaskResultResponse +from huaweicloudsdkeihealth.v1.model.show_target_opt_job_request import ShowTargetOptJobRequest +from huaweicloudsdkeihealth.v1.model.show_target_opt_job_response import ShowTargetOptJobResponse from huaweicloudsdkeihealth.v1.model.show_task_events_request import ShowTaskEventsRequest from huaweicloudsdkeihealth.v1.model.show_task_events_response import ShowTaskEventsResponse from huaweicloudsdkeihealth.v1.model.show_task_instance_events_request import ShowTaskInstanceEventsRequest @@ -852,6 +881,8 @@ from huaweicloudsdkeihealth.v1.model.synthesis_result_result_molecules import SynthesisResultResultMolecules from huaweicloudsdkeihealth.v1.model.synthesis_result_result_reactions import SynthesisResultResultReactions from huaweicloudsdkeihealth.v1.model.synthesis_task_data import SynthesisTaskData +from huaweicloudsdkeihealth.v1.model.target_opt_ligand import TargetOptLigand +from huaweicloudsdkeihealth.v1.model.target_opt_receptor import TargetOptReceptor from huaweicloudsdkeihealth.v1.model.task_definition_dto import TaskDefinitionDto from huaweicloudsdkeihealth.v1.model.task_dto import TaskDto from huaweicloudsdkeihealth.v1.model.task_event_rsp import TaskEventRsp diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model.py new file mode 100644 index 0000000000..7357a47af6 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BaseModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """BaseModel + + The model defined in huaweicloud sdk + + :param id: 基模型id + :type id: str + :param name: 基模型名称 + :type name: str + """ + + + + self._id = None + self._name = None + self.discriminator = None + + self.id = id + self.name = name + + @property + def id(self): + """Gets the id of this BaseModel. + + 基模型id + + :return: The id of this BaseModel. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BaseModel. + + 基模型id + + :param id: The id of this BaseModel. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this BaseModel. + + 基模型名称 + + :return: The name of this BaseModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BaseModel. + + 基模型名称 + + :param name: The name of this BaseModel. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BaseModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model_dto.py new file mode 100644 index 0000000000..a0081706ad --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/base_model_dto.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BaseModelDto: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'id': 'str', + 'create_time': 'str', + 'creator': 'str', + 'description': 'str' + } + + attribute_map = { + 'name': 'name', + 'id': 'id', + 'create_time': 'create_time', + 'creator': 'creator', + 'description': 'description' + } + + def __init__(self, name=None, id=None, create_time=None, creator=None, description=None): + """BaseModelDto + + The model defined in huaweicloud sdk + + :param name: 模型名称 + :type name: str + :param id: 模型ID + :type id: str + :param create_time: 模型创建时间 + :type create_time: str + :param creator: 创建模型的用户名称 + :type creator: str + :param description: 模型描述信息 + :type description: str + """ + + + + self._name = None + self._id = None + self._create_time = None + self._creator = None + self._description = None + self.discriminator = None + + if name is not None: + self.name = name + if id is not None: + self.id = id + if create_time is not None: + self.create_time = create_time + if creator is not None: + self.creator = creator + if description is not None: + self.description = description + + @property + def name(self): + """Gets the name of this BaseModelDto. + + 模型名称 + + :return: The name of this BaseModelDto. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BaseModelDto. + + 模型名称 + + :param name: The name of this BaseModelDto. + :type name: str + """ + self._name = name + + @property + def id(self): + """Gets the id of this BaseModelDto. + + 模型ID + + :return: The id of this BaseModelDto. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BaseModelDto. + + 模型ID + + :param id: The id of this BaseModelDto. + :type id: str + """ + self._id = id + + @property + def create_time(self): + """Gets the create_time of this BaseModelDto. + + 模型创建时间 + + :return: The create_time of this BaseModelDto. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this BaseModelDto. + + 模型创建时间 + + :param create_time: The create_time of this BaseModelDto. + :type create_time: str + """ + self._create_time = create_time + + @property + def creator(self): + """Gets the creator of this BaseModelDto. + + 创建模型的用户名称 + + :return: The creator of this BaseModelDto. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this BaseModelDto. + + 创建模型的用户名称 + + :param creator: The creator of this BaseModelDto. + :type creator: str + """ + self._creator = creator + + @property + def description(self): + """Gets the description of this BaseModelDto. + + 模型描述信息 + + :return: The description of this BaseModelDto. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this BaseModelDto. + + 模型描述信息 + + :param description: The description of this BaseModelDto. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BaseModelDto): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bind_site_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bind_site_dto.py index eaaad4c76e..52de53d07d 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bind_site_dto.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/bind_site_dto.py @@ -41,7 +41,7 @@ def __init__(self, name=None, receptor=None, bounding_box=None, remove_ion=None, The model defined in huaweicloud sdk - :param name: 靶点名称 + :param name: 靶点名称,只能设置为target1或者target2。 :type name: str :param receptor: :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` @@ -86,7 +86,7 @@ def __init__(self, name=None, receptor=None, bounding_box=None, remove_ion=None, def name(self): """Gets the name of this BindSiteDto. - 靶点名称 + 靶点名称,只能设置为target1或者target2。 :return: The name of this BindSiteDto. :rtype: str @@ -97,7 +97,7 @@ def name(self): def name(self, name): """Sets the name of this BindSiteDto. - 靶点名称 + 靶点名称,只能设置为target1或者target2。 :param name: The name of this BindSiteDto. :type name: str diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/cpi_receptor.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/cpi_receptor.py new file mode 100644 index 0000000000..961d91e72e --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/cpi_receptor.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CpiReceptor: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source': 'DrugFileSource', + 'url': 'str', + 'format': 'str', + 'data': 'str', + 'fasta_count': 'int' + } + + attribute_map = { + 'source': 'source', + 'url': 'url', + 'format': 'format', + 'data': 'data', + 'fasta_count': 'fasta_count' + } + + def __init__(self, source=None, url=None, format=None, data=None, fasta_count=None): + """CpiReceptor + + The model defined in huaweicloud sdk + + :param source: + :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + :param url: 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + :type url: str + :param format: 文件格式,仅支持FASTA,仅数据源为RAW时提供 + :type format: str + :param data: 文件原始数据,仅数据源为RAW时提供 + :type data: str + :param fasta_count: fasta文件中氨基酸数量 + :type fasta_count: int + """ + + + + self._source = None + self._url = None + self._format = None + self._data = None + self._fasta_count = None + self.discriminator = None + + self.source = source + if url is not None: + self.url = url + if format is not None: + self.format = format + if data is not None: + self.data = data + if fasta_count is not None: + self.fasta_count = fasta_count + + @property + def source(self): + """Gets the source of this CpiReceptor. + + :return: The source of this CpiReceptor. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this CpiReceptor. + + :param source: The source of this CpiReceptor. + :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + """ + self._source = source + + @property + def url(self): + """Gets the url of this CpiReceptor. + + 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + + :return: The url of this CpiReceptor. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CpiReceptor. + + 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + + :param url: The url of this CpiReceptor. + :type url: str + """ + self._url = url + + @property + def format(self): + """Gets the format of this CpiReceptor. + + 文件格式,仅支持FASTA,仅数据源为RAW时提供 + + :return: The format of this CpiReceptor. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CpiReceptor. + + 文件格式,仅支持FASTA,仅数据源为RAW时提供 + + :param format: The format of this CpiReceptor. + :type format: str + """ + self._format = format + + @property + def data(self): + """Gets the data of this CpiReceptor. + + 文件原始数据,仅数据源为RAW时提供 + + :return: The data of this CpiReceptor. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CpiReceptor. + + 文件原始数据,仅数据源为RAW时提供 + + :param data: The data of this CpiReceptor. + :type data: str + """ + self._data = data + + @property + def fasta_count(self): + """Gets the fasta_count of this CpiReceptor. + + fasta文件中氨基酸数量 + + :return: The fasta_count of this CpiReceptor. + :rtype: int + """ + return self._fasta_count + + @fasta_count.setter + def fasta_count(self, fasta_count): + """Sets the fasta_count of this CpiReceptor. + + fasta文件中氨基酸数量 + + :param fasta_count: The fasta_count of this CpiReceptor. + :type fasta_count: int + """ + self._fasta_count = fasta_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, CpiReceptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_admet_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_admet_job_req.py index 6f956f5605..bd52487b39 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_admet_job_req.py @@ -19,16 +19,20 @@ class CreateAdmetJobReq: openapi_types = { 'basic_info': 'CreateDrugJobBasicInfo', 'molecule_file': 'MoleculeFileDto', - 'model_ids': 'list[str]' + 'base_model_id': 'str', + 'model_ids': 'list[str]', + 'save_fingerprint': 'bool' } attribute_map = { 'basic_info': 'basic_info', 'molecule_file': 'molecule_file', - 'model_ids': 'model_ids' + 'base_model_id': 'base_model_id', + 'model_ids': 'model_ids', + 'save_fingerprint': 'save_fingerprint' } - def __init__(self, basic_info=None, molecule_file=None, model_ids=None): + def __init__(self, basic_info=None, molecule_file=None, base_model_id=None, model_ids=None, save_fingerprint=None): """CreateAdmetJobReq The model defined in huaweicloud sdk @@ -37,21 +41,31 @@ def __init__(self, basic_info=None, molecule_file=None, model_ids=None): :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` :param molecule_file: :type molecule_file: :class:`huaweicloudsdkeihealth.v1.MoleculeFileDto` + :param base_model_id: 基模型id + :type base_model_id: str :param model_ids: 模型id列表 :type model_ids: list[str] + :param save_fingerprint: 是否输出表征,仅专业版平台支持 + :type save_fingerprint: bool """ self._basic_info = None self._molecule_file = None + self._base_model_id = None self._model_ids = None + self._save_fingerprint = None self.discriminator = None self.basic_info = basic_info self.molecule_file = molecule_file + if base_model_id is not None: + self.base_model_id = base_model_id if model_ids is not None: self.model_ids = model_ids + if save_fingerprint is not None: + self.save_fingerprint = save_fingerprint @property def basic_info(self): @@ -89,6 +103,28 @@ def molecule_file(self, molecule_file): """ self._molecule_file = molecule_file + @property + def base_model_id(self): + """Gets the base_model_id of this CreateAdmetJobReq. + + 基模型id + + :return: The base_model_id of this CreateAdmetJobReq. + :rtype: str + """ + return self._base_model_id + + @base_model_id.setter + def base_model_id(self, base_model_id): + """Sets the base_model_id of this CreateAdmetJobReq. + + 基模型id + + :param base_model_id: The base_model_id of this CreateAdmetJobReq. + :type base_model_id: str + """ + self._base_model_id = base_model_id + @property def model_ids(self): """Gets the model_ids of this CreateAdmetJobReq. @@ -111,6 +147,28 @@ def model_ids(self, model_ids): """ self._model_ids = model_ids + @property + def save_fingerprint(self): + """Gets the save_fingerprint of this CreateAdmetJobReq. + + 是否输出表征,仅专业版平台支持 + + :return: The save_fingerprint of this CreateAdmetJobReq. + :rtype: bool + """ + return self._save_fingerprint + + @save_fingerprint.setter + def save_fingerprint(self, save_fingerprint): + """Sets the save_fingerprint of this CreateAdmetJobReq. + + 是否输出表征,仅专业版平台支持 + + :param save_fingerprint: The save_fingerprint of this CreateAdmetJobReq. + :type save_fingerprint: bool + """ + self._save_fingerprint = save_fingerprint + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py new file mode 100644 index 0000000000..8451f1be5e --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCpiJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'basic_info': 'CreateDrugJobBasicInfo', + 'receptors': 'list[CpiReceptor]', + 'ligands': 'list[MoleculeFileDto]' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'receptors': 'receptors', + 'ligands': 'ligands' + } + + def __init__(self, basic_info=None, receptors=None, ligands=None): + """CreateCpiJobReq + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + :param receptors: 受体文件列表 + :type receptors: list[:class:`huaweicloudsdkeihealth.v1.CpiReceptor`] + :param ligands: 小分子 + :type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`] + """ + + + + self._basic_info = None + self._receptors = None + self._ligands = None + self.discriminator = None + + self.basic_info = basic_info + self.receptors = receptors + self.ligands = ligands + + @property + def basic_info(self): + """Gets the basic_info of this CreateCpiJobReq. + + :return: The basic_info of this CreateCpiJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this CreateCpiJobReq. + + :param basic_info: The basic_info of this CreateCpiJobReq. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + self._basic_info = basic_info + + @property + def receptors(self): + """Gets the receptors of this CreateCpiJobReq. + + 受体文件列表 + + :return: The receptors of this CreateCpiJobReq. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.CpiReceptor`] + """ + return self._receptors + + @receptors.setter + def receptors(self, receptors): + """Sets the receptors of this CreateCpiJobReq. + + 受体文件列表 + + :param receptors: The receptors of this CreateCpiJobReq. + :type receptors: list[:class:`huaweicloudsdkeihealth.v1.CpiReceptor`] + """ + self._receptors = receptors + + @property + def ligands(self): + """Gets the ligands of this CreateCpiJobReq. + + 小分子 + + :return: The ligands of this CreateCpiJobReq. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`] + """ + return self._ligands + + @ligands.setter + def ligands(self, ligands): + """Sets the ligands of this CreateCpiJobReq. + + 小分子 + + :param ligands: The ligands of this CreateCpiJobReq. + :type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`] + """ + self._ligands = ligands + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCpiJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py new file mode 100644 index 0000000000..fe26eec2d4 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCpiJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'CreateCpiJobReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """CreateCpiJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the CreateCpiJobRequest + :type body: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this CreateCpiJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this CreateCpiJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this CreateCpiJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this CreateCpiJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this CreateCpiJobRequest. + + :return: The body of this CreateCpiJobRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCpiJobRequest. + + :param body: The body of this CreateCpiJobRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobReq` + """ + 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, CreateCpiJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py new file mode 100644 index 0000000000..380c94a3b7 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCpiJobResponse(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', + 'limit_concurrency': 'int' + } + + attribute_map = { + 'id': 'id', + 'limit_concurrency': 'limit_concurrency' + } + + def __init__(self, id=None, limit_concurrency=None): + """CreateCpiJobResponse + + The model defined in huaweicloud sdk + + :param id: 作业id + :type id: str + :param limit_concurrency: 限制的并发量 + :type limit_concurrency: int + """ + + super(CreateCpiJobResponse, self).__init__() + + self._id = None + self._limit_concurrency = None + self.discriminator = None + + if id is not None: + self.id = id + if limit_concurrency is not None: + self.limit_concurrency = limit_concurrency + + @property + def id(self): + """Gets the id of this CreateCpiJobResponse. + + 作业id + + :return: The id of this CreateCpiJobResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateCpiJobResponse. + + 作业id + + :param id: The id of this CreateCpiJobResponse. + :type id: str + """ + self._id = id + + @property + def limit_concurrency(self): + """Gets the limit_concurrency of this CreateCpiJobResponse. + + 限制的并发量 + + :return: The limit_concurrency of this CreateCpiJobResponse. + :rtype: int + """ + return self._limit_concurrency + + @limit_concurrency.setter + def limit_concurrency(self, limit_concurrency): + """Sets the limit_concurrency of this CreateCpiJobResponse. + + 限制的并发量 + + :param limit_concurrency: The limit_concurrency of this CreateCpiJobResponse. + :type limit_concurrency: int + """ + self._limit_concurrency = limit_concurrency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCpiJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_dock_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_dock_job_req.py index 1324a5a31d..c626d9831e 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_dock_job_req.py @@ -19,16 +19,18 @@ class CreateDockJobReq: openapi_types = { 'basic_info': 'CreateDrugJobBasicInfo', 'receptors': 'list[DockingReceptorDto]', - 'ligands': 'list[LigandDto]' + 'ligands': 'list[LigandDto]', + 'engine': 'str' } attribute_map = { 'basic_info': 'basic_info', 'receptors': 'receptors', - 'ligands': 'ligands' + 'ligands': 'ligands', + 'engine': 'engine' } - def __init__(self, basic_info=None, receptors=None, ligands=None): + def __init__(self, basic_info=None, receptors=None, ligands=None, engine=None): """CreateDockJobReq The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ def __init__(self, basic_info=None, receptors=None, ligands=None): :type receptors: list[:class:`huaweicloudsdkeihealth.v1.DockingReceptorDto`] :param ligands: 配体文件列表,当前仅支持1个 :type ligands: list[:class:`huaweicloudsdkeihealth.v1.LigandDto`] + :param engine: 引擎,默认为AUTODOCK_VINA + :type engine: str """ @@ -46,11 +50,14 @@ def __init__(self, basic_info=None, receptors=None, ligands=None): self._basic_info = None self._receptors = None self._ligands = None + self._engine = None self.discriminator = None self.basic_info = basic_info self.receptors = receptors self.ligands = ligands + if engine is not None: + self.engine = engine @property def basic_info(self): @@ -114,6 +121,28 @@ def ligands(self, ligands): """ self._ligands = ligands + @property + def engine(self): + """Gets the engine of this CreateDockJobReq. + + 引擎,默认为AUTODOCK_VINA + + :return: The engine of this CreateDockJobReq. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this CreateDockJobReq. + + 引擎,默认为AUTODOCK_VINA + + :param engine: The engine of this CreateDockJobReq. + :type engine: str + """ + self._engine = engine + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py index f7d39ab9f4..98f7214bb2 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py @@ -18,15 +18,17 @@ class CreateDrugLigandInteraction2dSvgReq: openapi_types = { 'receptor_file': 'ReceptorDrugFileReq', - 'ligand_file': 'DrugFile' + 'ligand_file': 'DrugFile', + 'name': 'str' } attribute_map = { 'receptor_file': 'receptor_file', - 'ligand_file': 'ligand_file' + 'ligand_file': 'ligand_file', + 'name': 'name' } - def __init__(self, receptor_file=None, ligand_file=None): + def __init__(self, receptor_file=None, ligand_file=None, name=None): """CreateDrugLigandInteraction2dSvgReq The model defined in huaweicloud sdk @@ -35,17 +37,22 @@ def __init__(self, receptor_file=None, ligand_file=None): :type receptor_file: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFileReq` :param ligand_file: :type ligand_file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + :param name: 小分子名称 + :type name: str """ self._receptor_file = None self._ligand_file = None + self._name = None self.discriminator = None self.receptor_file = receptor_file if ligand_file is not None: self.ligand_file = ligand_file + if name is not None: + self.name = name @property def receptor_file(self): @@ -83,6 +90,28 @@ def ligand_file(self, ligand_file): """ self._ligand_file = ligand_file + @property + def name(self): + """Gets the name of this CreateDrugLigandInteraction2dSvgReq. + + 小分子名称 + + :return: The name of this CreateDrugLigandInteraction2dSvgReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateDrugLigandInteraction2dSvgReq. + + 小分子名称 + + :param name: The name of this CreateDrugLigandInteraction2dSvgReq. + :type name: str + """ + self._name = name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_req.py new file mode 100644 index 0000000000..5020d788ae --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_req.py @@ -0,0 +1,338 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateGenJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'basic_info': 'CreateDrugJobBasicInfo', + 'smiles_list': 'list[str]', + 'molecule_file': 'DrugFile', + 'binding_sites': 'list[BindSiteDto]', + 'weak_constraints': 'list[WeakConstraintDto]', + 'strong_constraints': 'list[StrongConstraintDto]', + 'base_model_id': 'str', + 'model_ids': 'list[str]', + 'num_trials': 'int' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'smiles_list': 'smiles_list', + 'molecule_file': 'molecule_file', + 'binding_sites': 'binding_sites', + 'weak_constraints': 'weak_constraints', + 'strong_constraints': 'strong_constraints', + 'base_model_id': 'base_model_id', + 'model_ids': 'model_ids', + 'num_trials': 'num_trials' + } + + def __init__(self, basic_info=None, smiles_list=None, molecule_file=None, binding_sites=None, weak_constraints=None, strong_constraints=None, base_model_id=None, model_ids=None, num_trials=None): + """CreateGenJobReq + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + :param smiles_list: 分子表达式列表 + :type smiles_list: list[str] + :param molecule_file: + :type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + :param binding_sites: 靶点列表 + :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`] + :param weak_constraints: 弱约束集合 + :type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`] + :param strong_constraints: 强约束集合 + :type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] + :param base_model_id: 基模型id + :type base_model_id: str + :param model_ids: 模型id列表 + :type model_ids: list[str] + :param num_trials: 生成分子数量 + :type num_trials: int + """ + + + + self._basic_info = None + self._smiles_list = None + self._molecule_file = None + self._binding_sites = None + self._weak_constraints = None + self._strong_constraints = None + self._base_model_id = None + self._model_ids = None + self._num_trials = None + self.discriminator = None + + self.basic_info = basic_info + if smiles_list is not None: + self.smiles_list = smiles_list + if molecule_file is not None: + self.molecule_file = molecule_file + if binding_sites is not None: + self.binding_sites = binding_sites + if weak_constraints is not None: + self.weak_constraints = weak_constraints + if strong_constraints is not None: + self.strong_constraints = strong_constraints + if base_model_id is not None: + self.base_model_id = base_model_id + if model_ids is not None: + self.model_ids = model_ids + if num_trials is not None: + self.num_trials = num_trials + + @property + def basic_info(self): + """Gets the basic_info of this CreateGenJobReq. + + :return: The basic_info of this CreateGenJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this CreateGenJobReq. + + :param basic_info: The basic_info of this CreateGenJobReq. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + self._basic_info = basic_info + + @property + def smiles_list(self): + """Gets the smiles_list of this CreateGenJobReq. + + 分子表达式列表 + + :return: The smiles_list of this CreateGenJobReq. + :rtype: list[str] + """ + return self._smiles_list + + @smiles_list.setter + def smiles_list(self, smiles_list): + """Sets the smiles_list of this CreateGenJobReq. + + 分子表达式列表 + + :param smiles_list: The smiles_list of this CreateGenJobReq. + :type smiles_list: list[str] + """ + self._smiles_list = smiles_list + + @property + def molecule_file(self): + """Gets the molecule_file of this CreateGenJobReq. + + :return: The molecule_file of this CreateGenJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + return self._molecule_file + + @molecule_file.setter + def molecule_file(self, molecule_file): + """Sets the molecule_file of this CreateGenJobReq. + + :param molecule_file: The molecule_file of this CreateGenJobReq. + :type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + self._molecule_file = molecule_file + + @property + def binding_sites(self): + """Gets the binding_sites of this CreateGenJobReq. + + 靶点列表 + + :return: The binding_sites of this CreateGenJobReq. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`] + """ + return self._binding_sites + + @binding_sites.setter + def binding_sites(self, binding_sites): + """Sets the binding_sites of this CreateGenJobReq. + + 靶点列表 + + :param binding_sites: The binding_sites of this CreateGenJobReq. + :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`] + """ + self._binding_sites = binding_sites + + @property + def weak_constraints(self): + """Gets the weak_constraints of this CreateGenJobReq. + + 弱约束集合 + + :return: The weak_constraints of this CreateGenJobReq. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`] + """ + return self._weak_constraints + + @weak_constraints.setter + def weak_constraints(self, weak_constraints): + """Sets the weak_constraints of this CreateGenJobReq. + + 弱约束集合 + + :param weak_constraints: The weak_constraints of this CreateGenJobReq. + :type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`] + """ + self._weak_constraints = weak_constraints + + @property + def strong_constraints(self): + """Gets the strong_constraints of this CreateGenJobReq. + + 强约束集合 + + :return: The strong_constraints of this CreateGenJobReq. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] + """ + return self._strong_constraints + + @strong_constraints.setter + def strong_constraints(self, strong_constraints): + """Sets the strong_constraints of this CreateGenJobReq. + + 强约束集合 + + :param strong_constraints: The strong_constraints of this CreateGenJobReq. + :type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] + """ + self._strong_constraints = strong_constraints + + @property + def base_model_id(self): + """Gets the base_model_id of this CreateGenJobReq. + + 基模型id + + :return: The base_model_id of this CreateGenJobReq. + :rtype: str + """ + return self._base_model_id + + @base_model_id.setter + def base_model_id(self, base_model_id): + """Sets the base_model_id of this CreateGenJobReq. + + 基模型id + + :param base_model_id: The base_model_id of this CreateGenJobReq. + :type base_model_id: str + """ + self._base_model_id = base_model_id + + @property + def model_ids(self): + """Gets the model_ids of this CreateGenJobReq. + + 模型id列表 + + :return: The model_ids of this CreateGenJobReq. + :rtype: list[str] + """ + return self._model_ids + + @model_ids.setter + def model_ids(self, model_ids): + """Sets the model_ids of this CreateGenJobReq. + + 模型id列表 + + :param model_ids: The model_ids of this CreateGenJobReq. + :type model_ids: list[str] + """ + self._model_ids = model_ids + + @property + def num_trials(self): + """Gets the num_trials of this CreateGenJobReq. + + 生成分子数量 + + :return: The num_trials of this CreateGenJobReq. + :rtype: int + """ + return self._num_trials + + @num_trials.setter + def num_trials(self, num_trials): + """Sets the num_trials of this CreateGenJobReq. + + 生成分子数量 + + :param num_trials: The num_trials of this CreateGenJobReq. + :type num_trials: int + """ + self._num_trials = num_trials + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateGenJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_request.py new file mode 100644 index 0000000000..8dc91f2a78 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateGenJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'CreateGenJobReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """CreateGenJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the CreateGenJobRequest + :type body: :class:`huaweicloudsdkeihealth.v1.CreateGenJobReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this CreateGenJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this CreateGenJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this CreateGenJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this CreateGenJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this CreateGenJobRequest. + + :return: The body of this CreateGenJobRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateGenJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateGenJobRequest. + + :param body: The body of this CreateGenJobRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.CreateGenJobReq` + """ + 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, CreateGenJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_response.py new file mode 100644 index 0000000000..30053365aa --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_gen_job_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateGenJobResponse(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', + 'limit_concurrency': 'int' + } + + attribute_map = { + 'id': 'id', + 'limit_concurrency': 'limit_concurrency' + } + + def __init__(self, id=None, limit_concurrency=None): + """CreateGenJobResponse + + The model defined in huaweicloud sdk + + :param id: 作业id + :type id: str + :param limit_concurrency: 限制的并发量 + :type limit_concurrency: int + """ + + super(CreateGenJobResponse, self).__init__() + + self._id = None + self._limit_concurrency = None + self.discriminator = None + + if id is not None: + self.id = id + if limit_concurrency is not None: + self.limit_concurrency = limit_concurrency + + @property + def id(self): + """Gets the id of this CreateGenJobResponse. + + 作业id + + :return: The id of this CreateGenJobResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateGenJobResponse. + + 作业id + + :param id: The id of this CreateGenJobResponse. + :type id: str + """ + self._id = id + + @property + def limit_concurrency(self): + """Gets the limit_concurrency of this CreateGenJobResponse. + + 限制的并发量 + + :return: The limit_concurrency of this CreateGenJobResponse. + :rtype: int + """ + return self._limit_concurrency + + @limit_concurrency.setter + def limit_concurrency(self, limit_concurrency): + """Sets the limit_concurrency of this CreateGenJobResponse. + + 限制的并发量 + + :param limit_concurrency: The limit_concurrency of this CreateGenJobResponse. + :type limit_concurrency: int + """ + self._limit_concurrency = limit_concurrency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateGenJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py index 490a66a5f7..b4a0649259 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py @@ -19,16 +19,18 @@ class CreateLigandPreviewTaskReq: openapi_types = { 'ligand_file': 'DrugFile', 'preview_count': 'int', - 'count_limit': 'int' + 'count_limit': 'int', + 'generate_3d': 'bool' } attribute_map = { 'ligand_file': 'ligand_file', 'preview_count': 'preview_count', - 'count_limit': 'count_limit' + 'count_limit': 'count_limit', + 'generate_3d': 'generate_3d' } - def __init__(self, ligand_file=None, preview_count=None, count_limit=None): + def __init__(self, ligand_file=None, preview_count=None, count_limit=None, generate_3d=None): """CreateLigandPreviewTaskReq The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ def __init__(self, ligand_file=None, preview_count=None, count_limit=None): :type preview_count: int :param count_limit: 计数上限,若分子数量大于计数上限,则终止计数并在结果中标明计数不完整(has_more=true),计数数量应不小于preview_count :type count_limit: int + :param generate_3d: 是否生成3D构象,默认为true + :type generate_3d: bool """ @@ -46,6 +50,7 @@ def __init__(self, ligand_file=None, preview_count=None, count_limit=None): self._ligand_file = None self._preview_count = None self._count_limit = None + self._generate_3d = None self.discriminator = None self.ligand_file = ligand_file @@ -53,6 +58,8 @@ def __init__(self, ligand_file=None, preview_count=None, count_limit=None): self.preview_count = preview_count if count_limit is not None: self.count_limit = count_limit + if generate_3d is not None: + self.generate_3d = generate_3d @property def ligand_file(self): @@ -116,6 +123,28 @@ def count_limit(self, count_limit): """ self._count_limit = count_limit + @property + def generate_3d(self): + """Gets the generate_3d of this CreateLigandPreviewTaskReq. + + 是否生成3D构象,默认为true + + :return: The generate_3d of this CreateLigandPreviewTaskReq. + :rtype: bool + """ + return self._generate_3d + + @generate_3d.setter + def generate_3d(self, generate_3d): + """Sets the generate_3d of this CreateLigandPreviewTaskReq. + + 是否生成3D构象,默认为true + + :param generate_3d: The generate_3d of this CreateLigandPreviewTaskReq. + :type generate_3d: bool + """ + self._generate_3d = generate_3d + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_model_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_model_req.py index a11f110d09..bc9660df0c 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_model_req.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_model_req.py @@ -21,7 +21,8 @@ class CreateModelReq: 'description': 'str', 'type': 'ModelType', 'file': 'ModelFile', - 'shareable': 'bool' + 'shareable': 'bool', + 'base_model_id': 'str' } attribute_map = { @@ -29,10 +30,11 @@ class CreateModelReq: 'description': 'description', 'type': 'type', 'file': 'file', - 'shareable': 'shareable' + 'shareable': 'shareable', + 'base_model_id': 'base_model_id' } - def __init__(self, name=None, description=None, type=None, file=None, shareable=None): + def __init__(self, name=None, description=None, type=None, file=None, shareable=None, base_model_id=None): """CreateModelReq The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ def __init__(self, name=None, description=None, type=None, file=None, shareable= :type file: :class:`huaweicloudsdkeihealth.v1.ModelFile` :param shareable: 是否打开组织共享 :type shareable: bool + :param base_model_id: 基模型id + :type base_model_id: str """ @@ -56,6 +60,7 @@ def __init__(self, name=None, description=None, type=None, file=None, shareable= self._type = None self._file = None self._shareable = None + self._base_model_id = None self.discriminator = None self.name = name @@ -65,6 +70,8 @@ def __init__(self, name=None, description=None, type=None, file=None, shareable= self.file = file if shareable is not None: self.shareable = shareable + if base_model_id is not None: + self.base_model_id = base_model_id @property def name(self): @@ -168,6 +175,28 @@ def shareable(self, shareable): """ self._shareable = shareable + @property + def base_model_id(self): + """Gets the base_model_id of this CreateModelReq. + + 基模型id + + :return: The base_model_id of this CreateModelReq. + :rtype: str + """ + return self._base_model_id + + @base_model_id.setter + def base_model_id(self, base_model_id): + """Sets the base_model_id of this CreateModelReq. + + 基模型id + + :param base_model_id: The base_model_id of this CreateModelReq. + :type base_model_id: str + """ + self._base_model_id = base_model_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_optm_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_optm_job_req.py index 269c64ba7d..baf534c16f 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_optm_job_req.py @@ -25,6 +25,7 @@ class CreateOptmJobReq: 'weak_constraints': 'list[WeakConstraintDto]', 'strong_constraints': 'list[StrongConstraintDto]', 'sampler_mixin_weight': 'float', + 'base_model_id': 'str', 'model_ids': 'list[str]', 'num_trials': 'int' } @@ -38,11 +39,12 @@ class CreateOptmJobReq: 'weak_constraints': 'weak_constraints', 'strong_constraints': 'strong_constraints', 'sampler_mixin_weight': 'sampler_mixin_weight', + 'base_model_id': 'base_model_id', 'model_ids': 'model_ids', 'num_trials': 'num_trials' } - def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, model_ids=None, num_trials=None): + def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, base_model_id=None, model_ids=None, num_trials=None): """CreateOptmJobReq The model defined in huaweicloud sdk @@ -63,6 +65,8 @@ def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_sit :type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] :param sampler_mixin_weight: 初始化采样权重,参数范围(0.5, 1),不包含0.5和1,默认为0.6 :type sampler_mixin_weight: float + :param base_model_id: 基模型id + :type base_model_id: str :param model_ids: 模型id列表 :type model_ids: list[str] :param num_trials: 生成分子数量 @@ -79,6 +83,7 @@ def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_sit self._weak_constraints = None self._strong_constraints = None self._sampler_mixin_weight = None + self._base_model_id = None self._model_ids = None self._num_trials = None self.discriminator = None @@ -98,6 +103,8 @@ def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_sit self.strong_constraints = strong_constraints if sampler_mixin_weight is not None: self.sampler_mixin_weight = sampler_mixin_weight + if base_model_id is not None: + self.base_model_id = base_model_id if model_ids is not None: self.model_ids = model_ids if num_trials is not None: @@ -267,6 +274,28 @@ def sampler_mixin_weight(self, sampler_mixin_weight): """ self._sampler_mixin_weight = sampler_mixin_weight + @property + def base_model_id(self): + """Gets the base_model_id of this CreateOptmJobReq. + + 基模型id + + :return: The base_model_id of this CreateOptmJobReq. + :rtype: str + """ + return self._base_model_id + + @base_model_id.setter + def base_model_id(self, base_model_id): + """Sets the base_model_id of this CreateOptmJobReq. + + 基模型id + + :param base_model_id: The base_model_id of this CreateOptmJobReq. + :type base_model_id: str + """ + self._base_model_id = base_model_id + @property def model_ids(self): """Gets the model_ids of this CreateOptmJobReq. diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py new file mode 100644 index 0000000000..33b359cf22 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTargetOptJobReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'basic_info': 'CreateDrugJobBasicInfo', + 'receptor': 'TargetOptReceptor', + 'ligand': 'TargetOptLigand', + 'md_params': 'MdParam' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'receptor': 'receptor', + 'ligand': 'ligand', + 'md_params': 'md_params' + } + + def __init__(self, basic_info=None, receptor=None, ligand=None, md_params=None): + """CreateTargetOptJobReq + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + :param receptor: + :type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor` + :param ligand: + :type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand` + :param md_params: + :type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam` + """ + + + + self._basic_info = None + self._receptor = None + self._ligand = None + self._md_params = None + self.discriminator = None + + self.basic_info = basic_info + self.receptor = receptor + if ligand is not None: + self.ligand = ligand + if md_params is not None: + self.md_params = md_params + + @property + def basic_info(self): + """Gets the basic_info of this CreateTargetOptJobReq. + + :return: The basic_info of this CreateTargetOptJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this CreateTargetOptJobReq. + + :param basic_info: The basic_info of this CreateTargetOptJobReq. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo` + """ + self._basic_info = basic_info + + @property + def receptor(self): + """Gets the receptor of this CreateTargetOptJobReq. + + :return: The receptor of this CreateTargetOptJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor` + """ + return self._receptor + + @receptor.setter + def receptor(self, receptor): + """Sets the receptor of this CreateTargetOptJobReq. + + :param receptor: The receptor of this CreateTargetOptJobReq. + :type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor` + """ + self._receptor = receptor + + @property + def ligand(self): + """Gets the ligand of this CreateTargetOptJobReq. + + :return: The ligand of this CreateTargetOptJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand` + """ + return self._ligand + + @ligand.setter + def ligand(self, ligand): + """Sets the ligand of this CreateTargetOptJobReq. + + :param ligand: The ligand of this CreateTargetOptJobReq. + :type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand` + """ + self._ligand = ligand + + @property + def md_params(self): + """Gets the md_params of this CreateTargetOptJobReq. + + :return: The md_params of this CreateTargetOptJobReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.MdParam` + """ + return self._md_params + + @md_params.setter + def md_params(self, md_params): + """Sets the md_params of this CreateTargetOptJobReq. + + :param md_params: The md_params of this CreateTargetOptJobReq. + :type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam` + """ + self._md_params = md_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, CreateTargetOptJobReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py new file mode 100644 index 0000000000..83d6243f28 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTargetOptJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'CreateTargetOptJobReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """CreateTargetOptJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the CreateTargetOptJobRequest + :type body: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this CreateTargetOptJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this CreateTargetOptJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this CreateTargetOptJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this CreateTargetOptJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this CreateTargetOptJobRequest. + + :return: The body of this CreateTargetOptJobRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateTargetOptJobRequest. + + :param body: The body of this CreateTargetOptJobRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobReq` + """ + 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, CreateTargetOptJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py new file mode 100644 index 0000000000..c28dc12a2c --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateTargetOptJobResponse(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', + 'limit_concurrency': 'int' + } + + attribute_map = { + 'id': 'id', + 'limit_concurrency': 'limit_concurrency' + } + + def __init__(self, id=None, limit_concurrency=None): + """CreateTargetOptJobResponse + + The model defined in huaweicloud sdk + + :param id: 作业id + :type id: str + :param limit_concurrency: 限制的并发量 + :type limit_concurrency: int + """ + + super(CreateTargetOptJobResponse, self).__init__() + + self._id = None + self._limit_concurrency = None + self.discriminator = None + + if id is not None: + self.id = id + if limit_concurrency is not None: + self.limit_concurrency = limit_concurrency + + @property + def id(self): + """Gets the id of this CreateTargetOptJobResponse. + + 作业id + + :return: The id of this CreateTargetOptJobResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateTargetOptJobResponse. + + 作业id + + :param id: The id of this CreateTargetOptJobResponse. + :type id: str + """ + self._id = id + + @property + def limit_concurrency(self): + """Gets the limit_concurrency of this CreateTargetOptJobResponse. + + 限制的并发量 + + :return: The limit_concurrency of this CreateTargetOptJobResponse. + :rtype: int + """ + return self._limit_concurrency + + @limit_concurrency.setter + def limit_concurrency(self, limit_concurrency): + """Sets the limit_concurrency of this CreateTargetOptJobResponse. + + 限制的并发量 + + :param limit_concurrency: The limit_concurrency of this CreateTargetOptJobResponse. + :type limit_concurrency: int + """ + self._limit_concurrency = limit_concurrency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateTargetOptJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/fasta_receptor.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/fasta_receptor.py new file mode 100644 index 0000000000..d90e354c6f --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/fasta_receptor.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FastaReceptor: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'source': 'DrugFileSource', + 'url': 'str', + 'format': 'str', + 'data': 'str' + } + + attribute_map = { + 'source': 'source', + 'url': 'url', + 'format': 'format', + 'data': 'data' + } + + def __init__(self, source=None, url=None, format=None, data=None): + """FastaReceptor + + The model defined in huaweicloud sdk + + :param source: + :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + :param url: 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + :type url: str + :param format: 文件格式,仅支持FASTA,仅数据源为RAW时提供 + :type format: str + :param data: 文件原始数据,仅数据源为RAW时提供 + :type data: str + """ + + + + self._source = None + self._url = None + self._format = None + self._data = None + self.discriminator = None + + self.source = source + if url is not None: + self.url = url + if format is not None: + self.format = format + if data is not None: + self.data = data + + @property + def source(self): + """Gets the source of this FastaReceptor. + + :return: The source of this FastaReceptor. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this FastaReceptor. + + :param source: The source of this FastaReceptor. + :type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource` + """ + self._source = source + + @property + def url(self): + """Gets the url of this FastaReceptor. + + 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + + :return: The url of this FastaReceptor. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this FastaReceptor. + + 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + + :param url: The url of this FastaReceptor. + :type url: str + """ + self._url = url + + @property + def format(self): + """Gets the format of this FastaReceptor. + + 文件格式,仅支持FASTA,仅数据源为RAW时提供 + + :return: The format of this FastaReceptor. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this FastaReceptor. + + 文件格式,仅支持FASTA,仅数据源为RAW时提供 + + :param format: The format of this FastaReceptor. + :type format: str + """ + self._format = format + + @property + def data(self): + """Gets the data of this FastaReceptor. + + 文件原始数据,仅数据源为RAW时提供 + + :return: The data of this FastaReceptor. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this FastaReceptor. + + 文件原始数据,仅数据源为RAW时提供 + + :param data: The data of this FastaReceptor. + :type data: str + """ + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FastaReceptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction.py new file mode 100644 index 0000000000..0df0ea13f7 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Interaction: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'binding_site': 'str', + 'type': 'InteractionType', + 'amino_acid': 'str' + } + + attribute_map = { + 'binding_site': 'binding_site', + 'type': 'type', + 'amino_acid': 'amino_acid' + } + + def __init__(self, binding_site=None, type=None, amino_acid=None): + """Interaction + + The model defined in huaweicloud sdk + + :param binding_site: 靶点,只支持target1或target2。 + :type binding_site: str + :param type: + :type type: :class:`huaweicloudsdkeihealth.v1.InteractionType` + :param amino_acid: 氨基酸 + :type amino_acid: str + """ + + + + self._binding_site = None + self._type = None + self._amino_acid = None + self.discriminator = None + + self.binding_site = binding_site + self.type = type + self.amino_acid = amino_acid + + @property + def binding_site(self): + """Gets the binding_site of this Interaction. + + 靶点,只支持target1或target2。 + + :return: The binding_site of this Interaction. + :rtype: str + """ + return self._binding_site + + @binding_site.setter + def binding_site(self, binding_site): + """Sets the binding_site of this Interaction. + + 靶点,只支持target1或target2。 + + :param binding_site: The binding_site of this Interaction. + :type binding_site: str + """ + self._binding_site = binding_site + + @property + def type(self): + """Gets the type of this Interaction. + + :return: The type of this Interaction. + :rtype: :class:`huaweicloudsdkeihealth.v1.InteractionType` + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Interaction. + + :param type: The type of this Interaction. + :type type: :class:`huaweicloudsdkeihealth.v1.InteractionType` + """ + self._type = type + + @property + def amino_acid(self): + """Gets the amino_acid of this Interaction. + + 氨基酸 + + :return: The amino_acid of this Interaction. + :rtype: str + """ + return self._amino_acid + + @amino_acid.setter + def amino_acid(self, amino_acid): + """Sets the amino_acid of this Interaction. + + 氨基酸 + + :param amino_acid: The amino_acid of this Interaction. + :type amino_acid: str + """ + self._amino_acid = amino_acid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Interaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py new file mode 100644 index 0000000000..9dcafb83f3 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InteractionConstraintDto: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'interactions': 'list[Interaction]', + 'exclusive': 'bool', + 'operator': 'OperatorType' + } + + attribute_map = { + 'interactions': 'interactions', + 'exclusive': 'exclusive', + 'operator': 'operator' + } + + def __init__(self, interactions=None, exclusive=None, operator=None): + """InteractionConstraintDto + + The model defined in huaweicloud sdk + + :param interactions: 相互作用力列表 + :type interactions: list[:class:`huaweicloudsdkeihealth.v1.Interaction`] + :param exclusive: 是否排除指定的约束作用力 + :type exclusive: bool + :param operator: + :type operator: :class:`huaweicloudsdkeihealth.v1.OperatorType` + """ + + + + self._interactions = None + self._exclusive = None + self._operator = None + self.discriminator = None + + self.interactions = interactions + self.exclusive = exclusive + if operator is not None: + self.operator = operator + + @property + def interactions(self): + """Gets the interactions of this InteractionConstraintDto. + + 相互作用力列表 + + :return: The interactions of this InteractionConstraintDto. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.Interaction`] + """ + return self._interactions + + @interactions.setter + def interactions(self, interactions): + """Sets the interactions of this InteractionConstraintDto. + + 相互作用力列表 + + :param interactions: The interactions of this InteractionConstraintDto. + :type interactions: list[:class:`huaweicloudsdkeihealth.v1.Interaction`] + """ + self._interactions = interactions + + @property + def exclusive(self): + """Gets the exclusive of this InteractionConstraintDto. + + 是否排除指定的约束作用力 + + :return: The exclusive of this InteractionConstraintDto. + :rtype: bool + """ + return self._exclusive + + @exclusive.setter + def exclusive(self, exclusive): + """Sets the exclusive of this InteractionConstraintDto. + + 是否排除指定的约束作用力 + + :param exclusive: The exclusive of this InteractionConstraintDto. + :type exclusive: bool + """ + self._exclusive = exclusive + + @property + def operator(self): + """Gets the operator of this InteractionConstraintDto. + + :return: The operator of this InteractionConstraintDto. + :rtype: :class:`huaweicloudsdkeihealth.v1.OperatorType` + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this InteractionConstraintDto. + + :param operator: The operator of this InteractionConstraintDto. + :type operator: :class:`huaweicloudsdkeihealth.v1.OperatorType` + """ + self._operator = operator + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InteractionConstraintDto): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_type.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_type.py new file mode 100644 index 0000000000..5a136884b4 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/interaction_type.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InteractionType: + """ + allowed enum values + """ + HYDROGEN_BOND = "hydrogen_bond" + HYDROPHOBIC_ACTION = "hydrophobic_action" + SALT_BRIDGE = "salt_bridge" + PI_STACKING = "pi_stacking" + PI_CATION = "pi_cation" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """InteractionType + + 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, InteractionType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_request.py new file mode 100644 index 0000000000..3e4456a3e5 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_request.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBaseModelRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'offset': 'int', + 'sort_dir': 'str', + 'sort_key': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'sort_dir': 'sort_dir', + 'sort_key': 'sort_key' + } + + def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None): + """ListBaseModelRequest + + The model defined in huaweicloud sdk + + :param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + :type limit: int + :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + :type offset: int + :param sort_dir: 排序规则 目前默认时间升序 + :type sort_dir: str + :param sort_key: 排序规则 目前默认时间升序,支持根据create_time排序 + :type sort_key: str + """ + + + + self._limit = None + self._offset = None + self._sort_dir = None + self._sort_key = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if sort_dir is not None: + self.sort_dir = sort_dir + if sort_key is not None: + self.sort_key = sort_key + + @property + def limit(self): + """Gets the limit of this ListBaseModelRequest. + + 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + + :return: The limit of this ListBaseModelRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListBaseModelRequest. + + 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + + :param limit: The limit of this ListBaseModelRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListBaseModelRequest. + + 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + + :return: The offset of this ListBaseModelRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListBaseModelRequest. + + 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + + :param offset: The offset of this ListBaseModelRequest. + :type offset: int + """ + self._offset = offset + + @property + def sort_dir(self): + """Gets the sort_dir of this ListBaseModelRequest. + + 排序规则 目前默认时间升序 + + :return: The sort_dir of this ListBaseModelRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListBaseModelRequest. + + 排序规则 目前默认时间升序 + + :param sort_dir: The sort_dir of this ListBaseModelRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def sort_key(self): + """Gets the sort_key of this ListBaseModelRequest. + + 排序规则 目前默认时间升序,支持根据create_time排序 + + :return: The sort_key of this ListBaseModelRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListBaseModelRequest. + + 排序规则 目前默认时间升序,支持根据create_time排序 + + :param sort_key: The sort_key of this ListBaseModelRequest. + :type sort_key: str + """ + self._sort_key = sort_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, ListBaseModelRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_response.py new file mode 100644 index 0000000000..3010ba307c --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_base_model_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBaseModelResponse(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 = { + 'models': 'list[BaseModelDto]', + 'count': 'int' + } + + attribute_map = { + 'models': 'models', + 'count': 'count' + } + + def __init__(self, models=None, count=None): + """ListBaseModelResponse + + The model defined in huaweicloud sdk + + :param models: 模型列表 + :type models: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`] + :param count: 模型总数 + :type count: int + """ + + super(ListBaseModelResponse, self).__init__() + + self._models = None + self._count = None + self.discriminator = None + + if models is not None: + self.models = models + if count is not None: + self.count = count + + @property + def models(self): + """Gets the models of this ListBaseModelResponse. + + 模型列表 + + :return: The models of this ListBaseModelResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`] + """ + return self._models + + @models.setter + def models(self, models): + """Sets the models of this ListBaseModelResponse. + + 模型列表 + + :param models: The models of this ListBaseModelResponse. + :type models: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`] + """ + self._models = models + + @property + def count(self): + """Gets the count of this ListBaseModelResponse. + + 模型总数 + + :return: The count of this ListBaseModelResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListBaseModelResponse. + + 模型总数 + + :param count: The count of this ListBaseModelResponse. + :type count: int + """ + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBaseModelResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_drug_model_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_drug_model_request.py index a95ef5ac19..b10487459c 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_drug_model_request.py @@ -28,7 +28,8 @@ class ListDrugModelRequest: 'finish_start_time': 'int', 'finish_end_time': 'int', 'limit': 'int', - 'offset': 'int' + 'offset': 'int', + 'base_model_list': 'list[str]' } attribute_map = { @@ -43,10 +44,11 @@ class ListDrugModelRequest: 'finish_start_time': 'finish_start_time', 'finish_end_time': 'finish_end_time', 'limit': 'limit', - 'offset': 'offset' + 'offset': 'offset', + 'base_model_list': 'base_model_list' } - def __init__(self, search_key=None, creator_list=None, type_list=None, status_list=None, sort_key=None, sort_dir=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, limit=None, offset=None): + def __init__(self, search_key=None, creator_list=None, type_list=None, status_list=None, sort_key=None, sort_dir=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, limit=None, offset=None, base_model_list=None): """ListDrugModelRequest The model defined in huaweicloud sdk @@ -59,7 +61,7 @@ def __init__(self, search_key=None, creator_list=None, type_list=None, status_li :type type_list: list[str] :param status_list: 模型状态列表 :type status_list: list[str] - :param sort_key: 排序规则 目前默认时间降序,支持根据create_time|finish_time + :param sort_key: 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name :type sort_key: str :param sort_dir: 排序规则 目前默认时间降序 :type sort_dir: str @@ -75,6 +77,8 @@ def __init__(self, search_key=None, creator_list=None, type_list=None, status_li :type limit: int :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] :type offset: int + :param base_model_list: 基模型id列表 + :type base_model_list: list[str] """ @@ -91,6 +95,7 @@ def __init__(self, search_key=None, creator_list=None, type_list=None, status_li self._finish_end_time = None self._limit = None self._offset = None + self._base_model_list = None self.discriminator = None if search_key is not None: @@ -117,6 +122,8 @@ def __init__(self, search_key=None, creator_list=None, type_list=None, status_li self.limit = limit if offset is not None: self.offset = offset + if base_model_list is not None: + self.base_model_list = base_model_list @property def search_key(self): @@ -210,7 +217,7 @@ def status_list(self, status_list): def sort_key(self): """Gets the sort_key of this ListDrugModelRequest. - 排序规则 目前默认时间降序,支持根据create_time|finish_time + 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name :return: The sort_key of this ListDrugModelRequest. :rtype: str @@ -221,7 +228,7 @@ def sort_key(self): def sort_key(self, sort_key): """Sets the sort_key of this ListDrugModelRequest. - 排序规则 目前默认时间降序,支持根据create_time|finish_time + 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name :param sort_key: The sort_key of this ListDrugModelRequest. :type sort_key: str @@ -382,6 +389,28 @@ def offset(self, offset): """ self._offset = offset + @property + def base_model_list(self): + """Gets the base_model_list of this ListDrugModelRequest. + + 基模型id列表 + + :return: The base_model_list of this ListDrugModelRequest. + :rtype: list[str] + """ + return self._base_model_list + + @base_model_list.setter + def base_model_list(self, base_model_list): + """Sets the base_model_list of this ListDrugModelRequest. + + 基模型id列表 + + :param base_model_list: The base_model_list of this ListDrugModelRequest. + :type base_model_list: list[str] + """ + self._base_model_list = base_model_list + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_param.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_param.py new file mode 100644 index 0000000000..bb8ba23aea --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_param.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MdParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'timestep_size': 'float', + 'temperature': 'float', + 'step_params': 'MdStepParam' + } + + attribute_map = { + 'timestep_size': 'timestep_size', + 'temperature': 'temperature', + 'step_params': 'step_params' + } + + def __init__(self, timestep_size=None, temperature=None, step_params=None): + """MdParam + + The model defined in huaweicloud sdk + + :param timestep_size: MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5 + :type timestep_size: float + :param temperature: MD模拟的温度,单位K + :type temperature: float + :param step_params: + :type step_params: :class:`huaweicloudsdkeihealth.v1.MdStepParam` + """ + + + + self._timestep_size = None + self._temperature = None + self._step_params = None + self.discriminator = None + + if timestep_size is not None: + self.timestep_size = timestep_size + if temperature is not None: + self.temperature = temperature + if step_params is not None: + self.step_params = step_params + + @property + def timestep_size(self): + """Gets the timestep_size of this MdParam. + + MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5 + + :return: The timestep_size of this MdParam. + :rtype: float + """ + return self._timestep_size + + @timestep_size.setter + def timestep_size(self, timestep_size): + """Sets the timestep_size of this MdParam. + + MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5 + + :param timestep_size: The timestep_size of this MdParam. + :type timestep_size: float + """ + self._timestep_size = timestep_size + + @property + def temperature(self): + """Gets the temperature of this MdParam. + + MD模拟的温度,单位K + + :return: The temperature of this MdParam. + :rtype: float + """ + return self._temperature + + @temperature.setter + def temperature(self, temperature): + """Sets the temperature of this MdParam. + + MD模拟的温度,单位K + + :param temperature: The temperature of this MdParam. + :type temperature: float + """ + self._temperature = temperature + + @property + def step_params(self): + """Gets the step_params of this MdParam. + + :return: The step_params of this MdParam. + :rtype: :class:`huaweicloudsdkeihealth.v1.MdStepParam` + """ + return self._step_params + + @step_params.setter + def step_params(self, step_params): + """Sets the step_params of this MdParam. + + :param step_params: The step_params of this MdParam. + :type step_params: :class:`huaweicloudsdkeihealth.v1.MdStepParam` + """ + self._step_params = step_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, MdParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_step_param.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_step_param.py new file mode 100644 index 0000000000..50103880ae --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/md_step_param.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class MdStepParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'energy_minimization_steps': 'int', + 'nvt': 'float', + 'npt': 'float', + 'simulation_time': 'float' + } + + attribute_map = { + 'energy_minimization_steps': 'energy_minimization_steps', + 'nvt': 'nvt', + 'npt': 'npt', + 'simulation_time': 'simulation_time' + } + + def __init__(self, energy_minimization_steps=None, nvt=None, npt=None, simulation_time=None): + """MdStepParam + + The model defined in huaweicloud sdk + + :param energy_minimization_steps: 能量最小化的步骤 + :type energy_minimization_steps: int + :param nvt: 等温等体步骤模拟的时长,单位ps + :type nvt: float + :param npt: 等压等温步骤模拟的时长,单位ps + :type npt: float + :param simulation_time: 平衡步骤模拟的时长,单位ns + :type simulation_time: float + """ + + + + self._energy_minimization_steps = None + self._nvt = None + self._npt = None + self._simulation_time = None + self.discriminator = None + + if energy_minimization_steps is not None: + self.energy_minimization_steps = energy_minimization_steps + if nvt is not None: + self.nvt = nvt + if npt is not None: + self.npt = npt + if simulation_time is not None: + self.simulation_time = simulation_time + + @property + def energy_minimization_steps(self): + """Gets the energy_minimization_steps of this MdStepParam. + + 能量最小化的步骤 + + :return: The energy_minimization_steps of this MdStepParam. + :rtype: int + """ + return self._energy_minimization_steps + + @energy_minimization_steps.setter + def energy_minimization_steps(self, energy_minimization_steps): + """Sets the energy_minimization_steps of this MdStepParam. + + 能量最小化的步骤 + + :param energy_minimization_steps: The energy_minimization_steps of this MdStepParam. + :type energy_minimization_steps: int + """ + self._energy_minimization_steps = energy_minimization_steps + + @property + def nvt(self): + """Gets the nvt of this MdStepParam. + + 等温等体步骤模拟的时长,单位ps + + :return: The nvt of this MdStepParam. + :rtype: float + """ + return self._nvt + + @nvt.setter + def nvt(self, nvt): + """Sets the nvt of this MdStepParam. + + 等温等体步骤模拟的时长,单位ps + + :param nvt: The nvt of this MdStepParam. + :type nvt: float + """ + self._nvt = nvt + + @property + def npt(self): + """Gets the npt of this MdStepParam. + + 等压等温步骤模拟的时长,单位ps + + :return: The npt of this MdStepParam. + :rtype: float + """ + return self._npt + + @npt.setter + def npt(self, npt): + """Sets the npt of this MdStepParam. + + 等压等温步骤模拟的时长,单位ps + + :param npt: The npt of this MdStepParam. + :type npt: float + """ + self._npt = npt + + @property + def simulation_time(self): + """Gets the simulation_time of this MdStepParam. + + 平衡步骤模拟的时长,单位ns + + :return: The simulation_time of this MdStepParam. + :rtype: float + """ + return self._simulation_time + + @simulation_time.setter + def simulation_time(self, simulation_time): + """Sets the simulation_time of this MdStepParam. + + 平衡步骤模拟的时长,单位ns + + :param simulation_time: The simulation_time of this MdStepParam. + :type simulation_time: float + """ + self._simulation_time = simulation_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, MdStepParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/model_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/model_dto.py index 70ba0498dc..2959b73239 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/model_dto.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/model_dto.py @@ -31,7 +31,9 @@ class ModelDto: 'description': 'str', 'failed_message': 'str', 'losses': 'list[float]', - 'metrics': 'list[ModelMetric]' + 'metrics': 'list[ModelMetric]', + 'base_model_id': 'str', + 'base_model_name': 'str' } attribute_map = { @@ -49,10 +51,12 @@ class ModelDto: 'description': 'description', 'failed_message': 'failed_message', 'losses': 'losses', - 'metrics': 'metrics' + 'metrics': 'metrics', + 'base_model_id': 'base_model_id', + 'base_model_name': 'base_model_name' } - def __init__(self, name=None, id=None, type=None, create_time=None, finish_time=None, creator=None, status=None, shareable=None, data_quantity=None, file=None, value_range=None, description=None, failed_message=None, losses=None, metrics=None): + def __init__(self, name=None, id=None, type=None, create_time=None, finish_time=None, creator=None, status=None, shareable=None, data_quantity=None, file=None, value_range=None, description=None, failed_message=None, losses=None, metrics=None, base_model_id=None, base_model_name=None): """ModelDto The model defined in huaweicloud sdk @@ -87,6 +91,10 @@ def __init__(self, name=None, id=None, type=None, create_time=None, finish_time= :type losses: list[float] :param metrics: 模型评估指标 :type metrics: list[:class:`huaweicloudsdkeihealth.v1.ModelMetric`] + :param base_model_id: 基模型id + :type base_model_id: str + :param base_model_name: 基模型名称 + :type base_model_name: str """ @@ -106,6 +114,8 @@ def __init__(self, name=None, id=None, type=None, create_time=None, finish_time= self._failed_message = None self._losses = None self._metrics = None + self._base_model_id = None + self._base_model_name = None self.discriminator = None if name is not None: @@ -138,6 +148,10 @@ def __init__(self, name=None, id=None, type=None, create_time=None, finish_time= self.losses = losses if metrics is not None: self.metrics = metrics + if base_model_id is not None: + self.base_model_id = base_model_id + if base_model_name is not None: + self.base_model_name = base_model_name @property def name(self): @@ -461,6 +475,50 @@ def metrics(self, metrics): """ self._metrics = metrics + @property + def base_model_id(self): + """Gets the base_model_id of this ModelDto. + + 基模型id + + :return: The base_model_id of this ModelDto. + :rtype: str + """ + return self._base_model_id + + @base_model_id.setter + def base_model_id(self, base_model_id): + """Sets the base_model_id of this ModelDto. + + 基模型id + + :param base_model_id: The base_model_id of this ModelDto. + :type base_model_id: str + """ + self._base_model_id = base_model_id + + @property + def base_model_name(self): + """Gets the base_model_name of this ModelDto. + + 基模型名称 + + :return: The base_model_name of this ModelDto. + :rtype: str + """ + return self._base_model_name + + @base_model_name.setter + def base_model_name(self, base_model_name): + """Sets the base_model_name of this ModelDto. + + 基模型名称 + + :param base_model_name: The base_model_name of this ModelDto. + :type base_model_name: str + """ + self._base_model_name = base_model_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/pocket_fragment.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/pocket_fragment.py index 69a8f47fa9..0d07bac438 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/pocket_fragment.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/pocket_fragment.py @@ -20,6 +20,7 @@ class PocketFragment: 'source': 'DrugFileSource', 'url': 'str', 'format': 'str', + 'name': 'str', 'data': 'str', 'edited': 'EditedLigand', 'label_sites': 'LabelSite' @@ -29,12 +30,13 @@ class PocketFragment: 'source': 'source', 'url': 'url', 'format': 'format', + 'name': 'name', 'data': 'data', 'edited': 'edited', 'label_sites': 'label_sites' } - def __init__(self, source=None, url=None, format=None, data=None, edited=None, label_sites=None): + def __init__(self, source=None, url=None, format=None, name=None, data=None, edited=None, label_sites=None): """PocketFragment The model defined in huaweicloud sdk @@ -45,6 +47,8 @@ def __init__(self, source=None, url=None, format=None, data=None, edited=None, l :type url: str :param format: 文件格式,支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供 :type format: str + :param name: 原始配体名称,仅RAW类型时用于配体名称标识 + :type name: str :param data: 文件原始数据,仅数据源为RAW时提供 :type data: str :param edited: @@ -58,6 +62,7 @@ def __init__(self, source=None, url=None, format=None, data=None, edited=None, l self._source = None self._url = None self._format = None + self._name = None self._data = None self._edited = None self._label_sites = None @@ -69,6 +74,8 @@ def __init__(self, source=None, url=None, format=None, data=None, edited=None, l self.url = url if format is not None: self.format = format + if name is not None: + self.name = name if data is not None: self.data = data if edited is not None: @@ -138,6 +145,28 @@ def format(self, format): """ self._format = format + @property + def name(self): + """Gets the name of this PocketFragment. + + 原始配体名称,仅RAW类型时用于配体名称标识 + + :return: The name of this PocketFragment. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PocketFragment. + + 原始配体名称,仅RAW类型时用于配体名称标识 + + :param name: The name of this PocketFragment. + :type name: str + """ + self._name = name + @property def data(self): """Gets the data of this PocketFragment. diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py new file mode 100644 index 0000000000..ab9b89872b --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunFastaPreprocessReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'FastaReceptor', + 'preview_count': 'int', + 'count_limit': 'int' + } + + attribute_map = { + 'file': 'file', + 'preview_count': 'preview_count', + 'count_limit': 'count_limit' + } + + def __init__(self, file=None, preview_count=None, count_limit=None): + """RunFastaPreprocessReq + + The model defined in huaweicloud sdk + + :param file: + :type file: :class:`huaweicloudsdkeihealth.v1.FastaReceptor` + :param preview_count: 预览数量 + :type preview_count: int + :param count_limit: 计数上限 + :type count_limit: int + """ + + + + self._file = None + self._preview_count = None + self._count_limit = None + self.discriminator = None + + self.file = file + if preview_count is not None: + self.preview_count = preview_count + if count_limit is not None: + self.count_limit = count_limit + + @property + def file(self): + """Gets the file of this RunFastaPreprocessReq. + + :return: The file of this RunFastaPreprocessReq. + :rtype: :class:`huaweicloudsdkeihealth.v1.FastaReceptor` + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this RunFastaPreprocessReq. + + :param file: The file of this RunFastaPreprocessReq. + :type file: :class:`huaweicloudsdkeihealth.v1.FastaReceptor` + """ + self._file = file + + @property + def preview_count(self): + """Gets the preview_count of this RunFastaPreprocessReq. + + 预览数量 + + :return: The preview_count of this RunFastaPreprocessReq. + :rtype: int + """ + return self._preview_count + + @preview_count.setter + def preview_count(self, preview_count): + """Sets the preview_count of this RunFastaPreprocessReq. + + 预览数量 + + :param preview_count: The preview_count of this RunFastaPreprocessReq. + :type preview_count: int + """ + self._preview_count = preview_count + + @property + def count_limit(self): + """Gets the count_limit of this RunFastaPreprocessReq. + + 计数上限 + + :return: The count_limit of this RunFastaPreprocessReq. + :rtype: int + """ + return self._count_limit + + @count_limit.setter + def count_limit(self, count_limit): + """Sets the count_limit of this RunFastaPreprocessReq. + + 计数上限 + + :param count_limit: The count_limit of this RunFastaPreprocessReq. + :type count_limit: int + """ + self._count_limit = count_limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunFastaPreprocessReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py new file mode 100644 index 0000000000..4849d30629 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunFastaPreprocessRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'body': 'RunFastaPreprocessReq' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'body': 'body' + } + + def __init__(self, eihealth_project_id=None, body=None): + """RunFastaPreprocessRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param body: Body of the RunFastaPreprocessRequest + :type body: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessReq` + """ + + + + self._eihealth_project_id = None + self._body = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + if body is not None: + self.body = body + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this RunFastaPreprocessRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this RunFastaPreprocessRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this RunFastaPreprocessRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this RunFastaPreprocessRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def body(self): + """Gets the body of this RunFastaPreprocessRequest. + + :return: The body of this RunFastaPreprocessRequest. + :rtype: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RunFastaPreprocessRequest. + + :param body: The body of this RunFastaPreprocessRequest. + :type body: :class:`huaweicloudsdkeihealth.v1.RunFastaPreprocessReq` + """ + 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, RunFastaPreprocessRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py new file mode 100644 index 0000000000..cee7b86c53 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RunFastaPreprocessResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'has_more': 'bool' + } + + attribute_map = { + 'count': 'count', + 'has_more': 'has_more' + } + + def __init__(self, count=None, has_more=None): + """RunFastaPreprocessResponse + + The model defined in huaweicloud sdk + + :param count: 已知的蛋白序列数量 + :type count: int + :param has_more: 文件中是否还有更多氨基酸序列没有处理 + :type has_more: bool + """ + + super(RunFastaPreprocessResponse, self).__init__() + + self._count = None + self._has_more = None + self.discriminator = None + + if count is not None: + self.count = count + if has_more is not None: + self.has_more = has_more + + @property + def count(self): + """Gets the count of this RunFastaPreprocessResponse. + + 已知的蛋白序列数量 + + :return: The count of this RunFastaPreprocessResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this RunFastaPreprocessResponse. + + 已知的蛋白序列数量 + + :param count: The count of this RunFastaPreprocessResponse. + :type count: int + """ + self._count = count + + @property + def has_more(self): + """Gets the has_more of this RunFastaPreprocessResponse. + + 文件中是否还有更多氨基酸序列没有处理 + + :return: The has_more of this RunFastaPreprocessResponse. + :rtype: bool + """ + return self._has_more + + @has_more.setter + def has_more(self, has_more): + """Sets the has_more of this RunFastaPreprocessResponse. + + 文件中是否还有更多氨基酸序列没有处理 + + :param has_more: The has_more of this RunFastaPreprocessResponse. + :type has_more: bool + """ + self._has_more = has_more + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RunFastaPreprocessResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_admet_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_admet_job_response.py index 3cc6b09e26..a0795a8704 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_admet_job_response.py @@ -22,8 +22,10 @@ class ShowAdmetJobResponse(SdkResponse): 'molecule_file': 'MoleculeFileDto', 'job_result': 'JobResult', 'part_failed_reason': 'list[FailedReasonRecord]', + 'base_model': 'BaseModel', 'models': 'list[BasicDrugModel]', - 'cluster_result': 'ClusterJobRsp' + 'cluster_result': 'ClusterJobRsp', + 'save_fingerprint': 'bool' } attribute_map = { @@ -31,11 +33,13 @@ class ShowAdmetJobResponse(SdkResponse): 'molecule_file': 'molecule_file', 'job_result': 'job_result', 'part_failed_reason': 'part_failed_reason', + 'base_model': 'base_model', 'models': 'models', - 'cluster_result': 'cluster_result' + 'cluster_result': 'cluster_result', + 'save_fingerprint': 'save_fingerprint' } - def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_failed_reason=None, models=None, cluster_result=None): + def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_failed_reason=None, base_model=None, models=None, cluster_result=None, save_fingerprint=None): """ShowAdmetJobResponse The model defined in huaweicloud sdk @@ -48,10 +52,14 @@ def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_fa :type job_result: :class:`huaweicloudsdkeihealth.v1.JobResult` :param part_failed_reason: 作业结果信息 :type part_failed_reason: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`] + :param base_model: + :type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel` :param models: 模型信息 :type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`] :param cluster_result: :type cluster_result: :class:`huaweicloudsdkeihealth.v1.ClusterJobRsp` + :param save_fingerprint: 是否输出表征 + :type save_fingerprint: bool """ super(ShowAdmetJobResponse, self).__init__() @@ -60,8 +68,10 @@ def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_fa self._molecule_file = None self._job_result = None self._part_failed_reason = None + self._base_model = None self._models = None self._cluster_result = None + self._save_fingerprint = None self.discriminator = None if basic_info is not None: @@ -72,10 +82,14 @@ def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_fa self.job_result = job_result if part_failed_reason is not None: self.part_failed_reason = part_failed_reason + if base_model is not None: + self.base_model = base_model if models is not None: self.models = models if cluster_result is not None: self.cluster_result = cluster_result + if save_fingerprint is not None: + self.save_fingerprint = save_fingerprint @property def basic_info(self): @@ -153,6 +167,24 @@ def part_failed_reason(self, part_failed_reason): """ self._part_failed_reason = part_failed_reason + @property + def base_model(self): + """Gets the base_model of this ShowAdmetJobResponse. + + :return: The base_model of this ShowAdmetJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.BaseModel` + """ + return self._base_model + + @base_model.setter + def base_model(self, base_model): + """Sets the base_model of this ShowAdmetJobResponse. + + :param base_model: The base_model of this ShowAdmetJobResponse. + :type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel` + """ + self._base_model = base_model + @property def models(self): """Gets the models of this ShowAdmetJobResponse. @@ -193,6 +225,28 @@ def cluster_result(self, cluster_result): """ self._cluster_result = cluster_result + @property + def save_fingerprint(self): + """Gets the save_fingerprint of this ShowAdmetJobResponse. + + 是否输出表征 + + :return: The save_fingerprint of this ShowAdmetJobResponse. + :rtype: bool + """ + return self._save_fingerprint + + @save_fingerprint.setter + def save_fingerprint(self, save_fingerprint): + """Sets the save_fingerprint of this ShowAdmetJobResponse. + + 是否输出表征 + + :param save_fingerprint: The save_fingerprint of this ShowAdmetJobResponse. + :type save_fingerprint: bool + """ + self._save_fingerprint = save_fingerprint + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py new file mode 100644 index 0000000000..609cde5edf --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowCpiJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'job_id': 'job_id' + } + + def __init__(self, eihealth_project_id=None, job_id=None): + """ShowCpiJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param job_id: 作业id + :type job_id: str + """ + + + + self._eihealth_project_id = None + self._job_id = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + self.job_id = job_id + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this ShowCpiJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this ShowCpiJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this ShowCpiJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this ShowCpiJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def job_id(self): + """Gets the job_id of this ShowCpiJobRequest. + + 作业id + + :return: The job_id of this ShowCpiJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowCpiJobRequest. + + 作业id + + :param job_id: The job_id of this ShowCpiJobRequest. + :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, ShowCpiJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py new file mode 100644 index 0000000000..a39189b967 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowCpiJobResponse(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 = { + 'basic_info': 'DrugJobDto', + 'receptors': 'list[ReceptorDrugFile]', + 'ligands': 'list[MoleculeFileDto]' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'receptors': 'receptors', + 'ligands': 'ligands' + } + + def __init__(self, basic_info=None, receptors=None, ligands=None): + """ShowCpiJobResponse + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + :param receptors: 受体文件列表 + :type receptors: list[:class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`] + :param ligands: 小分子 + :type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`] + """ + + super(ShowCpiJobResponse, self).__init__() + + self._basic_info = None + self._receptors = None + self._ligands = None + self.discriminator = None + + if basic_info is not None: + self.basic_info = basic_info + if receptors is not None: + self.receptors = receptors + if ligands is not None: + self.ligands = ligands + + @property + def basic_info(self): + """Gets the basic_info of this ShowCpiJobResponse. + + :return: The basic_info of this ShowCpiJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this ShowCpiJobResponse. + + :param basic_info: The basic_info of this ShowCpiJobResponse. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + self._basic_info = basic_info + + @property + def receptors(self): + """Gets the receptors of this ShowCpiJobResponse. + + 受体文件列表 + + :return: The receptors of this ShowCpiJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`] + """ + return self._receptors + + @receptors.setter + def receptors(self, receptors): + """Sets the receptors of this ShowCpiJobResponse. + + 受体文件列表 + + :param receptors: The receptors of this ShowCpiJobResponse. + :type receptors: list[:class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`] + """ + self._receptors = receptors + + @property + def ligands(self): + """Gets the ligands of this ShowCpiJobResponse. + + 小分子 + + :return: The ligands of this ShowCpiJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`] + """ + return self._ligands + + @ligands.setter + def ligands(self, ligands): + """Sets the ligands of this ShowCpiJobResponse. + + 小分子 + + :param ligands: The ligands of this ShowCpiJobResponse. + :type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`] + """ + self._ligands = ligands + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCpiJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_docking_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_docking_job_response.py index 0b1aec5883..038d52e50f 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_docking_job_response.py @@ -21,6 +21,7 @@ class ShowDockingJobResponse(SdkResponse): 'basic_info': 'DrugJobDto', 'receptors': 'list[DockingReceptorDto]', 'ligands': 'list[LigandDto]', + 'engine': 'str', 'job_result': 'JobResult', 'part_failed_reason': 'list[FailedReasonRecord]', 'cluster_result': 'ClusterJobRsp' @@ -30,12 +31,13 @@ class ShowDockingJobResponse(SdkResponse): 'basic_info': 'basic_info', 'receptors': 'receptors', 'ligands': 'ligands', + 'engine': 'engine', 'job_result': 'job_result', 'part_failed_reason': 'part_failed_reason', 'cluster_result': 'cluster_result' } - def __init__(self, basic_info=None, receptors=None, ligands=None, job_result=None, part_failed_reason=None, cluster_result=None): + def __init__(self, basic_info=None, receptors=None, ligands=None, engine=None, job_result=None, part_failed_reason=None, cluster_result=None): """ShowDockingJobResponse The model defined in huaweicloud sdk @@ -46,6 +48,8 @@ def __init__(self, basic_info=None, receptors=None, ligands=None, job_result=Non :type receptors: list[:class:`huaweicloudsdkeihealth.v1.DockingReceptorDto`] :param ligands: 配体文件列表,当前仅支持1个 :type ligands: list[:class:`huaweicloudsdkeihealth.v1.LigandDto`] + :param engine: 引擎 + :type engine: str :param job_result: :type job_result: :class:`huaweicloudsdkeihealth.v1.JobResult` :param part_failed_reason: 部分失败原因和数量 @@ -59,6 +63,7 @@ def __init__(self, basic_info=None, receptors=None, ligands=None, job_result=Non self._basic_info = None self._receptors = None self._ligands = None + self._engine = None self._job_result = None self._part_failed_reason = None self._cluster_result = None @@ -70,6 +75,8 @@ def __init__(self, basic_info=None, receptors=None, ligands=None, job_result=Non self.receptors = receptors if ligands is not None: self.ligands = ligands + if engine is not None: + self.engine = engine if job_result is not None: self.job_result = job_result if part_failed_reason is not None: @@ -139,6 +146,28 @@ def ligands(self, ligands): """ self._ligands = ligands + @property + def engine(self): + """Gets the engine of this ShowDockingJobResponse. + + 引擎 + + :return: The engine of this ShowDockingJobResponse. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this ShowDockingJobResponse. + + 引擎 + + :param engine: The engine of this ShowDockingJobResponse. + :type engine: str + """ + self._engine = engine + @property def job_result(self): """Gets the job_result of this ShowDockingJobResponse. diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_request.py new file mode 100644 index 0000000000..ac86d0b9a9 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowGenJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'job_id': 'job_id' + } + + def __init__(self, eihealth_project_id=None, job_id=None): + """ShowGenJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param job_id: 作业id + :type job_id: str + """ + + + + self._eihealth_project_id = None + self._job_id = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + self.job_id = job_id + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this ShowGenJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this ShowGenJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this ShowGenJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this ShowGenJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def job_id(self): + """Gets the job_id of this ShowGenJobRequest. + + 作业id + + :return: The job_id of this ShowGenJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowGenJobRequest. + + 作业id + + :param job_id: The job_id of this ShowGenJobRequest. + :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, ShowGenJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_response.py new file mode 100644 index 0000000000..62178d77dd --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_gen_job_response.py @@ -0,0 +1,365 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowGenJobResponse(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 = { + 'basic_info': 'DrugJobDto', + 'smiles_list': 'list[str]', + 'molecule_file': 'DrugFile', + 'num_trials': 'int', + 'initial_dataset_size': 'int', + 'binding_sites': 'list[BindSiteDto]', + 'weak_constraints': 'list[WeakConstraintDto]', + 'strong_constraints': 'list[StrongConstraintDto]', + 'base_model': 'BaseModel', + 'models': 'list[BasicDrugModel]' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'smiles_list': 'smiles_list', + 'molecule_file': 'molecule_file', + 'num_trials': 'num_trials', + 'initial_dataset_size': 'initial_dataset_size', + 'binding_sites': 'binding_sites', + 'weak_constraints': 'weak_constraints', + 'strong_constraints': 'strong_constraints', + 'base_model': 'base_model', + 'models': 'models' + } + + def __init__(self, basic_info=None, smiles_list=None, molecule_file=None, num_trials=None, initial_dataset_size=None, binding_sites=None, weak_constraints=None, strong_constraints=None, base_model=None, models=None): + """ShowGenJobResponse + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + :param smiles_list: 分子表达式列表 + :type smiles_list: list[str] + :param molecule_file: + :type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + :param num_trials: 生成分子数量 + :type num_trials: int + :param initial_dataset_size: 初始化数据集的分子数目。当为-1时,表示分子数目未知 + :type initial_dataset_size: int + :param binding_sites: 靶点列表 + :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`] + :param weak_constraints: 弱约束集合 + :type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`] + :param strong_constraints: 强约束集合 + :type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] + :param base_model: + :type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel` + :param models: 模型列表 + :type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`] + """ + + super(ShowGenJobResponse, self).__init__() + + self._basic_info = None + self._smiles_list = None + self._molecule_file = None + self._num_trials = None + self._initial_dataset_size = None + self._binding_sites = None + self._weak_constraints = None + self._strong_constraints = None + self._base_model = None + self._models = None + self.discriminator = None + + if basic_info is not None: + self.basic_info = basic_info + if smiles_list is not None: + self.smiles_list = smiles_list + if molecule_file is not None: + self.molecule_file = molecule_file + if num_trials is not None: + self.num_trials = num_trials + if initial_dataset_size is not None: + self.initial_dataset_size = initial_dataset_size + if binding_sites is not None: + self.binding_sites = binding_sites + if weak_constraints is not None: + self.weak_constraints = weak_constraints + if strong_constraints is not None: + self.strong_constraints = strong_constraints + if base_model is not None: + self.base_model = base_model + if models is not None: + self.models = models + + @property + def basic_info(self): + """Gets the basic_info of this ShowGenJobResponse. + + :return: The basic_info of this ShowGenJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this ShowGenJobResponse. + + :param basic_info: The basic_info of this ShowGenJobResponse. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + self._basic_info = basic_info + + @property + def smiles_list(self): + """Gets the smiles_list of this ShowGenJobResponse. + + 分子表达式列表 + + :return: The smiles_list of this ShowGenJobResponse. + :rtype: list[str] + """ + return self._smiles_list + + @smiles_list.setter + def smiles_list(self, smiles_list): + """Sets the smiles_list of this ShowGenJobResponse. + + 分子表达式列表 + + :param smiles_list: The smiles_list of this ShowGenJobResponse. + :type smiles_list: list[str] + """ + self._smiles_list = smiles_list + + @property + def molecule_file(self): + """Gets the molecule_file of this ShowGenJobResponse. + + :return: The molecule_file of this ShowGenJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + return self._molecule_file + + @molecule_file.setter + def molecule_file(self, molecule_file): + """Sets the molecule_file of this ShowGenJobResponse. + + :param molecule_file: The molecule_file of this ShowGenJobResponse. + :type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile` + """ + self._molecule_file = molecule_file + + @property + def num_trials(self): + """Gets the num_trials of this ShowGenJobResponse. + + 生成分子数量 + + :return: The num_trials of this ShowGenJobResponse. + :rtype: int + """ + return self._num_trials + + @num_trials.setter + def num_trials(self, num_trials): + """Sets the num_trials of this ShowGenJobResponse. + + 生成分子数量 + + :param num_trials: The num_trials of this ShowGenJobResponse. + :type num_trials: int + """ + self._num_trials = num_trials + + @property + def initial_dataset_size(self): + """Gets the initial_dataset_size of this ShowGenJobResponse. + + 初始化数据集的分子数目。当为-1时,表示分子数目未知 + + :return: The initial_dataset_size of this ShowGenJobResponse. + :rtype: int + """ + return self._initial_dataset_size + + @initial_dataset_size.setter + def initial_dataset_size(self, initial_dataset_size): + """Sets the initial_dataset_size of this ShowGenJobResponse. + + 初始化数据集的分子数目。当为-1时,表示分子数目未知 + + :param initial_dataset_size: The initial_dataset_size of this ShowGenJobResponse. + :type initial_dataset_size: int + """ + self._initial_dataset_size = initial_dataset_size + + @property + def binding_sites(self): + """Gets the binding_sites of this ShowGenJobResponse. + + 靶点列表 + + :return: The binding_sites of this ShowGenJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`] + """ + return self._binding_sites + + @binding_sites.setter + def binding_sites(self, binding_sites): + """Sets the binding_sites of this ShowGenJobResponse. + + 靶点列表 + + :param binding_sites: The binding_sites of this ShowGenJobResponse. + :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`] + """ + self._binding_sites = binding_sites + + @property + def weak_constraints(self): + """Gets the weak_constraints of this ShowGenJobResponse. + + 弱约束集合 + + :return: The weak_constraints of this ShowGenJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`] + """ + return self._weak_constraints + + @weak_constraints.setter + def weak_constraints(self, weak_constraints): + """Sets the weak_constraints of this ShowGenJobResponse. + + 弱约束集合 + + :param weak_constraints: The weak_constraints of this ShowGenJobResponse. + :type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`] + """ + self._weak_constraints = weak_constraints + + @property + def strong_constraints(self): + """Gets the strong_constraints of this ShowGenJobResponse. + + 强约束集合 + + :return: The strong_constraints of this ShowGenJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] + """ + return self._strong_constraints + + @strong_constraints.setter + def strong_constraints(self, strong_constraints): + """Sets the strong_constraints of this ShowGenJobResponse. + + 强约束集合 + + :param strong_constraints: The strong_constraints of this ShowGenJobResponse. + :type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] + """ + self._strong_constraints = strong_constraints + + @property + def base_model(self): + """Gets the base_model of this ShowGenJobResponse. + + :return: The base_model of this ShowGenJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.BaseModel` + """ + return self._base_model + + @base_model.setter + def base_model(self, base_model): + """Sets the base_model of this ShowGenJobResponse. + + :param base_model: The base_model of this ShowGenJobResponse. + :type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel` + """ + self._base_model = base_model + + @property + def models(self): + """Gets the models of this ShowGenJobResponse. + + 模型列表 + + :return: The models of this ShowGenJobResponse. + :rtype: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`] + """ + return self._models + + @models.setter + def models(self, models): + """Sets the models of this ShowGenJobResponse. + + 模型列表 + + :param models: The models of this ShowGenJobResponse. + :type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`] + """ + self._models = models + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowGenJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_optm_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_optm_job_response.py index babe7d9904..ac4ca81e8a 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_optm_job_response.py @@ -27,6 +27,7 @@ class ShowOptmJobResponse(SdkResponse): 'weak_constraints': 'list[WeakConstraintDto]', 'strong_constraints': 'list[StrongConstraintDto]', 'sampler_mixin_weight': 'float', + 'base_model': 'BaseModel', 'models': 'list[BasicDrugModel]', 'cluster_result': 'ClusterJobRsp' } @@ -41,11 +42,12 @@ class ShowOptmJobResponse(SdkResponse): 'weak_constraints': 'weak_constraints', 'strong_constraints': 'strong_constraints', 'sampler_mixin_weight': 'sampler_mixin_weight', + 'base_model': 'base_model', 'models': 'models', 'cluster_result': 'cluster_result' } - def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, models=None, cluster_result=None): + def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, base_model=None, models=None, cluster_result=None): """ShowOptmJobResponse The model defined in huaweicloud sdk @@ -68,6 +70,8 @@ def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials= :type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`] :param sampler_mixin_weight: 初始化采样权重 :type sampler_mixin_weight: float + :param base_model: + :type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel` :param models: 模型列表 :type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`] :param cluster_result: @@ -85,6 +89,7 @@ def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials= self._weak_constraints = None self._strong_constraints = None self._sampler_mixin_weight = None + self._base_model = None self._models = None self._cluster_result = None self.discriminator = None @@ -107,6 +112,8 @@ def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials= self.strong_constraints = strong_constraints if sampler_mixin_weight is not None: self.sampler_mixin_weight = sampler_mixin_weight + if base_model is not None: + self.base_model = base_model if models is not None: self.models = models if cluster_result is not None: @@ -298,6 +305,24 @@ def sampler_mixin_weight(self, sampler_mixin_weight): """ self._sampler_mixin_weight = sampler_mixin_weight + @property + def base_model(self): + """Gets the base_model of this ShowOptmJobResponse. + + :return: The base_model of this ShowOptmJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.BaseModel` + """ + return self._base_model + + @base_model.setter + def base_model(self, base_model): + """Sets the base_model of this ShowOptmJobResponse. + + :param base_model: The base_model of this ShowOptmJobResponse. + :type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel` + """ + self._base_model = base_model + @property def models(self): """Gets the models of this ShowOptmJobResponse. diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py new file mode 100644 index 0000000000..004adc90f4 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTargetOptJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eihealth_project_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'eihealth_project_id': 'eihealth_project_id', + 'job_id': 'job_id' + } + + def __init__(self, eihealth_project_id=None, job_id=None): + """ShowTargetOptJobRequest + + The model defined in huaweicloud sdk + + :param eihealth_project_id: 平台项目ID。 + :type eihealth_project_id: str + :param job_id: 作业id + :type job_id: str + """ + + + + self._eihealth_project_id = None + self._job_id = None + self.discriminator = None + + self.eihealth_project_id = eihealth_project_id + self.job_id = job_id + + @property + def eihealth_project_id(self): + """Gets the eihealth_project_id of this ShowTargetOptJobRequest. + + 平台项目ID。 + + :return: The eihealth_project_id of this ShowTargetOptJobRequest. + :rtype: str + """ + return self._eihealth_project_id + + @eihealth_project_id.setter + def eihealth_project_id(self, eihealth_project_id): + """Sets the eihealth_project_id of this ShowTargetOptJobRequest. + + 平台项目ID。 + + :param eihealth_project_id: The eihealth_project_id of this ShowTargetOptJobRequest. + :type eihealth_project_id: str + """ + self._eihealth_project_id = eihealth_project_id + + @property + def job_id(self): + """Gets the job_id of this ShowTargetOptJobRequest. + + 作业id + + :return: The job_id of this ShowTargetOptJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowTargetOptJobRequest. + + 作业id + + :param job_id: The job_id of this ShowTargetOptJobRequest. + :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, ShowTargetOptJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py new file mode 100644 index 0000000000..a079b42443 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTargetOptJobResponse(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 = { + 'basic_info': 'DrugJobDto', + 'receptor': 'TargetOptReceptor', + 'ligand': 'TargetOptLigand', + 'md_params': 'MdParam' + } + + attribute_map = { + 'basic_info': 'basic_info', + 'receptor': 'receptor', + 'ligand': 'ligand', + 'md_params': 'md_params' + } + + def __init__(self, basic_info=None, receptor=None, ligand=None, md_params=None): + """ShowTargetOptJobResponse + + The model defined in huaweicloud sdk + + :param basic_info: + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + :param receptor: + :type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor` + :param ligand: + :type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand` + :param md_params: + :type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam` + """ + + super(ShowTargetOptJobResponse, self).__init__() + + self._basic_info = None + self._receptor = None + self._ligand = None + self._md_params = None + self.discriminator = None + + if basic_info is not None: + self.basic_info = basic_info + if receptor is not None: + self.receptor = receptor + if ligand is not None: + self.ligand = ligand + if md_params is not None: + self.md_params = md_params + + @property + def basic_info(self): + """Gets the basic_info of this ShowTargetOptJobResponse. + + :return: The basic_info of this ShowTargetOptJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + return self._basic_info + + @basic_info.setter + def basic_info(self, basic_info): + """Sets the basic_info of this ShowTargetOptJobResponse. + + :param basic_info: The basic_info of this ShowTargetOptJobResponse. + :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto` + """ + self._basic_info = basic_info + + @property + def receptor(self): + """Gets the receptor of this ShowTargetOptJobResponse. + + :return: The receptor of this ShowTargetOptJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor` + """ + return self._receptor + + @receptor.setter + def receptor(self, receptor): + """Sets the receptor of this ShowTargetOptJobResponse. + + :param receptor: The receptor of this ShowTargetOptJobResponse. + :type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor` + """ + self._receptor = receptor + + @property + def ligand(self): + """Gets the ligand of this ShowTargetOptJobResponse. + + :return: The ligand of this ShowTargetOptJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand` + """ + return self._ligand + + @ligand.setter + def ligand(self, ligand): + """Sets the ligand of this ShowTargetOptJobResponse. + + :param ligand: The ligand of this ShowTargetOptJobResponse. + :type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand` + """ + self._ligand = ligand + + @property + def md_params(self): + """Gets the md_params of this ShowTargetOptJobResponse. + + :return: The md_params of this ShowTargetOptJobResponse. + :rtype: :class:`huaweicloudsdkeihealth.v1.MdParam` + """ + return self._md_params + + @md_params.setter + def md_params(self, md_params): + """Sets the md_params of this ShowTargetOptJobResponse. + + :param md_params: The md_params of this ShowTargetOptJobResponse. + :type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam` + """ + self._md_params = md_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, ShowTargetOptJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py index e44788fc58..5d68bc19a8 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py @@ -22,7 +22,8 @@ class StrongConstraintDto: 'type': 'StrongConstraintType', 'bool': 'bool', 'range': 'list[float]', - 'struct': 'StructureConstraintParamsDto' + 'struct': 'StructureConstraintParamsDto', + 'interaction': 'InteractionConstraintDto' } attribute_map = { @@ -31,10 +32,11 @@ class StrongConstraintDto: 'type': 'type', 'bool': 'bool', 'range': 'range', - 'struct': 'struct' + 'struct': 'struct', + 'interaction': 'interaction' } - def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct=None): + def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct=None, interaction=None): """StrongConstraintDto The model defined in huaweicloud sdk @@ -51,6 +53,8 @@ def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct= :type range: list[float] :param struct: :type struct: :class:`huaweicloudsdkeihealth.v1.StructureConstraintParamsDto` + :param interaction: + :type interaction: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto` """ @@ -61,6 +65,7 @@ def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct= self._bool = None self._range = None self._struct = None + self._interaction = None self.discriminator = None if id is not None: @@ -74,6 +79,8 @@ def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct= self.range = range if struct is not None: self.struct = struct + if interaction is not None: + self.interaction = interaction @property def id(self): @@ -199,6 +206,24 @@ def struct(self, struct): """ self._struct = struct + @property + def interaction(self): + """Gets the interaction of this StrongConstraintDto. + + :return: The interaction of this StrongConstraintDto. + :rtype: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto` + """ + return self._interaction + + @interaction.setter + def interaction(self, interaction): + """Sets the interaction of this StrongConstraintDto. + + :param interaction: The interaction of this StrongConstraintDto. + :type interaction: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto` + """ + self._interaction = interaction + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_type.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_type.py index 1f53f0c471..b58873c927 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/strong_constraint_type.py @@ -12,6 +12,7 @@ class StrongConstraintType: BOOL = "bool" RANGE = "range" STRUCT = "struct" + INTERACTION = "interaction" """ Attributes: openapi_types (dict): The key is attribute name diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_ligand.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_ligand.py new file mode 100644 index 0000000000..b179ebb3cf --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_ligand.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TargetOptLigand: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ProbeDrugFile', + 'force_field': 'str' + } + + attribute_map = { + 'file': 'file', + 'force_field': 'force_field' + } + + def __init__(self, file=None, force_field=None): + """TargetOptLigand + + The model defined in huaweicloud sdk + + :param file: + :type file: :class:`huaweicloudsdkeihealth.v1.ProbeDrugFile` + :param force_field: 配体力场, 支持选择gaff, gaff2 + :type force_field: str + """ + + + + self._file = None + self._force_field = None + self.discriminator = None + + self.file = file + if force_field is not None: + self.force_field = force_field + + @property + def file(self): + """Gets the file of this TargetOptLigand. + + :return: The file of this TargetOptLigand. + :rtype: :class:`huaweicloudsdkeihealth.v1.ProbeDrugFile` + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this TargetOptLigand. + + :param file: The file of this TargetOptLigand. + :type file: :class:`huaweicloudsdkeihealth.v1.ProbeDrugFile` + """ + self._file = file + + @property + def force_field(self): + """Gets the force_field of this TargetOptLigand. + + 配体力场, 支持选择gaff, gaff2 + + :return: The force_field of this TargetOptLigand. + :rtype: str + """ + return self._force_field + + @force_field.setter + def force_field(self, force_field): + """Sets the force_field of this TargetOptLigand. + + 配体力场, 支持选择gaff, gaff2 + + :param force_field: The force_field of this TargetOptLigand. + :type force_field: str + """ + self._force_field = force_field + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TargetOptLigand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_receptor.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_receptor.py new file mode 100644 index 0000000000..ea45416979 --- /dev/null +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/target_opt_receptor.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TargetOptReceptor: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ReceptorDrugFile', + 'balanced_charge': 'bool', + 'water_model': 'str', + 'force_field': 'str', + 'ion_type': 'str', + 'ion_concentration': 'float' + } + + attribute_map = { + 'file': 'file', + 'balanced_charge': 'balanced_charge', + 'water_model': 'water_model', + 'force_field': 'force_field', + 'ion_type': 'ion_type', + 'ion_concentration': 'ion_concentration' + } + + def __init__(self, file=None, balanced_charge=None, water_model=None, force_field=None, ion_type=None, ion_concentration=None): + """TargetOptReceptor + + The model defined in huaweicloud sdk + + :param file: + :type file: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` + :param balanced_charge: 是否平衡电荷 + :type balanced_charge: bool + :param water_model: 水模型, 支持选择spc, spce, tip3p, tip4p, tip5p + :type water_model: str + :param force_field: 蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7 + :type force_field: str + :param ion_type: 离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None + :type ion_type: str + :param ion_concentration: 离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置 + :type ion_concentration: float + """ + + + + self._file = None + self._balanced_charge = None + self._water_model = None + self._force_field = None + self._ion_type = None + self._ion_concentration = None + self.discriminator = None + + self.file = file + if balanced_charge is not None: + self.balanced_charge = balanced_charge + if water_model is not None: + self.water_model = water_model + if force_field is not None: + self.force_field = force_field + if ion_type is not None: + self.ion_type = ion_type + if ion_concentration is not None: + self.ion_concentration = ion_concentration + + @property + def file(self): + """Gets the file of this TargetOptReceptor. + + :return: The file of this TargetOptReceptor. + :rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this TargetOptReceptor. + + :param file: The file of this TargetOptReceptor. + :type file: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile` + """ + self._file = file + + @property + def balanced_charge(self): + """Gets the balanced_charge of this TargetOptReceptor. + + 是否平衡电荷 + + :return: The balanced_charge of this TargetOptReceptor. + :rtype: bool + """ + return self._balanced_charge + + @balanced_charge.setter + def balanced_charge(self, balanced_charge): + """Sets the balanced_charge of this TargetOptReceptor. + + 是否平衡电荷 + + :param balanced_charge: The balanced_charge of this TargetOptReceptor. + :type balanced_charge: bool + """ + self._balanced_charge = balanced_charge + + @property + def water_model(self): + """Gets the water_model of this TargetOptReceptor. + + 水模型, 支持选择spc, spce, tip3p, tip4p, tip5p + + :return: The water_model of this TargetOptReceptor. + :rtype: str + """ + return self._water_model + + @water_model.setter + def water_model(self, water_model): + """Sets the water_model of this TargetOptReceptor. + + 水模型, 支持选择spc, spce, tip3p, tip4p, tip5p + + :param water_model: The water_model of this TargetOptReceptor. + :type water_model: str + """ + self._water_model = water_model + + @property + def force_field(self): + """Gets the force_field of this TargetOptReceptor. + + 蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7 + + :return: The force_field of this TargetOptReceptor. + :rtype: str + """ + return self._force_field + + @force_field.setter + def force_field(self, force_field): + """Sets the force_field of this TargetOptReceptor. + + 蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7 + + :param force_field: The force_field of this TargetOptReceptor. + :type force_field: str + """ + self._force_field = force_field + + @property + def ion_type(self): + """Gets the ion_type of this TargetOptReceptor. + + 离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None + + :return: The ion_type of this TargetOptReceptor. + :rtype: str + """ + return self._ion_type + + @ion_type.setter + def ion_type(self, ion_type): + """Sets the ion_type of this TargetOptReceptor. + + 离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None + + :param ion_type: The ion_type of this TargetOptReceptor. + :type ion_type: str + """ + self._ion_type = ion_type + + @property + def ion_concentration(self): + """Gets the ion_concentration of this TargetOptReceptor. + + 离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置 + + :return: The ion_concentration of this TargetOptReceptor. + :rtype: float + """ + return self._ion_concentration + + @ion_concentration.setter + def ion_concentration(self, ion_concentration): + """Sets the ion_concentration of this TargetOptReceptor. + + 离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置 + + :param ion_concentration: The ion_concentration of this TargetOptReceptor. + :type ion_concentration: float + """ + self._ion_concentration = ion_concentration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TargetOptReceptor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py index de2e4df242..209aa4e10d 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py @@ -23,7 +23,8 @@ class WeakConstraintDto: 'bool': 'bool', 'range': 'list[float]', 'struct': 'StructureConstraintParamsDto', - 'quantiles': 'list[float]' + 'quantiles': 'list[float]', + 'interaction': 'InteractionConstraintDto' } attribute_map = { @@ -33,10 +34,11 @@ class WeakConstraintDto: 'bool': 'bool', 'range': 'range', 'struct': 'struct', - 'quantiles': 'quantiles' + 'quantiles': 'quantiles', + 'interaction': 'interaction' } - def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct=None, quantiles=None): + def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct=None, quantiles=None, interaction=None): """WeakConstraintDto The model defined in huaweicloud sdk @@ -55,6 +57,8 @@ def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct= :type struct: :class:`huaweicloudsdkeihealth.v1.StructureConstraintParamsDto` :param quantiles: 属性约束类型minimize和maximize的参数 :type quantiles: list[float] + :param interaction: + :type interaction: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto` """ @@ -66,6 +70,7 @@ def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct= self._range = None self._struct = None self._quantiles = None + self._interaction = None self.discriminator = None if id is not None: @@ -81,6 +86,8 @@ def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct= self.struct = struct if quantiles is not None: self.quantiles = quantiles + if interaction is not None: + self.interaction = interaction @property def id(self): @@ -228,6 +235,24 @@ def quantiles(self, quantiles): """ self._quantiles = quantiles + @property + def interaction(self): + """Gets the interaction of this WeakConstraintDto. + + :return: The interaction of this WeakConstraintDto. + :rtype: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto` + """ + return self._interaction + + @interaction.setter + def interaction(self, interaction): + """Sets the interaction of this WeakConstraintDto. + + :param interaction: The interaction of this WeakConstraintDto. + :type interaction: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto` + """ + self._interaction = interaction + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_type.py b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_type.py index 262022af34..4dbd36932b 100644 --- a/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +++ b/huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/weak_constraint_type.py @@ -14,6 +14,7 @@ class WeakConstraintType: STRUCT = "struct" MINIMIZE = "minimize" MAXIMIZE = "maximize" + INTERACTION = "interaction" """ Attributes: openapi_types (dict): The key is attribute name diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index cbb967e295..0992324de2 100644 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index bd0df66924..536760e014 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 6dd31648c3..d292da0bad 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 375a78bd6e..ce784ed776 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 0bf2b40008..e6b18a9b9c 100644 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index f679c098b0..5b7917d9f8 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index 83d4182e65..4004e3ffda 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index ace6e2346b..cbf67cac7e 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index ad6fa9f8e8..0cd2e62eb9 100644 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index dbb5221df4..38f7a6e806 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index f3eef156e9..98812d7115 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index ac57567710..31f680d7fc 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index bdce984991..5ba0a96d62 100644 --- a/huaweicloud-sdk-geip/setup.py +++ b/huaweicloud-sdk-geip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgeip" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index bdf928a678..3b7b6aa7bb 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 25e0a5b3ab..b405ae2f33 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index ed3e3248e4..3ee17a1129 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/image_local_info.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/image_local_info.py index 511a99d289..7f68fe05c7 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/image_local_info.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/image_local_info.py @@ -32,7 +32,11 @@ class ImageLocalInfo: 'host_num': 'int', 'container_num': 'int', 'component_num': 'int', - 'scan_failed_desc': 'str' + 'scan_failed_desc': 'str', + 'severity_level': 'str', + 'host_name': 'str', + 'host_id': 'str', + 'agent_id': 'str' } attribute_map = { @@ -51,10 +55,14 @@ class ImageLocalInfo: 'host_num': 'host_num', 'container_num': 'container_num', 'component_num': 'component_num', - 'scan_failed_desc': 'scan_failed_desc' + 'scan_failed_desc': 'scan_failed_desc', + 'severity_level': 'severity_level', + 'host_name': 'host_name', + 'host_id': 'host_id', + 'agent_id': 'agent_id' } - def __init__(self, image_name=None, image_id=None, image_digest=None, image_version=None, local_image_type=None, scan_status=None, image_size=None, latest_update_time=None, latest_scan_time=None, vul_num=None, unsafe_setting_num=None, malicious_file_num=None, host_num=None, container_num=None, component_num=None, scan_failed_desc=None): + def __init__(self, image_name=None, image_id=None, image_digest=None, image_version=None, local_image_type=None, scan_status=None, image_size=None, latest_update_time=None, latest_scan_time=None, vul_num=None, unsafe_setting_num=None, malicious_file_num=None, host_num=None, container_num=None, component_num=None, scan_failed_desc=None, severity_level=None, host_name=None, host_id=None, agent_id=None): """ImageLocalInfo The model defined in huaweicloud sdk @@ -91,6 +99,14 @@ def __init__(self, image_name=None, image_id=None, image_digest=None, image_vers :type component_num: int :param scan_failed_desc: 扫描失败原因,包含如下10种。 - \"unknown_error\":未知错误 - \"failed_to_match_agent\":对应主机未开启容器版防护或agent离线 - \"create_container_failed\":创建容器失败 - \"get_container_info_failed\":获取容器信息失败 - \"docker_offline\":docker引擎不在线 - \"get_docker_root_failed\":获取容器根文件系统失败 - \"image_not_exist_or_docker_api_fault\":镜像不存在或docker接口错误 - \"huge_image\":超大镜像 - \"docker_root_in_nfs\":容器根目录位于网络挂载 - \"response_timed_out\":响应超时 :type scan_failed_desc: str + :param severity_level: 镜像风险程度,在镜像扫描完成后展示,包含如下: - Security:安全 - Low:低危 - Medium:中危 - High:高危 + :type severity_level: str + :param host_name: 服务器名称 + :type host_name: str + :param host_id: 主机ID + :type host_id: str + :param agent_id: Agent ID + :type agent_id: str """ @@ -111,6 +127,10 @@ def __init__(self, image_name=None, image_id=None, image_digest=None, image_vers self._container_num = None self._component_num = None self._scan_failed_desc = None + self._severity_level = None + self._host_name = None + self._host_id = None + self._agent_id = None self.discriminator = None if image_name is not None: @@ -145,6 +165,14 @@ def __init__(self, image_name=None, image_id=None, image_digest=None, image_vers self.component_num = component_num if scan_failed_desc is not None: self.scan_failed_desc = scan_failed_desc + if severity_level is not None: + self.severity_level = severity_level + if host_name is not None: + self.host_name = host_name + if host_id is not None: + self.host_id = host_id + if agent_id is not None: + self.agent_id = agent_id @property def image_name(self): @@ -498,6 +526,94 @@ def scan_failed_desc(self, scan_failed_desc): """ self._scan_failed_desc = scan_failed_desc + @property + def severity_level(self): + """Gets the severity_level of this ImageLocalInfo. + + 镜像风险程度,在镜像扫描完成后展示,包含如下: - Security:安全 - Low:低危 - Medium:中危 - High:高危 + + :return: The severity_level of this ImageLocalInfo. + :rtype: str + """ + return self._severity_level + + @severity_level.setter + def severity_level(self, severity_level): + """Sets the severity_level of this ImageLocalInfo. + + 镜像风险程度,在镜像扫描完成后展示,包含如下: - Security:安全 - Low:低危 - Medium:中危 - High:高危 + + :param severity_level: The severity_level of this ImageLocalInfo. + :type severity_level: str + """ + self._severity_level = severity_level + + @property + def host_name(self): + """Gets the host_name of this ImageLocalInfo. + + 服务器名称 + + :return: The host_name of this ImageLocalInfo. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """Sets the host_name of this ImageLocalInfo. + + 服务器名称 + + :param host_name: The host_name of this ImageLocalInfo. + :type host_name: str + """ + self._host_name = host_name + + @property + def host_id(self): + """Gets the host_id of this ImageLocalInfo. + + 主机ID + + :return: The host_id of this ImageLocalInfo. + :rtype: str + """ + return self._host_id + + @host_id.setter + def host_id(self, host_id): + """Sets the host_id of this ImageLocalInfo. + + 主机ID + + :param host_id: The host_id of this ImageLocalInfo. + :type host_id: str + """ + self._host_id = host_id + + @property + def agent_id(self): + """Gets the agent_id of this ImageLocalInfo. + + Agent ID + + :return: The agent_id of this ImageLocalInfo. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this ImageLocalInfo. + + Agent ID + + :param agent_id: The agent_id of this ImageLocalInfo. + :type agent_id: str + """ + self._agent_id = agent_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 7d8fed0d87..8ef14d946b 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py index a4ed7eafb6..cb775a7e8b 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py @@ -246,7 +246,7 @@ def _associate_agency_with_project_permission_http_info(self, request): return http_info def associate_role_to_agency_on_enterprise_project_async(self, request): - """application/json + """基于委托为企业项目授权 该接口可以基于委托为企业项目授权 @@ -3683,73 +3683,6 @@ def _keystone_list_services_http_info(self, request): return http_info - def keystone_list_users_for_group_by_admin_async(self, request): - """管理员查询用户组所包含的IAM用户 - - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for KeystoneListUsersForGroupByAdmin - :type request: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminRequest` - :rtype: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminResponse` - """ - http_info = self._keystone_list_users_for_group_by_admin_http_info(request) - return self._call_api(**http_info) - - def keystone_list_users_for_group_by_admin_async_invoker(self, request): - http_info = self._keystone_list_users_for_group_by_admin_http_info(request) - return AsyncInvoker(self, http_info) - - def _keystone_list_users_for_group_by_admin_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v3/groups/{group_id}/users", - "request_type": request.__class__.__name__, - "response_type": "KeystoneListUsersForGroupByAdminResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] - - query_params = [] - - header_params = {} - - form_params = {} - - body = None - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - def keystone_list_versions_async(self, request): """查询版本信息列表 @@ -6209,7 +6142,7 @@ def _remove_project_permission_from_agency_http_info(self, request): return http_info def revoke_role_from_agency_on_enterprise_project_async(self, request): - """revoke_role_from_agency_on_enterprise_project + """删除企业项目关联委托的权限 该接口可以删除企业项目委托上的授权 @@ -9159,6 +9092,73 @@ def _keystone_list_users_http_info(self, request): return http_info + def keystone_list_users_for_group_by_admin_async(self, request): + """管理员查询用户组所包含的IAM用户 + + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for KeystoneListUsersForGroupByAdmin + :type request: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminRequest` + :rtype: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminResponse` + """ + http_info = self._keystone_list_users_for_group_by_admin_http_info(request) + return self._call_api(**http_info) + + def keystone_list_users_for_group_by_admin_async_invoker(self, request): + http_info = self._keystone_list_users_for_group_by_admin_http_info(request) + return AsyncInvoker(self, http_info) + + def _keystone_list_users_for_group_by_admin_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/groups/{group_id}/users", + "request_type": request.__class__.__name__, + "response_type": "KeystoneListUsersForGroupByAdminResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def keystone_show_user_async(self, request): """查询IAM用户详情 diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py index 580a193f2d..2e0fd4d7ba 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py @@ -246,7 +246,7 @@ def _associate_agency_with_project_permission_http_info(cls, request): return http_info def associate_role_to_agency_on_enterprise_project(self, request): - """application/json + """基于委托为企业项目授权 该接口可以基于委托为企业项目授权 @@ -3683,73 +3683,6 @@ def _keystone_list_services_http_info(cls, request): return http_info - def keystone_list_users_for_group_by_admin(self, request): - """管理员查询用户组所包含的IAM用户 - - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for KeystoneListUsersForGroupByAdmin - :type request: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminRequest` - :rtype: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminResponse` - """ - http_info = self._keystone_list_users_for_group_by_admin_http_info(request) - return self._call_api(**http_info) - - def keystone_list_users_for_group_by_admin_invoker(self, request): - http_info = self._keystone_list_users_for_group_by_admin_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _keystone_list_users_for_group_by_admin_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v3/groups/{group_id}/users", - "request_type": request.__class__.__name__, - "response_type": "KeystoneListUsersForGroupByAdminResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] - - query_params = [] - - header_params = {} - - form_params = {} - - body = None - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - def keystone_list_versions(self, request): """查询版本信息列表 @@ -6209,7 +6142,7 @@ def _remove_project_permission_from_agency_http_info(cls, request): return http_info def revoke_role_from_agency_on_enterprise_project(self, request): - """revoke_role_from_agency_on_enterprise_project + """删除企业项目关联委托的权限 该接口可以删除企业项目委托上的授权 @@ -9159,6 +9092,73 @@ def _keystone_list_users_http_info(cls, request): return http_info + def keystone_list_users_for_group_by_admin(self, request): + """管理员查询用户组所包含的IAM用户 + + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for KeystoneListUsersForGroupByAdmin + :type request: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminRequest` + :rtype: :class:`huaweicloudsdkiam.v3.KeystoneListUsersForGroupByAdminResponse` + """ + http_info = self._keystone_list_users_for_group_by_admin_http_info(request) + return self._call_api(**http_info) + + def keystone_list_users_for_group_by_admin_invoker(self, request): + http_info = self._keystone_list_users_for_group_by_admin_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _keystone_list_users_for_group_by_admin_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/groups/{group_id}/users", + "request_type": request.__class__.__name__, + "response_type": "KeystoneListUsersForGroupByAdminResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def keystone_show_user(self, request): """查询IAM用户详情 diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 4a9acd2235..9cc022c5e0 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_async_client.py b/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_async_client.py index 9e6d7b840a..a0bccada70 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_async_client.py +++ b/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_async_client.py @@ -22,11 +22,11 @@ def __init__(self): @classmethod def new_builder(cls, clazz=None): if not clazz: - client_builder = ClientBuilder(cls, "GlobalCredentials") + client_builder = ClientBuilder(cls) else: if clazz.__name__ != "IAMAccessAnalyzerAsyncClient": raise TypeError("client type error, support client type is IAMAccessAnalyzerAsyncClient") - client_builder = ClientBuilder(clazz, "GlobalCredentials") + client_builder = ClientBuilder(clazz) diff --git a/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_client.py b/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_client.py index 67afdb3e08..7c130ab82e 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_client.py +++ b/huaweicloud-sdk-iamaccessanalyzer/huaweicloudsdkiamaccessanalyzer/v1/iamaccessanalyzer_client.py @@ -22,11 +22,11 @@ def __init__(self): @classmethod def new_builder(cls, clazz=None): if not clazz: - client_builder = ClientBuilder(cls, "GlobalCredentials") + client_builder = ClientBuilder(cls) else: if clazz.__name__ != "IAMAccessAnalyzerClient": raise TypeError("client type error, support client type is IAMAccessAnalyzerClient") - client_builder = ClientBuilder(clazz, "GlobalCredentials") + client_builder = ClientBuilder(clazz) diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index c6761ee994..52b247a1e8 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/setup.py +++ b/huaweicloud-sdk-iamaccessanalyzer/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiamaccessanalyzer" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index b69cbd010f..4c00a12c13 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index 00c3917d7b..c74ed45850 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index bc6b6a9557..24c0c30004 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/batch_create_using_post_request.py b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/batch_create_using_post_request.py index b8b286b075..b526fd135a 100644 --- a/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/batch_create_using_post_request.py +++ b/huaweicloud-sdk-idmeclassicapi/huaweicloudsdkidmeclassicapi/v1/model/batch_create_using_post_request.py @@ -35,7 +35,7 @@ def __init__(self, identifier=None, model_name=None, body=None): :param identifier: **参数解释:** 应用唯一标识。 **约束限制:** 不涉及。 **取值范围:** 由英文字母和数字组成,且长度为32个字符。 **默认取值:** 不涉及。 :type identifier: str - :param model_name: 数据模型的英文名称。 + :param model_name: **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 :type model_name: str :param body: Body of the BatchCreateUsingPostRequest :type body: :class:`huaweicloudsdkidmeclassicapi.v1.RDMParamVOListPersistableModelCreateDTO` @@ -79,7 +79,7 @@ def identifier(self, identifier): def model_name(self): """Gets the model_name of this BatchCreateUsingPostRequest. - 数据模型的英文名称。 + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 :return: The model_name of this BatchCreateUsingPostRequest. :rtype: str @@ -90,7 +90,7 @@ def model_name(self): def model_name(self, model_name): """Sets the model_name of this BatchCreateUsingPostRequest. - 数据模型的英文名称。 + **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 :param model_name: The model_name of this BatchCreateUsingPostRequest. :type model_name: str diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 7f9262e7ed..185ea2a87f 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 854a7ae658..458ea18596 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 309e7560ef..2007c23ec2 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index d3230c6167..fdaa6b1ef4 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index af3931c0c8..a6a091bb2d 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 7068ebab54..a95cf3397e 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index c7e88fe498..11a91c1f90 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] 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 7d2be83926..245184d0bf 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/region/iotda_region.py @@ -26,6 +26,8 @@ class IoTDARegion: "https://iotda.me-east-1.myhuaweicloud.com") LA_SOUTH_2 = Region("la-south-2", "https://iotda.la-south-2.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://iotda.sa-brazil-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, @@ -38,6 +40,7 @@ class IoTDARegion: "af-south-1": AF_SOUTH_1, "me-east-1": ME_EAST_1, "la-south-2": LA_SOUTH_2, + "sa-brazil-1": SA_BRAZIL_1, } @classmethod diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index f0e43dd674..363f9659c4 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotdm/LICENSE b/huaweicloud-sdk-iotdm/LICENSE new file mode 100644 index 0000000000..808e3296c0 --- /dev/null +++ b/huaweicloud-sdk-iotdm/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/README_PYPI.md b/huaweicloud-sdk-iotdm/README_PYPI.md new file mode 100644 index 0000000000..9711543c73 --- /dev/null +++ b/huaweicloud-sdk-iotdm/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/__init__.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/__init__.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/__init__.py new file mode 100644 index 0000000000..9c9349ea67 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/__init__.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +from __future__ import absolute_import + +from huaweicloudsdkiotdm.v5.iotdm_client import IoTDMClient +from huaweicloudsdkiotdm.v5.iotdm_async_client import IoTDMAsyncClient + +from huaweicloudsdkiotdm.v5.model.access_info import AccessInfo +from huaweicloudsdkiotdm.v5.model.additional_params import AdditionalParams +from huaweicloudsdkiotdm.v5.model.additional_params_resp import AdditionalParamsResp +from huaweicloudsdkiotdm.v5.model.bind_instance_tags import BindInstanceTags +from huaweicloudsdkiotdm.v5.model.bind_instance_tags_request import BindInstanceTagsRequest +from huaweicloudsdkiotdm.v5.model.bind_instance_tags_response import BindInstanceTagsResponse +from huaweicloudsdkiotdm.v5.model.change_instance_charge_mode import ChangeInstanceChargeMode +from huaweicloudsdkiotdm.v5.model.change_instance_charge_mode_request import ChangeInstanceChargeModeRequest +from huaweicloudsdkiotdm.v5.model.change_instance_charge_mode_response import ChangeInstanceChargeModeResponse +from huaweicloudsdkiotdm.v5.model.charge_info import ChargeInfo +from huaweicloudsdkiotdm.v5.model.create_instance import CreateInstance +from huaweicloudsdkiotdm.v5.model.create_instance_request import CreateInstanceRequest +from huaweicloudsdkiotdm.v5.model.create_instance_response import CreateInstanceResponse +from huaweicloudsdkiotdm.v5.model.delete_instance_request import DeleteInstanceRequest +from huaweicloudsdkiotdm.v5.model.delete_instance_response import DeleteInstanceResponse +from huaweicloudsdkiotdm.v5.model.flavor import Flavor +from huaweicloudsdkiotdm.v5.model.forwarding_info import ForwardingInfo +from huaweicloudsdkiotdm.v5.model.ip_white_list import IPWhiteList +from huaweicloudsdkiotdm.v5.model.ip_allow_list import IpAllowList +from huaweicloudsdkiotdm.v5.model.list_instances_request import ListInstancesRequest +from huaweicloudsdkiotdm.v5.model.list_instances_response import ListInstancesResponse +from huaweicloudsdkiotdm.v5.model.operate_window import OperateWindow +from huaweicloudsdkiotdm.v5.model.port import Port +from huaweicloudsdkiotdm.v5.model.query_instance_simplify import QueryInstanceSimplify +from huaweicloudsdkiotdm.v5.model.resize_instance import ResizeInstance +from huaweicloudsdkiotdm.v5.model.resize_instance_request import ResizeInstanceRequest +from huaweicloudsdkiotdm.v5.model.resize_instance_response import ResizeInstanceResponse +from huaweicloudsdkiotdm.v5.model.show_instance_request import ShowInstanceRequest +from huaweicloudsdkiotdm.v5.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkiotdm.v5.model.tag import Tag +from huaweicloudsdkiotdm.v5.model.unbind_instance_tags import UnbindInstanceTags +from huaweicloudsdkiotdm.v5.model.unbind_instance_tags_request import UnbindInstanceTagsRequest +from huaweicloudsdkiotdm.v5.model.unbind_instance_tags_response import UnbindInstanceTagsResponse +from huaweicloudsdkiotdm.v5.model.update_access_info import UpdateAccessInfo +from huaweicloudsdkiotdm.v5.model.update_forwarding_info import UpdateForwardingInfo +from huaweicloudsdkiotdm.v5.model.update_instance import UpdateInstance +from huaweicloudsdkiotdm.v5.model.update_instance_request import UpdateInstanceRequest +from huaweicloudsdkiotdm.v5.model.update_instance_response import UpdateInstanceResponse + diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_async_client.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_async_client.py new file mode 100644 index 0000000000..4c0446df5d --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_async_client.py @@ -0,0 +1,690 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import importlib +import warnings + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +try: + from huaweicloudsdkcore.invoker.invoker import AsyncInvoker +except ImportError as e: + warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkiotdm'") + + +class IoTDMAsyncClient(Client): + def __init__(self): + super(IoTDMAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkiotdm.v5.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls) + else: + if clazz.__name__ != "IoTDMAsyncClient": + raise TypeError("client type error, support client type is IoTDMAsyncClient") + client_builder = ClientBuilder(clazz) + + + + return client_builder + + def bind_instance_tags_async(self, request): + """添加实例标签 + + 添加实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BindInstanceTags + :type request: :class:`huaweicloudsdkiotdm.v5.BindInstanceTagsRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.BindInstanceTagsResponse` + """ + http_info = self._bind_instance_tags_http_info(request) + return self._call_api(**http_info) + + def bind_instance_tags_async_invoker(self, request): + http_info = self._bind_instance_tags_http_info(request) + return AsyncInvoker(self, http_info) + + def _bind_instance_tags_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/bind-tags", + "request_type": request.__class__.__name__, + "response_type": "BindInstanceTagsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def change_instance_charge_mode_async(self, request): + """修改实例计费模式 + + 修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 + 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeInstanceChargeMode + :type request: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeModeRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeModeResponse` + """ + http_info = self._change_instance_charge_mode_http_info(request) + return self._call_api(**http_info) + + def change_instance_charge_mode_async_invoker(self, request): + http_info = self._change_instance_charge_mode_http_info(request) + return AsyncInvoker(self, http_info) + + def _change_instance_charge_mode_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/change-charge-mode", + "request_type": request.__class__.__name__, + "response_type": "ChangeInstanceChargeModeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_instance_async(self, request): + """创建设备接入实例 + + 用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + [接口约束: + - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 + - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 + - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateInstance + :type request: :class:`huaweicloudsdkiotdm.v5.CreateInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.CreateInstanceResponse` + """ + http_info = self._create_instance_http_info(request) + return self._call_api(**http_info) + + def create_instance_async_invoker(self, request): + http_info = self._create_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_instance_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances", + "request_type": request.__class__.__name__, + "response_type": "CreateInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_instance_async(self, request): + """删除实例 + + 删除设备接入实例。约束:此接口仅支持删除按需计费的实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteInstance + :type request: :class:`huaweicloudsdkiotdm.v5.DeleteInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.DeleteInstanceResponse` + """ + http_info = self._delete_instance_http_info(request) + return self._call_api(**http_info) + + def delete_instance_async_invoker(self, request): + http_info = self._delete_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_instance_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_instances_async(self, request): + """查询实例列表 + + 用户可以调用此接口查询设备接入实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListInstances + :type request: :class:`huaweicloudsdkiotdm.v5.ListInstancesRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ListInstancesResponse` + """ + http_info = self._list_instances_http_info(request) + return self._call_api(**http_info) + + def list_instances_async_invoker(self, request): + http_info = self._list_instances_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_instances_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/iotda-instances", + "request_type": request.__class__.__name__, + "response_type": "ListInstancesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'instance_type' in local_var_params: + query_params.append(('instance_type', local_var_params['instance_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def resize_instance_async(self, request): + """修改实例规格信息 + + 修改设备接入实例的规格。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResizeInstance + :type request: :class:`huaweicloudsdkiotdm.v5.ResizeInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ResizeInstanceResponse` + """ + http_info = self._resize_instance_http_info(request) + return self._call_api(**http_info) + + def resize_instance_async_invoker(self, request): + http_info = self._resize_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _resize_instance_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/resize", + "request_type": request.__class__.__name__, + "response_type": "ResizeInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_instance_async(self, request): + """查询实例详情 + + 查询设备接入实例详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstance + :type request: :class:`huaweicloudsdkiotdm.v5.ShowInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ShowInstanceResponse` + """ + http_info = self._show_instance_http_info(request) + return self._call_api(**http_info) + + def show_instance_async_invoker(self, request): + http_info = self._show_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def unbind_instance_tags_async(self, request): + """删除实例标签 + + 删除实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UnbindInstanceTags + :type request: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTagsRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTagsResponse` + """ + http_info = self._unbind_instance_tags_http_info(request) + return self._call_api(**http_info) + + def unbind_instance_tags_async_invoker(self, request): + http_info = self._unbind_instance_tags_http_info(request) + return AsyncInvoker(self, http_info) + + def _unbind_instance_tags_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/unbind-tags", + "request_type": request.__class__.__name__, + "response_type": "UnbindInstanceTagsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_instance_async(self, request): + """修改实例信息 + + 修改设备接入实例信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateInstance + :type request: :class:`huaweicloudsdkiotdm.v5.UpdateInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.UpdateInstanceResponse` + """ + http_info = self._update_instance_http_info(request) + return self._call_api(**http_info) + + def update_instance_async_invoker(self, request): + http_info = self._update_instance_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_instance_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def _call_api(self, **kwargs): + try: + kwargs["async_request"] = True + return self.do_http_request(**kwargs) + except TypeError: + import inspect + params = inspect.signature(self.do_http_request).parameters + http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} + return self.do_http_request(**http_info) + + 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-iotdm/huaweicloudsdkiotdm/v5/iotdm_client.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_client.py new file mode 100644 index 0000000000..548808ee73 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/iotdm_client.py @@ -0,0 +1,687 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import importlib +import warnings + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +try: + from huaweicloudsdkcore.invoker.invoker import SyncInvoker +except ImportError as e: + warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkiotdm'") + + +class IoTDMClient(Client): + def __init__(self): + super(IoTDMClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkiotdm.v5.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls) + else: + if clazz.__name__ != "IoTDMClient": + raise TypeError("client type error, support client type is IoTDMClient") + client_builder = ClientBuilder(clazz) + + + + return client_builder + + def bind_instance_tags(self, request): + """添加实例标签 + + 添加实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BindInstanceTags + :type request: :class:`huaweicloudsdkiotdm.v5.BindInstanceTagsRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.BindInstanceTagsResponse` + """ + http_info = self._bind_instance_tags_http_info(request) + return self._call_api(**http_info) + + def bind_instance_tags_invoker(self, request): + http_info = self._bind_instance_tags_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _bind_instance_tags_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/bind-tags", + "request_type": request.__class__.__name__, + "response_type": "BindInstanceTagsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def change_instance_charge_mode(self, request): + """修改实例计费模式 + + 修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 + 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeInstanceChargeMode + :type request: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeModeRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeModeResponse` + """ + http_info = self._change_instance_charge_mode_http_info(request) + return self._call_api(**http_info) + + def change_instance_charge_mode_invoker(self, request): + http_info = self._change_instance_charge_mode_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _change_instance_charge_mode_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/change-charge-mode", + "request_type": request.__class__.__name__, + "response_type": "ChangeInstanceChargeModeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_instance(self, request): + """创建设备接入实例 + + 用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + [接口约束: + - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 + - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 + - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateInstance + :type request: :class:`huaweicloudsdkiotdm.v5.CreateInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.CreateInstanceResponse` + """ + http_info = self._create_instance_http_info(request) + return self._call_api(**http_info) + + def create_instance_invoker(self, request): + http_info = self._create_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_instance_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances", + "request_type": request.__class__.__name__, + "response_type": "CreateInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_instance(self, request): + """删除实例 + + 删除设备接入实例。约束:此接口仅支持删除按需计费的实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteInstance + :type request: :class:`huaweicloudsdkiotdm.v5.DeleteInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.DeleteInstanceResponse` + """ + http_info = self._delete_instance_http_info(request) + return self._call_api(**http_info) + + def delete_instance_invoker(self, request): + http_info = self._delete_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_instance_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_instances(self, request): + """查询实例列表 + + 用户可以调用此接口查询设备接入实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListInstances + :type request: :class:`huaweicloudsdkiotdm.v5.ListInstancesRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ListInstancesResponse` + """ + http_info = self._list_instances_http_info(request) + return self._call_api(**http_info) + + def list_instances_invoker(self, request): + http_info = self._list_instances_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_instances_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/iotda-instances", + "request_type": request.__class__.__name__, + "response_type": "ListInstancesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'instance_type' in local_var_params: + query_params.append(('instance_type', local_var_params['instance_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def resize_instance(self, request): + """修改实例规格信息 + + 修改设备接入实例的规格。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResizeInstance + :type request: :class:`huaweicloudsdkiotdm.v5.ResizeInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ResizeInstanceResponse` + """ + http_info = self._resize_instance_http_info(request) + return self._call_api(**http_info) + + def resize_instance_invoker(self, request): + http_info = self._resize_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _resize_instance_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/resize", + "request_type": request.__class__.__name__, + "response_type": "ResizeInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_instance(self, request): + """查询实例详情 + + 查询设备接入实例详情。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstance + :type request: :class:`huaweicloudsdkiotdm.v5.ShowInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.ShowInstanceResponse` + """ + http_info = self._show_instance_http_info(request) + return self._call_api(**http_info) + + def show_instance_invoker(self, request): + http_info = self._show_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def unbind_instance_tags(self, request): + """删除实例标签 + + 删除实例标签。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UnbindInstanceTags + :type request: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTagsRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTagsResponse` + """ + http_info = self._unbind_instance_tags_http_info(request) + return self._call_api(**http_info) + + def unbind_instance_tags_invoker(self, request): + http_info = self._unbind_instance_tags_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _unbind_instance_tags_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}/unbind-tags", + "request_type": request.__class__.__name__, + "response_type": "UnbindInstanceTagsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_instance(self, request): + """修改实例信息 + + 修改设备接入实例信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateInstance + :type request: :class:`huaweicloudsdkiotdm.v5.UpdateInstanceRequest` + :rtype: :class:`huaweicloudsdkiotdm.v5.UpdateInstanceResponse` + """ + http_info = self._update_instance_http_info(request) + return self._call_api(**http_info) + + def update_instance_invoker(self, request): + http_info = self._update_instance_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_instance_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/iotda-instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateInstanceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def _call_api(self, **kwargs): + try: + return self.do_http_request(**kwargs) + except TypeError: + import inspect + params = inspect.signature(self.do_http_request).parameters + http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} + return self.do_http_request(**http_info) + + 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-iotdm/huaweicloudsdkiotdm/v5/model/__init__.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/__init__.py new file mode 100644 index 0000000000..dfe3df03c7 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/__init__.py @@ -0,0 +1,43 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkiotdm.v5.model.access_info import AccessInfo +from huaweicloudsdkiotdm.v5.model.additional_params import AdditionalParams +from huaweicloudsdkiotdm.v5.model.additional_params_resp import AdditionalParamsResp +from huaweicloudsdkiotdm.v5.model.bind_instance_tags import BindInstanceTags +from huaweicloudsdkiotdm.v5.model.bind_instance_tags_request import BindInstanceTagsRequest +from huaweicloudsdkiotdm.v5.model.bind_instance_tags_response import BindInstanceTagsResponse +from huaweicloudsdkiotdm.v5.model.change_instance_charge_mode import ChangeInstanceChargeMode +from huaweicloudsdkiotdm.v5.model.change_instance_charge_mode_request import ChangeInstanceChargeModeRequest +from huaweicloudsdkiotdm.v5.model.change_instance_charge_mode_response import ChangeInstanceChargeModeResponse +from huaweicloudsdkiotdm.v5.model.charge_info import ChargeInfo +from huaweicloudsdkiotdm.v5.model.create_instance import CreateInstance +from huaweicloudsdkiotdm.v5.model.create_instance_request import CreateInstanceRequest +from huaweicloudsdkiotdm.v5.model.create_instance_response import CreateInstanceResponse +from huaweicloudsdkiotdm.v5.model.delete_instance_request import DeleteInstanceRequest +from huaweicloudsdkiotdm.v5.model.delete_instance_response import DeleteInstanceResponse +from huaweicloudsdkiotdm.v5.model.flavor import Flavor +from huaweicloudsdkiotdm.v5.model.forwarding_info import ForwardingInfo +from huaweicloudsdkiotdm.v5.model.ip_white_list import IPWhiteList +from huaweicloudsdkiotdm.v5.model.ip_allow_list import IpAllowList +from huaweicloudsdkiotdm.v5.model.list_instances_request import ListInstancesRequest +from huaweicloudsdkiotdm.v5.model.list_instances_response import ListInstancesResponse +from huaweicloudsdkiotdm.v5.model.operate_window import OperateWindow +from huaweicloudsdkiotdm.v5.model.port import Port +from huaweicloudsdkiotdm.v5.model.query_instance_simplify import QueryInstanceSimplify +from huaweicloudsdkiotdm.v5.model.resize_instance import ResizeInstance +from huaweicloudsdkiotdm.v5.model.resize_instance_request import ResizeInstanceRequest +from huaweicloudsdkiotdm.v5.model.resize_instance_response import ResizeInstanceResponse +from huaweicloudsdkiotdm.v5.model.show_instance_request import ShowInstanceRequest +from huaweicloudsdkiotdm.v5.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkiotdm.v5.model.tag import Tag +from huaweicloudsdkiotdm.v5.model.unbind_instance_tags import UnbindInstanceTags +from huaweicloudsdkiotdm.v5.model.unbind_instance_tags_request import UnbindInstanceTagsRequest +from huaweicloudsdkiotdm.v5.model.unbind_instance_tags_response import UnbindInstanceTagsResponse +from huaweicloudsdkiotdm.v5.model.update_access_info import UpdateAccessInfo +from huaweicloudsdkiotdm.v5.model.update_forwarding_info import UpdateForwardingInfo +from huaweicloudsdkiotdm.v5.model.update_instance import UpdateInstance +from huaweicloudsdkiotdm.v5.model.update_instance_request import UpdateInstanceRequest +from huaweicloudsdkiotdm.v5.model.update_instance_response import UpdateInstanceResponse diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/access_info.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/access_info.py new file mode 100644 index 0000000000..4bc6318cd7 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/access_info.py @@ -0,0 +1,343 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AccessInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'port': 'int', + 'non_tls_port': 'int', + 'websocket_port': 'int', + 'domain_name': 'str', + 'private_addresses': 'list[str]', + 'public_address': 'list[str]', + 'ipv6_address': 'list[str]', + 'ip_whitelist': 'IPWhiteList' + } + + attribute_map = { + 'type': 'type', + 'port': 'port', + 'non_tls_port': 'non_tls_port', + 'websocket_port': 'websocket_port', + 'domain_name': 'domain_name', + 'private_addresses': 'private_addresses', + 'public_address': 'public_address', + 'ipv6_address': 'ipv6_address', + 'ip_whitelist': 'ip_whitelist' + } + + def __init__(self, type=None, port=None, non_tls_port=None, websocket_port=None, domain_name=None, private_addresses=None, public_address=None, ipv6_address=None, ip_whitelist=None): + """AccessInfo + + The model defined in huaweicloud sdk + + :param type: **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + :type type: str + :param port: **参数说明**:实例的应用/设备的安全接入端口 + :type port: int + :param non_tls_port: **参数说明**:实例的应用/设备的非安全接入端口。返回null时表示该类型的接入地址不支持非安全端口接入。 + :type non_tls_port: int + :param websocket_port: **参数说明**:基于WebSocket的MQTT接入端口。返回null时表示该类型的接入地址不支持WebSocket端口接入。 + :type websocket_port: int + :param domain_name: **参数说明**:实例的接入域名 + :type domain_name: str + :param private_addresses: **参数说明**:实例的私网接入地址列表 + :type private_addresses: list[str] + :param public_address: **参数说明**:实例的公网接入地址 + :type public_address: list[str] + :param ipv6_address: **参数说明**:实例的ipv6接入地址列表 + :type ipv6_address: list[str] + :param ip_whitelist: + :type ip_whitelist: :class:`huaweicloudsdkiotdm.v5.IPWhiteList` + """ + + + + self._type = None + self._port = None + self._non_tls_port = None + self._websocket_port = None + self._domain_name = None + self._private_addresses = None + self._public_address = None + self._ipv6_address = None + self._ip_whitelist = None + self.discriminator = None + + if type is not None: + self.type = type + if port is not None: + self.port = port + if non_tls_port is not None: + self.non_tls_port = non_tls_port + if websocket_port is not None: + self.websocket_port = websocket_port + if domain_name is not None: + self.domain_name = domain_name + if private_addresses is not None: + self.private_addresses = private_addresses + if public_address is not None: + self.public_address = public_address + if ipv6_address is not None: + self.ipv6_address = ipv6_address + if ip_whitelist is not None: + self.ip_whitelist = ip_whitelist + + @property + def type(self): + """Gets the type of this AccessInfo. + + **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + + :return: The type of this AccessInfo. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AccessInfo. + + **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + + :param type: The type of this AccessInfo. + :type type: str + """ + self._type = type + + @property + def port(self): + """Gets the port of this AccessInfo. + + **参数说明**:实例的应用/设备的安全接入端口 + + :return: The port of this AccessInfo. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this AccessInfo. + + **参数说明**:实例的应用/设备的安全接入端口 + + :param port: The port of this AccessInfo. + :type port: int + """ + self._port = port + + @property + def non_tls_port(self): + """Gets the non_tls_port of this AccessInfo. + + **参数说明**:实例的应用/设备的非安全接入端口。返回null时表示该类型的接入地址不支持非安全端口接入。 + + :return: The non_tls_port of this AccessInfo. + :rtype: int + """ + return self._non_tls_port + + @non_tls_port.setter + def non_tls_port(self, non_tls_port): + """Sets the non_tls_port of this AccessInfo. + + **参数说明**:实例的应用/设备的非安全接入端口。返回null时表示该类型的接入地址不支持非安全端口接入。 + + :param non_tls_port: The non_tls_port of this AccessInfo. + :type non_tls_port: int + """ + self._non_tls_port = non_tls_port + + @property + def websocket_port(self): + """Gets the websocket_port of this AccessInfo. + + **参数说明**:基于WebSocket的MQTT接入端口。返回null时表示该类型的接入地址不支持WebSocket端口接入。 + + :return: The websocket_port of this AccessInfo. + :rtype: int + """ + return self._websocket_port + + @websocket_port.setter + def websocket_port(self, websocket_port): + """Sets the websocket_port of this AccessInfo. + + **参数说明**:基于WebSocket的MQTT接入端口。返回null时表示该类型的接入地址不支持WebSocket端口接入。 + + :param websocket_port: The websocket_port of this AccessInfo. + :type websocket_port: int + """ + self._websocket_port = websocket_port + + @property + def domain_name(self): + """Gets the domain_name of this AccessInfo. + + **参数说明**:实例的接入域名 + + :return: The domain_name of this AccessInfo. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this AccessInfo. + + **参数说明**:实例的接入域名 + + :param domain_name: The domain_name of this AccessInfo. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def private_addresses(self): + """Gets the private_addresses of this AccessInfo. + + **参数说明**:实例的私网接入地址列表 + + :return: The private_addresses of this AccessInfo. + :rtype: list[str] + """ + return self._private_addresses + + @private_addresses.setter + def private_addresses(self, private_addresses): + """Sets the private_addresses of this AccessInfo. + + **参数说明**:实例的私网接入地址列表 + + :param private_addresses: The private_addresses of this AccessInfo. + :type private_addresses: list[str] + """ + self._private_addresses = private_addresses + + @property + def public_address(self): + """Gets the public_address of this AccessInfo. + + **参数说明**:实例的公网接入地址 + + :return: The public_address of this AccessInfo. + :rtype: list[str] + """ + return self._public_address + + @public_address.setter + def public_address(self, public_address): + """Sets the public_address of this AccessInfo. + + **参数说明**:实例的公网接入地址 + + :param public_address: The public_address of this AccessInfo. + :type public_address: list[str] + """ + self._public_address = public_address + + @property + def ipv6_address(self): + """Gets the ipv6_address of this AccessInfo. + + **参数说明**:实例的ipv6接入地址列表 + + :return: The ipv6_address of this AccessInfo. + :rtype: list[str] + """ + return self._ipv6_address + + @ipv6_address.setter + def ipv6_address(self, ipv6_address): + """Sets the ipv6_address of this AccessInfo. + + **参数说明**:实例的ipv6接入地址列表 + + :param ipv6_address: The ipv6_address of this AccessInfo. + :type ipv6_address: list[str] + """ + self._ipv6_address = ipv6_address + + @property + def ip_whitelist(self): + """Gets the ip_whitelist of this AccessInfo. + + :return: The ip_whitelist of this AccessInfo. + :rtype: :class:`huaweicloudsdkiotdm.v5.IPWhiteList` + """ + return self._ip_whitelist + + @ip_whitelist.setter + def ip_whitelist(self, ip_whitelist): + """Sets the ip_whitelist of this AccessInfo. + + :param ip_whitelist: The ip_whitelist of this AccessInfo. + :type ip_whitelist: :class:`huaweicloudsdkiotdm.v5.IPWhiteList` + """ + self._ip_whitelist = ip_whitelist + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AccessInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params.py new file mode 100644 index 0000000000..4bf3465a42 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AdditionalParams: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str', + 'smn_topic_urn': 'str', + 'ciphering_algorithm': 'str', + 'port_info': 'Port' + } + + attribute_map = { + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'security_group_id': 'security_group_id', + 'smn_topic_urn': 'smn_topic_urn', + 'ciphering_algorithm': 'ciphering_algorithm', + 'port_info': 'port_info' + } + + def __init__(self, vpc_id=None, subnet_id=None, security_group_id=None, smn_topic_urn=None, ciphering_algorithm=None, port_info=None): + """AdditionalParams + + The model defined in huaweicloud sdk + + :param vpc_id: **参数说明**:企业版实例的VPCID + :type vpc_id: str + :param subnet_id: **参数说明**:企业版实例的子网ID + :type subnet_id: str + :param security_group_id: **参数说明**:企业版实例的安全组ID。请确保所选安全组已放通22端口(Linux SSH登录),3389端口(Windows远程登录)和ICMP协议(Ping) + :type security_group_id: str + :param smn_topic_urn: **参数说明**:SMN的topic urn, 当企业版实例创建成功时,平台将通过该topic发送通知 + :type smn_topic_urn: str + :param ciphering_algorithm: **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + :type ciphering_algorithm: str + :param port_info: + :type port_info: :class:`huaweicloudsdkiotdm.v5.Port` + """ + + + + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self._smn_topic_urn = None + self._ciphering_algorithm = None + self._port_info = None + self.discriminator = None + + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.security_group_id = security_group_id + if smn_topic_urn is not None: + self.smn_topic_urn = smn_topic_urn + if ciphering_algorithm is not None: + self.ciphering_algorithm = ciphering_algorithm + self.port_info = port_info + + @property + def vpc_id(self): + """Gets the vpc_id of this AdditionalParams. + + **参数说明**:企业版实例的VPCID + + :return: The vpc_id of this AdditionalParams. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this AdditionalParams. + + **参数说明**:企业版实例的VPCID + + :param vpc_id: The vpc_id of this AdditionalParams. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this AdditionalParams. + + **参数说明**:企业版实例的子网ID + + :return: The subnet_id of this AdditionalParams. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this AdditionalParams. + + **参数说明**:企业版实例的子网ID + + :param subnet_id: The subnet_id of this AdditionalParams. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this AdditionalParams. + + **参数说明**:企业版实例的安全组ID。请确保所选安全组已放通22端口(Linux SSH登录),3389端口(Windows远程登录)和ICMP协议(Ping) + + :return: The security_group_id of this AdditionalParams. + :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 AdditionalParams. + + **参数说明**:企业版实例的安全组ID。请确保所选安全组已放通22端口(Linux SSH登录),3389端口(Windows远程登录)和ICMP协议(Ping) + + :param security_group_id: The security_group_id of this AdditionalParams. + :type security_group_id: str + """ + self._security_group_id = security_group_id + + @property + def smn_topic_urn(self): + """Gets the smn_topic_urn of this AdditionalParams. + + **参数说明**:SMN的topic urn, 当企业版实例创建成功时,平台将通过该topic发送通知 + + :return: The smn_topic_urn of this AdditionalParams. + :rtype: str + """ + return self._smn_topic_urn + + @smn_topic_urn.setter + def smn_topic_urn(self, smn_topic_urn): + """Sets the smn_topic_urn of this AdditionalParams. + + **参数说明**:SMN的topic urn, 当企业版实例创建成功时,平台将通过该topic发送通知 + + :param smn_topic_urn: The smn_topic_urn of this AdditionalParams. + :type smn_topic_urn: str + """ + self._smn_topic_urn = smn_topic_urn + + @property + def ciphering_algorithm(self): + """Gets the ciphering_algorithm of this AdditionalParams. + + **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + + :return: The ciphering_algorithm of this AdditionalParams. + :rtype: str + """ + return self._ciphering_algorithm + + @ciphering_algorithm.setter + def ciphering_algorithm(self, ciphering_algorithm): + """Sets the ciphering_algorithm of this AdditionalParams. + + **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + + :param ciphering_algorithm: The ciphering_algorithm of this AdditionalParams. + :type ciphering_algorithm: str + """ + self._ciphering_algorithm = ciphering_algorithm + + @property + def port_info(self): + """Gets the port_info of this AdditionalParams. + + :return: The port_info of this AdditionalParams. + :rtype: :class:`huaweicloudsdkiotdm.v5.Port` + """ + return self._port_info + + @port_info.setter + def port_info(self, port_info): + """Sets the port_info of this AdditionalParams. + + :param port_info: The port_info of this AdditionalParams. + :type port_info: :class:`huaweicloudsdkiotdm.v5.Port` + """ + self._port_info = port_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, AdditionalParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params_resp.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params_resp.py new file mode 100644 index 0000000000..b4fdfe75d8 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/additional_params_resp.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AdditionalParamsResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str', + 'ciphering_algorithm': 'str', + 'forwarding_info': 'ForwardingInfo' + } + + attribute_map = { + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'security_group_id': 'security_group_id', + 'ciphering_algorithm': 'ciphering_algorithm', + 'forwarding_info': 'forwarding_info' + } + + def __init__(self, vpc_id=None, subnet_id=None, security_group_id=None, ciphering_algorithm=None, forwarding_info=None): + """AdditionalParamsResp + + The model defined in huaweicloud sdk + + :param vpc_id: **参数说明**:企业版实例的VPCID + :type vpc_id: str + :param subnet_id: **参数说明**:企业版实例的子网ID + :type subnet_id: str + :param security_group_id: **参数说明**:企业版实例的安全组ID + :type security_group_id: str + :param ciphering_algorithm: **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + :type ciphering_algorithm: str + :param forwarding_info: + :type forwarding_info: :class:`huaweicloudsdkiotdm.v5.ForwardingInfo` + """ + + + + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self._ciphering_algorithm = None + self._forwarding_info = None + self.discriminator = None + + if vpc_id is not None: + self.vpc_id = vpc_id + if subnet_id is not None: + self.subnet_id = subnet_id + if security_group_id is not None: + self.security_group_id = security_group_id + if ciphering_algorithm is not None: + self.ciphering_algorithm = ciphering_algorithm + if forwarding_info is not None: + self.forwarding_info = forwarding_info + + @property + def vpc_id(self): + """Gets the vpc_id of this AdditionalParamsResp. + + **参数说明**:企业版实例的VPCID + + :return: The vpc_id of this AdditionalParamsResp. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this AdditionalParamsResp. + + **参数说明**:企业版实例的VPCID + + :param vpc_id: The vpc_id of this AdditionalParamsResp. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this AdditionalParamsResp. + + **参数说明**:企业版实例的子网ID + + :return: The subnet_id of this AdditionalParamsResp. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this AdditionalParamsResp. + + **参数说明**:企业版实例的子网ID + + :param subnet_id: The subnet_id of this AdditionalParamsResp. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this AdditionalParamsResp. + + **参数说明**:企业版实例的安全组ID + + :return: The security_group_id of this AdditionalParamsResp. + :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 AdditionalParamsResp. + + **参数说明**:企业版实例的安全组ID + + :param security_group_id: The security_group_id of this AdditionalParamsResp. + :type security_group_id: str + """ + self._security_group_id = security_group_id + + @property + def ciphering_algorithm(self): + """Gets the ciphering_algorithm of this AdditionalParamsResp. + + **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + + :return: The ciphering_algorithm of this AdditionalParamsResp. + :rtype: str + """ + return self._ciphering_algorithm + + @ciphering_algorithm.setter + def ciphering_algorithm(self, ciphering_algorithm): + """Sets the ciphering_algorithm of this AdditionalParamsResp. + + **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + + :param ciphering_algorithm: The ciphering_algorithm of this AdditionalParamsResp. + :type ciphering_algorithm: str + """ + self._ciphering_algorithm = ciphering_algorithm + + @property + def forwarding_info(self): + """Gets the forwarding_info of this AdditionalParamsResp. + + :return: The forwarding_info of this AdditionalParamsResp. + :rtype: :class:`huaweicloudsdkiotdm.v5.ForwardingInfo` + """ + return self._forwarding_info + + @forwarding_info.setter + def forwarding_info(self, forwarding_info): + """Sets the forwarding_info of this AdditionalParamsResp. + + :param forwarding_info: The forwarding_info of this AdditionalParamsResp. + :type forwarding_info: :class:`huaweicloudsdkiotdm.v5.ForwardingInfo` + """ + self._forwarding_info = forwarding_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, AdditionalParamsResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags.py new file mode 100644 index 0000000000..737dccaae0 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindInstanceTags: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tags': 'list[Tag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """BindInstanceTags + + The model defined in huaweicloud sdk + + :param tags: 实例标签 + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + + + + self._tags = None + self.discriminator = None + + self.tags = tags + + @property + def tags(self): + """Gets the tags of this BindInstanceTags. + + 实例标签 + + :return: The tags of this BindInstanceTags. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this BindInstanceTags. + + 实例标签 + + :param tags: The tags of this BindInstanceTags. + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BindInstanceTags): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_request.py new file mode 100644 index 0000000000..e5192bf097 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindInstanceTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BindInstanceTags' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """BindInstanceTagsRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param body: Body of the BindInstanceTagsRequest + :type body: :class:`huaweicloudsdkiotdm.v5.BindInstanceTags` + """ + + + + 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 BindInstanceTagsRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this BindInstanceTagsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BindInstanceTagsRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this BindInstanceTagsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this BindInstanceTagsRequest. + + :return: The body of this BindInstanceTagsRequest. + :rtype: :class:`huaweicloudsdkiotdm.v5.BindInstanceTags` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BindInstanceTagsRequest. + + :param body: The body of this BindInstanceTagsRequest. + :type body: :class:`huaweicloudsdkiotdm.v5.BindInstanceTags` + """ + 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, BindInstanceTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_response.py new file mode 100644 index 0000000000..069d7649cf --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/bind_instance_tags_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindInstanceTagsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BindInstanceTagsResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(BindInstanceTagsResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BindInstanceTagsResponse. + + :return: The body of this BindInstanceTagsResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BindInstanceTagsResponse. + + :param body: The body of this BindInstanceTagsResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BindInstanceTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode.py new file mode 100644 index 0000000000..113f25f0e6 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeInstanceChargeMode: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'period_type': 'str', + 'period_num': 'int', + 'is_auto_renew': 'bool', + 'is_auto_pay': 'bool' + } + + attribute_map = { + 'period_type': 'period_type', + 'period_num': 'period_num', + 'is_auto_renew': 'is_auto_renew', + 'is_auto_pay': 'is_auto_pay' + } + + def __init__(self, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None): + """ChangeInstanceChargeMode + + The model defined in huaweicloud sdk + + :param period_type: **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + :type period_type: str + :param period_num: **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + :type period_num: int + :param is_auto_renew: **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + :type is_auto_renew: bool + :param is_auto_pay: **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + :type is_auto_pay: bool + """ + + + + self._period_type = None + self._period_num = None + self._is_auto_renew = None + self._is_auto_pay = None + self.discriminator = None + + self.period_type = period_type + self.period_num = period_num + if is_auto_renew is not None: + self.is_auto_renew = is_auto_renew + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def period_type(self): + """Gets the period_type of this ChangeInstanceChargeMode. + + **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + + :return: The period_type of this ChangeInstanceChargeMode. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this ChangeInstanceChargeMode. + + **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + + :param period_type: The period_type of this ChangeInstanceChargeMode. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this ChangeInstanceChargeMode. + + **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + + :return: The period_num of this ChangeInstanceChargeMode. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this ChangeInstanceChargeMode. + + **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + + :param period_num: The period_num of this ChangeInstanceChargeMode. + :type period_num: int + """ + self._period_num = period_num + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this ChangeInstanceChargeMode. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + + :return: The is_auto_renew of this ChangeInstanceChargeMode. + :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 ChangeInstanceChargeMode. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + + :param is_auto_renew: The is_auto_renew of this ChangeInstanceChargeMode. + :type is_auto_renew: bool + """ + self._is_auto_renew = is_auto_renew + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this ChangeInstanceChargeMode. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + + :return: The is_auto_pay of this ChangeInstanceChargeMode. + :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 ChangeInstanceChargeMode. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + + :param is_auto_pay: The is_auto_pay of this ChangeInstanceChargeMode. + :type is_auto_pay: bool + """ + self._is_auto_pay = is_auto_pay + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeInstanceChargeMode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_request.py new file mode 100644 index 0000000000..54bb751f84 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeInstanceChargeModeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ChangeInstanceChargeMode' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """ChangeInstanceChargeModeRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param body: Body of the ChangeInstanceChargeModeRequest + :type body: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeMode` + """ + + + + 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 ChangeInstanceChargeModeRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this ChangeInstanceChargeModeRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ChangeInstanceChargeModeRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this ChangeInstanceChargeModeRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ChangeInstanceChargeModeRequest. + + :return: The body of this ChangeInstanceChargeModeRequest. + :rtype: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeMode` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeInstanceChargeModeRequest. + + :param body: The body of this ChangeInstanceChargeModeRequest. + :type body: :class:`huaweicloudsdkiotdm.v5.ChangeInstanceChargeMode` + """ + 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, ChangeInstanceChargeModeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_response.py new file mode 100644 index 0000000000..57265e15c3 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/change_instance_charge_mode_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeInstanceChargeModeResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str' + } + + attribute_map = { + 'order_id': 'order_id' + } + + def __init__(self, order_id=None): + """ChangeInstanceChargeModeResponse + + The model defined in huaweicloud sdk + + :param order_id: **参数说明**:订单号。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + :type order_id: str + """ + + super(ChangeInstanceChargeModeResponse, self).__init__() + + self._order_id = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + + @property + def order_id(self): + """Gets the order_id of this ChangeInstanceChargeModeResponse. + + **参数说明**:订单号。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + + :return: The order_id of this ChangeInstanceChargeModeResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ChangeInstanceChargeModeResponse. + + **参数说明**:订单号。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + + :param order_id: The order_id of this ChangeInstanceChargeModeResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeInstanceChargeModeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/charge_info.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/charge_info.py new file mode 100644 index 0000000000..f6a6f2db1e --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/charge_info.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChargeInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'charge_mode': 'str', + 'period_type': 'str', + 'period_num': 'int', + 'is_auto_renew': 'bool', + 'is_auto_pay': 'bool' + } + + attribute_map = { + 'charge_mode': 'charge_mode', + 'period_type': 'period_type', + 'period_num': 'period_num', + 'is_auto_renew': 'is_auto_renew', + 'is_auto_pay': 'is_auto_pay' + } + + def __init__(self, charge_mode=None, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None): + """ChargeInfo + + The model defined in huaweicloud sdk + + :param charge_mode: **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + :type charge_mode: str + :param period_type: **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + :type period_type: str + :param period_num: **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + :type period_num: int + :param is_auto_renew: **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + :type is_auto_renew: bool + :param is_auto_pay: **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + :type is_auto_pay: bool + """ + + + + self._charge_mode = None + self._period_type = None + self._period_num = None + self._is_auto_renew = None + self._is_auto_pay = None + self.discriminator = None + + self.charge_mode = charge_mode + if period_type is not None: + self.period_type = period_type + if period_num is not None: + self.period_num = period_num + if is_auto_renew is not None: + self.is_auto_renew = is_auto_renew + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def charge_mode(self): + """Gets the charge_mode of this ChargeInfo. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :return: The charge_mode of this ChargeInfo. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this ChargeInfo. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :param charge_mode: The charge_mode of this ChargeInfo. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + @property + def period_type(self): + """Gets the period_type of this ChargeInfo. + + **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + + :return: The period_type of this ChargeInfo. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this ChargeInfo. + + **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + + :param period_type: The period_type of this ChargeInfo. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this ChargeInfo. + + **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + + :return: The period_num of this ChargeInfo. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this ChargeInfo. + + **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + + :param period_num: The period_num of this ChargeInfo. + :type period_num: int + """ + self._period_num = period_num + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this ChargeInfo. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + + :return: The is_auto_renew of this ChargeInfo. + :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 ChargeInfo. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + + :param is_auto_renew: The is_auto_renew of this ChargeInfo. + :type is_auto_renew: bool + """ + self._is_auto_renew = is_auto_renew + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this ChargeInfo. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + + :return: The is_auto_pay of this ChargeInfo. + :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 ChargeInfo. + + **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + + :param is_auto_pay: The is_auto_pay of this ChargeInfo. + :type is_auto_pay: bool + """ + self._is_auto_pay = is_auto_pay + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChargeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance.py new file mode 100644 index 0000000000..0f04d4ccf0 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance.py @@ -0,0 +1,302 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateInstance: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_type': 'str', + 'flavor': 'Flavor', + 'name': 'str', + 'charge_info': 'ChargeInfo', + 'description': 'str', + 'enterprise_project_id': 'str', + 'tags': 'list[Tag]', + 'additional_params': 'AdditionalParams' + } + + attribute_map = { + 'instance_type': 'instance_type', + 'flavor': 'flavor', + 'name': 'name', + 'charge_info': 'charge_info', + 'description': 'description', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'additional_params': 'additional_params' + } + + def __init__(self, instance_type=None, flavor=None, name=None, charge_info=None, description=None, enterprise_project_id=None, tags=None, additional_params=None): + """CreateInstance + + The model defined in huaweicloud sdk + + :param instance_type: **参数说明**:创建的实例类型。实例类型说明参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + :type instance_type: str + :param flavor: + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + :param name: **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param charge_info: + :type charge_info: :class:`huaweicloudsdkiotdm.v5.ChargeInfo` + :param description: **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + :type description: str + :param enterprise_project_id: **参数说明**:企业项目Id。此字段填写明确的企业项目Id或者0(表示默认企业项目Id)时支持企业项目特性。可以企业项目管理服务中获取。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type enterprise_project_id: str + :param tags: **参数说明**:设备接入实例的标签信息。 + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + :param additional_params: + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParams` + """ + + + + self._instance_type = None + self._flavor = None + self._name = None + self._charge_info = None + self._description = None + self._enterprise_project_id = None + self._tags = None + self._additional_params = None + self.discriminator = None + + self.instance_type = instance_type + self.flavor = flavor + self.name = name + self.charge_info = charge_info + if description is not None: + self.description = description + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if additional_params is not None: + self.additional_params = additional_params + + @property + def instance_type(self): + """Gets the instance_type of this CreateInstance. + + **参数说明**:创建的实例类型。实例类型说明参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :return: The instance_type of this CreateInstance. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this CreateInstance. + + **参数说明**:创建的实例类型。实例类型说明参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :param instance_type: The instance_type of this CreateInstance. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def flavor(self): + """Gets the flavor of this CreateInstance. + + :return: The flavor of this CreateInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this CreateInstance. + + :param flavor: The flavor of this CreateInstance. + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + self._flavor = flavor + + @property + def name(self): + """Gets the name of this CreateInstance. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this CreateInstance. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateInstance. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this CreateInstance. + :type name: str + """ + self._name = name + + @property + def charge_info(self): + """Gets the charge_info of this CreateInstance. + + :return: The charge_info of this CreateInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.ChargeInfo` + """ + return self._charge_info + + @charge_info.setter + def charge_info(self, charge_info): + """Sets the charge_info of this CreateInstance. + + :param charge_info: The charge_info of this CreateInstance. + :type charge_info: :class:`huaweicloudsdkiotdm.v5.ChargeInfo` + """ + self._charge_info = charge_info + + @property + def description(self): + """Gets the description of this CreateInstance. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :return: The description of this CreateInstance. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateInstance. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :param description: The description of this CreateInstance. + :type description: str + """ + self._description = description + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateInstance. + + **参数说明**:企业项目Id。此字段填写明确的企业项目Id或者0(表示默认企业项目Id)时支持企业项目特性。可以企业项目管理服务中获取。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The enterprise_project_id of this CreateInstance. + :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 CreateInstance. + + **参数说明**:企业项目Id。此字段填写明确的企业项目Id或者0(表示默认企业项目Id)时支持企业项目特性。可以企业项目管理服务中获取。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param enterprise_project_id: The enterprise_project_id of this CreateInstance. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this CreateInstance. + + **参数说明**:设备接入实例的标签信息。 + + :return: The tags of this CreateInstance. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateInstance. + + **参数说明**:设备接入实例的标签信息。 + + :param tags: The tags of this CreateInstance. + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + self._tags = tags + + @property + def additional_params(self): + """Gets the additional_params of this CreateInstance. + + :return: The additional_params of this CreateInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.AdditionalParams` + """ + return self._additional_params + + @additional_params.setter + def additional_params(self, additional_params): + """Sets the additional_params of this CreateInstance. + + :param additional_params: The additional_params of this CreateInstance. + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParams` + """ + self._additional_params = additional_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, CreateInstance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_request.py new file mode 100644 index 0000000000..f17466bc00 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateInstance' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateInstanceRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateInstanceRequest + :type body: :class:`huaweicloudsdkiotdm.v5.CreateInstance` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateInstanceRequest. + + :return: The body of this CreateInstanceRequest. + :rtype: :class:`huaweicloudsdkiotdm.v5.CreateInstance` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateInstanceRequest. + + :param body: The body of this CreateInstanceRequest. + :type body: :class:`huaweicloudsdkiotdm.v5.CreateInstance` + """ + 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, CreateInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_response.py new file mode 100644 index 0000000000..c60cb901b9 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/create_instance_response.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateInstanceResponse(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 = { + 'instance_type': 'str', + 'instance_id': 'str', + 'name': 'str', + 'flavor': 'Flavor', + 'status': 'str', + 'charge_info': 'ChargeInfo', + 'description': 'str', + 'enterprise_project_id': 'str', + 'tags': 'list[Tag]', + 'order_id': 'str', + 'additional_params': 'AdditionalParams' + } + + attribute_map = { + 'instance_type': 'instance_type', + 'instance_id': 'instance_id', + 'name': 'name', + 'flavor': 'flavor', + 'status': 'status', + 'charge_info': 'charge_info', + 'description': 'description', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'order_id': 'order_id', + 'additional_params': 'additional_params' + } + + def __init__(self, instance_type=None, instance_id=None, name=None, flavor=None, status=None, charge_info=None, description=None, enterprise_project_id=None, tags=None, order_id=None, additional_params=None): + """CreateInstanceResponse + + The model defined in huaweicloud sdk + + :param instance_type: **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + :type instance_type: str + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param name: **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param flavor: + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + :param status: **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + :type status: str + :param charge_info: + :type charge_info: :class:`huaweicloudsdkiotdm.v5.ChargeInfo` + :param description: **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[0-256]个字符。 + :type description: str + :param enterprise_project_id: **参数说明**:企业项目Id。 + :type enterprise_project_id: str + :param tags: **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + :param order_id: **参数说明**:订单号,创建包年包月实例时返回该参数。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + :type order_id: str + :param additional_params: + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParams` + """ + + super(CreateInstanceResponse, self).__init__() + + self._instance_type = None + self._instance_id = None + self._name = None + self._flavor = None + self._status = None + self._charge_info = None + self._description = None + self._enterprise_project_id = None + self._tags = None + self._order_id = None + self._additional_params = None + self.discriminator = None + + if instance_type is not None: + self.instance_type = instance_type + if instance_id is not None: + self.instance_id = instance_id + if name is not None: + self.name = name + if flavor is not None: + self.flavor = flavor + if status is not None: + self.status = status + if charge_info is not None: + self.charge_info = charge_info + if description is not None: + self.description = description + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if order_id is not None: + self.order_id = order_id + if additional_params is not None: + self.additional_params = additional_params + + @property + def instance_type(self): + """Gets the instance_type of this CreateInstanceResponse. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :return: The instance_type of this CreateInstanceResponse. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this CreateInstanceResponse. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :param instance_type: The instance_type of this CreateInstanceResponse. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def instance_id(self): + """Gets the instance_id of this CreateInstanceResponse. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this CreateInstanceResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateInstanceResponse. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this CreateInstanceResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def name(self): + """Gets the name of this CreateInstanceResponse. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this CreateInstanceResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateInstanceResponse. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this CreateInstanceResponse. + :type name: str + """ + self._name = name + + @property + def flavor(self): + """Gets the flavor of this CreateInstanceResponse. + + :return: The flavor of this CreateInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this CreateInstanceResponse. + + :param flavor: The flavor of this CreateInstanceResponse. + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + self._flavor = flavor + + @property + def status(self): + """Gets the status of this CreateInstanceResponse. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :return: The status of this CreateInstanceResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateInstanceResponse. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :param status: The status of this CreateInstanceResponse. + :type status: str + """ + self._status = status + + @property + def charge_info(self): + """Gets the charge_info of this CreateInstanceResponse. + + :return: The charge_info of this CreateInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.ChargeInfo` + """ + return self._charge_info + + @charge_info.setter + def charge_info(self, charge_info): + """Sets the charge_info of this CreateInstanceResponse. + + :param charge_info: The charge_info of this CreateInstanceResponse. + :type charge_info: :class:`huaweicloudsdkiotdm.v5.ChargeInfo` + """ + self._charge_info = charge_info + + @property + def description(self): + """Gets the description of this CreateInstanceResponse. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[0-256]个字符。 + + :return: The description of this CreateInstanceResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateInstanceResponse. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[0-256]个字符。 + + :param description: The description of this CreateInstanceResponse. + :type description: str + """ + self._description = description + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateInstanceResponse. + + **参数说明**:企业项目Id。 + + :return: The enterprise_project_id of this CreateInstanceResponse. + :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 CreateInstanceResponse. + + **参数说明**:企业项目Id。 + + :param enterprise_project_id: The enterprise_project_id of this CreateInstanceResponse. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this CreateInstanceResponse. + + **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + + :return: The tags of this CreateInstanceResponse. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateInstanceResponse. + + **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + + :param tags: The tags of this CreateInstanceResponse. + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + self._tags = tags + + @property + def order_id(self): + """Gets the order_id of this CreateInstanceResponse. + + **参数说明**:订单号,创建包年包月实例时返回该参数。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + + :return: The order_id of this CreateInstanceResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this CreateInstanceResponse. + + **参数说明**:订单号,创建包年包月实例时返回该参数。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + + :param order_id: The order_id of this CreateInstanceResponse. + :type order_id: str + """ + self._order_id = order_id + + @property + def additional_params(self): + """Gets the additional_params of this CreateInstanceResponse. + + :return: The additional_params of this CreateInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.AdditionalParams` + """ + return self._additional_params + + @additional_params.setter + def additional_params(self, additional_params): + """Sets the additional_params of this CreateInstanceResponse. + + :param additional_params: The additional_params of this CreateInstanceResponse. + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParams` + """ + self._additional_params = additional_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, CreateInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_request.py new file mode 100644 index 0000000000..c8286db32b --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """DeleteInstanceRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this DeleteInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this DeleteInstanceRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_response.py new file mode 100644 index 0000000000..487de6bf24 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/delete_instance_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInstanceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteInstanceResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteInstanceResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteInstanceResponse. + + :return: The body of this DeleteInstanceResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteInstanceResponse. + + :param body: The body of this DeleteInstanceResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/flavor.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/flavor.py new file mode 100644 index 0000000000..6e3680de98 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/flavor.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Flavor: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'size': 'int' + } + + attribute_map = { + 'type': 'type', + 'size': 'size' + } + + def __init__(self, type=None, size=None): + """Flavor + + The model defined in huaweicloud sdk + + :param type: **参数说明**:待创建设备接入实例的规格名称。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)中的规格编码。 + :type type: str + :param size: **参数说明**:待创建设备接入标准版实例的单元数量。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。当instance_type是standard时,该参数必填。 + :type size: int + """ + + + + self._type = None + self._size = None + self.discriminator = None + + self.type = type + if size is not None: + self.size = size + + @property + def type(self): + """Gets the type of this Flavor. + + **参数说明**:待创建设备接入实例的规格名称。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)中的规格编码。 + + :return: The type of this Flavor. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Flavor. + + **参数说明**:待创建设备接入实例的规格名称。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)中的规格编码。 + + :param type: The type of this Flavor. + :type type: str + """ + self._type = type + + @property + def size(self): + """Gets the size of this Flavor. + + **参数说明**:待创建设备接入标准版实例的单元数量。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。当instance_type是standard时,该参数必填。 + + :return: The size of this Flavor. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this Flavor. + + **参数说明**:待创建设备接入标准版实例的单元数量。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。当instance_type是standard时,该参数必填。 + + :param size: The size of this Flavor. + :type size: int + """ + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Flavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/forwarding_info.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/forwarding_info.py new file mode 100644 index 0000000000..30ef0f94ed --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/forwarding_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ForwardingInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'eip': 'str', + 'enable_snat': 'bool' + } + + attribute_map = { + 'eip': 'eip', + 'enable_snat': 'enable_snat' + } + + def __init__(self, eip=None, enable_snat=None): + """ForwardingInfo + + The model defined in huaweicloud sdk + + :param eip: **参数说明**:NAT网关绑定的EIP + :type eip: str + :param enable_snat: **参数说明**:是否启用SNAT配置 **取值范围**: - true: SNAT配置已启用 - false: SNAT配置未启用 + :type enable_snat: bool + """ + + + + self._eip = None + self._enable_snat = None + self.discriminator = None + + if eip is not None: + self.eip = eip + if enable_snat is not None: + self.enable_snat = enable_snat + + @property + def eip(self): + """Gets the eip of this ForwardingInfo. + + **参数说明**:NAT网关绑定的EIP + + :return: The eip of this ForwardingInfo. + :rtype: str + """ + return self._eip + + @eip.setter + def eip(self, eip): + """Sets the eip of this ForwardingInfo. + + **参数说明**:NAT网关绑定的EIP + + :param eip: The eip of this ForwardingInfo. + :type eip: str + """ + self._eip = eip + + @property + def enable_snat(self): + """Gets the enable_snat of this ForwardingInfo. + + **参数说明**:是否启用SNAT配置 **取值范围**: - true: SNAT配置已启用 - false: SNAT配置未启用 + + :return: The enable_snat of this ForwardingInfo. + :rtype: bool + """ + return self._enable_snat + + @enable_snat.setter + def enable_snat(self, enable_snat): + """Sets the enable_snat of this ForwardingInfo. + + **参数说明**:是否启用SNAT配置 **取值范围**: - true: SNAT配置已启用 - false: SNAT配置未启用 + + :param enable_snat: The enable_snat of this ForwardingInfo. + :type enable_snat: bool + """ + self._enable_snat = enable_snat + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ForwardingInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_allow_list.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_allow_list.py new file mode 100644 index 0000000000..2fd483f67f --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_allow_list.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IpAllowList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'address': 'str', + 'description': 'str' + } + + attribute_map = { + 'address': 'address', + 'description': 'description' + } + + def __init__(self, address=None, description=None): + """IpAllowList + + The model defined in huaweicloud sdk + + :param address: **参数说明**:白名单ip地址 + :type address: str + :param description: **参数说明**:描述 + :type description: str + """ + + + + self._address = None + self._description = None + self.discriminator = None + + self.address = address + if description is not None: + self.description = description + + @property + def address(self): + """Gets the address of this IpAllowList. + + **参数说明**:白名单ip地址 + + :return: The address of this IpAllowList. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this IpAllowList. + + **参数说明**:白名单ip地址 + + :param address: The address of this IpAllowList. + :type address: str + """ + self._address = address + + @property + def description(self): + """Gets the description of this IpAllowList. + + **参数说明**:描述 + + :return: The description of this IpAllowList. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IpAllowList. + + **参数说明**:描述 + + :param description: The description of this IpAllowList. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IpAllowList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_white_list.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_white_list.py new file mode 100644 index 0000000000..bce849f8f5 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/ip_white_list.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IPWhiteList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enable': 'bool', + 'allow_list': 'list[IpAllowList]' + } + + attribute_map = { + 'enable': 'enable', + 'allow_list': 'allow_list' + } + + def __init__(self, enable=None, allow_list=None): + """IPWhiteList + + The model defined in huaweicloud sdk + + :param enable: **参数说明**:启用Ip白名单访问控制 + :type enable: bool + :param allow_list: 允许访问企业版实例的IP地址列表 + :type allow_list: list[:class:`huaweicloudsdkiotdm.v5.IpAllowList`] + """ + + + + self._enable = None + self._allow_list = None + self.discriminator = None + + self.enable = enable + if allow_list is not None: + self.allow_list = allow_list + + @property + def enable(self): + """Gets the enable of this IPWhiteList. + + **参数说明**:启用Ip白名单访问控制 + + :return: The enable of this IPWhiteList. + :rtype: bool + """ + return self._enable + + @enable.setter + def enable(self, enable): + """Sets the enable of this IPWhiteList. + + **参数说明**:启用Ip白名单访问控制 + + :param enable: The enable of this IPWhiteList. + :type enable: bool + """ + self._enable = enable + + @property + def allow_list(self): + """Gets the allow_list of this IPWhiteList. + + 允许访问企业版实例的IP地址列表 + + :return: The allow_list of this IPWhiteList. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.IpAllowList`] + """ + return self._allow_list + + @allow_list.setter + def allow_list(self, allow_list): + """Sets the allow_list of this IPWhiteList. + + 允许访问企业版实例的IP地址列表 + + :param allow_list: The allow_list of this IPWhiteList. + :type allow_list: list[:class:`huaweicloudsdkiotdm.v5.IpAllowList`] + """ + self._allow_list = allow_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IPWhiteList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_request.py new file mode 100644 index 0000000000..17367e04fc --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInstancesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'offset': 'int', + 'limit': 'int', + 'marker': 'str', + 'name': 'str', + 'instance_type': 'str' + } + + attribute_map = { + 'offset': 'offset', + 'limit': 'limit', + 'marker': 'marker', + 'name': 'name', + 'instance_type': 'instance_type' + } + + def __init__(self, offset=None, limit=None, marker=None, name=None, instance_type=None): + """ListInstancesRequest + + The model defined in huaweicloud sdk + + :param offset: **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。 - 限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 取值范围:0-500的整数,默认为0。 + :type offset: int + :param limit: **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-500的整数,默认为500。 + :type limit: int + :param marker: 上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 + :type marker: str + :param name: **参数说明**:设备接入实例名称,匹配规则为模糊匹配。 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param instance_type: **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + :type instance_type: str + """ + + + + self._offset = None + self._limit = None + self._marker = None + self._name = None + self._instance_type = None + self.discriminator = None + + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if name is not None: + self.name = name + if instance_type is not None: + self.instance_type = instance_type + + @property + def offset(self): + """Gets the offset of this ListInstancesRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。 - 限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 取值范围:0-500的整数,默认为0。 + + :return: The offset of this ListInstancesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListInstancesRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。 - 限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 取值范围:0-500的整数,默认为0。 + + :param offset: The offset of this ListInstancesRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListInstancesRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-500的整数,默认为500。 + + :return: The limit of this ListInstancesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListInstancesRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-500的整数,默认为500。 + + :param limit: The limit of this ListInstancesRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListInstancesRequest. + + 上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 + + :return: The marker of this ListInstancesRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListInstancesRequest. + + 上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 + + :param marker: The marker of this ListInstancesRequest. + :type marker: str + """ + self._marker = marker + + @property + def name(self): + """Gets the name of this ListInstancesRequest. + + **参数说明**:设备接入实例名称,匹配规则为模糊匹配。 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this ListInstancesRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListInstancesRequest. + + **参数说明**:设备接入实例名称,匹配规则为模糊匹配。 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this ListInstancesRequest. + :type name: str + """ + self._name = name + + @property + def instance_type(self): + """Gets the instance_type of this ListInstancesRequest. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :return: The instance_type of this ListInstancesRequest. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this ListInstancesRequest. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :param instance_type: The instance_type of this ListInstancesRequest. + :type instance_type: str + """ + self._instance_type = instance_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, ListInstancesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_response.py new file mode 100644 index 0000000000..09eb3314dd --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/list_instances_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInstancesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'marker': 'str', + 'instances': 'list[QueryInstanceSimplify]' + } + + attribute_map = { + 'count': 'count', + 'marker': 'marker', + 'instances': 'instances' + } + + def __init__(self, count=None, marker=None, instances=None): + """ListInstancesResponse + + The model defined in huaweicloud sdk + + :param count: 设备接入实例的总数 + :type count: int + :param marker: 本次分页查询结果中最后一条记录的ID,可在下一次分页查询时使用 + :type marker: str + :param instances: 设备接入实例的详情列表 + :type instances: list[:class:`huaweicloudsdkiotdm.v5.QueryInstanceSimplify`] + """ + + super(ListInstancesResponse, self).__init__() + + self._count = None + self._marker = None + self._instances = None + self.discriminator = None + + if count is not None: + self.count = count + if marker is not None: + self.marker = marker + if instances is not None: + self.instances = instances + + @property + def count(self): + """Gets the count of this ListInstancesResponse. + + 设备接入实例的总数 + + :return: The count of this ListInstancesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListInstancesResponse. + + 设备接入实例的总数 + + :param count: The count of this ListInstancesResponse. + :type count: int + """ + self._count = count + + @property + def marker(self): + """Gets the marker of this ListInstancesResponse. + + 本次分页查询结果中最后一条记录的ID,可在下一次分页查询时使用 + + :return: The marker of this ListInstancesResponse. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListInstancesResponse. + + 本次分页查询结果中最后一条记录的ID,可在下一次分页查询时使用 + + :param marker: The marker of this ListInstancesResponse. + :type marker: str + """ + self._marker = marker + + @property + def instances(self): + """Gets the instances of this ListInstancesResponse. + + 设备接入实例的详情列表 + + :return: The instances of this ListInstancesResponse. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.QueryInstanceSimplify`] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ListInstancesResponse. + + 设备接入实例的详情列表 + + :param instances: The instances of this ListInstancesResponse. + :type instances: list[:class:`huaweicloudsdkiotdm.v5.QueryInstanceSimplify`] + """ + self._instances = instances + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstancesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/operate_window.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/operate_window.py new file mode 100644 index 0000000000..c08401cc50 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/operate_window.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OperateWindow: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, start_time=None, end_time=None): + """OperateWindow + + The model defined in huaweicloud sdk + + :param start_time: **参数说明**:变更时间窗开始时间,UTC时间,格式为:\"HH:mm\" + :type start_time: str + :param end_time: **参数说明**:变更时间窗结束时间,UTC时间,格式为:\"HH:mm\" + :type end_time: str + """ + + + + self._start_time = None + self._end_time = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + + @property + def start_time(self): + """Gets the start_time of this OperateWindow. + + **参数说明**:变更时间窗开始时间,UTC时间,格式为:\"HH:mm\" + + :return: The start_time of this OperateWindow. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this OperateWindow. + + **参数说明**:变更时间窗开始时间,UTC时间,格式为:\"HH:mm\" + + :param start_time: The start_time of this OperateWindow. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this OperateWindow. + + **参数说明**:变更时间窗结束时间,UTC时间,格式为:\"HH:mm\" + + :return: The end_time of this OperateWindow. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this OperateWindow. + + **参数说明**:变更时间窗结束时间,UTC时间,格式为:\"HH:mm\" + + :param end_time: The end_time of this OperateWindow. + :type end_time: str + """ + self._end_time = end_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OperateWindow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/port.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/port.py new file mode 100644 index 0000000000..4261d71607 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/port.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Port: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'app_https_port': 'int', + 'app_amqps_port': 'int', + 'device_coap_port': 'int', + 'device_coaps_port': 'int', + 'device_mqtt_port': 'int', + 'device_mqtts_port': 'int', + 'device_https_port': 'int' + } + + attribute_map = { + 'app_https_port': 'app_https_port', + 'app_amqps_port': 'app_amqps_port', + 'device_coap_port': 'device_coap_port', + 'device_coaps_port': 'device_coaps_port', + 'device_mqtt_port': 'device_mqtt_port', + 'device_mqtts_port': 'device_mqtts_port', + 'device_https_port': 'device_https_port' + } + + def __init__(self, app_https_port=None, app_amqps_port=None, device_coap_port=None, device_coaps_port=None, device_mqtt_port=None, device_mqtts_port=None, device_https_port=None): + """Port + + The model defined in huaweicloud sdk + + :param app_https_port: **参数说明**:应用接入HTTPS协议端口,默认值:443 + :type app_https_port: int + :param app_amqps_port: **参数说明**:应用接入AMQP协议端口, 默认值:5671 + :type app_amqps_port: int + :param device_coap_port: **参数说明**:设备接入COAP协议端口, 默认值:5683 + :type device_coap_port: int + :param device_coaps_port: **参数说明**:设备接入COAPS协议端口, 默认值:5684 + :type device_coaps_port: int + :param device_mqtt_port: **参数说明**:设备接入MQTT协议端口, 默认值:1883 + :type device_mqtt_port: int + :param device_mqtts_port: **参数说明**:设备接入MQTTS协议端口, 默认值:8883 + :type device_mqtts_port: int + :param device_https_port: **参数说明**:设备接入HTTPS协议端口, 默认值:443 + :type device_https_port: int + """ + + + + self._app_https_port = None + self._app_amqps_port = None + self._device_coap_port = None + self._device_coaps_port = None + self._device_mqtt_port = None + self._device_mqtts_port = None + self._device_https_port = None + self.discriminator = None + + if app_https_port is not None: + self.app_https_port = app_https_port + if app_amqps_port is not None: + self.app_amqps_port = app_amqps_port + if device_coap_port is not None: + self.device_coap_port = device_coap_port + if device_coaps_port is not None: + self.device_coaps_port = device_coaps_port + if device_mqtt_port is not None: + self.device_mqtt_port = device_mqtt_port + if device_mqtts_port is not None: + self.device_mqtts_port = device_mqtts_port + if device_https_port is not None: + self.device_https_port = device_https_port + + @property + def app_https_port(self): + """Gets the app_https_port of this Port. + + **参数说明**:应用接入HTTPS协议端口,默认值:443 + + :return: The app_https_port of this Port. + :rtype: int + """ + return self._app_https_port + + @app_https_port.setter + def app_https_port(self, app_https_port): + """Sets the app_https_port of this Port. + + **参数说明**:应用接入HTTPS协议端口,默认值:443 + + :param app_https_port: The app_https_port of this Port. + :type app_https_port: int + """ + self._app_https_port = app_https_port + + @property + def app_amqps_port(self): + """Gets the app_amqps_port of this Port. + + **参数说明**:应用接入AMQP协议端口, 默认值:5671 + + :return: The app_amqps_port of this Port. + :rtype: int + """ + return self._app_amqps_port + + @app_amqps_port.setter + def app_amqps_port(self, app_amqps_port): + """Sets the app_amqps_port of this Port. + + **参数说明**:应用接入AMQP协议端口, 默认值:5671 + + :param app_amqps_port: The app_amqps_port of this Port. + :type app_amqps_port: int + """ + self._app_amqps_port = app_amqps_port + + @property + def device_coap_port(self): + """Gets the device_coap_port of this Port. + + **参数说明**:设备接入COAP协议端口, 默认值:5683 + + :return: The device_coap_port of this Port. + :rtype: int + """ + return self._device_coap_port + + @device_coap_port.setter + def device_coap_port(self, device_coap_port): + """Sets the device_coap_port of this Port. + + **参数说明**:设备接入COAP协议端口, 默认值:5683 + + :param device_coap_port: The device_coap_port of this Port. + :type device_coap_port: int + """ + self._device_coap_port = device_coap_port + + @property + def device_coaps_port(self): + """Gets the device_coaps_port of this Port. + + **参数说明**:设备接入COAPS协议端口, 默认值:5684 + + :return: The device_coaps_port of this Port. + :rtype: int + """ + return self._device_coaps_port + + @device_coaps_port.setter + def device_coaps_port(self, device_coaps_port): + """Sets the device_coaps_port of this Port. + + **参数说明**:设备接入COAPS协议端口, 默认值:5684 + + :param device_coaps_port: The device_coaps_port of this Port. + :type device_coaps_port: int + """ + self._device_coaps_port = device_coaps_port + + @property + def device_mqtt_port(self): + """Gets the device_mqtt_port of this Port. + + **参数说明**:设备接入MQTT协议端口, 默认值:1883 + + :return: The device_mqtt_port of this Port. + :rtype: int + """ + return self._device_mqtt_port + + @device_mqtt_port.setter + def device_mqtt_port(self, device_mqtt_port): + """Sets the device_mqtt_port of this Port. + + **参数说明**:设备接入MQTT协议端口, 默认值:1883 + + :param device_mqtt_port: The device_mqtt_port of this Port. + :type device_mqtt_port: int + """ + self._device_mqtt_port = device_mqtt_port + + @property + def device_mqtts_port(self): + """Gets the device_mqtts_port of this Port. + + **参数说明**:设备接入MQTTS协议端口, 默认值:8883 + + :return: The device_mqtts_port of this Port. + :rtype: int + """ + return self._device_mqtts_port + + @device_mqtts_port.setter + def device_mqtts_port(self, device_mqtts_port): + """Sets the device_mqtts_port of this Port. + + **参数说明**:设备接入MQTTS协议端口, 默认值:8883 + + :param device_mqtts_port: The device_mqtts_port of this Port. + :type device_mqtts_port: int + """ + self._device_mqtts_port = device_mqtts_port + + @property + def device_https_port(self): + """Gets the device_https_port of this Port. + + **参数说明**:设备接入HTTPS协议端口, 默认值:443 + + :return: The device_https_port of this Port. + :rtype: int + """ + return self._device_https_port + + @device_https_port.setter + def device_https_port(self, device_https_port): + """Sets the device_https_port of this Port. + + **参数说明**:设备接入HTTPS协议端口, 默认值:443 + + :param device_https_port: The device_https_port of this Port. + :type device_https_port: int + """ + self._device_https_port = device_https_port + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Port): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/query_instance_simplify.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/query_instance_simplify.py new file mode 100644 index 0000000000..516ac7e931 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/query_instance_simplify.py @@ -0,0 +1,343 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryInstanceSimplify: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_type': 'str', + 'instance_id': 'str', + 'name': 'str', + 'charge_mode': 'str', + 'flavor': 'Flavor', + 'status': 'str', + 'create_time': 'str', + 'update_time': 'str', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'instance_type': 'instance_type', + 'instance_id': 'instance_id', + 'name': 'name', + 'charge_mode': 'charge_mode', + 'flavor': 'flavor', + 'status': 'status', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, instance_type=None, instance_id=None, name=None, charge_mode=None, flavor=None, status=None, create_time=None, update_time=None, enterprise_project_id=None): + """QueryInstanceSimplify + + The model defined in huaweicloud sdk + + :param instance_type: **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + :type instance_type: str + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param name: **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param charge_mode: **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + :type charge_mode: str + :param flavor: + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + :param status: **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + :type status: str + :param create_time: **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + :type create_time: str + :param update_time: **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + :type update_time: str + :param enterprise_project_id: **参数说明**:企业项目Id。 + :type enterprise_project_id: str + """ + + + + self._instance_type = None + self._instance_id = None + self._name = None + self._charge_mode = None + self._flavor = None + self._status = None + self._create_time = None + self._update_time = None + self._enterprise_project_id = None + self.discriminator = None + + if instance_type is not None: + self.instance_type = instance_type + if instance_id is not None: + self.instance_id = instance_id + if name is not None: + self.name = name + if charge_mode is not None: + self.charge_mode = charge_mode + if flavor is not None: + self.flavor = flavor + if status is not None: + self.status = status + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def instance_type(self): + """Gets the instance_type of this QueryInstanceSimplify. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :return: The instance_type of this QueryInstanceSimplify. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this QueryInstanceSimplify. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :param instance_type: The instance_type of this QueryInstanceSimplify. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def instance_id(self): + """Gets the instance_id of this QueryInstanceSimplify. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this QueryInstanceSimplify. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this QueryInstanceSimplify. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this QueryInstanceSimplify. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def name(self): + """Gets the name of this QueryInstanceSimplify. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this QueryInstanceSimplify. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this QueryInstanceSimplify. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this QueryInstanceSimplify. + :type name: str + """ + self._name = name + + @property + def charge_mode(self): + """Gets the charge_mode of this QueryInstanceSimplify. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :return: The charge_mode of this QueryInstanceSimplify. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this QueryInstanceSimplify. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :param charge_mode: The charge_mode of this QueryInstanceSimplify. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + @property + def flavor(self): + """Gets the flavor of this QueryInstanceSimplify. + + :return: The flavor of this QueryInstanceSimplify. + :rtype: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this QueryInstanceSimplify. + + :param flavor: The flavor of this QueryInstanceSimplify. + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + self._flavor = flavor + + @property + def status(self): + """Gets the status of this QueryInstanceSimplify. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :return: The status of this QueryInstanceSimplify. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this QueryInstanceSimplify. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :param status: The status of this QueryInstanceSimplify. + :type status: str + """ + self._status = status + + @property + def create_time(self): + """Gets the create_time of this QueryInstanceSimplify. + + **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + + :return: The create_time of this QueryInstanceSimplify. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this QueryInstanceSimplify. + + **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + + :param create_time: The create_time of this QueryInstanceSimplify. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this QueryInstanceSimplify. + + **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + + :return: The update_time of this QueryInstanceSimplify. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this QueryInstanceSimplify. + + **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + + :param update_time: The update_time of this QueryInstanceSimplify. + :type update_time: str + """ + self._update_time = update_time + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this QueryInstanceSimplify. + + **参数说明**:企业项目Id。 + + :return: The enterprise_project_id of this QueryInstanceSimplify. + :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 QueryInstanceSimplify. + + **参数说明**:企业项目Id。 + + :param enterprise_project_id: The enterprise_project_id of this QueryInstanceSimplify. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryInstanceSimplify): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance.py new file mode 100644 index 0000000000..ac1f65c7f2 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResizeInstance: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'Flavor', + 'is_auto_pay': 'bool', + 'delay': 'bool' + } + + attribute_map = { + 'flavor': 'flavor', + 'is_auto_pay': 'is_auto_pay', + 'delay': 'delay' + } + + def __init__(self, flavor=None, is_auto_pay=None, delay=None): + """ResizeInstance + + The model defined in huaweicloud sdk + + :param flavor: + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + :param is_auto_pay: **参数说明**:修改包年/包月实例的规格时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + :type is_auto_pay: bool + :param delay: **参数说明**:是否延时变更设备实例的计费信息。约束:如需延时变更,需要先设置实例的变更时间窗。 **取值范围**: - true:延迟变更,规格变更任务将在指定的变更时间窗内执行。 - false:立即变更,规格变更任务将立即执行。 + :type delay: bool + """ + + + + self._flavor = None + self._is_auto_pay = None + self._delay = None + self.discriminator = None + + self.flavor = flavor + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + if delay is not None: + self.delay = delay + + @property + def flavor(self): + """Gets the flavor of this ResizeInstance. + + :return: The flavor of this ResizeInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this ResizeInstance. + + :param flavor: The flavor of this ResizeInstance. + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + self._flavor = flavor + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this ResizeInstance. + + **参数说明**:修改包年/包月实例的规格时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + + :return: The is_auto_pay of this ResizeInstance. + :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 ResizeInstance. + + **参数说明**:修改包年/包月实例的规格时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + + :param is_auto_pay: The is_auto_pay of this ResizeInstance. + :type is_auto_pay: bool + """ + self._is_auto_pay = is_auto_pay + + @property + def delay(self): + """Gets the delay of this ResizeInstance. + + **参数说明**:是否延时变更设备实例的计费信息。约束:如需延时变更,需要先设置实例的变更时间窗。 **取值范围**: - true:延迟变更,规格变更任务将在指定的变更时间窗内执行。 - false:立即变更,规格变更任务将立即执行。 + + :return: The delay of this ResizeInstance. + :rtype: bool + """ + return self._delay + + @delay.setter + def delay(self, delay): + """Sets the delay of this ResizeInstance. + + **参数说明**:是否延时变更设备实例的计费信息。约束:如需延时变更,需要先设置实例的变更时间窗。 **取值范围**: - true:延迟变更,规格变更任务将在指定的变更时间窗内执行。 - false:立即变更,规格变更任务将立即执行。 + + :param delay: The delay of this ResizeInstance. + :type delay: bool + """ + self._delay = delay + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResizeInstance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_request.py new file mode 100644 index 0000000000..2232dff231 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResizeInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ResizeInstance' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """ResizeInstanceRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param body: Body of the ResizeInstanceRequest + :type body: :class:`huaweicloudsdkiotdm.v5.ResizeInstance` + """ + + + + 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 ResizeInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this ResizeInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ResizeInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this ResizeInstanceRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ResizeInstanceRequest. + + :return: The body of this ResizeInstanceRequest. + :rtype: :class:`huaweicloudsdkiotdm.v5.ResizeInstance` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ResizeInstanceRequest. + + :param body: The body of this ResizeInstanceRequest. + :type body: :class:`huaweicloudsdkiotdm.v5.ResizeInstance` + """ + 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, ResizeInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_response.py new file mode 100644 index 0000000000..a55dcf9c0e --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/resize_instance_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResizeInstanceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str' + } + + attribute_map = { + 'order_id': 'order_id' + } + + def __init__(self, order_id=None): + """ResizeInstanceResponse + + The model defined in huaweicloud sdk + + :param order_id: **参数说明**:订单号,修改包年包月实例时返回该参数,修改按需实例时返回为空。查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)]\" + :type order_id: str + """ + + super(ResizeInstanceResponse, self).__init__() + + self._order_id = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + + @property + def order_id(self): + """Gets the order_id of this ResizeInstanceResponse. + + **参数说明**:订单号,修改包年包月实例时返回该参数,修改按需实例时返回为空。查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)]\" + + :return: The order_id of this ResizeInstanceResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ResizeInstanceResponse. + + **参数说明**:订单号,修改包年包月实例时返回该参数,修改按需实例时返回为空。查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)]\" + + :param order_id: The order_id of this ResizeInstanceResponse. + :type order_id: str + """ + self._order_id = order_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResizeInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_request.py new file mode 100644 index 0000000000..57a7a465e2 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """ShowInstanceRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this ShowInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this ShowInstanceRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_response.py new file mode 100644 index 0000000000..4caca06b9e --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/show_instance_response.py @@ -0,0 +1,510 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceResponse(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 = { + 'instance_type': 'str', + 'instance_id': 'str', + 'charge_mode': 'str', + 'name': 'str', + 'flavor': 'Flavor', + 'status': 'str', + 'description': 'str', + 'access_infos': 'list[AccessInfo]', + 'create_time': 'str', + 'update_time': 'str', + 'enterprise_project_id': 'str', + 'tags': 'list[Tag]', + 'order_id': 'str', + 'operate_window': 'OperateWindow', + 'additional_params': 'AdditionalParamsResp' + } + + attribute_map = { + 'instance_type': 'instance_type', + 'instance_id': 'instance_id', + 'charge_mode': 'charge_mode', + 'name': 'name', + 'flavor': 'flavor', + 'status': 'status', + 'description': 'description', + 'access_infos': 'access_infos', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'order_id': 'order_id', + 'operate_window': 'operate_window', + 'additional_params': 'additional_params' + } + + def __init__(self, instance_type=None, instance_id=None, charge_mode=None, name=None, flavor=None, status=None, description=None, access_infos=None, create_time=None, update_time=None, enterprise_project_id=None, tags=None, order_id=None, operate_window=None, additional_params=None): + """ShowInstanceResponse + + The model defined in huaweicloud sdk + + :param instance_type: **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + :type instance_type: str + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param charge_mode: **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + :type charge_mode: str + :param name: **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param flavor: + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + :param status: **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + :type status: str + :param description: **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + :type description: str + :param access_infos: **参数说明**:设备接入实例的接入信息 + :type access_infos: list[:class:`huaweicloudsdkiotdm.v5.AccessInfo`] + :param create_time: **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + :type create_time: str + :param update_time: **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + :type update_time: str + :param enterprise_project_id: **参数说明**:企业项目Id。 + :type enterprise_project_id: str + :param tags: **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + :param order_id: **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + :type order_id: str + :param operate_window: + :type operate_window: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + :param additional_params: + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParamsResp` + """ + + super(ShowInstanceResponse, self).__init__() + + self._instance_type = None + self._instance_id = None + self._charge_mode = None + self._name = None + self._flavor = None + self._status = None + self._description = None + self._access_infos = None + self._create_time = None + self._update_time = None + self._enterprise_project_id = None + self._tags = None + self._order_id = None + self._operate_window = None + self._additional_params = None + self.discriminator = None + + if instance_type is not None: + self.instance_type = instance_type + if instance_id is not None: + self.instance_id = instance_id + if charge_mode is not None: + self.charge_mode = charge_mode + if name is not None: + self.name = name + if flavor is not None: + self.flavor = flavor + if status is not None: + self.status = status + if description is not None: + self.description = description + if access_infos is not None: + self.access_infos = access_infos + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if order_id is not None: + self.order_id = order_id + if operate_window is not None: + self.operate_window = operate_window + if additional_params is not None: + self.additional_params = additional_params + + @property + def instance_type(self): + """Gets the instance_type of this ShowInstanceResponse. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :return: The instance_type of this ShowInstanceResponse. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this ShowInstanceResponse. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :param instance_type: The instance_type of this ShowInstanceResponse. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceResponse. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this ShowInstanceResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceResponse. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this ShowInstanceResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def charge_mode(self): + """Gets the charge_mode of this ShowInstanceResponse. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :return: The charge_mode of this ShowInstanceResponse. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this ShowInstanceResponse. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :param charge_mode: The charge_mode of this ShowInstanceResponse. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + @property + def name(self): + """Gets the name of this ShowInstanceResponse. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this ShowInstanceResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowInstanceResponse. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this ShowInstanceResponse. + :type name: str + """ + self._name = name + + @property + def flavor(self): + """Gets the flavor of this ShowInstanceResponse. + + :return: The flavor of this ShowInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this ShowInstanceResponse. + + :param flavor: The flavor of this ShowInstanceResponse. + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + self._flavor = flavor + + @property + def status(self): + """Gets the status of this ShowInstanceResponse. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :return: The status of this ShowInstanceResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowInstanceResponse. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :param status: The status of this ShowInstanceResponse. + :type status: str + """ + self._status = status + + @property + def description(self): + """Gets the description of this ShowInstanceResponse. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :return: The description of this ShowInstanceResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowInstanceResponse. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :param description: The description of this ShowInstanceResponse. + :type description: str + """ + self._description = description + + @property + def access_infos(self): + """Gets the access_infos of this ShowInstanceResponse. + + **参数说明**:设备接入实例的接入信息 + + :return: The access_infos of this ShowInstanceResponse. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.AccessInfo`] + """ + return self._access_infos + + @access_infos.setter + def access_infos(self, access_infos): + """Sets the access_infos of this ShowInstanceResponse. + + **参数说明**:设备接入实例的接入信息 + + :param access_infos: The access_infos of this ShowInstanceResponse. + :type access_infos: list[:class:`huaweicloudsdkiotdm.v5.AccessInfo`] + """ + self._access_infos = access_infos + + @property + def create_time(self): + """Gets the create_time of this ShowInstanceResponse. + + **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + + :return: The create_time of this ShowInstanceResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowInstanceResponse. + + **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + + :param create_time: The create_time of this ShowInstanceResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowInstanceResponse. + + **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + + :return: The update_time of this ShowInstanceResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowInstanceResponse. + + **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + + :param update_time: The update_time of this ShowInstanceResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ShowInstanceResponse. + + **参数说明**:企业项目Id。 + + :return: The enterprise_project_id of this ShowInstanceResponse. + :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 ShowInstanceResponse. + + **参数说明**:企业项目Id。 + + :param enterprise_project_id: The enterprise_project_id of this ShowInstanceResponse. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this ShowInstanceResponse. + + **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + + :return: The tags of this ShowInstanceResponse. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowInstanceResponse. + + **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + + :param tags: The tags of this ShowInstanceResponse. + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + self._tags = tags + + @property + def order_id(self): + """Gets the order_id of this ShowInstanceResponse. + + **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + + :return: The order_id of this ShowInstanceResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ShowInstanceResponse. + + **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + + :param order_id: The order_id of this ShowInstanceResponse. + :type order_id: str + """ + self._order_id = order_id + + @property + def operate_window(self): + """Gets the operate_window of this ShowInstanceResponse. + + :return: The operate_window of this ShowInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + """ + return self._operate_window + + @operate_window.setter + def operate_window(self, operate_window): + """Sets the operate_window of this ShowInstanceResponse. + + :param operate_window: The operate_window of this ShowInstanceResponse. + :type operate_window: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + """ + self._operate_window = operate_window + + @property + def additional_params(self): + """Gets the additional_params of this ShowInstanceResponse. + + :return: The additional_params of this ShowInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.AdditionalParamsResp` + """ + return self._additional_params + + @additional_params.setter + def additional_params(self, additional_params): + """Sets the additional_params of this ShowInstanceResponse. + + :param additional_params: The additional_params of this ShowInstanceResponse. + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParamsResp` + """ + self._additional_params = additional_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, ShowInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/tag.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/tag.py new file mode 100644 index 0000000000..7f9844faf4 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/tag.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Tag: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """Tag + + The model defined in huaweicloud sdk + + :param key: **参数说明**:标签键,标签的键可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@,首尾不能有空格字符 + :type key: str + :param value: **参数说明**:标签值,可为空字符串和null,标签的值可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@ + :type value: str + """ + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this Tag. + + **参数说明**:标签键,标签的键可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@,首尾不能有空格字符 + + :return: The key of this Tag. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Tag. + + **参数说明**:标签键,标签的键可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@,首尾不能有空格字符 + + :param key: The key of this Tag. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this Tag. + + **参数说明**:标签值,可为空字符串和null,标签的值可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@ + + :return: The value of this Tag. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Tag. + + **参数说明**:标签值,可为空字符串和null,标签的值可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@ + + :param value: The value of this Tag. + :type value: str + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Tag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags.py new file mode 100644 index 0000000000..5c4e3ca320 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnbindInstanceTags: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tags': 'list[Tag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """UnbindInstanceTags + + The model defined in huaweicloud sdk + + :param tags: 实例标签 + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + + + + self._tags = None + self.discriminator = None + + self.tags = tags + + @property + def tags(self): + """Gets the tags of this UnbindInstanceTags. + + 实例标签 + + :return: The tags of this UnbindInstanceTags. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this UnbindInstanceTags. + + 实例标签 + + :param tags: The tags of this UnbindInstanceTags. + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnbindInstanceTags): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_request.py new file mode 100644 index 0000000000..1150b752e5 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnbindInstanceTagsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UnbindInstanceTags' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UnbindInstanceTagsRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param body: Body of the UnbindInstanceTagsRequest + :type body: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTags` + """ + + + + 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 UnbindInstanceTagsRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this UnbindInstanceTagsRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UnbindInstanceTagsRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this UnbindInstanceTagsRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UnbindInstanceTagsRequest. + + :return: The body of this UnbindInstanceTagsRequest. + :rtype: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTags` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UnbindInstanceTagsRequest. + + :param body: The body of this UnbindInstanceTagsRequest. + :type body: :class:`huaweicloudsdkiotdm.v5.UnbindInstanceTags` + """ + 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, UnbindInstanceTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_response.py new file mode 100644 index 0000000000..8593bae09a --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/unbind_instance_tags_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnbindInstanceTagsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UnbindInstanceTagsResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(UnbindInstanceTagsResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UnbindInstanceTagsResponse. + + :return: The body of this UnbindInstanceTagsResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UnbindInstanceTagsResponse. + + :param body: The body of this UnbindInstanceTagsResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnbindInstanceTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_access_info.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_access_info.py new file mode 100644 index 0000000000..51de890627 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_access_info.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAccessInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'access_type': 'str', + 'domain_name': 'str', + 'public_addresses_enable': 'bool', + 'ip_whitelist': 'IPWhiteList' + } + + attribute_map = { + 'access_type': 'access_type', + 'domain_name': 'domain_name', + 'public_addresses_enable': 'public_addresses_enable', + 'ip_whitelist': 'ip_whitelist' + } + + def __init__(self, access_type=None, domain_name=None, public_addresses_enable=None, ip_whitelist=None): + """UpdateAccessInfo + + The model defined in huaweicloud sdk + + :param access_type: **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + :type access_type: str + :param domain_name: **参数说明**:接入域名,如果需要更新域名,则携带该字段。 + :type domain_name: str + :param public_addresses_enable: **参数说明**:是否配置公网接入地址,true,false **取值范围**: - true:配置公网接入地址,平台将自动分配公网接入地址。约束:分配地址后将不能修改或删除。 + :type public_addresses_enable: bool + :param ip_whitelist: + :type ip_whitelist: :class:`huaweicloudsdkiotdm.v5.IPWhiteList` + """ + + + + self._access_type = None + self._domain_name = None + self._public_addresses_enable = None + self._ip_whitelist = None + self.discriminator = None + + self.access_type = access_type + if domain_name is not None: + self.domain_name = domain_name + if public_addresses_enable is not None: + self.public_addresses_enable = public_addresses_enable + if ip_whitelist is not None: + self.ip_whitelist = ip_whitelist + + @property + def access_type(self): + """Gets the access_type of this UpdateAccessInfo. + + **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + + :return: The access_type of this UpdateAccessInfo. + :rtype: str + """ + return self._access_type + + @access_type.setter + def access_type(self, access_type): + """Sets the access_type of this UpdateAccessInfo. + + **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + + :param access_type: The access_type of this UpdateAccessInfo. + :type access_type: str + """ + self._access_type = access_type + + @property + def domain_name(self): + """Gets the domain_name of this UpdateAccessInfo. + + **参数说明**:接入域名,如果需要更新域名,则携带该字段。 + + :return: The domain_name of this UpdateAccessInfo. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this UpdateAccessInfo. + + **参数说明**:接入域名,如果需要更新域名,则携带该字段。 + + :param domain_name: The domain_name of this UpdateAccessInfo. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def public_addresses_enable(self): + """Gets the public_addresses_enable of this UpdateAccessInfo. + + **参数说明**:是否配置公网接入地址,true,false **取值范围**: - true:配置公网接入地址,平台将自动分配公网接入地址。约束:分配地址后将不能修改或删除。 + + :return: The public_addresses_enable of this UpdateAccessInfo. + :rtype: bool + """ + return self._public_addresses_enable + + @public_addresses_enable.setter + def public_addresses_enable(self, public_addresses_enable): + """Sets the public_addresses_enable of this UpdateAccessInfo. + + **参数说明**:是否配置公网接入地址,true,false **取值范围**: - true:配置公网接入地址,平台将自动分配公网接入地址。约束:分配地址后将不能修改或删除。 + + :param public_addresses_enable: The public_addresses_enable of this UpdateAccessInfo. + :type public_addresses_enable: bool + """ + self._public_addresses_enable = public_addresses_enable + + @property + def ip_whitelist(self): + """Gets the ip_whitelist of this UpdateAccessInfo. + + :return: The ip_whitelist of this UpdateAccessInfo. + :rtype: :class:`huaweicloudsdkiotdm.v5.IPWhiteList` + """ + return self._ip_whitelist + + @ip_whitelist.setter + def ip_whitelist(self, ip_whitelist): + """Sets the ip_whitelist of this UpdateAccessInfo. + + :param ip_whitelist: The ip_whitelist of this UpdateAccessInfo. + :type ip_whitelist: :class:`huaweicloudsdkiotdm.v5.IPWhiteList` + """ + self._ip_whitelist = ip_whitelist + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateAccessInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_forwarding_info.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_forwarding_info.py new file mode 100644 index 0000000000..7ba7f7d4e9 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_forwarding_info.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateForwardingInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enable_snat': 'bool' + } + + attribute_map = { + 'enable_snat': 'enable_snat' + } + + def __init__(self, enable_snat=None): + """UpdateForwardingInfo + + The model defined in huaweicloud sdk + + :param enable_snat: **参数说明**:是否启用SNAT配置。企业版实例开启SNAT配置后,可以在公共网络中进行外部通信。 约束:只有企业版实例支持配置SNAT配置,SNAT配置开启后将不支持关闭 **取值范围**: - true: 启用SNAT配置 + :type enable_snat: bool + """ + + + + self._enable_snat = None + self.discriminator = None + + self.enable_snat = enable_snat + + @property + def enable_snat(self): + """Gets the enable_snat of this UpdateForwardingInfo. + + **参数说明**:是否启用SNAT配置。企业版实例开启SNAT配置后,可以在公共网络中进行外部通信。 约束:只有企业版实例支持配置SNAT配置,SNAT配置开启后将不支持关闭 **取值范围**: - true: 启用SNAT配置 + + :return: The enable_snat of this UpdateForwardingInfo. + :rtype: bool + """ + return self._enable_snat + + @enable_snat.setter + def enable_snat(self, enable_snat): + """Sets the enable_snat of this UpdateForwardingInfo. + + **参数说明**:是否启用SNAT配置。企业版实例开启SNAT配置后,可以在公共网络中进行外部通信。 约束:只有企业版实例支持配置SNAT配置,SNAT配置开启后将不支持关闭 **取值范围**: - true: 启用SNAT配置 + + :param enable_snat: The enable_snat of this UpdateForwardingInfo. + :type enable_snat: bool + """ + self._enable_snat = enable_snat + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateForwardingInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance.py new file mode 100644 index 0000000000..45465f6071 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstance: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'operate_window': 'OperateWindow', + 'forwarding_info': 'UpdateForwardingInfo', + 'access_info': 'UpdateAccessInfo' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'operate_window': 'operate_window', + 'forwarding_info': 'forwarding_info', + 'access_info': 'access_info' + } + + def __init__(self, name=None, description=None, operate_window=None, forwarding_info=None, access_info=None): + """UpdateInstance + + The model defined in huaweicloud sdk + + :param name: **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param description: **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + :type description: str + :param operate_window: + :type operate_window: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + :param forwarding_info: + :type forwarding_info: :class:`huaweicloudsdkiotdm.v5.UpdateForwardingInfo` + :param access_info: + :type access_info: :class:`huaweicloudsdkiotdm.v5.UpdateAccessInfo` + """ + + + + self._name = None + self._description = None + self._operate_window = None + self._forwarding_info = None + self._access_info = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if operate_window is not None: + self.operate_window = operate_window + if forwarding_info is not None: + self.forwarding_info = forwarding_info + if access_info is not None: + self.access_info = access_info + + @property + def name(self): + """Gets the name of this UpdateInstance. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this UpdateInstance. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateInstance. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this UpdateInstance. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this UpdateInstance. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :return: The description of this UpdateInstance. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateInstance. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :param description: The description of this UpdateInstance. + :type description: str + """ + self._description = description + + @property + def operate_window(self): + """Gets the operate_window of this UpdateInstance. + + :return: The operate_window of this UpdateInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + """ + return self._operate_window + + @operate_window.setter + def operate_window(self, operate_window): + """Sets the operate_window of this UpdateInstance. + + :param operate_window: The operate_window of this UpdateInstance. + :type operate_window: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + """ + self._operate_window = operate_window + + @property + def forwarding_info(self): + """Gets the forwarding_info of this UpdateInstance. + + :return: The forwarding_info of this UpdateInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.UpdateForwardingInfo` + """ + return self._forwarding_info + + @forwarding_info.setter + def forwarding_info(self, forwarding_info): + """Sets the forwarding_info of this UpdateInstance. + + :param forwarding_info: The forwarding_info of this UpdateInstance. + :type forwarding_info: :class:`huaweicloudsdkiotdm.v5.UpdateForwardingInfo` + """ + self._forwarding_info = forwarding_info + + @property + def access_info(self): + """Gets the access_info of this UpdateInstance. + + :return: The access_info of this UpdateInstance. + :rtype: :class:`huaweicloudsdkiotdm.v5.UpdateAccessInfo` + """ + return self._access_info + + @access_info.setter + def access_info(self, access_info): + """Sets the access_info of this UpdateInstance. + + :param access_info: The access_info of this UpdateInstance. + :type access_info: :class:`huaweicloudsdkiotdm.v5.UpdateAccessInfo` + """ + self._access_info = access_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, UpdateInstance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_request.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_request.py new file mode 100644 index 0000000000..c5ac5126ad --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UpdateInstance' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdateInstanceRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param body: Body of the UpdateInstanceRequest + :type body: :class:`huaweicloudsdkiotdm.v5.UpdateInstance` + """ + + + + 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 UpdateInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this UpdateInstanceRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateInstanceRequest. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this UpdateInstanceRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdateInstanceRequest. + + :return: The body of this UpdateInstanceRequest. + :rtype: :class:`huaweicloudsdkiotdm.v5.UpdateInstance` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateInstanceRequest. + + :param body: The body of this UpdateInstanceRequest. + :type body: :class:`huaweicloudsdkiotdm.v5.UpdateInstance` + """ + 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, UpdateInstanceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_response.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_response.py new file mode 100644 index 0000000000..06615f9fc3 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/model/update_instance_response.py @@ -0,0 +1,510 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInstanceResponse(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 = { + 'instance_type': 'str', + 'instance_id': 'str', + 'charge_mode': 'str', + 'name': 'str', + 'flavor': 'Flavor', + 'status': 'str', + 'description': 'str', + 'access_infos': 'list[AccessInfo]', + 'create_time': 'str', + 'update_time': 'str', + 'enterprise_project_id': 'str', + 'tags': 'list[Tag]', + 'order_id': 'str', + 'operate_window': 'OperateWindow', + 'additional_params': 'AdditionalParamsResp' + } + + attribute_map = { + 'instance_type': 'instance_type', + 'instance_id': 'instance_id', + 'charge_mode': 'charge_mode', + 'name': 'name', + 'flavor': 'flavor', + 'status': 'status', + 'description': 'description', + 'access_infos': 'access_infos', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'order_id': 'order_id', + 'operate_window': 'operate_window', + 'additional_params': 'additional_params' + } + + def __init__(self, instance_type=None, instance_id=None, charge_mode=None, name=None, flavor=None, status=None, description=None, access_infos=None, create_time=None, update_time=None, enterprise_project_id=None, tags=None, order_id=None, operate_window=None, additional_params=None): + """UpdateInstanceResponse + + The model defined in huaweicloud sdk + + :param instance_type: **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + :type instance_type: str + :param instance_id: **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + :type instance_id: str + :param charge_mode: **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + :type charge_mode: str + :param name: **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + :type name: str + :param flavor: + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + :param status: **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + :type status: str + :param description: **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + :type description: str + :param access_infos: **参数说明**:设备接入实例的接入信息 + :type access_infos: list[:class:`huaweicloudsdkiotdm.v5.AccessInfo`] + :param create_time: **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + :type create_time: str + :param update_time: **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + :type update_time: str + :param enterprise_project_id: **参数说明**:企业项目Id。 + :type enterprise_project_id: str + :param tags: **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + :param order_id: **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + :type order_id: str + :param operate_window: + :type operate_window: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + :param additional_params: + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParamsResp` + """ + + super(UpdateInstanceResponse, self).__init__() + + self._instance_type = None + self._instance_id = None + self._charge_mode = None + self._name = None + self._flavor = None + self._status = None + self._description = None + self._access_infos = None + self._create_time = None + self._update_time = None + self._enterprise_project_id = None + self._tags = None + self._order_id = None + self._operate_window = None + self._additional_params = None + self.discriminator = None + + if instance_type is not None: + self.instance_type = instance_type + if instance_id is not None: + self.instance_id = instance_id + if charge_mode is not None: + self.charge_mode = charge_mode + if name is not None: + self.name = name + if flavor is not None: + self.flavor = flavor + if status is not None: + self.status = status + if description is not None: + self.description = description + if access_infos is not None: + self.access_infos = access_infos + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if order_id is not None: + self.order_id = order_id + if operate_window is not None: + self.operate_window = operate_window + if additional_params is not None: + self.additional_params = additional_params + + @property + def instance_type(self): + """Gets the instance_type of this UpdateInstanceResponse. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :return: The instance_type of this UpdateInstanceResponse. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this UpdateInstanceResponse. + + **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + + :param instance_type: The instance_type of this UpdateInstanceResponse. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def instance_id(self): + """Gets the instance_id of this UpdateInstanceResponse. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :return: The instance_id of this UpdateInstanceResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateInstanceResponse. + + **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + + :param instance_id: The instance_id of this UpdateInstanceResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def charge_mode(self): + """Gets the charge_mode of this UpdateInstanceResponse. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :return: The charge_mode of this UpdateInstanceResponse. + :rtype: str + """ + return self._charge_mode + + @charge_mode.setter + def charge_mode(self, charge_mode): + """Sets the charge_mode of this UpdateInstanceResponse. + + **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + + :param charge_mode: The charge_mode of this UpdateInstanceResponse. + :type charge_mode: str + """ + self._charge_mode = charge_mode + + @property + def name(self): + """Gets the name of this UpdateInstanceResponse. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :return: The name of this UpdateInstanceResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateInstanceResponse. + + **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + + :param name: The name of this UpdateInstanceResponse. + :type name: str + """ + self._name = name + + @property + def flavor(self): + """Gets the flavor of this UpdateInstanceResponse. + + :return: The flavor of this UpdateInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this UpdateInstanceResponse. + + :param flavor: The flavor of this UpdateInstanceResponse. + :type flavor: :class:`huaweicloudsdkiotdm.v5.Flavor` + """ + self._flavor = flavor + + @property + def status(self): + """Gets the status of this UpdateInstanceResponse. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :return: The status of this UpdateInstanceResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateInstanceResponse. + + **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + + :param status: The status of this UpdateInstanceResponse. + :type status: str + """ + self._status = status + + @property + def description(self): + """Gets the description of this UpdateInstanceResponse. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :return: The description of this UpdateInstanceResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateInstanceResponse. + + **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + + :param description: The description of this UpdateInstanceResponse. + :type description: str + """ + self._description = description + + @property + def access_infos(self): + """Gets the access_infos of this UpdateInstanceResponse. + + **参数说明**:设备接入实例的接入信息 + + :return: The access_infos of this UpdateInstanceResponse. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.AccessInfo`] + """ + return self._access_infos + + @access_infos.setter + def access_infos(self, access_infos): + """Sets the access_infos of this UpdateInstanceResponse. + + **参数说明**:设备接入实例的接入信息 + + :param access_infos: The access_infos of this UpdateInstanceResponse. + :type access_infos: list[:class:`huaweicloudsdkiotdm.v5.AccessInfo`] + """ + self._access_infos = access_infos + + @property + def create_time(self): + """Gets the create_time of this UpdateInstanceResponse. + + **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + + :return: The create_time of this UpdateInstanceResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateInstanceResponse. + + **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + + :param create_time: The create_time of this UpdateInstanceResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdateInstanceResponse. + + **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + + :return: The update_time of this UpdateInstanceResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateInstanceResponse. + + **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + + :param update_time: The update_time of this UpdateInstanceResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this UpdateInstanceResponse. + + **参数说明**:企业项目Id。 + + :return: The enterprise_project_id of this UpdateInstanceResponse. + :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 UpdateInstanceResponse. + + **参数说明**:企业项目Id。 + + :param enterprise_project_id: The enterprise_project_id of this UpdateInstanceResponse. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this UpdateInstanceResponse. + + **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + + :return: The tags of this UpdateInstanceResponse. + :rtype: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this UpdateInstanceResponse. + + **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + + :param tags: The tags of this UpdateInstanceResponse. + :type tags: list[:class:`huaweicloudsdkiotdm.v5.Tag`] + """ + self._tags = tags + + @property + def order_id(self): + """Gets the order_id of this UpdateInstanceResponse. + + **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + + :return: The order_id of this UpdateInstanceResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this UpdateInstanceResponse. + + **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + + :param order_id: The order_id of this UpdateInstanceResponse. + :type order_id: str + """ + self._order_id = order_id + + @property + def operate_window(self): + """Gets the operate_window of this UpdateInstanceResponse. + + :return: The operate_window of this UpdateInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + """ + return self._operate_window + + @operate_window.setter + def operate_window(self, operate_window): + """Sets the operate_window of this UpdateInstanceResponse. + + :param operate_window: The operate_window of this UpdateInstanceResponse. + :type operate_window: :class:`huaweicloudsdkiotdm.v5.OperateWindow` + """ + self._operate_window = operate_window + + @property + def additional_params(self): + """Gets the additional_params of this UpdateInstanceResponse. + + :return: The additional_params of this UpdateInstanceResponse. + :rtype: :class:`huaweicloudsdkiotdm.v5.AdditionalParamsResp` + """ + return self._additional_params + + @additional_params.setter + def additional_params(self, additional_params): + """Sets the additional_params of this UpdateInstanceResponse. + + :param additional_params: The additional_params of this UpdateInstanceResponse. + :type additional_params: :class:`huaweicloudsdkiotdm.v5.AdditionalParamsResp` + """ + self._additional_params = additional_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, UpdateInstanceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/__init__.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/iotdm_region.py b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/iotdm_region.py new file mode 100644 index 0000000000..9c146fbf66 --- /dev/null +++ b/huaweicloud-sdk-iotdm/huaweicloudsdkiotdm/v5/region/iotdm_region.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class IoTDMRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IOTDM") + + CN_NORTH_4 = Region("cn-north-4", + "https://iotda-mgmt.cn-north-4.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://iotda-mgmt.cn-south-4.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://iotda-mgmt.cn-south-1.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://iotda-mgmt.cn-east-3.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://iotda-mgmt.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://iotda-mgmt.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://iotda-mgmt.ap-southeast-1.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://iotda-mgmt.af-south-1.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://iotda-mgmt.me-east-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://iotda-mgmt.la-south-2.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + "cn-south-4": CN_SOUTH_4, + "cn-south-1": CN_SOUTH_1, + "cn-east-3": CN_EAST_3, + "ap-southeast-3": AP_SOUTHEAST_3, + "ap-southeast-2": AP_SOUTHEAST_2, + "ap-southeast-1": AP_SOUTHEAST_1, + "af-south-1": AF_SOUTH_1, + "me-east-1": ME_EAST_1, + "la-south-2": LA_SOUTH_2, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id") + + fields = static_fields or cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("region_id '%s' is not in the following supported regions of service 'IoTDM': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-iotdm/requirements.txt b/huaweicloud-sdk-iotdm/requirements.txt new file mode 100644 index 0000000000..44eb39fe8c --- /dev/null +++ b/huaweicloud-sdk-iotdm/requirements.txt @@ -0,0 +1 @@ +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/setup.py b/huaweicloud-sdk-iotdm/setup.py new file mode 100644 index 0000000000..f3aa2aa553 --- /dev/null +++ b/huaweicloud-sdk-iotdm/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkiotdm" +VERSION = "3.1.109" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "IoTDM" +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.109"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "IoTDM"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 76c5ed9081..79df31de0e 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 7b668189a2..56ebe6fe61 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 416f8235fe..355fbf9049 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 7840743e61..513536cf93 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index bbbfaa7cf7..6c310c5d37 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 8ee2c20a98..6fd5649b11 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 38a329d143..0b4d0b5b17 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index b107506f81..eb2b4615f5 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index a06383ee38..f249bc7fdb 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 19300aae33..c221d28577 100644 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index 40acf5fa48..f534f8b1b6 100644 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index cbd3c1215d..e7d717a948 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index df80ed9042..1a8796b86c 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index fc15b8abec..afbc51b769 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 943ac73488..89e0097564 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index 6986c4cbaa..ee7a6cfe3b 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 15e3c88a23..62d8bd5f3c 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index aeccd18765..0c95fc4a01 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index e3077109f1..c8e477f1b2 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index a44ce55ae5..ffd3bc2a04 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index f7df5b2de1..82a2ca3f70 100644 --- a/huaweicloud-sdk-obs/setup.py +++ b/huaweicloud-sdk-obs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkobs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py index b25dea011d..c49e67bc3d 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py @@ -19,6 +19,7 @@ class SmartDocumentRecognizerRequestBody: openapi_types = { 'data': 'str', 'url': 'str', + 'single_orientation_mode': 'bool', 'kv': 'bool', 'table': 'bool', 'layout': 'bool', @@ -32,6 +33,7 @@ class SmartDocumentRecognizerRequestBody: attribute_map = { 'data': 'data', 'url': 'url', + 'single_orientation_mode': 'single_orientation_mode', 'kv': 'kv', 'table': 'table', 'layout': 'layout', @@ -42,7 +44,7 @@ class SmartDocumentRecognizerRequestBody: 'pdf_page_number': 'pdf_page_number' } - def __init__(self, data=None, url=None, kv=None, table=None, layout=None, return_excel=None, form=None, formula=None, kv_map=None, pdf_page_number=None): + def __init__(self, data=None, url=None, single_orientation_mode=None, kv=None, table=None, layout=None, return_excel=None, form=None, formula=None, kv_map=None, pdf_page_number=None): """SmartDocumentRecognizerRequestBody The model defined in huaweicloud sdk @@ -51,6 +53,8 @@ def __init__(self, data=None, url=None, kv=None, table=None, layout=None, return :type data: str :param url: 与data二选一。 图片或PDF的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str + :param single_orientation_mode: 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + :type single_orientation_mode: bool :param kv: 是否进行键值对(key-value)提取。若是,结果会以“kv_result”这一关键字返回。 :type kv: bool :param table: 是否进行表格识别。此处表格特指逻辑表格,通常具有M行N列的形式,且第一行或第一列为表头。若是,结果会以“table_result”这一关键字返回。 @@ -73,6 +77,7 @@ def __init__(self, data=None, url=None, kv=None, table=None, layout=None, return self._data = None self._url = None + self._single_orientation_mode = None self._kv = None self._table = None self._layout = None @@ -87,6 +92,8 @@ def __init__(self, data=None, url=None, kv=None, table=None, layout=None, return self.data = data if url is not None: self.url = url + if single_orientation_mode is not None: + self.single_orientation_mode = single_orientation_mode if kv is not None: self.kv = kv if table is not None: @@ -148,6 +155,28 @@ def url(self, url): """ self._url = url + @property + def single_orientation_mode(self): + """Gets the single_orientation_mode of this SmartDocumentRecognizerRequestBody. + + 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + + :return: The single_orientation_mode of this SmartDocumentRecognizerRequestBody. + :rtype: bool + """ + return self._single_orientation_mode + + @single_orientation_mode.setter + def single_orientation_mode(self, single_orientation_mode): + """Sets the single_orientation_mode of this SmartDocumentRecognizerRequestBody. + + 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + + :param single_orientation_mode: The single_orientation_mode of this SmartDocumentRecognizerRequestBody. + :type single_orientation_mode: bool + """ + self._single_orientation_mode = single_orientation_mode + @property def kv(self): """Gets the kv of this SmartDocumentRecognizerRequestBody. diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 98372e67e8..80f5051aa5 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index 4a786918e8..c14f5bcd94 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 25250c536c..51d7c8548e 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index 71a2024f15..8c0bb06d82 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index b425aff753..29982c0153 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index b02c3658f5..5616b1dfb4 100644 --- a/huaweicloud-sdk-orgid/setup.py +++ b/huaweicloud-sdk-orgid/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorgid" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index ea101327ed..65ffa3dc0b 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 505a45caa9..4a512995ba 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index eba879fad5..aadc38f5ad 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index ecfce17cc0..c13b5ddb4f 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index c8199ef542..92649acf5b 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 8178928ec0..464cd4ae2c 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 926a50933f..49081899c5 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 39c0809555..2bda6388cc 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index b979b5c4aa..ba90c6f498 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 3d6d010e77..8416bfbfcc 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 9761246cb5..597f9c880f 100644 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index d78a48604b..c54bc1760c 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index c370cc055b..7f45fd7e9d 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index a33fce6fbb..a39a9917a7 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index 576392825a..2f217c5318 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index da5853286c..290991392d 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 38c974156b..583f87d61e 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index 1b6e3ba475..a8317968ee 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 2e7e0ed4e8..7fe454f331 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 835d8239bb..06da4bc49a 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 8060a30635..dece4c3235 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index 9e5f3da192..38c6c8a8b0 100644 --- a/huaweicloud-sdk-sts/setup.py +++ b/huaweicloud-sdk-sts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksts" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 063afaa77c..42246237a5 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index f01a9c2fc0..7449fe3357 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index b540ac0f0b..53056e6c7c 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 7349a8acc4..7b47ed083e 100644 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 26f9b09995..45bcffb320 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index 8c943c5bc1..d80b0285b3 100644 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index 2e62e77ba8..c85c54bceb 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/batch_create_sub_network_interface_option.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/batch_create_sub_network_interface_option.py index 50ae6c9e2f..d4e7789dd5 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/batch_create_sub_network_interface_option.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/batch_create_sub_network_interface_option.py @@ -22,7 +22,11 @@ class BatchCreateSubNetworkInterfaceOption: 'security_groups': 'list[str]', 'description': 'str', 'ipv6_enable': 'bool', - 'project_id': 'str' + 'project_id': 'str', + 'allowed_address_pairs': 'list[AllowedAddressPair]', + 'instance_id': 'str', + 'instance_type': 'str', + 'tags': 'list[ResourceTag]' } attribute_map = { @@ -31,10 +35,14 @@ class BatchCreateSubNetworkInterfaceOption: 'security_groups': 'security_groups', 'description': 'description', 'ipv6_enable': 'ipv6_enable', - 'project_id': 'project_id' + 'project_id': 'project_id', + 'allowed_address_pairs': 'allowed_address_pairs', + 'instance_id': 'instance_id', + 'instance_type': 'instance_type', + 'tags': 'tags' } - def __init__(self, virsubnet_id=None, parent_id=None, security_groups=None, description=None, ipv6_enable=None, project_id=None): + def __init__(self, virsubnet_id=None, parent_id=None, security_groups=None, description=None, ipv6_enable=None, project_id=None, allowed_address_pairs=None, instance_id=None, instance_type=None, tags=None): """BatchCreateSubNetworkInterfaceOption The model defined in huaweicloud sdk @@ -51,6 +59,14 @@ def __init__(self, virsubnet_id=None, parent_id=None, security_groups=None, desc :type ipv6_enable: bool :param project_id: 功能说明:辅助弹性网卡所属的项目ID 取值范围:标准UUID 约束:只有管理员有权限指定 :type project_id: str + :param allowed_address_pairs: 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + :param instance_id: 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + :type instance_id: str + :param instance_type: 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + :type instance_type: str + :param tags: 辅助弹性网卡资源标签 + :type tags: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] """ @@ -61,6 +77,10 @@ def __init__(self, virsubnet_id=None, parent_id=None, security_groups=None, desc self._description = None self._ipv6_enable = None self._project_id = None + self._allowed_address_pairs = None + self._instance_id = None + self._instance_type = None + self._tags = None self.discriminator = None self.virsubnet_id = virsubnet_id @@ -73,6 +93,14 @@ def __init__(self, virsubnet_id=None, parent_id=None, security_groups=None, desc self.ipv6_enable = ipv6_enable if project_id is not None: self.project_id = project_id + if allowed_address_pairs is not None: + self.allowed_address_pairs = allowed_address_pairs + if instance_id is not None: + self.instance_id = instance_id + if instance_type is not None: + self.instance_type = instance_type + if tags is not None: + self.tags = tags @property def virsubnet_id(self): @@ -206,6 +234,94 @@ def project_id(self, project_id): """ self._project_id = project_id + @property + def allowed_address_pairs(self): + """Gets the allowed_address_pairs of this BatchCreateSubNetworkInterfaceOption. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + + :return: The allowed_address_pairs of this BatchCreateSubNetworkInterfaceOption. + :rtype: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + return self._allowed_address_pairs + + @allowed_address_pairs.setter + def allowed_address_pairs(self, allowed_address_pairs): + """Sets the allowed_address_pairs of this BatchCreateSubNetworkInterfaceOption. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + + :param allowed_address_pairs: The allowed_address_pairs of this BatchCreateSubNetworkInterfaceOption. + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + self._allowed_address_pairs = allowed_address_pairs + + @property + def instance_id(self): + """Gets the instance_id of this BatchCreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + + :return: The instance_id of this BatchCreateSubNetworkInterfaceOption. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BatchCreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + + :param instance_id: The instance_id of this BatchCreateSubNetworkInterfaceOption. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_type(self): + """Gets the instance_type of this BatchCreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + + :return: The instance_type of this BatchCreateSubNetworkInterfaceOption. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this BatchCreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + + :param instance_type: The instance_type of this BatchCreateSubNetworkInterfaceOption. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def tags(self): + """Gets the tags of this BatchCreateSubNetworkInterfaceOption. + + 辅助弹性网卡资源标签 + + :return: The tags of this BatchCreateSubNetworkInterfaceOption. + :rtype: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this BatchCreateSubNetworkInterfaceOption. + + 辅助弹性网卡资源标签 + + :param tags: The tags of this BatchCreateSubNetworkInterfaceOption. + :type tags: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/create_sub_network_interface_option.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/create_sub_network_interface_option.py index a1486b35ef..8cb45d914d 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/create_sub_network_interface_option.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/create_sub_network_interface_option.py @@ -25,7 +25,11 @@ class CreateSubNetworkInterfaceOption: 'private_ip_address': 'str', 'ipv6_ip_address': 'str', 'security_groups': 'list[str]', - 'project_id': 'str' + 'project_id': 'str', + 'allowed_address_pairs': 'list[AllowedAddressPair]', + 'instance_id': 'str', + 'instance_type': 'str', + 'tags': 'list[ResourceTag]' } attribute_map = { @@ -37,10 +41,14 @@ class CreateSubNetworkInterfaceOption: 'private_ip_address': 'private_ip_address', 'ipv6_ip_address': 'ipv6_ip_address', 'security_groups': 'security_groups', - 'project_id': 'project_id' + 'project_id': 'project_id', + 'allowed_address_pairs': 'allowed_address_pairs', + 'instance_id': 'instance_id', + 'instance_type': 'instance_type', + 'tags': 'tags' } - def __init__(self, virsubnet_id=None, vlan_id=None, parent_id=None, description=None, ipv6_enable=None, private_ip_address=None, ipv6_ip_address=None, security_groups=None, project_id=None): + def __init__(self, virsubnet_id=None, vlan_id=None, parent_id=None, description=None, ipv6_enable=None, private_ip_address=None, ipv6_ip_address=None, security_groups=None, project_id=None, allowed_address_pairs=None, instance_id=None, instance_type=None, tags=None): """CreateSubNetworkInterfaceOption The model defined in huaweicloud sdk @@ -63,6 +71,14 @@ def __init__(self, virsubnet_id=None, vlan_id=None, parent_id=None, description= :type security_groups: list[str] :param project_id: 功能说明:辅助弹性网卡所属的项目ID 取值范围:标准UUID 约束:只有管理员有权限指定 :type project_id: str + :param allowed_address_pairs: 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + :param instance_id: 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + :type instance_id: str + :param instance_type: 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + :type instance_type: str + :param tags: 辅助弹性网卡资源标签 + :type tags: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] """ @@ -76,6 +92,10 @@ def __init__(self, virsubnet_id=None, vlan_id=None, parent_id=None, description= self._ipv6_ip_address = None self._security_groups = None self._project_id = None + self._allowed_address_pairs = None + self._instance_id = None + self._instance_type = None + self._tags = None self.discriminator = None self.virsubnet_id = virsubnet_id @@ -94,6 +114,14 @@ def __init__(self, virsubnet_id=None, vlan_id=None, parent_id=None, description= self.security_groups = security_groups if project_id is not None: self.project_id = project_id + if allowed_address_pairs is not None: + self.allowed_address_pairs = allowed_address_pairs + if instance_id is not None: + self.instance_id = instance_id + if instance_type is not None: + self.instance_type = instance_type + if tags is not None: + self.tags = tags @property def virsubnet_id(self): @@ -293,6 +321,94 @@ def project_id(self, project_id): """ self._project_id = project_id + @property + def allowed_address_pairs(self): + """Gets the allowed_address_pairs of this CreateSubNetworkInterfaceOption. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + + :return: The allowed_address_pairs of this CreateSubNetworkInterfaceOption. + :rtype: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + return self._allowed_address_pairs + + @allowed_address_pairs.setter + def allowed_address_pairs(self, allowed_address_pairs): + """Sets the allowed_address_pairs of this CreateSubNetworkInterfaceOption. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + + :param allowed_address_pairs: The allowed_address_pairs of this CreateSubNetworkInterfaceOption. + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + self._allowed_address_pairs = allowed_address_pairs + + @property + def instance_id(self): + """Gets the instance_id of this CreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + + :return: The instance_id of this CreateSubNetworkInterfaceOption. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + + :param instance_id: The instance_id of this CreateSubNetworkInterfaceOption. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_type(self): + """Gets the instance_type of this CreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + + :return: The instance_type of this CreateSubNetworkInterfaceOption. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this CreateSubNetworkInterfaceOption. + + 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + + :param instance_type: The instance_type of this CreateSubNetworkInterfaceOption. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def tags(self): + """Gets the tags of this CreateSubNetworkInterfaceOption. + + 辅助弹性网卡资源标签 + + :return: The tags of this CreateSubNetworkInterfaceOption. + :rtype: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateSubNetworkInterfaceOption. + + 辅助弹性网卡资源标签 + + :param tags: The tags of this CreateSubNetworkInterfaceOption. + :type tags: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/sub_network_interface.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/sub_network_interface.py index e90680255f..b796a9e69d 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/sub_network_interface.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/sub_network_interface.py @@ -28,9 +28,14 @@ class SubNetworkInterface: 'vpc_id': 'str', 'vlan_id': 'int', 'security_groups': 'list[str]', - 'tags': 'list[str]', + 'tags': 'list[ResourceTag]', 'project_id': 'str', 'created_at': 'datetime', + 'allowed_address_pairs': 'list[AllowedAddressPair]', + 'state': 'str', + 'instance_id': 'str', + 'instance_type': 'str', + 'scope': 'str', 'security_enabled': 'bool' } @@ -49,10 +54,15 @@ class SubNetworkInterface: 'tags': 'tags', 'project_id': 'project_id', 'created_at': 'created_at', + 'allowed_address_pairs': 'allowed_address_pairs', + 'state': 'state', + 'instance_id': 'instance_id', + 'instance_type': 'instance_type', + 'scope': 'scope', 'security_enabled': 'security_enabled' } - def __init__(self, id=None, virsubnet_id=None, private_ip_address=None, ipv6_ip_address=None, mac_address=None, parent_device_id=None, parent_id=None, description=None, vpc_id=None, vlan_id=None, security_groups=None, tags=None, project_id=None, created_at=None, security_enabled=None): + def __init__(self, id=None, virsubnet_id=None, private_ip_address=None, ipv6_ip_address=None, mac_address=None, parent_device_id=None, parent_id=None, description=None, vpc_id=None, vlan_id=None, security_groups=None, tags=None, project_id=None, created_at=None, allowed_address_pairs=None, state=None, instance_id=None, instance_type=None, scope=None, security_enabled=None): """SubNetworkInterface The model defined in huaweicloud sdk @@ -80,11 +90,21 @@ def __init__(self, id=None, virsubnet_id=None, private_ip_address=None, ipv6_ip_ :param security_groups: 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] 取值范围:默认值为系统默认安全组 :type security_groups: list[str] :param tags: 功能说明:辅助弹性网卡的标签列表 - :type tags: list[str] + :type tags: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] :param project_id: 功能说明:辅助弹性网卡所属项目ID :type project_id: str :param created_at: 功能说明:辅助弹性网卡的创建时间 取值范围:UTC时间格式:yyyy-MM-ddTHH:mm:ss :type created_at: datetime + :param allowed_address_pairs: 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + :param state: 功能说明:辅助弹性网卡当前状态 + :type state: str + :param instance_id: 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID + :type instance_id: str + :param instance_type: 功能说明:辅助弹性网卡所属实例类型,例如“RDS” + :type instance_type: str + :param scope: 功能说明:辅助弹性网卡所在站点的公网出口信息 + :type scope: str :param security_enabled: 功能说明:辅助弹性网卡安全使能标记,如果不使能则安全组不生效。 取值范围:true(使能),false(不使能) :type security_enabled: bool """ @@ -105,6 +125,11 @@ def __init__(self, id=None, virsubnet_id=None, private_ip_address=None, ipv6_ip_ self._tags = None self._project_id = None self._created_at = None + self._allowed_address_pairs = None + self._state = None + self._instance_id = None + self._instance_type = None + self._scope = None self._security_enabled = None self.discriminator = None @@ -122,6 +147,11 @@ def __init__(self, id=None, virsubnet_id=None, private_ip_address=None, ipv6_ip_ self.tags = tags self.project_id = project_id self.created_at = created_at + self.allowed_address_pairs = allowed_address_pairs + self.state = state + self.instance_id = instance_id + self.instance_type = instance_type + self.scope = scope self.security_enabled = security_enabled @property @@ -373,7 +403,7 @@ def tags(self): 功能说明:辅助弹性网卡的标签列表 :return: The tags of this SubNetworkInterface. - :rtype: list[str] + :rtype: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] """ return self._tags @@ -384,7 +414,7 @@ def tags(self, tags): 功能说明:辅助弹性网卡的标签列表 :param tags: The tags of this SubNetworkInterface. - :type tags: list[str] + :type tags: list[:class:`huaweicloudsdkvpc.v3.ResourceTag`] """ self._tags = tags @@ -432,6 +462,116 @@ def created_at(self, created_at): """ self._created_at = created_at + @property + def allowed_address_pairs(self): + """Gets the allowed_address_pairs of this SubNetworkInterface. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR + + :return: The allowed_address_pairs of this SubNetworkInterface. + :rtype: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + return self._allowed_address_pairs + + @allowed_address_pairs.setter + def allowed_address_pairs(self, allowed_address_pairs): + """Sets the allowed_address_pairs of this SubNetworkInterface. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR + + :param allowed_address_pairs: The allowed_address_pairs of this SubNetworkInterface. + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + self._allowed_address_pairs = allowed_address_pairs + + @property + def state(self): + """Gets the state of this SubNetworkInterface. + + 功能说明:辅助弹性网卡当前状态 + + :return: The state of this SubNetworkInterface. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this SubNetworkInterface. + + 功能说明:辅助弹性网卡当前状态 + + :param state: The state of this SubNetworkInterface. + :type state: str + """ + self._state = state + + @property + def instance_id(self): + """Gets the instance_id of this SubNetworkInterface. + + 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID + + :return: The instance_id of this SubNetworkInterface. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SubNetworkInterface. + + 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID + + :param instance_id: The instance_id of this SubNetworkInterface. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_type(self): + """Gets the instance_type of this SubNetworkInterface. + + 功能说明:辅助弹性网卡所属实例类型,例如“RDS” + + :return: The instance_type of this SubNetworkInterface. + :rtype: str + """ + return self._instance_type + + @instance_type.setter + def instance_type(self, instance_type): + """Sets the instance_type of this SubNetworkInterface. + + 功能说明:辅助弹性网卡所属实例类型,例如“RDS” + + :param instance_type: The instance_type of this SubNetworkInterface. + :type instance_type: str + """ + self._instance_type = instance_type + + @property + def scope(self): + """Gets the scope of this SubNetworkInterface. + + 功能说明:辅助弹性网卡所在站点的公网出口信息 + + :return: The scope of this SubNetworkInterface. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """Sets the scope of this SubNetworkInterface. + + 功能说明:辅助弹性网卡所在站点的公网出口信息 + + :param scope: The scope of this SubNetworkInterface. + :type scope: str + """ + self._scope = scope + @property def security_enabled(self): """Gets the security_enabled of this SubNetworkInterface. diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_sub_network_interface_option.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_sub_network_interface_option.py index 5079e4f98c..ade66b7de3 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_sub_network_interface_option.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_sub_network_interface_option.py @@ -18,15 +18,17 @@ class UpdateSubNetworkInterfaceOption: openapi_types = { 'description': 'str', - 'security_groups': 'list[str]' + 'security_groups': 'list[str]', + 'allowed_address_pairs': 'list[AllowedAddressPair]' } attribute_map = { 'description': 'description', - 'security_groups': 'security_groups' + 'security_groups': 'security_groups', + 'allowed_address_pairs': 'allowed_address_pairs' } - def __init__(self, description=None, security_groups=None): + def __init__(self, description=None, security_groups=None, allowed_address_pairs=None): """UpdateSubNetworkInterfaceOption The model defined in huaweicloud sdk @@ -35,18 +37,23 @@ def __init__(self, description=None, security_groups=None): :type description: str :param security_groups: 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] :type security_groups: list[str] + :param allowed_address_pairs: 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] """ self._description = None self._security_groups = None + self._allowed_address_pairs = None self.discriminator = None if description is not None: self.description = description if security_groups is not None: self.security_groups = security_groups + if allowed_address_pairs is not None: + self.allowed_address_pairs = allowed_address_pairs @property def description(self): @@ -92,6 +99,28 @@ def security_groups(self, security_groups): """ self._security_groups = security_groups + @property + def allowed_address_pairs(self): + """Gets the allowed_address_pairs of this UpdateSubNetworkInterfaceOption. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + + :return: The allowed_address_pairs of this UpdateSubNetworkInterfaceOption. + :rtype: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + return self._allowed_address_pairs + + @allowed_address_pairs.setter + def allowed_address_pairs(self, allowed_address_pairs): + """Sets the allowed_address_pairs of this UpdateSubNetworkInterfaceOption. + + 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + + :param allowed_address_pairs: The allowed_address_pairs of this UpdateSubNetworkInterfaceOption. + :type allowed_address_pairs: list[:class:`huaweicloudsdkvpc.v3.AllowedAddressPair`] + """ + self._allowed_address_pairs = allowed_address_pairs + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_traffic_mirror_session_option.py b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_traffic_mirror_session_option.py index 185a727d42..073808341c 100644 --- a/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_traffic_mirror_session_option.py +++ b/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/update_traffic_mirror_session_option.py @@ -25,8 +25,7 @@ class UpdateTrafficMirrorSessionOption: 'virtual_network_id': 'int', 'packet_length': 'int', 'priority': 'int', - 'enabled': 'str', - 'type': 'str' + 'enabled': 'str' } attribute_map = { @@ -38,11 +37,10 @@ class UpdateTrafficMirrorSessionOption: 'virtual_network_id': 'virtual_network_id', 'packet_length': 'packet_length', 'priority': 'priority', - 'enabled': 'enabled', - 'type': 'type' + 'enabled': 'enabled' } - def __init__(self, name=None, description=None, traffic_mirror_filter_id=None, traffic_mirror_target_id=None, traffic_mirror_target_type=None, virtual_network_id=None, packet_length=None, priority=None, enabled=None, type=None): + def __init__(self, name=None, description=None, traffic_mirror_filter_id=None, traffic_mirror_target_id=None, traffic_mirror_target_type=None, virtual_network_id=None, packet_length=None, priority=None, enabled=None): """UpdateTrafficMirrorSessionOption The model defined in huaweicloud sdk @@ -65,8 +63,6 @@ def __init__(self, name=None, description=None, traffic_mirror_filter_id=None, t :type priority: int :param enabled: 功能说明:是否开启会话 取值范围:true、false :type enabled: str - :param type: 功能说明:支持的镜像源类型 取值范围: eni:弹性网卡 - :type type: str """ @@ -80,7 +76,6 @@ def __init__(self, name=None, description=None, traffic_mirror_filter_id=None, t self._packet_length = None self._priority = None self._enabled = None - self._type = None self.discriminator = None if name is not None: @@ -101,8 +96,6 @@ def __init__(self, name=None, description=None, traffic_mirror_filter_id=None, t self.priority = priority if enabled is not None: self.enabled = enabled - if type is not None: - self.type = type @property def name(self): @@ -302,28 +295,6 @@ def enabled(self, enabled): """ self._enabled = enabled - @property - def type(self): - """Gets the type of this UpdateTrafficMirrorSessionOption. - - 功能说明:支持的镜像源类型 取值范围: eni:弹性网卡 - - :return: The type of this UpdateTrafficMirrorSessionOption. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this UpdateTrafficMirrorSessionOption. - - 功能说明:支持的镜像源类型 取值范围: eni:弹性网卡 - - :param type: The type of this UpdateTrafficMirrorSessionOption. - :type type: str - """ - self._type = type - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index fcfab59a5b..869246812d 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py index eff1514320..8f1cb07414 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_request_body.py @@ -28,7 +28,7 @@ class CreateEndpointRequestBody: 'enable_whitelist': 'bool', 'description': 'str', 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object', + 'policy_document': 'str', 'ip_version': 'str', 'ipv6_address': 'str' } @@ -75,10 +75,10 @@ def __init__(self, subnet_id=None, endpoint_service_id=None, vpc_id=None, enable :type enable_whitelist: bool :param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。 :type description: str - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str :param ip_version: 指定终端节点的IP版本,仅专业型终端节点支持此参数。 - ipv4, IPv4 - dualstack, 双栈 :type ip_version: str :param ipv6_address: 访问所连接的终端节点服务的IPv6的地址。 创建终端节点时,可以指定访问所连接的终端节点服务的IP,不指定的情况下,会使用系统生成的一个地址。 仅专业型终端节点支持此参数。 @@ -354,7 +354,7 @@ def description(self, description): def policy_statement(self): """Gets the policy_statement of this CreateEndpointRequestBody. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this CreateEndpointRequestBody. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -365,7 +365,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this CreateEndpointRequestBody. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this CreateEndpointRequestBody. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -376,10 +376,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this CreateEndpointRequestBody. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this CreateEndpointRequestBody. - :rtype: object + :rtype: str """ return self._policy_document @@ -387,10 +387,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this CreateEndpointRequestBody. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this CreateEndpointRequestBody. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_response.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_response.py index ab2ad2c3cc..a7e690a10c 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_response.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/create_endpoint_response.py @@ -39,7 +39,7 @@ class CreateEndpointResponse(SdkResponse): 'specification_name': 'str', 'description': 'str', 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object', + 'policy_document': 'str', 'enable_status': 'str', 'endpoint_pool_id': 'str', 'public_border_group': 'str', @@ -120,10 +120,10 @@ def __init__(self, id=None, service_type=None, status=None, ip=None, active_stat :type specification_name: str :param description: 描述 :type description: str - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str :param enable_status: 终端节点是否可用。 - enable:启用 - disable:不启用 :type enable_status: str :param endpoint_pool_id: 待废弃,实例相关联的集群ID @@ -661,7 +661,7 @@ def description(self, description): def policy_statement(self): """Gets the policy_statement of this CreateEndpointResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this CreateEndpointResponse. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -672,7 +672,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this CreateEndpointResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this CreateEndpointResponse. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -683,10 +683,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this CreateEndpointResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this CreateEndpointResponse. - :rtype: object + :rtype: str """ return self._policy_document @@ -694,10 +694,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this CreateEndpointResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this CreateEndpointResponse. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py index bb5f338869..2e4b1ee2cd 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/delete_endpoint_policy_response.py @@ -37,7 +37,7 @@ class DeleteEndpointPolicyResponse(SdkResponse): 'routetables': 'list[str]', 'description': 'str', 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object', + 'policy_document': 'str', 'endpoint_pool_id': 'str', 'public_border_group': 'str' } @@ -108,10 +108,10 @@ def __init__(self, id=None, service_type=None, status=None, active_status=None, :type routetables: list[str] :param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。 :type description: str - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str :param endpoint_pool_id: 待废弃,实例相关联的集群ID :type endpoint_pool_id: str :param public_border_group: 终端节点关联的Public Border Group信息,只有当终端节点和边缘Pool相关联时才会返回该字段 @@ -589,7 +589,7 @@ def description(self, description): def policy_statement(self): """Gets the policy_statement of this DeleteEndpointPolicyResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this DeleteEndpointPolicyResponse. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -600,7 +600,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this DeleteEndpointPolicyResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this DeleteEndpointPolicyResponse. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -611,10 +611,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this DeleteEndpointPolicyResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this DeleteEndpointPolicyResponse. - :rtype: object + :rtype: str """ return self._policy_document @@ -622,10 +622,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this DeleteEndpointPolicyResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this DeleteEndpointPolicyResponse. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/endpoint_response_body.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/endpoint_response_body.py index ec2281c1cb..6e6f55eab3 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/endpoint_response_body.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/endpoint_response_body.py @@ -39,7 +39,7 @@ class EndpointResponseBody: 'routetables': 'list[str]', 'description': 'str', 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object', + 'policy_document': 'str', 'endpoint_pool_id': 'str', 'public_border_group': 'str' } @@ -119,10 +119,10 @@ def __init__(self, id=None, service_type=None, status=None, active_status=None, :type routetables: list[str] :param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。 :type description: str - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str :param endpoint_pool_id: 待废弃,实例相关联的集群ID :type endpoint_pool_id: str :param public_border_group: 终端节点关联的Public Border Group信息,只有当终端节点和边缘Pool相关联时才会返回该字段 @@ -675,7 +675,7 @@ def description(self, description): def policy_statement(self): """Gets the policy_statement of this EndpointResponseBody. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this EndpointResponseBody. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -686,7 +686,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this EndpointResponseBody. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this EndpointResponseBody. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -697,10 +697,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this EndpointResponseBody. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this EndpointResponseBody. - :rtype: object + :rtype: str """ return self._policy_document @@ -708,10 +708,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this EndpointResponseBody. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this EndpointResponseBody. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py index b544e85055..94772f6249 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/list_endpoint_info_details_response.py @@ -42,7 +42,7 @@ class ListEndpointInfoDetailsResponse(SdkResponse): 'routetables': 'list[str]', 'description': 'str', 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object', + 'policy_document': 'str', 'endpoint_pool_id': 'str', 'public_border_group': 'str', 'ipv6_address': 'str' @@ -130,10 +130,10 @@ def __init__(self, id=None, service_type=None, status=None, active_status=None, :type routetables: list[str] :param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。 :type description: str - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str :param endpoint_pool_id: 待废弃,实例相关联的集群ID :type endpoint_pool_id: str :param public_border_group: 终端节点对应Pool的Public Border Group信息 @@ -737,7 +737,7 @@ def description(self, description): def policy_statement(self): """Gets the policy_statement of this ListEndpointInfoDetailsResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this ListEndpointInfoDetailsResponse. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -748,7 +748,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this ListEndpointInfoDetailsResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this ListEndpointInfoDetailsResponse. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -759,10 +759,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this ListEndpointInfoDetailsResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this ListEndpointInfoDetailsResponse. - :rtype: object + :rtype: str """ return self._policy_document @@ -770,10 +770,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this ListEndpointInfoDetailsResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this ListEndpointInfoDetailsResponse. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py index be21fb77a3..a87944b2c6 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_request_body.py @@ -18,7 +18,7 @@ class UpdateEndpointPolicyRequestBody: openapi_types = { 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object' + 'policy_document': 'str' } attribute_map = { @@ -31,10 +31,10 @@ def __init__(self, policy_statement=None, policy_document=None): The model defined in huaweicloud sdk - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str """ @@ -52,7 +52,7 @@ def __init__(self, policy_statement=None, policy_document=None): def policy_statement(self): """Gets the policy_statement of this UpdateEndpointPolicyRequestBody. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this UpdateEndpointPolicyRequestBody. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -63,7 +63,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this UpdateEndpointPolicyRequestBody. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this UpdateEndpointPolicyRequestBody. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -74,10 +74,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this UpdateEndpointPolicyRequestBody. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this UpdateEndpointPolicyRequestBody. - :rtype: object + :rtype: str """ return self._policy_document @@ -85,10 +85,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this UpdateEndpointPolicyRequestBody. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this UpdateEndpointPolicyRequestBody. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py index ead1978331..cd467569e7 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_policy_response.py @@ -37,7 +37,7 @@ class UpdateEndpointPolicyResponse(SdkResponse): 'routetables': 'list[str]', 'description': 'str', 'policy_statement': 'list[PolicyStatement]', - 'policy_document': 'object', + 'policy_document': 'str', 'endpoint_pool_id': 'str', 'public_border_group': 'str' } @@ -108,10 +108,10 @@ def __init__(self, id=None, service_type=None, status=None, active_status=None, :type routetables: list[str] :param description: 描述字段,支持中英文字母、数字等字符,不支持“<”或“>”字符。 :type description: str - :param policy_statement: 终端节点策略信息 + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str :param endpoint_pool_id: 待废弃,实例相关联的集群ID :type endpoint_pool_id: str :param public_border_group: 终端节点关联的Public Border Group信息,只有当终端节点和边缘Pool相关联时才会返回该字段 @@ -589,7 +589,7 @@ def description(self, description): def policy_statement(self): """Gets the policy_statement of this UpdateEndpointPolicyResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :return: The policy_statement of this UpdateEndpointPolicyResponse. :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -600,7 +600,7 @@ def policy_statement(self): def policy_statement(self, policy_statement): """Sets the policy_statement of this UpdateEndpointPolicyResponse. - 终端节点策略信息 + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 :param policy_statement: The policy_statement of this UpdateEndpointPolicyResponse. :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] @@ -611,10 +611,10 @@ def policy_statement(self, policy_statement): def policy_document(self): """Gets the policy_document of this UpdateEndpointPolicyResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this UpdateEndpointPolicyResponse. - :rtype: object + :rtype: str """ return self._policy_document @@ -622,10 +622,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this UpdateEndpointPolicyResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this UpdateEndpointPolicyResponse. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py index bad81c9e9f..5d26fb894a 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/update_endpoint_white_response.py @@ -36,7 +36,8 @@ class UpdateEndpointWhiteResponse(SdkResponse): 'tags': 'list[TagList]', 'whitelist': 'list[str]', 'enable_whitelist': 'bool', - 'policy_document': 'object' + 'policy_statement': 'list[PolicyStatement]', + 'policy_document': 'str' } attribute_map = { @@ -58,10 +59,11 @@ class UpdateEndpointWhiteResponse(SdkResponse): 'tags': 'tags', 'whitelist': 'whitelist', 'enable_whitelist': 'enable_whitelist', + 'policy_statement': 'policy_statement', 'policy_document': 'policy_document' } - def __init__(self, id=None, service_type=None, status=None, ip=None, active_status=None, endpoint_service_name=None, marker_id=None, endpoint_service_id=None, enable_dns=None, dns_names=None, subnet_id=None, vpc_id=None, created_at=None, updated_at=None, project_id=None, tags=None, whitelist=None, enable_whitelist=None, policy_document=None): + def __init__(self, id=None, service_type=None, status=None, ip=None, active_status=None, endpoint_service_name=None, marker_id=None, endpoint_service_id=None, enable_dns=None, dns_names=None, subnet_id=None, vpc_id=None, created_at=None, updated_at=None, project_id=None, tags=None, whitelist=None, enable_whitelist=None, policy_statement=None, policy_document=None): """UpdateEndpointWhiteResponse The model defined in huaweicloud sdk @@ -102,8 +104,10 @@ def __init__(self, id=None, service_type=None, status=None, ip=None, active_stat :type whitelist: list[str] :param enable_whitelist: 是否开启网络ACL隔离。 - true:开启网络ACL隔离 - false:不开启网络ACL隔离 若未指定,则返回false。 创建连接Interface类型终端节点服务的终端节点时,显示此参数。 :type enable_whitelist: bool - :param policy_document: iam 5.0 策略 - :type policy_document: object + :param policy_statement: Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 + :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] + :param policy_document: 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) + :type policy_document: str """ super(UpdateEndpointWhiteResponse, self).__init__() @@ -126,6 +130,7 @@ def __init__(self, id=None, service_type=None, status=None, ip=None, active_stat self._tags = None self._whitelist = None self._enable_whitelist = None + self._policy_statement = None self._policy_document = None self.discriminator = None @@ -165,6 +170,8 @@ def __init__(self, id=None, service_type=None, status=None, ip=None, active_stat self.whitelist = whitelist if enable_whitelist is not None: self.enable_whitelist = enable_whitelist + if policy_statement is not None: + self.policy_statement = policy_statement if policy_document is not None: self.policy_document = policy_document @@ -564,14 +571,36 @@ def enable_whitelist(self, enable_whitelist): """ self._enable_whitelist = enable_whitelist + @property + def policy_statement(self): + """Gets the policy_statement of this UpdateEndpointWhiteResponse. + + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 + + :return: The policy_statement of this UpdateEndpointWhiteResponse. + :rtype: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] + """ + return self._policy_statement + + @policy_statement.setter + def policy_statement(self, policy_statement): + """Sets the policy_statement of this UpdateEndpointWhiteResponse. + + Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 + + :param policy_statement: The policy_statement of this UpdateEndpointWhiteResponse. + :type policy_statement: list[:class:`huaweicloudsdkvpcep.v1.PolicyStatement`] + """ + self._policy_statement = policy_statement + @property def policy_document(self): """Gets the policy_document of this UpdateEndpointWhiteResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :return: The policy_document of this UpdateEndpointWhiteResponse. - :rtype: object + :rtype: str """ return self._policy_document @@ -579,10 +608,10 @@ def policy_document(self): def policy_document(self, policy_document): """Sets the policy_document of this UpdateEndpointWhiteResponse. - iam 5.0 策略 + 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) :param policy_document: The policy_document of this UpdateEndpointWhiteResponse. - :type policy_document: object + :type policy_document: str """ self._policy_document = policy_document diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_async_client.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_async_client.py index 4465fed226..2e5c4d2c4a 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_async_client.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_async_client.py @@ -504,9 +504,9 @@ def _delete_endpoint_http_info(self, request): return http_info def delete_endpoint_policy_async(self, request): - """删除网关型终端节点policy + """删除网关型终端节点策略(待下线) - 删除网关型终端节点policy。 + 删除网关型终端节点策略,该接口待下线,不建议使用。 Please refer to HUAWEI cloud API Explorer for details. @@ -1479,9 +1479,9 @@ def _update_endpoint_connections_desc_http_info(self, request): return http_info def update_endpoint_policy_async(self, request): - """修改网关型终端节点policy + """修改终端节点策略 - 修改网关型终端节点policy。 + 修改终端节点策略。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_client.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_client.py index 2367bc6959..19f32fdb57 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_client.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/vpcep_client.py @@ -504,9 +504,9 @@ def _delete_endpoint_http_info(cls, request): return http_info def delete_endpoint_policy(self, request): - """删除网关型终端节点policy + """删除网关型终端节点策略(待下线) - 删除网关型终端节点policy。 + 删除网关型终端节点策略,该接口待下线,不建议使用。 Please refer to HUAWEI cloud API Explorer for details. @@ -1479,9 +1479,9 @@ def _update_endpoint_connections_desc_http_info(cls, request): return http_info def update_endpoint_policy(self, request): - """修改网关型终端节点policy + """修改终端节点策略 - 修改网关型终端节点policy。 + 修改终端节点策略。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 0b9d9b7ac6..4c437becc8 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index 75a1d5604a..e6293abeb4 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py index 51d7f60c00..09d874d6fc 100644 --- a/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py +++ b/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_premium_host_request_body.py @@ -25,6 +25,10 @@ class CreatePremiumHostRequestBody: 'server': 'list[PremiumWafServer]', 'block_page': 'BlockPage', 'forward_header_map': 'dict(str, str)', + 'mode': 'str', + 'loadbalancer_id': 'str', + 'listener_id': 'str', + 'protocol_port': 'int', 'description': 'str' } @@ -37,10 +41,14 @@ class CreatePremiumHostRequestBody: 'server': 'server', 'block_page': 'block_page', 'forward_header_map': 'forward_header_map', + 'mode': 'mode', + 'loadbalancer_id': 'loadbalancer_id', + 'listener_id': 'listener_id', + 'protocol_port': 'protocol_port', 'description': 'description' } - def __init__(self, certificateid=None, certificatename=None, hostname=None, proxy=None, policyid=None, server=None, block_page=None, forward_header_map=None, description=None): + def __init__(self, certificateid=None, certificatename=None, hostname=None, proxy=None, policyid=None, server=None, block_page=None, forward_header_map=None, mode=None, loadbalancer_id=None, listener_id=None, protocol_port=None, description=None): """CreatePremiumHostRequestBody The model defined in huaweicloud sdk @@ -61,6 +69,14 @@ def __init__(self, certificateid=None, certificatename=None, hostname=None, prox :type block_page: :class:`huaweicloudsdkwaf.v1.BlockPage` :param forward_header_map: 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括: - $time_local - $request_id - $connection_requests - $tenant_id - $project_id - $remote_addr - $remote_port - $scheme - $request_method - $http_host -$origin_uri - $request_length - $ssl_server_name - $ssl_protocol - $ssl_curves - $ssl_session_reused :type forward_header_map: dict(str, str) + :param mode: 添加云模式elb接入域名时,请输入elb-shared,否则不输入 + :type mode: str + :param loadbalancer_id: 负载均衡器(ELB)id,可以在ELB侧查询其id,添加云模式elb接入域名时,此为必须输入的值 + :type loadbalancer_id: str + :param listener_id: 监听器id,可在ELB侧监听器页签下查询其id;不输入时,负载均衡器(ELB)下的所有监听器都将接入WAF防护,包括该ELB下未来新增的符合条件的监听器,添加云模式elb接入域名时,可考虑输入此项id + :type listener_id: str + :param protocol_port: 业务端口,添加云模式elb接入域名时,此为必须输入的值(0 - 65535) + :type protocol_port: int :param description: 防护域名备注 :type description: str """ @@ -75,6 +91,10 @@ def __init__(self, certificateid=None, certificatename=None, hostname=None, prox self._server = None self._block_page = None self._forward_header_map = None + self._mode = None + self._loadbalancer_id = None + self._listener_id = None + self._protocol_port = None self._description = None self.discriminator = None @@ -91,6 +111,14 @@ def __init__(self, certificateid=None, certificatename=None, hostname=None, prox self.block_page = block_page if forward_header_map is not None: self.forward_header_map = forward_header_map + if mode is not None: + self.mode = mode + if loadbalancer_id is not None: + self.loadbalancer_id = loadbalancer_id + if listener_id is not None: + self.listener_id = listener_id + if protocol_port is not None: + self.protocol_port = protocol_port if description is not None: self.description = description @@ -266,6 +294,94 @@ def forward_header_map(self, forward_header_map): """ self._forward_header_map = forward_header_map + @property + def mode(self): + """Gets the mode of this CreatePremiumHostRequestBody. + + 添加云模式elb接入域名时,请输入elb-shared,否则不输入 + + :return: The mode of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CreatePremiumHostRequestBody. + + 添加云模式elb接入域名时,请输入elb-shared,否则不输入 + + :param mode: The mode of this CreatePremiumHostRequestBody. + :type mode: str + """ + self._mode = mode + + @property + def loadbalancer_id(self): + """Gets the loadbalancer_id of this CreatePremiumHostRequestBody. + + 负载均衡器(ELB)id,可以在ELB侧查询其id,添加云模式elb接入域名时,此为必须输入的值 + + :return: The loadbalancer_id of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._loadbalancer_id + + @loadbalancer_id.setter + def loadbalancer_id(self, loadbalancer_id): + """Sets the loadbalancer_id of this CreatePremiumHostRequestBody. + + 负载均衡器(ELB)id,可以在ELB侧查询其id,添加云模式elb接入域名时,此为必须输入的值 + + :param loadbalancer_id: The loadbalancer_id of this CreatePremiumHostRequestBody. + :type loadbalancer_id: str + """ + self._loadbalancer_id = loadbalancer_id + + @property + def listener_id(self): + """Gets the listener_id of this CreatePremiumHostRequestBody. + + 监听器id,可在ELB侧监听器页签下查询其id;不输入时,负载均衡器(ELB)下的所有监听器都将接入WAF防护,包括该ELB下未来新增的符合条件的监听器,添加云模式elb接入域名时,可考虑输入此项id + + :return: The listener_id of this CreatePremiumHostRequestBody. + :rtype: str + """ + return self._listener_id + + @listener_id.setter + def listener_id(self, listener_id): + """Sets the listener_id of this CreatePremiumHostRequestBody. + + 监听器id,可在ELB侧监听器页签下查询其id;不输入时,负载均衡器(ELB)下的所有监听器都将接入WAF防护,包括该ELB下未来新增的符合条件的监听器,添加云模式elb接入域名时,可考虑输入此项id + + :param listener_id: The listener_id of this CreatePremiumHostRequestBody. + :type listener_id: str + """ + self._listener_id = listener_id + + @property + def protocol_port(self): + """Gets the protocol_port of this CreatePremiumHostRequestBody. + + 业务端口,添加云模式elb接入域名时,此为必须输入的值(0 - 65535) + + :return: The protocol_port of this CreatePremiumHostRequestBody. + :rtype: int + """ + return self._protocol_port + + @protocol_port.setter + def protocol_port(self, protocol_port): + """Sets the protocol_port of this CreatePremiumHostRequestBody. + + 业务端口,添加云模式elb接入域名时,此为必须输入的值(0 - 65535) + + :param protocol_port: The protocol_port of this CreatePremiumHostRequestBody. + :type protocol_port: int + """ + self._protocol_port = protocol_port + @property def description(self): """Gets the description of this CreatePremiumHostRequestBody. diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 44dee66d08..3cf39997d8 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 4be3e45ce3..80aff9c799 100644 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/__init__.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/__init__.py index 42d3ec1121..c47f823afc 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/__init__.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/__init__.py @@ -10,6 +10,7 @@ from huaweicloudsdkworkspaceapp.v1.model.add_app_group_authorization_request import AddAppGroupAuthorizationRequest from huaweicloudsdkworkspaceapp.v1.model.add_app_group_authorization_response import AddAppGroupAuthorizationResponse from huaweicloudsdkworkspaceapp.v1.model.app import App +from huaweicloudsdkworkspaceapp.v1.model.app_category_enum import AppCategoryEnum from huaweicloudsdkworkspaceapp.v1.model.app_connection_info import AppConnectionInfo from huaweicloudsdkworkspaceapp.v1.model.app_group import AppGroup from huaweicloudsdkworkspaceapp.v1.model.app_group_authorize_req import AppGroupAuthorizeReq @@ -22,10 +23,17 @@ from huaweicloudsdkworkspaceapp.v1.model.assign_share_folder_req import AssignShareFolderReq from huaweicloudsdkworkspaceapp.v1.model.assign_user_folder_req import AssignUserFolderReq from huaweicloudsdkworkspaceapp.v1.model.assignment import Assignment +from huaweicloudsdkworkspaceapp.v1.model.attach_image_server_app_request import AttachImageServerAppRequest +from huaweicloudsdkworkspaceapp.v1.model.attach_image_server_app_response import AttachImageServerAppResponse +from huaweicloudsdkworkspaceapp.v1.model.attach_server_app_info import AttachServerAppInfo +from huaweicloudsdkworkspaceapp.v1.model.attach_server_app_req import AttachServerAppReq from huaweicloudsdkworkspaceapp.v1.model.attach_type import AttachType from huaweicloudsdkworkspaceapp.v1.model.attachment import Attachment from huaweicloudsdkworkspaceapp.v1.model.authorization import Authorization from huaweicloudsdkworkspaceapp.v1.model.authorization_type_enum import AuthorizationTypeEnum +from huaweicloudsdkworkspaceapp.v1.model.authorize_obs_req import AuthorizeObsReq +from huaweicloudsdkworkspaceapp.v1.model.authorize_obs_request import AuthorizeObsRequest +from huaweicloudsdkworkspaceapp.v1.model.authorize_obs_response import AuthorizeObsResponse from huaweicloudsdkworkspaceapp.v1.model.auto_logout_options import AutoLogoutOptions from huaweicloudsdkworkspaceapp.v1.model.availability_zone_info import AvailabilityZoneInfo from huaweicloudsdkworkspaceapp.v1.model.bandwidth import Bandwidth @@ -36,9 +44,15 @@ from huaweicloudsdkworkspaceapp.v1.model.batch_delete_app_group_authorization_response import BatchDeleteAppGroupAuthorizationResponse from huaweicloudsdkworkspaceapp.v1.model.batch_delete_app_group_request import BatchDeleteAppGroupRequest from huaweicloudsdkworkspaceapp.v1.model.batch_delete_app_group_response import BatchDeleteAppGroupResponse +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_image_server_req import BatchDeleteImageServerReq +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_image_server_request import BatchDeleteImageServerRequest +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_image_server_response import BatchDeleteImageServerResponse from huaweicloudsdkworkspaceapp.v1.model.batch_delete_server_req import BatchDeleteServerReq from huaweicloudsdkworkspaceapp.v1.model.batch_delete_server_request import BatchDeleteServerRequest from huaweicloudsdkworkspaceapp.v1.model.batch_delete_server_response import BatchDeleteServerResponse +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_warehouse_app_req import BatchDeleteWarehouseAppReq +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_warehouse_app_request import BatchDeleteWarehouseAppRequest +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_warehouse_app_response import BatchDeleteWarehouseAppResponse from huaweicloudsdkworkspaceapp.v1.model.batch_migrate_hosts_server_request import BatchMigrateHostsServerRequest from huaweicloudsdkworkspaceapp.v1.model.batch_migrate_hosts_server_response import BatchMigrateHostsServerResponse from huaweicloudsdkworkspaceapp.v1.model.batch_migrate_server_req import BatchMigrateServerReq @@ -75,6 +89,9 @@ from huaweicloudsdkworkspaceapp.v1.model.create_app_server_req import CreateAppServerReq from huaweicloudsdkworkspaceapp.v1.model.create_app_servers_request import CreateAppServersRequest from huaweicloudsdkworkspaceapp.v1.model.create_app_servers_response import CreateAppServersResponse +from huaweicloudsdkworkspaceapp.v1.model.create_image_server_req import CreateImageServerReq +from huaweicloudsdkworkspaceapp.v1.model.create_image_server_request import CreateImageServerRequest +from huaweicloudsdkworkspaceapp.v1.model.create_image_server_response import CreateImageServerResponse from huaweicloudsdkworkspaceapp.v1.model.create_or_update_storage_policy_statement_req import CreateOrUpdateStoragePolicyStatementReq from huaweicloudsdkworkspaceapp.v1.model.create_or_update_storage_policy_statement_request import CreateOrUpdateStoragePolicyStatementRequest from huaweicloudsdkworkspaceapp.v1.model.create_or_update_storage_policy_statement_response import CreateOrUpdateStoragePolicyStatementResponse @@ -91,9 +108,13 @@ from huaweicloudsdkworkspaceapp.v1.model.create_server_group_req import CreateServerGroupReq from huaweicloudsdkworkspaceapp.v1.model.create_server_group_request import CreateServerGroupRequest from huaweicloudsdkworkspaceapp.v1.model.create_server_group_response import CreateServerGroupResponse +from huaweicloudsdkworkspaceapp.v1.model.create_server_image_req import CreateServerImageReq from huaweicloudsdkworkspaceapp.v1.model.create_share_folder_req import CreateShareFolderReq from huaweicloudsdkworkspaceapp.v1.model.create_share_folder_request import CreateShareFolderRequest from huaweicloudsdkworkspaceapp.v1.model.create_share_folder_response import CreateShareFolderResponse +from huaweicloudsdkworkspaceapp.v1.model.create_warehouse_app_req import CreateWarehouseAppReq +from huaweicloudsdkworkspaceapp.v1.model.create_warehouse_app_request import CreateWarehouseAppRequest +from huaweicloudsdkworkspaceapp.v1.model.create_warehouse_app_response import CreateWarehouseAppResponse from huaweicloudsdkworkspaceapp.v1.model.custom_options import CustomOptions from huaweicloudsdkworkspaceapp.v1.model.delete_app_group_req import DeleteAppGroupReq from huaweicloudsdkworkspaceapp.v1.model.delete_persistent_storage_request import DeletePersistentStorageRequest @@ -127,6 +148,17 @@ from huaweicloudsdkworkspaceapp.v1.model.flavor import Flavor from huaweicloudsdkworkspaceapp.v1.model.flavor_link import FlavorLink from huaweicloudsdkworkspaceapp.v1.model.i18n import I18n +from huaweicloudsdkworkspaceapp.v1.model.image_account_info import ImageAccountInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_detail_info import ImageJobDetailInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_detail_status import ImageJobDetailStatus +from huaweicloudsdkworkspaceapp.v1.model.image_job_execute_info import ImageJobExecuteInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_info import ImageJobInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_resource_info import ImageJobResourceInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_status import ImageJobStatus +from huaweicloudsdkworkspaceapp.v1.model.image_job_type import ImageJobType +from huaweicloudsdkworkspaceapp.v1.model.image_ref import ImageRef +from huaweicloudsdkworkspaceapp.v1.model.image_server import ImageServer +from huaweicloudsdkworkspaceapp.v1.model.image_server_status import ImageServerStatus from huaweicloudsdkworkspaceapp.v1.model.image_type_enum import ImageTypeEnum from huaweicloudsdkworkspaceapp.v1.model.ip_virtual import IpVirtual from huaweicloudsdkworkspaceapp.v1.model.job_detail import JobDetail @@ -146,6 +178,10 @@ from huaweicloudsdkworkspaceapp.v1.model.list_app_group_response import ListAppGroupResponse from huaweicloudsdkworkspaceapp.v1.model.list_availability_zone_request import ListAvailabilityZoneRequest from huaweicloudsdkworkspaceapp.v1.model.list_availability_zone_response import ListAvailabilityZoneResponse +from huaweicloudsdkworkspaceapp.v1.model.list_image_servers_request import ListImageServersRequest +from huaweicloudsdkworkspaceapp.v1.model.list_image_servers_response import ListImageServersResponse +from huaweicloudsdkworkspaceapp.v1.model.list_latest_attached_server_app_request import ListLatestAttachedServerAppRequest +from huaweicloudsdkworkspaceapp.v1.model.list_latest_attached_server_app_response import ListLatestAttachedServerAppResponse from huaweicloudsdkworkspaceapp.v1.model.list_persistent_storage_request import ListPersistentStorageRequest from huaweicloudsdkworkspaceapp.v1.model.list_persistent_storage_response import ListPersistentStorageResponse from huaweicloudsdkworkspaceapp.v1.model.list_policy_group_request import ListPolicyGroupRequest @@ -158,12 +194,16 @@ from huaweicloudsdkworkspaceapp.v1.model.list_published_app_response import ListPublishedAppResponse from huaweicloudsdkworkspaceapp.v1.model.list_server_groups_request import ListServerGroupsRequest from huaweicloudsdkworkspaceapp.v1.model.list_server_groups_response import ListServerGroupsResponse +from huaweicloudsdkworkspaceapp.v1.model.list_server_metric_data_request import ListServerMetricDataRequest +from huaweicloudsdkworkspaceapp.v1.model.list_server_metric_data_response import ListServerMetricDataResponse from huaweicloudsdkworkspaceapp.v1.model.list_servers_request import ListServersRequest from huaweicloudsdkworkspaceapp.v1.model.list_servers_response import ListServersResponse from huaweicloudsdkworkspaceapp.v1.model.list_session_by_user_name_request import ListSessionByUserNameRequest from huaweicloudsdkworkspaceapp.v1.model.list_session_by_user_name_response import ListSessionByUserNameResponse from huaweicloudsdkworkspaceapp.v1.model.list_session_type_request import ListSessionTypeRequest from huaweicloudsdkworkspaceapp.v1.model.list_session_type_response import ListSessionTypeResponse +from huaweicloudsdkworkspaceapp.v1.model.list_sessions_request import ListSessionsRequest +from huaweicloudsdkworkspaceapp.v1.model.list_sessions_response import ListSessionsResponse from huaweicloudsdkworkspaceapp.v1.model.list_share_folder_request import ListShareFolderRequest from huaweicloudsdkworkspaceapp.v1.model.list_share_folder_response import ListShareFolderResponse from huaweicloudsdkworkspaceapp.v1.model.list_storage_assignment_request import ListStorageAssignmentRequest @@ -177,12 +217,15 @@ from huaweicloudsdkworkspaceapp.v1.model.list_user_connection_response import ListUserConnectionResponse from huaweicloudsdkworkspaceapp.v1.model.list_volume_type_request import ListVolumeTypeRequest from huaweicloudsdkworkspaceapp.v1.model.list_volume_type_response import ListVolumeTypeResponse +from huaweicloudsdkworkspaceapp.v1.model.list_warehouse_apps_request import ListWarehouseAppsRequest +from huaweicloudsdkworkspaceapp.v1.model.list_warehouse_apps_response import ListWarehouseAppsResponse from huaweicloudsdkworkspaceapp.v1.model.logoff_user_session_req import LogoffUserSessionReq from huaweicloudsdkworkspaceapp.v1.model.logoff_user_session_request import LogoffUserSessionRequest from huaweicloudsdkworkspaceapp.v1.model.logoff_user_session_response import LogoffUserSessionResponse from huaweicloudsdkworkspaceapp.v1.model.multimedia_bandwidth_control_options import MultimediaBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.multimedia_bandwidth_percentage_options import MultimediaBandwidthPercentageOptions from huaweicloudsdkworkspaceapp.v1.model.nic import Nic +from huaweicloudsdkworkspaceapp.v1.model.obs_policy_statement import ObsPolicyStatement from huaweicloudsdkworkspaceapp.v1.model.os_type_enum import OsTypeEnum from huaweicloudsdkworkspaceapp.v1.model.page_resp import PageResp from huaweicloudsdkworkspaceapp.v1.model.pcsc_bandwidth_control_options import PcscBandwidthControlOptions @@ -211,6 +254,8 @@ from huaweicloudsdkworkspaceapp.v1.model.policies_peripherals_usb_device_common import PoliciesPeripheralsUsbDeviceCommon from huaweicloudsdkworkspaceapp.v1.model.policies_peripherals_usb_device_common_common_options import PoliciesPeripheralsUsbDeviceCommonCommonOptions from huaweicloudsdkworkspaceapp.v1.model.policies_peripherals_usb_port_redirection import PoliciesPeripheralsUsbPortRedirection +from huaweicloudsdkworkspaceapp.v1.model.policy import Policy +from huaweicloudsdkworkspaceapp.v1.model.policy_effect_enum import PolicyEffectEnum from huaweicloudsdkworkspaceapp.v1.model.policy_group import PolicyGroup from huaweicloudsdkworkspaceapp.v1.model.policy_group_for_create import PolicyGroupForCreate from huaweicloudsdkworkspaceapp.v1.model.policy_group_for_update import PolicyGroupForUpdate @@ -227,6 +272,8 @@ from huaweicloudsdkworkspaceapp.v1.model.publishable_app import PublishableApp from huaweicloudsdkworkspaceapp.v1.model.quota_remainder_data import QuotaRemainderData from huaweicloudsdkworkspaceapp.v1.model.quota_resource_type_enum import QuotaResourceTypeEnum +from huaweicloudsdkworkspaceapp.v1.model.recreate_server_image_request import RecreateServerImageRequest +from huaweicloudsdkworkspaceapp.v1.model.recreate_server_image_response import RecreateServerImageResponse from huaweicloudsdkworkspaceapp.v1.model.reinstall_server_req import ReinstallServerReq from huaweicloudsdkworkspaceapp.v1.model.reinstall_server_request import ReinstallServerRequest from huaweicloudsdkworkspaceapp.v1.model.reinstall_server_response import ReinstallServerResponse @@ -240,15 +287,20 @@ from huaweicloudsdkworkspaceapp.v1.model.secure_channel_bandwidth_percentage_options import SecureChannelBandwidthPercentageOptions from huaweicloudsdkworkspaceapp.v1.model.serial_port_redirection_options import SerialPortRedirectionOptions from huaweicloudsdkworkspaceapp.v1.model.server_address import ServerAddress +from huaweicloudsdkworkspaceapp.v1.model.server_data_points import ServerDataPoints from huaweicloudsdkworkspaceapp.v1.model.server_group import ServerGroup from huaweicloudsdkworkspaceapp.v1.model.server_halt_req import ServerHaltReq from huaweicloudsdkworkspaceapp.v1.model.server_halt_type import ServerHaltType from huaweicloudsdkworkspaceapp.v1.model.server_id_set import ServerIdSet +from huaweicloudsdkworkspaceapp.v1.model.server_metric_data import ServerMetricData from huaweicloudsdkworkspaceapp.v1.model.server_status import ServerStatus from huaweicloudsdkworkspaceapp.v1.model.session import Session +from huaweicloudsdkworkspaceapp.v1.model.session_info import SessionInfo from huaweicloudsdkworkspaceapp.v1.model.session_printer_options import SessionPrinterOptions from huaweicloudsdkworkspaceapp.v1.model.session_type_entity import SessionTypeEntity from huaweicloudsdkworkspaceapp.v1.model.share_persistent_storage_claim import SharePersistentStorageClaim +from huaweicloudsdkworkspaceapp.v1.model.show_image_job_request import ShowImageJobRequest +from huaweicloudsdkworkspaceapp.v1.model.show_image_job_response import ShowImageJobResponse from huaweicloudsdkworkspaceapp.v1.model.show_job_detail_request import ShowJobDetailRequest from huaweicloudsdkworkspaceapp.v1.model.show_job_detail_response import ShowJobDetailResponse from huaweicloudsdkworkspaceapp.v1.model.show_job_request import ShowJobRequest @@ -257,6 +309,8 @@ from huaweicloudsdkworkspaceapp.v1.model.show_original_policy_info_response import ShowOriginalPolicyInfoResponse from huaweicloudsdkworkspaceapp.v1.model.show_publishable_app_request import ShowPublishableAppRequest from huaweicloudsdkworkspaceapp.v1.model.show_publishable_app_response import ShowPublishableAppResponse +from huaweicloudsdkworkspaceapp.v1.model.show_server_vnc_request import ShowServerVncRequest +from huaweicloudsdkworkspaceapp.v1.model.show_server_vnc_response import ShowServerVncResponse from huaweicloudsdkworkspaceapp.v1.model.sold_out_info import SoldOutInfo from huaweicloudsdkworkspaceapp.v1.model.storage import Storage from huaweicloudsdkworkspaceapp.v1.model.storage_folder_mount_type import StorageFolderMountType @@ -264,6 +318,7 @@ from huaweicloudsdkworkspaceapp.v1.model.string_set import StringSet from huaweicloudsdkworkspaceapp.v1.model.sub_job_info import SubJobInfo from huaweicloudsdkworkspaceapp.v1.model.target import Target +from huaweicloudsdkworkspaceapp.v1.model.tms_tag import TmsTag from huaweicloudsdkworkspaceapp.v1.model.total_bandwidth_control_options import TotalBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.twain_bandwidth_control_options import TwainBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.twain_bandwidth_percentage_options import TwainBandwidthPercentageOptions @@ -276,6 +331,9 @@ from huaweicloudsdkworkspaceapp.v1.model.update_app_req import UpdateAppReq from huaweicloudsdkworkspaceapp.v1.model.update_app_request import UpdateAppRequest from huaweicloudsdkworkspaceapp.v1.model.update_app_response import UpdateAppResponse +from huaweicloudsdkworkspaceapp.v1.model.update_image_server_req import UpdateImageServerReq +from huaweicloudsdkworkspaceapp.v1.model.update_image_server_request import UpdateImageServerRequest +from huaweicloudsdkworkspaceapp.v1.model.update_image_server_response import UpdateImageServerResponse from huaweicloudsdkworkspaceapp.v1.model.update_policy_group_req import UpdatePolicyGroupReq from huaweicloudsdkworkspaceapp.v1.model.update_policy_group_request import UpdatePolicyGroupRequest from huaweicloudsdkworkspaceapp.v1.model.update_policy_group_response import UpdatePolicyGroupResponse @@ -294,14 +352,21 @@ from huaweicloudsdkworkspaceapp.v1.model.update_tsvi_req import UpdateTsviReq from huaweicloudsdkworkspaceapp.v1.model.update_user_folder_assignment_request import UpdateUserFolderAssignmentRequest from huaweicloudsdkworkspaceapp.v1.model.update_user_folder_assignment_response import UpdateUserFolderAssignmentResponse +from huaweicloudsdkworkspaceapp.v1.model.update_warehouse_app_req import UpdateWarehouseAppReq +from huaweicloudsdkworkspaceapp.v1.model.update_warehouse_app_request import UpdateWarehouseAppRequest +from huaweicloudsdkworkspaceapp.v1.model.update_warehouse_app_response import UpdateWarehouseAppResponse from huaweicloudsdkworkspaceapp.v1.model.upload_app_icon_request import UploadAppIconRequest from huaweicloudsdkworkspaceapp.v1.model.upload_app_icon_request_body import UploadAppIconRequestBody from huaweicloudsdkworkspaceapp.v1.model.upload_app_icon_response import UploadAppIconResponse +from huaweicloudsdkworkspaceapp.v1.model.upload_warehouse_app_icon_request import UploadWarehouseAppIconRequest +from huaweicloudsdkworkspaceapp.v1.model.upload_warehouse_app_icon_request_body import UploadWarehouseAppIconRequestBody +from huaweicloudsdkworkspaceapp.v1.model.upload_warehouse_app_icon_response import UploadWarehouseAppIconResponse from huaweicloudsdkworkspaceapp.v1.model.usb_bandwidth_control_options import UsbBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.usb_bandwidth_percentage_options import UsbBandwidthPercentageOptions from huaweicloudsdkworkspaceapp.v1.model.usb_port_redirection_options import UsbPortRedirectionOptions from huaweicloudsdkworkspaceapp.v1.model.user_assignment import UserAssignment from huaweicloudsdkworkspaceapp.v1.model.user_connection_info import UserConnectionInfo +from huaweicloudsdkworkspaceapp.v1.model.verify_status_enum import VerifyStatusEnum from huaweicloudsdkworkspaceapp.v1.model.virtual_channel import VirtualChannel from huaweicloudsdkworkspaceapp.v1.model.virtual_channel_bandwidth_control_options import VirtualChannelBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.virtual_channel_bandwidth_percentage_options import VirtualChannelBandwidthPercentageOptions @@ -310,5 +375,6 @@ from huaweicloudsdkworkspaceapp.v1.model.volume_type import VolumeType from huaweicloudsdkworkspaceapp.v1.model.volume_type_extra_specs import VolumeTypeExtraSpecs from huaweicloudsdkworkspaceapp.v1.model.volume_type_info import VolumeTypeInfo +from huaweicloudsdkworkspaceapp.v1.model.warehouse_app import WarehouseApp from huaweicloudsdkworkspaceapp.v1.model.wdh_param import WdhParam diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/__init__.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/__init__.py index 51ad0a1071..9497649a6c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/__init__.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/__init__.py @@ -8,6 +8,7 @@ from huaweicloudsdkworkspaceapp.v1.model.add_app_group_authorization_request import AddAppGroupAuthorizationRequest from huaweicloudsdkworkspaceapp.v1.model.add_app_group_authorization_response import AddAppGroupAuthorizationResponse from huaweicloudsdkworkspaceapp.v1.model.app import App +from huaweicloudsdkworkspaceapp.v1.model.app_category_enum import AppCategoryEnum from huaweicloudsdkworkspaceapp.v1.model.app_connection_info import AppConnectionInfo from huaweicloudsdkworkspaceapp.v1.model.app_group import AppGroup from huaweicloudsdkworkspaceapp.v1.model.app_group_authorize_req import AppGroupAuthorizeReq @@ -20,10 +21,17 @@ from huaweicloudsdkworkspaceapp.v1.model.assign_share_folder_req import AssignShareFolderReq from huaweicloudsdkworkspaceapp.v1.model.assign_user_folder_req import AssignUserFolderReq from huaweicloudsdkworkspaceapp.v1.model.assignment import Assignment +from huaweicloudsdkworkspaceapp.v1.model.attach_image_server_app_request import AttachImageServerAppRequest +from huaweicloudsdkworkspaceapp.v1.model.attach_image_server_app_response import AttachImageServerAppResponse +from huaweicloudsdkworkspaceapp.v1.model.attach_server_app_info import AttachServerAppInfo +from huaweicloudsdkworkspaceapp.v1.model.attach_server_app_req import AttachServerAppReq from huaweicloudsdkworkspaceapp.v1.model.attach_type import AttachType from huaweicloudsdkworkspaceapp.v1.model.attachment import Attachment from huaweicloudsdkworkspaceapp.v1.model.authorization import Authorization from huaweicloudsdkworkspaceapp.v1.model.authorization_type_enum import AuthorizationTypeEnum +from huaweicloudsdkworkspaceapp.v1.model.authorize_obs_req import AuthorizeObsReq +from huaweicloudsdkworkspaceapp.v1.model.authorize_obs_request import AuthorizeObsRequest +from huaweicloudsdkworkspaceapp.v1.model.authorize_obs_response import AuthorizeObsResponse from huaweicloudsdkworkspaceapp.v1.model.auto_logout_options import AutoLogoutOptions from huaweicloudsdkworkspaceapp.v1.model.availability_zone_info import AvailabilityZoneInfo from huaweicloudsdkworkspaceapp.v1.model.bandwidth import Bandwidth @@ -34,9 +42,15 @@ from huaweicloudsdkworkspaceapp.v1.model.batch_delete_app_group_authorization_response import BatchDeleteAppGroupAuthorizationResponse from huaweicloudsdkworkspaceapp.v1.model.batch_delete_app_group_request import BatchDeleteAppGroupRequest from huaweicloudsdkworkspaceapp.v1.model.batch_delete_app_group_response import BatchDeleteAppGroupResponse +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_image_server_req import BatchDeleteImageServerReq +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_image_server_request import BatchDeleteImageServerRequest +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_image_server_response import BatchDeleteImageServerResponse from huaweicloudsdkworkspaceapp.v1.model.batch_delete_server_req import BatchDeleteServerReq from huaweicloudsdkworkspaceapp.v1.model.batch_delete_server_request import BatchDeleteServerRequest from huaweicloudsdkworkspaceapp.v1.model.batch_delete_server_response import BatchDeleteServerResponse +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_warehouse_app_req import BatchDeleteWarehouseAppReq +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_warehouse_app_request import BatchDeleteWarehouseAppRequest +from huaweicloudsdkworkspaceapp.v1.model.batch_delete_warehouse_app_response import BatchDeleteWarehouseAppResponse from huaweicloudsdkworkspaceapp.v1.model.batch_migrate_hosts_server_request import BatchMigrateHostsServerRequest from huaweicloudsdkworkspaceapp.v1.model.batch_migrate_hosts_server_response import BatchMigrateHostsServerResponse from huaweicloudsdkworkspaceapp.v1.model.batch_migrate_server_req import BatchMigrateServerReq @@ -73,6 +87,9 @@ from huaweicloudsdkworkspaceapp.v1.model.create_app_server_req import CreateAppServerReq from huaweicloudsdkworkspaceapp.v1.model.create_app_servers_request import CreateAppServersRequest from huaweicloudsdkworkspaceapp.v1.model.create_app_servers_response import CreateAppServersResponse +from huaweicloudsdkworkspaceapp.v1.model.create_image_server_req import CreateImageServerReq +from huaweicloudsdkworkspaceapp.v1.model.create_image_server_request import CreateImageServerRequest +from huaweicloudsdkworkspaceapp.v1.model.create_image_server_response import CreateImageServerResponse from huaweicloudsdkworkspaceapp.v1.model.create_or_update_storage_policy_statement_req import CreateOrUpdateStoragePolicyStatementReq from huaweicloudsdkworkspaceapp.v1.model.create_or_update_storage_policy_statement_request import CreateOrUpdateStoragePolicyStatementRequest from huaweicloudsdkworkspaceapp.v1.model.create_or_update_storage_policy_statement_response import CreateOrUpdateStoragePolicyStatementResponse @@ -89,9 +106,13 @@ from huaweicloudsdkworkspaceapp.v1.model.create_server_group_req import CreateServerGroupReq from huaweicloudsdkworkspaceapp.v1.model.create_server_group_request import CreateServerGroupRequest from huaweicloudsdkworkspaceapp.v1.model.create_server_group_response import CreateServerGroupResponse +from huaweicloudsdkworkspaceapp.v1.model.create_server_image_req import CreateServerImageReq from huaweicloudsdkworkspaceapp.v1.model.create_share_folder_req import CreateShareFolderReq from huaweicloudsdkworkspaceapp.v1.model.create_share_folder_request import CreateShareFolderRequest from huaweicloudsdkworkspaceapp.v1.model.create_share_folder_response import CreateShareFolderResponse +from huaweicloudsdkworkspaceapp.v1.model.create_warehouse_app_req import CreateWarehouseAppReq +from huaweicloudsdkworkspaceapp.v1.model.create_warehouse_app_request import CreateWarehouseAppRequest +from huaweicloudsdkworkspaceapp.v1.model.create_warehouse_app_response import CreateWarehouseAppResponse from huaweicloudsdkworkspaceapp.v1.model.custom_options import CustomOptions from huaweicloudsdkworkspaceapp.v1.model.delete_app_group_req import DeleteAppGroupReq from huaweicloudsdkworkspaceapp.v1.model.delete_persistent_storage_request import DeletePersistentStorageRequest @@ -125,6 +146,17 @@ from huaweicloudsdkworkspaceapp.v1.model.flavor import Flavor from huaweicloudsdkworkspaceapp.v1.model.flavor_link import FlavorLink from huaweicloudsdkworkspaceapp.v1.model.i18n import I18n +from huaweicloudsdkworkspaceapp.v1.model.image_account_info import ImageAccountInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_detail_info import ImageJobDetailInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_detail_status import ImageJobDetailStatus +from huaweicloudsdkworkspaceapp.v1.model.image_job_execute_info import ImageJobExecuteInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_info import ImageJobInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_resource_info import ImageJobResourceInfo +from huaweicloudsdkworkspaceapp.v1.model.image_job_status import ImageJobStatus +from huaweicloudsdkworkspaceapp.v1.model.image_job_type import ImageJobType +from huaweicloudsdkworkspaceapp.v1.model.image_ref import ImageRef +from huaweicloudsdkworkspaceapp.v1.model.image_server import ImageServer +from huaweicloudsdkworkspaceapp.v1.model.image_server_status import ImageServerStatus from huaweicloudsdkworkspaceapp.v1.model.image_type_enum import ImageTypeEnum from huaweicloudsdkworkspaceapp.v1.model.ip_virtual import IpVirtual from huaweicloudsdkworkspaceapp.v1.model.job_detail import JobDetail @@ -144,6 +176,10 @@ from huaweicloudsdkworkspaceapp.v1.model.list_app_group_response import ListAppGroupResponse from huaweicloudsdkworkspaceapp.v1.model.list_availability_zone_request import ListAvailabilityZoneRequest from huaweicloudsdkworkspaceapp.v1.model.list_availability_zone_response import ListAvailabilityZoneResponse +from huaweicloudsdkworkspaceapp.v1.model.list_image_servers_request import ListImageServersRequest +from huaweicloudsdkworkspaceapp.v1.model.list_image_servers_response import ListImageServersResponse +from huaweicloudsdkworkspaceapp.v1.model.list_latest_attached_server_app_request import ListLatestAttachedServerAppRequest +from huaweicloudsdkworkspaceapp.v1.model.list_latest_attached_server_app_response import ListLatestAttachedServerAppResponse from huaweicloudsdkworkspaceapp.v1.model.list_persistent_storage_request import ListPersistentStorageRequest from huaweicloudsdkworkspaceapp.v1.model.list_persistent_storage_response import ListPersistentStorageResponse from huaweicloudsdkworkspaceapp.v1.model.list_policy_group_request import ListPolicyGroupRequest @@ -156,12 +192,16 @@ from huaweicloudsdkworkspaceapp.v1.model.list_published_app_response import ListPublishedAppResponse from huaweicloudsdkworkspaceapp.v1.model.list_server_groups_request import ListServerGroupsRequest from huaweicloudsdkworkspaceapp.v1.model.list_server_groups_response import ListServerGroupsResponse +from huaweicloudsdkworkspaceapp.v1.model.list_server_metric_data_request import ListServerMetricDataRequest +from huaweicloudsdkworkspaceapp.v1.model.list_server_metric_data_response import ListServerMetricDataResponse from huaweicloudsdkworkspaceapp.v1.model.list_servers_request import ListServersRequest from huaweicloudsdkworkspaceapp.v1.model.list_servers_response import ListServersResponse from huaweicloudsdkworkspaceapp.v1.model.list_session_by_user_name_request import ListSessionByUserNameRequest from huaweicloudsdkworkspaceapp.v1.model.list_session_by_user_name_response import ListSessionByUserNameResponse from huaweicloudsdkworkspaceapp.v1.model.list_session_type_request import ListSessionTypeRequest from huaweicloudsdkworkspaceapp.v1.model.list_session_type_response import ListSessionTypeResponse +from huaweicloudsdkworkspaceapp.v1.model.list_sessions_request import ListSessionsRequest +from huaweicloudsdkworkspaceapp.v1.model.list_sessions_response import ListSessionsResponse from huaweicloudsdkworkspaceapp.v1.model.list_share_folder_request import ListShareFolderRequest from huaweicloudsdkworkspaceapp.v1.model.list_share_folder_response import ListShareFolderResponse from huaweicloudsdkworkspaceapp.v1.model.list_storage_assignment_request import ListStorageAssignmentRequest @@ -175,12 +215,15 @@ from huaweicloudsdkworkspaceapp.v1.model.list_user_connection_response import ListUserConnectionResponse from huaweicloudsdkworkspaceapp.v1.model.list_volume_type_request import ListVolumeTypeRequest from huaweicloudsdkworkspaceapp.v1.model.list_volume_type_response import ListVolumeTypeResponse +from huaweicloudsdkworkspaceapp.v1.model.list_warehouse_apps_request import ListWarehouseAppsRequest +from huaweicloudsdkworkspaceapp.v1.model.list_warehouse_apps_response import ListWarehouseAppsResponse from huaweicloudsdkworkspaceapp.v1.model.logoff_user_session_req import LogoffUserSessionReq from huaweicloudsdkworkspaceapp.v1.model.logoff_user_session_request import LogoffUserSessionRequest from huaweicloudsdkworkspaceapp.v1.model.logoff_user_session_response import LogoffUserSessionResponse from huaweicloudsdkworkspaceapp.v1.model.multimedia_bandwidth_control_options import MultimediaBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.multimedia_bandwidth_percentage_options import MultimediaBandwidthPercentageOptions from huaweicloudsdkworkspaceapp.v1.model.nic import Nic +from huaweicloudsdkworkspaceapp.v1.model.obs_policy_statement import ObsPolicyStatement from huaweicloudsdkworkspaceapp.v1.model.os_type_enum import OsTypeEnum from huaweicloudsdkworkspaceapp.v1.model.page_resp import PageResp from huaweicloudsdkworkspaceapp.v1.model.pcsc_bandwidth_control_options import PcscBandwidthControlOptions @@ -209,6 +252,8 @@ from huaweicloudsdkworkspaceapp.v1.model.policies_peripherals_usb_device_common import PoliciesPeripheralsUsbDeviceCommon from huaweicloudsdkworkspaceapp.v1.model.policies_peripherals_usb_device_common_common_options import PoliciesPeripheralsUsbDeviceCommonCommonOptions from huaweicloudsdkworkspaceapp.v1.model.policies_peripherals_usb_port_redirection import PoliciesPeripheralsUsbPortRedirection +from huaweicloudsdkworkspaceapp.v1.model.policy import Policy +from huaweicloudsdkworkspaceapp.v1.model.policy_effect_enum import PolicyEffectEnum from huaweicloudsdkworkspaceapp.v1.model.policy_group import PolicyGroup from huaweicloudsdkworkspaceapp.v1.model.policy_group_for_create import PolicyGroupForCreate from huaweicloudsdkworkspaceapp.v1.model.policy_group_for_update import PolicyGroupForUpdate @@ -225,6 +270,8 @@ from huaweicloudsdkworkspaceapp.v1.model.publishable_app import PublishableApp from huaweicloudsdkworkspaceapp.v1.model.quota_remainder_data import QuotaRemainderData from huaweicloudsdkworkspaceapp.v1.model.quota_resource_type_enum import QuotaResourceTypeEnum +from huaweicloudsdkworkspaceapp.v1.model.recreate_server_image_request import RecreateServerImageRequest +from huaweicloudsdkworkspaceapp.v1.model.recreate_server_image_response import RecreateServerImageResponse from huaweicloudsdkworkspaceapp.v1.model.reinstall_server_req import ReinstallServerReq from huaweicloudsdkworkspaceapp.v1.model.reinstall_server_request import ReinstallServerRequest from huaweicloudsdkworkspaceapp.v1.model.reinstall_server_response import ReinstallServerResponse @@ -238,15 +285,20 @@ from huaweicloudsdkworkspaceapp.v1.model.secure_channel_bandwidth_percentage_options import SecureChannelBandwidthPercentageOptions from huaweicloudsdkworkspaceapp.v1.model.serial_port_redirection_options import SerialPortRedirectionOptions from huaweicloudsdkworkspaceapp.v1.model.server_address import ServerAddress +from huaweicloudsdkworkspaceapp.v1.model.server_data_points import ServerDataPoints from huaweicloudsdkworkspaceapp.v1.model.server_group import ServerGroup from huaweicloudsdkworkspaceapp.v1.model.server_halt_req import ServerHaltReq from huaweicloudsdkworkspaceapp.v1.model.server_halt_type import ServerHaltType from huaweicloudsdkworkspaceapp.v1.model.server_id_set import ServerIdSet +from huaweicloudsdkworkspaceapp.v1.model.server_metric_data import ServerMetricData from huaweicloudsdkworkspaceapp.v1.model.server_status import ServerStatus from huaweicloudsdkworkspaceapp.v1.model.session import Session +from huaweicloudsdkworkspaceapp.v1.model.session_info import SessionInfo from huaweicloudsdkworkspaceapp.v1.model.session_printer_options import SessionPrinterOptions from huaweicloudsdkworkspaceapp.v1.model.session_type_entity import SessionTypeEntity from huaweicloudsdkworkspaceapp.v1.model.share_persistent_storage_claim import SharePersistentStorageClaim +from huaweicloudsdkworkspaceapp.v1.model.show_image_job_request import ShowImageJobRequest +from huaweicloudsdkworkspaceapp.v1.model.show_image_job_response import ShowImageJobResponse from huaweicloudsdkworkspaceapp.v1.model.show_job_detail_request import ShowJobDetailRequest from huaweicloudsdkworkspaceapp.v1.model.show_job_detail_response import ShowJobDetailResponse from huaweicloudsdkworkspaceapp.v1.model.show_job_request import ShowJobRequest @@ -255,6 +307,8 @@ from huaweicloudsdkworkspaceapp.v1.model.show_original_policy_info_response import ShowOriginalPolicyInfoResponse from huaweicloudsdkworkspaceapp.v1.model.show_publishable_app_request import ShowPublishableAppRequest from huaweicloudsdkworkspaceapp.v1.model.show_publishable_app_response import ShowPublishableAppResponse +from huaweicloudsdkworkspaceapp.v1.model.show_server_vnc_request import ShowServerVncRequest +from huaweicloudsdkworkspaceapp.v1.model.show_server_vnc_response import ShowServerVncResponse from huaweicloudsdkworkspaceapp.v1.model.sold_out_info import SoldOutInfo from huaweicloudsdkworkspaceapp.v1.model.storage import Storage from huaweicloudsdkworkspaceapp.v1.model.storage_folder_mount_type import StorageFolderMountType @@ -262,6 +316,7 @@ from huaweicloudsdkworkspaceapp.v1.model.string_set import StringSet from huaweicloudsdkworkspaceapp.v1.model.sub_job_info import SubJobInfo from huaweicloudsdkworkspaceapp.v1.model.target import Target +from huaweicloudsdkworkspaceapp.v1.model.tms_tag import TmsTag from huaweicloudsdkworkspaceapp.v1.model.total_bandwidth_control_options import TotalBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.twain_bandwidth_control_options import TwainBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.twain_bandwidth_percentage_options import TwainBandwidthPercentageOptions @@ -274,6 +329,9 @@ from huaweicloudsdkworkspaceapp.v1.model.update_app_req import UpdateAppReq from huaweicloudsdkworkspaceapp.v1.model.update_app_request import UpdateAppRequest from huaweicloudsdkworkspaceapp.v1.model.update_app_response import UpdateAppResponse +from huaweicloudsdkworkspaceapp.v1.model.update_image_server_req import UpdateImageServerReq +from huaweicloudsdkworkspaceapp.v1.model.update_image_server_request import UpdateImageServerRequest +from huaweicloudsdkworkspaceapp.v1.model.update_image_server_response import UpdateImageServerResponse from huaweicloudsdkworkspaceapp.v1.model.update_policy_group_req import UpdatePolicyGroupReq from huaweicloudsdkworkspaceapp.v1.model.update_policy_group_request import UpdatePolicyGroupRequest from huaweicloudsdkworkspaceapp.v1.model.update_policy_group_response import UpdatePolicyGroupResponse @@ -292,14 +350,21 @@ from huaweicloudsdkworkspaceapp.v1.model.update_tsvi_req import UpdateTsviReq from huaweicloudsdkworkspaceapp.v1.model.update_user_folder_assignment_request import UpdateUserFolderAssignmentRequest from huaweicloudsdkworkspaceapp.v1.model.update_user_folder_assignment_response import UpdateUserFolderAssignmentResponse +from huaweicloudsdkworkspaceapp.v1.model.update_warehouse_app_req import UpdateWarehouseAppReq +from huaweicloudsdkworkspaceapp.v1.model.update_warehouse_app_request import UpdateWarehouseAppRequest +from huaweicloudsdkworkspaceapp.v1.model.update_warehouse_app_response import UpdateWarehouseAppResponse from huaweicloudsdkworkspaceapp.v1.model.upload_app_icon_request import UploadAppIconRequest from huaweicloudsdkworkspaceapp.v1.model.upload_app_icon_request_body import UploadAppIconRequestBody from huaweicloudsdkworkspaceapp.v1.model.upload_app_icon_response import UploadAppIconResponse +from huaweicloudsdkworkspaceapp.v1.model.upload_warehouse_app_icon_request import UploadWarehouseAppIconRequest +from huaweicloudsdkworkspaceapp.v1.model.upload_warehouse_app_icon_request_body import UploadWarehouseAppIconRequestBody +from huaweicloudsdkworkspaceapp.v1.model.upload_warehouse_app_icon_response import UploadWarehouseAppIconResponse from huaweicloudsdkworkspaceapp.v1.model.usb_bandwidth_control_options import UsbBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.usb_bandwidth_percentage_options import UsbBandwidthPercentageOptions from huaweicloudsdkworkspaceapp.v1.model.usb_port_redirection_options import UsbPortRedirectionOptions from huaweicloudsdkworkspaceapp.v1.model.user_assignment import UserAssignment from huaweicloudsdkworkspaceapp.v1.model.user_connection_info import UserConnectionInfo +from huaweicloudsdkworkspaceapp.v1.model.verify_status_enum import VerifyStatusEnum from huaweicloudsdkworkspaceapp.v1.model.virtual_channel import VirtualChannel from huaweicloudsdkworkspaceapp.v1.model.virtual_channel_bandwidth_control_options import VirtualChannelBandwidthControlOptions from huaweicloudsdkworkspaceapp.v1.model.virtual_channel_bandwidth_percentage_options import VirtualChannelBandwidthPercentageOptions @@ -308,4 +373,5 @@ from huaweicloudsdkworkspaceapp.v1.model.volume_type import VolumeType from huaweicloudsdkworkspaceapp.v1.model.volume_type_extra_specs import VolumeTypeExtraSpecs from huaweicloudsdkworkspaceapp.v1.model.volume_type_info import VolumeTypeInfo +from huaweicloudsdkworkspaceapp.v1.model.warehouse_app import WarehouseApp from huaweicloudsdkworkspaceapp.v1.model.wdh_param import WdhParam diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_category_enum.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_category_enum.py new file mode 100644 index 0000000000..e41f5f9bc1 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_category_enum.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AppCategoryEnum: + """ + allowed enum values + """ + GAME = "GAME" + BUSSINESS_INTELLIGENCE = "BUSSINESS_INTELLIGENCE" + SECURE_STORAGE = "SECURE_STORAGE" + MULTIMEDIA_AND_CODING = "MULTIMEDIA_AND_CODING" + PROJECT_MANAGEMENT = "PROJECT_MANAGEMENT" + PRODUCTIVITY_AND_COLLABORATION = "PRODUCTIVITY_AND_COLLABORATION" + WEB_ADN_APPLICATION = "WEB_ADN_APPLICATION" + GRAPHIC_DESIGN = "GRAPHIC_DESIGN" + OTHER = "OTHER" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """AppCategoryEnum + + 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, AppCategoryEnum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py index 6e0a13f36b..601a51a518 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server.py @@ -51,7 +51,9 @@ class AppServer: 'vm_status': 'AppServerStatus', 'task_status': 'AppServerTaskStatus', 'freeze': 'list[CbcFreezeInfo]', - 'host_address': 'list[EcsNetWork]' + 'host_address': 'list[EcsNetWork]', + 'enterprise_project_id': 'str', + 'tags': 'list[TmsTag]' } attribute_map = { @@ -89,10 +91,12 @@ class AppServer: 'vm_status': 'vm_status', 'task_status': 'task_status', 'freeze': 'freeze', - 'host_address': 'host_address' + 'host_address': 'host_address', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags' } - def __init__(self, id=None, name=None, machine_name=None, description=None, server_group_id=None, flavor=None, status=None, create_time=None, update_time=None, image_id=None, availability_zone=None, domain=None, ou_name=None, sid=None, instance_id=None, os_version=None, os_type=None, order_id=None, maintain_status=None, scaling_auto_create=None, job_id=None, job_type=None, job_status=None, job_time=None, resource_pool_id=None, resource_pool_type=None, host_id=None, server_group_name=None, product_info=None, metadata=None, session_count=None, vm_status=None, task_status=None, freeze=None, host_address=None): + def __init__(self, id=None, name=None, machine_name=None, description=None, server_group_id=None, flavor=None, status=None, create_time=None, update_time=None, image_id=None, availability_zone=None, domain=None, ou_name=None, sid=None, instance_id=None, os_version=None, os_type=None, order_id=None, maintain_status=None, scaling_auto_create=None, job_id=None, job_type=None, job_status=None, job_time=None, resource_pool_id=None, resource_pool_type=None, host_id=None, server_group_name=None, product_info=None, metadata=None, session_count=None, vm_status=None, task_status=None, freeze=None, host_address=None, enterprise_project_id=None, tags=None): """AppServer The model defined in huaweicloud sdk @@ -167,6 +171,10 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv :type freeze: list[:class:`huaweicloudsdkworkspaceapp.v1.CbcFreezeInfo`] :param host_address: vpc和子网信息。 :type host_address: list[:class:`huaweicloudsdkworkspaceapp.v1.EcsNetWork`] + :param enterprise_project_id: 企业项目ID,仅企业项目会返回 + :type enterprise_project_id: str + :param tags: 标签信息 + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] """ @@ -206,6 +214,8 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv self._task_status = None self._freeze = None self._host_address = None + self._enterprise_project_id = None + self._tags = None self.discriminator = None if id is not None: @@ -278,6 +288,10 @@ def __init__(self, id=None, name=None, machine_name=None, description=None, serv self.freeze = freeze if host_address is not None: self.host_address = host_address + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags @property def id(self): @@ -1021,6 +1035,50 @@ def host_address(self, host_address): """ self._host_address = host_address + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this AppServer. + + 企业项目ID,仅企业项目会返回 + + :return: The enterprise_project_id of this AppServer. + :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 AppServer. + + 企业项目ID,仅企业项目会返回 + + :param enterprise_project_id: The enterprise_project_id of this AppServer. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this AppServer. + + 标签信息 + + :return: The tags of this AppServer. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this AppServer. + + 标签信息 + + :param tags: The tags of this AppServer. + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + self._tags = tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_status.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_status.py index 0853472e7f..7da7c07b6f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_status.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_status.py @@ -25,6 +25,8 @@ class AppServerStatus: DELETING = "DELETING" FREEZE = "FREEZE" BUILD_IMAGE = "BUILD_IMAGE" + BUILD_SNAPSHOT = "BUILD_SNAPSHOT" + RESTORE_SNAPSHOT = "RESTORE_SNAPSHOT" NULL = "null" """ Attributes: diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_task_status.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_task_status.py index b645faf153..c8c79cd0ba 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_task_status.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/app_server_task_status.py @@ -42,6 +42,8 @@ class AppServerTaskStatus: UPGRAD_ACCESS_AGENT_SUCCESS = "upgrad_access_agent_success" MIGRATE_FAILED = "migrate_failed" BUILD_IMAGE = "build_image" + BUILD_SNAPSHOT = "build_snapshot" + RESTORE_SNAPSHOT = "restore_snapshot" NULL = "null" """ Attributes: diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_request.py new file mode 100644 index 0000000000..d1abb55ba6 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AttachImageServerAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str', + 'body': 'AttachServerAppReq' + } + + attribute_map = { + 'server_id': 'server_id', + 'body': 'body' + } + + def __init__(self, server_id=None, body=None): + """AttachImageServerAppRequest + + The model defined in huaweicloud sdk + + :param server_id: 镜像实例唯一标识。 + :type server_id: str + :param body: Body of the AttachImageServerAppRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.AttachServerAppReq` + """ + + + + self._server_id = None + self._body = None + self.discriminator = None + + self.server_id = server_id + if body is not None: + self.body = body + + @property + def server_id(self): + """Gets the server_id of this AttachImageServerAppRequest. + + 镜像实例唯一标识。 + + :return: The server_id of this AttachImageServerAppRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this AttachImageServerAppRequest. + + 镜像实例唯一标识。 + + :param server_id: The server_id of this AttachImageServerAppRequest. + :type server_id: str + """ + self._server_id = server_id + + @property + def body(self): + """Gets the body of this AttachImageServerAppRequest. + + :return: The body of this AttachImageServerAppRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AttachServerAppReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AttachImageServerAppRequest. + + :param body: The body of this AttachImageServerAppRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.AttachServerAppReq` + """ + 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, AttachImageServerAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_response.py new file mode 100644 index 0000000000..6b5070f68f --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_image_server_app_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AttachImageServerAppResponse(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 = { + 'uri': 'str' + } + + attribute_map = { + 'uri': 'uri' + } + + def __init__(self, uri=None): + """AttachImageServerAppResponse + + The model defined in huaweicloud sdk + + :param uri: 分发软件信息的URI。 + :type uri: str + """ + + super(AttachImageServerAppResponse, self).__init__() + + self._uri = None + self.discriminator = None + + if uri is not None: + self.uri = uri + + @property + def uri(self): + """Gets the uri of this AttachImageServerAppResponse. + + 分发软件信息的URI。 + + :return: The uri of this AttachImageServerAppResponse. + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this AttachImageServerAppResponse. + + 分发软件信息的URI。 + + :param uri: The uri of this AttachImageServerAppResponse. + :type uri: str + """ + self._uri = uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AttachImageServerAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_info.py new file mode 100644 index 0000000000..03b7fdf545 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AttachServerAppInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'app_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'app_id': 'app_id' + } + + def __init__(self, id=None, app_id=None): + """AttachServerAppInfo + + The model defined in huaweicloud sdk + + :param id: 分发软件版本ID。 + :type id: str + :param app_id: 分发软件ID。 + :type app_id: str + """ + + + + self._id = None + self._app_id = None + self.discriminator = None + + if id is not None: + self.id = id + if app_id is not None: + self.app_id = app_id + + @property + def id(self): + """Gets the id of this AttachServerAppInfo. + + 分发软件版本ID。 + + :return: The id of this AttachServerAppInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AttachServerAppInfo. + + 分发软件版本ID。 + + :param id: The id of this AttachServerAppInfo. + :type id: str + """ + self._id = id + + @property + def app_id(self): + """Gets the app_id of this AttachServerAppInfo. + + 分发软件ID。 + + :return: The app_id of this AttachServerAppInfo. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this AttachServerAppInfo. + + 分发软件ID。 + + :param app_id: The app_id of this AttachServerAppInfo. + :type app_id: str + """ + self._app_id = app_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AttachServerAppInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_req.py new file mode 100644 index 0000000000..9aa7d4b669 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/attach_server_app_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AttachServerAppReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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[str]' + } + + attribute_map = { + 'items': 'items' + } + + def __init__(self, items=None): + """AttachServerAppReq + + The model defined in huaweicloud sdk + + :param items: 云应用仓库软件唯一标识请求列表。 + :type items: list[str] + """ + + + + self._items = None + self.discriminator = None + + self.items = items + + @property + def items(self): + """Gets the items of this AttachServerAppReq. + + 云应用仓库软件唯一标识请求列表。 + + :return: The items of this AttachServerAppReq. + :rtype: list[str] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this AttachServerAppReq. + + 云应用仓库软件唯一标识请求列表。 + + :param items: The items of this AttachServerAppReq. + :type items: list[str] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AttachServerAppReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_req.py new file mode 100644 index 0000000000..fe77ce587b --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuthorizeObsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'app_file_name': 'str' + } + + attribute_map = { + 'app_file_name': 'app_file_name' + } + + def __init__(self, app_file_name=None): + """AuthorizeObsReq + + The model defined in huaweicloud sdk + + :param app_file_name: 应用名称,名称需满足如下规则: 1. 文件名前缀由可见字符和空格组成,且不能为全空格。 2. 长度范围1~255个字符。 3. 结尾必须是`.msi`或者`.exe`或者`.zip`或者`.rar`。 + :type app_file_name: str + """ + + + + self._app_file_name = None + self.discriminator = None + + self.app_file_name = app_file_name + + @property + def app_file_name(self): + """Gets the app_file_name of this AuthorizeObsReq. + + 应用名称,名称需满足如下规则: 1. 文件名前缀由可见字符和空格组成,且不能为全空格。 2. 长度范围1~255个字符。 3. 结尾必须是`.msi`或者`.exe`或者`.zip`或者`.rar`。 + + :return: The app_file_name of this AuthorizeObsReq. + :rtype: str + """ + return self._app_file_name + + @app_file_name.setter + def app_file_name(self, app_file_name): + """Sets the app_file_name of this AuthorizeObsReq. + + 应用名称,名称需满足如下规则: 1. 文件名前缀由可见字符和空格组成,且不能为全空格。 2. 长度范围1~255个字符。 3. 结尾必须是`.msi`或者`.exe`或者`.zip`或者`.rar`。 + + :param app_file_name: The app_file_name of this AuthorizeObsReq. + :type app_file_name: str + """ + self._app_file_name = app_file_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, AuthorizeObsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_request.py new file mode 100644 index 0000000000..1c05fc66d8 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuthorizeObsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'AuthorizeObsReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """AuthorizeObsRequest + + The model defined in huaweicloud sdk + + :param body: Body of the AuthorizeObsRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this AuthorizeObsRequest. + + :return: The body of this AuthorizeObsRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AuthorizeObsRequest. + + :param body: The body of this AuthorizeObsRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsReq` + """ + 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, AuthorizeObsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_response.py new file mode 100644 index 0000000000..c0c18372b9 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/authorize_obs_response.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuthorizeObsResponse(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 = { + 'server_end_point': 'str', + 'bucket_name': 'str', + 'directory': 'str', + 'ak': 'str', + 'sk': 'str', + 'expires_at': 'str', + 'policy': 'Policy', + 'security_token': 'str' + } + + attribute_map = { + 'server_end_point': 'server_end_point', + 'bucket_name': 'bucket_name', + 'directory': 'directory', + 'ak': 'ak', + 'sk': 'sk', + 'expires_at': 'expires_at', + 'policy': 'policy', + 'security_token': 'security_token' + } + + def __init__(self, server_end_point=None, bucket_name=None, directory=None, ak=None, sk=None, expires_at=None, policy=None, security_token=None): + """AuthorizeObsResponse + + The model defined in huaweicloud sdk + + :param server_end_point: 访问的服务终端节点。 + :type server_end_point: str + :param bucket_name: 存放的桶名称。 + :type bucket_name: str + :param directory: 存放目录。 + :type directory: str + :param ak: 获取的AK。。 + :type ak: str + :param sk: 获取的SK。 + :type sk: str + :param expires_at: AK/SK和securitytoken的过期时间。。 + :type expires_at: str + :param policy: + :type policy: :class:`huaweicloudsdkworkspaceapp.v1.Policy` + :param security_token: 安全校验token,将所获的AK、SK等信息进行加密后的字符串。 + :type security_token: str + """ + + super(AuthorizeObsResponse, self).__init__() + + self._server_end_point = None + self._bucket_name = None + self._directory = None + self._ak = None + self._sk = None + self._expires_at = None + self._policy = None + self._security_token = None + self.discriminator = None + + if server_end_point is not None: + self.server_end_point = server_end_point + if bucket_name is not None: + self.bucket_name = bucket_name + if directory is not None: + self.directory = directory + if ak is not None: + self.ak = ak + if sk is not None: + self.sk = sk + if expires_at is not None: + self.expires_at = expires_at + if policy is not None: + self.policy = policy + if security_token is not None: + self.security_token = security_token + + @property + def server_end_point(self): + """Gets the server_end_point of this AuthorizeObsResponse. + + 访问的服务终端节点。 + + :return: The server_end_point of this AuthorizeObsResponse. + :rtype: str + """ + return self._server_end_point + + @server_end_point.setter + def server_end_point(self, server_end_point): + """Sets the server_end_point of this AuthorizeObsResponse. + + 访问的服务终端节点。 + + :param server_end_point: The server_end_point of this AuthorizeObsResponse. + :type server_end_point: str + """ + self._server_end_point = server_end_point + + @property + def bucket_name(self): + """Gets the bucket_name of this AuthorizeObsResponse. + + 存放的桶名称。 + + :return: The bucket_name of this AuthorizeObsResponse. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this AuthorizeObsResponse. + + 存放的桶名称。 + + :param bucket_name: The bucket_name of this AuthorizeObsResponse. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def directory(self): + """Gets the directory of this AuthorizeObsResponse. + + 存放目录。 + + :return: The directory of this AuthorizeObsResponse. + :rtype: str + """ + return self._directory + + @directory.setter + def directory(self, directory): + """Sets the directory of this AuthorizeObsResponse. + + 存放目录。 + + :param directory: The directory of this AuthorizeObsResponse. + :type directory: str + """ + self._directory = directory + + @property + def ak(self): + """Gets the ak of this AuthorizeObsResponse. + + 获取的AK。。 + + :return: The ak of this AuthorizeObsResponse. + :rtype: str + """ + return self._ak + + @ak.setter + def ak(self, ak): + """Sets the ak of this AuthorizeObsResponse. + + 获取的AK。。 + + :param ak: The ak of this AuthorizeObsResponse. + :type ak: str + """ + self._ak = ak + + @property + def sk(self): + """Gets the sk of this AuthorizeObsResponse. + + 获取的SK。 + + :return: The sk of this AuthorizeObsResponse. + :rtype: str + """ + return self._sk + + @sk.setter + def sk(self, sk): + """Sets the sk of this AuthorizeObsResponse. + + 获取的SK。 + + :param sk: The sk of this AuthorizeObsResponse. + :type sk: str + """ + self._sk = sk + + @property + def expires_at(self): + """Gets the expires_at of this AuthorizeObsResponse. + + AK/SK和securitytoken的过期时间。。 + + :return: The expires_at of this AuthorizeObsResponse. + :rtype: str + """ + return self._expires_at + + @expires_at.setter + def expires_at(self, expires_at): + """Sets the expires_at of this AuthorizeObsResponse. + + AK/SK和securitytoken的过期时间。。 + + :param expires_at: The expires_at of this AuthorizeObsResponse. + :type expires_at: str + """ + self._expires_at = expires_at + + @property + def policy(self): + """Gets the policy of this AuthorizeObsResponse. + + :return: The policy of this AuthorizeObsResponse. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.Policy` + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this AuthorizeObsResponse. + + :param policy: The policy of this AuthorizeObsResponse. + :type policy: :class:`huaweicloudsdkworkspaceapp.v1.Policy` + """ + self._policy = policy + + @property + def security_token(self): + """Gets the security_token of this AuthorizeObsResponse. + + 安全校验token,将所获的AK、SK等信息进行加密后的字符串。 + + :return: The security_token of this AuthorizeObsResponse. + :rtype: str + """ + return self._security_token + + @security_token.setter + def security_token(self, security_token): + """Sets the security_token of this AuthorizeObsResponse. + + 安全校验token,将所获的AK、SK等信息进行加密后的字符串。 + + :param security_token: The security_token of this AuthorizeObsResponse. + :type security_token: str + """ + self._security_token = security_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizeObsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py index c1ebc0c525..6bffab39b1 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/base_server_group.py @@ -32,7 +32,13 @@ class BaseServerGroup: 'app_type': 'AppTypeEnum', 'create_time': 'datetime', 'update_time': 'datetime', - 'storage_mount_policy': 'StorageFolderMountType' + 'storage_mount_policy': 'StorageFolderMountType', + 'enterprise_project_id': 'str', + 'primary_server_group_ids': 'list[str]', + 'secondary_server_group_ids': 'list[str]', + 'server_group_status': 'bool', + 'site_type': 'str', + 'site_id': 'str' } attribute_map = { @@ -51,10 +57,16 @@ class BaseServerGroup: 'app_type': 'app_type', 'create_time': 'create_time', 'update_time': 'update_time', - 'storage_mount_policy': 'storage_mount_policy' + 'storage_mount_policy': 'storage_mount_policy', + 'enterprise_project_id': 'enterprise_project_id', + 'primary_server_group_ids': 'primary_server_group_ids', + 'secondary_server_group_ids': 'secondary_server_group_ids', + 'server_group_status': 'server_group_status', + 'site_type': 'site_type', + 'site_id': 'site_id' } - def __init__(self, id=None, name=None, description=None, image_id=None, os_type=None, product_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, is_vdi=None, extra_session_type=None, extra_session_size=None, app_type=None, create_time=None, update_time=None, storage_mount_policy=None): + def __init__(self, id=None, name=None, description=None, image_id=None, os_type=None, product_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, is_vdi=None, extra_session_type=None, extra_session_size=None, app_type=None, create_time=None, update_time=None, storage_mount_policy=None, enterprise_project_id=None, primary_server_group_ids=None, secondary_server_group_ids=None, server_group_status=None, site_type=None, site_id=None): """BaseServerGroup The model defined in huaweicloud sdk @@ -91,6 +103,18 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type update_time: datetime :param storage_mount_policy: :type storage_mount_policy: :class:`huaweicloudsdkworkspaceapp.v1.StorageFolderMountType` + :param enterprise_project_id: 企业项目ID(0表示默认企业项目Id) + :type enterprise_project_id: str + :param primary_server_group_ids: 主服务器组id列表。 + :type primary_server_group_ids: list[str] + :param secondary_server_group_ids: 备服务器组id列表。 + :type secondary_server_group_ids: list[str] + :param server_group_status: 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + :type server_group_status: bool + :param site_type: 站点类型 - CENTER/IES + :type site_type: str + :param site_id: 站点id + :type site_id: str """ @@ -111,6 +135,12 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self._create_time = None self._update_time = None self._storage_mount_policy = None + self._enterprise_project_id = None + self._primary_server_group_ids = None + self._secondary_server_group_ids = None + self._server_group_status = None + self._site_type = None + self._site_id = None self.discriminator = None if id is not None: @@ -145,6 +175,18 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self.update_time = update_time if storage_mount_policy is not None: self.storage_mount_policy = storage_mount_policy + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if primary_server_group_ids is not None: + self.primary_server_group_ids = primary_server_group_ids + if secondary_server_group_ids is not None: + self.secondary_server_group_ids = secondary_server_group_ids + if server_group_status is not None: + self.server_group_status = server_group_status + if site_type is not None: + self.site_type = site_type + if site_id is not None: + self.site_id = site_id @property def id(self): @@ -478,6 +520,138 @@ def storage_mount_policy(self, storage_mount_policy): """ self._storage_mount_policy = storage_mount_policy + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this BaseServerGroup. + + 企业项目ID(0表示默认企业项目Id) + + :return: The enterprise_project_id of this BaseServerGroup. + :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 BaseServerGroup. + + 企业项目ID(0表示默认企业项目Id) + + :param enterprise_project_id: The enterprise_project_id of this BaseServerGroup. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def primary_server_group_ids(self): + """Gets the primary_server_group_ids of this BaseServerGroup. + + 主服务器组id列表。 + + :return: The primary_server_group_ids of this BaseServerGroup. + :rtype: list[str] + """ + return self._primary_server_group_ids + + @primary_server_group_ids.setter + def primary_server_group_ids(self, primary_server_group_ids): + """Sets the primary_server_group_ids of this BaseServerGroup. + + 主服务器组id列表。 + + :param primary_server_group_ids: The primary_server_group_ids of this BaseServerGroup. + :type primary_server_group_ids: list[str] + """ + self._primary_server_group_ids = primary_server_group_ids + + @property + def secondary_server_group_ids(self): + """Gets the secondary_server_group_ids of this BaseServerGroup. + + 备服务器组id列表。 + + :return: The secondary_server_group_ids of this BaseServerGroup. + :rtype: list[str] + """ + return self._secondary_server_group_ids + + @secondary_server_group_ids.setter + def secondary_server_group_ids(self, secondary_server_group_ids): + """Sets the secondary_server_group_ids of this BaseServerGroup. + + 备服务器组id列表。 + + :param secondary_server_group_ids: The secondary_server_group_ids of this BaseServerGroup. + :type secondary_server_group_ids: list[str] + """ + self._secondary_server_group_ids = secondary_server_group_ids + + @property + def server_group_status(self): + """Gets the server_group_status of this BaseServerGroup. + + 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + + :return: The server_group_status of this BaseServerGroup. + :rtype: bool + """ + return self._server_group_status + + @server_group_status.setter + def server_group_status(self, server_group_status): + """Sets the server_group_status of this BaseServerGroup. + + 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + + :param server_group_status: The server_group_status of this BaseServerGroup. + :type server_group_status: bool + """ + self._server_group_status = server_group_status + + @property + def site_type(self): + """Gets the site_type of this BaseServerGroup. + + 站点类型 - CENTER/IES + + :return: The site_type of this BaseServerGroup. + :rtype: str + """ + return self._site_type + + @site_type.setter + def site_type(self, site_type): + """Sets the site_type of this BaseServerGroup. + + 站点类型 - CENTER/IES + + :param site_type: The site_type of this BaseServerGroup. + :type site_type: str + """ + self._site_type = site_type + + @property + def site_id(self): + """Gets the site_id of this BaseServerGroup. + + 站点id + + :return: The site_id of this BaseServerGroup. + :rtype: str + """ + return self._site_id + + @site_id.setter + def site_id(self, site_id): + """Sets the site_id of this BaseServerGroup. + + 站点id + + :param site_id: The site_id of this BaseServerGroup. + :type site_id: str + """ + self._site_id = site_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_req.py new file mode 100644 index 0000000000..5f9c4a292f --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_req.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteImageServerReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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[str]', + 'recursive': 'bool' + } + + attribute_map = { + 'items': 'items', + 'recursive': 'recursive' + } + + def __init__(self, items=None, recursive=None): + """BatchDeleteImageServerReq + + The model defined in huaweicloud sdk + + :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20] + :type items: list[str] + :param recursive: 是否同时删除镜像实例关联资源: **⚠ 警告: 关联资源删除,对应的应用将不可用** * `true` 同时删除关联资源,包括APS服务器组,APS服务器,应用组相关资源。镜像产物相关信息保留。 * `false` 只删除镜像实例记录,保留关联资源。 + :type recursive: bool + """ + + + + self._items = None + self._recursive = None + self.discriminator = None + + self.items = items + if recursive is not None: + self.recursive = recursive + + @property + def items(self): + """Gets the items of this BatchDeleteImageServerReq. + + 批量唯一标识请求列表,一次请求数量区间 [1, 20] + + :return: The items of this BatchDeleteImageServerReq. + :rtype: list[str] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this BatchDeleteImageServerReq. + + 批量唯一标识请求列表,一次请求数量区间 [1, 20] + + :param items: The items of this BatchDeleteImageServerReq. + :type items: list[str] + """ + self._items = items + + @property + def recursive(self): + """Gets the recursive of this BatchDeleteImageServerReq. + + 是否同时删除镜像实例关联资源: **⚠ 警告: 关联资源删除,对应的应用将不可用** * `true` 同时删除关联资源,包括APS服务器组,APS服务器,应用组相关资源。镜像产物相关信息保留。 * `false` 只删除镜像实例记录,保留关联资源。 + + :return: The recursive of this BatchDeleteImageServerReq. + :rtype: bool + """ + return self._recursive + + @recursive.setter + def recursive(self, recursive): + """Sets the recursive of this BatchDeleteImageServerReq. + + 是否同时删除镜像实例关联资源: **⚠ 警告: 关联资源删除,对应的应用将不可用** * `true` 同时删除关联资源,包括APS服务器组,APS服务器,应用组相关资源。镜像产物相关信息保留。 * `false` 只删除镜像实例记录,保留关联资源。 + + :param recursive: The recursive of this BatchDeleteImageServerReq. + :type recursive: bool + """ + self._recursive = recursive + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchDeleteImageServerReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_request.py new file mode 100644 index 0000000000..394b9c6403 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteImageServerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BatchDeleteImageServerReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchDeleteImageServerRequest + + The model defined in huaweicloud sdk + + :param body: Body of the BatchDeleteImageServerRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchDeleteImageServerRequest. + + :return: The body of this BatchDeleteImageServerRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchDeleteImageServerRequest. + + :param body: The body of this BatchDeleteImageServerRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerReq` + """ + 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, BatchDeleteImageServerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_response.py new file mode 100644 index 0000000000..3afc65b6ee --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_image_server_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteImageServerResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """BatchDeleteImageServerResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + super(BatchDeleteImageServerResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this BatchDeleteImageServerResponse. + + 任务ID。 + + :return: The job_id of this BatchDeleteImageServerResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this BatchDeleteImageServerResponse. + + 任务ID。 + + :param job_id: The job_id of this BatchDeleteImageServerResponse. + :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, BatchDeleteImageServerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_req.py new file mode 100644 index 0000000000..064b1f2606 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_req.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteWarehouseAppReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ids': 'list[str]' + } + + attribute_map = { + 'ids': 'ids' + } + + def __init__(self, ids=None): + """BatchDeleteWarehouseAppReq + + The model defined in huaweicloud sdk + + :param ids: 应用ID,最多同时操作10个。 + :type ids: list[str] + """ + + + + self._ids = None + self.discriminator = None + + self.ids = ids + + @property + def ids(self): + """Gets the ids of this BatchDeleteWarehouseAppReq. + + 应用ID,最多同时操作10个。 + + :return: The ids of this BatchDeleteWarehouseAppReq. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this BatchDeleteWarehouseAppReq. + + 应用ID,最多同时操作10个。 + + :param ids: The ids of this BatchDeleteWarehouseAppReq. + :type ids: list[str] + """ + self._ids = ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchDeleteWarehouseAppReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_request.py new file mode 100644 index 0000000000..830327f048 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteWarehouseAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BatchDeleteWarehouseAppReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchDeleteWarehouseAppRequest + + The model defined in huaweicloud sdk + + :param body: Body of the BatchDeleteWarehouseAppRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchDeleteWarehouseAppRequest. + + :return: The body of this BatchDeleteWarehouseAppRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchDeleteWarehouseAppRequest. + + :param body: The body of this BatchDeleteWarehouseAppRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppReq` + """ + 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, BatchDeleteWarehouseAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_response.py new file mode 100644 index 0000000000..73cb30b043 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_delete_warehouse_app_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteWarehouseAppResponse(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): + """BatchDeleteWarehouseAppResponse + + The model defined in huaweicloud sdk + + """ + + super(BatchDeleteWarehouseAppResponse, 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, BatchDeleteWarehouseAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py index f5605535e2..4228999858 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/batch_rejoin_domain_req.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20] :type items: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this BatchRejoinDomainReq. - 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + 批量唯一标识请求列表,一次请求数量区间 [1, 20] :return: The items of this BatchRejoinDomainReq. :rtype: list[str] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this BatchRejoinDomainReq. - 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + 批量唯一标识请求列表,一次请求数量区间 [1, 20] :param items: The items of this BatchRejoinDomainReq. :type items: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py index ca8de19b37..017c7bd411 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/check_quota_request.py @@ -18,6 +18,7 @@ class CheckQuotaRequest: openapi_types = { 'product_id': 'str', + 'flavor_id': 'str', 'subscription_num': 'int', 'disk_size': 'int', 'disk_num': 'int', @@ -28,6 +29,7 @@ class CheckQuotaRequest: attribute_map = { 'product_id': 'product_id', + 'flavor_id': 'flavor_id', 'subscription_num': 'subscription_num', 'disk_size': 'disk_size', 'disk_num': 'disk_num', @@ -36,13 +38,15 @@ class CheckQuotaRequest: 'cluster_id': 'cluster_id' } - def __init__(self, product_id=None, subscription_num=None, disk_size=None, disk_num=None, is_period=None, deh_id=None, cluster_id=None): + def __init__(self, product_id=None, flavor_id=None, subscription_num=None, disk_size=None, disk_num=None, is_period=None, deh_id=None, cluster_id=None): """CheckQuotaRequest The model defined in huaweicloud sdk :param product_id: 产品id。 :type product_id: str + :param flavor_id: 规格id。 + :type flavor_id: str :param subscription_num: 订单需要创建总实例数、订购数量。 :type subscription_num: int :param disk_size: 单台实例所需的磁盘大小(最大系统盘1块*1024、数据盘10块*32768)。 @@ -60,6 +64,7 @@ def __init__(self, product_id=None, subscription_num=None, disk_size=None, disk_ self._product_id = None + self._flavor_id = None self._subscription_num = None self._disk_size = None self._disk_num = None @@ -69,6 +74,8 @@ def __init__(self, product_id=None, subscription_num=None, disk_size=None, disk_ self.discriminator = None self.product_id = product_id + if flavor_id is not None: + self.flavor_id = flavor_id self.subscription_num = subscription_num self.disk_size = disk_size self.disk_num = disk_num @@ -101,6 +108,28 @@ def product_id(self, product_id): """ self._product_id = product_id + @property + def flavor_id(self): + """Gets the flavor_id of this CheckQuotaRequest. + + 规格id。 + + :return: The flavor_id of this CheckQuotaRequest. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this CheckQuotaRequest. + + 规格id。 + + :param flavor_id: The flavor_id of this CheckQuotaRequest. + :type flavor_id: str + """ + self._flavor_id = flavor_id + @property def subscription_num(self): """Gets the subscription_num of this CheckQuotaRequest. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py index dac76dd0d9..e4bfcdf9ad 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_app_server_req.py @@ -24,6 +24,7 @@ class CreateAppServerReq: 'nics': 'list[Nic]', 'ou_name': 'str', 'product_id': 'str', + 'flavor_id': 'str', 'os_type': 'str', 'root_volume': 'Volume', 'scheduler_hints': 'WdhParam', @@ -41,6 +42,7 @@ class CreateAppServerReq: 'nics': 'nics', 'ou_name': 'ou_name', 'product_id': 'product_id', + 'flavor_id': 'flavor_id', 'os_type': 'os_type', 'root_volume': 'root_volume', 'scheduler_hints': 'scheduler_hints', @@ -50,7 +52,7 @@ class CreateAppServerReq: 'create_server_extend_param': 'create_server_extend_param' } - def __init__(self, type=None, server_group_id=None, availability_zone=None, subscription_num=None, nics=None, ou_name=None, product_id=None, os_type=None, root_volume=None, scheduler_hints=None, subnet_id=None, vpc_id=None, update_access_agent=None, create_server_extend_param=None): + def __init__(self, type=None, server_group_id=None, availability_zone=None, subscription_num=None, nics=None, ou_name=None, product_id=None, flavor_id=None, os_type=None, root_volume=None, scheduler_hints=None, subnet_id=None, vpc_id=None, update_access_agent=None, create_server_extend_param=None): """CreateAppServerReq The model defined in huaweicloud sdk @@ -69,6 +71,8 @@ def __init__(self, type=None, server_group_id=None, availability_zone=None, subs :type ou_name: str :param product_id: 产品ID。 > - 获取方式详见产品套餐管理ListProduct:\"GET /v1/{project_id}/product\"。 :type product_id: str + :param flavor_id: 规格ID。 + :type flavor_id: str :param os_type: 操作系统类型,当前仅支持Windows。 :type os_type: str :param root_volume: @@ -94,6 +98,7 @@ def __init__(self, type=None, server_group_id=None, availability_zone=None, subs self._nics = None self._ou_name = None self._product_id = None + self._flavor_id = None self._os_type = None self._root_volume = None self._scheduler_hints = None @@ -113,6 +118,8 @@ def __init__(self, type=None, server_group_id=None, availability_zone=None, subs if ou_name is not None: self.ou_name = ou_name self.product_id = product_id + if flavor_id is not None: + self.flavor_id = flavor_id if os_type is not None: self.os_type = os_type self.root_volume = root_volume @@ -279,6 +286,28 @@ def product_id(self, product_id): """ self._product_id = product_id + @property + def flavor_id(self): + """Gets the flavor_id of this CreateAppServerReq. + + 规格ID。 + + :return: The flavor_id of this CreateAppServerReq. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this CreateAppServerReq. + + 规格ID。 + + :param flavor_id: The flavor_id of this CreateAppServerReq. + :type flavor_id: str + """ + self._flavor_id = flavor_id + @property def os_type(self): """Gets the os_type of this CreateAppServerReq. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_req.py new file mode 100644 index 0000000000..562b153b80 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_req.py @@ -0,0 +1,610 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateImageServerReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'root_volume': 'Volume', + 'image_ref': 'ImageRef', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'product_id': 'str', + 'flavor_id': 'str', + 'availability_zone': 'str', + 'attach_apps': 'list[str]', + 'authorize_accounts': 'list[ImageAccountInfo]', + 'ou_name': 'str', + 'is_vdi': 'bool', + 'scheduler_hints': 'WdhParam', + 'extra_session_type': 'ExtraSessionTypeEnum', + 'extra_session_size': 'int', + 'route_policy': 'RoutePolicy', + 'tags': 'list[TmsTag]', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'root_volume': 'root_volume', + 'image_ref': 'image_ref', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'product_id': 'product_id', + 'flavor_id': 'flavor_id', + 'availability_zone': 'availability_zone', + 'attach_apps': 'attach_apps', + 'authorize_accounts': 'authorize_accounts', + 'ou_name': 'ou_name', + 'is_vdi': 'is_vdi', + 'scheduler_hints': 'scheduler_hints', + 'extra_session_type': 'extra_session_type', + 'extra_session_size': 'extra_session_size', + 'route_policy': 'route_policy', + 'tags': 'tags', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, name=None, description=None, root_volume=None, image_ref=None, vpc_id=None, subnet_id=None, product_id=None, flavor_id=None, availability_zone=None, attach_apps=None, authorize_accounts=None, ou_name=None, is_vdi=None, scheduler_hints=None, extra_session_type=None, extra_session_size=None, route_policy=None, tags=None, enterprise_project_id=None): + """CreateImageServerReq + + The model defined in huaweicloud sdk + + :param name: 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + :type name: str + :param description: 镜像实例描述 + :type description: str + :param root_volume: + :type root_volume: :class:`huaweicloudsdkworkspaceapp.v1.Volume` + :param image_ref: + :type image_ref: :class:`huaweicloudsdkworkspaceapp.v1.ImageRef` + :param vpc_id: 镜像实例所属虚拟私有云唯一标识。 + :type vpc_id: str + :param subnet_id: 镜像实例网卡对应的子网唯一标识 + :type subnet_id: str + :param product_id: 镜像实例产品套餐ID + :type product_id: str + :param flavor_id: 规格ID。 + :type flavor_id: str + :param availability_zone: 镜像实例的可用区,空值表示随机选取可用区 + :type availability_zone: str + :param attach_apps: 云应用仓库软件唯一标识请求列表 + :type attach_apps: list[str] + :param authorize_accounts: 应用组授权用户, * 限制用户类型:'USER' - 用户 + :type authorize_accounts: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageAccountInfo`] + :param ou_name: 组织名称 + :type ou_name: str + :param is_vdi: 是否为vdi单会话模式 + :type is_vdi: bool + :param scheduler_hints: + :type scheduler_hints: :class:`huaweicloudsdkworkspaceapp.v1.WdhParam` + :param extra_session_type: + :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` + :param extra_session_size: 需要付费的会话数,单位/个 + :type extra_session_size: int + :param route_policy: + :type route_policy: :class:`huaweicloudsdkworkspaceapp.v1.RoutePolicy` + :param tags: 标签信息,最多包含20个key,不允许重复 + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + :param enterprise_project_id: **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + :type enterprise_project_id: str + """ + + + + self._name = None + self._description = None + self._root_volume = None + self._image_ref = None + self._vpc_id = None + self._subnet_id = None + self._product_id = None + self._flavor_id = None + self._availability_zone = None + self._attach_apps = None + self._authorize_accounts = None + self._ou_name = None + self._is_vdi = None + self._scheduler_hints = None + self._extra_session_type = None + self._extra_session_size = None + self._route_policy = None + self._tags = None + self._enterprise_project_id = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.root_volume = root_volume + self.image_ref = image_ref + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.product_id = product_id + if flavor_id is not None: + self.flavor_id = flavor_id + if availability_zone is not None: + self.availability_zone = availability_zone + if attach_apps is not None: + self.attach_apps = attach_apps + self.authorize_accounts = authorize_accounts + if ou_name is not None: + self.ou_name = ou_name + if is_vdi is not None: + self.is_vdi = is_vdi + if scheduler_hints is not None: + self.scheduler_hints = scheduler_hints + if extra_session_type is not None: + self.extra_session_type = extra_session_type + if extra_session_size is not None: + self.extra_session_size = extra_session_size + if route_policy is not None: + self.route_policy = route_policy + if tags is not None: + self.tags = tags + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this CreateImageServerReq. + + 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + + :return: The name of this CreateImageServerReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateImageServerReq. + + 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + + :param name: The name of this CreateImageServerReq. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateImageServerReq. + + 镜像实例描述 + + :return: The description of this CreateImageServerReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateImageServerReq. + + 镜像实例描述 + + :param description: The description of this CreateImageServerReq. + :type description: str + """ + self._description = description + + @property + def root_volume(self): + """Gets the root_volume of this CreateImageServerReq. + + :return: The root_volume of this CreateImageServerReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.Volume` + """ + return self._root_volume + + @root_volume.setter + def root_volume(self, root_volume): + """Sets the root_volume of this CreateImageServerReq. + + :param root_volume: The root_volume of this CreateImageServerReq. + :type root_volume: :class:`huaweicloudsdkworkspaceapp.v1.Volume` + """ + self._root_volume = root_volume + + @property + def image_ref(self): + """Gets the image_ref of this CreateImageServerReq. + + :return: The image_ref of this CreateImageServerReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageRef` + """ + return self._image_ref + + @image_ref.setter + def image_ref(self, image_ref): + """Sets the image_ref of this CreateImageServerReq. + + :param image_ref: The image_ref of this CreateImageServerReq. + :type image_ref: :class:`huaweicloudsdkworkspaceapp.v1.ImageRef` + """ + self._image_ref = image_ref + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateImageServerReq. + + 镜像实例所属虚拟私有云唯一标识。 + + :return: The vpc_id of this CreateImageServerReq. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateImageServerReq. + + 镜像实例所属虚拟私有云唯一标识。 + + :param vpc_id: The vpc_id of this CreateImageServerReq. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this CreateImageServerReq. + + 镜像实例网卡对应的子网唯一标识 + + :return: The subnet_id of this CreateImageServerReq. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this CreateImageServerReq. + + 镜像实例网卡对应的子网唯一标识 + + :param subnet_id: The subnet_id of this CreateImageServerReq. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def product_id(self): + """Gets the product_id of this CreateImageServerReq. + + 镜像实例产品套餐ID + + :return: The product_id of this CreateImageServerReq. + :rtype: str + """ + return self._product_id + + @product_id.setter + def product_id(self, product_id): + """Sets the product_id of this CreateImageServerReq. + + 镜像实例产品套餐ID + + :param product_id: The product_id of this CreateImageServerReq. + :type product_id: str + """ + self._product_id = product_id + + @property + def flavor_id(self): + """Gets the flavor_id of this CreateImageServerReq. + + 规格ID。 + + :return: The flavor_id of this CreateImageServerReq. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this CreateImageServerReq. + + 规格ID。 + + :param flavor_id: The flavor_id of this CreateImageServerReq. + :type flavor_id: str + """ + self._flavor_id = flavor_id + + @property + def availability_zone(self): + """Gets the availability_zone of this CreateImageServerReq. + + 镜像实例的可用区,空值表示随机选取可用区 + + :return: The availability_zone of this CreateImageServerReq. + :rtype: str + """ + return self._availability_zone + + @availability_zone.setter + def availability_zone(self, availability_zone): + """Sets the availability_zone of this CreateImageServerReq. + + 镜像实例的可用区,空值表示随机选取可用区 + + :param availability_zone: The availability_zone of this CreateImageServerReq. + :type availability_zone: str + """ + self._availability_zone = availability_zone + + @property + def attach_apps(self): + """Gets the attach_apps of this CreateImageServerReq. + + 云应用仓库软件唯一标识请求列表 + + :return: The attach_apps of this CreateImageServerReq. + :rtype: list[str] + """ + return self._attach_apps + + @attach_apps.setter + def attach_apps(self, attach_apps): + """Sets the attach_apps of this CreateImageServerReq. + + 云应用仓库软件唯一标识请求列表 + + :param attach_apps: The attach_apps of this CreateImageServerReq. + :type attach_apps: list[str] + """ + self._attach_apps = attach_apps + + @property + def authorize_accounts(self): + """Gets the authorize_accounts of this CreateImageServerReq. + + 应用组授权用户, * 限制用户类型:'USER' - 用户 + + :return: The authorize_accounts of this CreateImageServerReq. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageAccountInfo`] + """ + return self._authorize_accounts + + @authorize_accounts.setter + def authorize_accounts(self, authorize_accounts): + """Sets the authorize_accounts of this CreateImageServerReq. + + 应用组授权用户, * 限制用户类型:'USER' - 用户 + + :param authorize_accounts: The authorize_accounts of this CreateImageServerReq. + :type authorize_accounts: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageAccountInfo`] + """ + self._authorize_accounts = authorize_accounts + + @property + def ou_name(self): + """Gets the ou_name of this CreateImageServerReq. + + 组织名称 + + :return: The ou_name of this CreateImageServerReq. + :rtype: str + """ + return self._ou_name + + @ou_name.setter + def ou_name(self, ou_name): + """Sets the ou_name of this CreateImageServerReq. + + 组织名称 + + :param ou_name: The ou_name of this CreateImageServerReq. + :type ou_name: str + """ + self._ou_name = ou_name + + @property + def is_vdi(self): + """Gets the is_vdi of this CreateImageServerReq. + + 是否为vdi单会话模式 + + :return: The is_vdi of this CreateImageServerReq. + :rtype: bool + """ + return self._is_vdi + + @is_vdi.setter + def is_vdi(self, is_vdi): + """Sets the is_vdi of this CreateImageServerReq. + + 是否为vdi单会话模式 + + :param is_vdi: The is_vdi of this CreateImageServerReq. + :type is_vdi: bool + """ + self._is_vdi = is_vdi + + @property + def scheduler_hints(self): + """Gets the scheduler_hints of this CreateImageServerReq. + + :return: The scheduler_hints of this CreateImageServerReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.WdhParam` + """ + return self._scheduler_hints + + @scheduler_hints.setter + def scheduler_hints(self, scheduler_hints): + """Sets the scheduler_hints of this CreateImageServerReq. + + :param scheduler_hints: The scheduler_hints of this CreateImageServerReq. + :type scheduler_hints: :class:`huaweicloudsdkworkspaceapp.v1.WdhParam` + """ + self._scheduler_hints = scheduler_hints + + @property + def extra_session_type(self): + """Gets the extra_session_type of this CreateImageServerReq. + + :return: The extra_session_type of this CreateImageServerReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` + """ + return self._extra_session_type + + @extra_session_type.setter + def extra_session_type(self, extra_session_type): + """Sets the extra_session_type of this CreateImageServerReq. + + :param extra_session_type: The extra_session_type of this CreateImageServerReq. + :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` + """ + self._extra_session_type = extra_session_type + + @property + def extra_session_size(self): + """Gets the extra_session_size of this CreateImageServerReq. + + 需要付费的会话数,单位/个 + + :return: The extra_session_size of this CreateImageServerReq. + :rtype: int + """ + return self._extra_session_size + + @extra_session_size.setter + def extra_session_size(self, extra_session_size): + """Sets the extra_session_size of this CreateImageServerReq. + + 需要付费的会话数,单位/个 + + :param extra_session_size: The extra_session_size of this CreateImageServerReq. + :type extra_session_size: int + """ + self._extra_session_size = extra_session_size + + @property + def route_policy(self): + """Gets the route_policy of this CreateImageServerReq. + + :return: The route_policy of this CreateImageServerReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.RoutePolicy` + """ + return self._route_policy + + @route_policy.setter + def route_policy(self, route_policy): + """Sets the route_policy of this CreateImageServerReq. + + :param route_policy: The route_policy of this CreateImageServerReq. + :type route_policy: :class:`huaweicloudsdkworkspaceapp.v1.RoutePolicy` + """ + self._route_policy = route_policy + + @property + def tags(self): + """Gets the tags of this CreateImageServerReq. + + 标签信息,最多包含20个key,不允许重复 + + :return: The tags of this CreateImageServerReq. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateImageServerReq. + + 标签信息,最多包含20个key,不允许重复 + + :param tags: The tags of this CreateImageServerReq. + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + self._tags = tags + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateImageServerReq. + + **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + + :return: The enterprise_project_id of this CreateImageServerReq. + :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 CreateImageServerReq. + + **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + + :param enterprise_project_id: The enterprise_project_id of this CreateImageServerReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateImageServerReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_request.py new file mode 100644 index 0000000000..22d9018858 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateImageServerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_transaction_id': 'str', + 'body': 'CreateImageServerReq' + } + + attribute_map = { + 'service_transaction_id': 'Service-Transaction-Id', + 'body': 'body' + } + + def __init__(self, service_transaction_id=None, body=None): + """CreateImageServerRequest + + The model defined in huaweicloud sdk + + :param service_transaction_id: CBC接口回调时,请求头里带上的业务ID。 + :type service_transaction_id: str + :param body: Body of the CreateImageServerRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerReq` + """ + + + + self._service_transaction_id = None + self._body = None + self.discriminator = None + + if service_transaction_id is not None: + self.service_transaction_id = service_transaction_id + if body is not None: + self.body = body + + @property + def service_transaction_id(self): + """Gets the service_transaction_id of this CreateImageServerRequest. + + CBC接口回调时,请求头里带上的业务ID。 + + :return: The service_transaction_id of this CreateImageServerRequest. + :rtype: str + """ + return self._service_transaction_id + + @service_transaction_id.setter + def service_transaction_id(self, service_transaction_id): + """Sets the service_transaction_id of this CreateImageServerRequest. + + CBC接口回调时,请求头里带上的业务ID。 + + :param service_transaction_id: The service_transaction_id of this CreateImageServerRequest. + :type service_transaction_id: str + """ + self._service_transaction_id = service_transaction_id + + @property + def body(self): + """Gets the body of this CreateImageServerRequest. + + :return: The body of this CreateImageServerRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateImageServerRequest. + + :param body: The body of this CreateImageServerRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerReq` + """ + 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, CreateImageServerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_response.py new file mode 100644 index 0000000000..c21022c630 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_image_server_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateImageServerResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """CreateImageServerResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + super(CreateImageServerResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this CreateImageServerResponse. + + 任务ID。 + + :return: The job_id of this CreateImageServerResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateImageServerResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateImageServerResponse. + :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, CreateImageServerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py index e987ed2aa6..e780ae6a31 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_req.py @@ -25,6 +25,7 @@ class CreateServerGroupReq: 'description': 'str', 'route_policy': 'RoutePolicy', 'product_id': 'str', + 'flavor_id': 'str', 'vpc_id': 'str', 'subnet_id': 'str', 'system_disk_type': 'VolumeType', @@ -36,7 +37,11 @@ class CreateServerGroupReq: 'is_vdi': 'bool', 'app_type': 'AppTypeEnum', 'extra_session_type': 'ExtraSessionTypeEnum', - 'extra_session_size': 'int' + 'extra_session_size': 'int', + 'tags': 'list[TmsTag]', + 'enterprise_project_id': 'str', + 'primary_server_group_id': 'str', + 'server_group_status': 'bool' } attribute_map = { @@ -48,6 +53,7 @@ class CreateServerGroupReq: 'description': 'description', 'route_policy': 'route_policy', 'product_id': 'product_id', + 'flavor_id': 'flavor_id', 'vpc_id': 'vpc_id', 'subnet_id': 'subnet_id', 'system_disk_type': 'system_disk_type', @@ -59,10 +65,14 @@ class CreateServerGroupReq: 'is_vdi': 'is_vdi', 'app_type': 'app_type', 'extra_session_type': 'extra_session_type', - 'extra_session_size': 'extra_session_size' + 'extra_session_size': 'extra_session_size', + 'tags': 'tags', + 'enterprise_project_id': 'enterprise_project_id', + 'primary_server_group_id': 'primary_server_group_id', + 'server_group_status': 'server_group_status' } - def __init__(self, name=None, image_id=None, image_product_id=None, image_type=None, os_type=None, description=None, route_policy=None, product_id=None, vpc_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, ou_name=None, cluster_id=None, availability_zone=None, ip_virtual=None, is_vdi=None, app_type=None, extra_session_type=None, extra_session_size=None): + def __init__(self, name=None, image_id=None, image_product_id=None, image_type=None, os_type=None, description=None, route_policy=None, product_id=None, flavor_id=None, vpc_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, ou_name=None, cluster_id=None, availability_zone=None, ip_virtual=None, is_vdi=None, app_type=None, extra_session_type=None, extra_session_size=None, tags=None, enterprise_project_id=None, primary_server_group_id=None, server_group_status=None): """CreateServerGroupReq The model defined in huaweicloud sdk @@ -83,6 +93,8 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N :type route_policy: :class:`huaweicloudsdkworkspaceapp.v1.RoutePolicy` :param product_id: 产品ID。 > - 获取方式详见产品套餐管理ListProduct:\"GET /v1/{project_id}/product\"。 :type product_id: str + :param flavor_id: 规格ID。 + :type flavor_id: str :param vpc_id: 虚拟私有云ID。 :type vpc_id: str :param subnet_id: 网卡对应的子网ID。 @@ -107,6 +119,14 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N :type extra_session_type: :class:`huaweicloudsdkworkspaceapp.v1.ExtraSessionTypeEnum` :param extra_session_size: 付费会话数,单位/个。 :type extra_session_size: int + :param tags: 标签信息,最多包含20个key,不允许重复 + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + :param enterprise_project_id: 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + :type enterprise_project_id: str + :param primary_server_group_id: 主服务器组id,绑定主服务器组,则创建的是备服务器。 + :type primary_server_group_id: str + :param server_group_status: 是否启用服务器组。 + :type server_group_status: bool """ @@ -119,6 +139,7 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N self._description = None self._route_policy = None self._product_id = None + self._flavor_id = None self._vpc_id = None self._subnet_id = None self._system_disk_type = None @@ -131,6 +152,10 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N self._app_type = None self._extra_session_type = None self._extra_session_size = None + self._tags = None + self._enterprise_project_id = None + self._primary_server_group_id = None + self._server_group_status = None self.discriminator = None self.name = name @@ -144,6 +169,8 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N if route_policy is not None: self.route_policy = route_policy self.product_id = product_id + if flavor_id is not None: + self.flavor_id = flavor_id self.vpc_id = vpc_id self.subnet_id = subnet_id self.system_disk_type = system_disk_type @@ -164,6 +191,14 @@ def __init__(self, name=None, image_id=None, image_product_id=None, image_type=N self.extra_session_type = extra_session_type if extra_session_size is not None: self.extra_session_size = extra_session_size + if tags is not None: + self.tags = tags + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if primary_server_group_id is not None: + self.primary_server_group_id = primary_server_group_id + if server_group_status is not None: + self.server_group_status = server_group_status @property def name(self): @@ -329,6 +364,28 @@ def product_id(self, product_id): """ self._product_id = product_id + @property + def flavor_id(self): + """Gets the flavor_id of this CreateServerGroupReq. + + 规格ID。 + + :return: The flavor_id of this CreateServerGroupReq. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this CreateServerGroupReq. + + 规格ID。 + + :param flavor_id: The flavor_id of this CreateServerGroupReq. + :type flavor_id: str + """ + self._flavor_id = flavor_id + @property def vpc_id(self): """Gets the vpc_id of this CreateServerGroupReq. @@ -577,6 +634,94 @@ def extra_session_size(self, extra_session_size): """ self._extra_session_size = extra_session_size + @property + def tags(self): + """Gets the tags of this CreateServerGroupReq. + + 标签信息,最多包含20个key,不允许重复 + + :return: The tags of this CreateServerGroupReq. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateServerGroupReq. + + 标签信息,最多包含20个key,不允许重复 + + :param tags: The tags of this CreateServerGroupReq. + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + self._tags = tags + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateServerGroupReq. + + 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + + :return: The enterprise_project_id of this CreateServerGroupReq. + :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 CreateServerGroupReq. + + 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + + :param enterprise_project_id: The enterprise_project_id of this CreateServerGroupReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def primary_server_group_id(self): + """Gets the primary_server_group_id of this CreateServerGroupReq. + + 主服务器组id,绑定主服务器组,则创建的是备服务器。 + + :return: The primary_server_group_id of this CreateServerGroupReq. + :rtype: str + """ + return self._primary_server_group_id + + @primary_server_group_id.setter + def primary_server_group_id(self, primary_server_group_id): + """Sets the primary_server_group_id of this CreateServerGroupReq. + + 主服务器组id,绑定主服务器组,则创建的是备服务器。 + + :param primary_server_group_id: The primary_server_group_id of this CreateServerGroupReq. + :type primary_server_group_id: str + """ + self._primary_server_group_id = primary_server_group_id + + @property + def server_group_status(self): + """Gets the server_group_status of this CreateServerGroupReq. + + 是否启用服务器组。 + + :return: The server_group_status of this CreateServerGroupReq. + :rtype: bool + """ + return self._server_group_status + + @server_group_status.setter + def server_group_status(self, server_group_status): + """Sets the server_group_status of this CreateServerGroupReq. + + 是否启用服务器组。 + + :param server_group_status: The server_group_status of this CreateServerGroupReq. + :type server_group_status: bool + """ + self._server_group_status = server_group_status + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py index b8c4dc32cc..b989e0a347 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_group_response.py @@ -34,6 +34,12 @@ class CreateServerGroupResponse(SdkResponse): 'create_time': 'datetime', 'update_time': 'datetime', 'storage_mount_policy': 'StorageFolderMountType', + 'enterprise_project_id': 'str', + 'primary_server_group_ids': 'list[str]', + 'secondary_server_group_ids': 'list[str]', + 'server_group_status': 'bool', + 'site_type': 'str', + 'site_id': 'str', 'app_server_flavor_count': 'int', 'app_server_count': 'int', 'app_group_count': 'int', @@ -41,6 +47,7 @@ class CreateServerGroupResponse(SdkResponse): 'product_info': 'ProductInfo', 'subnet_name': 'str', 'scaling_policy': 'ScalingPolicy', + 'tags': 'list[TmsTag]', 'ou_name': 'str' } @@ -61,6 +68,12 @@ class CreateServerGroupResponse(SdkResponse): 'create_time': 'create_time', 'update_time': 'update_time', 'storage_mount_policy': 'storage_mount_policy', + 'enterprise_project_id': 'enterprise_project_id', + 'primary_server_group_ids': 'primary_server_group_ids', + 'secondary_server_group_ids': 'secondary_server_group_ids', + 'server_group_status': 'server_group_status', + 'site_type': 'site_type', + 'site_id': 'site_id', 'app_server_flavor_count': 'app_server_flavor_count', 'app_server_count': 'app_server_count', 'app_group_count': 'app_group_count', @@ -68,10 +81,11 @@ class CreateServerGroupResponse(SdkResponse): 'product_info': 'product_info', 'subnet_name': 'subnet_name', 'scaling_policy': 'scaling_policy', + 'tags': 'tags', 'ou_name': 'ou_name' } - def __init__(self, id=None, name=None, description=None, image_id=None, os_type=None, product_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, is_vdi=None, extra_session_type=None, extra_session_size=None, app_type=None, create_time=None, update_time=None, storage_mount_policy=None, app_server_flavor_count=None, app_server_count=None, app_group_count=None, image_name=None, product_info=None, subnet_name=None, scaling_policy=None, ou_name=None): + def __init__(self, id=None, name=None, description=None, image_id=None, os_type=None, product_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, is_vdi=None, extra_session_type=None, extra_session_size=None, app_type=None, create_time=None, update_time=None, storage_mount_policy=None, enterprise_project_id=None, primary_server_group_ids=None, secondary_server_group_ids=None, server_group_status=None, site_type=None, site_id=None, app_server_flavor_count=None, app_server_count=None, app_group_count=None, image_name=None, product_info=None, subnet_name=None, scaling_policy=None, tags=None, ou_name=None): """CreateServerGroupResponse The model defined in huaweicloud sdk @@ -108,6 +122,18 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type update_time: datetime :param storage_mount_policy: :type storage_mount_policy: :class:`huaweicloudsdkworkspaceapp.v1.StorageFolderMountType` + :param enterprise_project_id: 企业项目ID(0表示默认企业项目Id) + :type enterprise_project_id: str + :param primary_server_group_ids: 主服务器组id列表。 + :type primary_server_group_ids: list[str] + :param secondary_server_group_ids: 备服务器组id列表。 + :type secondary_server_group_ids: list[str] + :param server_group_status: 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + :type server_group_status: bool + :param site_type: 站点类型 - CENTER/IES + :type site_type: str + :param site_id: 站点id + :type site_id: str :param app_server_flavor_count: 服务器配置总数量。 :type app_server_flavor_count: int :param app_server_count: 服务器总数量。 @@ -122,6 +148,8 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type subnet_name: str :param scaling_policy: :type scaling_policy: :class:`huaweicloudsdkworkspaceapp.v1.ScalingPolicy` + :param tags: 标签信息 + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] :param ou_name: 默认组织名称。 :type ou_name: str """ @@ -144,6 +172,12 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self._create_time = None self._update_time = None self._storage_mount_policy = None + self._enterprise_project_id = None + self._primary_server_group_ids = None + self._secondary_server_group_ids = None + self._server_group_status = None + self._site_type = None + self._site_id = None self._app_server_flavor_count = None self._app_server_count = None self._app_group_count = None @@ -151,6 +185,7 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self._product_info = None self._subnet_name = None self._scaling_policy = None + self._tags = None self._ou_name = None self.discriminator = None @@ -186,6 +221,18 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self.update_time = update_time if storage_mount_policy is not None: self.storage_mount_policy = storage_mount_policy + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if primary_server_group_ids is not None: + self.primary_server_group_ids = primary_server_group_ids + if secondary_server_group_ids is not None: + self.secondary_server_group_ids = secondary_server_group_ids + if server_group_status is not None: + self.server_group_status = server_group_status + if site_type is not None: + self.site_type = site_type + if site_id is not None: + self.site_id = site_id if app_server_flavor_count is not None: self.app_server_flavor_count = app_server_flavor_count if app_server_count is not None: @@ -200,6 +247,8 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self.subnet_name = subnet_name if scaling_policy is not None: self.scaling_policy = scaling_policy + if tags is not None: + self.tags = tags if ou_name is not None: self.ou_name = ou_name @@ -535,6 +584,138 @@ def storage_mount_policy(self, storage_mount_policy): """ self._storage_mount_policy = storage_mount_policy + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateServerGroupResponse. + + 企业项目ID(0表示默认企业项目Id) + + :return: The enterprise_project_id of this CreateServerGroupResponse. + :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 CreateServerGroupResponse. + + 企业项目ID(0表示默认企业项目Id) + + :param enterprise_project_id: The enterprise_project_id of this CreateServerGroupResponse. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def primary_server_group_ids(self): + """Gets the primary_server_group_ids of this CreateServerGroupResponse. + + 主服务器组id列表。 + + :return: The primary_server_group_ids of this CreateServerGroupResponse. + :rtype: list[str] + """ + return self._primary_server_group_ids + + @primary_server_group_ids.setter + def primary_server_group_ids(self, primary_server_group_ids): + """Sets the primary_server_group_ids of this CreateServerGroupResponse. + + 主服务器组id列表。 + + :param primary_server_group_ids: The primary_server_group_ids of this CreateServerGroupResponse. + :type primary_server_group_ids: list[str] + """ + self._primary_server_group_ids = primary_server_group_ids + + @property + def secondary_server_group_ids(self): + """Gets the secondary_server_group_ids of this CreateServerGroupResponse. + + 备服务器组id列表。 + + :return: The secondary_server_group_ids of this CreateServerGroupResponse. + :rtype: list[str] + """ + return self._secondary_server_group_ids + + @secondary_server_group_ids.setter + def secondary_server_group_ids(self, secondary_server_group_ids): + """Sets the secondary_server_group_ids of this CreateServerGroupResponse. + + 备服务器组id列表。 + + :param secondary_server_group_ids: The secondary_server_group_ids of this CreateServerGroupResponse. + :type secondary_server_group_ids: list[str] + """ + self._secondary_server_group_ids = secondary_server_group_ids + + @property + def server_group_status(self): + """Gets the server_group_status of this CreateServerGroupResponse. + + 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + + :return: The server_group_status of this CreateServerGroupResponse. + :rtype: bool + """ + return self._server_group_status + + @server_group_status.setter + def server_group_status(self, server_group_status): + """Sets the server_group_status of this CreateServerGroupResponse. + + 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + + :param server_group_status: The server_group_status of this CreateServerGroupResponse. + :type server_group_status: bool + """ + self._server_group_status = server_group_status + + @property + def site_type(self): + """Gets the site_type of this CreateServerGroupResponse. + + 站点类型 - CENTER/IES + + :return: The site_type of this CreateServerGroupResponse. + :rtype: str + """ + return self._site_type + + @site_type.setter + def site_type(self, site_type): + """Sets the site_type of this CreateServerGroupResponse. + + 站点类型 - CENTER/IES + + :param site_type: The site_type of this CreateServerGroupResponse. + :type site_type: str + """ + self._site_type = site_type + + @property + def site_id(self): + """Gets the site_id of this CreateServerGroupResponse. + + 站点id + + :return: The site_id of this CreateServerGroupResponse. + :rtype: str + """ + return self._site_id + + @site_id.setter + def site_id(self, site_id): + """Sets the site_id of this CreateServerGroupResponse. + + 站点id + + :param site_id: The site_id of this CreateServerGroupResponse. + :type site_id: str + """ + self._site_id = site_id + @property def app_server_flavor_count(self): """Gets the app_server_flavor_count of this CreateServerGroupResponse. @@ -681,6 +862,28 @@ def scaling_policy(self, scaling_policy): """ self._scaling_policy = scaling_policy + @property + def tags(self): + """Gets the tags of this CreateServerGroupResponse. + + 标签信息 + + :return: The tags of this CreateServerGroupResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateServerGroupResponse. + + 标签信息 + + :param tags: The tags of this CreateServerGroupResponse. + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + self._tags = tags + @property def ou_name(self): """Gets the ou_name of this CreateServerGroupResponse. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_image_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_image_req.py new file mode 100644 index 0000000000..44ada58e34 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_server_image_req.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateServerImageReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, name=None, description=None, enterprise_project_id=None): + """CreateServerImageReq + + The model defined in huaweicloud sdk + + :param name: 镜像名称,名称需满足如下规则: * 首尾字符不能为空格。 * 长度范围1~128个字符。 * 只允许3种字符,英文大小写,数字,特殊字符包含-、.、_、空格和中文。 + :type name: str + :param description: 镜像描述,描述需满足如下规则: * 首字符不能为空格。 * 长度范围0~1024个字符。 * 支持字母、数字、中文。 * 不支持回车、<、 >字符。 + :type description: str + :param enterprise_project_id: **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + :type enterprise_project_id: str + """ + + + + self._name = None + self._description = None + self._enterprise_project_id = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this CreateServerImageReq. + + 镜像名称,名称需满足如下规则: * 首尾字符不能为空格。 * 长度范围1~128个字符。 * 只允许3种字符,英文大小写,数字,特殊字符包含-、.、_、空格和中文。 + + :return: The name of this CreateServerImageReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateServerImageReq. + + 镜像名称,名称需满足如下规则: * 首尾字符不能为空格。 * 长度范围1~128个字符。 * 只允许3种字符,英文大小写,数字,特殊字符包含-、.、_、空格和中文。 + + :param name: The name of this CreateServerImageReq. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateServerImageReq. + + 镜像描述,描述需满足如下规则: * 首字符不能为空格。 * 长度范围0~1024个字符。 * 支持字母、数字、中文。 * 不支持回车、<、 >字符。 + + :return: The description of this CreateServerImageReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateServerImageReq. + + 镜像描述,描述需满足如下规则: * 首字符不能为空格。 * 长度范围0~1024个字符。 * 支持字母、数字、中文。 * 不支持回车、<、 >字符。 + + :param description: The description of this CreateServerImageReq. + :type description: str + """ + self._description = description + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateServerImageReq. + + **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + + :return: The enterprise_project_id of this CreateServerImageReq. + :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 CreateServerImageReq. + + **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + + :param enterprise_project_id: The enterprise_project_id of this CreateServerImageReq. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateServerImageReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_req.py new file mode 100644 index 0000000000..71a9b3bff5 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_req.py @@ -0,0 +1,333 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateWarehouseAppReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'app_name': 'str', + 'app_category': 'AppCategoryEnum', + 'os_type': 'OsTypeEnum', + 'version_id': 'str', + 'app_description': 'str', + 'version_name': 'str', + 'appfile_store_path': 'str', + 'app_icon': 'str', + 'app_file_size': 'int' + } + + attribute_map = { + 'app_name': 'app_name', + 'app_category': 'app_category', + 'os_type': 'os_type', + 'version_id': 'version_id', + 'app_description': 'app_description', + 'version_name': 'version_name', + 'appfile_store_path': 'appfile_store_path', + 'app_icon': 'app_icon', + 'app_file_size': 'app_file_size' + } + + def __init__(self, app_name=None, app_category=None, os_type=None, version_id=None, app_description=None, version_name=None, appfile_store_path=None, app_icon=None, app_file_size=None): + """CreateWarehouseAppReq + + The model defined in huaweicloud sdk + + :param app_name: 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + :type app_name: str + :param app_category: + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + :param os_type: + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + :param version_id: 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + :type version_id: str + :param app_description: 应用仓库中的应用描述。 + :type app_description: str + :param version_name: 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + :type version_name: str + :param appfile_store_path: 应用在obs桶的存储路径。 + :type appfile_store_path: str + :param app_icon: > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + :type app_icon: str + :param app_file_size: 应用文件大小,单位为KB。 + :type app_file_size: int + """ + + + + self._app_name = None + self._app_category = None + self._os_type = None + self._version_id = None + self._app_description = None + self._version_name = None + self._appfile_store_path = None + self._app_icon = None + self._app_file_size = None + self.discriminator = None + + self.app_name = app_name + self.app_category = app_category + self.os_type = os_type + self.version_id = version_id + if app_description is not None: + self.app_description = app_description + self.version_name = version_name + self.appfile_store_path = appfile_store_path + if app_icon is not None: + self.app_icon = app_icon + if app_file_size is not None: + self.app_file_size = app_file_size + + @property + def app_name(self): + """Gets the app_name of this CreateWarehouseAppReq. + + 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + + :return: The app_name of this CreateWarehouseAppReq. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this CreateWarehouseAppReq. + + 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + + :param app_name: The app_name of this CreateWarehouseAppReq. + :type app_name: str + """ + self._app_name = app_name + + @property + def app_category(self): + """Gets the app_category of this CreateWarehouseAppReq. + + :return: The app_category of this CreateWarehouseAppReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + return self._app_category + + @app_category.setter + def app_category(self, app_category): + """Sets the app_category of this CreateWarehouseAppReq. + + :param app_category: The app_category of this CreateWarehouseAppReq. + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + self._app_category = app_category + + @property + def os_type(self): + """Gets the os_type of this CreateWarehouseAppReq. + + :return: The os_type of this CreateWarehouseAppReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this CreateWarehouseAppReq. + + :param os_type: The os_type of this CreateWarehouseAppReq. + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + self._os_type = os_type + + @property + def version_id(self): + """Gets the version_id of this CreateWarehouseAppReq. + + 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + + :return: The version_id of this CreateWarehouseAppReq. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this CreateWarehouseAppReq. + + 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + + :param version_id: The version_id of this CreateWarehouseAppReq. + :type version_id: str + """ + self._version_id = version_id + + @property + def app_description(self): + """Gets the app_description of this CreateWarehouseAppReq. + + 应用仓库中的应用描述。 + + :return: The app_description of this CreateWarehouseAppReq. + :rtype: str + """ + return self._app_description + + @app_description.setter + def app_description(self, app_description): + """Sets the app_description of this CreateWarehouseAppReq. + + 应用仓库中的应用描述。 + + :param app_description: The app_description of this CreateWarehouseAppReq. + :type app_description: str + """ + self._app_description = app_description + + @property + def version_name(self): + """Gets the version_name of this CreateWarehouseAppReq. + + 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + + :return: The version_name of this CreateWarehouseAppReq. + :rtype: str + """ + return self._version_name + + @version_name.setter + def version_name(self, version_name): + """Sets the version_name of this CreateWarehouseAppReq. + + 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + + :param version_name: The version_name of this CreateWarehouseAppReq. + :type version_name: str + """ + self._version_name = version_name + + @property + def appfile_store_path(self): + """Gets the appfile_store_path of this CreateWarehouseAppReq. + + 应用在obs桶的存储路径。 + + :return: The appfile_store_path of this CreateWarehouseAppReq. + :rtype: str + """ + return self._appfile_store_path + + @appfile_store_path.setter + def appfile_store_path(self, appfile_store_path): + """Sets the appfile_store_path of this CreateWarehouseAppReq. + + 应用在obs桶的存储路径。 + + :param appfile_store_path: The appfile_store_path of this CreateWarehouseAppReq. + :type appfile_store_path: str + """ + self._appfile_store_path = appfile_store_path + + @property + def app_icon(self): + """Gets the app_icon of this CreateWarehouseAppReq. + + > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + + :return: The app_icon of this CreateWarehouseAppReq. + :rtype: str + """ + return self._app_icon + + @app_icon.setter + def app_icon(self, app_icon): + """Sets the app_icon of this CreateWarehouseAppReq. + + > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + + :param app_icon: The app_icon of this CreateWarehouseAppReq. + :type app_icon: str + """ + self._app_icon = app_icon + + @property + def app_file_size(self): + """Gets the app_file_size of this CreateWarehouseAppReq. + + 应用文件大小,单位为KB。 + + :return: The app_file_size of this CreateWarehouseAppReq. + :rtype: int + """ + return self._app_file_size + + @app_file_size.setter + def app_file_size(self, app_file_size): + """Sets the app_file_size of this CreateWarehouseAppReq. + + 应用文件大小,单位为KB。 + + :param app_file_size: The app_file_size of this CreateWarehouseAppReq. + :type app_file_size: int + """ + self._app_file_size = app_file_size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateWarehouseAppReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_request.py new file mode 100644 index 0000000000..d861797c4c --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateWarehouseAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateWarehouseAppReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateWarehouseAppRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateWarehouseAppRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateWarehouseAppRequest. + + :return: The body of this CreateWarehouseAppRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateWarehouseAppRequest. + + :param body: The body of this CreateWarehouseAppRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppReq` + """ + 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, CreateWarehouseAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_response.py new file mode 100644 index 0000000000..50b3fe975e --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/create_warehouse_app_response.py @@ -0,0 +1,597 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateWarehouseAppResponse(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', + 'app_id': 'str', + 'tenant_id': 'str', + 'app_name': 'str', + 'app_category': 'AppCategoryEnum', + 'os_type': 'OsTypeEnum', + 'version_id': 'str', + 'version_name': 'str', + 'appfile_store_path': 'str', + 'app_file_size': 'str', + 'app_description': 'str', + 'appicon_store_path': 'str', + 'create_time': 'datetime', + 'modify_time': 'datetime', + 'verify_time': 'datetime', + 'verify_status': 'VerifyStatusEnum', + 'verify_comment': 'str', + 'app_icon': 'str' + } + + attribute_map = { + 'id': 'id', + 'app_id': 'app_id', + 'tenant_id': 'tenant_id', + 'app_name': 'app_name', + 'app_category': 'app_category', + 'os_type': 'os_type', + 'version_id': 'version_id', + 'version_name': 'version_name', + 'appfile_store_path': 'appfile_store_path', + 'app_file_size': 'app_file_size', + 'app_description': 'app_description', + 'appicon_store_path': 'appicon_store_path', + 'create_time': 'create_time', + 'modify_time': 'modify_time', + 'verify_time': 'verify_time', + 'verify_status': 'verify_status', + 'verify_comment': 'verify_comment', + 'app_icon': 'app_icon' + } + + def __init__(self, id=None, app_id=None, tenant_id=None, app_name=None, app_category=None, os_type=None, version_id=None, version_name=None, appfile_store_path=None, app_file_size=None, app_description=None, appicon_store_path=None, create_time=None, modify_time=None, verify_time=None, verify_status=None, verify_comment=None, app_icon=None): + """CreateWarehouseAppResponse + + The model defined in huaweicloud sdk + + :param id: 应用的记录id。 + :type id: str + :param app_id: 应用id。 + :type app_id: str + :param tenant_id: 租户id。 + :type tenant_id: str + :param app_name: 应用名称。 + :type app_name: str + :param app_category: + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + :param os_type: + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + :param version_id: 版本号。 + :type version_id: str + :param version_name: 版本名称。 + :type version_name: str + :param appfile_store_path: 应用文件的存放路径。 + :type appfile_store_path: str + :param app_file_size: 应用文件的大小,以KB为单位。 + :type app_file_size: str + :param app_description: 应用描述。 + :type app_description: str + :param appicon_store_path: 应用文件的存放路径。 + :type appicon_store_path: str + :param create_time: 应用创建时间。 + :type create_time: datetime + :param modify_time: 应用修改时间。 + :type modify_time: datetime + :param verify_time: 应用审核时间。 + :type verify_time: datetime + :param verify_status: + :type verify_status: :class:`huaweicloudsdkworkspaceapp.v1.VerifyStatusEnum` + :param verify_comment: 审核的评论意见。 + :type verify_comment: str + :param app_icon: app的图标文件。 + :type app_icon: str + """ + + super(CreateWarehouseAppResponse, self).__init__() + + self._id = None + self._app_id = None + self._tenant_id = None + self._app_name = None + self._app_category = None + self._os_type = None + self._version_id = None + self._version_name = None + self._appfile_store_path = None + self._app_file_size = None + self._app_description = None + self._appicon_store_path = None + self._create_time = None + self._modify_time = None + self._verify_time = None + self._verify_status = None + self._verify_comment = None + self._app_icon = None + self.discriminator = None + + if id is not None: + self.id = id + if app_id is not None: + self.app_id = app_id + if tenant_id is not None: + self.tenant_id = tenant_id + if app_name is not None: + self.app_name = app_name + if app_category is not None: + self.app_category = app_category + if os_type is not None: + self.os_type = os_type + if version_id is not None: + self.version_id = version_id + if version_name is not None: + self.version_name = version_name + if appfile_store_path is not None: + self.appfile_store_path = appfile_store_path + if app_file_size is not None: + self.app_file_size = app_file_size + if app_description is not None: + self.app_description = app_description + if appicon_store_path is not None: + self.appicon_store_path = appicon_store_path + if create_time is not None: + self.create_time = create_time + if modify_time is not None: + self.modify_time = modify_time + if verify_time is not None: + self.verify_time = verify_time + if verify_status is not None: + self.verify_status = verify_status + if verify_comment is not None: + self.verify_comment = verify_comment + if app_icon is not None: + self.app_icon = app_icon + + @property + def id(self): + """Gets the id of this CreateWarehouseAppResponse. + + 应用的记录id。 + + :return: The id of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateWarehouseAppResponse. + + 应用的记录id。 + + :param id: The id of this CreateWarehouseAppResponse. + :type id: str + """ + self._id = id + + @property + def app_id(self): + """Gets the app_id of this CreateWarehouseAppResponse. + + 应用id。 + + :return: The app_id of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this CreateWarehouseAppResponse. + + 应用id。 + + :param app_id: The app_id of this CreateWarehouseAppResponse. + :type app_id: str + """ + self._app_id = app_id + + @property + def tenant_id(self): + """Gets the tenant_id of this CreateWarehouseAppResponse. + + 租户id。 + + :return: The tenant_id of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this CreateWarehouseAppResponse. + + 租户id。 + + :param tenant_id: The tenant_id of this CreateWarehouseAppResponse. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def app_name(self): + """Gets the app_name of this CreateWarehouseAppResponse. + + 应用名称。 + + :return: The app_name of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this CreateWarehouseAppResponse. + + 应用名称。 + + :param app_name: The app_name of this CreateWarehouseAppResponse. + :type app_name: str + """ + self._app_name = app_name + + @property + def app_category(self): + """Gets the app_category of this CreateWarehouseAppResponse. + + :return: The app_category of this CreateWarehouseAppResponse. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + return self._app_category + + @app_category.setter + def app_category(self, app_category): + """Sets the app_category of this CreateWarehouseAppResponse. + + :param app_category: The app_category of this CreateWarehouseAppResponse. + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + self._app_category = app_category + + @property + def os_type(self): + """Gets the os_type of this CreateWarehouseAppResponse. + + :return: The os_type of this CreateWarehouseAppResponse. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this CreateWarehouseAppResponse. + + :param os_type: The os_type of this CreateWarehouseAppResponse. + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + self._os_type = os_type + + @property + def version_id(self): + """Gets the version_id of this CreateWarehouseAppResponse. + + 版本号。 + + :return: The version_id of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this CreateWarehouseAppResponse. + + 版本号。 + + :param version_id: The version_id of this CreateWarehouseAppResponse. + :type version_id: str + """ + self._version_id = version_id + + @property + def version_name(self): + """Gets the version_name of this CreateWarehouseAppResponse. + + 版本名称。 + + :return: The version_name of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._version_name + + @version_name.setter + def version_name(self, version_name): + """Sets the version_name of this CreateWarehouseAppResponse. + + 版本名称。 + + :param version_name: The version_name of this CreateWarehouseAppResponse. + :type version_name: str + """ + self._version_name = version_name + + @property + def appfile_store_path(self): + """Gets the appfile_store_path of this CreateWarehouseAppResponse. + + 应用文件的存放路径。 + + :return: The appfile_store_path of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._appfile_store_path + + @appfile_store_path.setter + def appfile_store_path(self, appfile_store_path): + """Sets the appfile_store_path of this CreateWarehouseAppResponse. + + 应用文件的存放路径。 + + :param appfile_store_path: The appfile_store_path of this CreateWarehouseAppResponse. + :type appfile_store_path: str + """ + self._appfile_store_path = appfile_store_path + + @property + def app_file_size(self): + """Gets the app_file_size of this CreateWarehouseAppResponse. + + 应用文件的大小,以KB为单位。 + + :return: The app_file_size of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._app_file_size + + @app_file_size.setter + def app_file_size(self, app_file_size): + """Sets the app_file_size of this CreateWarehouseAppResponse. + + 应用文件的大小,以KB为单位。 + + :param app_file_size: The app_file_size of this CreateWarehouseAppResponse. + :type app_file_size: str + """ + self._app_file_size = app_file_size + + @property + def app_description(self): + """Gets the app_description of this CreateWarehouseAppResponse. + + 应用描述。 + + :return: The app_description of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._app_description + + @app_description.setter + def app_description(self, app_description): + """Sets the app_description of this CreateWarehouseAppResponse. + + 应用描述。 + + :param app_description: The app_description of this CreateWarehouseAppResponse. + :type app_description: str + """ + self._app_description = app_description + + @property + def appicon_store_path(self): + """Gets the appicon_store_path of this CreateWarehouseAppResponse. + + 应用文件的存放路径。 + + :return: The appicon_store_path of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._appicon_store_path + + @appicon_store_path.setter + def appicon_store_path(self, appicon_store_path): + """Sets the appicon_store_path of this CreateWarehouseAppResponse. + + 应用文件的存放路径。 + + :param appicon_store_path: The appicon_store_path of this CreateWarehouseAppResponse. + :type appicon_store_path: str + """ + self._appicon_store_path = appicon_store_path + + @property + def create_time(self): + """Gets the create_time of this CreateWarehouseAppResponse. + + 应用创建时间。 + + :return: The create_time of this CreateWarehouseAppResponse. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateWarehouseAppResponse. + + 应用创建时间。 + + :param create_time: The create_time of this CreateWarehouseAppResponse. + :type create_time: datetime + """ + self._create_time = create_time + + @property + def modify_time(self): + """Gets the modify_time of this CreateWarehouseAppResponse. + + 应用修改时间。 + + :return: The modify_time of this CreateWarehouseAppResponse. + :rtype: datetime + """ + return self._modify_time + + @modify_time.setter + def modify_time(self, modify_time): + """Sets the modify_time of this CreateWarehouseAppResponse. + + 应用修改时间。 + + :param modify_time: The modify_time of this CreateWarehouseAppResponse. + :type modify_time: datetime + """ + self._modify_time = modify_time + + @property + def verify_time(self): + """Gets the verify_time of this CreateWarehouseAppResponse. + + 应用审核时间。 + + :return: The verify_time of this CreateWarehouseAppResponse. + :rtype: datetime + """ + return self._verify_time + + @verify_time.setter + def verify_time(self, verify_time): + """Sets the verify_time of this CreateWarehouseAppResponse. + + 应用审核时间。 + + :param verify_time: The verify_time of this CreateWarehouseAppResponse. + :type verify_time: datetime + """ + self._verify_time = verify_time + + @property + def verify_status(self): + """Gets the verify_status of this CreateWarehouseAppResponse. + + :return: The verify_status of this CreateWarehouseAppResponse. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.VerifyStatusEnum` + """ + return self._verify_status + + @verify_status.setter + def verify_status(self, verify_status): + """Sets the verify_status of this CreateWarehouseAppResponse. + + :param verify_status: The verify_status of this CreateWarehouseAppResponse. + :type verify_status: :class:`huaweicloudsdkworkspaceapp.v1.VerifyStatusEnum` + """ + self._verify_status = verify_status + + @property + def verify_comment(self): + """Gets the verify_comment of this CreateWarehouseAppResponse. + + 审核的评论意见。 + + :return: The verify_comment of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._verify_comment + + @verify_comment.setter + def verify_comment(self, verify_comment): + """Sets the verify_comment of this CreateWarehouseAppResponse. + + 审核的评论意见。 + + :param verify_comment: The verify_comment of this CreateWarehouseAppResponse. + :type verify_comment: str + """ + self._verify_comment = verify_comment + + @property + def app_icon(self): + """Gets the app_icon of this CreateWarehouseAppResponse. + + app的图标文件。 + + :return: The app_icon of this CreateWarehouseAppResponse. + :rtype: str + """ + return self._app_icon + + @app_icon.setter + def app_icon(self, app_icon): + """Sets the app_icon of this CreateWarehouseAppResponse. + + app的图标文件。 + + :param app_icon: The app_icon of this CreateWarehouseAppResponse. + :type app_icon: str + """ + self._app_icon = app_icon + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateWarehouseAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_account_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_account_info.py new file mode 100644 index 0000000000..4d330e76d7 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_account_info.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageAccountInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'account': 'str', + 'account_type': 'str', + 'domain': 'str' + } + + attribute_map = { + 'account': 'account', + 'account_type': 'account_type', + 'domain': 'domain' + } + + def __init__(self, account=None, account_type=None, domain=None): + """ImageAccountInfo + + The model defined in huaweicloud sdk + + :param account: 用户(组)。 + :type account: str + :param account_type: 用户类型: * `USER` - 用户 * `USER_GROUP` - 用户组 + :type account_type: str + :param domain: 域名城。 + :type domain: str + """ + + + + self._account = None + self._account_type = None + self._domain = None + self.discriminator = None + + self.account = account + self.account_type = account_type + if domain is not None: + self.domain = domain + + @property + def account(self): + """Gets the account of this ImageAccountInfo. + + 用户(组)。 + + :return: The account of this ImageAccountInfo. + :rtype: str + """ + return self._account + + @account.setter + def account(self, account): + """Sets the account of this ImageAccountInfo. + + 用户(组)。 + + :param account: The account of this ImageAccountInfo. + :type account: str + """ + self._account = account + + @property + def account_type(self): + """Gets the account_type of this ImageAccountInfo. + + 用户类型: * `USER` - 用户 * `USER_GROUP` - 用户组 + + :return: The account_type of this ImageAccountInfo. + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """Sets the account_type of this ImageAccountInfo. + + 用户类型: * `USER` - 用户 * `USER_GROUP` - 用户组 + + :param account_type: The account_type of this ImageAccountInfo. + :type account_type: str + """ + self._account_type = account_type + + @property + def domain(self): + """Gets the domain of this ImageAccountInfo. + + 域名城。 + + :return: The domain of this ImageAccountInfo. + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this ImageAccountInfo. + + 域名城。 + + :param domain: The domain of this ImageAccountInfo. + :type domain: str + """ + self._domain = domain + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageAccountInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_info.py new file mode 100644 index 0000000000..02b5c09863 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_info.py @@ -0,0 +1,331 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobDetailInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'job_type': 'ImageJobType', + 'job_resource_info': 'ImageJobResourceInfo', + 'begin_time': 'datetime', + 'end_time': 'datetime', + 'status': 'ImageJobDetailStatus', + 'job_execute_info': 'ImageJobExecuteInfo', + 'project_id': 'str', + 'job_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'job_type': 'job_type', + 'job_resource_info': 'job_resource_info', + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'status': 'status', + 'job_execute_info': 'job_execute_info', + 'project_id': 'project_id', + 'job_id': 'job_id' + } + + def __init__(self, id=None, job_type=None, job_resource_info=None, begin_time=None, end_time=None, status=None, job_execute_info=None, project_id=None, job_id=None): + """ImageJobDetailInfo + + The model defined in huaweicloud sdk + + :param id: 子任务ID。 + :type id: str + :param job_type: + :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + :param job_resource_info: + :type job_resource_info: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobResourceInfo` + :param begin_time: 任务创建时间。 + :type begin_time: datetime + :param end_time: 任务结束时间。 + :type end_time: datetime + :param status: + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobDetailStatus` + :param job_execute_info: + :type job_execute_info: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobExecuteInfo` + :param project_id: 项目ID。 + :type project_id: str + :param job_id: 任务ID。 + :type job_id: str + """ + + + + self._id = None + self._job_type = None + self._job_resource_info = None + self._begin_time = None + self._end_time = None + self._status = None + self._job_execute_info = None + self._project_id = None + self._job_id = None + self.discriminator = None + + if id is not None: + self.id = id + if job_type is not None: + self.job_type = job_type + if job_resource_info is not None: + self.job_resource_info = job_resource_info + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if job_execute_info is not None: + self.job_execute_info = job_execute_info + if project_id is not None: + self.project_id = project_id + if job_id is not None: + self.job_id = job_id + + @property + def id(self): + """Gets the id of this ImageJobDetailInfo. + + 子任务ID。 + + :return: The id of this ImageJobDetailInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ImageJobDetailInfo. + + 子任务ID。 + + :param id: The id of this ImageJobDetailInfo. + :type id: str + """ + self._id = id + + @property + def job_type(self): + """Gets the job_type of this ImageJobDetailInfo. + + :return: The job_type of this ImageJobDetailInfo. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this ImageJobDetailInfo. + + :param job_type: The job_type of this ImageJobDetailInfo. + :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + """ + self._job_type = job_type + + @property + def job_resource_info(self): + """Gets the job_resource_info of this ImageJobDetailInfo. + + :return: The job_resource_info of this ImageJobDetailInfo. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobResourceInfo` + """ + return self._job_resource_info + + @job_resource_info.setter + def job_resource_info(self, job_resource_info): + """Sets the job_resource_info of this ImageJobDetailInfo. + + :param job_resource_info: The job_resource_info of this ImageJobDetailInfo. + :type job_resource_info: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobResourceInfo` + """ + self._job_resource_info = job_resource_info + + @property + def begin_time(self): + """Gets the begin_time of this ImageJobDetailInfo. + + 任务创建时间。 + + :return: The begin_time of this ImageJobDetailInfo. + :rtype: datetime + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this ImageJobDetailInfo. + + 任务创建时间。 + + :param begin_time: The begin_time of this ImageJobDetailInfo. + :type begin_time: datetime + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this ImageJobDetailInfo. + + 任务结束时间。 + + :return: The end_time of this ImageJobDetailInfo. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ImageJobDetailInfo. + + 任务结束时间。 + + :param end_time: The end_time of this ImageJobDetailInfo. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this ImageJobDetailInfo. + + :return: The status of this ImageJobDetailInfo. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobDetailStatus` + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ImageJobDetailInfo. + + :param status: The status of this ImageJobDetailInfo. + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobDetailStatus` + """ + self._status = status + + @property + def job_execute_info(self): + """Gets the job_execute_info of this ImageJobDetailInfo. + + :return: The job_execute_info of this ImageJobDetailInfo. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobExecuteInfo` + """ + return self._job_execute_info + + @job_execute_info.setter + def job_execute_info(self, job_execute_info): + """Sets the job_execute_info of this ImageJobDetailInfo. + + :param job_execute_info: The job_execute_info of this ImageJobDetailInfo. + :type job_execute_info: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobExecuteInfo` + """ + self._job_execute_info = job_execute_info + + @property + def project_id(self): + """Gets the project_id of this ImageJobDetailInfo. + + 项目ID。 + + :return: The project_id of this ImageJobDetailInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ImageJobDetailInfo. + + 项目ID。 + + :param project_id: The project_id of this ImageJobDetailInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def job_id(self): + """Gets the job_id of this ImageJobDetailInfo. + + 任务ID。 + + :return: The job_id of this ImageJobDetailInfo. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ImageJobDetailInfo. + + 任务ID。 + + :param job_id: The job_id of this ImageJobDetailInfo. + :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, ImageJobDetailInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_status.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_status.py new file mode 100644 index 0000000000..3355d785e2 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_detail_status.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobDetailStatus: + """ + allowed enum values + """ + WAITING = "WAITING" + RUNNING = "RUNNING" + SUCCESS = "SUCCESS" + FAILED = "FAILED" + ABNORMAL = "ABNORMAL" + ROLLBACK = "ROLLBACK" + ABORTING = "ABORTING" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ImageJobDetailStatus + + 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, ImageJobDetailStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_execute_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_execute_info.py new file mode 100644 index 0000000000..4cb8cd7e6a --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_execute_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobExecuteInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_message': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_message': 'error_message' + } + + def __init__(self, error_code=None, error_message=None): + """ImageJobExecuteInfo + + The model defined in huaweicloud sdk + + :param error_code: 任务执行失败时的错误码。 + :type error_code: str + :param error_message: 任务失败原因。 + :type error_message: str + """ + + + + self._error_code = None + self._error_message = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_message is not None: + self.error_message = error_message + + @property + def error_code(self): + """Gets the error_code of this ImageJobExecuteInfo. + + 任务执行失败时的错误码。 + + :return: The error_code of this ImageJobExecuteInfo. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ImageJobExecuteInfo. + + 任务执行失败时的错误码。 + + :param error_code: The error_code of this ImageJobExecuteInfo. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_message(self): + """Gets the error_message of this ImageJobExecuteInfo. + + 任务失败原因。 + + :return: The error_message of this ImageJobExecuteInfo. + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this ImageJobExecuteInfo. + + 任务失败原因。 + + :param error_message: The error_message of this ImageJobExecuteInfo. + :type error_message: str + """ + self._error_message = error_message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageJobExecuteInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_info.py new file mode 100644 index 0000000000..9cb528d927 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_info.py @@ -0,0 +1,252 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'job_type': 'ImageJobType', + 'begin_time': 'datetime', + 'end_time': 'datetime', + 'status': 'ImageJobStatus', + 'sub_jobs_total': 'int' + } + + attribute_map = { + 'id': 'id', + 'job_type': 'job_type', + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'status': 'status', + 'sub_jobs_total': 'sub_jobs_total' + } + + def __init__(self, id=None, job_type=None, begin_time=None, end_time=None, status=None, sub_jobs_total=None): + """ImageJobInfo + + The model defined in huaweicloud sdk + + :param id: 任务ID。 + :type id: str + :param job_type: + :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + :param begin_time: 任务创建时间。 + :type begin_time: datetime + :param end_time: 任务结束时间。 + :type end_time: datetime + :param status: + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobStatus` + :param sub_jobs_total: 子任务总数。 + :type sub_jobs_total: int + """ + + + + self._id = None + self._job_type = None + self._begin_time = None + self._end_time = None + self._status = None + self._sub_jobs_total = None + self.discriminator = None + + if id is not None: + self.id = id + if job_type is not None: + self.job_type = job_type + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if sub_jobs_total is not None: + self.sub_jobs_total = sub_jobs_total + + @property + def id(self): + """Gets the id of this ImageJobInfo. + + 任务ID。 + + :return: The id of this ImageJobInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ImageJobInfo. + + 任务ID。 + + :param id: The id of this ImageJobInfo. + :type id: str + """ + self._id = id + + @property + def job_type(self): + """Gets the job_type of this ImageJobInfo. + + :return: The job_type of this ImageJobInfo. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this ImageJobInfo. + + :param job_type: The job_type of this ImageJobInfo. + :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + """ + self._job_type = job_type + + @property + def begin_time(self): + """Gets the begin_time of this ImageJobInfo. + + 任务创建时间。 + + :return: The begin_time of this ImageJobInfo. + :rtype: datetime + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this ImageJobInfo. + + 任务创建时间。 + + :param begin_time: The begin_time of this ImageJobInfo. + :type begin_time: datetime + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this ImageJobInfo. + + 任务结束时间。 + + :return: The end_time of this ImageJobInfo. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ImageJobInfo. + + 任务结束时间。 + + :param end_time: The end_time of this ImageJobInfo. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this ImageJobInfo. + + :return: The status of this ImageJobInfo. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobStatus` + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ImageJobInfo. + + :param status: The status of this ImageJobInfo. + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobStatus` + """ + self._status = status + + @property + def sub_jobs_total(self): + """Gets the sub_jobs_total of this ImageJobInfo. + + 子任务总数。 + + :return: The sub_jobs_total of this ImageJobInfo. + :rtype: int + """ + return self._sub_jobs_total + + @sub_jobs_total.setter + def sub_jobs_total(self, sub_jobs_total): + """Sets the sub_jobs_total of this ImageJobInfo. + + 子任务总数。 + + :param sub_jobs_total: The sub_jobs_total of this ImageJobInfo. + :type sub_jobs_total: int + """ + self._sub_jobs_total = sub_jobs_total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageJobInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_resource_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_resource_info.py new file mode 100644 index 0000000000..04067247bd --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_resource_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobResourceInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resource_id': 'str', + 'resource_name': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id', + 'resource_name': 'resource_name' + } + + def __init__(self, resource_id=None, resource_name=None): + """ImageJobResourceInfo + + The model defined in huaweicloud sdk + + :param resource_id: 资源ID + :type resource_id: str + :param resource_name: 产物名称,或者被操作资源名称 + :type resource_name: str + """ + + + + self._resource_id = None + self._resource_name = None + self.discriminator = None + + if resource_id is not None: + self.resource_id = resource_id + if resource_name is not None: + self.resource_name = resource_name + + @property + def resource_id(self): + """Gets the resource_id of this ImageJobResourceInfo. + + 资源ID + + :return: The resource_id of this ImageJobResourceInfo. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ImageJobResourceInfo. + + 资源ID + + :param resource_id: The resource_id of this ImageJobResourceInfo. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def resource_name(self): + """Gets the resource_name of this ImageJobResourceInfo. + + 产物名称,或者被操作资源名称 + + :return: The resource_name of this ImageJobResourceInfo. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this ImageJobResourceInfo. + + 产物名称,或者被操作资源名称 + + :param resource_name: The resource_name of this ImageJobResourceInfo. + :type resource_name: str + """ + self._resource_name = resource_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageJobResourceInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_status.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_status.py new file mode 100644 index 0000000000..fdafbb8dec --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_status.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobStatus: + """ + allowed enum values + """ + WAITING = "WAITING" + RUNNING = "RUNNING" + SUCCESS = "SUCCESS" + FAILED = "FAILED" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ImageJobStatus + + 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, ImageJobStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_type.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_type.py new file mode 100644 index 0000000000..3d0f912aa5 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_job_type.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageJobType: + """ + allowed enum values + """ + CREATE_SERVER = "CREATE_SERVER" + CREATE_SERVER_IMAGE = "CREATE_SERVER_IMAGE" + DELETE_SERVER = "DELETE_SERVER" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ImageJobType + + 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, ImageJobType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_ref.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_ref.py new file mode 100644 index 0000000000..c450c2cb78 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_ref.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageRef: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'image_type': 'str', + 'spce_code': 'str', + 'product_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'image_type': 'image_type', + 'spce_code': 'spce_code', + 'product_id': 'product_id' + } + + def __init__(self, id=None, image_type=None, spce_code=None, product_id=None): + """ImageRef + + The model defined in huaweicloud sdk + + :param id: 镜像源的唯一标识。 + :type id: str + :param image_type: 镜像源的镜像类型: * `gold` - 云市场镜像 * `public` - 公共镜像 * `private` - 私有镜像 * `shared` - 共享镜像 * `other` - 其他 + :type image_type: str + :param spce_code: 镜像源的规格编码,对于`gold`镜像类型,这个值是的必须项。 + :type spce_code: str + :param product_id: 镜像源的产品ID,对于`gold`镜像类型,这个值是的必须项。 + :type product_id: str + """ + + + + self._id = None + self._image_type = None + self._spce_code = None + self._product_id = None + self.discriminator = None + + self.id = id + self.image_type = image_type + if spce_code is not None: + self.spce_code = spce_code + if product_id is not None: + self.product_id = product_id + + @property + def id(self): + """Gets the id of this ImageRef. + + 镜像源的唯一标识。 + + :return: The id of this ImageRef. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ImageRef. + + 镜像源的唯一标识。 + + :param id: The id of this ImageRef. + :type id: str + """ + self._id = id + + @property + def image_type(self): + """Gets the image_type of this ImageRef. + + 镜像源的镜像类型: * `gold` - 云市场镜像 * `public` - 公共镜像 * `private` - 私有镜像 * `shared` - 共享镜像 * `other` - 其他 + + :return: The image_type of this ImageRef. + :rtype: str + """ + return self._image_type + + @image_type.setter + def image_type(self, image_type): + """Sets the image_type of this ImageRef. + + 镜像源的镜像类型: * `gold` - 云市场镜像 * `public` - 公共镜像 * `private` - 私有镜像 * `shared` - 共享镜像 * `other` - 其他 + + :param image_type: The image_type of this ImageRef. + :type image_type: str + """ + self._image_type = image_type + + @property + def spce_code(self): + """Gets the spce_code of this ImageRef. + + 镜像源的规格编码,对于`gold`镜像类型,这个值是的必须项。 + + :return: The spce_code of this ImageRef. + :rtype: str + """ + return self._spce_code + + @spce_code.setter + def spce_code(self, spce_code): + """Sets the spce_code of this ImageRef. + + 镜像源的规格编码,对于`gold`镜像类型,这个值是的必须项。 + + :param spce_code: The spce_code of this ImageRef. + :type spce_code: str + """ + self._spce_code = spce_code + + @property + def product_id(self): + """Gets the product_id of this ImageRef. + + 镜像源的产品ID,对于`gold`镜像类型,这个值是的必须项。 + + :return: The product_id of this ImageRef. + :rtype: str + """ + return self._product_id + + @product_id.setter + def product_id(self, product_id): + """Sets the product_id of this ImageRef. + + 镜像源的产品ID,对于`gold`镜像类型,这个值是的必须项。 + + :param product_id: The product_id of this ImageRef. + :type product_id: str + """ + self._product_id = product_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, ImageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server.py new file mode 100644 index 0000000000..bdf9700d59 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server.py @@ -0,0 +1,484 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageServer: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'image_ref': 'ImageRef', + 'server_group_id': 'str', + 'app_group_id': 'str', + 'server_id': 'str', + 'instance_id': 'str', + 'image_id': 'str', + 'status': 'ImageServerStatus', + 'authorize_accounts': 'list[ImageAccountInfo]', + 'create_time': 'datetime', + 'update_time': 'datetime', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'image_ref': 'image_ref', + 'server_group_id': 'server_group_id', + 'app_group_id': 'app_group_id', + 'server_id': 'server_id', + 'instance_id': 'instance_id', + 'image_id': 'image_id', + 'status': 'status', + 'authorize_accounts': 'authorize_accounts', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, id=None, name=None, description=None, image_ref=None, server_group_id=None, app_group_id=None, server_id=None, instance_id=None, image_id=None, status=None, authorize_accounts=None, create_time=None, update_time=None, enterprise_project_id=None): + """ImageServer + + The model defined in huaweicloud sdk + + :param id: 实例的唯一标识。 + :type id: str + :param name: 镜像实例名称。 + :type name: str + :param description: 描述。 + :type description: str + :param image_ref: + :type image_ref: :class:`huaweicloudsdkworkspaceapp.v1.ImageRef` + :param server_group_id: APS服务器组ID。 + :type server_group_id: str + :param app_group_id: 应用组ID。 + :type app_group_id: str + :param server_id: APS实例ID。 + :type server_id: str + :param instance_id: ECS服务器ID。 + :type instance_id: str + :param image_id: 镜像产物唯一标识。 + :type image_id: str + :param status: + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageServerStatus` + :param authorize_accounts: 应用组授权用户, * 限制用户类型:'USER' - 用户 + :type authorize_accounts: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageAccountInfo`] + :param create_time: 镜像实例创建时间 + :type create_time: datetime + :param update_time: 更新时间 + :type update_time: datetime + :param enterprise_project_id: 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + :type enterprise_project_id: str + """ + + + + self._id = None + self._name = None + self._description = None + self._image_ref = None + self._server_group_id = None + self._app_group_id = None + self._server_id = None + self._instance_id = None + self._image_id = None + self._status = None + self._authorize_accounts = None + self._create_time = None + self._update_time = None + self._enterprise_project_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if description is not None: + self.description = description + if image_ref is not None: + self.image_ref = image_ref + if server_group_id is not None: + self.server_group_id = server_group_id + if app_group_id is not None: + self.app_group_id = app_group_id + if server_id is not None: + self.server_id = server_id + if instance_id is not None: + self.instance_id = instance_id + if image_id is not None: + self.image_id = image_id + if status is not None: + self.status = status + if authorize_accounts is not None: + self.authorize_accounts = authorize_accounts + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def id(self): + """Gets the id of this ImageServer. + + 实例的唯一标识。 + + :return: The id of this ImageServer. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ImageServer. + + 实例的唯一标识。 + + :param id: The id of this ImageServer. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ImageServer. + + 镜像实例名称。 + + :return: The name of this ImageServer. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ImageServer. + + 镜像实例名称。 + + :param name: The name of this ImageServer. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this ImageServer. + + 描述。 + + :return: The description of this ImageServer. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ImageServer. + + 描述。 + + :param description: The description of this ImageServer. + :type description: str + """ + self._description = description + + @property + def image_ref(self): + """Gets the image_ref of this ImageServer. + + :return: The image_ref of this ImageServer. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageRef` + """ + return self._image_ref + + @image_ref.setter + def image_ref(self, image_ref): + """Sets the image_ref of this ImageServer. + + :param image_ref: The image_ref of this ImageServer. + :type image_ref: :class:`huaweicloudsdkworkspaceapp.v1.ImageRef` + """ + self._image_ref = image_ref + + @property + def server_group_id(self): + """Gets the server_group_id of this ImageServer. + + APS服务器组ID。 + + :return: The server_group_id of this ImageServer. + :rtype: str + """ + return self._server_group_id + + @server_group_id.setter + def server_group_id(self, server_group_id): + """Sets the server_group_id of this ImageServer. + + APS服务器组ID。 + + :param server_group_id: The server_group_id of this ImageServer. + :type server_group_id: str + """ + self._server_group_id = server_group_id + + @property + def app_group_id(self): + """Gets the app_group_id of this ImageServer. + + 应用组ID。 + + :return: The app_group_id of this ImageServer. + :rtype: str + """ + return self._app_group_id + + @app_group_id.setter + def app_group_id(self, app_group_id): + """Sets the app_group_id of this ImageServer. + + 应用组ID。 + + :param app_group_id: The app_group_id of this ImageServer. + :type app_group_id: str + """ + self._app_group_id = app_group_id + + @property + def server_id(self): + """Gets the server_id of this ImageServer. + + APS实例ID。 + + :return: The server_id of this ImageServer. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ImageServer. + + APS实例ID。 + + :param server_id: The server_id of this ImageServer. + :type server_id: str + """ + self._server_id = server_id + + @property + def instance_id(self): + """Gets the instance_id of this ImageServer. + + ECS服务器ID。 + + :return: The instance_id of this ImageServer. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ImageServer. + + ECS服务器ID。 + + :param instance_id: The instance_id of this ImageServer. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def image_id(self): + """Gets the image_id of this ImageServer. + + 镜像产物唯一标识。 + + :return: The image_id of this ImageServer. + :rtype: str + """ + return self._image_id + + @image_id.setter + def image_id(self, image_id): + """Sets the image_id of this ImageServer. + + 镜像产物唯一标识。 + + :param image_id: The image_id of this ImageServer. + :type image_id: str + """ + self._image_id = image_id + + @property + def status(self): + """Gets the status of this ImageServer. + + :return: The status of this ImageServer. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageServerStatus` + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ImageServer. + + :param status: The status of this ImageServer. + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageServerStatus` + """ + self._status = status + + @property + def authorize_accounts(self): + """Gets the authorize_accounts of this ImageServer. + + 应用组授权用户, * 限制用户类型:'USER' - 用户 + + :return: The authorize_accounts of this ImageServer. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageAccountInfo`] + """ + return self._authorize_accounts + + @authorize_accounts.setter + def authorize_accounts(self, authorize_accounts): + """Sets the authorize_accounts of this ImageServer. + + 应用组授权用户, * 限制用户类型:'USER' - 用户 + + :param authorize_accounts: The authorize_accounts of this ImageServer. + :type authorize_accounts: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageAccountInfo`] + """ + self._authorize_accounts = authorize_accounts + + @property + def create_time(self): + """Gets the create_time of this ImageServer. + + 镜像实例创建时间 + + :return: The create_time of this ImageServer. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ImageServer. + + 镜像实例创建时间 + + :param create_time: The create_time of this ImageServer. + :type create_time: datetime + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ImageServer. + + 更新时间 + + :return: The update_time of this ImageServer. + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ImageServer. + + 更新时间 + + :param update_time: The update_time of this ImageServer. + :type update_time: datetime + """ + self._update_time = update_time + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ImageServer. + + 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + + :return: The enterprise_project_id of this ImageServer. + :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 ImageServer. + + 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + + :param enterprise_project_id: The enterprise_project_id of this ImageServer. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageServer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server_status.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server_status.py new file mode 100644 index 0000000000..ce2c48f4f0 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/image_server_status.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ImageServerStatus: + """ + allowed enum values + """ + CREATING = "CREATING" + ACTIVE = "ACTIVE" + BUILDING = "BUILDING" + BUILT = "BUILT" + ERROR = "ERROR" + DELETING = "DELETING" + NULL = "null" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ImageServerStatus + + 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, ImageServerStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py index 981d3c5fce..113774c755 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/job_type.py @@ -22,6 +22,9 @@ class JobType: SCHEDULED_TASK = "SCHEDULED_TASK" COLLECT_HDA_LOG = "COLLECT_HDA_LOG" COLLECT_APS_LOG = "COLLECT_APS_LOG" + CREATE_SERVER_SNAPSHOT = "CREATE_SERVER_SNAPSHOT" + DELETE_SERVER_SNAPSHOT = "DELETE_SERVER_SNAPSHOT" + RESTORE_SERVER_SNAPSHOT = "RESTORE_SERVER_SNAPSHOT" """ Attributes: openapi_types (dict): The key is attribute name diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py index dc5876ed56..68ea0e1e2f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_connection_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 应用使用记录列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppConnectionInfo`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListAppConnectionResponse. - 总数。 + 总数 :return: The count of this ListAppConnectionResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListAppConnectionResponse. - 总数。 + 总数 :param count: The count of this ListAppConnectionResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py index ed3eade574..e0c4ce6509 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_authorization_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, authorizations=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param authorizations: 授权信息。 :type authorizations: list[:class:`huaweicloudsdkworkspaceapp.v1.Authorization`] @@ -53,7 +53,7 @@ def __init__(self, count=None, authorizations=None): def count(self): """Gets the count of this ListAppGroupAuthorizationResponse. - 总数。 + 总数 :return: The count of this ListAppGroupAuthorizationResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListAppGroupAuthorizationResponse. - 总数。 + 总数 :param count: The count of this ListAppGroupAuthorizationResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py index 9b00039183..4d05870fb0 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_app_group_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 应用组列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppGroup`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListAppGroupResponse. - 总数。 + 总数 :return: The count of this ListAppGroupResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListAppGroupResponse. - 总数。 + 总数 :param count: The count of this ListAppGroupResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_request.py new file mode 100644 index 0000000000..ed6b859416 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListImageServersRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'offset': 'int', + 'limit': 'int', + 'server_name': 'str', + 'server_id': 'str', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'offset': 'offset', + 'limit': 'limit', + 'server_name': 'server_name', + 'server_id': 'server_id', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, offset=None, limit=None, server_name=None, server_id=None, enterprise_project_id=None): + """ListImageServersRequest + + The model defined in huaweicloud sdk + + :param offset: 查询的偏移量。 + :type offset: int + :param limit: 查询的数量,值区间[1-100]。 + :type limit: int + :param server_name: 镜像实例名称,支持部分匹配。 + :type server_name: str + :param server_id: 镜像实例唯一标识。 + :type server_id: str + :param enterprise_project_id: 企业项目ID(字段为空或者0表示使用默认default企业项目)。 + :type enterprise_project_id: str + """ + + + + self._offset = None + self._limit = None + self._server_name = None + self._server_id = None + self._enterprise_project_id = None + self.discriminator = None + + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if server_name is not None: + self.server_name = server_name + if server_id is not None: + self.server_id = server_id + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def offset(self): + """Gets the offset of this ListImageServersRequest. + + 查询的偏移量。 + + :return: The offset of this ListImageServersRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListImageServersRequest. + + 查询的偏移量。 + + :param offset: The offset of this ListImageServersRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListImageServersRequest. + + 查询的数量,值区间[1-100]。 + + :return: The limit of this ListImageServersRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListImageServersRequest. + + 查询的数量,值区间[1-100]。 + + :param limit: The limit of this ListImageServersRequest. + :type limit: int + """ + self._limit = limit + + @property + def server_name(self): + """Gets the server_name of this ListImageServersRequest. + + 镜像实例名称,支持部分匹配。 + + :return: The server_name of this ListImageServersRequest. + :rtype: str + """ + return self._server_name + + @server_name.setter + def server_name(self, server_name): + """Sets the server_name of this ListImageServersRequest. + + 镜像实例名称,支持部分匹配。 + + :param server_name: The server_name of this ListImageServersRequest. + :type server_name: str + """ + self._server_name = server_name + + @property + def server_id(self): + """Gets the server_id of this ListImageServersRequest. + + 镜像实例唯一标识。 + + :return: The server_id of this ListImageServersRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ListImageServersRequest. + + 镜像实例唯一标识。 + + :param server_id: The server_id of this ListImageServersRequest. + :type server_id: str + """ + self._server_id = server_id + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListImageServersRequest. + + 企业项目ID(字段为空或者0表示使用默认default企业项目)。 + + :return: The enterprise_project_id of this ListImageServersRequest. + :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 ListImageServersRequest. + + 企业项目ID(字段为空或者0表示使用默认default企业项目)。 + + :param enterprise_project_id: The enterprise_project_id of this ListImageServersRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListImageServersRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_response.py new file mode 100644 index 0000000000..10675f54f8 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_image_servers_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListImageServersResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'items': 'list[ImageServer]' + } + + attribute_map = { + 'count': 'count', + 'items': 'items' + } + + def __init__(self, count=None, items=None): + """ListImageServersResponse + + The model defined in huaweicloud sdk + + :param count: 总数 + :type count: int + :param items: 镜像实例列表返回列表条目数量上限为分页的最大上限值。 + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageServer`] + """ + + super(ListImageServersResponse, self).__init__() + + self._count = None + self._items = None + self.discriminator = None + + if count is not None: + self.count = count + if items is not None: + self.items = items + + @property + def count(self): + """Gets the count of this ListImageServersResponse. + + 总数 + + :return: The count of this ListImageServersResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListImageServersResponse. + + 总数 + + :param count: The count of this ListImageServersResponse. + :type count: int + """ + self._count = count + + @property + def items(self): + """Gets the items of this ListImageServersResponse. + + 镜像实例列表返回列表条目数量上限为分页的最大上限值。 + + :return: The items of this ListImageServersResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageServer`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListImageServersResponse. + + 镜像实例列表返回列表条目数量上限为分页的最大上限值。 + + :param items: The items of this ListImageServersResponse. + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageServer`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListImageServersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_request.py new file mode 100644 index 0000000000..27481f36a9 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLatestAttachedServerAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str' + } + + attribute_map = { + 'server_id': 'server_id' + } + + def __init__(self, server_id=None): + """ListLatestAttachedServerAppRequest + + The model defined in huaweicloud sdk + + :param server_id: 镜像实例唯一标识。 + :type server_id: str + """ + + + + self._server_id = None + self.discriminator = None + + self.server_id = server_id + + @property + def server_id(self): + """Gets the server_id of this ListLatestAttachedServerAppRequest. + + 镜像实例唯一标识。 + + :return: The server_id of this ListLatestAttachedServerAppRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ListLatestAttachedServerAppRequest. + + 镜像实例唯一标识。 + + :param server_id: The server_id of this ListLatestAttachedServerAppRequest. + :type server_id: str + """ + self._server_id = server_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, ListLatestAttachedServerAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_response.py new file mode 100644 index 0000000000..270c35640c --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_latest_attached_server_app_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListLatestAttachedServerAppResponse(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 = { + 'items': 'list[AttachServerAppInfo]' + } + + attribute_map = { + 'items': 'items' + } + + def __init__(self, items=None): + """ListLatestAttachedServerAppResponse + + The model defined in huaweicloud sdk + + :param items: 分发软件信息列表。 + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AttachServerAppInfo`] + """ + + super(ListLatestAttachedServerAppResponse, self).__init__() + + self._items = None + self.discriminator = None + + if items is not None: + self.items = items + + @property + def items(self): + """Gets the items of this ListLatestAttachedServerAppResponse. + + 分发软件信息列表。 + + :return: The items of this ListLatestAttachedServerAppResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.AttachServerAppInfo`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListLatestAttachedServerAppResponse. + + 分发软件信息列表。 + + :param items: The items of this ListLatestAttachedServerAppResponse. + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AttachServerAppInfo`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListLatestAttachedServerAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py index b7eee4385b..be48c9d453 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_persistent_storage_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 存储列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorage`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPersistentStorageResponse. - 总数。 + 总数 :return: The count of this ListPersistentStorageResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPersistentStorageResponse. - 总数。 + 总数 :param count: The count of this ListPersistentStorageResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py index 97d1423556..9a33a8c38f 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_group_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 策略组列表,返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPolicyGroupResponse. - 总数。 + 总数 :return: The count of this ListPolicyGroupResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPolicyGroupResponse. - 总数。 + 总数 :param count: The count of this ListPolicyGroupResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py index 7e4ca7ee61..df9344caef 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_policy_template_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 策略组列表,返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyGroup`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPolicyTemplateResponse. - 总数。 + 总数 :return: The count of this ListPolicyTemplateResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPolicyTemplateResponse. - 总数。 + 总数 :param count: The count of this ListPolicyTemplateResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py index 35eab17af2..653fc92307 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_product_request.py @@ -18,6 +18,7 @@ class ListProductRequest: openapi_types = { 'product_id': 'str', + 'flavor_id': 'str', 'availability_zone': 'str', 'os_type': 'str', 'charge_mode': 'str', @@ -27,6 +28,7 @@ class ListProductRequest: attribute_map = { 'product_id': 'product_id', + 'flavor_id': 'flavor_id', 'availability_zone': 'availability_zone', 'os_type': 'os_type', 'charge_mode': 'charge_mode', @@ -34,13 +36,15 @@ class ListProductRequest: 'package_type': 'package_type' } - def __init__(self, product_id=None, availability_zone=None, os_type=None, charge_mode=None, architecture=None, package_type=None): + def __init__(self, product_id=None, flavor_id=None, availability_zone=None, os_type=None, charge_mode=None, architecture=None, package_type=None): """ListProductRequest The model defined in huaweicloud sdk :param product_id: 如果不为空,将按产品ID进行过滤后返回。 :type product_id: str + :param flavor_id: 如果不为空,将按规格ID进行过滤后返回。 + :type flavor_id: str :param availability_zone: 可用分区,如果不为空,将按可用分区进行过滤后返回。 - 获取方式详见可用区管理ListAvailabilityZone:\"GET /v1/{project_id}/availability-zone\"。 :type availability_zone: str :param os_type: 产品套餐的操作系统类型,当前支持:Windows。 - Linux - Windows - Other @@ -56,6 +60,7 @@ def __init__(self, product_id=None, availability_zone=None, os_type=None, charge self._product_id = None + self._flavor_id = None self._availability_zone = None self._os_type = None self._charge_mode = None @@ -65,6 +70,8 @@ def __init__(self, product_id=None, availability_zone=None, os_type=None, charge if product_id is not None: self.product_id = product_id + if flavor_id is not None: + self.flavor_id = flavor_id if availability_zone is not None: self.availability_zone = availability_zone if os_type is not None: @@ -98,6 +105,28 @@ def product_id(self, product_id): """ self._product_id = product_id + @property + def flavor_id(self): + """Gets the flavor_id of this ListProductRequest. + + 如果不为空,将按规格ID进行过滤后返回。 + + :return: The flavor_id of this ListProductRequest. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this ListProductRequest. + + 如果不为空,将按规格ID进行过滤后返回。 + + :param flavor_id: The flavor_id of this ListProductRequest. + :type flavor_id: str + """ + self._flavor_id = flavor_id + @property def availability_zone(self): """Gets the availability_zone of this ListProductRequest. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py index 58cabc4885..05bf63d023 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_published_app_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 查发布的应用列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.App`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListPublishedAppResponse. - 总数。 + 总数 :return: The count of this ListPublishedAppResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListPublishedAppResponse. - 总数。 + 总数 :param count: The count of this ListPublishedAppResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py index d1bbe03dbc..d776084e77 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_request.py @@ -21,7 +21,10 @@ class ListServerGroupsRequest: 'limit': 'int', 'server_group_name': 'str', 'server_group_id': 'str', - 'app_type': 'str' + 'app_type': 'str', + 'tags': 'str', + 'enterprise_project_id': 'str', + 'is_secondary_server_group': 'str' } attribute_map = { @@ -29,10 +32,13 @@ class ListServerGroupsRequest: 'limit': 'limit', 'server_group_name': 'server_group_name', 'server_group_id': 'server_group_id', - 'app_type': 'app_type' + 'app_type': 'app_type', + 'tags': 'tags', + 'enterprise_project_id': 'enterprise_project_id', + 'is_secondary_server_group': 'is_secondary_server_group' } - def __init__(self, offset=None, limit=None, server_group_name=None, server_group_id=None, app_type=None): + def __init__(self, offset=None, limit=None, server_group_name=None, server_group_id=None, app_type=None, tags=None, enterprise_project_id=None, is_secondary_server_group=None): """ListServerGroupsRequest The model defined in huaweicloud sdk @@ -47,6 +53,12 @@ def __init__(self, offset=None, limit=None, server_group_name=None, server_group :type server_group_id: str :param app_type: 应用组类型: * `SESSION_DESKTOP_APP` - 会话桌面app * `COMMON_APP` - 普通app :type app_type: str + :param tags: 查询tag字段中包含该值的服务器组。 + :type tags: str + :param enterprise_project_id: 企业项目ID(字段为空或者0表示使用默认default企业项目) + :type enterprise_project_id: str + :param is_secondary_server_group: 是否为备服务器组,不传默认查所有: true : 是备服务器组。 false: 主服务器组,默认。 + :type is_secondary_server_group: str """ @@ -56,6 +68,9 @@ def __init__(self, offset=None, limit=None, server_group_name=None, server_group self._server_group_name = None self._server_group_id = None self._app_type = None + self._tags = None + self._enterprise_project_id = None + self._is_secondary_server_group = None self.discriminator = None if offset is not None: @@ -68,6 +83,12 @@ def __init__(self, offset=None, limit=None, server_group_name=None, server_group self.server_group_id = server_group_id if app_type is not None: self.app_type = app_type + if tags is not None: + self.tags = tags + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if is_secondary_server_group is not None: + self.is_secondary_server_group = is_secondary_server_group @property def offset(self): @@ -179,6 +200,72 @@ def app_type(self, app_type): """ self._app_type = app_type + @property + def tags(self): + """Gets the tags of this ListServerGroupsRequest. + + 查询tag字段中包含该值的服务器组。 + + :return: The tags of this ListServerGroupsRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListServerGroupsRequest. + + 查询tag字段中包含该值的服务器组。 + + :param tags: The tags of this ListServerGroupsRequest. + :type tags: str + """ + self._tags = tags + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListServerGroupsRequest. + + 企业项目ID(字段为空或者0表示使用默认default企业项目) + + :return: The enterprise_project_id of this ListServerGroupsRequest. + :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 ListServerGroupsRequest. + + 企业项目ID(字段为空或者0表示使用默认default企业项目) + + :param enterprise_project_id: The enterprise_project_id of this ListServerGroupsRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def is_secondary_server_group(self): + """Gets the is_secondary_server_group of this ListServerGroupsRequest. + + 是否为备服务器组,不传默认查所有: true : 是备服务器组。 false: 主服务器组,默认。 + + :return: The is_secondary_server_group of this ListServerGroupsRequest. + :rtype: str + """ + return self._is_secondary_server_group + + @is_secondary_server_group.setter + def is_secondary_server_group(self, is_secondary_server_group): + """Sets the is_secondary_server_group of this ListServerGroupsRequest. + + 是否为备服务器组,不传默认查所有: true : 是备服务器组。 false: 主服务器组,默认。 + + :param is_secondary_server_group: The is_secondary_server_group of this ListServerGroupsRequest. + :type is_secondary_server_group: str + """ + self._is_secondary_server_group = is_secondary_server_group + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py index c2242a86f5..a8ec2115af 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_groups_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 服务器组列表,返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerGroup`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListServerGroupsResponse. - 总数。 + 总数 :return: The count of this ListServerGroupsResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListServerGroupsResponse. - 总数。 + 总数 :param count: The count of this ListServerGroupsResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_request.py new file mode 100644 index 0000000000..64c72a364c --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_request.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListServerMetricDataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str', + 'namespace': 'str', + 'metric_name': 'str', + '_from': 'str', + 'to': 'str', + 'period': 'int', + 'filter': 'str' + } + + attribute_map = { + 'server_id': 'server_id', + 'namespace': 'namespace', + 'metric_name': 'metric_name', + '_from': 'from', + 'to': 'to', + 'period': 'period', + 'filter': 'filter' + } + + def __init__(self, server_id=None, namespace=None, metric_name=None, _from=None, to=None, period=None, filter=None): + """ListServerMetricDataRequest + + The model defined in huaweicloud sdk + + :param server_id: 服务器唯一标识。 + :type server_id: str + :param namespace: 服务的命名空间:例如 \"SYS.ECS/AGT.ECS\",当namespace为AGT.ECS,则查询GPU监控指标: - SYS.ECS:弹性云服务器的基础监控指标。 - AGT.ECS:弹性云服务器操作系统监控的监控指标(GPU指标)。 + :type namespace: str + :param metric_name: 监控查询指标名称: - SYS.ECS命名空间的指标名称,请参考帮助文档:“[弹性云服务器支持的基础监控指标](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1002.html)”。 - AGT.ECS命名空间的指标名称,请参考帮助文档:“[操作系统监控指标:GPU](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1003.html#section11)”。 + :type metric_name: str + :param _from: 查询数据起始时间,UNIX时间戳,单位毫秒。 + :type _from: str + :param to: 查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。 + :type to: str + :param period: 监控数据粒度。 取值范围: - 1: 实时数据。 - 300: 5分钟粒度。 - 1200: 20分钟粒度。 - 3600: 1小时粒度。 - 14400: 4小时粒度。 - 86400: 1天粒度。 + :type period: int + :param filter: 数据聚合方式,支持的聚合方式如下: - average:聚合周期内指标数据的平均值。 - max:聚合周期内指标数据的最大值。 - min:聚合周期内指标数据的最小值。 - sum:聚合周期内指标数据的求和值。 - variance:聚合周期内指标数据的方差。 + :type filter: str + """ + + + + self._server_id = None + self._namespace = None + self._metric_name = None + self.__from = None + self._to = None + self._period = None + self._filter = None + self.discriminator = None + + self.server_id = server_id + self.namespace = namespace + self.metric_name = metric_name + self._from = _from + self.to = to + self.period = period + self.filter = filter + + @property + def server_id(self): + """Gets the server_id of this ListServerMetricDataRequest. + + 服务器唯一标识。 + + :return: The server_id of this ListServerMetricDataRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ListServerMetricDataRequest. + + 服务器唯一标识。 + + :param server_id: The server_id of this ListServerMetricDataRequest. + :type server_id: str + """ + self._server_id = server_id + + @property + def namespace(self): + """Gets the namespace of this ListServerMetricDataRequest. + + 服务的命名空间:例如 \"SYS.ECS/AGT.ECS\",当namespace为AGT.ECS,则查询GPU监控指标: - SYS.ECS:弹性云服务器的基础监控指标。 - AGT.ECS:弹性云服务器操作系统监控的监控指标(GPU指标)。 + + :return: The namespace of this ListServerMetricDataRequest. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this ListServerMetricDataRequest. + + 服务的命名空间:例如 \"SYS.ECS/AGT.ECS\",当namespace为AGT.ECS,则查询GPU监控指标: - SYS.ECS:弹性云服务器的基础监控指标。 - AGT.ECS:弹性云服务器操作系统监控的监控指标(GPU指标)。 + + :param namespace: The namespace of this ListServerMetricDataRequest. + :type namespace: str + """ + self._namespace = namespace + + @property + def metric_name(self): + """Gets the metric_name of this ListServerMetricDataRequest. + + 监控查询指标名称: - SYS.ECS命名空间的指标名称,请参考帮助文档:“[弹性云服务器支持的基础监控指标](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1002.html)”。 - AGT.ECS命名空间的指标名称,请参考帮助文档:“[操作系统监控指标:GPU](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1003.html#section11)”。 + + :return: The metric_name of this ListServerMetricDataRequest. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """Sets the metric_name of this ListServerMetricDataRequest. + + 监控查询指标名称: - SYS.ECS命名空间的指标名称,请参考帮助文档:“[弹性云服务器支持的基础监控指标](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1002.html)”。 - AGT.ECS命名空间的指标名称,请参考帮助文档:“[操作系统监控指标:GPU](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1003.html#section11)”。 + + :param metric_name: The metric_name of this ListServerMetricDataRequest. + :type metric_name: str + """ + self._metric_name = metric_name + + @property + def _from(self): + """Gets the _from of this ListServerMetricDataRequest. + + 查询数据起始时间,UNIX时间戳,单位毫秒。 + + :return: The _from of this ListServerMetricDataRequest. + :rtype: str + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this ListServerMetricDataRequest. + + 查询数据起始时间,UNIX时间戳,单位毫秒。 + + :param _from: The _from of this ListServerMetricDataRequest. + :type _from: str + """ + self.__from = _from + + @property + def to(self): + """Gets the to of this ListServerMetricDataRequest. + + 查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。 + + :return: The to of this ListServerMetricDataRequest. + :rtype: str + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this ListServerMetricDataRequest. + + 查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。 + + :param to: The to of this ListServerMetricDataRequest. + :type to: str + """ + self._to = to + + @property + def period(self): + """Gets the period of this ListServerMetricDataRequest. + + 监控数据粒度。 取值范围: - 1: 实时数据。 - 300: 5分钟粒度。 - 1200: 20分钟粒度。 - 3600: 1小时粒度。 - 14400: 4小时粒度。 - 86400: 1天粒度。 + + :return: The period of this ListServerMetricDataRequest. + :rtype: int + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this ListServerMetricDataRequest. + + 监控数据粒度。 取值范围: - 1: 实时数据。 - 300: 5分钟粒度。 - 1200: 20分钟粒度。 - 3600: 1小时粒度。 - 14400: 4小时粒度。 - 86400: 1天粒度。 + + :param period: The period of this ListServerMetricDataRequest. + :type period: int + """ + self._period = period + + @property + def filter(self): + """Gets the filter of this ListServerMetricDataRequest. + + 数据聚合方式,支持的聚合方式如下: - average:聚合周期内指标数据的平均值。 - max:聚合周期内指标数据的最大值。 - min:聚合周期内指标数据的最小值。 - sum:聚合周期内指标数据的求和值。 - variance:聚合周期内指标数据的方差。 + + :return: The filter of this ListServerMetricDataRequest. + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this ListServerMetricDataRequest. + + 数据聚合方式,支持的聚合方式如下: - average:聚合周期内指标数据的平均值。 - max:聚合周期内指标数据的最大值。 - min:聚合周期内指标数据的最小值。 - sum:聚合周期内指标数据的求和值。 - variance:聚合周期内指标数据的方差。 + + :param filter: The filter of this ListServerMetricDataRequest. + :type filter: str + """ + self._filter = filter + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListServerMetricDataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_response.py new file mode 100644 index 0000000000..57ec8b82eb --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_server_metric_data_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListServerMetricDataResponse(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 = { + 'server_metrics': 'list[ServerMetricData]' + } + + attribute_map = { + 'server_metrics': 'server_metrics' + } + + def __init__(self, server_metrics=None): + """ListServerMetricDataResponse + + The model defined in huaweicloud sdk + + :param server_metrics: 监控数据。 + :type server_metrics: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerMetricData`] + """ + + super(ListServerMetricDataResponse, self).__init__() + + self._server_metrics = None + self.discriminator = None + + if server_metrics is not None: + self.server_metrics = server_metrics + + @property + def server_metrics(self): + """Gets the server_metrics of this ListServerMetricDataResponse. + + 监控数据。 + + :return: The server_metrics of this ListServerMetricDataResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerMetricData`] + """ + return self._server_metrics + + @server_metrics.setter + def server_metrics(self, server_metrics): + """Sets the server_metrics of this ListServerMetricDataResponse. + + 监控数据。 + + :param server_metrics: The server_metrics of this ListServerMetricDataResponse. + :type server_metrics: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerMetricData`] + """ + self._server_metrics = server_metrics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListServerMetricDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py index 16cd40e4f0..e5d7981ab6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_servers_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 服务器列表返回列表条目数量上限为分页的最大上限值。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.AppServer`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListServersResponse. - 总数。 + 总数 :return: The count of this ListServersResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListServersResponse. - 总数。 + 总数 :param count: The count of this ListServersResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_request.py new file mode 100644 index 0000000000..7448bad51f --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_request.py @@ -0,0 +1,374 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSessionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'offset': 'int', + 'user_name': 'str', + 'query_begin_time': 'str', + 'query_end_time': 'str', + 'app_server_group_id': 'str', + 'vm_ip': 'str', + 'machine_name': 'str', + 'session_state': 'str', + 'is_success': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'user_name': 'user_name', + 'query_begin_time': 'query_begin_time', + 'query_end_time': 'query_end_time', + 'app_server_group_id': 'app_server_group_id', + 'vm_ip': 'vm_ip', + 'machine_name': 'machine_name', + 'session_state': 'session_state', + 'is_success': 'is_success' + } + + def __init__(self, limit=None, offset=None, user_name=None, query_begin_time=None, query_end_time=None, app_server_group_id=None, vm_ip=None, machine_name=None, session_state=None, is_success=None): + """ListSessionsRequest + + The model defined in huaweicloud sdk + + :param limit: 单次查询的大小[1-100]。 + :type limit: int + :param offset: 查询的偏移量。 + :type offset: int + :param user_name: 用户名。 + :type user_name: str + :param query_begin_time: 搜索开始时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + :type query_begin_time: str + :param query_end_time: 搜索结束时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + :type query_end_time: str + :param app_server_group_id: AppServer组ID。 + :type app_server_group_id: str + :param vm_ip: 服务器IP。 + :type vm_ip: str + :param machine_name: 应用服务器名称。 + :type machine_name: str + :param session_state: 应用状态: * `Active` - 会话当前处于活动状态,有用户登录并且正在使用。 * `Disconnected` - 用户已经登录但会话处于断开连接状态。 * `AppcInit` - 会话正在初始化。 * `SignedOut` - 会话已注销。 * `InitFail` - 会话初始化失败。 + :type session_state: str + :param is_success: 会话是否创建成功,默认不填则查询全部 * 'true' - 会话创建成功 * 'false' - 会话创建失败 + :type is_success: str + """ + + + + self._limit = None + self._offset = None + self._user_name = None + self._query_begin_time = None + self._query_end_time = None + self._app_server_group_id = None + self._vm_ip = None + self._machine_name = None + self._session_state = None + self._is_success = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if user_name is not None: + self.user_name = user_name + self.query_begin_time = query_begin_time + self.query_end_time = query_end_time + if app_server_group_id is not None: + self.app_server_group_id = app_server_group_id + if vm_ip is not None: + self.vm_ip = vm_ip + if machine_name is not None: + self.machine_name = machine_name + if session_state is not None: + self.session_state = session_state + if is_success is not None: + self.is_success = is_success + + @property + def limit(self): + """Gets the limit of this ListSessionsRequest. + + 单次查询的大小[1-100]。 + + :return: The limit of this ListSessionsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListSessionsRequest. + + 单次查询的大小[1-100]。 + + :param limit: The limit of this ListSessionsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListSessionsRequest. + + 查询的偏移量。 + + :return: The offset of this ListSessionsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListSessionsRequest. + + 查询的偏移量。 + + :param offset: The offset of this ListSessionsRequest. + :type offset: int + """ + self._offset = offset + + @property + def user_name(self): + """Gets the user_name of this ListSessionsRequest. + + 用户名。 + + :return: The user_name of this ListSessionsRequest. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this ListSessionsRequest. + + 用户名。 + + :param user_name: The user_name of this ListSessionsRequest. + :type user_name: str + """ + self._user_name = user_name + + @property + def query_begin_time(self): + """Gets the query_begin_time of this ListSessionsRequest. + + 搜索开始时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + + :return: The query_begin_time of this ListSessionsRequest. + :rtype: str + """ + return self._query_begin_time + + @query_begin_time.setter + def query_begin_time(self, query_begin_time): + """Sets the query_begin_time of this ListSessionsRequest. + + 搜索开始时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + + :param query_begin_time: The query_begin_time of this ListSessionsRequest. + :type query_begin_time: str + """ + self._query_begin_time = query_begin_time + + @property + def query_end_time(self): + """Gets the query_end_time of this ListSessionsRequest. + + 搜索结束时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + + :return: The query_end_time of this ListSessionsRequest. + :rtype: str + """ + return self._query_end_time + + @query_end_time.setter + def query_end_time(self, query_end_time): + """Sets the query_end_time of this ListSessionsRequest. + + 搜索结束时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + + :param query_end_time: The query_end_time of this ListSessionsRequest. + :type query_end_time: str + """ + self._query_end_time = query_end_time + + @property + def app_server_group_id(self): + """Gets the app_server_group_id of this ListSessionsRequest. + + AppServer组ID。 + + :return: The app_server_group_id of this ListSessionsRequest. + :rtype: str + """ + return self._app_server_group_id + + @app_server_group_id.setter + def app_server_group_id(self, app_server_group_id): + """Sets the app_server_group_id of this ListSessionsRequest. + + AppServer组ID。 + + :param app_server_group_id: The app_server_group_id of this ListSessionsRequest. + :type app_server_group_id: str + """ + self._app_server_group_id = app_server_group_id + + @property + def vm_ip(self): + """Gets the vm_ip of this ListSessionsRequest. + + 服务器IP。 + + :return: The vm_ip of this ListSessionsRequest. + :rtype: str + """ + return self._vm_ip + + @vm_ip.setter + def vm_ip(self, vm_ip): + """Sets the vm_ip of this ListSessionsRequest. + + 服务器IP。 + + :param vm_ip: The vm_ip of this ListSessionsRequest. + :type vm_ip: str + """ + self._vm_ip = vm_ip + + @property + def machine_name(self): + """Gets the machine_name of this ListSessionsRequest. + + 应用服务器名称。 + + :return: The machine_name of this ListSessionsRequest. + :rtype: str + """ + return self._machine_name + + @machine_name.setter + def machine_name(self, machine_name): + """Sets the machine_name of this ListSessionsRequest. + + 应用服务器名称。 + + :param machine_name: The machine_name of this ListSessionsRequest. + :type machine_name: str + """ + self._machine_name = machine_name + + @property + def session_state(self): + """Gets the session_state of this ListSessionsRequest. + + 应用状态: * `Active` - 会话当前处于活动状态,有用户登录并且正在使用。 * `Disconnected` - 用户已经登录但会话处于断开连接状态。 * `AppcInit` - 会话正在初始化。 * `SignedOut` - 会话已注销。 * `InitFail` - 会话初始化失败。 + + :return: The session_state of this ListSessionsRequest. + :rtype: str + """ + return self._session_state + + @session_state.setter + def session_state(self, session_state): + """Sets the session_state of this ListSessionsRequest. + + 应用状态: * `Active` - 会话当前处于活动状态,有用户登录并且正在使用。 * `Disconnected` - 用户已经登录但会话处于断开连接状态。 * `AppcInit` - 会话正在初始化。 * `SignedOut` - 会话已注销。 * `InitFail` - 会话初始化失败。 + + :param session_state: The session_state of this ListSessionsRequest. + :type session_state: str + """ + self._session_state = session_state + + @property + def is_success(self): + """Gets the is_success of this ListSessionsRequest. + + 会话是否创建成功,默认不填则查询全部 * 'true' - 会话创建成功 * 'false' - 会话创建失败 + + :return: The is_success of this ListSessionsRequest. + :rtype: str + """ + return self._is_success + + @is_success.setter + def is_success(self, is_success): + """Sets the is_success of this ListSessionsRequest. + + 会话是否创建成功,默认不填则查询全部 * 'true' - 会话创建成功 * 'false' - 会话创建失败 + + :param is_success: The is_success of this ListSessionsRequest. + :type is_success: str + """ + self._is_success = is_success + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSessionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_response.py new file mode 100644 index 0000000000..b1291f2c13 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_sessions_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSessionsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'items': 'list[SessionInfo]' + } + + attribute_map = { + 'count': 'count', + 'items': 'items' + } + + def __init__(self, count=None, items=None): + """ListSessionsResponse + + The model defined in huaweicloud sdk + + :param count: 总数 + :type count: int + :param items: 企业的会话列表。 + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.SessionInfo`] + """ + + super(ListSessionsResponse, self).__init__() + + self._count = None + self._items = None + self.discriminator = None + + if count is not None: + self.count = count + if items is not None: + self.items = items + + @property + def count(self): + """Gets the count of this ListSessionsResponse. + + 总数 + + :return: The count of this ListSessionsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListSessionsResponse. + + 总数 + + :param count: The count of this ListSessionsResponse. + :type count: int + """ + self._count = count + + @property + def items(self): + """Gets the items of this ListSessionsResponse. + + 企业的会话列表。 + + :return: The items of this ListSessionsResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.SessionInfo`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListSessionsResponse. + + 企业的会话列表。 + + :param items: The items of this ListSessionsResponse. + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.SessionInfo`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSessionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py index 6c3d783111..cd3915c8be 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_share_folder_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 存储声明。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.SharePersistentStorageClaim`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListShareFolderResponse. - 总数。 + 总数 :return: The count of this ListShareFolderResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListShareFolderResponse. - 总数。 + 总数 :param count: The count of this ListShareFolderResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py index d82f902b85..3cc884316e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_assignment_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 查询用户存储声明配置。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PersistentStorageAssignment`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListStorageAssignmentResponse. - 总数。 + 总数 :return: The count of this ListStorageAssignmentResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListStorageAssignmentResponse. - 总数。 + 总数 :param count: The count of this ListStorageAssignmentResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py index 695a69fa23..7db9d6c809 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_storage_policy_statement_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 支持的访问策略。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.PolicyStatement`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListStoragePolicyStatementResponse. - 总数。 + 总数 :return: The count of this ListStoragePolicyStatementResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListStoragePolicyStatementResponse. - 总数。 + 总数 :param count: The count of this ListStoragePolicyStatementResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py index c0ca43b364..7f84015085 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_user_connection_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 应用使用记录列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.UserConnectionInfo`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this ListUserConnectionResponse. - 总数。 + 总数 :return: The count of this ListUserConnectionResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this ListUserConnectionResponse. - 总数。 + 总数 :param count: The count of this ListUserConnectionResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_request.py new file mode 100644 index 0000000000..e11f55aa4b --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_request.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWarehouseAppsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'offset': 'int', + 'verify_status': 'str', + 'app_id': 'str', + 'app_name': 'str', + 'app_category': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'verify_status': 'verify_status', + 'app_id': 'app_id', + 'app_name': 'app_name', + 'app_category': 'app_category' + } + + def __init__(self, limit=None, offset=None, verify_status=None, app_id=None, app_name=None, app_category=None): + """ListWarehouseAppsRequest + + The model defined in huaweicloud sdk + + :param limit: 单次查询的大小[1-100]。 + :type limit: int + :param offset: 查询的偏移量。 + :type offset: int + :param verify_status: 审核状态。 + :type verify_status: str + :param app_id: 应用仓库中的应用记录ID。 + :type app_id: str + :param app_name: 应用名称。 + :type app_name: str + :param app_category: 应用分类: * `GAME`- `游戏`。 * `BUSSINESS_INTELLIGENCE`- `商业智能`。 * `SECURE_STORAGE`- `安全与存储`。 * `MULTIMEDIA_AND_CODING`- `多媒体与编解码`。 * `PROJECT_MANAGEMENT`- `项目管理`, * `PRODUCTIVITY_AND_COLLABORATION`- `生产力与协作`。 * `WEB_ADN_APPLICATION`- `网页与应用开发`。 * `GRAPHIC_DESIGN`- `图形设计`。 * `OTHER`- `其它`。 + :type app_category: str + """ + + + + self._limit = None + self._offset = None + self._verify_status = None + self._app_id = None + self._app_name = None + self._app_category = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if verify_status is not None: + self.verify_status = verify_status + if app_id is not None: + self.app_id = app_id + if app_name is not None: + self.app_name = app_name + if app_category is not None: + self.app_category = app_category + + @property + def limit(self): + """Gets the limit of this ListWarehouseAppsRequest. + + 单次查询的大小[1-100]。 + + :return: The limit of this ListWarehouseAppsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListWarehouseAppsRequest. + + 单次查询的大小[1-100]。 + + :param limit: The limit of this ListWarehouseAppsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListWarehouseAppsRequest. + + 查询的偏移量。 + + :return: The offset of this ListWarehouseAppsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListWarehouseAppsRequest. + + 查询的偏移量。 + + :param offset: The offset of this ListWarehouseAppsRequest. + :type offset: int + """ + self._offset = offset + + @property + def verify_status(self): + """Gets the verify_status of this ListWarehouseAppsRequest. + + 审核状态。 + + :return: The verify_status of this ListWarehouseAppsRequest. + :rtype: str + """ + return self._verify_status + + @verify_status.setter + def verify_status(self, verify_status): + """Sets the verify_status of this ListWarehouseAppsRequest. + + 审核状态。 + + :param verify_status: The verify_status of this ListWarehouseAppsRequest. + :type verify_status: str + """ + self._verify_status = verify_status + + @property + def app_id(self): + """Gets the app_id of this ListWarehouseAppsRequest. + + 应用仓库中的应用记录ID。 + + :return: The app_id of this ListWarehouseAppsRequest. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this ListWarehouseAppsRequest. + + 应用仓库中的应用记录ID。 + + :param app_id: The app_id of this ListWarehouseAppsRequest. + :type app_id: str + """ + self._app_id = app_id + + @property + def app_name(self): + """Gets the app_name of this ListWarehouseAppsRequest. + + 应用名称。 + + :return: The app_name of this ListWarehouseAppsRequest. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this ListWarehouseAppsRequest. + + 应用名称。 + + :param app_name: The app_name of this ListWarehouseAppsRequest. + :type app_name: str + """ + self._app_name = app_name + + @property + def app_category(self): + """Gets the app_category of this ListWarehouseAppsRequest. + + 应用分类: * `GAME`- `游戏`。 * `BUSSINESS_INTELLIGENCE`- `商业智能`。 * `SECURE_STORAGE`- `安全与存储`。 * `MULTIMEDIA_AND_CODING`- `多媒体与编解码`。 * `PROJECT_MANAGEMENT`- `项目管理`, * `PRODUCTIVITY_AND_COLLABORATION`- `生产力与协作`。 * `WEB_ADN_APPLICATION`- `网页与应用开发`。 * `GRAPHIC_DESIGN`- `图形设计`。 * `OTHER`- `其它`。 + + :return: The app_category of this ListWarehouseAppsRequest. + :rtype: str + """ + return self._app_category + + @app_category.setter + def app_category(self, app_category): + """Sets the app_category of this ListWarehouseAppsRequest. + + 应用分类: * `GAME`- `游戏`。 * `BUSSINESS_INTELLIGENCE`- `商业智能`。 * `SECURE_STORAGE`- `安全与存储`。 * `MULTIMEDIA_AND_CODING`- `多媒体与编解码`。 * `PROJECT_MANAGEMENT`- `项目管理`, * `PRODUCTIVITY_AND_COLLABORATION`- `生产力与协作`。 * `WEB_ADN_APPLICATION`- `网页与应用开发`。 * `GRAPHIC_DESIGN`- `图形设计`。 * `OTHER`- `其它`。 + + :param app_category: The app_category of this ListWarehouseAppsRequest. + :type app_category: str + """ + self._app_category = app_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, ListWarehouseAppsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_response.py new file mode 100644 index 0000000000..48a9480c74 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/list_warehouse_apps_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWarehouseAppsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'items': 'list[WarehouseApp]' + } + + attribute_map = { + 'count': 'count', + 'items': 'items' + } + + def __init__(self, count=None, items=None): + """ListWarehouseAppsResponse + + The model defined in huaweicloud sdk + + :param count: 总数 + :type count: int + :param items: 应用仓库中的应用列表。 + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.WarehouseApp`] + """ + + super(ListWarehouseAppsResponse, self).__init__() + + self._count = None + self._items = None + self.discriminator = None + + if count is not None: + self.count = count + if items is not None: + self.items = items + + @property + def count(self): + """Gets the count of this ListWarehouseAppsResponse. + + 总数 + + :return: The count of this ListWarehouseAppsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListWarehouseAppsResponse. + + 总数 + + :param count: The count of this ListWarehouseAppsResponse. + :type count: int + """ + self._count = count + + @property + def items(self): + """Gets the items of this ListWarehouseAppsResponse. + + 应用仓库中的应用列表。 + + :return: The items of this ListWarehouseAppsResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.WarehouseApp`] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this ListWarehouseAppsResponse. + + 应用仓库中的应用列表。 + + :param items: The items of this ListWarehouseAppsResponse. + :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.WarehouseApp`] + """ + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListWarehouseAppsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/obs_policy_statement.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/obs_policy_statement.py new file mode 100644 index 0000000000..20c1c0695e --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/obs_policy_statement.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ObsPolicyStatement: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'effect': 'PolicyEffectEnum', + 'action': 'list[str]', + 'resource': 'list[str]' + } + + attribute_map = { + 'effect': 'effect', + 'action': 'action', + 'resource': 'resource' + } + + def __init__(self, effect=None, action=None, resource=None): + """ObsPolicyStatement + + The model defined in huaweicloud sdk + + :param effect: + :type effect: :class:`huaweicloudsdkworkspaceapp.v1.PolicyEffectEnum` + :param action: 可以进行操作的权限合集。 + :type action: list[str] + :param resource: 允许访问的资源。 + :type resource: list[str] + """ + + + + self._effect = None + self._action = None + self._resource = None + self.discriminator = None + + if effect is not None: + self.effect = effect + if action is not None: + self.action = action + if resource is not None: + self.resource = resource + + @property + def effect(self): + """Gets the effect of this ObsPolicyStatement. + + :return: The effect of this ObsPolicyStatement. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.PolicyEffectEnum` + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this ObsPolicyStatement. + + :param effect: The effect of this ObsPolicyStatement. + :type effect: :class:`huaweicloudsdkworkspaceapp.v1.PolicyEffectEnum` + """ + self._effect = effect + + @property + def action(self): + """Gets the action of this ObsPolicyStatement. + + 可以进行操作的权限合集。 + + :return: The action of this ObsPolicyStatement. + :rtype: list[str] + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this ObsPolicyStatement. + + 可以进行操作的权限合集。 + + :param action: The action of this ObsPolicyStatement. + :type action: list[str] + """ + self._action = action + + @property + def resource(self): + """Gets the resource of this ObsPolicyStatement. + + 允许访问的资源。 + + :return: The resource of this ObsPolicyStatement. + :rtype: list[str] + """ + return self._resource + + @resource.setter + def resource(self, resource): + """Sets the resource of this ObsPolicyStatement. + + 允许访问的资源。 + + :param resource: The resource of this ObsPolicyStatement. + :type resource: list[str] + """ + self._resource = resource + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ObsPolicyStatement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py index ee4b7e0532..43cd94c74d 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/page_resp.py @@ -29,7 +29,7 @@ def __init__(self, count=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int """ @@ -45,7 +45,7 @@ def __init__(self, count=None): def count(self): """Gets the count of this PageResp. - 总数。 + 总数 :return: The count of this PageResp. :rtype: int @@ -56,7 +56,7 @@ def count(self): def count(self, count): """Sets the count of this PageResp. - 总数。 + 总数 :param count: The count of this PageResp. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_file_and_clipboard_clipboard_redirection_options.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_file_and_clipboard_clipboard_redirection_options.py index 62075d06d2..a6dc4816a4 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_file_and_clipboard_clipboard_redirection_options.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policies_file_and_clipboard_clipboard_redirection_options.py @@ -20,17 +20,25 @@ class PoliciesFileAndClipboardClipboardRedirectionOptions: 'rich_text_redirection_enable': 'bool', 'rich_text_clipboard_redirection': 'str', 'clipboard_file_redirection_enable': 'bool', - 'file_clipboard_redirection': 'str' + 'file_clipboard_redirection': 'str', + 'clipboard_length_limit_cts_enable': 'bool', + 'clipboard_length_limit_cts': 'int', + 'clipboard_length_limit_stc_enable': 'bool', + 'clipboard_length_limit_stc': 'int' } attribute_map = { 'rich_text_redirection_enable': 'rich_text_redirection_enable', 'rich_text_clipboard_redirection': 'rich_text_clipboard_redirection', 'clipboard_file_redirection_enable': 'clipboard_file_redirection_enable', - 'file_clipboard_redirection': 'file_clipboard_redirection' + 'file_clipboard_redirection': 'file_clipboard_redirection', + 'clipboard_length_limit_cts_enable': 'clipboard_length_limit_cts_enable', + 'clipboard_length_limit_cts': 'clipboard_length_limit_cts', + 'clipboard_length_limit_stc_enable': 'clipboard_length_limit_stc_enable', + 'clipboard_length_limit_stc': 'clipboard_length_limit_stc' } - def __init__(self, rich_text_redirection_enable=None, rich_text_clipboard_redirection=None, clipboard_file_redirection_enable=None, file_clipboard_redirection=None): + def __init__(self, rich_text_redirection_enable=None, rich_text_clipboard_redirection=None, clipboard_file_redirection_enable=None, file_clipboard_redirection=None, clipboard_length_limit_cts_enable=None, clipboard_length_limit_cts=None, clipboard_length_limit_stc_enable=None, clipboard_length_limit_stc=None): """PoliciesFileAndClipboardClipboardRedirectionOptions The model defined in huaweicloud sdk @@ -43,6 +51,14 @@ def __init__(self, rich_text_redirection_enable=None, rich_text_clipboard_redire :type clipboard_file_redirection_enable: bool :param file_clipboard_redirection: 剪切板文件重定向。取值为: DISABLED:表示禁用。(默认) SERVER_TO_CLIENT_ENABLED:表示开启服务端到客户端。 CLIENT_TO_SERVER_ENABLED:表示开启客户端到服务端。 TWO_WAY_ENABLED:表示开启双向。 :type file_clipboard_redirection: str + :param clipboard_length_limit_cts_enable: 本地到虚拟机长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + :type clipboard_length_limit_cts_enable: bool + :param clipboard_length_limit_cts: 本地到虚拟机长度限制。 + :type clipboard_length_limit_cts: int + :param clipboard_length_limit_stc_enable: 虚拟机到本地到长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + :type clipboard_length_limit_stc_enable: bool + :param clipboard_length_limit_stc: 虚拟机到本地长度限制。 + :type clipboard_length_limit_stc: int """ @@ -51,6 +67,10 @@ def __init__(self, rich_text_redirection_enable=None, rich_text_clipboard_redire self._rich_text_clipboard_redirection = None self._clipboard_file_redirection_enable = None self._file_clipboard_redirection = None + self._clipboard_length_limit_cts_enable = None + self._clipboard_length_limit_cts = None + self._clipboard_length_limit_stc_enable = None + self._clipboard_length_limit_stc = None self.discriminator = None if rich_text_redirection_enable is not None: @@ -61,6 +81,14 @@ def __init__(self, rich_text_redirection_enable=None, rich_text_clipboard_redire self.clipboard_file_redirection_enable = clipboard_file_redirection_enable if file_clipboard_redirection is not None: self.file_clipboard_redirection = file_clipboard_redirection + if clipboard_length_limit_cts_enable is not None: + self.clipboard_length_limit_cts_enable = clipboard_length_limit_cts_enable + if clipboard_length_limit_cts is not None: + self.clipboard_length_limit_cts = clipboard_length_limit_cts + if clipboard_length_limit_stc_enable is not None: + self.clipboard_length_limit_stc_enable = clipboard_length_limit_stc_enable + if clipboard_length_limit_stc is not None: + self.clipboard_length_limit_stc = clipboard_length_limit_stc @property def rich_text_redirection_enable(self): @@ -150,6 +178,94 @@ def file_clipboard_redirection(self, file_clipboard_redirection): """ self._file_clipboard_redirection = file_clipboard_redirection + @property + def clipboard_length_limit_cts_enable(self): + """Gets the clipboard_length_limit_cts_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 本地到虚拟机长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + + :return: The clipboard_length_limit_cts_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :rtype: bool + """ + return self._clipboard_length_limit_cts_enable + + @clipboard_length_limit_cts_enable.setter + def clipboard_length_limit_cts_enable(self, clipboard_length_limit_cts_enable): + """Sets the clipboard_length_limit_cts_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 本地到虚拟机长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + + :param clipboard_length_limit_cts_enable: The clipboard_length_limit_cts_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :type clipboard_length_limit_cts_enable: bool + """ + self._clipboard_length_limit_cts_enable = clipboard_length_limit_cts_enable + + @property + def clipboard_length_limit_cts(self): + """Gets the clipboard_length_limit_cts of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 本地到虚拟机长度限制。 + + :return: The clipboard_length_limit_cts of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :rtype: int + """ + return self._clipboard_length_limit_cts + + @clipboard_length_limit_cts.setter + def clipboard_length_limit_cts(self, clipboard_length_limit_cts): + """Sets the clipboard_length_limit_cts of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 本地到虚拟机长度限制。 + + :param clipboard_length_limit_cts: The clipboard_length_limit_cts of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :type clipboard_length_limit_cts: int + """ + self._clipboard_length_limit_cts = clipboard_length_limit_cts + + @property + def clipboard_length_limit_stc_enable(self): + """Gets the clipboard_length_limit_stc_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 虚拟机到本地到长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + + :return: The clipboard_length_limit_stc_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :rtype: bool + """ + return self._clipboard_length_limit_stc_enable + + @clipboard_length_limit_stc_enable.setter + def clipboard_length_limit_stc_enable(self, clipboard_length_limit_stc_enable): + """Sets the clipboard_length_limit_stc_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 虚拟机到本地到长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + + :param clipboard_length_limit_stc_enable: The clipboard_length_limit_stc_enable of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :type clipboard_length_limit_stc_enable: bool + """ + self._clipboard_length_limit_stc_enable = clipboard_length_limit_stc_enable + + @property + def clipboard_length_limit_stc(self): + """Gets the clipboard_length_limit_stc of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 虚拟机到本地长度限制。 + + :return: The clipboard_length_limit_stc of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :rtype: int + """ + return self._clipboard_length_limit_stc + + @clipboard_length_limit_stc.setter + def clipboard_length_limit_stc(self, clipboard_length_limit_stc): + """Sets the clipboard_length_limit_stc of this PoliciesFileAndClipboardClipboardRedirectionOptions. + + 虚拟机到本地长度限制。 + + :param clipboard_length_limit_stc: The clipboard_length_limit_stc of this PoliciesFileAndClipboardClipboardRedirectionOptions. + :type clipboard_length_limit_stc: int + """ + self._clipboard_length_limit_stc = clipboard_length_limit_stc + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy.py new file mode 100644 index 0000000000..277e1f2719 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Policy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'version': 'str', + 'statement': 'ObsPolicyStatement' + } + + attribute_map = { + 'version': 'version', + 'statement': 'statement' + } + + def __init__(self, version=None, statement=None): + """Policy + + The model defined in huaweicloud sdk + + :param version: 版本号。 + :type version: str + :param statement: + :type statement: :class:`huaweicloudsdkworkspaceapp.v1.ObsPolicyStatement` + """ + + + + self._version = None + self._statement = None + self.discriminator = None + + if version is not None: + self.version = version + if statement is not None: + self.statement = statement + + @property + def version(self): + """Gets the version of this Policy. + + 版本号。 + + :return: The version of this Policy. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Policy. + + 版本号。 + + :param version: The version of this Policy. + :type version: str + """ + self._version = version + + @property + def statement(self): + """Gets the statement of this Policy. + + :return: The statement of this Policy. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ObsPolicyStatement` + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this Policy. + + :param statement: The statement of this Policy. + :type statement: :class:`huaweicloudsdkworkspaceapp.v1.ObsPolicyStatement` + """ + self._statement = statement + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Policy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_effect_enum.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_effect_enum.py new file mode 100644 index 0000000000..3eed85a42d --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/policy_effect_enum.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PolicyEffectEnum: + """ + allowed enum values + """ + ALLOW = "Allow" + DENY = "Deny" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """PolicyEffectEnum + + 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, PolicyEffectEnum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py index 6af1f8dcce..518a0418d6 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/product_info.py @@ -40,6 +40,7 @@ class ProductInfo: 'sub_product_list': 'list[str]', 'domain_ids': 'list[str]', 'package_type': 'str', + 'series_type': 'str', 'expire_time': 'datetime', 'support_gpu_type': 'str' } @@ -68,11 +69,12 @@ class ProductInfo: 'sub_product_list': 'sub_product_list', 'domain_ids': 'domain_ids', 'package_type': 'package_type', + 'series_type': 'series_type', 'expire_time': 'expire_time', 'support_gpu_type': 'support_gpu_type' } - def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None, cpu=None, cpu_desc=None, memory=None, is_gpu=None, system_disk_type=None, system_disk_size=None, gpu_desc=None, descriptions=None, charge_mode=None, contain_data_disk=None, resource_type=None, cloud_service_type=None, volume_product_type=None, sessions=None, status=None, cond_operation_az=None, sub_product_list=None, domain_ids=None, package_type=None, expire_time=None, support_gpu_type=None): + def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None, cpu=None, cpu_desc=None, memory=None, is_gpu=None, system_disk_type=None, system_disk_size=None, gpu_desc=None, descriptions=None, charge_mode=None, contain_data_disk=None, resource_type=None, cloud_service_type=None, volume_product_type=None, sessions=None, status=None, cond_operation_az=None, sub_product_list=None, domain_ids=None, package_type=None, series_type=None, expire_time=None, support_gpu_type=None): """ProductInfo The model defined in huaweicloud sdk @@ -123,6 +125,8 @@ def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None :type domain_ids: list[str] :param package_type: 套餐类型: - general:表示产品通用套餐。 - dedicated:表示产品专属主机套餐。 :type package_type: str + :param series_type: 系列类型 + :type series_type: str :param expire_time: 产品套餐过期时间,产品将在改时间点后逐步下架。 :type expire_time: datetime :param support_gpu_type: 产品套餐支持的GPU类型。 @@ -154,6 +158,7 @@ def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None self._sub_product_list = None self._domain_ids = None self._package_type = None + self._series_type = None self._expire_time = None self._support_gpu_type = None self.discriminator = None @@ -204,6 +209,8 @@ def __init__(self, product_id=None, flavor_id=None, type=None, architecture=None self.domain_ids = domain_ids if package_type is not None: self.package_type = package_type + if series_type is not None: + self.series_type = series_type if expire_time is not None: self.expire_time = expire_time if support_gpu_type is not None: @@ -715,6 +722,28 @@ def package_type(self, package_type): """ self._package_type = package_type + @property + def series_type(self): + """Gets the series_type of this ProductInfo. + + 系列类型 + + :return: The series_type of this ProductInfo. + :rtype: str + """ + return self._series_type + + @series_type.setter + def series_type(self, series_type): + """Sets the series_type of this ProductInfo. + + 系列类型 + + :param series_type: The series_type of this ProductInfo. + :type series_type: str + """ + self._series_type = series_type + @property def expire_time(self): """Gets the expire_time of this ProductInfo. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py index 6eff1fd7ac..ec19c71a2c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/publish_app_response.py @@ -32,7 +32,7 @@ def __init__(self, count=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param items: 查发布的应用列表。 :type items: list[:class:`huaweicloudsdkworkspaceapp.v1.App`] @@ -53,7 +53,7 @@ def __init__(self, count=None, items=None): def count(self): """Gets the count of this PublishAppResponse. - 总数。 + 总数 :return: The count of this PublishAppResponse. :rtype: int @@ -64,7 +64,7 @@ def count(self): def count(self, count): """Sets the count of this PublishAppResponse. - 总数。 + 总数 :param count: The count of this PublishAppResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_request.py new file mode 100644 index 0000000000..c0ef13f111 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecreateServerImageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str', + 'body': 'CreateServerImageReq' + } + + attribute_map = { + 'server_id': 'server_id', + 'body': 'body' + } + + def __init__(self, server_id=None, body=None): + """RecreateServerImageRequest + + The model defined in huaweicloud sdk + + :param server_id: 镜像实例唯一标识。 + :type server_id: str + :param body: Body of the RecreateServerImageRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateServerImageReq` + """ + + + + self._server_id = None + self._body = None + self.discriminator = None + + self.server_id = server_id + if body is not None: + self.body = body + + @property + def server_id(self): + """Gets the server_id of this RecreateServerImageRequest. + + 镜像实例唯一标识。 + + :return: The server_id of this RecreateServerImageRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this RecreateServerImageRequest. + + 镜像实例唯一标识。 + + :param server_id: The server_id of this RecreateServerImageRequest. + :type server_id: str + """ + self._server_id = server_id + + @property + def body(self): + """Gets the body of this RecreateServerImageRequest. + + :return: The body of this RecreateServerImageRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateServerImageReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RecreateServerImageRequest. + + :param body: The body of this RecreateServerImageRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.CreateServerImageReq` + """ + 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, RecreateServerImageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_response.py new file mode 100644 index 0000000000..b4904a4a13 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/recreate_server_image_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RecreateServerImageResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """RecreateServerImageResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + super(RecreateServerImageResponse, self).__init__() + + self._job_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this RecreateServerImageResponse. + + 任务ID。 + + :return: The job_id of this RecreateServerImageResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this RecreateServerImageResponse. + + 任务ID。 + + :param job_id: The job_id of this RecreateServerImageResponse. + :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, RecreateServerImageResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_data_points.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_data_points.py new file mode 100644 index 0000000000..89cdf9f1b7 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_data_points.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ServerDataPoints: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'average': 'float', + 'max': 'float', + 'min': 'float', + 'sum': 'float', + 'variance': 'float', + 'timestamp': 'int', + 'unit': 'str' + } + + attribute_map = { + 'average': 'average', + 'max': 'max', + 'min': 'min', + 'sum': 'sum', + 'variance': 'variance', + 'timestamp': 'timestamp', + 'unit': 'unit' + } + + def __init__(self, average=None, max=None, min=None, sum=None, variance=None, timestamp=None, unit=None): + """ServerDataPoints + + The model defined in huaweicloud sdk + + :param average: 聚合周期内指标数据的平均值。 + :type average: float + :param max: 聚合周期内指标数据的最大值。 + :type max: float + :param min: 聚合周期内指标数据的最小值。 + :type min: float + :param sum: 聚合周期内指标数据的求和值。 + :type sum: float + :param variance: 聚合周期内指标数据的方差。 + :type variance: float + :param timestamp: 指标采集时间,UNIX时间戳,单位毫秒。 + :type timestamp: int + :param unit: 指标单位。 + :type unit: str + """ + + + + self._average = None + self._max = None + self._min = None + self._sum = None + self._variance = None + self._timestamp = None + self._unit = None + self.discriminator = None + + if average is not None: + self.average = average + if max is not None: + self.max = max + if min is not None: + self.min = min + if sum is not None: + self.sum = sum + if variance is not None: + self.variance = variance + if timestamp is not None: + self.timestamp = timestamp + if unit is not None: + self.unit = unit + + @property + def average(self): + """Gets the average of this ServerDataPoints. + + 聚合周期内指标数据的平均值。 + + :return: The average of this ServerDataPoints. + :rtype: float + """ + return self._average + + @average.setter + def average(self, average): + """Sets the average of this ServerDataPoints. + + 聚合周期内指标数据的平均值。 + + :param average: The average of this ServerDataPoints. + :type average: float + """ + self._average = average + + @property + def max(self): + """Gets the max of this ServerDataPoints. + + 聚合周期内指标数据的最大值。 + + :return: The max of this ServerDataPoints. + :rtype: float + """ + return self._max + + @max.setter + def max(self, max): + """Sets the max of this ServerDataPoints. + + 聚合周期内指标数据的最大值。 + + :param max: The max of this ServerDataPoints. + :type max: float + """ + self._max = max + + @property + def min(self): + """Gets the min of this ServerDataPoints. + + 聚合周期内指标数据的最小值。 + + :return: The min of this ServerDataPoints. + :rtype: float + """ + return self._min + + @min.setter + def min(self, min): + """Sets the min of this ServerDataPoints. + + 聚合周期内指标数据的最小值。 + + :param min: The min of this ServerDataPoints. + :type min: float + """ + self._min = min + + @property + def sum(self): + """Gets the sum of this ServerDataPoints. + + 聚合周期内指标数据的求和值。 + + :return: The sum of this ServerDataPoints. + :rtype: float + """ + return self._sum + + @sum.setter + def sum(self, sum): + """Sets the sum of this ServerDataPoints. + + 聚合周期内指标数据的求和值。 + + :param sum: The sum of this ServerDataPoints. + :type sum: float + """ + self._sum = sum + + @property + def variance(self): + """Gets the variance of this ServerDataPoints. + + 聚合周期内指标数据的方差。 + + :return: The variance of this ServerDataPoints. + :rtype: float + """ + return self._variance + + @variance.setter + def variance(self, variance): + """Sets the variance of this ServerDataPoints. + + 聚合周期内指标数据的方差。 + + :param variance: The variance of this ServerDataPoints. + :type variance: float + """ + self._variance = variance + + @property + def timestamp(self): + """Gets the timestamp of this ServerDataPoints. + + 指标采集时间,UNIX时间戳,单位毫秒。 + + :return: The timestamp of this ServerDataPoints. + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this ServerDataPoints. + + 指标采集时间,UNIX时间戳,单位毫秒。 + + :param timestamp: The timestamp of this ServerDataPoints. + :type timestamp: int + """ + self._timestamp = timestamp + + @property + def unit(self): + """Gets the unit of this ServerDataPoints. + + 指标单位。 + + :return: The unit of this ServerDataPoints. + :rtype: str + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this ServerDataPoints. + + 指标单位。 + + :param unit: The unit of this ServerDataPoints. + :type unit: str + """ + self._unit = unit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ServerDataPoints): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py index e5385feaf3..fde5c1a42c 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_group.py @@ -33,6 +33,12 @@ class ServerGroup: 'create_time': 'datetime', 'update_time': 'datetime', 'storage_mount_policy': 'StorageFolderMountType', + 'enterprise_project_id': 'str', + 'primary_server_group_ids': 'list[str]', + 'secondary_server_group_ids': 'list[str]', + 'server_group_status': 'bool', + 'site_type': 'str', + 'site_id': 'str', 'app_server_flavor_count': 'int', 'app_server_count': 'int', 'app_group_count': 'int', @@ -40,6 +46,7 @@ class ServerGroup: 'product_info': 'ProductInfo', 'subnet_name': 'str', 'scaling_policy': 'ScalingPolicy', + 'tags': 'list[TmsTag]', 'ou_name': 'str' } @@ -60,6 +67,12 @@ class ServerGroup: 'create_time': 'create_time', 'update_time': 'update_time', 'storage_mount_policy': 'storage_mount_policy', + 'enterprise_project_id': 'enterprise_project_id', + 'primary_server_group_ids': 'primary_server_group_ids', + 'secondary_server_group_ids': 'secondary_server_group_ids', + 'server_group_status': 'server_group_status', + 'site_type': 'site_type', + 'site_id': 'site_id', 'app_server_flavor_count': 'app_server_flavor_count', 'app_server_count': 'app_server_count', 'app_group_count': 'app_group_count', @@ -67,10 +80,11 @@ class ServerGroup: 'product_info': 'product_info', 'subnet_name': 'subnet_name', 'scaling_policy': 'scaling_policy', + 'tags': 'tags', 'ou_name': 'ou_name' } - def __init__(self, id=None, name=None, description=None, image_id=None, os_type=None, product_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, is_vdi=None, extra_session_type=None, extra_session_size=None, app_type=None, create_time=None, update_time=None, storage_mount_policy=None, app_server_flavor_count=None, app_server_count=None, app_group_count=None, image_name=None, product_info=None, subnet_name=None, scaling_policy=None, ou_name=None): + def __init__(self, id=None, name=None, description=None, image_id=None, os_type=None, product_id=None, subnet_id=None, system_disk_type=None, system_disk_size=None, is_vdi=None, extra_session_type=None, extra_session_size=None, app_type=None, create_time=None, update_time=None, storage_mount_policy=None, enterprise_project_id=None, primary_server_group_ids=None, secondary_server_group_ids=None, server_group_status=None, site_type=None, site_id=None, app_server_flavor_count=None, app_server_count=None, app_group_count=None, image_name=None, product_info=None, subnet_name=None, scaling_policy=None, tags=None, ou_name=None): """ServerGroup The model defined in huaweicloud sdk @@ -107,6 +121,18 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type update_time: datetime :param storage_mount_policy: :type storage_mount_policy: :class:`huaweicloudsdkworkspaceapp.v1.StorageFolderMountType` + :param enterprise_project_id: 企业项目ID(0表示默认企业项目Id) + :type enterprise_project_id: str + :param primary_server_group_ids: 主服务器组id列表。 + :type primary_server_group_ids: list[str] + :param secondary_server_group_ids: 备服务器组id列表。 + :type secondary_server_group_ids: list[str] + :param server_group_status: 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + :type server_group_status: bool + :param site_type: 站点类型 - CENTER/IES + :type site_type: str + :param site_id: 站点id + :type site_id: str :param app_server_flavor_count: 服务器配置总数量。 :type app_server_flavor_count: int :param app_server_count: 服务器总数量。 @@ -121,6 +147,8 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= :type subnet_name: str :param scaling_policy: :type scaling_policy: :class:`huaweicloudsdkworkspaceapp.v1.ScalingPolicy` + :param tags: 标签信息 + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] :param ou_name: 默认组织名称。 :type ou_name: str """ @@ -143,6 +171,12 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self._create_time = None self._update_time = None self._storage_mount_policy = None + self._enterprise_project_id = None + self._primary_server_group_ids = None + self._secondary_server_group_ids = None + self._server_group_status = None + self._site_type = None + self._site_id = None self._app_server_flavor_count = None self._app_server_count = None self._app_group_count = None @@ -150,6 +184,7 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self._product_info = None self._subnet_name = None self._scaling_policy = None + self._tags = None self._ou_name = None self.discriminator = None @@ -185,6 +220,18 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self.update_time = update_time if storage_mount_policy is not None: self.storage_mount_policy = storage_mount_policy + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if primary_server_group_ids is not None: + self.primary_server_group_ids = primary_server_group_ids + if secondary_server_group_ids is not None: + self.secondary_server_group_ids = secondary_server_group_ids + if server_group_status is not None: + self.server_group_status = server_group_status + if site_type is not None: + self.site_type = site_type + if site_id is not None: + self.site_id = site_id if app_server_flavor_count is not None: self.app_server_flavor_count = app_server_flavor_count if app_server_count is not None: @@ -199,6 +246,8 @@ def __init__(self, id=None, name=None, description=None, image_id=None, os_type= self.subnet_name = subnet_name if scaling_policy is not None: self.scaling_policy = scaling_policy + if tags is not None: + self.tags = tags if ou_name is not None: self.ou_name = ou_name @@ -534,6 +583,138 @@ def storage_mount_policy(self, storage_mount_policy): """ self._storage_mount_policy = storage_mount_policy + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ServerGroup. + + 企业项目ID(0表示默认企业项目Id) + + :return: The enterprise_project_id of this ServerGroup. + :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 ServerGroup. + + 企业项目ID(0表示默认企业项目Id) + + :param enterprise_project_id: The enterprise_project_id of this ServerGroup. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def primary_server_group_ids(self): + """Gets the primary_server_group_ids of this ServerGroup. + + 主服务器组id列表。 + + :return: The primary_server_group_ids of this ServerGroup. + :rtype: list[str] + """ + return self._primary_server_group_ids + + @primary_server_group_ids.setter + def primary_server_group_ids(self, primary_server_group_ids): + """Sets the primary_server_group_ids of this ServerGroup. + + 主服务器组id列表。 + + :param primary_server_group_ids: The primary_server_group_ids of this ServerGroup. + :type primary_server_group_ids: list[str] + """ + self._primary_server_group_ids = primary_server_group_ids + + @property + def secondary_server_group_ids(self): + """Gets the secondary_server_group_ids of this ServerGroup. + + 备服务器组id列表。 + + :return: The secondary_server_group_ids of this ServerGroup. + :rtype: list[str] + """ + return self._secondary_server_group_ids + + @secondary_server_group_ids.setter + def secondary_server_group_ids(self, secondary_server_group_ids): + """Sets the secondary_server_group_ids of this ServerGroup. + + 备服务器组id列表。 + + :param secondary_server_group_ids: The secondary_server_group_ids of this ServerGroup. + :type secondary_server_group_ids: list[str] + """ + self._secondary_server_group_ids = secondary_server_group_ids + + @property + def server_group_status(self): + """Gets the server_group_status of this ServerGroup. + + 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + + :return: The server_group_status of this ServerGroup. + :rtype: bool + """ + return self._server_group_status + + @server_group_status.setter + def server_group_status(self, server_group_status): + """Sets the server_group_status of this ServerGroup. + + 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + + :param server_group_status: The server_group_status of this ServerGroup. + :type server_group_status: bool + """ + self._server_group_status = server_group_status + + @property + def site_type(self): + """Gets the site_type of this ServerGroup. + + 站点类型 - CENTER/IES + + :return: The site_type of this ServerGroup. + :rtype: str + """ + return self._site_type + + @site_type.setter + def site_type(self, site_type): + """Sets the site_type of this ServerGroup. + + 站点类型 - CENTER/IES + + :param site_type: The site_type of this ServerGroup. + :type site_type: str + """ + self._site_type = site_type + + @property + def site_id(self): + """Gets the site_id of this ServerGroup. + + 站点id + + :return: The site_id of this ServerGroup. + :rtype: str + """ + return self._site_id + + @site_id.setter + def site_id(self, site_id): + """Sets the site_id of this ServerGroup. + + 站点id + + :param site_id: The site_id of this ServerGroup. + :type site_id: str + """ + self._site_id = site_id + @property def app_server_flavor_count(self): """Gets the app_server_flavor_count of this ServerGroup. @@ -680,6 +861,28 @@ def scaling_policy(self, scaling_policy): """ self._scaling_policy = scaling_policy + @property + def tags(self): + """Gets the tags of this ServerGroup. + + 标签信息 + + :return: The tags of this ServerGroup. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ServerGroup. + + 标签信息 + + :param tags: The tags of this ServerGroup. + :type tags: list[:class:`huaweicloudsdkworkspaceapp.v1.TmsTag`] + """ + self._tags = tags + @property def ou_name(self): """Gets the ou_name of this ServerGroup. diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_metric_data.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_metric_data.py new file mode 100644 index 0000000000..f651ff4602 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/server_metric_data.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ServerMetricData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'metric_name': 'str', + 'datapoints': 'list[ServerDataPoints]', + 'dimension_value': 'str' + } + + attribute_map = { + 'metric_name': 'metric_name', + 'datapoints': 'datapoints', + 'dimension_value': 'dimension_value' + } + + def __init__(self, metric_name=None, datapoints=None, dimension_value=None): + """ServerMetricData + + The model defined in huaweicloud sdk + + :param metric_name: 监控指标名称。 + :type metric_name: str + :param datapoints: 指标数据列表。 + :type datapoints: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerDataPoints`] + :param dimension_value: 维度值,仅查询GPU监控信息时有值。 + :type dimension_value: str + """ + + + + self._metric_name = None + self._datapoints = None + self._dimension_value = None + self.discriminator = None + + if metric_name is not None: + self.metric_name = metric_name + if datapoints is not None: + self.datapoints = datapoints + if dimension_value is not None: + self.dimension_value = dimension_value + + @property + def metric_name(self): + """Gets the metric_name of this ServerMetricData. + + 监控指标名称。 + + :return: The metric_name of this ServerMetricData. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """Sets the metric_name of this ServerMetricData. + + 监控指标名称。 + + :param metric_name: The metric_name of this ServerMetricData. + :type metric_name: str + """ + self._metric_name = metric_name + + @property + def datapoints(self): + """Gets the datapoints of this ServerMetricData. + + 指标数据列表。 + + :return: The datapoints of this ServerMetricData. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerDataPoints`] + """ + return self._datapoints + + @datapoints.setter + def datapoints(self, datapoints): + """Sets the datapoints of this ServerMetricData. + + 指标数据列表。 + + :param datapoints: The datapoints of this ServerMetricData. + :type datapoints: list[:class:`huaweicloudsdkworkspaceapp.v1.ServerDataPoints`] + """ + self._datapoints = datapoints + + @property + def dimension_value(self): + """Gets the dimension_value of this ServerMetricData. + + 维度值,仅查询GPU监控信息时有值。 + + :return: The dimension_value of this ServerMetricData. + :rtype: str + """ + return self._dimension_value + + @dimension_value.setter + def dimension_value(self, dimension_value): + """Sets the dimension_value of this ServerMetricData. + + 维度值,仅查询GPU监控信息时有值。 + + :param dimension_value: The dimension_value of this ServerMetricData. + :type dimension_value: str + """ + self._dimension_value = dimension_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ServerMetricData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_info.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_info.py new file mode 100644 index 0000000000..c7bf54dff3 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/session_info.py @@ -0,0 +1,869 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SessionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'session_stamp': 'str', + 'os_session_id': 'str', + 'protocol_type': 'str', + 'login_user': 'str', + 'session_type': 'str', + 'app_server_group_id': 'str', + 'app_server_group_name': 'str', + 'pre_conn_time': 'datetime', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'status_continue_time': 'str', + 'machine_sid': 'str', + 'machine_name': 'str', + 'session_state': 'str', + 'app_name': 'str', + 'client_mac': 'str', + 'client_name': 'str', + 'client_ip': 'str', + 'client_version': 'str', + 'client_type': 'str', + 'agent_version': 'str', + 'vm_ip': 'str', + 'failed_reason': 'str', + 'failed_code': 'str', + 'last_update_status_time': 'datetime', + 'tenant_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'session_stamp': 'session_stamp', + 'os_session_id': 'os_session_id', + 'protocol_type': 'protocol_type', + 'login_user': 'login_user', + 'session_type': 'session_type', + 'app_server_group_id': 'app_server_group_id', + 'app_server_group_name': 'app_server_group_name', + 'pre_conn_time': 'pre_conn_time', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'status_continue_time': 'status_continue_time', + 'machine_sid': 'machine_sid', + 'machine_name': 'machine_name', + 'session_state': 'session_state', + 'app_name': 'app_name', + 'client_mac': 'client_mac', + 'client_name': 'client_name', + 'client_ip': 'client_ip', + 'client_version': 'client_version', + 'client_type': 'client_type', + 'agent_version': 'agent_version', + 'vm_ip': 'vm_ip', + 'failed_reason': 'failed_reason', + 'failed_code': 'failed_code', + 'last_update_status_time': 'last_update_status_time', + 'tenant_id': 'tenant_id' + } + + def __init__(self, id=None, session_stamp=None, os_session_id=None, protocol_type=None, login_user=None, session_type=None, app_server_group_id=None, app_server_group_name=None, pre_conn_time=None, start_time=None, end_time=None, status_continue_time=None, machine_sid=None, machine_name=None, session_state=None, app_name=None, client_mac=None, client_name=None, client_ip=None, client_version=None, client_type=None, agent_version=None, vm_ip=None, failed_reason=None, failed_code=None, last_update_status_time=None, tenant_id=None): + """SessionInfo + + The model defined in huaweicloud sdk + + :param id: 主键ID。 + :type id: str + :param session_stamp: 会话标识。 + :type session_stamp: str + :param os_session_id: 会话在hda的os中会话id。 + :type os_session_id: str + :param protocol_type: 协议类型。 + :type protocol_type: str + :param login_user: 当前会话的登录用户。 + :type login_user: str + :param session_type: 会话类型,1表示共享桌面,2表示应用。 + :type session_type: str + :param app_server_group_id: AppServer组ID。 + :type app_server_group_id: str + :param app_server_group_name: AppServer组名称。 + :type app_server_group_name: str + :param pre_conn_time: 预连接时间。 + :type pre_conn_time: datetime + :param start_time: 会话开始时间。 + :type start_time: datetime + :param end_time: 会话结束时间。 + :type end_time: datetime + :param status_continue_time: 状态持续时间。 + :type status_continue_time: str + :param machine_sid: 服务器SID。 + :type machine_sid: str + :param machine_name: 服务器名称。 + :type machine_name: str + :param session_state: 会话状态。 + :type session_state: str + :param app_name: 会话中的应用名称。 + :type app_name: str + :param client_mac: 客户端Mac地址。 + :type client_mac: str + :param client_name: 客户端名称。 + :type client_name: str + :param client_ip: 客户端IP。 + :type client_ip: str + :param client_version: 客户端版本。 + :type client_version: str + :param client_type: 客户端类型。 + :type client_type: str + :param agent_version: agent版本。 + :type agent_version: str + :param vm_ip: 服务器IP。 + :type vm_ip: str + :param failed_reason: 错误原因消息。 + :type failed_reason: str + :param failed_code: 错误原因码。 + :type failed_code: str + :param last_update_status_time: 状态最后变化时间。 + :type last_update_status_time: datetime + :param tenant_id: 租户ID。 + :type tenant_id: str + """ + + + + self._id = None + self._session_stamp = None + self._os_session_id = None + self._protocol_type = None + self._login_user = None + self._session_type = None + self._app_server_group_id = None + self._app_server_group_name = None + self._pre_conn_time = None + self._start_time = None + self._end_time = None + self._status_continue_time = None + self._machine_sid = None + self._machine_name = None + self._session_state = None + self._app_name = None + self._client_mac = None + self._client_name = None + self._client_ip = None + self._client_version = None + self._client_type = None + self._agent_version = None + self._vm_ip = None + self._failed_reason = None + self._failed_code = None + self._last_update_status_time = None + self._tenant_id = None + self.discriminator = None + + if id is not None: + self.id = id + if session_stamp is not None: + self.session_stamp = session_stamp + if os_session_id is not None: + self.os_session_id = os_session_id + if protocol_type is not None: + self.protocol_type = protocol_type + if login_user is not None: + self.login_user = login_user + if session_type is not None: + self.session_type = session_type + if app_server_group_id is not None: + self.app_server_group_id = app_server_group_id + if app_server_group_name is not None: + self.app_server_group_name = app_server_group_name + if pre_conn_time is not None: + self.pre_conn_time = pre_conn_time + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if status_continue_time is not None: + self.status_continue_time = status_continue_time + if machine_sid is not None: + self.machine_sid = machine_sid + if machine_name is not None: + self.machine_name = machine_name + if session_state is not None: + self.session_state = session_state + if app_name is not None: + self.app_name = app_name + if client_mac is not None: + self.client_mac = client_mac + if client_name is not None: + self.client_name = client_name + if client_ip is not None: + self.client_ip = client_ip + if client_version is not None: + self.client_version = client_version + if client_type is not None: + self.client_type = client_type + if agent_version is not None: + self.agent_version = agent_version + if vm_ip is not None: + self.vm_ip = vm_ip + if failed_reason is not None: + self.failed_reason = failed_reason + if failed_code is not None: + self.failed_code = failed_code + if last_update_status_time is not None: + self.last_update_status_time = last_update_status_time + if tenant_id is not None: + self.tenant_id = tenant_id + + @property + def id(self): + """Gets the id of this SessionInfo. + + 主键ID。 + + :return: The id of this SessionInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SessionInfo. + + 主键ID。 + + :param id: The id of this SessionInfo. + :type id: str + """ + self._id = id + + @property + def session_stamp(self): + """Gets the session_stamp of this SessionInfo. + + 会话标识。 + + :return: The session_stamp of this SessionInfo. + :rtype: str + """ + return self._session_stamp + + @session_stamp.setter + def session_stamp(self, session_stamp): + """Sets the session_stamp of this SessionInfo. + + 会话标识。 + + :param session_stamp: The session_stamp of this SessionInfo. + :type session_stamp: str + """ + self._session_stamp = session_stamp + + @property + def os_session_id(self): + """Gets the os_session_id of this SessionInfo. + + 会话在hda的os中会话id。 + + :return: The os_session_id of this SessionInfo. + :rtype: str + """ + return self._os_session_id + + @os_session_id.setter + def os_session_id(self, os_session_id): + """Sets the os_session_id of this SessionInfo. + + 会话在hda的os中会话id。 + + :param os_session_id: The os_session_id of this SessionInfo. + :type os_session_id: str + """ + self._os_session_id = os_session_id + + @property + def protocol_type(self): + """Gets the protocol_type of this SessionInfo. + + 协议类型。 + + :return: The protocol_type of this SessionInfo. + :rtype: str + """ + return self._protocol_type + + @protocol_type.setter + def protocol_type(self, protocol_type): + """Sets the protocol_type of this SessionInfo. + + 协议类型。 + + :param protocol_type: The protocol_type of this SessionInfo. + :type protocol_type: str + """ + self._protocol_type = protocol_type + + @property + def login_user(self): + """Gets the login_user of this SessionInfo. + + 当前会话的登录用户。 + + :return: The login_user of this SessionInfo. + :rtype: str + """ + return self._login_user + + @login_user.setter + def login_user(self, login_user): + """Sets the login_user of this SessionInfo. + + 当前会话的登录用户。 + + :param login_user: The login_user of this SessionInfo. + :type login_user: str + """ + self._login_user = login_user + + @property + def session_type(self): + """Gets the session_type of this SessionInfo. + + 会话类型,1表示共享桌面,2表示应用。 + + :return: The session_type of this SessionInfo. + :rtype: str + """ + return self._session_type + + @session_type.setter + def session_type(self, session_type): + """Sets the session_type of this SessionInfo. + + 会话类型,1表示共享桌面,2表示应用。 + + :param session_type: The session_type of this SessionInfo. + :type session_type: str + """ + self._session_type = session_type + + @property + def app_server_group_id(self): + """Gets the app_server_group_id of this SessionInfo. + + AppServer组ID。 + + :return: The app_server_group_id of this SessionInfo. + :rtype: str + """ + return self._app_server_group_id + + @app_server_group_id.setter + def app_server_group_id(self, app_server_group_id): + """Sets the app_server_group_id of this SessionInfo. + + AppServer组ID。 + + :param app_server_group_id: The app_server_group_id of this SessionInfo. + :type app_server_group_id: str + """ + self._app_server_group_id = app_server_group_id + + @property + def app_server_group_name(self): + """Gets the app_server_group_name of this SessionInfo. + + AppServer组名称。 + + :return: The app_server_group_name of this SessionInfo. + :rtype: str + """ + return self._app_server_group_name + + @app_server_group_name.setter + def app_server_group_name(self, app_server_group_name): + """Sets the app_server_group_name of this SessionInfo. + + AppServer组名称。 + + :param app_server_group_name: The app_server_group_name of this SessionInfo. + :type app_server_group_name: str + """ + self._app_server_group_name = app_server_group_name + + @property + def pre_conn_time(self): + """Gets the pre_conn_time of this SessionInfo. + + 预连接时间。 + + :return: The pre_conn_time of this SessionInfo. + :rtype: datetime + """ + return self._pre_conn_time + + @pre_conn_time.setter + def pre_conn_time(self, pre_conn_time): + """Sets the pre_conn_time of this SessionInfo. + + 预连接时间。 + + :param pre_conn_time: The pre_conn_time of this SessionInfo. + :type pre_conn_time: datetime + """ + self._pre_conn_time = pre_conn_time + + @property + def start_time(self): + """Gets the start_time of this SessionInfo. + + 会话开始时间。 + + :return: The start_time of this SessionInfo. + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this SessionInfo. + + 会话开始时间。 + + :param start_time: The start_time of this SessionInfo. + :type start_time: datetime + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this SessionInfo. + + 会话结束时间。 + + :return: The end_time of this SessionInfo. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this SessionInfo. + + 会话结束时间。 + + :param end_time: The end_time of this SessionInfo. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def status_continue_time(self): + """Gets the status_continue_time of this SessionInfo. + + 状态持续时间。 + + :return: The status_continue_time of this SessionInfo. + :rtype: str + """ + return self._status_continue_time + + @status_continue_time.setter + def status_continue_time(self, status_continue_time): + """Sets the status_continue_time of this SessionInfo. + + 状态持续时间。 + + :param status_continue_time: The status_continue_time of this SessionInfo. + :type status_continue_time: str + """ + self._status_continue_time = status_continue_time + + @property + def machine_sid(self): + """Gets the machine_sid of this SessionInfo. + + 服务器SID。 + + :return: The machine_sid of this SessionInfo. + :rtype: str + """ + return self._machine_sid + + @machine_sid.setter + def machine_sid(self, machine_sid): + """Sets the machine_sid of this SessionInfo. + + 服务器SID。 + + :param machine_sid: The machine_sid of this SessionInfo. + :type machine_sid: str + """ + self._machine_sid = machine_sid + + @property + def machine_name(self): + """Gets the machine_name of this SessionInfo. + + 服务器名称。 + + :return: The machine_name of this SessionInfo. + :rtype: str + """ + return self._machine_name + + @machine_name.setter + def machine_name(self, machine_name): + """Sets the machine_name of this SessionInfo. + + 服务器名称。 + + :param machine_name: The machine_name of this SessionInfo. + :type machine_name: str + """ + self._machine_name = machine_name + + @property + def session_state(self): + """Gets the session_state of this SessionInfo. + + 会话状态。 + + :return: The session_state of this SessionInfo. + :rtype: str + """ + return self._session_state + + @session_state.setter + def session_state(self, session_state): + """Sets the session_state of this SessionInfo. + + 会话状态。 + + :param session_state: The session_state of this SessionInfo. + :type session_state: str + """ + self._session_state = session_state + + @property + def app_name(self): + """Gets the app_name of this SessionInfo. + + 会话中的应用名称。 + + :return: The app_name of this SessionInfo. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this SessionInfo. + + 会话中的应用名称。 + + :param app_name: The app_name of this SessionInfo. + :type app_name: str + """ + self._app_name = app_name + + @property + def client_mac(self): + """Gets the client_mac of this SessionInfo. + + 客户端Mac地址。 + + :return: The client_mac of this SessionInfo. + :rtype: str + """ + return self._client_mac + + @client_mac.setter + def client_mac(self, client_mac): + """Sets the client_mac of this SessionInfo. + + 客户端Mac地址。 + + :param client_mac: The client_mac of this SessionInfo. + :type client_mac: str + """ + self._client_mac = client_mac + + @property + def client_name(self): + """Gets the client_name of this SessionInfo. + + 客户端名称。 + + :return: The client_name of this SessionInfo. + :rtype: str + """ + return self._client_name + + @client_name.setter + def client_name(self, client_name): + """Sets the client_name of this SessionInfo. + + 客户端名称。 + + :param client_name: The client_name of this SessionInfo. + :type client_name: str + """ + self._client_name = client_name + + @property + def client_ip(self): + """Gets the client_ip of this SessionInfo. + + 客户端IP。 + + :return: The client_ip of this SessionInfo. + :rtype: str + """ + return self._client_ip + + @client_ip.setter + def client_ip(self, client_ip): + """Sets the client_ip of this SessionInfo. + + 客户端IP。 + + :param client_ip: The client_ip of this SessionInfo. + :type client_ip: str + """ + self._client_ip = client_ip + + @property + def client_version(self): + """Gets the client_version of this SessionInfo. + + 客户端版本。 + + :return: The client_version of this SessionInfo. + :rtype: str + """ + return self._client_version + + @client_version.setter + def client_version(self, client_version): + """Sets the client_version of this SessionInfo. + + 客户端版本。 + + :param client_version: The client_version of this SessionInfo. + :type client_version: str + """ + self._client_version = client_version + + @property + def client_type(self): + """Gets the client_type of this SessionInfo. + + 客户端类型。 + + :return: The client_type of this SessionInfo. + :rtype: str + """ + return self._client_type + + @client_type.setter + def client_type(self, client_type): + """Sets the client_type of this SessionInfo. + + 客户端类型。 + + :param client_type: The client_type of this SessionInfo. + :type client_type: str + """ + self._client_type = client_type + + @property + def agent_version(self): + """Gets the agent_version of this SessionInfo. + + agent版本。 + + :return: The agent_version of this SessionInfo. + :rtype: str + """ + return self._agent_version + + @agent_version.setter + def agent_version(self, agent_version): + """Sets the agent_version of this SessionInfo. + + agent版本。 + + :param agent_version: The agent_version of this SessionInfo. + :type agent_version: str + """ + self._agent_version = agent_version + + @property + def vm_ip(self): + """Gets the vm_ip of this SessionInfo. + + 服务器IP。 + + :return: The vm_ip of this SessionInfo. + :rtype: str + """ + return self._vm_ip + + @vm_ip.setter + def vm_ip(self, vm_ip): + """Sets the vm_ip of this SessionInfo. + + 服务器IP。 + + :param vm_ip: The vm_ip of this SessionInfo. + :type vm_ip: str + """ + self._vm_ip = vm_ip + + @property + def failed_reason(self): + """Gets the failed_reason of this SessionInfo. + + 错误原因消息。 + + :return: The failed_reason of this SessionInfo. + :rtype: str + """ + return self._failed_reason + + @failed_reason.setter + def failed_reason(self, failed_reason): + """Sets the failed_reason of this SessionInfo. + + 错误原因消息。 + + :param failed_reason: The failed_reason of this SessionInfo. + :type failed_reason: str + """ + self._failed_reason = failed_reason + + @property + def failed_code(self): + """Gets the failed_code of this SessionInfo. + + 错误原因码。 + + :return: The failed_code of this SessionInfo. + :rtype: str + """ + return self._failed_code + + @failed_code.setter + def failed_code(self, failed_code): + """Sets the failed_code of this SessionInfo. + + 错误原因码。 + + :param failed_code: The failed_code of this SessionInfo. + :type failed_code: str + """ + self._failed_code = failed_code + + @property + def last_update_status_time(self): + """Gets the last_update_status_time of this SessionInfo. + + 状态最后变化时间。 + + :return: The last_update_status_time of this SessionInfo. + :rtype: datetime + """ + return self._last_update_status_time + + @last_update_status_time.setter + def last_update_status_time(self, last_update_status_time): + """Sets the last_update_status_time of this SessionInfo. + + 状态最后变化时间。 + + :param last_update_status_time: The last_update_status_time of this SessionInfo. + :type last_update_status_time: datetime + """ + self._last_update_status_time = last_update_status_time + + @property + def tenant_id(self): + """Gets the tenant_id of this SessionInfo. + + 租户ID。 + + :return: The tenant_id of this SessionInfo. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this SessionInfo. + + 租户ID。 + + :param tenant_id: The tenant_id of this SessionInfo. + :type tenant_id: str + """ + self._tenant_id = tenant_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, SessionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_request.py new file mode 100644 index 0000000000..73081c5045 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowImageJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'job_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id' + } + + def __init__(self, job_id=None): + """ShowImageJobRequest + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + """ + + + + self._job_id = None + self.discriminator = None + + self.job_id = job_id + + @property + def job_id(self): + """Gets the job_id of this ShowImageJobRequest. + + 任务ID。 + + :return: The job_id of this ShowImageJobRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ShowImageJobRequest. + + 任务ID。 + + :param job_id: The job_id of this ShowImageJobRequest. + :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, ShowImageJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_response.py new file mode 100644 index 0000000000..6fd398baa1 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_image_job_response.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowImageJobResponse(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', + 'job_type': 'ImageJobType', + 'begin_time': 'datetime', + 'end_time': 'datetime', + 'status': 'ImageJobStatus', + 'sub_jobs_total': 'int', + 'sub_jobs': 'list[ImageJobDetailInfo]' + } + + attribute_map = { + 'id': 'id', + 'job_type': 'job_type', + 'begin_time': 'begin_time', + 'end_time': 'end_time', + 'status': 'status', + 'sub_jobs_total': 'sub_jobs_total', + 'sub_jobs': 'sub_jobs' + } + + def __init__(self, id=None, job_type=None, begin_time=None, end_time=None, status=None, sub_jobs_total=None, sub_jobs=None): + """ShowImageJobResponse + + The model defined in huaweicloud sdk + + :param id: 任务ID。 + :type id: str + :param job_type: + :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + :param begin_time: 任务创建时间。 + :type begin_time: datetime + :param end_time: 任务结束时间。 + :type end_time: datetime + :param status: + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobStatus` + :param sub_jobs_total: 子任务总数。 + :type sub_jobs_total: int + :param sub_jobs: 子任务列表 + :type sub_jobs: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageJobDetailInfo`] + """ + + super(ShowImageJobResponse, self).__init__() + + self._id = None + self._job_type = None + self._begin_time = None + self._end_time = None + self._status = None + self._sub_jobs_total = None + self._sub_jobs = None + self.discriminator = None + + if id is not None: + self.id = id + if job_type is not None: + self.job_type = job_type + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if sub_jobs_total is not None: + self.sub_jobs_total = sub_jobs_total + if sub_jobs is not None: + self.sub_jobs = sub_jobs + + @property + def id(self): + """Gets the id of this ShowImageJobResponse. + + 任务ID。 + + :return: The id of this ShowImageJobResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowImageJobResponse. + + 任务ID。 + + :param id: The id of this ShowImageJobResponse. + :type id: str + """ + self._id = id + + @property + def job_type(self): + """Gets the job_type of this ShowImageJobResponse. + + :return: The job_type of this ShowImageJobResponse. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this ShowImageJobResponse. + + :param job_type: The job_type of this ShowImageJobResponse. + :type job_type: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobType` + """ + self._job_type = job_type + + @property + def begin_time(self): + """Gets the begin_time of this ShowImageJobResponse. + + 任务创建时间。 + + :return: The begin_time of this ShowImageJobResponse. + :rtype: datetime + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this ShowImageJobResponse. + + 任务创建时间。 + + :param begin_time: The begin_time of this ShowImageJobResponse. + :type begin_time: datetime + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this ShowImageJobResponse. + + 任务结束时间。 + + :return: The end_time of this ShowImageJobResponse. + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ShowImageJobResponse. + + 任务结束时间。 + + :param end_time: The end_time of this ShowImageJobResponse. + :type end_time: datetime + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this ShowImageJobResponse. + + :return: The status of this ShowImageJobResponse. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobStatus` + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowImageJobResponse. + + :param status: The status of this ShowImageJobResponse. + :type status: :class:`huaweicloudsdkworkspaceapp.v1.ImageJobStatus` + """ + self._status = status + + @property + def sub_jobs_total(self): + """Gets the sub_jobs_total of this ShowImageJobResponse. + + 子任务总数。 + + :return: The sub_jobs_total of this ShowImageJobResponse. + :rtype: int + """ + return self._sub_jobs_total + + @sub_jobs_total.setter + def sub_jobs_total(self, sub_jobs_total): + """Sets the sub_jobs_total of this ShowImageJobResponse. + + 子任务总数。 + + :param sub_jobs_total: The sub_jobs_total of this ShowImageJobResponse. + :type sub_jobs_total: int + """ + self._sub_jobs_total = sub_jobs_total + + @property + def sub_jobs(self): + """Gets the sub_jobs of this ShowImageJobResponse. + + 子任务列表 + + :return: The sub_jobs of this ShowImageJobResponse. + :rtype: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageJobDetailInfo`] + """ + return self._sub_jobs + + @sub_jobs.setter + def sub_jobs(self, sub_jobs): + """Sets the sub_jobs of this ShowImageJobResponse. + + 子任务列表 + + :param sub_jobs: The sub_jobs of this ShowImageJobResponse. + :type sub_jobs: list[:class:`huaweicloudsdkworkspaceapp.v1.ImageJobDetailInfo`] + """ + self._sub_jobs = sub_jobs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowImageJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py index 8c574f87b6..72c38d1229 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_publishable_app_response.py @@ -34,7 +34,7 @@ def __init__(self, count=None, group_images=None, items=None): The model defined in huaweicloud sdk - :param count: 总数。 + :param count: 总数 :type count: int :param group_images: 组下面的镜像ID列表。 :type group_images: list[str] @@ -60,7 +60,7 @@ def __init__(self, count=None, group_images=None, items=None): def count(self): """Gets the count of this ShowPublishableAppResponse. - 总数。 + 总数 :return: The count of this ShowPublishableAppResponse. :rtype: int @@ -71,7 +71,7 @@ def count(self): def count(self, count): """Sets the count of this ShowPublishableAppResponse. - 总数。 + 总数 :param count: The count of this ShowPublishableAppResponse. :type count: int diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_request.py new file mode 100644 index 0000000000..9e280794cc --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowServerVncRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str' + } + + attribute_map = { + 'server_id': 'server_id' + } + + def __init__(self, server_id=None): + """ShowServerVncRequest + + The model defined in huaweicloud sdk + + :param server_id: 服务器唯一标识。 + :type server_id: str + """ + + + + self._server_id = None + self.discriminator = None + + self.server_id = server_id + + @property + def server_id(self): + """Gets the server_id of this ShowServerVncRequest. + + 服务器唯一标识。 + + :return: The server_id of this ShowServerVncRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this ShowServerVncRequest. + + 服务器唯一标识。 + + :param server_id: The server_id of this ShowServerVncRequest. + :type server_id: str + """ + self._server_id = server_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, ShowServerVncRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_response.py new file mode 100644 index 0000000000..88a71da37c --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/show_server_vnc_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowServerVncResponse(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 = { + 'type': 'str', + 'url': 'str', + 'protocol': 'str' + } + + attribute_map = { + 'type': 'type', + 'url': 'url', + 'protocol': 'protocol' + } + + def __init__(self, type=None, url=None, protocol=None): + """ShowServerVncResponse + + The model defined in huaweicloud sdk + + :param type: 登录类型: * `novnc` * `vnc` + :type type: str + :param url: 远程登录控制台地址。 + :type url: str + :param protocol: 登录协议。 + :type protocol: str + """ + + super(ShowServerVncResponse, self).__init__() + + self._type = None + self._url = None + self._protocol = None + self.discriminator = None + + if type is not None: + self.type = type + if url is not None: + self.url = url + if protocol is not None: + self.protocol = protocol + + @property + def type(self): + """Gets the type of this ShowServerVncResponse. + + 登录类型: * `novnc` * `vnc` + + :return: The type of this ShowServerVncResponse. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ShowServerVncResponse. + + 登录类型: * `novnc` * `vnc` + + :param type: The type of this ShowServerVncResponse. + :type type: str + """ + self._type = type + + @property + def url(self): + """Gets the url of this ShowServerVncResponse. + + 远程登录控制台地址。 + + :return: The url of this ShowServerVncResponse. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ShowServerVncResponse. + + 远程登录控制台地址。 + + :param url: The url of this ShowServerVncResponse. + :type url: str + """ + self._url = url + + @property + def protocol(self): + """Gets the protocol of this ShowServerVncResponse. + + 登录协议。 + + :return: The protocol of this ShowServerVncResponse. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this ShowServerVncResponse. + + 登录协议。 + + :param protocol: The protocol of this ShowServerVncResponse. + :type protocol: str + """ + self._protocol = protocol + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowServerVncResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py index 2b6f4d1626..bc66fca2a4 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/string_set.py @@ -29,7 +29,7 @@ def __init__(self, items=None): The model defined in huaweicloud sdk - :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + :param items: 批量唯一标识请求列表,一次请求数量区间 [1, 20] :type items: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, items=None): def items(self): """Gets the items of this StringSet. - 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + 批量唯一标识请求列表,一次请求数量区间 [1, 20] :return: The items of this StringSet. :rtype: list[str] @@ -55,7 +55,7 @@ def items(self): def items(self, items): """Sets the items of this StringSet. - 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + 批量唯一标识请求列表,一次请求数量区间 [1, 20] :param items: The items of this StringSet. :type items: list[str] diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/tms_tag.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/tms_tag.py new file mode 100644 index 0000000000..c5e4c02dab --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/tms_tag.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TmsTag: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """TmsTag + + The model defined in huaweicloud sdk + + :param key: 键。最大长度128个unicode字符。 + :type key: str + :param value: 值。每个值最大长度255个unicode字符。 + :type value: str + """ + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this TmsTag. + + 键。最大长度128个unicode字符。 + + :return: The key of this TmsTag. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this TmsTag. + + 键。最大长度128个unicode字符。 + + :param key: The key of this TmsTag. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this TmsTag. + + 值。每个值最大长度255个unicode字符。 + + :return: The value of this TmsTag. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TmsTag. + + 值。每个值最大长度255个unicode字符。 + + :param value: The value of this TmsTag. + :type value: str + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TmsTag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_req.py new file mode 100644 index 0000000000..9dedbfb1b1 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_req.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateImageServerReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'name': 'name', + 'description': 'description' + } + + def __init__(self, name=None, description=None): + """UpdateImageServerReq + + The model defined in huaweicloud sdk + + :param name: 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 + :type name: str + :param description: 服务器组描述。 + :type description: str + """ + + + + self._name = None + self._description = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + + @property + def name(self): + """Gets the name of this UpdateImageServerReq. + + 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 + + :return: The name of this UpdateImageServerReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateImageServerReq. + + 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 + + :param name: The name of this UpdateImageServerReq. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this UpdateImageServerReq. + + 服务器组描述。 + + :return: The description of this UpdateImageServerReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateImageServerReq. + + 服务器组描述。 + + :param description: The description of this UpdateImageServerReq. + :type description: str + """ + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateImageServerReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_request.py new file mode 100644 index 0000000000..0849c319e9 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateImageServerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'server_id': 'str', + 'body': 'UpdateImageServerReq' + } + + attribute_map = { + 'server_id': 'server_id', + 'body': 'body' + } + + def __init__(self, server_id=None, body=None): + """UpdateImageServerRequest + + The model defined in huaweicloud sdk + + :param server_id: 镜像实例唯一标识。 + :type server_id: str + :param body: Body of the UpdateImageServerRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerReq` + """ + + + + self._server_id = None + self._body = None + self.discriminator = None + + self.server_id = server_id + if body is not None: + self.body = body + + @property + def server_id(self): + """Gets the server_id of this UpdateImageServerRequest. + + 镜像实例唯一标识。 + + :return: The server_id of this UpdateImageServerRequest. + :rtype: str + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """Sets the server_id of this UpdateImageServerRequest. + + 镜像实例唯一标识。 + + :param server_id: The server_id of this UpdateImageServerRequest. + :type server_id: str + """ + self._server_id = server_id + + @property + def body(self): + """Gets the body of this UpdateImageServerRequest. + + :return: The body of this UpdateImageServerRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateImageServerRequest. + + :param body: The body of this UpdateImageServerRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerReq` + """ + 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, UpdateImageServerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_response.py new file mode 100644 index 0000000000..c2f3e79f99 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_image_server_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateImageServerResponse(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): + """UpdateImageServerResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateImageServerResponse, 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, UpdateImageServerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py index 41d02d2d58..5eac0ccff3 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_server_group_req.py @@ -27,7 +27,8 @@ class UpdateServerGroupReq: 'system_disk_type': 'VolumeType', 'system_disk_size': 'int', 'ou_name': 'str', - 'app_type': 'AppTypeEnum' + 'app_type': 'AppTypeEnum', + 'server_group_status': 'bool' } attribute_map = { @@ -41,10 +42,11 @@ class UpdateServerGroupReq: 'system_disk_type': 'system_disk_type', 'system_disk_size': 'system_disk_size', 'ou_name': 'ou_name', - 'app_type': 'app_type' + 'app_type': 'app_type', + 'server_group_status': 'server_group_status' } - def __init__(self, name=None, description=None, route_policy=None, storage_mount_policy=None, image_id=None, image_product_id=None, image_type=None, system_disk_type=None, system_disk_size=None, ou_name=None, app_type=None): + def __init__(self, name=None, description=None, route_policy=None, storage_mount_policy=None, image_id=None, image_product_id=None, image_type=None, system_disk_type=None, system_disk_size=None, ou_name=None, app_type=None, server_group_status=None): """UpdateServerGroupReq The model defined in huaweicloud sdk @@ -71,6 +73,8 @@ def __init__(self, name=None, description=None, route_policy=None, storage_mount :type ou_name: str :param app_type: :type app_type: :class:`huaweicloudsdkworkspaceapp.v1.AppTypeEnum` + :param server_group_status: 服务器是否处于禁用状态: * `true` - 启用状态 * `false` - 禁用状态 + :type server_group_status: bool """ @@ -86,6 +90,7 @@ def __init__(self, name=None, description=None, route_policy=None, storage_mount self._system_disk_size = None self._ou_name = None self._app_type = None + self._server_group_status = None self.discriminator = None if name is not None: @@ -110,6 +115,8 @@ def __init__(self, name=None, description=None, route_policy=None, storage_mount self.ou_name = ou_name if app_type is not None: self.app_type = app_type + if server_group_status is not None: + self.server_group_status = server_group_status @property def name(self): @@ -333,6 +340,28 @@ def app_type(self, app_type): """ self._app_type = app_type + @property + def server_group_status(self): + """Gets the server_group_status of this UpdateServerGroupReq. + + 服务器是否处于禁用状态: * `true` - 启用状态 * `false` - 禁用状态 + + :return: The server_group_status of this UpdateServerGroupReq. + :rtype: bool + """ + return self._server_group_status + + @server_group_status.setter + def server_group_status(self, server_group_status): + """Sets the server_group_status of this UpdateServerGroupReq. + + 服务器是否处于禁用状态: * `true` - 启用状态 * `false` - 禁用状态 + + :param server_group_status: The server_group_status of this UpdateServerGroupReq. + :type server_group_status: bool + """ + self._server_group_status = server_group_status + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_req.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_req.py new file mode 100644 index 0000000000..e0b663b586 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_req.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateWarehouseAppReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'app_name': 'str', + 'app_category': 'AppCategoryEnum', + 'os_type': 'OsTypeEnum', + 'version_id': 'str', + 'app_description': 'str', + 'version_name': 'str', + 'app_icon': 'str' + } + + attribute_map = { + 'app_name': 'app_name', + 'app_category': 'app_category', + 'os_type': 'os_type', + 'version_id': 'version_id', + 'app_description': 'app_description', + 'version_name': 'version_name', + 'app_icon': 'app_icon' + } + + def __init__(self, app_name=None, app_category=None, os_type=None, version_id=None, app_description=None, version_name=None, app_icon=None): + """UpdateWarehouseAppReq + + The model defined in huaweicloud sdk + + :param app_name: 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + :type app_name: str + :param app_category: + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + :param os_type: + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + :param version_id: 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + :type version_id: str + :param app_description: 应用仓库中的应用描述。 + :type app_description: str + :param version_name: 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + :type version_name: str + :param app_icon: > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + :type app_icon: str + """ + + + + self._app_name = None + self._app_category = None + self._os_type = None + self._version_id = None + self._app_description = None + self._version_name = None + self._app_icon = None + self.discriminator = None + + if app_name is not None: + self.app_name = app_name + if app_category is not None: + self.app_category = app_category + if os_type is not None: + self.os_type = os_type + if version_id is not None: + self.version_id = version_id + if app_description is not None: + self.app_description = app_description + if version_name is not None: + self.version_name = version_name + if app_icon is not None: + self.app_icon = app_icon + + @property + def app_name(self): + """Gets the app_name of this UpdateWarehouseAppReq. + + 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + + :return: The app_name of this UpdateWarehouseAppReq. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this UpdateWarehouseAppReq. + + 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + + :param app_name: The app_name of this UpdateWarehouseAppReq. + :type app_name: str + """ + self._app_name = app_name + + @property + def app_category(self): + """Gets the app_category of this UpdateWarehouseAppReq. + + :return: The app_category of this UpdateWarehouseAppReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + return self._app_category + + @app_category.setter + def app_category(self, app_category): + """Sets the app_category of this UpdateWarehouseAppReq. + + :param app_category: The app_category of this UpdateWarehouseAppReq. + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + self._app_category = app_category + + @property + def os_type(self): + """Gets the os_type of this UpdateWarehouseAppReq. + + :return: The os_type of this UpdateWarehouseAppReq. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this UpdateWarehouseAppReq. + + :param os_type: The os_type of this UpdateWarehouseAppReq. + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + self._os_type = os_type + + @property + def version_id(self): + """Gets the version_id of this UpdateWarehouseAppReq. + + 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + + :return: The version_id of this UpdateWarehouseAppReq. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this UpdateWarehouseAppReq. + + 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + + :param version_id: The version_id of this UpdateWarehouseAppReq. + :type version_id: str + """ + self._version_id = version_id + + @property + def app_description(self): + """Gets the app_description of this UpdateWarehouseAppReq. + + 应用仓库中的应用描述。 + + :return: The app_description of this UpdateWarehouseAppReq. + :rtype: str + """ + return self._app_description + + @app_description.setter + def app_description(self, app_description): + """Sets the app_description of this UpdateWarehouseAppReq. + + 应用仓库中的应用描述。 + + :param app_description: The app_description of this UpdateWarehouseAppReq. + :type app_description: str + """ + self._app_description = app_description + + @property + def version_name(self): + """Gets the version_name of this UpdateWarehouseAppReq. + + 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + + :return: The version_name of this UpdateWarehouseAppReq. + :rtype: str + """ + return self._version_name + + @version_name.setter + def version_name(self, version_name): + """Sets the version_name of this UpdateWarehouseAppReq. + + 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + + :param version_name: The version_name of this UpdateWarehouseAppReq. + :type version_name: str + """ + self._version_name = version_name + + @property + def app_icon(self): + """Gets the app_icon of this UpdateWarehouseAppReq. + + > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + + :return: The app_icon of this UpdateWarehouseAppReq. + :rtype: str + """ + return self._app_icon + + @app_icon.setter + def app_icon(self, app_icon): + """Sets the app_icon of this UpdateWarehouseAppReq. + + > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + + :param app_icon: The app_icon of this UpdateWarehouseAppReq. + :type app_icon: str + """ + self._app_icon = app_icon + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateWarehouseAppReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_request.py new file mode 100644 index 0000000000..7d2c655db8 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateWarehouseAppRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'body': 'UpdateWarehouseAppReq' + } + + attribute_map = { + 'id': 'id', + 'body': 'body' + } + + def __init__(self, id=None, body=None): + """UpdateWarehouseAppRequest + + The model defined in huaweicloud sdk + + :param id: 应用仓库中的应用记录ID。 + :type id: str + :param body: Body of the UpdateWarehouseAppRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppReq` + """ + + + + self._id = None + self._body = None + self.discriminator = None + + self.id = id + if body is not None: + self.body = body + + @property + def id(self): + """Gets the id of this UpdateWarehouseAppRequest. + + 应用仓库中的应用记录ID。 + + :return: The id of this UpdateWarehouseAppRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateWarehouseAppRequest. + + 应用仓库中的应用记录ID。 + + :param id: The id of this UpdateWarehouseAppRequest. + :type id: str + """ + self._id = id + + @property + def body(self): + """Gets the body of this UpdateWarehouseAppRequest. + + :return: The body of this UpdateWarehouseAppRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateWarehouseAppRequest. + + :param body: The body of this UpdateWarehouseAppRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppReq` + """ + 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, UpdateWarehouseAppRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_response.py new file mode 100644 index 0000000000..43b33a2cda --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_warehouse_app_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateWarehouseAppResponse(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): + """UpdateWarehouseAppResponse + + The model defined in huaweicloud sdk + + """ + + super(UpdateWarehouseAppResponse, 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, UpdateWarehouseAppResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request.py new file mode 100644 index 0000000000..481ec6ebe5 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UploadWarehouseAppIconRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UploadWarehouseAppIconRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UploadWarehouseAppIconRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UploadWarehouseAppIconRequest + :type body: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconRequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UploadWarehouseAppIconRequest. + + :return: The body of this UploadWarehouseAppIconRequest. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UploadWarehouseAppIconRequest. + + :param body: The body of this UploadWarehouseAppIconRequest. + :type body: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconRequestBody` + """ + 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, UploadWarehouseAppIconRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request_body.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request_body.py new file mode 100644 index 0000000000..86cc8a0634 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_request_body.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UploadWarehouseAppIconRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data': 'file' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """UploadWarehouseAppIconRequestBody + + The model defined in huaweicloud sdk + + :param data: 应用图标,png格式,限制大小8KB。 + :type data: :class:`huaweicloudsdkcore.http.formdata.FormFile` + """ + + + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this UploadWarehouseAppIconRequestBody. + + 应用图标,png格式,限制大小8KB。 + + :return: The data of this UploadWarehouseAppIconRequestBody. + :rtype: :class:`huaweicloudsdkcore.http.formdata.FormFile` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UploadWarehouseAppIconRequestBody. + + 应用图标,png格式,限制大小8KB。 + + :param data: The data of this UploadWarehouseAppIconRequestBody. + :type data: :class:`huaweicloudsdkcore.http.formdata.FormFile` + """ + 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, UploadWarehouseAppIconRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_response.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_response.py new file mode 100644 index 0000000000..5bf2593c5e --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/upload_warehouse_app_icon_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UploadWarehouseAppIconResponse(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 = { + 'appicon_store_path': 'str' + } + + attribute_map = { + 'appicon_store_path': 'appicon_store_path' + } + + def __init__(self, appicon_store_path=None): + """UploadWarehouseAppIconResponse + + The model defined in huaweicloud sdk + + :param appicon_store_path: 图标文件在obs桶经过cdn加速以后的地址。 + :type appicon_store_path: str + """ + + super(UploadWarehouseAppIconResponse, self).__init__() + + self._appicon_store_path = None + self.discriminator = None + + if appicon_store_path is not None: + self.appicon_store_path = appicon_store_path + + @property + def appicon_store_path(self): + """Gets the appicon_store_path of this UploadWarehouseAppIconResponse. + + 图标文件在obs桶经过cdn加速以后的地址。 + + :return: The appicon_store_path of this UploadWarehouseAppIconResponse. + :rtype: str + """ + return self._appicon_store_path + + @appicon_store_path.setter + def appicon_store_path(self, appicon_store_path): + """Sets the appicon_store_path of this UploadWarehouseAppIconResponse. + + 图标文件在obs桶经过cdn加速以后的地址。 + + :param appicon_store_path: The appicon_store_path of this UploadWarehouseAppIconResponse. + :type appicon_store_path: str + """ + self._appicon_store_path = appicon_store_path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadWarehouseAppIconResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/usb_port_redirection_options.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/usb_port_redirection_options.py index e935948558..5ec709b294 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/usb_port_redirection_options.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/usb_port_redirection_options.py @@ -57,7 +57,7 @@ def __init__(self, usb_image_enable=None, usb_video_enable=None, usb_printer_ena :type usb_storage_enable: bool :param wireless_devices_enable: 是否开启无线设备(如:蓝牙)。取值为: - false:表示关闭。 - true:表示开启。 :type wireless_devices_enable: bool - :param network_devices_enable: 是否开启网路设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 + :param network_devices_enable: 是否开启网络设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 :type network_devices_enable: bool :param usb_smart_card_enable: 是否开启智能卡设备(如:Ukey)。取值为: - false:表示关闭。 - true:表示开启。 :type usb_smart_card_enable: bool @@ -218,7 +218,7 @@ def wireless_devices_enable(self, wireless_devices_enable): def network_devices_enable(self): """Gets the network_devices_enable of this UsbPortRedirectionOptions. - 是否开启网路设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 + 是否开启网络设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 :return: The network_devices_enable of this UsbPortRedirectionOptions. :rtype: bool @@ -229,7 +229,7 @@ def network_devices_enable(self): def network_devices_enable(self, network_devices_enable): """Sets the network_devices_enable of this UsbPortRedirectionOptions. - 是否开启网路设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 + 是否开启网络设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 :param network_devices_enable: The network_devices_enable of this UsbPortRedirectionOptions. :type network_devices_enable: bool diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/verify_status_enum.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/verify_status_enum.py new file mode 100644 index 0000000000..c5fe59ebd9 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/verify_status_enum.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VerifyStatusEnum: + """ + allowed enum values + """ + VERIFYING = "VERIFYING" + VERIFY_PASS = "VERIFY_PASS" + VERIFY_FAIL = "Verify_FAIL" + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """VerifyStatusEnum + + 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, VerifyStatusEnum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/warehouse_app.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/warehouse_app.py new file mode 100644 index 0000000000..ba49c0de05 --- /dev/null +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/warehouse_app.py @@ -0,0 +1,596 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WarehouseApp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'app_id': 'str', + 'tenant_id': 'str', + 'app_name': 'str', + 'app_category': 'AppCategoryEnum', + 'os_type': 'OsTypeEnum', + 'version_id': 'str', + 'version_name': 'str', + 'appfile_store_path': 'str', + 'app_file_size': 'str', + 'app_description': 'str', + 'appicon_store_path': 'str', + 'create_time': 'datetime', + 'modify_time': 'datetime', + 'verify_time': 'datetime', + 'verify_status': 'VerifyStatusEnum', + 'verify_comment': 'str', + 'app_icon': 'str' + } + + attribute_map = { + 'id': 'id', + 'app_id': 'app_id', + 'tenant_id': 'tenant_id', + 'app_name': 'app_name', + 'app_category': 'app_category', + 'os_type': 'os_type', + 'version_id': 'version_id', + 'version_name': 'version_name', + 'appfile_store_path': 'appfile_store_path', + 'app_file_size': 'app_file_size', + 'app_description': 'app_description', + 'appicon_store_path': 'appicon_store_path', + 'create_time': 'create_time', + 'modify_time': 'modify_time', + 'verify_time': 'verify_time', + 'verify_status': 'verify_status', + 'verify_comment': 'verify_comment', + 'app_icon': 'app_icon' + } + + def __init__(self, id=None, app_id=None, tenant_id=None, app_name=None, app_category=None, os_type=None, version_id=None, version_name=None, appfile_store_path=None, app_file_size=None, app_description=None, appicon_store_path=None, create_time=None, modify_time=None, verify_time=None, verify_status=None, verify_comment=None, app_icon=None): + """WarehouseApp + + The model defined in huaweicloud sdk + + :param id: 应用的记录id。 + :type id: str + :param app_id: 应用id。 + :type app_id: str + :param tenant_id: 租户id。 + :type tenant_id: str + :param app_name: 应用名称。 + :type app_name: str + :param app_category: + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + :param os_type: + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + :param version_id: 版本号。 + :type version_id: str + :param version_name: 版本名称。 + :type version_name: str + :param appfile_store_path: 应用文件的存放路径。 + :type appfile_store_path: str + :param app_file_size: 应用文件的大小,以KB为单位。 + :type app_file_size: str + :param app_description: 应用描述。 + :type app_description: str + :param appicon_store_path: 应用文件的存放路径。 + :type appicon_store_path: str + :param create_time: 应用创建时间。 + :type create_time: datetime + :param modify_time: 应用修改时间。 + :type modify_time: datetime + :param verify_time: 应用审核时间。 + :type verify_time: datetime + :param verify_status: + :type verify_status: :class:`huaweicloudsdkworkspaceapp.v1.VerifyStatusEnum` + :param verify_comment: 审核的评论意见。 + :type verify_comment: str + :param app_icon: app的图标文件。 + :type app_icon: str + """ + + + + self._id = None + self._app_id = None + self._tenant_id = None + self._app_name = None + self._app_category = None + self._os_type = None + self._version_id = None + self._version_name = None + self._appfile_store_path = None + self._app_file_size = None + self._app_description = None + self._appicon_store_path = None + self._create_time = None + self._modify_time = None + self._verify_time = None + self._verify_status = None + self._verify_comment = None + self._app_icon = None + self.discriminator = None + + if id is not None: + self.id = id + if app_id is not None: + self.app_id = app_id + if tenant_id is not None: + self.tenant_id = tenant_id + if app_name is not None: + self.app_name = app_name + if app_category is not None: + self.app_category = app_category + if os_type is not None: + self.os_type = os_type + if version_id is not None: + self.version_id = version_id + if version_name is not None: + self.version_name = version_name + if appfile_store_path is not None: + self.appfile_store_path = appfile_store_path + if app_file_size is not None: + self.app_file_size = app_file_size + if app_description is not None: + self.app_description = app_description + if appicon_store_path is not None: + self.appicon_store_path = appicon_store_path + if create_time is not None: + self.create_time = create_time + if modify_time is not None: + self.modify_time = modify_time + if verify_time is not None: + self.verify_time = verify_time + if verify_status is not None: + self.verify_status = verify_status + if verify_comment is not None: + self.verify_comment = verify_comment + if app_icon is not None: + self.app_icon = app_icon + + @property + def id(self): + """Gets the id of this WarehouseApp. + + 应用的记录id。 + + :return: The id of this WarehouseApp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WarehouseApp. + + 应用的记录id。 + + :param id: The id of this WarehouseApp. + :type id: str + """ + self._id = id + + @property + def app_id(self): + """Gets the app_id of this WarehouseApp. + + 应用id。 + + :return: The app_id of this WarehouseApp. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this WarehouseApp. + + 应用id。 + + :param app_id: The app_id of this WarehouseApp. + :type app_id: str + """ + self._app_id = app_id + + @property + def tenant_id(self): + """Gets the tenant_id of this WarehouseApp. + + 租户id。 + + :return: The tenant_id of this WarehouseApp. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this WarehouseApp. + + 租户id。 + + :param tenant_id: The tenant_id of this WarehouseApp. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def app_name(self): + """Gets the app_name of this WarehouseApp. + + 应用名称。 + + :return: The app_name of this WarehouseApp. + :rtype: str + """ + return self._app_name + + @app_name.setter + def app_name(self, app_name): + """Sets the app_name of this WarehouseApp. + + 应用名称。 + + :param app_name: The app_name of this WarehouseApp. + :type app_name: str + """ + self._app_name = app_name + + @property + def app_category(self): + """Gets the app_category of this WarehouseApp. + + :return: The app_category of this WarehouseApp. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + return self._app_category + + @app_category.setter + def app_category(self, app_category): + """Sets the app_category of this WarehouseApp. + + :param app_category: The app_category of this WarehouseApp. + :type app_category: :class:`huaweicloudsdkworkspaceapp.v1.AppCategoryEnum` + """ + self._app_category = app_category + + @property + def os_type(self): + """Gets the os_type of this WarehouseApp. + + :return: The os_type of this WarehouseApp. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this WarehouseApp. + + :param os_type: The os_type of this WarehouseApp. + :type os_type: :class:`huaweicloudsdkworkspaceapp.v1.OsTypeEnum` + """ + self._os_type = os_type + + @property + def version_id(self): + """Gets the version_id of this WarehouseApp. + + 版本号。 + + :return: The version_id of this WarehouseApp. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this WarehouseApp. + + 版本号。 + + :param version_id: The version_id of this WarehouseApp. + :type version_id: str + """ + self._version_id = version_id + + @property + def version_name(self): + """Gets the version_name of this WarehouseApp. + + 版本名称。 + + :return: The version_name of this WarehouseApp. + :rtype: str + """ + return self._version_name + + @version_name.setter + def version_name(self, version_name): + """Sets the version_name of this WarehouseApp. + + 版本名称。 + + :param version_name: The version_name of this WarehouseApp. + :type version_name: str + """ + self._version_name = version_name + + @property + def appfile_store_path(self): + """Gets the appfile_store_path of this WarehouseApp. + + 应用文件的存放路径。 + + :return: The appfile_store_path of this WarehouseApp. + :rtype: str + """ + return self._appfile_store_path + + @appfile_store_path.setter + def appfile_store_path(self, appfile_store_path): + """Sets the appfile_store_path of this WarehouseApp. + + 应用文件的存放路径。 + + :param appfile_store_path: The appfile_store_path of this WarehouseApp. + :type appfile_store_path: str + """ + self._appfile_store_path = appfile_store_path + + @property + def app_file_size(self): + """Gets the app_file_size of this WarehouseApp. + + 应用文件的大小,以KB为单位。 + + :return: The app_file_size of this WarehouseApp. + :rtype: str + """ + return self._app_file_size + + @app_file_size.setter + def app_file_size(self, app_file_size): + """Sets the app_file_size of this WarehouseApp. + + 应用文件的大小,以KB为单位。 + + :param app_file_size: The app_file_size of this WarehouseApp. + :type app_file_size: str + """ + self._app_file_size = app_file_size + + @property + def app_description(self): + """Gets the app_description of this WarehouseApp. + + 应用描述。 + + :return: The app_description of this WarehouseApp. + :rtype: str + """ + return self._app_description + + @app_description.setter + def app_description(self, app_description): + """Sets the app_description of this WarehouseApp. + + 应用描述。 + + :param app_description: The app_description of this WarehouseApp. + :type app_description: str + """ + self._app_description = app_description + + @property + def appicon_store_path(self): + """Gets the appicon_store_path of this WarehouseApp. + + 应用文件的存放路径。 + + :return: The appicon_store_path of this WarehouseApp. + :rtype: str + """ + return self._appicon_store_path + + @appicon_store_path.setter + def appicon_store_path(self, appicon_store_path): + """Sets the appicon_store_path of this WarehouseApp. + + 应用文件的存放路径。 + + :param appicon_store_path: The appicon_store_path of this WarehouseApp. + :type appicon_store_path: str + """ + self._appicon_store_path = appicon_store_path + + @property + def create_time(self): + """Gets the create_time of this WarehouseApp. + + 应用创建时间。 + + :return: The create_time of this WarehouseApp. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this WarehouseApp. + + 应用创建时间。 + + :param create_time: The create_time of this WarehouseApp. + :type create_time: datetime + """ + self._create_time = create_time + + @property + def modify_time(self): + """Gets the modify_time of this WarehouseApp. + + 应用修改时间。 + + :return: The modify_time of this WarehouseApp. + :rtype: datetime + """ + return self._modify_time + + @modify_time.setter + def modify_time(self, modify_time): + """Sets the modify_time of this WarehouseApp. + + 应用修改时间。 + + :param modify_time: The modify_time of this WarehouseApp. + :type modify_time: datetime + """ + self._modify_time = modify_time + + @property + def verify_time(self): + """Gets the verify_time of this WarehouseApp. + + 应用审核时间。 + + :return: The verify_time of this WarehouseApp. + :rtype: datetime + """ + return self._verify_time + + @verify_time.setter + def verify_time(self, verify_time): + """Sets the verify_time of this WarehouseApp. + + 应用审核时间。 + + :param verify_time: The verify_time of this WarehouseApp. + :type verify_time: datetime + """ + self._verify_time = verify_time + + @property + def verify_status(self): + """Gets the verify_status of this WarehouseApp. + + :return: The verify_status of this WarehouseApp. + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.VerifyStatusEnum` + """ + return self._verify_status + + @verify_status.setter + def verify_status(self, verify_status): + """Sets the verify_status of this WarehouseApp. + + :param verify_status: The verify_status of this WarehouseApp. + :type verify_status: :class:`huaweicloudsdkworkspaceapp.v1.VerifyStatusEnum` + """ + self._verify_status = verify_status + + @property + def verify_comment(self): + """Gets the verify_comment of this WarehouseApp. + + 审核的评论意见。 + + :return: The verify_comment of this WarehouseApp. + :rtype: str + """ + return self._verify_comment + + @verify_comment.setter + def verify_comment(self, verify_comment): + """Sets the verify_comment of this WarehouseApp. + + 审核的评论意见。 + + :param verify_comment: The verify_comment of this WarehouseApp. + :type verify_comment: str + """ + self._verify_comment = verify_comment + + @property + def app_icon(self): + """Gets the app_icon of this WarehouseApp. + + app的图标文件。 + + :return: The app_icon of this WarehouseApp. + :rtype: str + """ + return self._app_icon + + @app_icon.setter + def app_icon(self, app_icon): + """Sets the app_icon of this WarehouseApp. + + app的图标文件。 + + :param app_icon: The app_icon of this WarehouseApp. + :type app_icon: str + """ + self._app_icon = app_icon + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WarehouseApp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py index 4d723a069e..c1cbb2bd7e 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/wdh_param.py @@ -31,9 +31,9 @@ def __init__(self, dedicated_host_id=None, tenancy=None): The model defined in huaweicloud sdk - :param dedicated_host_id: 云办公主机id。 + :param dedicated_host_id: 云办公主机id :type dedicated_host_id: str - :param tenancy: 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 + :param tenancy: 类型 :type tenancy: str """ @@ -52,7 +52,7 @@ def __init__(self, dedicated_host_id=None, tenancy=None): def dedicated_host_id(self): """Gets the dedicated_host_id of this WdhParam. - 云办公主机id。 + 云办公主机id :return: The dedicated_host_id of this WdhParam. :rtype: str @@ -63,7 +63,7 @@ def dedicated_host_id(self): def dedicated_host_id(self, dedicated_host_id): """Sets the dedicated_host_id of this WdhParam. - 云办公主机id。 + 云办公主机id :param dedicated_host_id: The dedicated_host_id of this WdhParam. :type dedicated_host_id: str @@ -74,7 +74,7 @@ def dedicated_host_id(self, dedicated_host_id): def tenancy(self): """Gets the tenancy of this WdhParam. - 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 + 类型 :return: The tenancy of this WdhParam. :rtype: str @@ -85,7 +85,7 @@ def tenancy(self): def tenancy(self, tenancy): """Sets the tenancy of this WdhParam. - 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 + 类型 :param tenancy: The tenancy of this WdhParam. :type tenancy: str diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py index 596b335d91..2ed4750e58 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_async_client.py @@ -32,31 +32,31 @@ def new_builder(cls, clazz=None): return client_builder - def list_published_app_async(self, request): - """查询已发布应用 + def authorize_obs_async(self, request): + """获取上传至OBS桶的临时ak/sk - 查询已发布的应用。 + 获取上传至OBS桶的临时ak/sk。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListPublishedApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppResponse` + :param request: Request instance for AuthorizeObs + :type request: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsResponse` """ - http_info = self._list_published_app_http_info(request) + http_info = self._authorize_obs_http_info(request) return self._call_api(**http_info) - def list_published_app_async_invoker(self, request): - http_info = self._list_published_app_http_info(request) + def authorize_obs_async_invoker(self, request): + http_info = self._authorize_obs_http_info(request) return AsyncInvoker(self, http_info) - def _list_published_app_http_info(self, request): + def _authorize_obs_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", + "method": "POST", + "resource_path": "/v1/{project_id}/app-warehouse/action/authorize", "request_type": request.__class__.__name__, - "response_type": "ListPublishedAppResponse" + "response_type": "AuthorizeObsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -66,26 +66,16 @@ def _list_published_app_http_info(self, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'state' in local_var_params: - query_params.append(('state', local_var_params['state'])) - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -94,7 +84,7 @@ def _list_published_app_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -107,31 +97,31 @@ def _list_published_app_http_info(self, request): return http_info - def publish_app_async(self, request): - """发布应用 + def batch_delete_warehouse_app_async(self, request): + """批量删除应用仓库中的指定应用 - 批量发布应用,不允许发布同名的应用。 + 批量删除应用仓库中的指定应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for PublishApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppResponse` + :param request: Request instance for BatchDeleteWarehouseApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppResponse` """ - http_info = self._publish_app_http_info(request) + http_info = self._batch_delete_warehouse_app_http_info(request) return self._call_api(**http_info) - def publish_app_async_invoker(self, request): - http_info = self._publish_app_http_info(request) + def batch_delete_warehouse_app_async_invoker(self, request): + http_info = self._batch_delete_warehouse_app_http_info(request) return AsyncInvoker(self, http_info) - def _publish_app_http_info(self, request): + def _batch_delete_warehouse_app_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", + "resource_path": "/v1/{project_id}/app-warehouse/actions/batch-delete", "request_type": request.__class__.__name__, - "response_type": "PublishAppResponse" + "response_type": "BatchDeleteWarehouseAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -141,8 +131,6 @@ def _publish_app_http_info(self, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] @@ -161,7 +149,7 @@ def _publish_app_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -174,31 +162,31 @@ def _publish_app_http_info(self, request): return http_info - def show_publishable_app_async(self, request): - """可发布应用列表 + def create_warehouse_app_async(self, request): + """在应用仓库中新增应用 - 查询应用组下可发布的应用。 + 在应用仓库中新增应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowPublishableApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppResponse` + :param request: Request instance for CreateWarehouseApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppResponse` """ - http_info = self._show_publishable_app_http_info(request) + http_info = self._create_warehouse_app_http_info(request) return self._call_api(**http_info) - def show_publishable_app_async_invoker(self, request): - http_info = self._show_publishable_app_http_info(request) + def create_warehouse_app_async_invoker(self, request): + http_info = self._create_warehouse_app_http_info(request) return AsyncInvoker(self, http_info) - def _show_publishable_app_http_info(self, request): + def _create_warehouse_app_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/publishable-app", + "method": "POST", + "resource_path": "/v1/{project_id}/app-warehouse/apps", "request_type": request.__class__.__name__, - "response_type": "ShowPublishableAppResponse" + "response_type": "CreateWarehouseAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -208,8 +196,6 @@ def _show_publishable_app_http_info(self, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] @@ -218,6 +204,8 @@ def _show_publishable_app_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -226,7 +214,7 @@ def _show_publishable_app_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -239,32 +227,31 @@ def _show_publishable_app_http_info(self, request): return http_info - def unpublish_app_async(self, request): - """批量取消应用发布 + def list_warehouse_apps_async(self, request): + """查询租户应用仓库中的应用列表 - 批量取消应用发布。 - > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200)。 + 查询租户应用仓库中的应用列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UnpublishApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppResponse` + :param request: Request instance for ListWarehouseApps + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListWarehouseAppsRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListWarehouseAppsResponse` """ - http_info = self._unpublish_app_http_info(request) + http_info = self._list_warehouse_apps_http_info(request) return self._call_api(**http_info) - def unpublish_app_async_invoker(self, request): - http_info = self._unpublish_app_http_info(request) + def list_warehouse_apps_async_invoker(self, request): + http_info = self._list_warehouse_apps_http_info(request) return AsyncInvoker(self, http_info) - def _unpublish_app_http_info(self, request): + def _list_warehouse_apps_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/batch-unpublish", + "method": "GET", + "resource_path": "/v1/{project_id}/app-warehouse/apps", "request_type": request.__class__.__name__, - "response_type": "UnpublishAppResponse" + "response_type": "ListWarehouseAppsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -274,18 +261,26 @@ def _unpublish_app_http_info(self, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'verify_status' in local_var_params: + query_params.append(('verify_status', local_var_params['verify_status'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'app_category' in local_var_params: + query_params.append(('app_category', local_var_params['app_category'])) header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -294,7 +289,7 @@ def _unpublish_app_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -307,31 +302,31 @@ def _unpublish_app_http_info(self, request): return http_info - def update_app_async(self, request): - """修改应用信息 + def update_warehouse_app_async(self, request): + """修改应用仓库中的指定应用信息 - 编辑修改应用信息。 + 修改应用仓库中的指定应用信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppResponse` + :param request: Request instance for UpdateWarehouseApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppResponse` """ - http_info = self._update_app_http_info(request) + http_info = self._update_warehouse_app_http_info(request) return self._call_api(**http_info) - def update_app_async_invoker(self, request): - http_info = self._update_app_http_info(request) + def update_warehouse_app_async_invoker(self, request): + http_info = self._update_warehouse_app_http_info(request) return AsyncInvoker(self, http_info) - def _update_app_http_info(self, request): + def _update_warehouse_app_http_info(self, request): http_info = { "method": "PATCH", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}", + "resource_path": "/v1/{project_id}/app-warehouse/apps/{id}", "request_type": request.__class__.__name__, - "response_type": "UpdateAppResponse" + "response_type": "UpdateWarehouseAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -341,10 +336,8 @@ def _update_app_http_info(self, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] query_params = [] @@ -363,7 +356,7 @@ def _update_app_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -376,31 +369,31 @@ def _update_app_http_info(self, request): return http_info - def upload_app_icon_async(self, request): - """修改自定义应用图标 + def upload_warehouse_app_icon_async(self, request): + """在应用仓库中上传图标文件 - 修改自定义应用图标。 + 在应用仓库中上传图标文件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadAppIcon - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconResponse` + :param request: Request instance for UploadWarehouseAppIcon + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconResponse` """ - http_info = self._upload_app_icon_http_info(request) + http_info = self._upload_warehouse_app_icon_http_info(request) return self._call_api(**http_info) - def upload_app_icon_async_invoker(self, request): - http_info = self._upload_app_icon_http_info(request) + def upload_warehouse_app_icon_async_invoker(self, request): + http_info = self._upload_warehouse_app_icon_http_info(request) return AsyncInvoker(self, http_info) - def _upload_app_icon_http_info(self, request): + def _upload_warehouse_app_icon_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}/icon", + "resource_path": "/v1/{project_id}/app-warehouse/apps/icon", "request_type": request.__class__.__name__, - "response_type": "UploadAppIconResponse" + "response_type": "UploadWarehouseAppIconResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -410,10 +403,6 @@ def _upload_app_icon_http_info(self, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] query_params = [] @@ -434,7 +423,7 @@ def _upload_app_icon_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['multipart/form-data']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -447,31 +436,31 @@ def _upload_app_icon_http_info(self, request): return http_info - def batch_delete_app_group_async(self, request): - """批量删除应用组 + def list_published_app_async(self, request): + """查询已发布应用 - 批量删除应用组,重复执行会按照成功处理(响应200)。 + 查询已发布的应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupResponse` + :param request: Request instance for ListPublishedApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppResponse` """ - http_info = self._batch_delete_app_group_http_info(request) + http_info = self._list_published_app_http_info(request) return self._call_api(**http_info) - def batch_delete_app_group_async_invoker(self, request): - http_info = self._batch_delete_app_group_http_info(request) + def list_published_app_async_invoker(self, request): + http_info = self._list_published_app_http_info(request) return AsyncInvoker(self, http_info) - def _batch_delete_app_group_http_info(self, request): + def _list_published_app_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/batch-delete", + "method": "GET", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteAppGroupResponse" + "response_type": "ListPublishedAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -481,16 +470,26 @@ def _batch_delete_app_group_http_info(self, request): collection_formats = {} path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'state' in local_var_params: + query_params.append(('state', local_var_params['state'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -499,7 +498,7 @@ def _batch_delete_app_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -512,32 +511,31 @@ def _batch_delete_app_group_http_info(self, request): return http_info - def create_app_group_async(self, request): - """创建应用组 + def publish_app_async(self, request): + """发布应用 - 该API用于创建应用组。 - > - 应用服务器中安装了不同的应用,这些应用可以组成不同的应用组,进行集中的管理和维护,向用户(组)发布。 + 批量发布应用,不允许发布同名的应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupResponse` + :param request: Request instance for PublishApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppResponse` """ - http_info = self._create_app_group_http_info(request) + http_info = self._publish_app_http_info(request) return self._call_api(**http_info) - def create_app_group_async_invoker(self, request): - http_info = self._create_app_group_http_info(request) + def publish_app_async_invoker(self, request): + http_info = self._publish_app_http_info(request) return AsyncInvoker(self, http_info) - def _create_app_group_http_info(self, request): + def _publish_app_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", "request_type": request.__class__.__name__, - "response_type": "CreateAppGroupResponse" + "response_type": "PublishAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -547,6 +545,8 @@ def _create_app_group_http_info(self, request): collection_formats = {} path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] @@ -565,7 +565,7 @@ def _create_app_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -578,31 +578,31 @@ def _create_app_group_http_info(self, request): return http_info - def list_app_group_async(self, request): - """查询应用组 + def show_publishable_app_async(self, request): + """可发布应用列表 - 查询用户创建的应用组,按照名称、授权类型分页查询。 + 查询应用组下可发布的应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupResponse` + :param request: Request instance for ShowPublishableApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppResponse` """ - http_info = self._list_app_group_http_info(request) + http_info = self._show_publishable_app_http_info(request) return self._call_api(**http_info) - def list_app_group_async_invoker(self, request): - http_info = self._list_app_group_http_info(request) + def show_publishable_app_async_invoker(self, request): + http_info = self._show_publishable_app_http_info(request) return AsyncInvoker(self, http_info) - def _list_app_group_http_info(self, request): + def _show_publishable_app_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/app-groups", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/publishable-app", "request_type": request.__class__.__name__, - "response_type": "ListAppGroupResponse" + "response_type": "ShowPublishableAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -612,22 +612,10 @@ def _list_app_group_http_info(self, request): collection_formats = {} path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'app_server_group_id' in local_var_params: - query_params.append(('app_server_group_id', local_var_params['app_server_group_id'])) - if 'app_group_id' in local_var_params: - query_params.append(('app_group_id', local_var_params['app_group_id'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'authorization_type' in local_var_params: - query_params.append(('authorization_type', local_var_params['authorization_type'])) - if 'app_type' in local_var_params: - query_params.append(('app_type', local_var_params['app_type'])) header_params = {} @@ -642,7 +630,7 @@ def _list_app_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -655,31 +643,32 @@ def _list_app_group_http_info(self, request): return http_info - def update_app_group_async(self, request): - """修改应用组 + def unpublish_app_async(self, request): + """批量取消应用发布 - 修改应用组。 + 批量取消应用发布。 + > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupResponse` + :param request: Request instance for UnpublishApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppResponse` """ - http_info = self._update_app_group_http_info(request) + http_info = self._unpublish_app_http_info(request) return self._call_api(**http_info) - def update_app_group_async_invoker(self, request): - http_info = self._update_app_group_http_info(request) + def unpublish_app_async_invoker(self, request): + http_info = self._unpublish_app_http_info(request) return AsyncInvoker(self, http_info) - def _update_app_group_http_info(self, request): + def _unpublish_app_http_info(self, request): http_info = { - "method": "PATCH", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}", + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/batch-unpublish", "request_type": request.__class__.__name__, - "response_type": "UpdateAppGroupResponse" + "response_type": "UnpublishAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -709,7 +698,7 @@ def _update_app_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -722,31 +711,793 @@ def _update_app_group_http_info(self, request): return http_info - def list_product_async(self, request): - """查询云应用套餐 + def update_app_async(self, request): + """修改应用信息 - 查询云应用套餐,按照条件过滤。 + 编辑修改应用信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppResponse` + """ + http_info = self._update_app_http_info(request) + return self._call_api(**http_info) + + def update_app_async_invoker(self, request): + http_info = self._update_app_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_app_http_info(self, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateAppResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] + if 'app_id' in local_var_params: + path_params['app_id'] = local_var_params['app_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def upload_app_icon_async(self, request): + """修改自定义应用图标 + + 修改自定义应用图标。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UploadAppIcon + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconResponse` + """ + http_info = self._upload_app_icon_http_info(request) + return self._call_api(**http_info) + + def upload_app_icon_async_invoker(self, request): + http_info = self._upload_app_icon_http_info(request) + return AsyncInvoker(self, http_info) + + def _upload_app_icon_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}/icon", + "request_type": request.__class__.__name__, + "response_type": "UploadAppIconResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] + if 'app_id' in local_var_params: + path_params['app_id'] = local_var_params['app_id'] + + query_params = [] + + header_params = {} + + form_params = {} + if 'data' in local_var_params: + form_params['data'] = local_var_params['data'] + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['multipart/form-data']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def batch_delete_app_group_async(self, request): + """批量删除应用组 + + 批量删除应用组,重复执行会按照成功处理(响应200)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchDeleteAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupResponse` + """ + http_info = self._batch_delete_app_group_http_info(request) + return self._call_api(**http_info) + + def batch_delete_app_group_async_invoker(self, request): + http_info = self._batch_delete_app_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_delete_app_group_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/batch-delete", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_app_group_async(self, request): + """创建应用组 + + 该API用于创建应用组。 + > - 应用服务器中安装了不同的应用,这些应用可以组成不同的应用组,进行集中的管理和维护,向用户(组)发布。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupResponse` + """ + http_info = self._create_app_group_http_info(request) + return self._call_api(**http_info) + + def create_app_group_async_invoker(self, request): + http_info = self._create_app_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_app_group_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups", + "request_type": request.__class__.__name__, + "response_type": "CreateAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_app_group_async(self, request): + """查询应用组 + + 查询用户创建的应用组,按照名称、授权类型分页查询。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupResponse` + """ + http_info = self._list_app_group_http_info(request) + return self._call_api(**http_info) + + def list_app_group_async_invoker(self, request): + http_info = self._list_app_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_app_group_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-groups", + "request_type": request.__class__.__name__, + "response_type": "ListAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'app_server_group_id' in local_var_params: + query_params.append(('app_server_group_id', local_var_params['app_server_group_id'])) + if 'app_group_id' in local_var_params: + query_params.append(('app_group_id', local_var_params['app_group_id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'authorization_type' in local_var_params: + query_params.append(('authorization_type', local_var_params['authorization_type'])) + if 'app_type' in local_var_params: + query_params.append(('app_type', local_var_params['app_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_app_group_async(self, request): + """修改应用组 + + 修改应用组。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupResponse` + """ + http_info = self._update_app_group_http_info(request) + return self._call_api(**http_info) + + def update_app_group_async_invoker(self, request): + http_info = self._update_app_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_app_group_http_info(self, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_product_async(self, request): + """查询云应用套餐 + + 查询云应用套餐,按照条件过滤。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListProduct + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListProductRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListProductResponse` + """ + http_info = self._list_product_http_info(request) + return self._call_api(**http_info) + + def list_product_async_invoker(self, request): + http_info = self._list_product_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_product_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/product", + "request_type": request.__class__.__name__, + "response_type": "ListProductResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'product_id' in local_var_params: + query_params.append(('product_id', local_var_params['product_id'])) + if 'flavor_id' in local_var_params: + query_params.append(('flavor_id', local_var_params['flavor_id'])) + if 'availability_zone' in local_var_params: + query_params.append(('availability_zone', local_var_params['availability_zone'])) + if 'os_type' in local_var_params: + query_params.append(('os_type', local_var_params['os_type'])) + if 'charge_mode' in local_var_params: + query_params.append(('charge_mode', local_var_params['charge_mode'])) + if 'architecture' in local_var_params: + query_params.append(('architecture', local_var_params['architecture'])) + if 'package_type' in local_var_params: + query_params.append(('package_type', local_var_params['package_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_session_type_async(self, request): + """查询会话套餐列表 + + 该接口用于查询会话套餐列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListSessionType + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeResponse` + """ + http_info = self._list_session_type_http_info(request) + return self._call_api(**http_info) + + def list_session_type_async_invoker(self, request): + http_info = self._list_session_type_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_session_type_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/session-type", + "request_type": request.__class__.__name__, + "response_type": "ListSessionTypeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def add_app_group_authorization_async(self, request): + """增加应用组授权 + + 应用组添加用户授权,授权后用户就获得应用组下所有已发布应用的权限访问。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for AddAppGroupAuthorization + :type request: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationResponse` + """ + http_info = self._add_app_group_authorization_http_info(request) + return self._call_api(**http_info) + + def add_app_group_authorization_async_invoker(self, request): + http_info = self._add_app_group_authorization_http_info(request) + return AsyncInvoker(self, http_info) + + def _add_app_group_authorization_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/authorizations", + "request_type": request.__class__.__name__, + "response_type": "AddAppGroupAuthorizationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def batch_delete_app_group_authorization_async(self, request): + """移除应用组授权 + + 移除应用组内的指定用户的授权,用户授权删除后,用户将没有权限访问应用组内的任何应用。注意:重复执行会按照操作成功处理。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchDeleteAppGroupAuthorization + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationResponse` + """ + http_info = self._batch_delete_app_group_authorization_http_info(request) + return self._call_api(**http_info) + + def batch_delete_app_group_authorization_async_invoker(self, request): + http_info = self._batch_delete_app_group_authorization_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_delete_app_group_authorization_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/actions/batch-delete-authorization", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteAppGroupAuthorizationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_app_group_authorization_async(self, request): + """查询应用组授权记录 + + 查询应用内已授权的用户列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAppGroupAuthorization + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationResponse` + """ + http_info = self._list_app_group_authorization_http_info(request) + return self._call_api(**http_info) + + def list_app_group_authorization_async_invoker(self, request): + http_info = self._list_app_group_authorization_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_app_group_authorization_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-groups/actions/list-authorizations", + "request_type": request.__class__.__name__, + "response_type": "ListAppGroupAuthorizationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'app_group_id' in local_var_params: + query_params.append(('app_group_id', local_var_params['app_group_id'])) + if 'account' in local_var_params: + query_params.append(('account', local_var_params['account'])) + if 'account_type' in local_var_params: + query_params.append(('account_type', local_var_params['account_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_availability_zone_async(self, request): + """查询可用分区列表 + + 该接口用于查询支持的可用分区列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListProduct - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListProductRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListProductResponse` + :param request: Request instance for ListAvailabilityZone + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneResponse` """ - http_info = self._list_product_http_info(request) + http_info = self._list_availability_zone_http_info(request) return self._call_api(**http_info) - def list_product_async_invoker(self, request): - http_info = self._list_product_http_info(request) + def list_availability_zone_async_invoker(self, request): + http_info = self._list_availability_zone_http_info(request) return AsyncInvoker(self, http_info) - def _list_product_http_info(self, request): + def _list_availability_zone_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/product", + "resource_path": "/v1/{project_id}/availability-zone", "request_type": request.__class__.__name__, - "response_type": "ListProductResponse" + "response_type": "ListAvailabilityZoneResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -758,18 +1509,6 @@ def _list_product_http_info(self, request): path_params = {} query_params = [] - if 'product_id' in local_var_params: - query_params.append(('product_id', local_var_params['product_id'])) - if 'availability_zone' in local_var_params: - query_params.append(('availability_zone', local_var_params['availability_zone'])) - if 'os_type' in local_var_params: - query_params.append(('os_type', local_var_params['os_type'])) - if 'charge_mode' in local_var_params: - query_params.append(('charge_mode', local_var_params['charge_mode'])) - if 'architecture' in local_var_params: - query_params.append(('architecture', local_var_params['architecture'])) - if 'package_type' in local_var_params: - query_params.append(('package_type', local_var_params['package_type'])) header_params = {} @@ -784,7 +1523,7 @@ def _list_product_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -797,31 +1536,235 @@ def _list_product_http_info(self, request): return http_info - def list_session_type_async(self, request): - """查询会话套餐列表 + def attach_image_server_app_async(self, request): + """分发软件信息至镜像实例 - 该接口用于查询会话套餐列表。 + 分发应用软件信息至镜像实例,管理员可以按需下载并安装应用软件。 + * 目前只支持来自云应用仓库的软件信息。 + * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例分发软件信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSessionType - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeResponse` + :param request: Request instance for AttachImageServerApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.AttachImageServerAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AttachImageServerAppResponse` + """ + http_info = self._attach_image_server_app_http_info(request) + return self._call_api(**http_info) + + def attach_image_server_app_async_invoker(self, request): + http_info = self._attach_image_server_app_http_info(request) + return AsyncInvoker(self, http_info) + + def _attach_image_server_app_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/image-servers/{server_id}/actions/attach-app", + "request_type": request.__class__.__name__, + "response_type": "AttachImageServerAppResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def batch_delete_image_server_async(self, request): + """批量删除镜像实例 + + 批量删除镜像实例。 + * 忽略不存在的镜像实例,响应正常。 + * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 + * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchDeleteImageServer + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerResponse` + """ + http_info = self._batch_delete_image_server_http_info(request) + return self._call_api(**http_info) + + def batch_delete_image_server_async_invoker(self, request): + http_info = self._batch_delete_image_server_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_delete_image_server_http_info(self, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/{project_id}/image-servers/actions/batch-delete", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteImageServerResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_image_server_async(self, request): + """创建镜像实例 + + 创建镜像实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateImageServer + :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerResponse` + """ + http_info = self._create_image_server_http_info(request) + return self._call_api(**http_info) + + def create_image_server_async_invoker(self, request): + http_info = self._create_image_server_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_image_server_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/image-servers", + "request_type": request.__class__.__name__, + "response_type": "CreateImageServerResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'service_transaction_id' in local_var_params: + header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_image_servers_async(self, request): + """查询镜像实例列表 + + 查询镜像实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListImageServers + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListImageServersRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListImageServersResponse` """ - http_info = self._list_session_type_http_info(request) + http_info = self._list_image_servers_http_info(request) return self._call_api(**http_info) - def list_session_type_async_invoker(self, request): - http_info = self._list_session_type_http_info(request) + def list_image_servers_async_invoker(self, request): + http_info = self._list_image_servers_http_info(request) return AsyncInvoker(self, http_info) - def _list_session_type_http_info(self, request): + def _list_image_servers_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/session-type", + "resource_path": "/v1/{project_id}/image-servers", "request_type": request.__class__.__name__, - "response_type": "ListSessionTypeResponse" + "response_type": "ListImageServersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -833,6 +1776,16 @@ def _list_session_type_http_info(self, request): path_params = {} query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'server_name' in local_var_params: + query_params.append(('server_name', local_var_params['server_name'])) + if 'server_id' in local_var_params: + query_params.append(('server_id', local_var_params['server_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) header_params = {} @@ -847,7 +1800,7 @@ def _list_session_type_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -860,31 +1813,31 @@ def _list_session_type_http_info(self, request): return http_info - def add_app_group_authorization_async(self, request): - """增加应用组授权 + def list_latest_attached_server_app_async(self, request): + """查询最近一次分发软件信息列表 - 应用组添加用户授权,授权后用户就获得应用组下所有已发布应用的权限访问。 + 查询最近一次分发软件信息列表,返回ID列表,不包含具体信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AddAppGroupAuthorization - :type request: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationResponse` + :param request: Request instance for ListLatestAttachedServerApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListLatestAttachedServerAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListLatestAttachedServerAppResponse` """ - http_info = self._add_app_group_authorization_http_info(request) + http_info = self._list_latest_attached_server_app_http_info(request) return self._call_api(**http_info) - def add_app_group_authorization_async_invoker(self, request): - http_info = self._add_app_group_authorization_http_info(request) + def list_latest_attached_server_app_async_invoker(self, request): + http_info = self._list_latest_attached_server_app_http_info(request) return AsyncInvoker(self, http_info) - def _add_app_group_authorization_http_info(self, request): + def _list_latest_attached_server_app_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/authorizations", + "method": "GET", + "resource_path": "/v1/{project_id}/image-servers/{server_id}/actions/latest-attached-app", "request_type": request.__class__.__name__, - "response_type": "AddAppGroupAuthorizationResponse" + "response_type": "ListLatestAttachedServerAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -894,18 +1847,16 @@ def _add_app_group_authorization_http_info(self, request): collection_formats = {} path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] query_params = [] header_params = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -914,7 +1865,7 @@ def _add_app_group_authorization_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -927,31 +1878,32 @@ def _add_app_group_authorization_http_info(self, request): return http_info - def batch_delete_app_group_authorization_async(self, request): - """移除应用组授权 + def recreate_server_image_async(self, request): + """构建云应用镜像 - 移除应用组内的指定用户的授权,用户授权删除后,用户将没有权限访问应用组内的任何应用。注意:重复执行会按照操作成功处理。 + 构建云应用镜像。 + * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例构建云应用镜像。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteAppGroupAuthorization - :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationResponse` + :param request: Request instance for RecreateServerImage + :type request: :class:`huaweicloudsdkworkspaceapp.v1.RecreateServerImageRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.RecreateServerImageResponse` """ - http_info = self._batch_delete_app_group_authorization_http_info(request) + http_info = self._recreate_server_image_http_info(request) return self._call_api(**http_info) - def batch_delete_app_group_authorization_async_invoker(self, request): - http_info = self._batch_delete_app_group_authorization_http_info(request) + def recreate_server_image_async_invoker(self, request): + http_info = self._recreate_server_image_http_info(request) return AsyncInvoker(self, http_info) - def _batch_delete_app_group_authorization_http_info(self, request): + def _recreate_server_image_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/actions/batch-delete-authorization", + "resource_path": "/v1/{project_id}/image-servers/{server_id}/actions/recreate-image", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteAppGroupAuthorizationResponse" + "response_type": "RecreateServerImageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -961,12 +1913,12 @@ def _batch_delete_app_group_authorization_http_info(self, request): collection_formats = {} path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] query_params = [] header_params = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] form_params = {} @@ -981,7 +1933,7 @@ def _batch_delete_app_group_authorization_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -994,31 +1946,31 @@ def _batch_delete_app_group_authorization_http_info(self, request): return http_info - def list_app_group_authorization_async(self, request): - """查询应用组授权记录 + def update_image_server_async(self, request): + """修改镜像实例 - 查询应用内已授权的用户列表。 + 修改镜像实例。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAppGroupAuthorization - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationResponse` + :param request: Request instance for UpdateImageServer + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerResponse` """ - http_info = self._list_app_group_authorization_http_info(request) + http_info = self._update_image_server_http_info(request) return self._call_api(**http_info) - def list_app_group_authorization_async_invoker(self, request): - http_info = self._list_app_group_authorization_http_info(request) + def update_image_server_async_invoker(self, request): + http_info = self._update_image_server_http_info(request) return AsyncInvoker(self, http_info) - def _list_app_group_authorization_http_info(self, request): + def _update_image_server_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/app-groups/actions/list-authorizations", + "method": "PATCH", + "resource_path": "/v1/{project_id}/image-servers/{server_id}", "request_type": request.__class__.__name__, - "response_type": "ListAppGroupAuthorizationResponse" + "response_type": "UpdateImageServerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1028,24 +1980,18 @@ def _list_app_group_authorization_http_info(self, request): collection_formats = {} path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'app_group_id' in local_var_params: - query_params.append(('app_group_id', local_var_params['app_group_id'])) - if 'account' in local_var_params: - query_params.append(('account', local_var_params['account'])) - if 'account_type' in local_var_params: - query_params.append(('account_type', local_var_params['account_type'])) header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1054,7 +2000,7 @@ def _list_app_group_authorization_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1067,31 +2013,31 @@ def _list_app_group_authorization_http_info(self, request): return http_info - def list_availability_zone_async(self, request): - """查询可用分区列表 + def show_image_job_async(self, request): + """查询镜像任务详情 - 该接口用于查询支持的可用分区列表。 + 该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAvailabilityZone - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneResponse` + :param request: Request instance for ShowImageJob + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowImageJobRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowImageJobResponse` """ - http_info = self._list_availability_zone_http_info(request) + http_info = self._show_image_job_http_info(request) return self._call_api(**http_info) - def list_availability_zone_async_invoker(self, request): - http_info = self._list_availability_zone_http_info(request) + def show_image_job_async_invoker(self, request): + http_info = self._show_image_job_http_info(request) return AsyncInvoker(self, http_info) - def _list_availability_zone_http_info(self, request): + def _show_image_job_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/availability-zone", + "resource_path": "/v1/{project_id}/image-server-jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ListAvailabilityZoneResponse" + "response_type": "ShowImageJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1101,6 +2047,8 @@ def _list_availability_zone_http_info(self, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -1117,7 +2065,7 @@ def _list_availability_zone_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1184,7 +2132,7 @@ def _show_job_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1251,7 +2199,7 @@ def _show_job_detail_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1316,7 +2264,7 @@ def _create_or_update_storage_policy_statement_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1381,7 +2329,7 @@ def _create_persistent_storage_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1448,7 +2396,7 @@ def _create_share_folder_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1513,7 +2461,7 @@ def _delete_persistent_storage_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1581,7 +2529,7 @@ def _delete_storage_claim_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1648,7 +2596,7 @@ def _delete_user_storage_attachment_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1719,7 +2667,7 @@ def _list_persistent_storage_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1792,7 +2740,7 @@ def _list_share_folder_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1869,7 +2817,7 @@ def _list_storage_assignment_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1936,7 +2884,7 @@ def _list_storage_policy_statement_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2003,7 +2951,7 @@ def _update_share_folder_assignment_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2070,7 +3018,7 @@ def _update_user_folder_assignment_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2135,7 +3083,7 @@ def _create_policy_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2200,7 +3148,7 @@ def _create_policy_template_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2265,7 +3213,7 @@ def _delete_policy_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2330,7 +3278,7 @@ def _delete_policy_template_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2401,7 +3349,7 @@ def _list_policy_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2470,7 +3418,7 @@ def _list_policy_template_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2537,7 +3485,7 @@ def _list_targets_of_policy_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2600,7 +3548,7 @@ def _show_original_policy_info_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2667,7 +3615,7 @@ def _update_policy_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2734,7 +3682,7 @@ def _update_policy_template_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2785,6 +3733,8 @@ def _check_quota_http_info(self, request): query_params = [] if 'product_id' in local_var_params: query_params.append(('product_id', local_var_params['product_id'])) + if 'flavor_id' in local_var_params: + query_params.append(('flavor_id', local_var_params['flavor_id'])) if 'subscription_num' in local_var_params: query_params.append(('subscription_num', local_var_params['subscription_num'])) if 'disk_size' in local_var_params: @@ -2811,7 +3761,7 @@ def _check_quota_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2877,7 +3827,7 @@ def _batch_delete_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2942,7 +3892,7 @@ def _batch_migrate_hosts_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3007,7 +3957,7 @@ def _batch_reboot_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3072,7 +4022,7 @@ def _batch_rejoin_domain_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3137,7 +4087,7 @@ def _batch_start_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3202,7 +4152,7 @@ def _batch_stop_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3267,7 +4217,7 @@ def _batch_update_tsvi_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3335,7 +4285,7 @@ def _change_server_image_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3400,7 +4350,84 @@ def _create_app_servers_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_server_metric_data_async(self, request): + """查询指定时间范围指定指标的指定粒度的监控数据 + + 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListServerMetricData + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListServerMetricDataRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListServerMetricDataResponse` + """ + http_info = self._list_server_metric_data_http_info(request) + return self._call_api(**http_info) + + def list_server_metric_data_async_invoker(self, request): + http_info = self._list_server_metric_data_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_server_metric_data_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-servers/server-metric-data/{server_id}", + "request_type": request.__class__.__name__, + "response_type": "ListServerMetricDataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + if 'namespace' in local_var_params: + query_params.append(('namespace', local_var_params['namespace'])) + if 'metric_name' in local_var_params: + query_params.append(('metric_name', local_var_params['metric_name'])) + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'period' in local_var_params: + query_params.append(('period', local_var_params['period'])) + if 'filter' in local_var_params: + query_params.append(('filter', local_var_params['filter'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3477,7 +4504,7 @@ def _list_servers_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3545,7 +4572,72 @@ def _reinstall_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_server_vnc_async(self, request): + """获取VNC远程登录地址 + + 获取VNC远程登录地址。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowServerVnc + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowServerVncRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowServerVncResponse` + """ + http_info = self._show_server_vnc_http_info(request) + return self._call_api(**http_info) + + def show_server_vnc_async_invoker(self, request): + http_info = self._show_server_vnc_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_server_vnc_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-servers/{server_id}/actions/vnc", + "request_type": request.__class__.__name__, + "response_type": "ShowServerVncResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3613,7 +4705,7 @@ def _update_server_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3679,7 +4771,7 @@ def _create_server_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3745,7 +4837,7 @@ def _delete_server_groups_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3804,6 +4896,12 @@ def _list_server_groups_http_info(self, request): query_params.append(('server_group_id', local_var_params['server_group_id'])) if 'app_type' in local_var_params: query_params.append(('app_type', local_var_params['app_type'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'is_secondary_server_group' in local_var_params: + query_params.append(('is_secondary_server_group', local_var_params['is_secondary_server_group'])) header_params = {} @@ -3818,7 +4916,7 @@ def _list_server_groups_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3886,7 +4984,7 @@ def _update_server_group_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3955,7 +5053,7 @@ def _list_app_connection_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4020,7 +5118,90 @@ def _list_session_by_user_name_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_sessions_async(self, request): + """查询用户会话列表 + + 查询用户会话列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListSessions + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionsRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionsResponse` + """ + http_info = self._list_sessions_http_info(request) + return self._call_api(**http_info) + + def list_sessions_async_invoker(self, request): + http_info = self._list_sessions_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_sessions_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/session/list-sessions", + "request_type": request.__class__.__name__, + "response_type": "ListSessionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'user_name' in local_var_params: + query_params.append(('user_name', local_var_params['user_name'])) + if 'query_begin_time' in local_var_params: + query_params.append(('query_begin_time', local_var_params['query_begin_time'])) + if 'query_end_time' in local_var_params: + query_params.append(('query_end_time', local_var_params['query_end_time'])) + if 'app_server_group_id' in local_var_params: + query_params.append(('app_server_group_id', local_var_params['app_server_group_id'])) + if 'vm_ip' in local_var_params: + query_params.append(('vm_ip', local_var_params['vm_ip'])) + if 'machine_name' in local_var_params: + query_params.append(('machine_name', local_var_params['machine_name'])) + if 'session_state' in local_var_params: + query_params.append(('session_state', local_var_params['session_state'])) + if 'is_success' in local_var_params: + query_params.append(('is_success', local_var_params['is_success'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4089,7 +5270,7 @@ def _list_user_connection_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4154,7 +5335,7 @@ def _logoff_user_session_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4217,7 +5398,7 @@ def _list_volume_type_http_info(self, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats diff --git a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py index e76fb5795f..a73ba23ede 100644 --- a/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py +++ b/huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/workspaceapp_client.py @@ -32,31 +32,31 @@ def new_builder(cls, clazz=None): return client_builder - def list_published_app(self, request): - """查询已发布应用 + def authorize_obs(self, request): + """获取上传至OBS桶的临时ak/sk - 查询已发布的应用。 + 获取上传至OBS桶的临时ak/sk。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListPublishedApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppResponse` + :param request: Request instance for AuthorizeObs + :type request: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AuthorizeObsResponse` """ - http_info = self._list_published_app_http_info(request) + http_info = self._authorize_obs_http_info(request) return self._call_api(**http_info) - def list_published_app_invoker(self, request): - http_info = self._list_published_app_http_info(request) + def authorize_obs_invoker(self, request): + http_info = self._authorize_obs_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_published_app_http_info(cls, request): + def _authorize_obs_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", + "method": "POST", + "resource_path": "/v1/{project_id}/app-warehouse/action/authorize", "request_type": request.__class__.__name__, - "response_type": "ListPublishedAppResponse" + "response_type": "AuthorizeObsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -66,26 +66,16 @@ def _list_published_app_http_info(cls, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'state' in local_var_params: - query_params.append(('state', local_var_params['state'])) - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -94,7 +84,7 @@ def _list_published_app_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -107,31 +97,31 @@ def _list_published_app_http_info(cls, request): return http_info - def publish_app(self, request): - """发布应用 + def batch_delete_warehouse_app(self, request): + """批量删除应用仓库中的指定应用 - 批量发布应用,不允许发布同名的应用。 + 批量删除应用仓库中的指定应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for PublishApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppResponse` + :param request: Request instance for BatchDeleteWarehouseApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteWarehouseAppResponse` """ - http_info = self._publish_app_http_info(request) + http_info = self._batch_delete_warehouse_app_http_info(request) return self._call_api(**http_info) - def publish_app_invoker(self, request): - http_info = self._publish_app_http_info(request) + def batch_delete_warehouse_app_invoker(self, request): + http_info = self._batch_delete_warehouse_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _publish_app_http_info(cls, request): + def _batch_delete_warehouse_app_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", + "resource_path": "/v1/{project_id}/app-warehouse/actions/batch-delete", "request_type": request.__class__.__name__, - "response_type": "PublishAppResponse" + "response_type": "BatchDeleteWarehouseAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -141,8 +131,6 @@ def _publish_app_http_info(cls, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] @@ -161,7 +149,7 @@ def _publish_app_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -174,31 +162,31 @@ def _publish_app_http_info(cls, request): return http_info - def show_publishable_app(self, request): - """可发布应用列表 + def create_warehouse_app(self, request): + """在应用仓库中新增应用 - 查询应用组下可发布的应用。 + 在应用仓库中新增应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowPublishableApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppResponse` + :param request: Request instance for CreateWarehouseApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateWarehouseAppResponse` """ - http_info = self._show_publishable_app_http_info(request) + http_info = self._create_warehouse_app_http_info(request) return self._call_api(**http_info) - def show_publishable_app_invoker(self, request): - http_info = self._show_publishable_app_http_info(request) + def create_warehouse_app_invoker(self, request): + http_info = self._create_warehouse_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_publishable_app_http_info(cls, request): + def _create_warehouse_app_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/publishable-app", + "method": "POST", + "resource_path": "/v1/{project_id}/app-warehouse/apps", "request_type": request.__class__.__name__, - "response_type": "ShowPublishableAppResponse" + "response_type": "CreateWarehouseAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -208,8 +196,6 @@ def _show_publishable_app_http_info(cls, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] @@ -218,6 +204,8 @@ def _show_publishable_app_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -226,7 +214,7 @@ def _show_publishable_app_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -239,32 +227,31 @@ def _show_publishable_app_http_info(cls, request): return http_info - def unpublish_app(self, request): - """批量取消应用发布 + def list_warehouse_apps(self, request): + """查询租户应用仓库中的应用列表 - 批量取消应用发布。 - > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200)。 + 查询租户应用仓库中的应用列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UnpublishApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppResponse` + :param request: Request instance for ListWarehouseApps + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListWarehouseAppsRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListWarehouseAppsResponse` """ - http_info = self._unpublish_app_http_info(request) + http_info = self._list_warehouse_apps_http_info(request) return self._call_api(**http_info) - def unpublish_app_invoker(self, request): - http_info = self._unpublish_app_http_info(request) + def list_warehouse_apps_invoker(self, request): + http_info = self._list_warehouse_apps_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _unpublish_app_http_info(cls, request): + def _list_warehouse_apps_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/batch-unpublish", + "method": "GET", + "resource_path": "/v1/{project_id}/app-warehouse/apps", "request_type": request.__class__.__name__, - "response_type": "UnpublishAppResponse" + "response_type": "ListWarehouseAppsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -274,18 +261,26 @@ def _unpublish_app_http_info(cls, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'verify_status' in local_var_params: + query_params.append(('verify_status', local_var_params['verify_status'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'app_name' in local_var_params: + query_params.append(('app_name', local_var_params['app_name'])) + if 'app_category' in local_var_params: + query_params.append(('app_category', local_var_params['app_category'])) header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -294,7 +289,7 @@ def _unpublish_app_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -307,31 +302,31 @@ def _unpublish_app_http_info(cls, request): return http_info - def update_app(self, request): - """修改应用信息 + def update_warehouse_app(self, request): + """修改应用仓库中的指定应用信息 - 编辑修改应用信息。 + 修改应用仓库中的指定应用信息 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateApp - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppResponse` + :param request: Request instance for UpdateWarehouseApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateWarehouseAppResponse` """ - http_info = self._update_app_http_info(request) + http_info = self._update_warehouse_app_http_info(request) return self._call_api(**http_info) - def update_app_invoker(self, request): - http_info = self._update_app_http_info(request) + def update_warehouse_app_invoker(self, request): + http_info = self._update_warehouse_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_app_http_info(cls, request): + def _update_warehouse_app_http_info(cls, request): http_info = { "method": "PATCH", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}", + "resource_path": "/v1/{project_id}/app-warehouse/apps/{id}", "request_type": request.__class__.__name__, - "response_type": "UpdateAppResponse" + "response_type": "UpdateWarehouseAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -341,10 +336,8 @@ def _update_app_http_info(cls, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] + if 'id' in local_var_params: + path_params['id'] = local_var_params['id'] query_params = [] @@ -363,7 +356,7 @@ def _update_app_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -376,31 +369,31 @@ def _update_app_http_info(cls, request): return http_info - def upload_app_icon(self, request): - """修改自定义应用图标 + def upload_warehouse_app_icon(self, request): + """在应用仓库中上传图标文件 - 修改自定义应用图标。 + 在应用仓库中上传图标文件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UploadAppIcon - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconResponse` + :param request: Request instance for UploadWarehouseAppIcon + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadWarehouseAppIconResponse` """ - http_info = self._upload_app_icon_http_info(request) + http_info = self._upload_warehouse_app_icon_http_info(request) return self._call_api(**http_info) - def upload_app_icon_invoker(self, request): - http_info = self._upload_app_icon_http_info(request) + def upload_warehouse_app_icon_invoker(self, request): + http_info = self._upload_warehouse_app_icon_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _upload_app_icon_http_info(cls, request): + def _upload_warehouse_app_icon_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}/icon", + "resource_path": "/v1/{project_id}/app-warehouse/apps/icon", "request_type": request.__class__.__name__, - "response_type": "UploadAppIconResponse" + "response_type": "UploadWarehouseAppIconResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -410,10 +403,6 @@ def _upload_app_icon_http_info(cls, request): collection_formats = {} path_params = {} - if 'app_group_id' in local_var_params: - path_params['app_group_id'] = local_var_params['app_group_id'] - if 'app_id' in local_var_params: - path_params['app_id'] = local_var_params['app_id'] query_params = [] @@ -434,7 +423,7 @@ def _upload_app_icon_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['multipart/form-data']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -447,31 +436,31 @@ def _upload_app_icon_http_info(cls, request): return http_info - def batch_delete_app_group(self, request): - """批量删除应用组 + def list_published_app(self, request): + """查询已发布应用 - 批量删除应用组,重复执行会按照成功处理(响应200)。 + 查询已发布的应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupResponse` + :param request: Request instance for ListPublishedApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListPublishedAppResponse` """ - http_info = self._batch_delete_app_group_http_info(request) + http_info = self._list_published_app_http_info(request) return self._call_api(**http_info) - def batch_delete_app_group_invoker(self, request): - http_info = self._batch_delete_app_group_http_info(request) + def list_published_app_invoker(self, request): + http_info = self._list_published_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _batch_delete_app_group_http_info(cls, request): + def _list_published_app_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/batch-delete", + "method": "GET", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteAppGroupResponse" + "response_type": "ListPublishedAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -481,16 +470,26 @@ def _batch_delete_app_group_http_info(cls, request): collection_formats = {} path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'state' in local_var_params: + query_params.append(('state', local_var_params['state'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) header_params = {} form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -499,7 +498,7 @@ def _batch_delete_app_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -512,32 +511,31 @@ def _batch_delete_app_group_http_info(cls, request): return http_info - def create_app_group(self, request): - """创建应用组 + def publish_app(self, request): + """发布应用 - 该API用于创建应用组。 - > - 应用服务器中安装了不同的应用,这些应用可以组成不同的应用组,进行集中的管理和维护,向用户(组)发布。 + 批量发布应用,不允许发布同名的应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupResponse` + :param request: Request instance for PublishApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.PublishAppResponse` """ - http_info = self._create_app_group_http_info(request) + http_info = self._publish_app_http_info(request) return self._call_api(**http_info) - def create_app_group_invoker(self, request): - http_info = self._create_app_group_http_info(request) + def publish_app_invoker(self, request): + http_info = self._publish_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_app_group_http_info(cls, request): + def _publish_app_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps", "request_type": request.__class__.__name__, - "response_type": "CreateAppGroupResponse" + "response_type": "PublishAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -547,6 +545,8 @@ def _create_app_group_http_info(cls, request): collection_formats = {} path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] @@ -565,7 +565,7 @@ def _create_app_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -578,31 +578,31 @@ def _create_app_group_http_info(cls, request): return http_info - def list_app_group(self, request): - """查询应用组 + def show_publishable_app(self, request): + """可发布应用列表 - 查询用户创建的应用组,按照名称、授权类型分页查询。 + 查询应用组下可发布的应用。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupResponse` + :param request: Request instance for ShowPublishableApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowPublishableAppResponse` """ - http_info = self._list_app_group_http_info(request) + http_info = self._show_publishable_app_http_info(request) return self._call_api(**http_info) - def list_app_group_invoker(self, request): - http_info = self._list_app_group_http_info(request) + def show_publishable_app_invoker(self, request): + http_info = self._show_publishable_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_app_group_http_info(cls, request): + def _show_publishable_app_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/app-groups", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/publishable-app", "request_type": request.__class__.__name__, - "response_type": "ListAppGroupResponse" + "response_type": "ShowPublishableAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -612,22 +612,10 @@ def _list_app_group_http_info(cls, request): collection_formats = {} path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'app_server_group_id' in local_var_params: - query_params.append(('app_server_group_id', local_var_params['app_server_group_id'])) - if 'app_group_id' in local_var_params: - query_params.append(('app_group_id', local_var_params['app_group_id'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) - if 'authorization_type' in local_var_params: - query_params.append(('authorization_type', local_var_params['authorization_type'])) - if 'app_type' in local_var_params: - query_params.append(('app_type', local_var_params['app_type'])) header_params = {} @@ -642,7 +630,7 @@ def _list_app_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -655,31 +643,32 @@ def _list_app_group_http_info(cls, request): return http_info - def update_app_group(self, request): - """修改应用组 + def unpublish_app(self, request): + """批量取消应用发布 - 修改应用组。 + 批量取消应用发布。 + > - 批量取消应用组下已经发布的应用,应用对应的授权会一起删除,重复执行会按照成功处理(响应200)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateAppGroup - :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupResponse` + :param request: Request instance for UnpublishApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UnpublishAppResponse` """ - http_info = self._update_app_group_http_info(request) + http_info = self._unpublish_app_http_info(request) return self._call_api(**http_info) - def update_app_group_invoker(self, request): - http_info = self._update_app_group_http_info(request) + def unpublish_app_invoker(self, request): + http_info = self._unpublish_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_app_group_http_info(cls, request): + def _unpublish_app_http_info(cls, request): http_info = { - "method": "PATCH", - "resource_path": "/v1/{project_id}/app-groups/{app_group_id}", + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/batch-unpublish", "request_type": request.__class__.__name__, - "response_type": "UpdateAppGroupResponse" + "response_type": "UnpublishAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -709,7 +698,7 @@ def _update_app_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -722,31 +711,793 @@ def _update_app_group_http_info(cls, request): return http_info - def list_product(self, request): - """查询云应用套餐 + def update_app(self, request): + """修改应用信息 - 查询云应用套餐,按照条件过滤。 + 编辑修改应用信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppResponse` + """ + http_info = self._update_app_http_info(request) + return self._call_api(**http_info) + + def update_app_invoker(self, request): + http_info = self._update_app_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_app_http_info(cls, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateAppResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] + if 'app_id' in local_var_params: + path_params['app_id'] = local_var_params['app_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def upload_app_icon(self, request): + """修改自定义应用图标 + + 修改自定义应用图标。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UploadAppIcon + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UploadAppIconResponse` + """ + http_info = self._upload_app_icon_http_info(request) + return self._call_api(**http_info) + + def upload_app_icon_invoker(self, request): + http_info = self._upload_app_icon_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _upload_app_icon_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}/apps/{app_id}/icon", + "request_type": request.__class__.__name__, + "response_type": "UploadAppIconResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] + if 'app_id' in local_var_params: + path_params['app_id'] = local_var_params['app_id'] + + query_params = [] + + header_params = {} + + form_params = {} + if 'data' in local_var_params: + form_params['data'] = local_var_params['data'] + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['multipart/form-data']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def batch_delete_app_group(self, request): + """批量删除应用组 + + 批量删除应用组,重复执行会按照成功处理(响应200)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchDeleteAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupResponse` + """ + http_info = self._batch_delete_app_group_http_info(request) + return self._call_api(**http_info) + + def batch_delete_app_group_invoker(self, request): + http_info = self._batch_delete_app_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_delete_app_group_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/batch-delete", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_app_group(self, request): + """创建应用组 + + 该API用于创建应用组。 + > - 应用服务器中安装了不同的应用,这些应用可以组成不同的应用组,进行集中的管理和维护,向用户(组)发布。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateAppGroupResponse` + """ + http_info = self._create_app_group_http_info(request) + return self._call_api(**http_info) + + def create_app_group_invoker(self, request): + http_info = self._create_app_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_app_group_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups", + "request_type": request.__class__.__name__, + "response_type": "CreateAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_app_group(self, request): + """查询应用组 + + 查询用户创建的应用组,按照名称、授权类型分页查询。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupResponse` + """ + http_info = self._list_app_group_http_info(request) + return self._call_api(**http_info) + + def list_app_group_invoker(self, request): + http_info = self._list_app_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_app_group_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-groups", + "request_type": request.__class__.__name__, + "response_type": "ListAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'app_server_group_id' in local_var_params: + query_params.append(('app_server_group_id', local_var_params['app_server_group_id'])) + if 'app_group_id' in local_var_params: + query_params.append(('app_group_id', local_var_params['app_group_id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'authorization_type' in local_var_params: + query_params.append(('authorization_type', local_var_params['authorization_type'])) + if 'app_type' in local_var_params: + query_params.append(('app_type', local_var_params['app_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_app_group(self, request): + """修改应用组 + + 修改应用组。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateAppGroup + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateAppGroupResponse` + """ + http_info = self._update_app_group_http_info(request) + return self._call_api(**http_info) + + def update_app_group_invoker(self, request): + http_info = self._update_app_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_app_group_http_info(cls, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/{project_id}/app-groups/{app_group_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateAppGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'app_group_id' in local_var_params: + path_params['app_group_id'] = local_var_params['app_group_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_product(self, request): + """查询云应用套餐 + + 查询云应用套餐,按照条件过滤。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListProduct + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListProductRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListProductResponse` + """ + http_info = self._list_product_http_info(request) + return self._call_api(**http_info) + + def list_product_invoker(self, request): + http_info = self._list_product_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_product_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/product", + "request_type": request.__class__.__name__, + "response_type": "ListProductResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'product_id' in local_var_params: + query_params.append(('product_id', local_var_params['product_id'])) + if 'flavor_id' in local_var_params: + query_params.append(('flavor_id', local_var_params['flavor_id'])) + if 'availability_zone' in local_var_params: + query_params.append(('availability_zone', local_var_params['availability_zone'])) + if 'os_type' in local_var_params: + query_params.append(('os_type', local_var_params['os_type'])) + if 'charge_mode' in local_var_params: + query_params.append(('charge_mode', local_var_params['charge_mode'])) + if 'architecture' in local_var_params: + query_params.append(('architecture', local_var_params['architecture'])) + if 'package_type' in local_var_params: + query_params.append(('package_type', local_var_params['package_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_session_type(self, request): + """查询会话套餐列表 + + 该接口用于查询会话套餐列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListSessionType + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeResponse` + """ + http_info = self._list_session_type_http_info(request) + return self._call_api(**http_info) + + def list_session_type_invoker(self, request): + http_info = self._list_session_type_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_session_type_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/session-type", + "request_type": request.__class__.__name__, + "response_type": "ListSessionTypeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def add_app_group_authorization(self, request): + """增加应用组授权 + + 应用组添加用户授权,授权后用户就获得应用组下所有已发布应用的权限访问。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for AddAppGroupAuthorization + :type request: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationResponse` + """ + http_info = self._add_app_group_authorization_http_info(request) + return self._call_api(**http_info) + + def add_app_group_authorization_invoker(self, request): + http_info = self._add_app_group_authorization_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _add_app_group_authorization_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/authorizations", + "request_type": request.__class__.__name__, + "response_type": "AddAppGroupAuthorizationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def batch_delete_app_group_authorization(self, request): + """移除应用组授权 + + 移除应用组内的指定用户的授权,用户授权删除后,用户将没有权限访问应用组内的任何应用。注意:重复执行会按照操作成功处理。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchDeleteAppGroupAuthorization + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationResponse` + """ + http_info = self._batch_delete_app_group_authorization_http_info(request) + return self._call_api(**http_info) + + def batch_delete_app_group_authorization_invoker(self, request): + http_info = self._batch_delete_app_group_authorization_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_delete_app_group_authorization_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/app-groups/actions/batch-delete-authorization", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteAppGroupAuthorizationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_app_group_authorization(self, request): + """查询应用组授权记录 + + 查询应用内已授权的用户列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAppGroupAuthorization + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationResponse` + """ + http_info = self._list_app_group_authorization_http_info(request) + return self._call_api(**http_info) + + def list_app_group_authorization_invoker(self, request): + http_info = self._list_app_group_authorization_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_app_group_authorization_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-groups/actions/list-authorizations", + "request_type": request.__class__.__name__, + "response_type": "ListAppGroupAuthorizationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'app_group_id' in local_var_params: + query_params.append(('app_group_id', local_var_params['app_group_id'])) + if 'account' in local_var_params: + query_params.append(('account', local_var_params['account'])) + if 'account_type' in local_var_params: + query_params.append(('account_type', local_var_params['account_type'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_availability_zone(self, request): + """查询可用分区列表 + + 该接口用于查询支持的可用分区列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListProduct - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListProductRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListProductResponse` + :param request: Request instance for ListAvailabilityZone + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneResponse` """ - http_info = self._list_product_http_info(request) + http_info = self._list_availability_zone_http_info(request) return self._call_api(**http_info) - def list_product_invoker(self, request): - http_info = self._list_product_http_info(request) + def list_availability_zone_invoker(self, request): + http_info = self._list_availability_zone_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_product_http_info(cls, request): + def _list_availability_zone_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/product", + "resource_path": "/v1/{project_id}/availability-zone", "request_type": request.__class__.__name__, - "response_type": "ListProductResponse" + "response_type": "ListAvailabilityZoneResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -758,18 +1509,6 @@ def _list_product_http_info(cls, request): path_params = {} query_params = [] - if 'product_id' in local_var_params: - query_params.append(('product_id', local_var_params['product_id'])) - if 'availability_zone' in local_var_params: - query_params.append(('availability_zone', local_var_params['availability_zone'])) - if 'os_type' in local_var_params: - query_params.append(('os_type', local_var_params['os_type'])) - if 'charge_mode' in local_var_params: - query_params.append(('charge_mode', local_var_params['charge_mode'])) - if 'architecture' in local_var_params: - query_params.append(('architecture', local_var_params['architecture'])) - if 'package_type' in local_var_params: - query_params.append(('package_type', local_var_params['package_type'])) header_params = {} @@ -784,7 +1523,7 @@ def _list_product_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -797,31 +1536,235 @@ def _list_product_http_info(cls, request): return http_info - def list_session_type(self, request): - """查询会话套餐列表 + def attach_image_server_app(self, request): + """分发软件信息至镜像实例 - 该接口用于查询会话套餐列表。 + 分发应用软件信息至镜像实例,管理员可以按需下载并安装应用软件。 + * 目前只支持来自云应用仓库的软件信息。 + * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例分发软件信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListSessionType - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionTypeResponse` + :param request: Request instance for AttachImageServerApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.AttachImageServerAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AttachImageServerAppResponse` + """ + http_info = self._attach_image_server_app_http_info(request) + return self._call_api(**http_info) + + def attach_image_server_app_invoker(self, request): + http_info = self._attach_image_server_app_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _attach_image_server_app_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/image-servers/{server_id}/actions/attach-app", + "request_type": request.__class__.__name__, + "response_type": "AttachImageServerAppResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def batch_delete_image_server(self, request): + """批量删除镜像实例 + + 批量删除镜像实例。 + * 忽略不存在的镜像实例,响应正常。 + * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 + * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchDeleteImageServer + :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteImageServerResponse` + """ + http_info = self._batch_delete_image_server_http_info(request) + return self._call_api(**http_info) + + def batch_delete_image_server_invoker(self, request): + http_info = self._batch_delete_image_server_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_delete_image_server_http_info(cls, request): + http_info = { + "method": "PATCH", + "resource_path": "/v1/{project_id}/image-servers/actions/batch-delete", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteImageServerResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_image_server(self, request): + """创建镜像实例 + + 创建镜像实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateImageServer + :type request: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.CreateImageServerResponse` + """ + http_info = self._create_image_server_http_info(request) + return self._call_api(**http_info) + + def create_image_server_invoker(self, request): + http_info = self._create_image_server_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_image_server_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/image-servers", + "request_type": request.__class__.__name__, + "response_type": "CreateImageServerResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'service_transaction_id' in local_var_params: + header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_image_servers(self, request): + """查询镜像实例列表 + + 查询镜像实例列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListImageServers + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListImageServersRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListImageServersResponse` """ - http_info = self._list_session_type_http_info(request) + http_info = self._list_image_servers_http_info(request) return self._call_api(**http_info) - def list_session_type_invoker(self, request): - http_info = self._list_session_type_http_info(request) + def list_image_servers_invoker(self, request): + http_info = self._list_image_servers_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_session_type_http_info(cls, request): + def _list_image_servers_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/session-type", + "resource_path": "/v1/{project_id}/image-servers", "request_type": request.__class__.__name__, - "response_type": "ListSessionTypeResponse" + "response_type": "ListImageServersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -833,6 +1776,16 @@ def _list_session_type_http_info(cls, request): path_params = {} query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'server_name' in local_var_params: + query_params.append(('server_name', local_var_params['server_name'])) + if 'server_id' in local_var_params: + query_params.append(('server_id', local_var_params['server_id'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) header_params = {} @@ -847,7 +1800,7 @@ def _list_session_type_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -860,31 +1813,31 @@ def _list_session_type_http_info(cls, request): return http_info - def add_app_group_authorization(self, request): - """增加应用组授权 + def list_latest_attached_server_app(self, request): + """查询最近一次分发软件信息列表 - 应用组添加用户授权,授权后用户就获得应用组下所有已发布应用的权限访问。 + 查询最近一次分发软件信息列表,返回ID列表,不包含具体信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AddAppGroupAuthorization - :type request: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.AddAppGroupAuthorizationResponse` + :param request: Request instance for ListLatestAttachedServerApp + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListLatestAttachedServerAppRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListLatestAttachedServerAppResponse` """ - http_info = self._add_app_group_authorization_http_info(request) + http_info = self._list_latest_attached_server_app_http_info(request) return self._call_api(**http_info) - def add_app_group_authorization_invoker(self, request): - http_info = self._add_app_group_authorization_http_info(request) + def list_latest_attached_server_app_invoker(self, request): + http_info = self._list_latest_attached_server_app_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _add_app_group_authorization_http_info(cls, request): + def _list_latest_attached_server_app_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/authorizations", + "method": "GET", + "resource_path": "/v1/{project_id}/image-servers/{server_id}/actions/latest-attached-app", "request_type": request.__class__.__name__, - "response_type": "AddAppGroupAuthorizationResponse" + "response_type": "ListLatestAttachedServerAppResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -894,18 +1847,16 @@ def _add_app_group_authorization_http_info(cls, request): collection_formats = {} path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] query_params = [] header_params = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -914,7 +1865,7 @@ def _add_app_group_authorization_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -927,31 +1878,32 @@ def _add_app_group_authorization_http_info(cls, request): return http_info - def batch_delete_app_group_authorization(self, request): - """移除应用组授权 + def recreate_server_image(self, request): + """构建云应用镜像 - 移除应用组内的指定用户的授权,用户授权删除后,用户将没有权限访问应用组内的任何应用。注意:重复执行会按照操作成功处理。 + 构建云应用镜像。 + * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例构建云应用镜像。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for BatchDeleteAppGroupAuthorization - :type request: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.BatchDeleteAppGroupAuthorizationResponse` + :param request: Request instance for RecreateServerImage + :type request: :class:`huaweicloudsdkworkspaceapp.v1.RecreateServerImageRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.RecreateServerImageResponse` """ - http_info = self._batch_delete_app_group_authorization_http_info(request) + http_info = self._recreate_server_image_http_info(request) return self._call_api(**http_info) - def batch_delete_app_group_authorization_invoker(self, request): - http_info = self._batch_delete_app_group_authorization_http_info(request) + def recreate_server_image_invoker(self, request): + http_info = self._recreate_server_image_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _batch_delete_app_group_authorization_http_info(cls, request): + def _recreate_server_image_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v1/{project_id}/app-groups/actions/batch-delete-authorization", + "resource_path": "/v1/{project_id}/image-servers/{server_id}/actions/recreate-image", "request_type": request.__class__.__name__, - "response_type": "BatchDeleteAppGroupAuthorizationResponse" + "response_type": "RecreateServerImageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -961,12 +1913,12 @@ def _batch_delete_app_group_authorization_http_info(cls, request): collection_formats = {} path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] query_params = [] header_params = {} - if 'x_language' in local_var_params: - header_params['X-Language'] = local_var_params['x_language'] form_params = {} @@ -981,7 +1933,7 @@ def _batch_delete_app_group_authorization_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -994,31 +1946,31 @@ def _batch_delete_app_group_authorization_http_info(cls, request): return http_info - def list_app_group_authorization(self, request): - """查询应用组授权记录 + def update_image_server(self, request): + """修改镜像实例 - 查询应用内已授权的用户列表。 + 修改镜像实例。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAppGroupAuthorization - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAppGroupAuthorizationResponse` + :param request: Request instance for UpdateImageServer + :type request: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.UpdateImageServerResponse` """ - http_info = self._list_app_group_authorization_http_info(request) + http_info = self._update_image_server_http_info(request) return self._call_api(**http_info) - def list_app_group_authorization_invoker(self, request): - http_info = self._list_app_group_authorization_http_info(request) + def update_image_server_invoker(self, request): + http_info = self._update_image_server_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_app_group_authorization_http_info(cls, request): + def _update_image_server_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v1/{project_id}/app-groups/actions/list-authorizations", + "method": "PATCH", + "resource_path": "/v1/{project_id}/image-servers/{server_id}", "request_type": request.__class__.__name__, - "response_type": "ListAppGroupAuthorizationResponse" + "response_type": "UpdateImageServerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1028,24 +1980,18 @@ def _list_app_group_authorization_http_info(cls, request): collection_formats = {} path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] query_params = [] - if 'limit' in local_var_params: - query_params.append(('limit', local_var_params['limit'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'app_group_id' in local_var_params: - query_params.append(('app_group_id', local_var_params['app_group_id'])) - if 'account' in local_var_params: - query_params.append(('account', local_var_params['account'])) - if 'account_type' in local_var_params: - query_params.append(('account_type', local_var_params['account_type'])) header_params = {} form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -1054,7 +2000,7 @@ def _list_app_group_authorization_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1067,31 +2013,31 @@ def _list_app_group_authorization_http_info(cls, request): return http_info - def list_availability_zone(self, request): - """查询可用分区列表 + def show_image_job(self, request): + """查询镜像任务详情 - 该接口用于查询支持的可用分区列表。 + 该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListAvailabilityZone - :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneRequest` - :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListAvailabilityZoneResponse` + :param request: Request instance for ShowImageJob + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowImageJobRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowImageJobResponse` """ - http_info = self._list_availability_zone_http_info(request) + http_info = self._show_image_job_http_info(request) return self._call_api(**http_info) - def list_availability_zone_invoker(self, request): - http_info = self._list_availability_zone_http_info(request) + def show_image_job_invoker(self, request): + http_info = self._show_image_job_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_availability_zone_http_info(cls, request): + def _show_image_job_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v1/{project_id}/availability-zone", + "resource_path": "/v1/{project_id}/image-server-jobs/{job_id}", "request_type": request.__class__.__name__, - "response_type": "ListAvailabilityZoneResponse" + "response_type": "ShowImageJobResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1101,6 +2047,8 @@ def _list_availability_zone_http_info(cls, request): collection_formats = {} path_params = {} + if 'job_id' in local_var_params: + path_params['job_id'] = local_var_params['job_id'] query_params = [] @@ -1117,7 +2065,7 @@ def _list_availability_zone_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1184,7 +2132,7 @@ def _show_job_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1251,7 +2199,7 @@ def _show_job_detail_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1316,7 +2264,7 @@ def _create_or_update_storage_policy_statement_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1381,7 +2329,7 @@ def _create_persistent_storage_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1448,7 +2396,7 @@ def _create_share_folder_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1513,7 +2461,7 @@ def _delete_persistent_storage_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1581,7 +2529,7 @@ def _delete_storage_claim_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1648,7 +2596,7 @@ def _delete_user_storage_attachment_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1719,7 +2667,7 @@ def _list_persistent_storage_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1792,7 +2740,7 @@ def _list_share_folder_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1869,7 +2817,7 @@ def _list_storage_assignment_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -1936,7 +2884,7 @@ def _list_storage_policy_statement_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2003,7 +2951,7 @@ def _update_share_folder_assignment_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2070,7 +3018,7 @@ def _update_user_folder_assignment_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2135,7 +3083,7 @@ def _create_policy_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2200,7 +3148,7 @@ def _create_policy_template_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2265,7 +3213,7 @@ def _delete_policy_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2330,7 +3278,7 @@ def _delete_policy_template_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2401,7 +3349,7 @@ def _list_policy_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2470,7 +3418,7 @@ def _list_policy_template_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2537,7 +3485,7 @@ def _list_targets_of_policy_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2600,7 +3548,7 @@ def _show_original_policy_info_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2667,7 +3615,7 @@ def _update_policy_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2734,7 +3682,7 @@ def _update_policy_template_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2785,6 +3733,8 @@ def _check_quota_http_info(cls, request): query_params = [] if 'product_id' in local_var_params: query_params.append(('product_id', local_var_params['product_id'])) + if 'flavor_id' in local_var_params: + query_params.append(('flavor_id', local_var_params['flavor_id'])) if 'subscription_num' in local_var_params: query_params.append(('subscription_num', local_var_params['subscription_num'])) if 'disk_size' in local_var_params: @@ -2811,7 +3761,7 @@ def _check_quota_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2877,7 +3827,7 @@ def _batch_delete_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -2942,7 +3892,7 @@ def _batch_migrate_hosts_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3007,7 +3957,7 @@ def _batch_reboot_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3072,7 +4022,7 @@ def _batch_rejoin_domain_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3137,7 +4087,7 @@ def _batch_start_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3202,7 +4152,7 @@ def _batch_stop_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3267,7 +4217,7 @@ def _batch_update_tsvi_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3335,7 +4285,7 @@ def _change_server_image_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3400,7 +4350,84 @@ def _create_app_servers_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_server_metric_data(self, request): + """查询指定时间范围指定指标的指定粒度的监控数据 + + 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListServerMetricData + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListServerMetricDataRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListServerMetricDataResponse` + """ + http_info = self._list_server_metric_data_http_info(request) + return self._call_api(**http_info) + + def list_server_metric_data_invoker(self, request): + http_info = self._list_server_metric_data_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_server_metric_data_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-servers/server-metric-data/{server_id}", + "request_type": request.__class__.__name__, + "response_type": "ListServerMetricDataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + if 'namespace' in local_var_params: + query_params.append(('namespace', local_var_params['namespace'])) + if 'metric_name' in local_var_params: + query_params.append(('metric_name', local_var_params['metric_name'])) + if '_from' in local_var_params: + query_params.append(('from', local_var_params['_from'])) + if 'to' in local_var_params: + query_params.append(('to', local_var_params['to'])) + if 'period' in local_var_params: + query_params.append(('period', local_var_params['period'])) + if 'filter' in local_var_params: + query_params.append(('filter', local_var_params['filter'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3477,7 +4504,7 @@ def _list_servers_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3545,7 +4572,72 @@ def _reinstall_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_server_vnc(self, request): + """获取VNC远程登录地址 + + 获取VNC远程登录地址。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowServerVnc + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ShowServerVncRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ShowServerVncResponse` + """ + http_info = self._show_server_vnc_http_info(request) + return self._call_api(**http_info) + + def show_server_vnc_invoker(self, request): + http_info = self._show_server_vnc_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_server_vnc_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/app-servers/{server_id}/actions/vnc", + "request_type": request.__class__.__name__, + "response_type": "ShowServerVncResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'server_id' in local_var_params: + path_params['server_id'] = local_var_params['server_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3613,7 +4705,7 @@ def _update_server_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3679,7 +4771,7 @@ def _create_server_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3745,7 +4837,7 @@ def _delete_server_groups_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3804,6 +4896,12 @@ def _list_server_groups_http_info(cls, request): query_params.append(('server_group_id', local_var_params['server_group_id'])) if 'app_type' in local_var_params: query_params.append(('app_type', local_var_params['app_type'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'is_secondary_server_group' in local_var_params: + query_params.append(('is_secondary_server_group', local_var_params['is_secondary_server_group'])) header_params = {} @@ -3818,7 +4916,7 @@ def _list_server_groups_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3886,7 +4984,7 @@ def _update_server_group_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -3955,7 +5053,7 @@ def _list_app_connection_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4020,7 +5118,90 @@ def _list_session_by_user_name_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_sessions(self, request): + """查询用户会话列表 + + 查询用户会话列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListSessions + :type request: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionsRequest` + :rtype: :class:`huaweicloudsdkworkspaceapp.v1.ListSessionsResponse` + """ + http_info = self._list_sessions_http_info(request) + return self._call_api(**http_info) + + def list_sessions_invoker(self, request): + http_info = self._list_sessions_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_sessions_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/session/list-sessions", + "request_type": request.__class__.__name__, + "response_type": "ListSessionsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if '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'])) + if 'user_name' in local_var_params: + query_params.append(('user_name', local_var_params['user_name'])) + if 'query_begin_time' in local_var_params: + query_params.append(('query_begin_time', local_var_params['query_begin_time'])) + if 'query_end_time' in local_var_params: + query_params.append(('query_end_time', local_var_params['query_end_time'])) + if 'app_server_group_id' in local_var_params: + query_params.append(('app_server_group_id', local_var_params['app_server_group_id'])) + if 'vm_ip' in local_var_params: + query_params.append(('vm_ip', local_var_params['vm_ip'])) + if 'machine_name' in local_var_params: + query_params.append(('machine_name', local_var_params['machine_name'])) + if 'session_state' in local_var_params: + query_params.append(('session_state', local_var_params['session_state'])) + if 'is_success' in local_var_params: + query_params.append(('is_success', local_var_params['is_success'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4089,7 +5270,7 @@ def _list_user_connection_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4154,7 +5335,7 @@ def _logoff_user_session_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats @@ -4217,7 +5398,7 @@ def _list_volume_type_http_info(cls, request): header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) - auth_settings = ['apig-auth-iam'] + auth_settings = ['apig-auth-iam-used-authn5'] http_info["cname"] = cname http_info["collection_formats"] = collection_formats diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index 108391c051..44eb39fe8c 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.108 \ No newline at end of file +huaweicloudsdkcore >= 3.1.109 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index a30ba59c90..58c2d67880 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.108" +VERSION = "3.1.109" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.108"] +REQUIRES = ["huaweicloudsdkcore>=3.1.109"] OPTIONS = { 'bdist_wheel': {