From 66b4d0ee873598665e14ec47fbfe7f233adabcb1 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 10 Feb 2022 19:09:33 +0800 Subject: [PATCH] release 3.0.77 source code for python --- CHANGELOG.md | 241 + CHANGELOG_CN.md | 241 + examples/setup.py | 2 +- huaweicloud-sdk-antiddos/setup.py | 2 +- .../huaweicloudsdkaom/v2/__init__.py | 1 + .../huaweicloudsdkaom/v2/model/__init__.py | 1 + .../v2/model/update_alarm_rule_param.py | 572 +++ .../v2/model/update_alarm_rule_request.py | 6 +- huaweicloud-sdk-aom/setup.py | 2 +- huaweicloud-sdk-apig/setup.py | 2 +- huaweicloud-sdk-apm/setup.py | 2 +- huaweicloud-sdk-as/setup.py | 2 +- huaweicloud-sdk-bcs/setup.py | 2 +- huaweicloud-sdk-bms/setup.py | 2 +- .../v2/model/demand_product_info.py | 8 +- ...list_customer_bills_fee_records_request.py | 4 +- ...stomer_bills_monthly_break_down_request.py | 4 +- ...t_customerself_resource_records_request.py | 4 +- .../list_sub_customer_bill_detail_request.py | 4 +- .../v2/model/monthly_bill_record.py | 4 +- .../v2/model/monthly_bill_res.py | 4 +- .../v2/model/nvl_cost_analysed_bill_detail.py | 4 +- .../model/official_website_rating_result.py | 56 +- .../model/optional_discount_rating_result.py | 114 +- .../v2/model/period_product_info.py | 37 +- .../period_product_official_rating_result.py | 60 +- .../v2/model/period_product_rating_result.py | 114 +- .../v2/model/query_res_records_detail_req.py | 4 +- .../v2/model/res_fee_record_v2.py | 4 +- .../model/sub_customer_monthly_bill_detail.py | 4 +- huaweicloud-sdk-bss/setup.py | 2 +- .../model/official_website_rating_result.py | 56 +- .../model/optional_discount_rating_result.py | 114 +- .../v2/model/period_product_info.py | 33 +- .../period_product_official_rating_result.py | 60 +- .../v2/model/period_product_rating_result.py | 114 +- huaweicloud-sdk-bssintl/setup.py | 2 +- huaweicloud-sdk-campusgo/setup.py | 2 +- huaweicloud-sdk-cbh/setup.py | 2 +- .../v1/model/protectable_result.py | 6 +- .../v1/model/protectables_resp.py | 6 +- .../v1/model/vault_create.py | 6 +- .../huaweicloudsdkcbr/v1/model/vault_get.py | 6 +- huaweicloud-sdk-cbr/setup.py | 2 +- huaweicloud-sdk-cbs/setup.py | 2 +- .../v3/model/migrate_node_extend_param.py | 4 +- .../v3/model/migrate_nodes_spec.py | 3 +- .../v3/model/node_extend_param.py | 4 +- .../huaweicloudsdkcce/v3/model/node_item.py | 3 +- .../v3/model/node_pool_condition.py | 8 +- .../v3/model/node_pool_status.py | 12 +- .../v3/model/remove_nodes_spec.py | 3 +- .../v3/model/storage_groups.py | 8 +- huaweicloud-sdk-cce/setup.py | 2 +- huaweicloud-sdk-ccm/setup.py | 2 +- huaweicloud-sdk-cdm/setup.py | 2 +- .../v1/model/show_domain_stats_request.py | 4 +- huaweicloud-sdk-cdn/setup.py | 2 +- .../v2/model/list_alarm_histories_request.py | 8 +- huaweicloud-sdk-ces/setup.py | 2 +- huaweicloud-sdk-cgs/setup.py | 2 +- huaweicloud-sdk-classroom/setup.py | 2 +- huaweicloud-sdk-cloudbuild/setup.py | 2 +- huaweicloud-sdk-clouddeploy/setup.py | 2 +- huaweicloud-sdk-cloudide/setup.py | 2 +- huaweicloud-sdk-cloudpipeline/setup.py | 2 +- huaweicloud-sdk-cloudrtc/setup.py | 2 +- huaweicloud-sdk-cloudtable/setup.py | 2 +- huaweicloud-sdk-cloudtest/setup.py | 2 +- huaweicloud-sdk-codecheck/setup.py | 2 +- huaweicloud-sdk-codecraft/setup.py | 2 +- huaweicloud-sdk-codehub/setup.py | 2 +- huaweicloud-sdk-core/setup.py | 2 +- huaweicloud-sdk-cpts/setup.py | 2 +- huaweicloud-sdk-css/LICENSE | 13 + huaweicloud-sdk-css/README_PYPI.md | 1 + .../huaweicloudsdkcss/__init__.py | 0 .../huaweicloudsdkcss/v1/__init__.py | 219 + .../huaweicloudsdkcss/v1/css_async_client.py | 4316 +++++++++++++++++ .../huaweicloudsdkcss/v1/css_client.py | 4314 ++++++++++++++++ .../huaweicloudsdkcss/v1/css_exception.py | 19 + .../huaweicloudsdkcss/v1/model/__init__.py | 215 + .../huaweicloudsdkcss/v1/model/actions.py | 276 ++ .../v1/model/add_favorite_req.py | 75 +- .../v1/model/add_favorite_req_template.py | 140 + .../v1/model/add_favorite_request.py | 138 + .../v1/model/add_favorite_response.py | 85 + .../v1/model/address_and_ports.py | 167 + .../batch_add_or_delete_tag_on_cluster_req.py | 166 + .../v1/model/bind_public_req.py | 138 + .../v1/model/bind_public_req_eip.py | 138 + .../model/bind_public_req_eip_band_width.py | 113 + .../v1/model/cluster_list.py | 592 +++ .../v1/model/cluster_list_action_progress.py | 114 + .../v1/model/cluster_list_datastore.py | 141 + .../v1/model/cluster_list_failed_reasons.py | 141 + .../v1/model/cluster_list_instances.py | 249 + .../v1/model/cluster_list_tags.py | 141 + .../huaweicloudsdkcss/v1/model/config_list.py | 276 ++ .../huaweicloudsdkcss/v1/model/confs.py | 220 + .../huaweicloudsdkcss/v1/model/connections.py | 276 ++ .../create_auto_create_policy_request.py | 138 + .../create_auto_create_policy_response.py | 85 + .../v1/model/create_bind_public_request.py | 138 + .../v1/model/create_bind_public_response.py | 114 + .../create_cluster_backup_strategy_body.py | 246 + .../v1/model/create_cluster_body.py | 291 ++ .../model/create_cluster_cluster_response.py | 141 + .../v1/model/create_cluster_datastore_body.py | 139 + .../v1/model/create_cluster_instance_body.py | 188 + .../create_cluster_instance_nics_body.py | 165 + .../create_cluster_instance_volume_body.py | 139 + .../v1/model/create_cluster_req.py | 111 + .../v1/model/create_cluster_request.py | 112 + .../v1/model/create_cluster_response.py | 112 + .../v1/model/create_cluster_tags_body.py | 139 + .../v1/model/create_clusters_tags_request.py | 138 + .../v1/model/create_clusters_tags_response.py | 85 + .../v1/model/create_cnf_req.py | 163 + .../v1/model/create_cnf_request.py | 138 + .../v1/model/create_cnf_response.py | 85 + .../model/create_load_ik_thesaurus_request.py | 138 + .../create_load_ik_thesaurus_response.py | 85 + .../v1/model/create_log_backup_request.py | 113 + .../v1/model/create_log_backup_response.py | 85 + .../v1/model/create_snapshot_req.py | 167 + .../v1/model/create_snapshot_request.py | 138 + .../v1/model/create_snapshot_response.py | 168 + .../v1/model/custom_templates.py | 195 + .../v1/model/delete_cluster_request.py | 113 + .../v1/model/delete_cluster_response.py | 85 + .../v1/model/delete_clusters_tags_request.py | 139 + .../v1/model/delete_clusters_tags_response.py | 85 + .../v1/model/delete_conf_req.py | 113 + .../v1/model/delete_conf_request.py | 138 + .../v1/model/delete_conf_response.py | 85 + .../v1/model/delete_ik_thesaurus_request.py | 113 + .../v1/model/delete_ik_thesaurus_response.py | 85 + .../v1/model/delete_snapshot_request.py | 139 + .../v1/model/delete_snapshot_response.py | 85 + .../v1/model/delete_template_req.py | 113 + .../v1/model/delete_template_request.py | 138 + .../v1/model/delete_template_response.py | 85 + .../model/esflavors_versions_flavors_resp.py | 249 + .../v1/model/esflavors_versions_resp.py | 141 + .../v1/model/extend_cluster_grow_req.py | 113 + .../v1/model/extend_cluster_instances_resp.py | 195 + .../v1/model/extend_cluster_req.py | 138 + .../v1/model/get_log_backup_req.py | 165 + .../v1/model/list_actions_request.py | 113 + .../v1/model/list_actions_response.py | 114 + .../v1/model/list_clusters_details_request.py | 141 + .../model/list_clusters_details_response.py | 114 + .../v1/model/list_clusters_tags_request.py | 85 + .../v1/model/list_clusters_tags_response.py | 114 + .../v1/model/list_confs_request.py | 113 + .../v1/model/list_confs_response.py | 114 + .../v1/model/list_flavors_request.py | 85 + .../v1/model/list_flavors_response.py | 114 + .../v1/model/list_pipelines_request.py | 113 + .../v1/model/list_pipelines_response.py | 114 + .../list_snapshot_backups_datastore_resp.py | 141 + .../v1/model/list_snapshot_backups_resp.py | 679 +++ .../v1/model/list_snapshots_request.py | 113 + .../v1/model/list_snapshots_response.py | 114 + .../v1/model/list_templates_request.py | 114 + .../v1/model/list_templates_response.py | 141 + .../v1/model/list_ymls_job_request.py | 113 + .../v1/model/list_ymls_job_response.py | 114 + .../v1/model/list_ymls_request.py | 113 + .../v1/model/list_ymls_response.py | 114 + .../v1/model/load_custom_thesaurus_req.py | 191 + .../v1/model/log_configuration.py | 330 ++ .../huaweicloudsdkcss/v1/model/log_list.py | 168 + .../v1/model/pay_info_body.py | 193 + .../huaweicloudsdkcss/v1/model/period_req.py | 220 + .../huaweicloudsdkcss/v1/model/pipelines.py | 222 + .../v1/model/reset_password_req.py | 113 + .../v1/model/reset_password_request.py | 138 + .../v1/model/reset_password_response.py | 85 + .../v1/model/restart_cluster_request.py | 113 + .../v1/model/restart_cluster_response.py | 114 + .../v1/model/restore_snapshot_req.py | 194 + .../v1/model/restore_snapshot_request.py | 164 + .../v1/model/restore_snapshot_response.py | 85 + .../huaweicloudsdkcss/v1/model/result.py | 168 + .../v1/model/role_extend_grow_req.py | 165 + .../v1/model/role_extend_req.py | 140 + .../v1/model/set_rds_backup_cnf_req.py | 218 + .../huaweicloudsdkcss/v1/model/setting.py | 248 + .../v1/model/show_all_tags_tags_resp.py | 141 + .../model/show_auto_create_policy_request.py | 113 + .../model/show_auto_create_policy_response.py | 276 ++ .../v1/model/show_cluster_tag_request.py | 113 + .../v1/model/show_cluster_tag_response.py | 114 + .../v1/model/show_get_conf_detail_request.py | 139 + .../v1/model/show_get_conf_detail_response.py | 220 + .../v1/model/show_get_log_setting_request.py | 113 + .../v1/model/show_get_log_setting_response.py | 112 + .../v1/model/show_ik_thesaurus_request.py | 113 + .../v1/model/show_ik_thesaurus_response.py | 357 ++ .../v1/model/show_log_backup_request.py | 138 + .../v1/model/show_log_backup_response.py | 112 + .../v1/model/show_tags_tags_resp.py | 141 + .../v1/model/show_vpcep_connection_request.py | 113 + .../model/show_vpcep_connection_response.py | 166 + .../v1/model/start_auto_setting_request.py | 113 + .../v1/model/start_auto_setting_response.py | 85 + .../v1/model/start_connectivity_test_req.py | 113 + .../model/start_connectivity_test_request.py | 138 + .../model/start_connectivity_test_response.py | 114 + .../v1/model/start_kibana_public_req.py | 164 + .../start_kibana_public_req_elb_whitelist.py | 139 + .../v1/model/start_kibana_public_request.py | 138 + .../v1/model/start_kibana_public_response.py | 85 + .../model/start_log_auto_backup_policy_req.py | 113 + .../start_log_auto_backup_policy_request.py | 138 + .../start_log_auto_backup_policy_response.py | 85 + .../v1/model/start_logs_req.py | 165 + .../v1/model/start_logs_request.py | 138 + .../v1/model/start_logs_response.py | 85 + .../v1/model/start_pipeline_req.py | 140 + .../v1/model/start_pipeline_request.py | 138 + .../v1/model/start_pipeline_response.py | 85 + .../v1/model/start_public_whitelist_req.py | 113 + .../model/start_public_whitelist_request.py | 138 + .../model/start_public_whitelist_response.py | 85 + .../v1/model/start_vpecp_req.py | 113 + .../v1/model/start_vpecp_request.py | 138 + .../v1/model/start_vpecp_response.py | 114 + .../stop_log_auto_backup_policy_request.py | 113 + .../stop_log_auto_backup_policy_response.py | 85 + .../v1/model/stop_logs_request.py | 113 + .../v1/model/stop_logs_response.py | 85 + .../v1/model/stop_pipeline_request.py | 113 + .../v1/model/stop_pipeline_response.py | 85 + .../stop_public_kibana_whitelist_request.py | 113 + .../stop_public_kibana_whitelist_response.py | 85 + .../v1/model/stop_public_whitelist_request.py | 113 + .../model/stop_public_whitelist_response.py | 85 + .../v1/model/stop_snapshot_request.py | 113 + .../v1/model/stop_snapshot_response.py | 85 + .../v1/model/stop_vpecp_request.py | 113 + .../v1/model/stop_vpecp_response.py | 114 + .../huaweicloudsdkcss/v1/model/sys_tags.py | 139 + .../v1/model/system_templates.py | 195 + .../huaweicloudsdkcss/v1/model/tag.py | 139 + .../huaweicloudsdkcss/v1/model/tag_list.py | 112 + .../huaweicloudsdkcss/v1/model/tag_req.py | 111 + .../v1/model/update_alter_kibana_request.py | 138 + .../v1/model/update_alter_kibana_response.py | 85 + .../update_batch_clusters_tags_request.py | 138 + .../update_batch_clusters_tags_response.py | 85 + .../v1/model/update_close_kibana_request.py | 113 + .../v1/model/update_close_kibana_response.py | 85 + .../v1/model/update_cluster_name_req.py | 113 + .../v1/model/update_cluster_name_request.py | 138 + .../v1/model/update_cluster_name_response.py | 85 + .../v1/model/update_cnf_request.py | 138 + .../v1/model/update_cnf_response.py | 85 + .../v1/model/update_extend_cluster_request.py | 138 + .../model/update_extend_cluster_response.py | 141 + .../update_extend_instance_storage_request.py | 138 + ...update_extend_instance_storage_response.py | 114 + .../v1/model/update_log_setting_req.py | 165 + .../v1/model/update_log_setting_request.py | 138 + .../v1/model/update_log_setting_response.py | 85 + ...date_ondemand_cluster_to_period_request.py | 138 + ...ate_ondemand_cluster_to_period_response.py | 114 + .../model/update_public_band_width_request.py | 138 + .../update_public_band_width_response.py | 85 + .../update_public_kibana_bandwidth_req.py | 138 + ..._public_kibana_bandwidth_req_band_width.py | 113 + .../update_public_kibana_whitelist_req.py | 113 + .../update_public_kibana_whitelist_request.py | 138 + ...update_public_kibana_whitelist_response.py | 85 + .../v1/model/update_snapshot_setting_req.py | 165 + .../model/update_snapshot_setting_request.py | 138 + .../model/update_snapshot_setting_response.py | 85 + .../v1/model/update_unbind_public_request.py | 113 + .../v1/model/update_unbind_public_response.py | 114 + .../v1/model/update_vpcep_connection_req.py | 139 + .../model/update_vpcep_connection_request.py | 138 + .../model/update_vpcep_connection_response.py | 85 + .../v1/model/update_vpcep_whitelist_req.py | 113 + .../model/update_vpcep_whitelist_request.py | 138 + .../model/update_vpcep_whitelist_response.py | 85 + .../v1/model/update_ymls_req.py | 111 + .../v1/model/update_ymls_req_edit.py | 111 + .../v1/model/update_ymls_req_edit_modify.py | 113 + .../v1/model/update_ymls_request.py | 138 + .../v1/model/update_ymls_response.py | 168 + .../huaweicloudsdkcss/v1/region/__init__.py | 0 .../huaweicloudsdkcss/v1/region/css_region.py | 27 + .../huaweicloudsdkcss/v2/__init__.py | 37 + .../huaweicloudsdkcss/v2/css_async_client.py | 407 ++ .../huaweicloudsdkcss/v2/css_client.py | 405 ++ .../huaweicloudsdkcss/v2/css_exception.py | 19 + .../huaweicloudsdkcss/v2/model/__init__.py | 33 + .../create_cluster_backup_strategy_body.py | 246 + .../v2/model/create_cluster_body.py | 447 ++ .../v2/model/create_cluster_datastore_body.py | 139 + .../v2/model/create_cluster_elb_white_list.py | 140 + .../create_cluster_instance_nics_body.py | 165 + .../create_cluster_instance_volume_body.py | 139 + .../v2/model/create_cluster_load_balance.py | 140 + .../v2/model/create_cluster_public_eip.py | 111 + .../model/create_cluster_public_eip_size.py | 113 + .../v2/model/create_cluster_public_ip_req.py | 188 + ...te_cluster_public_kibana_elb_white_list.py | 139 + .../model/create_cluster_public_kibana_req.py | 137 + .../v2/model/create_cluster_req.py | 111 + .../v2/model/create_cluster_request.py | 112 + .../v2/model/create_cluster_response.py | 141 + .../v2/model/create_cluster_roles_body.py | 189 + .../v2/model/create_cluster_tags_body.py | 139 + .../v2/model/restart_cluster_req.py | 139 + .../v2/model/restart_cluster_request.py | 138 + .../v2/model/restart_cluster_response.py | 85 + .../v2/model/rolling_restart_req.py | 139 + .../v2/model/rolling_restart_request.py | 138 + .../v2/model/rolling_restart_response.py | 85 + .../model/start_auto_create_snapshots_req.py | 192 + .../start_auto_create_snapshots_request.py | 138 + .../start_auto_create_snapshots_response.py | 85 + .../stop_auto_create_snapshots_request.py | 113 + .../stop_auto_create_snapshots_response.py | 85 + .../huaweicloudsdkcss/v2/region/__init__.py | 0 .../huaweicloudsdkcss/v2/region/css_region.py | 27 + huaweicloud-sdk-css/requirements.txt | 1 + huaweicloud-sdk-css/setup.py | 55 + huaweicloud-sdk-css/test-requirements.txt | 5 + huaweicloud-sdk-cts/setup.py | 2 +- huaweicloud-sdk-das/setup.py | 2 +- huaweicloud-sdk-dbss/setup.py | 2 +- .../huaweicloudsdkdcs/v2/__init__.py | 13 + .../huaweicloudsdkdcs/v2/dcs_async_client.py | 254 + .../huaweicloudsdkdcs/v2/dcs_client.py | 254 + .../huaweicloudsdkdcs/v2/model/__init__.py | 13 + .../model/batch_stop_migration_tasks_body.py | 113 + .../batch_stop_migration_tasks_request.py | 112 + .../batch_stop_migration_tasks_response.py | 114 + .../model/config_migration_instance_body.py | 168 + .../create_online_migration_task_body.py | 218 + .../create_online_migration_task_request.py | 112 + .../create_online_migration_task_response.py | 114 + .../model/set_online_migration_task_body.py | 214 + .../set_online_migration_task_request.py | 138 + .../set_online_migration_task_response.py | 168 + .../v2/model/stop_migration_task_result.py | 141 + .../model/stop_migration_task_sync_request.py | 113 + .../stop_migration_task_sync_response.py | 85 + huaweicloud-sdk-dcs/setup.py | 2 +- huaweicloud-sdk-ddm/setup.py | 2 +- huaweicloud-sdk-dds/setup.py | 2 +- huaweicloud-sdk-deh/setup.py | 2 +- .../v1/devstar_async_client.py | 14 +- .../v1/devstar_client.py | 14 +- ...application_dependent_resources_request.py | 60 +- ...pplication_dependent_resources_response.py | 33 +- .../show_repository_by_cloud_ide_request.py | 24 +- huaweicloud-sdk-devstar/setup.py | 2 +- huaweicloud-sdk-dgc/setup.py | 2 +- huaweicloud-sdk-dms/setup.py | 2 +- huaweicloud-sdk-dns/setup.py | 2 +- huaweicloud-sdk-drs/setup.py | 2 +- huaweicloud-sdk-dsc/setup.py | 2 +- huaweicloud-sdk-dws/setup.py | 2 +- huaweicloud-sdk-ecs/setup.py | 2 +- huaweicloud-sdk-eip/setup.py | 2 +- huaweicloud-sdk-elb/setup.py | 2 +- huaweicloud-sdk-eps/setup.py | 2 +- huaweicloud-sdk-evs/setup.py | 2 +- huaweicloud-sdk-frs/setup.py | 2 +- .../v2/model/create_function_request_body.py | 4 +- .../v2/model/create_function_response.py | 4 +- .../model/create_function_version_response.py | 4 +- .../v2/model/import_function_response.py | 4 +- .../v2/model/list_function_result.py | 4 +- .../v2/model/list_function_version_result.py | 4 +- .../v2/model/show_function_code_response.py | 4 +- .../v2/model/show_function_config_response.py | 4 +- .../v2/model/update_function_code_response.py | 4 +- .../update_function_config_request_body.py | 4 +- .../model/update_function_config_response.py | 4 +- huaweicloud-sdk-functiongraph/setup.py | 2 +- .../create_gauss_my_sql_backup_response.py | 33 +- .../v3/model/mysql_instance_info_detail.py | 29 +- huaweicloud-sdk-gaussdb/setup.py | 2 +- .../v3/model/list_instances_result.py | 6 +- huaweicloud-sdk-gaussdbfornosql/setup.py | 2 +- huaweicloud-sdk-gaussdbforopengauss/setup.py | 2 +- huaweicloud-sdk-ges/setup.py | 2 +- huaweicloud-sdk-gsl/setup.py | 2 +- huaweicloud-sdk-hilens/setup.py | 2 +- huaweicloud-sdk-hss/setup.py | 2 +- huaweicloud-sdk-iam/setup.py | 2 +- huaweicloud-sdk-iec/setup.py | 2 +- huaweicloud-sdk-ief/setup.py | 2 +- huaweicloud-sdk-image/setup.py | 2 +- huaweicloud-sdk-imagesearch/setup.py | 2 +- huaweicloud-sdk-ims/setup.py | 2 +- huaweicloud-sdk-iotanalytics/setup.py | 2 +- huaweicloud-sdk-iotda/setup.py | 2 +- huaweicloud-sdk-iotedge/setup.py | 2 +- huaweicloud-sdk-ivs/setup.py | 2 +- huaweicloud-sdk-kafka/setup.py | 2 +- .../huaweicloudsdkkms/v2/kms_async_client.py | 8 +- .../huaweicloudsdkkms/v2/kms_client.py | 8 +- huaweicloud-sdk-kms/setup.py | 2 +- huaweicloud-sdk-kps/setup.py | 2 +- .../huaweicloudsdklive/v1/__init__.py | 1 - .../huaweicloudsdklive/v1/model/__init__.py | 1 - .../v1/model/create_record_rule_response.py | 27 +- .../v1/model/record_callback_config.py | 29 +- .../model/record_callback_config_request.py | 29 +- .../v1/model/record_rule.py | 27 +- .../v1/model/record_rule_request.py | 27 +- .../show_record_callback_config_response.py | 29 +- .../v1/model/show_record_rule_response.py | 27 +- .../v1/model/update_record_rule_response.py | 27 +- .../huaweicloudsdklive/v2/__init__.py | 9 + .../v2/live_async_client.py | 169 +- .../huaweicloudsdklive/v2/live_client.py | 169 +- .../huaweicloudsdklive/v2/model/__init__.py | 9 + .../v2/model/area_detail.py | 165 + .../v2/model/area_time_value.py | 139 + .../v2/model/list_area_detail_request.py | 352 ++ .../v2/model/list_area_detail_response.py | 139 + .../v2/model/list_history_streams_request.py | 8 +- .../v2/model/list_record_data_request.py | 29 +- .../list_transcode_task_count_request.py | 194 + .../list_transcode_task_count_response.py | 139 + .../v2/model/show_stream_count_request.py | 4 +- .../v2/model/show_up_bandwidth_request.py | 4 +- .../huaweicloudsdklive/v2/model/time_value.py | 141 + .../v2/model/transcode_count_data.py | 141 + .../v2/model/transcode_spec_count.py | 141 + huaweicloud-sdk-live/setup.py | 2 +- huaweicloud-sdk-lts/setup.py | 2 +- .../v1/model/qos_participant_info.py | 33 +- .../v1/model/show_web_hook_config_response.py | 4 +- .../update_web_hook_config_status_request.py | 4 +- huaweicloud-sdk-meeting/setup.py | 2 +- huaweicloud-sdk-moderation/setup.py | 2 +- huaweicloud-sdk-mpc/setup.py | 2 +- huaweicloud-sdk-mrs/setup.py | 2 +- huaweicloud-sdk-nat/setup.py | 2 +- huaweicloud-sdk-nlp/setup.py | 2 +- huaweicloud-sdk-ocr/setup.py | 2 +- huaweicloud-sdk-oms/setup.py | 2 +- huaweicloud-sdk-osm/setup.py | 2 +- huaweicloud-sdk-projectman/setup.py | 2 +- huaweicloud-sdk-rabbitmq/setup.py | 2 +- .../huaweicloudsdkrds/v3/__init__.py | 1 - .../huaweicloudsdkrds/v3/model/__init__.py | 1 - .../v3/model/recycle_policy.py | 32 +- .../restore_existing_instance_request_body.py | 6 +- ...e_existing_instance_request_body_source.py | 248 - ...o_existing_instance_request_body_source.py | 33 +- huaweicloud-sdk-rds/setup.py | 2 +- huaweicloud-sdk-res/setup.py | 2 +- huaweicloud-sdk-rms/setup.py | 2 +- huaweicloud-sdk-roma/setup.py | 2 +- huaweicloud-sdk-sa/setup.py | 2 +- huaweicloud-sdk-scm/setup.py | 2 +- huaweicloud-sdk-sdrs/setup.py | 2 +- huaweicloud-sdk-servicestage/setup.py | 2 +- huaweicloud-sdk-sfsturbo/setup.py | 2 +- huaweicloud-sdk-sis/setup.py | 2 +- huaweicloud-sdk-smn/setup.py | 2 +- huaweicloud-sdk-sms/setup.py | 2 +- huaweicloud-sdk-swr/setup.py | 2 +- huaweicloud-sdk-tms/setup.py | 2 +- huaweicloud-sdk-vas/setup.py | 2 +- huaweicloud-sdk-vod/setup.py | 2 +- huaweicloud-sdk-vpc/setup.py | 2 +- huaweicloud-sdk-vpcep/setup.py | 2 +- huaweicloud-sdk-vss/setup.py | 2 +- huaweicloud-sdk-waf/setup.py | 2 +- 480 files changed, 49751 insertions(+), 838 deletions(-) create mode 100644 huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_param.py create mode 100644 huaweicloud-sdk-css/LICENSE create mode 100644 huaweicloud-sdk-css/README_PYPI.md create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_exception.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/actions.py rename huaweicloud-sdk-live/huaweicloudsdklive/v1/model/plan_record_time.py => huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req.py (54%) create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req_template.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/address_and_ports.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/batch_add_or_delete_tag_on_cluster_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip_band_width.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_action_progress.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_datastore.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_failed_reasons.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_instances.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_tags.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/config_list.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/confs.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/connections.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_datastore_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_nics_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_volume_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_tags_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/custom_templates.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_flavors_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_grow_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_instances_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/get_log_backup_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_datastore_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/load_custom_thesaurus_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_list.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pay_info_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/period_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pipelines.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/result.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_grow_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/set_rds_backup_cnf_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/setting.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_all_tags_tags_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_tags_tags_resp.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req_elb_whitelist.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/sys_tags.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/system_templates.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_list.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req_band_width.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit_modify.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_async_client.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_client.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_exception.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_backup_strategy_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_datastore_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_elb_white_list.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_nics_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_volume_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_load_balance.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip_size.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_ip_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_elb_white_list.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_roles_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_tags_body.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_req.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_request.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_response.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/__init__.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py create mode 100644 huaweicloud-sdk-css/requirements.txt create mode 100644 huaweicloud-sdk-css/setup.py create mode 100644 huaweicloud-sdk-css/test-requirements.txt create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_body.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_request.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_response.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/config_migration_instance_body.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_body.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_request.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_response.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_body.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_request.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_response.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_request.py create mode 100644 huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_response.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_detail.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_response.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_request.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_response.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/time_value.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_count_data.py create mode 100644 huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec_count.py delete mode 100644 huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body_source.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 59dce8bdd..da6f47a50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,244 @@ +# 3.0.77 2022-02-10 + +### HuaweiCloud SDK AOM + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `UpdateAlarmRule`: + - Modify the type `string` -> `enum` of the request parameter `statistic` + - The request parameter `alarm_level`, `comparison_operator`, `evaluation_periods`, `metric_name`, `namespace`, `period`, `statistic`, `threshold`, `unit` changed to not required + +### HuaweiCloud SDK BSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `ListRateOnPeriodDetail`: + - Add the request parameter `fee_installment_mode` + - Add the response parameters `installment_official_website_amount`、`installment_period_type`、`installment_official_discount_amount`、`installment_amount` + +### HuaweiCloud SDK CBR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `ListProtectable`: + - Modify the type `string` -> `boolean` of the response parameter `result` + - Modify the type `string` -> `int32` of the response parameter `size` + - Changes of the interface `ShowProtectable`: + - Modify the type `string` -> `boolean` of the response parameter `result` + - Modify the type `string` -> `int32` of the response parameter `size` + +### HuaweiCloud SDK CCE + +- _Features_ + - Support the interface `ShowVersion` +- _Bug Fix_ + - None +- _Change_ + - Remove the response parameters `kind`, `apiVersion`, `metadata`, `spec`, `status` from the interface `CreateAddonInstance` + - Add the response parameters `isStatic`, `privateIPv6IP` to the interface `ListNodes` + - Add the request parameter `isStatic` to the interface `CreateNode` + - Add the response parameters `isStatic`, `privateIPv6IP` to the interface `DeleteNode` + - Add the response parameters `isStatic`, `privateIPv6IP` to the interface `ShowNode` + - Add the response parameters `isStatic`, `privateIPv6IP` to the interface `UpdateNode` + - Changes of the interface `RemoveNode`: + - The request parameter `uid` changed to required + - The response parameter `uid` changed to required + - Changes of the interface `MigrateNode`: + - The request parameter `uid` changed to required + - The response parameter `uid` changed to required + - Add the response parameter `isStatic` to the interface `ListNodePools` + - Add the request parameter `isStatic` to the interface `CreateNodePool` + - Add the response parameter `isStatic` to the interface `DeleteNodePool` + - Add the response parameter `isStatic` to the interface `ShowNodePool` + - Changes of the interface `UpdateNodePool`: + - Add the request parameter `isStatic` + - Add the response parameter `isStatic` + +### HuaweiCloud SDK CSS + +- _Features_ + - Support the following interfaces: + - `UpdateOndemandClusterToPeriod` + - `UpdateClusterName` + - `ResetPassword` + - `StartKibanaPublic` + - `UpdateCloseKibana` + - `UpdateAlterKibana` + - `UpdatePublicKibanaWhitelist` + - `StopPublicKibanaWhitelist` + - `CreateCnf` + - `UpdateCnf` + - `StartPipeline` + - `StopPipeline` + - `AddFavorite` + - `StartConnectivityTest` + - `ListTemplates` + - `ListConfs` + - `ListPipelines` + - `ListActions` + - `ShowGetConfDetail` + - `DeleteConf` + - `DeleteTemplate` + - `StartLogs` + - `StopLogs` + - `ShowGetLogSetting` + - `UpdateLogSetting` + - `StartLogAutoBackupPolicy` + - `StopLogAutoBackupPolicy` + - `CreateLogBackup` + - `ShowLogBackup` + - `CreateBindPublic` + - `UpdateUnbindPublic` + - `UpdatePublicBandWidth` + - `StartPublicWhitelist` + - `StopPublicWhitelist` + - `StartVpecp` + - `StopVpecp` + - `ShowVpcepConnection` + - `UpdateVpcepConnection` + - `UpdateVpcepWhitelist` + - `UpdateYmls` + - `ListYmlsJob` + - `ListYmls` + - `ListClustersDetails` + - `CreateCluster` + - `DeleteCluster` + - `RestartCluster` + - `UpdateExtendCluster` + - `UpdateExtendInstanceStorage` + - `ListFlavors` + - `ShowClusterTag` + - `CreateClustersTags` + - `ListClustersTags` + - `UpdateBatchClustersTags` + - `DeleteClustersTags` + - `ShowIkThesaurus` + - `CreateLoadIkThesaurus` + - `DeleteIkThesaurus` + - `StartAutoSetting` + - `UpdateSnapshotSetting` + - `ShowAutoCreatePolicy` + - `CreateAutoCreatePolicy` + - `CreateSnapshot` + - `ListSnapshots` + - `StopSnapshot` + - `RestoreSnapshot` + - `DeleteSnapshot` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DCS + +- _Features_ + - Support the interfaces `CreateOnlineMigrationTask`, `SetOnlineMigrationTask`, `BatchStopMigrationTasks`, `StopMigrationTaskSync` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DevStar + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `ShowApplicationDependentResources`: + - Add the request parameters `X-Auth-Token`, `limit`, `offset` + - Add the response parameter `count` + +### HuaweiCloud SDK FunctionGraph + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Changes of the interface `CreateFunction`: + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the request parameter `runtime` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `ListFunctions` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `UpdateFunctionCode` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `ShowFunctionCode` + - Changes of the interface `UpdateFunctionConfig`: + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the request parameter `runtime` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `ShowFunctionConfig` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `CreateFunctionVersion` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `ListFunctionVersions` + - Add the enum values `Go1.x` to the request parameter `runtime` to the interface `CreateDependency` + - Add the enum values `Go1.x` to the request parameter `runtime` to the interface `UpdateDependency` + - Add the enum values `Java 8`, `Node.js 6.10`, `Node.js 8.10`, `Node.js 10.16`, `Node.js 12.13`, `Python 2.7`, `Python 3.6`, `Go 1.8`, `Go 1.x`, `PHP 7.3`, Remove the enum values `Python2.7`, `Python3.6`, `Go1.8`, `Java8`, `Node.js6.10`, `Node.js8.10`, `Custom`, `PHP7.3` from the response parameter `runtime` to the interface `ImportFunction` + +### HuaweiCloud SDK GaussDB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the response parameter `alias` to the interface `ShowGaussMySqlInstanceInfo` + - Add the response parameter `job_id` to the interface `CreateGaussMySqlBackup` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Modify the type `int32` -> `string` of the response parameter `port` of the interface `ListInstances` + +### HuaweiCloud SDK Live + +- _Features_ + - Support the interfaces `ListTranscodeTaskCount`, `ListAreaDetail` +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `publish_domain` to the interface `ListRecordData` + - Remove the request parameter `plan_record_time` from the interface `CreateRecordRule` + - Remove the response parameter `plan_record_time` from the interface `ListRecordRules` + - Remove the response parameter `plan_record_time` from the interface `ShowRecordRule` + - Changes of the interface `UpdateRecordRule`: + - Remove the request parameter `plan_record_time` + - Remove the response parameter `plan_record_time` + - Remove the request parameter `on_demand_callback_url` from the interface `CreateRecordCallbackConfig` + - Remove the response parameter `on_demand_callback_url` from the interface `ListRecordCallbackConfigs` + - Remove the response parameter `on_demand_callback_url` from the interface `ShowRecordCallbackConfig` + - Remove the request parameter `on_demand_callback_url` from the interface `UpdateRecordCallbackConfig` + +### HuaweiCloud SDK Meeting + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the response parameter `existQos` to the interface `SearchQosParticipants` + - Add the response parameter `existQos` to the interface `SearchQosParticipantDetail` + +### HuaweiCloud SDK RDS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `restore_all_database` to the interface `RestoreToExistingInstance` + - Remove the request parameter `is_open_recycle_policy` from the interface `StartRecyclePolicy` + # 3.0.76 2022-01-25 ### HuaweiCloud SDK APIG diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 4ae3a8835..f5c584b47 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,244 @@ +# 3.0.77 2022-02-10 + +### HuaweiCloud SDK AOM + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`UpdateAlarmRule`: + - 请求参数`statistic`类型调整 `string` -> `enum` + - 请求参数`alarm_level`、`comparison_operator`、`evaluation_periods`、`metric_name`、`namespace`、`period`、`statistic`、`threshold`、`unit`改为非必填 + +### HuaweiCloud SDK BSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListRateOnPeriodDetail`: + - 新增请求参数 `fee_installment_mode` + - 新增响应参数 `installment_official_website_amount`、`installment_period_type`、`installment_official_discount_amount`、`installment_amount` + +### HuaweiCloud SDK CBR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListProtectable`: + - 响应参数`result`类型调整 `string` -> `boolean` + - 响应参数`size`类型调整 `string` -> `int32` + - 接口`ShowProtectable`: + - 响应参数`result`类型调整 `string` -> `boolean` + - 响应参数`size`类型调整 `string` -> `int32` + +### HuaweiCloud SDK CCE + +- _新增特性_ + - 支持接口`ShowVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateAddonInstance`移除响应参数 `kind`、`apiVersion`、`metadata`、`spec`、`status` + - 接口`ListNodes`新增响应参数 `isStatic`、`privateIPv6IP` + - 接口`CreateNode`新增请求参数 `isStatic` + - 接口`DeleteNode`新增响应参数 `isStatic`、`privateIPv6IP` + - 接口`ShowNode`新增响应参数 `isStatic`、`privateIPv6IP` + - 接口`UpdateNode`新增响应参数 `isStatic`、`privateIPv6IP` + - 接口`RemoveNode`: + - 请求参数`uid`改为必填 + - 响应参数`uid`改为必填 + - 接口`MigrateNode`: + - 请求参数`uid`改为必填 + - 响应参数`uid`改为必填 + - 接口`ListNodePools`新增响应参数 `isStatic` + - 接口`CreateNodePool`新增请求参数 `isStatic` + - 接口`DeleteNodePool`新增响应参数 `isStatic` + - 接口`ShowNodePool`新增响应参数 `isStatic` + - 接口`UpdateNodePool`: + - 新增请求参数 `isStatic` + - 新增响应参数 `isStatic` + +### HuaweiCloud SDK CSS + +- _新增特性_ + - 支持以下接口: + - `UpdateOndemandClusterToPeriod` + - `UpdateClusterName` + - `ResetPassword` + - `StartKibanaPublic` + - `UpdateCloseKibana` + - `UpdateAlterKibana` + - `UpdatePublicKibanaWhitelist` + - `StopPublicKibanaWhitelist` + - `CreateCnf` + - `UpdateCnf` + - `StartPipeline` + - `StopPipeline` + - `AddFavorite` + - `StartConnectivityTest` + - `ListTemplates` + - `ListConfs` + - `ListPipelines` + - `ListActions` + - `ShowGetConfDetail` + - `DeleteConf` + - `DeleteTemplate` + - `StartLogs` + - `StopLogs` + - `ShowGetLogSetting` + - `UpdateLogSetting` + - `StartLogAutoBackupPolicy` + - `StopLogAutoBackupPolicy` + - `CreateLogBackup` + - `ShowLogBackup` + - `CreateBindPublic` + - `UpdateUnbindPublic` + - `UpdatePublicBandWidth` + - `StartPublicWhitelist` + - `StopPublicWhitelist` + - `StartVpecp` + - `StopVpecp` + - `ShowVpcepConnection` + - `UpdateVpcepConnection` + - `UpdateVpcepWhitelist` + - `UpdateYmls` + - `ListYmlsJob` + - `ListYmls` + - `ListClustersDetails` + - `CreateCluster` + - `DeleteCluster` + - `RestartCluster` + - `UpdateExtendCluster` + - `UpdateExtendInstanceStorage` + - `ListFlavors` + - `ShowClusterTag` + - `CreateClustersTags` + - `ListClustersTags` + - `UpdateBatchClustersTags` + - `DeleteClustersTags` + - `ShowIkThesaurus` + - `CreateLoadIkThesaurus` + - `DeleteIkThesaurus` + - `StartAutoSetting` + - `UpdateSnapshotSetting` + - `ShowAutoCreatePolicy` + - `CreateAutoCreatePolicy` + - `CreateSnapshot` + - `ListSnapshots` + - `StopSnapshot` + - `RestoreSnapshot` + - `DeleteSnapshot` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持接口`CreateOnlineMigrationTask`、`SetOnlineMigrationTask`、`BatchStopMigrationTasks`、`StopMigrationTaskSync` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DevStar + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ShowApplicationDependentResources`: + - 新增请求参数 `X-Auth-Token`、`limit`、`offset` + - 新增响应参数 `count` + +### HuaweiCloud SDK FunctionGraph + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateFunction`: + - 请求参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`ListFunctions`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`UpdateFunctionCode`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`ShowFunctionCode`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`UpdateFunctionConfig`: + - 请求参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`ShowFunctionConfig`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`CreateFunctionVersion`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`ListFunctionVersions`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + - 接口`CreateDependency`请求参数`runtime`新增枚举值`Go1.x` + - 接口`UpdateDependency`请求参数`runtime`新增枚举值`Go1.x` + - 接口`ImportFunction`响应参数`runtime`新增枚举值`Java 8`、`Node.js 6.10`、`Node.js 8.10`、`Node.js 10.16`、`Node.js 12.13`、`Python 2.7`、`Python 3.6`、`Go 1.8`、`Go 1.x`、`PHP 7.3`, 移除枚举值`Python2.7`、`Python3.6`、`Go1.8`、`Java8`、`Node.js6.10`、`Node.js8.10`、`Custom`、`PHP7.3` + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ShowGaussMySqlInstanceInfo`新增响应参数`alias` + - 接口`CreateGaussMySqlBackup`新增响应参数`job_id` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListInstances`响应参数`port`类型调整 `int32` -> `string` + +### HuaweiCloud SDK Live + +- _新增特性_ + - 支持接口`ListTranscodeTaskCount`、`ListAreaDetail` +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListRecordData`新增请求参数 `publish_domain` + - 接口`CreateRecordRule`移除请求参数 `plan_record_time` + - 接口`ListRecordRules`移除响应参数 `plan_record_time` + - 接口`ShowRecordRule`移除响应参数 `plan_record_time` + - 接口`UpdateRecordRule`: + - 移除请求参数 `plan_record_time` + - 移除响应参数 `plan_record_time` + - 接口`CreateRecordCallbackConfig`移除请求参数 `on_demand_callback_url` + - 接口`ListRecordCallbackConfigs`移除响应参数 `on_demand_callback_url` + - 接口`ShowRecordCallbackConfig`移除响应参数 `on_demand_callback_url` + - 接口`UpdateRecordCallbackConfig`移除请求参数 `on_demand_callback_url` + +### HuaweiCloud SDK Meeting + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`SearchQosParticipants`新增响应参数 `existQos` + - 接口`SearchQosParticipantDetail`新增响应参数 `existQos` + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`RestoreToExistingInstance`新增请求参数`restore_all_database` + - 接口`StartRecyclePolicy`移除请求参数`is_open_recycle_policy` + # 3.0.76 2022-01-25 ### HuaweiCloud SDK APIG diff --git a/examples/setup.py b/examples/setup.py index af5144940..3a04ab999 100644 --- a/examples/setup.py +++ b/examples/setup.py @@ -21,7 +21,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkexample" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 4d612a8b3..a95a5f39d 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py index 0f9c617fd..a26e4e907 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/__init__.py @@ -99,6 +99,7 @@ from huaweicloudsdkaom.v2.model.show_alarm_rule_response import ShowAlarmRuleRes from huaweicloudsdkaom.v2.model.show_metrics_data_request import ShowMetricsDataRequest from huaweicloudsdkaom.v2.model.show_metrics_data_response import ShowMetricsDataResponse from huaweicloudsdkaom.v2.model.statistic_value import StatisticValue +from huaweicloudsdkaom.v2.model.update_alarm_rule_param import UpdateAlarmRuleParam from huaweicloudsdkaom.v2.model.update_alarm_rule_request import UpdateAlarmRuleRequest from huaweicloudsdkaom.v2.model.update_alarm_rule_response import UpdateAlarmRuleResponse from huaweicloudsdkaom.v2.model.value_data import ValueData diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py index 447b698ea..763793c3b 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/__init__.py @@ -96,6 +96,7 @@ from huaweicloudsdkaom.v2.model.show_alarm_rule_response import ShowAlarmRuleRes from huaweicloudsdkaom.v2.model.show_metrics_data_request import ShowMetricsDataRequest from huaweicloudsdkaom.v2.model.show_metrics_data_response import ShowMetricsDataResponse from huaweicloudsdkaom.v2.model.statistic_value import StatisticValue +from huaweicloudsdkaom.v2.model.update_alarm_rule_param import UpdateAlarmRuleParam from huaweicloudsdkaom.v2.model.update_alarm_rule_request import UpdateAlarmRuleRequest from huaweicloudsdkaom.v2.model.update_alarm_rule_response import UpdateAlarmRuleResponse from huaweicloudsdkaom.v2.model.value_data import ValueData diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_param.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_param.py new file mode 100644 index 000000000..ab8bcf7f1 --- /dev/null +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_param.py @@ -0,0 +1,572 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAlarmRuleParam: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'action_enabled': 'bool', + 'alarm_actions': 'list[str]', + 'alarm_advice': 'str', + 'alarm_description': 'str', + 'alarm_level': 'int', + 'alarm_rule_name': 'str', + 'comparison_operator': 'str', + 'dimensions': 'list[Dimension]', + 'evaluation_periods': 'int', + 'id_turn_on': 'bool', + 'insufficient_data_actions': 'list[str]', + 'metric_name': 'str', + 'namespace': 'str', + 'ok_actions': 'list[str]', + 'period': 'int', + 'statistic': 'str', + 'threshold': 'str', + 'unit': 'str' + } + + attribute_map = { + 'action_enabled': 'action_enabled', + 'alarm_actions': 'alarm_actions', + 'alarm_advice': 'alarm_advice', + 'alarm_description': 'alarm_description', + 'alarm_level': 'alarm_level', + 'alarm_rule_name': 'alarm_rule_name', + 'comparison_operator': 'comparison_operator', + 'dimensions': 'dimensions', + 'evaluation_periods': 'evaluation_periods', + 'id_turn_on': 'id_turn_on', + 'insufficient_data_actions': 'insufficient_data_actions', + 'metric_name': 'metric_name', + 'namespace': 'namespace', + 'ok_actions': 'ok_actions', + 'period': 'period', + 'statistic': 'statistic', + 'threshold': 'threshold', + 'unit': 'unit' + } + + def __init__(self, action_enabled=None, alarm_actions=None, alarm_advice=None, alarm_description=None, alarm_level=None, alarm_rule_name=None, comparison_operator=None, dimensions=None, evaluation_periods=None, id_turn_on=None, insufficient_data_actions=None, metric_name=None, namespace=None, ok_actions=None, period=None, statistic=None, threshold=None, unit=None): + """UpdateAlarmRuleParam - a model defined in huaweicloud sdk""" + + + + self._action_enabled = None + self._alarm_actions = None + self._alarm_advice = None + self._alarm_description = None + self._alarm_level = None + self._alarm_rule_name = None + self._comparison_operator = None + self._dimensions = None + self._evaluation_periods = None + self._id_turn_on = None + self._insufficient_data_actions = None + self._metric_name = None + self._namespace = None + self._ok_actions = None + self._period = None + self._statistic = None + self._threshold = None + self._unit = None + self.discriminator = None + + if action_enabled is not None: + self.action_enabled = action_enabled + if alarm_actions is not None: + self.alarm_actions = alarm_actions + if alarm_advice is not None: + self.alarm_advice = alarm_advice + if alarm_description is not None: + self.alarm_description = alarm_description + if alarm_level is not None: + self.alarm_level = alarm_level + self.alarm_rule_name = alarm_rule_name + if comparison_operator is not None: + self.comparison_operator = comparison_operator + if dimensions is not None: + self.dimensions = dimensions + if evaluation_periods is not None: + self.evaluation_periods = evaluation_periods + if id_turn_on is not None: + self.id_turn_on = id_turn_on + if insufficient_data_actions is not None: + self.insufficient_data_actions = insufficient_data_actions + if metric_name is not None: + self.metric_name = metric_name + if namespace is not None: + self.namespace = namespace + if ok_actions is not None: + self.ok_actions = ok_actions + if period is not None: + self.period = period + if statistic is not None: + self.statistic = statistic + if threshold is not None: + self.threshold = threshold + if unit is not None: + self.unit = unit + + @property + def action_enabled(self): + """Gets the action_enabled of this UpdateAlarmRuleParam. + + 是否启用通知。 + + :return: The action_enabled of this UpdateAlarmRuleParam. + :rtype: bool + """ + return self._action_enabled + + @action_enabled.setter + def action_enabled(self, action_enabled): + """Sets the action_enabled of this UpdateAlarmRuleParam. + + 是否启用通知。 + + :param action_enabled: The action_enabled of this UpdateAlarmRuleParam. + :type: bool + """ + self._action_enabled = action_enabled + + @property + def alarm_actions(self): + """Gets the alarm_actions of this UpdateAlarmRuleParam. + + 告警状态通知列表。 + + :return: The alarm_actions of this UpdateAlarmRuleParam. + :rtype: list[str] + """ + return self._alarm_actions + + @alarm_actions.setter + def alarm_actions(self, alarm_actions): + """Sets the alarm_actions of this UpdateAlarmRuleParam. + + 告警状态通知列表。 + + :param alarm_actions: The alarm_actions of this UpdateAlarmRuleParam. + :type: list[str] + """ + self._alarm_actions = alarm_actions + + @property + def alarm_advice(self): + """Gets the alarm_advice of this UpdateAlarmRuleParam. + + 告警清除建议。 + + :return: The alarm_advice of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._alarm_advice + + @alarm_advice.setter + def alarm_advice(self, alarm_advice): + """Sets the alarm_advice of this UpdateAlarmRuleParam. + + 告警清除建议。 + + :param alarm_advice: The alarm_advice of this UpdateAlarmRuleParam. + :type: str + """ + self._alarm_advice = alarm_advice + + @property + def alarm_description(self): + """Gets the alarm_description of this UpdateAlarmRuleParam. + + 阈值规则描述。 + + :return: The alarm_description of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._alarm_description + + @alarm_description.setter + def alarm_description(self, alarm_description): + """Sets the alarm_description of this UpdateAlarmRuleParam. + + 阈值规则描述。 + + :param alarm_description: The alarm_description of this UpdateAlarmRuleParam. + :type: str + """ + self._alarm_description = alarm_description + + @property + def alarm_level(self): + """Gets the alarm_level of this UpdateAlarmRuleParam. + + 告警级别。1:紧急,2:重要,3:一般,4:提示。 + + :return: The alarm_level of this UpdateAlarmRuleParam. + :rtype: int + """ + return self._alarm_level + + @alarm_level.setter + def alarm_level(self, alarm_level): + """Sets the alarm_level of this UpdateAlarmRuleParam. + + 告警级别。1:紧急,2:重要,3:一般,4:提示。 + + :param alarm_level: The alarm_level of this UpdateAlarmRuleParam. + :type: int + """ + self._alarm_level = alarm_level + + @property + def alarm_rule_name(self): + """Gets the alarm_rule_name of this UpdateAlarmRuleParam. + + 阈值规则名称。 + + :return: The alarm_rule_name of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._alarm_rule_name + + @alarm_rule_name.setter + def alarm_rule_name(self, alarm_rule_name): + """Sets the alarm_rule_name of this UpdateAlarmRuleParam. + + 阈值规则名称。 + + :param alarm_rule_name: The alarm_rule_name of this UpdateAlarmRuleParam. + :type: str + """ + self._alarm_rule_name = alarm_rule_name + + @property + def comparison_operator(self): + """Gets the comparison_operator of this UpdateAlarmRuleParam. + + 超限条件。 + + :return: The comparison_operator of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._comparison_operator + + @comparison_operator.setter + def comparison_operator(self, comparison_operator): + """Sets the comparison_operator of this UpdateAlarmRuleParam. + + 超限条件。 + + :param comparison_operator: The comparison_operator of this UpdateAlarmRuleParam. + :type: str + """ + self._comparison_operator = comparison_operator + + @property + def dimensions(self): + """Gets the dimensions of this UpdateAlarmRuleParam. + + 时间序列维度。 + + :return: The dimensions of this UpdateAlarmRuleParam. + :rtype: list[Dimension] + """ + return self._dimensions + + @dimensions.setter + def dimensions(self, dimensions): + """Sets the dimensions of this UpdateAlarmRuleParam. + + 时间序列维度。 + + :param dimensions: The dimensions of this UpdateAlarmRuleParam. + :type: list[Dimension] + """ + self._dimensions = dimensions + + @property + def evaluation_periods(self): + """Gets the evaluation_periods of this UpdateAlarmRuleParam. + + 间隔周期。 + + :return: The evaluation_periods of this UpdateAlarmRuleParam. + :rtype: int + """ + return self._evaluation_periods + + @evaluation_periods.setter + def evaluation_periods(self, evaluation_periods): + """Sets the evaluation_periods of this UpdateAlarmRuleParam. + + 间隔周期。 + + :param evaluation_periods: The evaluation_periods of this UpdateAlarmRuleParam. + :type: int + """ + self._evaluation_periods = evaluation_periods + + @property + def id_turn_on(self): + """Gets the id_turn_on of this UpdateAlarmRuleParam. + + 阈值规则是否启用。 + + :return: The id_turn_on of this UpdateAlarmRuleParam. + :rtype: bool + """ + return self._id_turn_on + + @id_turn_on.setter + def id_turn_on(self, id_turn_on): + """Sets the id_turn_on of this UpdateAlarmRuleParam. + + 阈值规则是否启用。 + + :param id_turn_on: The id_turn_on of this UpdateAlarmRuleParam. + :type: bool + """ + self._id_turn_on = id_turn_on + + @property + def insufficient_data_actions(self): + """Gets the insufficient_data_actions of this UpdateAlarmRuleParam. + + 数据不足通知列表。 + + :return: The insufficient_data_actions of this UpdateAlarmRuleParam. + :rtype: list[str] + """ + return self._insufficient_data_actions + + @insufficient_data_actions.setter + def insufficient_data_actions(self, insufficient_data_actions): + """Sets the insufficient_data_actions of this UpdateAlarmRuleParam. + + 数据不足通知列表。 + + :param insufficient_data_actions: The insufficient_data_actions of this UpdateAlarmRuleParam. + :type: list[str] + """ + self._insufficient_data_actions = insufficient_data_actions + + @property + def metric_name(self): + """Gets the metric_name of this UpdateAlarmRuleParam. + + 时间序列名称。名称长度取值范围为1~255个字符。 + + :return: The metric_name of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._metric_name + + @metric_name.setter + def metric_name(self, metric_name): + """Sets the metric_name of this UpdateAlarmRuleParam. + + 时间序列名称。名称长度取值范围为1~255个字符。 + + :param metric_name: The metric_name of this UpdateAlarmRuleParam. + :type: str + """ + self._metric_name = metric_name + + @property + def namespace(self): + """Gets the namespace of this UpdateAlarmRuleParam. + + 时间序列命名空间。 + + :return: The namespace of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this UpdateAlarmRuleParam. + + 时间序列命名空间。 + + :param namespace: The namespace of this UpdateAlarmRuleParam. + :type: str + """ + self._namespace = namespace + + @property + def ok_actions(self): + """Gets the ok_actions of this UpdateAlarmRuleParam. + + 正常状态通知列表。 + + :return: The ok_actions of this UpdateAlarmRuleParam. + :rtype: list[str] + """ + return self._ok_actions + + @ok_actions.setter + def ok_actions(self, ok_actions): + """Sets the ok_actions of this UpdateAlarmRuleParam. + + 正常状态通知列表。 + + :param ok_actions: The ok_actions of this UpdateAlarmRuleParam. + :type: list[str] + """ + self._ok_actions = ok_actions + + @property + def period(self): + """Gets the period of this UpdateAlarmRuleParam. + + 统计周期。 + + :return: The period of this UpdateAlarmRuleParam. + :rtype: int + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this UpdateAlarmRuleParam. + + 统计周期。 + + :param period: The period of this UpdateAlarmRuleParam. + :type: int + """ + self._period = period + + @property + def statistic(self): + """Gets the statistic of this UpdateAlarmRuleParam. + + 统计方式。 + + :return: The statistic of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._statistic + + @statistic.setter + def statistic(self, statistic): + """Sets the statistic of this UpdateAlarmRuleParam. + + 统计方式。 + + :param statistic: The statistic of this UpdateAlarmRuleParam. + :type: str + """ + self._statistic = statistic + + @property + def threshold(self): + """Gets the threshold of this UpdateAlarmRuleParam. + + 超限值。 + + :return: The threshold of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._threshold + + @threshold.setter + def threshold(self, threshold): + """Sets the threshold of this UpdateAlarmRuleParam. + + 超限值。 + + :param threshold: The threshold of this UpdateAlarmRuleParam. + :type: str + """ + self._threshold = threshold + + @property + def unit(self): + """Gets the unit of this UpdateAlarmRuleParam. + + 时间序列单位 + + :return: The unit of this UpdateAlarmRuleParam. + :rtype: str + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this UpdateAlarmRuleParam. + + 时间序列单位 + + :param unit: The unit of this UpdateAlarmRuleParam. + :type: 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, UpdateAlarmRuleParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_request.py b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_request.py index 2a0116f87..5e74040c0 100644 --- a/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_request.py +++ b/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/update_alarm_rule_request.py @@ -22,7 +22,7 @@ class UpdateAlarmRuleRequest: sensitive_list = [] openapi_types = { - 'body': 'AlarmRuleParam' + 'body': 'UpdateAlarmRuleParam' } attribute_map = { @@ -46,7 +46,7 @@ class UpdateAlarmRuleRequest: :return: The body of this UpdateAlarmRuleRequest. - :rtype: AlarmRuleParam + :rtype: UpdateAlarmRuleParam """ return self._body @@ -56,7 +56,7 @@ class UpdateAlarmRuleRequest: :param body: The body of this UpdateAlarmRuleRequest. - :type: AlarmRuleParam + :type: UpdateAlarmRuleParam """ self._body = body diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 377484790..108de0ced 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 8a523dd77..709555beb 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index bbccc5339..ad7a9aa99 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 7b87394bd..913bbeb81 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 47fa58b44..2d950bc21 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index ff795ebfd..18c05e66b 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py index 56ea03101..288e36470 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py @@ -156,7 +156,7 @@ class DemandProductInfo: def resource_spec(self): """Gets the resource_spec of this DemandProductInfo. - 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP + 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云硬盘:SATA:普通IO云硬盘SAS:高IO云硬盘GPSSD:通用型SSD云硬盘SSD:超高IO云硬盘 :return: The resource_spec of this DemandProductInfo. :rtype: str @@ -167,7 +167,7 @@ class DemandProductInfo: def resource_spec(self, resource_spec): """Sets the resource_spec of this DemandProductInfo. - 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP + 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云硬盘:SATA:普通IO云硬盘SAS:高IO云硬盘GPSSD:通用型SSD云硬盘SSD:超高IO云硬盘 :param resource_spec: The resource_spec of this DemandProductInfo. :type: str @@ -244,7 +244,7 @@ class DemandProductInfo: def size_measure_id(self): """Gets the size_measure_id of this DemandProductInfo. - 资源容量度量标识,枚举值如下:15:Mbps(购买带宽时使用) 17:GB(购买云硬盘时使用)14:个(次) 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。 + 资源容量度量标识,枚举值如下: 15:Mbps(购买带宽时使用)17:GB(购买云硬盘时使用)14:个(次) 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。 :return: The size_measure_id of this DemandProductInfo. :rtype: int @@ -255,7 +255,7 @@ class DemandProductInfo: def size_measure_id(self, size_measure_id): """Sets the size_measure_id of this DemandProductInfo. - 资源容量度量标识,枚举值如下:15:Mbps(购买带宽时使用) 17:GB(购买云硬盘时使用)14:个(次) 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。 + 资源容量度量标识,枚举值如下: 15:Mbps(购买带宽时使用)17:GB(购买云硬盘时使用)14:个(次) 线性产品时该参数不能为空。线性产品为包括硬盘,带宽等在订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小。 :param size_measure_id: The size_measure_id of this DemandProductInfo. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_fee_records_request.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_fee_records_request.py index bfd81a6e8..76ee592b2 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_fee_records_request.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_fee_records_request.py @@ -272,7 +272,7 @@ class ListCustomerBillsFeeRecordsRequest: def bill_type(self): """Gets the bill_type of this ListCustomerBillsFeeRecordsRequest. - 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this ListCustomerBillsFeeRecordsRequest. :rtype: int @@ -283,7 +283,7 @@ class ListCustomerBillsFeeRecordsRequest: def bill_type(self, bill_type): """Sets the bill_type of this ListCustomerBillsFeeRecordsRequest. - 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this ListCustomerBillsFeeRecordsRequest. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_monthly_break_down_request.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_monthly_break_down_request.py index 8359d991c..52df7331d 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_monthly_break_down_request.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customer_bills_monthly_break_down_request.py @@ -240,7 +240,7 @@ class ListCustomerBillsMonthlyBreakDownRequest: def bill_type(self): """Gets the bill_type of this ListCustomerBillsMonthlyBreakDownRequest. - 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this ListCustomerBillsMonthlyBreakDownRequest. :rtype: int @@ -251,7 +251,7 @@ class ListCustomerBillsMonthlyBreakDownRequest: def bill_type(self, bill_type): """Sets the bill_type of this ListCustomerBillsMonthlyBreakDownRequest. - 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this ListCustomerBillsMonthlyBreakDownRequest. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_records_request.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_records_request.py index b085a7cba..8e7d44318 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_records_request.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_customerself_resource_records_request.py @@ -228,7 +228,7 @@ class ListCustomerselfResourceRecordsRequest: def bill_type(self): """Gets the bill_type of this ListCustomerselfResourceRecordsRequest. - 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this ListCustomerselfResourceRecordsRequest. :rtype: int @@ -239,7 +239,7 @@ class ListCustomerselfResourceRecordsRequest: def bill_type(self, bill_type): """Sets the bill_type of this ListCustomerselfResourceRecordsRequest. - 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this ListCustomerselfResourceRecordsRequest. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_sub_customer_bill_detail_request.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_sub_customer_bill_detail_request.py index e62c137aa..e6e20fd81 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_sub_customer_bill_detail_request.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_sub_customer_bill_detail_request.py @@ -254,7 +254,7 @@ class ListSubCustomerBillDetailRequest: def bill_detail_type(self): """Gets the bill_detail_type of this ListSubCustomerBillDetailRequest. - 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费20:退款-变更 + 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_detail_type of this ListSubCustomerBillDetailRequest. :rtype: int @@ -265,7 +265,7 @@ class ListSubCustomerBillDetailRequest: def bill_detail_type(self, bill_detail_type): """Sets the bill_detail_type of this ListSubCustomerBillDetailRequest. - 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费20:退款-变更 + 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_detail_type: The bill_detail_type of this ListSubCustomerBillDetailRequest. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py index 21375b325..97097f1bc 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py @@ -438,7 +438,7 @@ class MonthlyBillRecord: def bill_type(self): """Gets the bill_type of this MonthlyBillRecord. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this MonthlyBillRecord. :rtype: int @@ -449,7 +449,7 @@ class MonthlyBillRecord: def bill_type(self, bill_type): """Sets the bill_type of this MonthlyBillRecord. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this MonthlyBillRecord. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py index b424823fb..d531e2df9 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py @@ -218,7 +218,7 @@ class MonthlyBillRes: def bill_type(self): """Gets the bill_type of this MonthlyBillRes. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this MonthlyBillRes. :rtype: int @@ -229,7 +229,7 @@ class MonthlyBillRes: def bill_type(self, bill_type): """Sets the bill_type of this MonthlyBillRes. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this MonthlyBillRes. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/nvl_cost_analysed_bill_detail.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/nvl_cost_analysed_bill_detail.py index eaa838e50..d4a45f069 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/nvl_cost_analysed_bill_detail.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/nvl_cost_analysed_bill_detail.py @@ -263,7 +263,7 @@ class NvlCostAnalysedBillDetail: def bill_type(self): """Gets the bill_type of this NvlCostAnalysedBillDetail. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this NvlCostAnalysedBillDetail. :rtype: int @@ -274,7 +274,7 @@ class NvlCostAnalysedBillDetail: def bill_type(self, bill_type): """Sets the bill_type of this NvlCostAnalysedBillDetail. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this NvlCostAnalysedBillDetail. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py index 0765c2fcc..ce7cedb0a 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py @@ -23,28 +23,38 @@ class OfficialWebsiteRatingResult: openapi_types = { 'official_website_amount': 'float', + 'installment_official_website_amount': 'str', + 'installment_period_type': 'int', 'measure_id': 'int', 'product_rating_results': 'list[PeriodProductOfficialRatingResult]' } attribute_map = { 'official_website_amount': 'official_website_amount', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_period_type': 'installment_period_type', 'measure_id': 'measure_id', 'product_rating_results': 'product_rating_results' } - def __init__(self, official_website_amount=None, measure_id=None, product_rating_results=None): + def __init__(self, official_website_amount=None, installment_official_website_amount=None, installment_period_type=None, measure_id=None, product_rating_results=None): """OfficialWebsiteRatingResult - a model defined in huaweicloud sdk""" self._official_website_amount = None + self._installment_official_website_amount = None + self._installment_period_type = None self._measure_id = None self._product_rating_results = None self.discriminator = None if official_website_amount is not None: self.official_website_amount = official_website_amount + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type if measure_id is not None: self.measure_id = measure_id if product_rating_results is not None: @@ -72,6 +82,50 @@ class OfficialWebsiteRatingResult: """ self._official_website_amount = official_website_amount + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this OfficialWebsiteRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :return: The installment_official_website_amount of this OfficialWebsiteRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this OfficialWebsiteRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :param installment_official_website_amount: The installment_official_website_amount of this OfficialWebsiteRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this OfficialWebsiteRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :return: The installment_period_type of this OfficialWebsiteRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this OfficialWebsiteRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :param installment_period_type: The installment_period_type of this OfficialWebsiteRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + @property def measure_id(self): """Gets the measure_id of this OfficialWebsiteRatingResult. diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py index 0b8d5b4f4..e48321a86 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py @@ -30,7 +30,11 @@ class OptionalDiscountRatingResult: 'discount_type': 'int', 'discount_name': 'str', 'best_offer': 'int', - 'product_rating_results': 'list[PeriodProductRatingResult]' + 'product_rating_results': 'list[PeriodProductRatingResult]', + 'installment_official_website_amount': 'str', + 'installment_official_discount_amount': 'str', + 'installment_amount': 'str', + 'installment_period_type': 'int' } attribute_map = { @@ -42,10 +46,14 @@ class OptionalDiscountRatingResult: 'discount_type': 'discount_type', 'discount_name': 'discount_name', 'best_offer': 'best_offer', - 'product_rating_results': 'product_rating_results' + 'product_rating_results': 'product_rating_results', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_official_discount_amount': 'installment_official_discount_amount', + 'installment_amount': 'installment_amount', + 'installment_period_type': 'installment_period_type' } - def __init__(self, discount_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None, discount_type=None, discount_name=None, best_offer=None, product_rating_results=None): + def __init__(self, discount_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None, discount_type=None, discount_name=None, best_offer=None, product_rating_results=None, installment_official_website_amount=None, installment_official_discount_amount=None, installment_amount=None, installment_period_type=None): """OptionalDiscountRatingResult - a model defined in huaweicloud sdk""" @@ -59,6 +67,10 @@ class OptionalDiscountRatingResult: self._discount_name = None self._best_offer = None self._product_rating_results = None + self._installment_official_website_amount = None + self._installment_official_discount_amount = None + self._installment_amount = None + self._installment_period_type = None self.discriminator = None if discount_id is not None: @@ -79,6 +91,14 @@ class OptionalDiscountRatingResult: self.best_offer = best_offer if product_rating_results is not None: self.product_rating_results = product_rating_results + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_official_discount_amount is not None: + self.installment_official_discount_amount = installment_official_discount_amount + if installment_amount is not None: + self.installment_amount = installment_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type @property def discount_id(self): @@ -278,6 +298,94 @@ class OptionalDiscountRatingResult: """ self._product_rating_results = product_rating_results + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this OptionalDiscountRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :return: The installment_official_website_amount of this OptionalDiscountRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this OptionalDiscountRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :param installment_official_website_amount: The installment_official_website_amount of this OptionalDiscountRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_official_discount_amount(self): + """Gets the installment_official_discount_amount of this OptionalDiscountRatingResult. + + 分期金额的折扣价。 说明: 暂只支持IES产品。 + + :return: The installment_official_discount_amount of this OptionalDiscountRatingResult. + :rtype: str + """ + return self._installment_official_discount_amount + + @installment_official_discount_amount.setter + def installment_official_discount_amount(self, installment_official_discount_amount): + """Sets the installment_official_discount_amount of this OptionalDiscountRatingResult. + + 分期金额的折扣价。 说明: 暂只支持IES产品。 + + :param installment_official_discount_amount: The installment_official_discount_amount of this OptionalDiscountRatingResult. + :type: str + """ + self._installment_official_discount_amount = installment_official_discount_amount + + @property + def installment_amount(self): + """Gets the installment_amount of this OptionalDiscountRatingResult. + + 分期金额的成交价。 说明: 分期金额的成交价=分期金额的官网价-分期金额的折扣价。暂只支持IES产品。 + + :return: The installment_amount of this OptionalDiscountRatingResult. + :rtype: str + """ + return self._installment_amount + + @installment_amount.setter + def installment_amount(self, installment_amount): + """Sets the installment_amount of this OptionalDiscountRatingResult. + + 分期金额的成交价。 说明: 分期金额的成交价=分期金额的官网价-分期金额的折扣价。暂只支持IES产品。 + + :param installment_amount: The installment_amount of this OptionalDiscountRatingResult. + :type: str + """ + self._installment_amount = installment_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this OptionalDiscountRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :return: The installment_period_type of this OptionalDiscountRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this OptionalDiscountRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :param installment_period_type: The installment_period_type of this OptionalDiscountRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py index 194cfe2af..c3ecd0521 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_info.py @@ -32,7 +32,8 @@ class PeriodProductInfo: 'size_measure_id': 'int', 'period_type': 'int', 'period_num': 'int', - 'subscription_num': 'int' + 'subscription_num': 'int', + 'fee_installment_mode': 'str' } attribute_map = { @@ -46,10 +47,11 @@ class PeriodProductInfo: 'size_measure_id': 'size_measure_id', 'period_type': 'period_type', 'period_num': 'period_num', - 'subscription_num': 'subscription_num' + 'subscription_num': 'subscription_num', + 'fee_installment_mode': 'fee_installment_mode' } - def __init__(self, id=None, cloud_service_type=None, resource_type=None, resource_spec=None, region=None, available_zone=None, resource_size=None, size_measure_id=None, period_type=None, period_num=None, subscription_num=None): + def __init__(self, id=None, cloud_service_type=None, resource_type=None, resource_spec=None, region=None, available_zone=None, resource_size=None, size_measure_id=None, period_type=None, period_num=None, subscription_num=None, fee_installment_mode=None): """PeriodProductInfo - a model defined in huaweicloud sdk""" @@ -65,6 +67,7 @@ class PeriodProductInfo: self._period_type = None self._period_num = None self._subscription_num = None + self._fee_installment_mode = None self.discriminator = None self.id = id @@ -81,6 +84,8 @@ class PeriodProductInfo: self.period_type = period_type self.period_num = period_num self.subscription_num = subscription_num + if fee_installment_mode is not None: + self.fee_installment_mode = fee_installment_mode @property def id(self): @@ -152,7 +157,7 @@ class PeriodProductInfo: def resource_spec(self): """Gets the resource_spec of this PeriodProductInfo. - 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP + 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云数据库:云数据库的资源规格信息,您可以调用查询数据库规格接口获取。 分布式缓存服务:分布式缓存服务的资源规格信息,您可以调用查询产品规格接口获取。 :return: The resource_spec of this PeriodProductInfo. :rtype: str @@ -163,7 +168,7 @@ class PeriodProductInfo: def resource_spec(self, resource_spec): """Sets the resource_spec of this PeriodProductInfo. - 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP + 云服务类型的资源规格,部分云服务类型和资源规格举例如下: 弹性云服务器:根据操作系统类型在云服务器规格的ID后添加“.win”或“.linux”,例如“s2.small.1.linux”。云服务器规格的ID字段,您可以调用查询规格详情和规格扩展信息列表接口获取。 带宽:12_bgp:动态BGP按流量计费带宽12_sbgp:静态BGP按流量计费带宽19_bgp:动态BGP按带宽计费带宽19_sbgp:静态BGP按带宽计费带宽19_share:按带宽计费共享带宽 IP:5_bgp:动态BGP公网IP5_sbgp:静态BGP公网IP 云数据库:云数据库的资源规格信息,您可以调用查询数据库规格接口获取。 分布式缓存服务:分布式缓存服务的资源规格信息,您可以调用查询产品规格接口获取。 :param resource_spec: The resource_spec of this PeriodProductInfo. :type: str @@ -324,6 +329,28 @@ class PeriodProductInfo: """ self._subscription_num = subscription_num + @property + def fee_installment_mode(self): + """Gets the fee_installment_mode of this PeriodProductInfo. + + 费用分期模式。 HALF_PAY:半付ZERO_PAY:零付NA:不支持费用分期模式 说明: 此参数不传则默认为空,效果等同于“NA:不支持费用分期模式”。暂只支持IES产品。 + + :return: The fee_installment_mode of this PeriodProductInfo. + :rtype: str + """ + return self._fee_installment_mode + + @fee_installment_mode.setter + def fee_installment_mode(self, fee_installment_mode): + """Sets the fee_installment_mode of this PeriodProductInfo. + + 费用分期模式。 HALF_PAY:半付ZERO_PAY:零付NA:不支持费用分期模式 说明: 此参数不传则默认为空,效果等同于“NA:不支持费用分期模式”。暂只支持IES产品。 + + :param fee_installment_mode: The fee_installment_mode of this PeriodProductInfo. + :type: str + """ + self._fee_installment_mode = fee_installment_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py index 77b075ab2..d6688f9d6 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py @@ -25,17 +25,21 @@ class PeriodProductOfficialRatingResult: 'id': 'str', 'product_id': 'str', 'official_website_amount': 'float', - 'measure_id': 'int' + 'measure_id': 'int', + 'installment_official_website_amount': 'str', + 'installment_period_type': 'int' } attribute_map = { 'id': 'id', 'product_id': 'product_id', 'official_website_amount': 'official_website_amount', - 'measure_id': 'measure_id' + 'measure_id': 'measure_id', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_period_type': 'installment_period_type' } - def __init__(self, id=None, product_id=None, official_website_amount=None, measure_id=None): + def __init__(self, id=None, product_id=None, official_website_amount=None, measure_id=None, installment_official_website_amount=None, installment_period_type=None): """PeriodProductOfficialRatingResult - a model defined in huaweicloud sdk""" @@ -44,6 +48,8 @@ class PeriodProductOfficialRatingResult: self._product_id = None self._official_website_amount = None self._measure_id = None + self._installment_official_website_amount = None + self._installment_period_type = None self.discriminator = None if id is not None: @@ -54,6 +60,10 @@ class PeriodProductOfficialRatingResult: self.official_website_amount = official_website_amount if measure_id is not None: self.measure_id = measure_id + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type @property def id(self): @@ -143,6 +153,50 @@ class PeriodProductOfficialRatingResult: """ self._measure_id = measure_id + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this PeriodProductOfficialRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :return: The installment_official_website_amount of this PeriodProductOfficialRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this PeriodProductOfficialRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :param installment_official_website_amount: The installment_official_website_amount of this PeriodProductOfficialRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this PeriodProductOfficialRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :return: The installment_period_type of this PeriodProductOfficialRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this PeriodProductOfficialRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :param installment_period_type: The installment_period_type of this PeriodProductOfficialRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py index d66ac7361..00281f955 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py @@ -27,7 +27,11 @@ class PeriodProductRatingResult: 'amount': 'float', 'official_website_amount': 'float', 'discount_amount': 'float', - 'measure_id': 'int' + 'measure_id': 'int', + 'installment_official_website_amount': 'str', + 'installment_official_discount_amount': 'str', + 'installment_amount': 'str', + 'installment_period_type': 'int' } attribute_map = { @@ -36,10 +40,14 @@ class PeriodProductRatingResult: 'amount': 'amount', 'official_website_amount': 'official_website_amount', 'discount_amount': 'discount_amount', - 'measure_id': 'measure_id' + 'measure_id': 'measure_id', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_official_discount_amount': 'installment_official_discount_amount', + 'installment_amount': 'installment_amount', + 'installment_period_type': 'installment_period_type' } - def __init__(self, id=None, product_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None): + def __init__(self, id=None, product_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None, installment_official_website_amount=None, installment_official_discount_amount=None, installment_amount=None, installment_period_type=None): """PeriodProductRatingResult - a model defined in huaweicloud sdk""" @@ -50,6 +58,10 @@ class PeriodProductRatingResult: self._official_website_amount = None self._discount_amount = None self._measure_id = None + self._installment_official_website_amount = None + self._installment_official_discount_amount = None + self._installment_amount = None + self._installment_period_type = None self.discriminator = None if id is not None: @@ -64,6 +76,14 @@ class PeriodProductRatingResult: self.discount_amount = discount_amount if measure_id is not None: self.measure_id = measure_id + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_official_discount_amount is not None: + self.installment_official_discount_amount = installment_official_discount_amount + if installment_amount is not None: + self.installment_amount = installment_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type @property def id(self): @@ -197,6 +217,94 @@ class PeriodProductRatingResult: """ self._measure_id = measure_id + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this PeriodProductRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :return: The installment_official_website_amount of this PeriodProductRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this PeriodProductRatingResult. + + 分期金额的官网价。 说明: 暂只支持IES产品。 + + :param installment_official_website_amount: The installment_official_website_amount of this PeriodProductRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_official_discount_amount(self): + """Gets the installment_official_discount_amount of this PeriodProductRatingResult. + + 分期金额的折扣价。 说明: 暂只支持IES产品。 + + :return: The installment_official_discount_amount of this PeriodProductRatingResult. + :rtype: str + """ + return self._installment_official_discount_amount + + @installment_official_discount_amount.setter + def installment_official_discount_amount(self, installment_official_discount_amount): + """Sets the installment_official_discount_amount of this PeriodProductRatingResult. + + 分期金额的折扣价。 说明: 暂只支持IES产品。 + + :param installment_official_discount_amount: The installment_official_discount_amount of this PeriodProductRatingResult. + :type: str + """ + self._installment_official_discount_amount = installment_official_discount_amount + + @property + def installment_amount(self): + """Gets the installment_amount of this PeriodProductRatingResult. + + 分期金额的成交价。 说明: 分期金额的成交价=分期金额的官网价-分期金额的折扣价。暂只支持IES产品。 + + :return: The installment_amount of this PeriodProductRatingResult. + :rtype: str + """ + return self._installment_amount + + @installment_amount.setter + def installment_amount(self, installment_amount): + """Sets the installment_amount of this PeriodProductRatingResult. + + 分期金额的成交价。 说明: 分期金额的成交价=分期金额的官网价-分期金额的折扣价。暂只支持IES产品。 + + :param installment_amount: The installment_amount of this PeriodProductRatingResult. + :type: str + """ + self._installment_amount = installment_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this PeriodProductRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :return: The installment_period_type of this PeriodProductRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this PeriodProductRatingResult. + + 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 + + :param installment_period_type: The installment_period_type of this PeriodProductRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_res_records_detail_req.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_res_records_detail_req.py index debd62217..b69900ffb 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_res_records_detail_req.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_res_records_detail_req.py @@ -240,7 +240,7 @@ class QueryResRecordsDetailReq: def bill_type(self): """Gets the bill_type of this QueryResRecordsDetailReq. - 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this QueryResRecordsDetailReq. :rtype: int @@ -251,7 +251,7 @@ class QueryResRecordsDetailReq: def bill_type(self, bill_type): """Sets the bill_type of this QueryResRecordsDetailReq. - 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this QueryResRecordsDetailReq. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py index 296d1dedc..93bc66435 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py @@ -291,7 +291,7 @@ class ResFeeRecordV2: def bill_type(self): """Gets the bill_type of this ResFeeRecordV2. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :return: The bill_type of this ResFeeRecordV2. :rtype: int @@ -302,7 +302,7 @@ class ResFeeRecordV2: def bill_type(self, bill_type): """Sets the bill_type of this ResFeeRecordV2. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 :param bill_type: The bill_type of this ResFeeRecordV2. :type: int diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_monthly_bill_detail.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_monthly_bill_detail.py index 042fb9163..adcb49bd1 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_monthly_bill_detail.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_monthly_bill_detail.py @@ -405,7 +405,7 @@ class SubCustomerMonthlyBillDetail: def bill_detail_type(self): """Gets the bill_detail_type of this SubCustomerMonthlyBillDetail. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费18:消费-按月付费20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 :return: The bill_detail_type of this SubCustomerMonthlyBillDetail. :rtype: int @@ -416,7 +416,7 @@ class SubCustomerMonthlyBillDetail: def bill_detail_type(self, bill_detail_type): """Sets the bill_detail_type of this SubCustomerMonthlyBillDetail. - 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 + 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费18:消费-按月付费20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 :param bill_detail_type: The bill_detail_type of this SubCustomerMonthlyBillDetail. :type: int diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index b7113ab31..71971d4ce 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py index d38fda7a1..172dacb8a 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py @@ -23,28 +23,38 @@ class OfficialWebsiteRatingResult: openapi_types = { 'official_website_amount': 'decimal.Decimal', + 'installment_official_website_amount': 'str', + 'installment_period_type': 'int', 'measure_id': 'int', 'product_rating_results': 'list[PeriodProductOfficialRatingResult]' } attribute_map = { 'official_website_amount': 'official_website_amount', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_period_type': 'installment_period_type', 'measure_id': 'measure_id', 'product_rating_results': 'product_rating_results' } - def __init__(self, official_website_amount=None, measure_id=None, product_rating_results=None): + def __init__(self, official_website_amount=None, installment_official_website_amount=None, installment_period_type=None, measure_id=None, product_rating_results=None): """OfficialWebsiteRatingResult - a model defined in huaweicloud sdk""" self._official_website_amount = None + self._installment_official_website_amount = None + self._installment_period_type = None self._measure_id = None self._product_rating_results = None self.discriminator = None if official_website_amount is not None: self.official_website_amount = official_website_amount + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type if measure_id is not None: self.measure_id = measure_id if product_rating_results is not None: @@ -72,6 +82,50 @@ class OfficialWebsiteRatingResult: """ self._official_website_amount = official_website_amount + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this OfficialWebsiteRatingResult. + + |参数名称:分期金额的官网价| + + :return: The installment_official_website_amount of this OfficialWebsiteRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this OfficialWebsiteRatingResult. + + |参数名称:分期金额的官网价| + + :param installment_official_website_amount: The installment_official_website_amount of this OfficialWebsiteRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this OfficialWebsiteRatingResult. + + |参数名称:分期付款的周期类型2:月| + + :return: The installment_period_type of this OfficialWebsiteRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this OfficialWebsiteRatingResult. + + |参数名称:分期付款的周期类型2:月| + + :param installment_period_type: The installment_period_type of this OfficialWebsiteRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + @property def measure_id(self): """Gets the measure_id of this OfficialWebsiteRatingResult. diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py index e93cb2fd7..5081628a2 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py @@ -30,7 +30,11 @@ class OptionalDiscountRatingResult: 'discount_type': 'int', 'discount_name': 'str', 'best_offer': 'int', - 'product_rating_results': 'list[PeriodProductRatingResult]' + 'product_rating_results': 'list[PeriodProductRatingResult]', + 'installment_official_website_amount': 'str', + 'installment_official_discount_amount': 'str', + 'installment_amount': 'str', + 'installment_period_type': 'int' } attribute_map = { @@ -42,10 +46,14 @@ class OptionalDiscountRatingResult: 'discount_type': 'discount_type', 'discount_name': 'discount_name', 'best_offer': 'best_offer', - 'product_rating_results': 'product_rating_results' + 'product_rating_results': 'product_rating_results', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_official_discount_amount': 'installment_official_discount_amount', + 'installment_amount': 'installment_amount', + 'installment_period_type': 'installment_period_type' } - def __init__(self, discount_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None, discount_type=None, discount_name=None, best_offer=None, product_rating_results=None): + def __init__(self, discount_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None, discount_type=None, discount_name=None, best_offer=None, product_rating_results=None, installment_official_website_amount=None, installment_official_discount_amount=None, installment_amount=None, installment_period_type=None): """OptionalDiscountRatingResult - a model defined in huaweicloud sdk""" @@ -59,6 +67,10 @@ class OptionalDiscountRatingResult: self._discount_name = None self._best_offer = None self._product_rating_results = None + self._installment_official_website_amount = None + self._installment_official_discount_amount = None + self._installment_amount = None + self._installment_period_type = None self.discriminator = None if discount_id is not None: @@ -79,6 +91,14 @@ class OptionalDiscountRatingResult: self.best_offer = best_offer if product_rating_results is not None: self.product_rating_results = product_rating_results + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_official_discount_amount is not None: + self.installment_official_discount_amount = installment_official_discount_amount + if installment_amount is not None: + self.installment_amount = installment_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type @property def discount_id(self): @@ -278,6 +298,94 @@ class OptionalDiscountRatingResult: """ self._product_rating_results = product_rating_results + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this OptionalDiscountRatingResult. + + |参数名称:分期金额的官网价| |参数约束及描述:分期金额的官网价| + + :return: The installment_official_website_amount of this OptionalDiscountRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this OptionalDiscountRatingResult. + + |参数名称:分期金额的官网价| |参数约束及描述:分期金额的官网价| + + :param installment_official_website_amount: The installment_official_website_amount of this OptionalDiscountRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_official_discount_amount(self): + """Gets the installment_official_discount_amount of this OptionalDiscountRatingResult. + + |参数名称:分期金额的折扣价| |参数约束及描述:分期金额的折扣价| + + :return: The installment_official_discount_amount of this OptionalDiscountRatingResult. + :rtype: str + """ + return self._installment_official_discount_amount + + @installment_official_discount_amount.setter + def installment_official_discount_amount(self, installment_official_discount_amount): + """Sets the installment_official_discount_amount of this OptionalDiscountRatingResult. + + |参数名称:分期金额的折扣价| |参数约束及描述:分期金额的折扣价| + + :param installment_official_discount_amount: The installment_official_discount_amount of this OptionalDiscountRatingResult. + :type: str + """ + self._installment_official_discount_amount = installment_official_discount_amount + + @property + def installment_amount(self): + """Gets the installment_amount of this OptionalDiscountRatingResult. + + |参数名称:分期金额的成交价| |参数约束及描述:分期金额的成交价,installment_amount=installment_official_website_amount-installment_discount_amount| + + :return: The installment_amount of this OptionalDiscountRatingResult. + :rtype: str + """ + return self._installment_amount + + @installment_amount.setter + def installment_amount(self, installment_amount): + """Sets the installment_amount of this OptionalDiscountRatingResult. + + |参数名称:分期金额的成交价| |参数约束及描述:分期金额的成交价,installment_amount=installment_official_website_amount-installment_discount_amount| + + :param installment_amount: The installment_amount of this OptionalDiscountRatingResult. + :type: str + """ + self._installment_amount = installment_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this OptionalDiscountRatingResult. + + |参数名称:分期付款的周期类型| |参数约束及描述:2:月| + + :return: The installment_period_type of this OptionalDiscountRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this OptionalDiscountRatingResult. + + |参数名称:分期付款的周期类型| |参数约束及描述:2:月| + + :param installment_period_type: The installment_period_type of this OptionalDiscountRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_info.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_info.py index a5d586786..56f83be3c 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_info.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_info.py @@ -32,7 +32,8 @@ class PeriodProductInfo: 'size_measure_id': 'int', 'period_type': 'int', 'period_num': 'int', - 'subscription_num': 'int' + 'subscription_num': 'int', + 'fee_installment_mode': 'str' } attribute_map = { @@ -46,10 +47,11 @@ class PeriodProductInfo: 'size_measure_id': 'size_measure_id', 'period_type': 'period_type', 'period_num': 'period_num', - 'subscription_num': 'subscription_num' + 'subscription_num': 'subscription_num', + 'fee_installment_mode': 'fee_installment_mode' } - def __init__(self, id=None, cloud_service_type=None, resource_type=None, resource_spec=None, region=None, available_zone=None, resource_size=None, size_measure_id=None, period_type=None, period_num=None, subscription_num=None): + def __init__(self, id=None, cloud_service_type=None, resource_type=None, resource_spec=None, region=None, available_zone=None, resource_size=None, size_measure_id=None, period_type=None, period_num=None, subscription_num=None, fee_installment_mode=None): """PeriodProductInfo - a model defined in huaweicloud sdk""" @@ -65,6 +67,7 @@ class PeriodProductInfo: self._period_type = None self._period_num = None self._subscription_num = None + self._fee_installment_mode = None self.discriminator = None self.id = id @@ -81,6 +84,8 @@ class PeriodProductInfo: self.period_type = period_type self.period_num = period_num self.subscription_num = subscription_num + if fee_installment_mode is not None: + self.fee_installment_mode = fee_installment_mode @property def id(self): @@ -324,6 +329,28 @@ class PeriodProductInfo: """ self._subscription_num = subscription_num + @property + def fee_installment_mode(self): + """Gets the fee_installment_mode of this PeriodProductInfo. + + |参数名称:费用分期模式| |参数约束及描述:HALF_PAY:半付;ZERO_PAY:零付;NA:不支持费用分期模式;不传默认为空,效果等同于NA| + + :return: The fee_installment_mode of this PeriodProductInfo. + :rtype: str + """ + return self._fee_installment_mode + + @fee_installment_mode.setter + def fee_installment_mode(self, fee_installment_mode): + """Sets the fee_installment_mode of this PeriodProductInfo. + + |参数名称:费用分期模式| |参数约束及描述:HALF_PAY:半付;ZERO_PAY:零付;NA:不支持费用分期模式;不传默认为空,效果等同于NA| + + :param fee_installment_mode: The fee_installment_mode of this PeriodProductInfo. + :type: str + """ + self._fee_installment_mode = fee_installment_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py index 324f2fb73..9c7939536 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py @@ -25,17 +25,21 @@ class PeriodProductOfficialRatingResult: 'id': 'str', 'product_id': 'str', 'official_website_amount': 'decimal.Decimal', - 'measure_id': 'int' + 'measure_id': 'int', + 'installment_official_website_amount': 'str', + 'installment_period_type': 'int' } attribute_map = { 'id': 'id', 'product_id': 'product_id', 'official_website_amount': 'official_website_amount', - 'measure_id': 'measure_id' + 'measure_id': 'measure_id', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_period_type': 'installment_period_type' } - def __init__(self, id=None, product_id=None, official_website_amount=None, measure_id=None): + def __init__(self, id=None, product_id=None, official_website_amount=None, measure_id=None, installment_official_website_amount=None, installment_period_type=None): """PeriodProductOfficialRatingResult - a model defined in huaweicloud sdk""" @@ -44,6 +48,8 @@ class PeriodProductOfficialRatingResult: self._product_id = None self._official_website_amount = None self._measure_id = None + self._installment_official_website_amount = None + self._installment_period_type = None self.discriminator = None if id is not None: @@ -54,6 +60,10 @@ class PeriodProductOfficialRatingResult: self.official_website_amount = official_website_amount if measure_id is not None: self.measure_id = measure_id + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type @property def id(self): @@ -143,6 +153,50 @@ class PeriodProductOfficialRatingResult: """ self._measure_id = measure_id + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this PeriodProductOfficialRatingResult. + + |参数名称:分期金额的官网价| |参数约束及描述:分期金额的官网价| + + :return: The installment_official_website_amount of this PeriodProductOfficialRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this PeriodProductOfficialRatingResult. + + |参数名称:分期金额的官网价| |参数约束及描述:分期金额的官网价| + + :param installment_official_website_amount: The installment_official_website_amount of this PeriodProductOfficialRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this PeriodProductOfficialRatingResult. + + |参数名称:分期付款的周期类型2:月| + + :return: The installment_period_type of this PeriodProductOfficialRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this PeriodProductOfficialRatingResult. + + |参数名称:分期付款的周期类型2:月| + + :param installment_period_type: The installment_period_type of this PeriodProductOfficialRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py index 10e179de3..b224078dd 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py @@ -27,7 +27,11 @@ class PeriodProductRatingResult: 'amount': 'decimal.Decimal', 'official_website_amount': 'decimal.Decimal', 'discount_amount': 'decimal.Decimal', - 'measure_id': 'int' + 'measure_id': 'int', + 'installment_official_website_amount': 'str', + 'installment_official_discount_amount': 'str', + 'installment_amount': 'str', + 'installment_period_type': 'int' } attribute_map = { @@ -36,10 +40,14 @@ class PeriodProductRatingResult: 'amount': 'amount', 'official_website_amount': 'official_website_amount', 'discount_amount': 'discount_amount', - 'measure_id': 'measure_id' + 'measure_id': 'measure_id', + 'installment_official_website_amount': 'installment_official_website_amount', + 'installment_official_discount_amount': 'installment_official_discount_amount', + 'installment_amount': 'installment_amount', + 'installment_period_type': 'installment_period_type' } - def __init__(self, id=None, product_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None): + def __init__(self, id=None, product_id=None, amount=None, official_website_amount=None, discount_amount=None, measure_id=None, installment_official_website_amount=None, installment_official_discount_amount=None, installment_amount=None, installment_period_type=None): """PeriodProductRatingResult - a model defined in huaweicloud sdk""" @@ -50,6 +58,10 @@ class PeriodProductRatingResult: self._official_website_amount = None self._discount_amount = None self._measure_id = None + self._installment_official_website_amount = None + self._installment_official_discount_amount = None + self._installment_amount = None + self._installment_period_type = None self.discriminator = None if id is not None: @@ -64,6 +76,14 @@ class PeriodProductRatingResult: self.discount_amount = discount_amount if measure_id is not None: self.measure_id = measure_id + if installment_official_website_amount is not None: + self.installment_official_website_amount = installment_official_website_amount + if installment_official_discount_amount is not None: + self.installment_official_discount_amount = installment_official_discount_amount + if installment_amount is not None: + self.installment_amount = installment_amount + if installment_period_type is not None: + self.installment_period_type = installment_period_type @property def id(self): @@ -197,6 +217,94 @@ class PeriodProductRatingResult: """ self._measure_id = measure_id + @property + def installment_official_website_amount(self): + """Gets the installment_official_website_amount of this PeriodProductRatingResult. + + |参数名称:分期金额的官网价| |参数约束及描述:分期金额的官网价| + + :return: The installment_official_website_amount of this PeriodProductRatingResult. + :rtype: str + """ + return self._installment_official_website_amount + + @installment_official_website_amount.setter + def installment_official_website_amount(self, installment_official_website_amount): + """Sets the installment_official_website_amount of this PeriodProductRatingResult. + + |参数名称:分期金额的官网价| |参数约束及描述:分期金额的官网价| + + :param installment_official_website_amount: The installment_official_website_amount of this PeriodProductRatingResult. + :type: str + """ + self._installment_official_website_amount = installment_official_website_amount + + @property + def installment_official_discount_amount(self): + """Gets the installment_official_discount_amount of this PeriodProductRatingResult. + + |参数名称:分期金额的折扣价| |参数约束及描述:分期金额的折扣价| + + :return: The installment_official_discount_amount of this PeriodProductRatingResult. + :rtype: str + """ + return self._installment_official_discount_amount + + @installment_official_discount_amount.setter + def installment_official_discount_amount(self, installment_official_discount_amount): + """Sets the installment_official_discount_amount of this PeriodProductRatingResult. + + |参数名称:分期金额的折扣价| |参数约束及描述:分期金额的折扣价| + + :param installment_official_discount_amount: The installment_official_discount_amount of this PeriodProductRatingResult. + :type: str + """ + self._installment_official_discount_amount = installment_official_discount_amount + + @property + def installment_amount(self): + """Gets the installment_amount of this PeriodProductRatingResult. + + |参数名称:分期金额的成交价| |参数约束及描述:分期金额的成交价,installment_amount=installment_official_website_amount-installment_discount_amount| + + :return: The installment_amount of this PeriodProductRatingResult. + :rtype: str + """ + return self._installment_amount + + @installment_amount.setter + def installment_amount(self, installment_amount): + """Sets the installment_amount of this PeriodProductRatingResult. + + |参数名称:分期金额的成交价| |参数约束及描述:分期金额的成交价,installment_amount=installment_official_website_amount-installment_discount_amount| + + :param installment_amount: The installment_amount of this PeriodProductRatingResult. + :type: str + """ + self._installment_amount = installment_amount + + @property + def installment_period_type(self): + """Gets the installment_period_type of this PeriodProductRatingResult. + + |参数名称:分期付款的周期类型| |参数约束及描述:2:月| + + :return: The installment_period_type of this PeriodProductRatingResult. + :rtype: int + """ + return self._installment_period_type + + @installment_period_type.setter + def installment_period_type(self, installment_period_type): + """Sets the installment_period_type of this PeriodProductRatingResult. + + |参数名称:分期付款的周期类型| |参数约束及描述:2:月| + + :param installment_period_type: The installment_period_type of this PeriodProductRatingResult. + :type: int + """ + self._installment_period_type = installment_period_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 8628ff6a6..d9c009917 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 11106cc6d..ef51ab82c 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 767be3e07..70c30c42c 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectable_result.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectable_result.py index b5e97e25e..93e6375e4 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectable_result.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectable_result.py @@ -24,7 +24,7 @@ class ProtectableResult: openapi_types = { 'code': 'str', 'reason': 'str', - 'result': 'str', + 'result': 'bool', 'vault': 'VaultGet' } @@ -105,7 +105,7 @@ class ProtectableResult: 是否可备份 :return: The result of this ProtectableResult. - :rtype: str + :rtype: bool """ return self._result @@ -116,7 +116,7 @@ class ProtectableResult: 是否可备份 :param result: The result of this ProtectableResult. - :type: str + :type: bool """ self._result = result diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectables_resp.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectables_resp.py index 3e2288781..5ce2a91af 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectables_resp.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/protectables_resp.py @@ -27,7 +27,7 @@ class ProtectablesResp: 'id': 'str', 'name': 'str', 'protectable': 'ProtectableResult', - 'size': 'str', + 'size': 'int', 'status': 'str', 'type': 'str' } @@ -185,7 +185,7 @@ class ProtectablesResp: 大小,单位GB :return: The size of this ProtectablesResp. - :rtype: str + :rtype: int """ return self._size @@ -196,7 +196,7 @@ class ProtectablesResp: 大小,单位GB :param size: The size of this ProtectablesResp. - :type: str + :type: int """ self._size = size diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py index 7beb0e05a..1d2d2cd44 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_create.py @@ -26,7 +26,7 @@ class VaultCreate: 'billing': 'BillingCreate', 'description': 'str', 'name': 'str', - 'resources': 'list[ResourceCreate]', + 'resources': 'list[ResourceResp]', 'tags': 'list[Tag]', 'enterprise_project_id': 'str', 'auto_bind': 'bool', @@ -175,7 +175,7 @@ class VaultCreate: 绑定的备份资源,未在创建时绑定资源填[] :return: The resources of this VaultCreate. - :rtype: list[ResourceCreate] + :rtype: list[ResourceResp] """ return self._resources @@ -186,7 +186,7 @@ class VaultCreate: 绑定的备份资源,未在创建时绑定资源填[] :param resources: The resources of this VaultCreate. - :type: list[ResourceCreate] + :type: list[ResourceResp] """ self._resources = resources diff --git a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py index 61715b859..ffce55803 100644 --- a/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py +++ b/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/vault_get.py @@ -28,7 +28,7 @@ class VaultGet: 'name': 'str', 'project_id': 'str', 'provider_id': 'str', - 'resources': 'list[CheckpointResourceResp]', + 'resources': 'list[ResourceResp]', 'tags': 'list[TagsResp]', 'enterprise_project_id': 'str', 'auto_bind': 'bool', @@ -254,7 +254,7 @@ class VaultGet: 资源 :return: The resources of this VaultGet. - :rtype: list[CheckpointResourceResp] + :rtype: list[ResourceResp] """ return self._resources @@ -265,7 +265,7 @@ class VaultGet: 资源 :param resources: The resources of this VaultGet. - :type: list[CheckpointResourceResp] + :type: list[ResourceResp] """ self._resources = resources diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 697297f5e..4b355b105 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 64e96991a..eda00db41 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_extend_param.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_extend_param.py index 8fd6d625b..e1b6246e0 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_extend_param.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_node_extend_param.py @@ -86,7 +86,7 @@ class MigrateNodeExtendParam: def docker_lvm_config_override(self): """Gets the docker_lvm_config_override of this MigrateNodeExtendParam. - Docker数据盘配置项。 待迁移节点的磁盘类型须和创建时一致(即“DockerLVMConfigOverride”参数中“diskType”字段的值须和创建时一致),请确保单次接口调用时批量选择的节点磁盘类型一致。 默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV:用户空间的大小,示例格式:vgpaas/20%VG - userPath:用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG + Docker数据盘配置项。 待迁移节点的磁盘类型须和创建时一致(即“DockerLVMConfigOverride”参数中“diskType”字段的值须和创建时一致),请确保单次接口调用时批量选择的节点磁盘类型一致。 默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV(可选):用户空间的大小,示例格式:vgpaas/20%VG - userPath(可选):用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG :return: The docker_lvm_config_override of this MigrateNodeExtendParam. :rtype: str @@ -97,7 +97,7 @@ class MigrateNodeExtendParam: def docker_lvm_config_override(self, docker_lvm_config_override): """Sets the docker_lvm_config_override of this MigrateNodeExtendParam. - Docker数据盘配置项。 待迁移节点的磁盘类型须和创建时一致(即“DockerLVMConfigOverride”参数中“diskType”字段的值须和创建时一致),请确保单次接口调用时批量选择的节点磁盘类型一致。 默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV:用户空间的大小,示例格式:vgpaas/20%VG - userPath:用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG + Docker数据盘配置项。 待迁移节点的磁盘类型须和创建时一致(即“DockerLVMConfigOverride”参数中“diskType”字段的值须和创建时一致),请确保单次接口调用时批量选择的节点磁盘类型一致。 默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV(可选):用户空间的大小,示例格式:vgpaas/20%VG - userPath(可选):用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG :param docker_lvm_config_override: The docker_lvm_config_override of this MigrateNodeExtendParam. :type: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_nodes_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_nodes_spec.py index 24753fb21..bf5036be3 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_nodes_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/migrate_nodes_spec.py @@ -50,8 +50,7 @@ class MigrateNodesSpec: if extend_param is not None: self.extend_param = extend_param self.login = login - if nodes is not None: - self.nodes = nodes + self.nodes = nodes @property def os(self): diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_extend_param.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_extend_param.py index 83cb52249..ffb2294f6 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_extend_param.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_extend_param.py @@ -305,7 +305,7 @@ class NodeExtendParam: def docker_lvm_config_override(self): """Gets the docker_lvm_config_override of this NodeExtendParam. - Docker数据盘配置项。默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV:用户空间的大小,示例格式:vgpaas/20%VG - userPath:用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG + Docker数据盘配置项。默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV(可选):用户空间的大小,示例格式:vgpaas/20%VG - userPath(可选):用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG :return: The docker_lvm_config_override of this NodeExtendParam. :rtype: str @@ -316,7 +316,7 @@ class NodeExtendParam: def docker_lvm_config_override(self, docker_lvm_config_override): """Sets the docker_lvm_config_override of this NodeExtendParam. - Docker数据盘配置项。默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV:用户空间的大小,示例格式:vgpaas/20%VG - userPath:用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG + Docker数据盘配置项。默认配置示例如下: ``` \"DockerLVMConfigOverride\":\"dockerThinpool=vgpaas/90%VG;kubernetesLV=vgpaas/10%VG;diskType=evs;lvType=linear\" ``` 包含如下字段: - userLV(可选):用户空间的大小,示例格式:vgpaas/20%VG - userPath(可选):用户空间挂载路径,示例格式:/home/wqt-test - diskType:磁盘类型,目前只有evs、hdd和ssd三种格式 - lvType:逻辑卷的类型,目前支持linear和striped两种,示例格式:striped - dockerThinpool:Docker盘的空间大小,示例格式:vgpaas/60%VG - kubernetesLV:Kubelet空间大小,示例格式:vgpaas/20%VG :param docker_lvm_config_override: The docker_lvm_config_override of this NodeExtendParam. :type: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_item.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_item.py index 190b5ed7e..de66731c7 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_item.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_item.py @@ -37,8 +37,7 @@ class NodeItem: self._uid = None self.discriminator = None - if uid is not None: - self.uid = uid + self.uid = uid @property def uid(self): diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_condition.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_condition.py index 98951db64..8a3405cfa 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_condition.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_condition.py @@ -69,7 +69,7 @@ class NodePoolCondition: def type(self): """Gets the type of this NodePoolCondition. - Condition类型。 + Condition类型,当前支持类型如下 - \"Scalable\":节点池实际的可扩容状态,如果状态为\"False\"时则不会再次触发节点池扩容行为。 - \"QuotaInsufficient\":节点池扩容依赖的配额不足,影响节点池可扩容状态。 - \"ResourceInsufficient\":节点池扩容依赖的资源不足,影响节点池可扩容状态。 - \"UnexpectedError\":节点池非预期扩容失败,影响节点池可扩容状态。 - \"LockedByOrder\":包周期节点池被订单锁定,此时Reason为待支付订单ID。 - \"Error\":节点池错误,通常由于删除失败触发。 :return: The type of this NodePoolCondition. :rtype: str @@ -80,7 +80,7 @@ class NodePoolCondition: def type(self, type): """Sets the type of this NodePoolCondition. - Condition类型。 + Condition类型,当前支持类型如下 - \"Scalable\":节点池实际的可扩容状态,如果状态为\"False\"时则不会再次触发节点池扩容行为。 - \"QuotaInsufficient\":节点池扩容依赖的配额不足,影响节点池可扩容状态。 - \"ResourceInsufficient\":节点池扩容依赖的资源不足,影响节点池可扩容状态。 - \"UnexpectedError\":节点池非预期扩容失败,影响节点池可扩容状态。 - \"LockedByOrder\":包周期节点池被订单锁定,此时Reason为待支付订单ID。 - \"Error\":节点池错误,通常由于删除失败触发。 :param type: The type of this NodePoolCondition. :type: str @@ -91,7 +91,7 @@ class NodePoolCondition: def status(self): """Gets the status of this NodePoolCondition. - Condition当前状态。 + Condition当前状态,取值如下 - \"True\" - \"False\" :return: The status of this NodePoolCondition. :rtype: str @@ -102,7 +102,7 @@ class NodePoolCondition: def status(self, status): """Sets the status of this NodePoolCondition. - Condition当前状态。 + Condition当前状态,取值如下 - \"True\" - \"False\" :param status: The status of this NodePoolCondition. :type: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py index bc5f31664..4f61f583d 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py @@ -113,7 +113,7 @@ class NodePoolStatus: def deleting_node(self): """Gets the deleting_node of this NodePoolStatus. - 当前节点池中删除中或者删除失败的节点数量。 + 当前节点池中删除中的节点数量。 :return: The deleting_node of this NodePoolStatus. :rtype: int @@ -124,7 +124,7 @@ class NodePoolStatus: def deleting_node(self, deleting_node): """Sets the deleting_node of this NodePoolStatus. - 当前节点池中删除中或者删除失败的节点数量。 + 当前节点池中删除中的节点数量。 :param deleting_node: The deleting_node of this NodePoolStatus. :type: int @@ -135,7 +135,7 @@ class NodePoolStatus: def phase(self): """Gets the phase of this NodePoolStatus. - 节点池状态,为空时节点池处于可用状态。 - Synchronizing:伸缩中 - Synchronized:节点池更新失败时会被置于此状态 - SoldOut:节点资源售罄 - Deleting:删除中 - Error:错误 + 节点池状态。 - 空值:可用(节点池当前节点数已达到预期,且无伸缩中的节点) - Synchronizing:伸缩中(节点池当前节点数未达到预期,且无伸缩中的节点) - Synchronized:伸缩等待中(节点池当前节点数未达到预期,或者存在伸缩中的节点) - SoldOut:节点池当前不可扩容(兼容字段,标记节点池资源售罄、资源配额不足等不可扩容状态) > 上述节点池状态已废弃,仅兼容保留,不建议使用,替代感知方式如下: > - 节点池扩缩状态:可通过currentNode/creatingNode/deletingNode节点状态统计信息,精确感知当前节点池扩缩状态。 > - 节点池可扩容状态:可通过conditions感知节点池详细状态,其中\"Scalable\"可替代SoldOut语义。 - Deleting:删除中 - Error:错误 :return: The phase of this NodePoolStatus. :rtype: str @@ -146,7 +146,7 @@ class NodePoolStatus: def phase(self, phase): """Sets the phase of this NodePoolStatus. - 节点池状态,为空时节点池处于可用状态。 - Synchronizing:伸缩中 - Synchronized:节点池更新失败时会被置于此状态 - SoldOut:节点资源售罄 - Deleting:删除中 - Error:错误 + 节点池状态。 - 空值:可用(节点池当前节点数已达到预期,且无伸缩中的节点) - Synchronizing:伸缩中(节点池当前节点数未达到预期,且无伸缩中的节点) - Synchronized:伸缩等待中(节点池当前节点数未达到预期,或者存在伸缩中的节点) - SoldOut:节点池当前不可扩容(兼容字段,标记节点池资源售罄、资源配额不足等不可扩容状态) > 上述节点池状态已废弃,仅兼容保留,不建议使用,替代感知方式如下: > - 节点池扩缩状态:可通过currentNode/creatingNode/deletingNode节点状态统计信息,精确感知当前节点池扩缩状态。 > - 节点池可扩容状态:可通过conditions感知节点池详细状态,其中\"Scalable\"可替代SoldOut语义。 - Deleting:删除中 - Error:错误 :param phase: The phase of this NodePoolStatus. :type: str @@ -179,7 +179,7 @@ class NodePoolStatus: def conditions(self): """Gets the conditions of this NodePoolStatus. - 节点池每次扩容的动作结果记录,用于确定节点池是否还能继续扩容。 + 节点池当前详细状态列表,详情参见Condition类型定义。 :return: The conditions of this NodePoolStatus. :rtype: list[NodePoolCondition] @@ -190,7 +190,7 @@ class NodePoolStatus: def conditions(self, conditions): """Sets the conditions of this NodePoolStatus. - 节点池每次扩容的动作结果记录,用于确定节点池是否还能继续扩容。 + 节点池当前详细状态列表,详情参见Condition类型定义。 :param conditions: The conditions of this NodePoolStatus. :type: list[NodePoolCondition] diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_nodes_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_nodes_spec.py index 844604c17..4991414e1 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_nodes_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/remove_nodes_spec.py @@ -41,8 +41,7 @@ class RemoveNodesSpec: self.discriminator = None self.login = login - if nodes is not None: - self.nodes = nodes + self.nodes = nodes @property def login(self): diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/storage_groups.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/storage_groups.py index 43131a300..5cac4ad8c 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/storage_groups.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/storage_groups.py @@ -25,7 +25,7 @@ class StorageGroups: 'name': 'str', 'cce_managed': 'bool', 'selector_names': 'list[str]', - 'virtual_spaces': 'VirtualSpace' + 'virtual_spaces': 'list[VirtualSpace]' } attribute_map = { @@ -122,9 +122,10 @@ class StorageGroups: def virtual_spaces(self): """Gets the virtual_spaces of this StorageGroups. + group中空间配置的详细管理。 :return: The virtual_spaces of this StorageGroups. - :rtype: VirtualSpace + :rtype: list[VirtualSpace] """ return self._virtual_spaces @@ -132,9 +133,10 @@ class StorageGroups: def virtual_spaces(self, virtual_spaces): """Sets the virtual_spaces of this StorageGroups. + group中空间配置的详细管理。 :param virtual_spaces: The virtual_spaces of this StorageGroups. - :type: VirtualSpace + :type: list[VirtualSpace] """ self._virtual_spaces = virtual_spaces diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index dbbb58682..6093ee7cc 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index ac46eced2..ad3f5d42c 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 2f7e83300..7757b5654 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py index 0a506fa77..e49da056e 100644 --- a/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py +++ b/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/show_domain_stats_request.py @@ -199,7 +199,7 @@ class ShowDomainStatsRequest: def stat_type(self): """Gets the stat_type of this ShowDomainStatsRequest. - 网络资源消耗: - bw(带宽) - flux(流量) HTTP状态码(组合指标): - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) - bs_status_code_2xx(回源状态码详情2xx) - bs_status_code_3xx(回源状态码详情3xx) - bs_status_code_4xx(回源状态码详情4xx) - bs_status_code_5xx(回源状态码详情5xx) - status_code和bs_status_code不能一起查询,否则数据会不准确,status_code不支持指定服务区域 + 网络资源消耗: - bw(带宽) - flux(流量) HTTP状态码(组合指标): - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) :return: The stat_type of this ShowDomainStatsRequest. :rtype: str @@ -210,7 +210,7 @@ class ShowDomainStatsRequest: def stat_type(self, stat_type): """Sets the stat_type of this ShowDomainStatsRequest. - 网络资源消耗: - bw(带宽) - flux(流量) HTTP状态码(组合指标): - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) - bs_status_code_2xx(回源状态码详情2xx) - bs_status_code_3xx(回源状态码详情3xx) - bs_status_code_4xx(回源状态码详情4xx) - bs_status_code_5xx(回源状态码详情5xx) - status_code和bs_status_code不能一起查询,否则数据会不准确,status_code不支持指定服务区域 + 网络资源消耗: - bw(带宽) - flux(流量) HTTP状态码(组合指标): - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) :param stat_type: The stat_type of this ShowDomainStatsRequest. :type: str diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 8145d1af8..09f4b4953 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py index aa7498983..10c9a73f1 100644 --- a/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py +++ b/huaweicloud-sdk-ces/huaweicloudsdkces/v2/model/list_alarm_histories_request.py @@ -221,7 +221,7 @@ class ListAlarmHistoriesRequest: def _from(self): """Gets the _from of this ListAlarmHistoriesRequest. - 通过时间筛选traces的起始时间(不包括传入时间),UTC时间 + 通过时间筛选traces的起始时间(不包括传入时间) 例如:2022-02-10T10:05:46+08:00 :return: The _from of this ListAlarmHistoriesRequest. :rtype: str @@ -232,7 +232,7 @@ class ListAlarmHistoriesRequest: def _from(self, _from): """Sets the _from of this ListAlarmHistoriesRequest. - 通过时间筛选traces的起始时间(不包括传入时间),UTC时间 + 通过时间筛选traces的起始时间(不包括传入时间) 例如:2022-02-10T10:05:46+08:00 :param _from: The _from of this ListAlarmHistoriesRequest. :type: str @@ -243,7 +243,7 @@ class ListAlarmHistoriesRequest: def to(self): """Gets the to of this ListAlarmHistoriesRequest. - 通过时间筛选traces的终止时间(不包括传入时间),UTC时间 + 通过时间筛选traces的终止时间(不包括传入时间) 例如:2022-02-10T10:05:47+08:00 :return: The to of this ListAlarmHistoriesRequest. :rtype: str @@ -254,7 +254,7 @@ class ListAlarmHistoriesRequest: def to(self, to): """Sets the to of this ListAlarmHistoriesRequest. - 通过时间筛选traces的终止时间(不包括传入时间),UTC时间 + 通过时间筛选traces的终止时间(不包括传入时间) 例如:2022-02-10T10:05:47+08:00 :param to: The to of this ListAlarmHistoriesRequest. :type: str diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 590caf6e0..ea54e3a2c 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index d914d674b..f7de87b56 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 12682f963..6e4082808 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudbuild/setup.py b/huaweicloud-sdk-cloudbuild/setup.py index 7035f6aba..08af2d88a 100644 --- a/huaweicloud-sdk-cloudbuild/setup.py +++ b/huaweicloud-sdk-cloudbuild/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudbuild" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-clouddeploy/setup.py b/huaweicloud-sdk-clouddeploy/setup.py index dc9c01b59..f4e76954f 100644 --- a/huaweicloud-sdk-clouddeploy/setup.py +++ b/huaweicloud-sdk-clouddeploy/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclouddeploy" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 3f1b7c7f7..a24827e51 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudpipeline/setup.py b/huaweicloud-sdk-cloudpipeline/setup.py index a16c2b92b..e55770ccd 100644 --- a/huaweicloud-sdk-cloudpipeline/setup.py +++ b/huaweicloud-sdk-cloudpipeline/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpipeline" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index 44ea279b0..37754df60 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index ccdbd9ba6..ceb561149 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 64bdbde0d..65f8cd3f1 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-codecheck/setup.py b/huaweicloud-sdk-codecheck/setup.py index c27a60738..b22016b62 100644 --- a/huaweicloud-sdk-codecheck/setup.py +++ b/huaweicloud-sdk-codecheck/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecheck" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index a05f0af10..b70e98792 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index f94bf0f95..8e5fc4cd3 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index a08c43af3..5aa093b55 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 54088239b..6e08ff3b1 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-css/LICENSE b/huaweicloud-sdk-css/LICENSE new file mode 100644 index 000000000..808e3296c --- /dev/null +++ b/huaweicloud-sdk-css/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-css/README_PYPI.md b/huaweicloud-sdk-css/README_PYPI.md new file mode 100644 index 000000000..9711543c7 --- /dev/null +++ b/huaweicloud-sdk-css/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-css/huaweicloudsdkcss/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py new file mode 100644 index 000000000..1bb33d18c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import CssClient +from huaweicloudsdkcss.v1.css_client import CssClient +from huaweicloudsdkcss.v1.css_async_client import CssAsyncClient +# import models into sdk package +from huaweicloudsdkcss.v1.model.actions import Actions +from huaweicloudsdkcss.v1.model.add_favorite_req import AddFavoriteReq +from huaweicloudsdkcss.v1.model.add_favorite_req_template import AddFavoriteReqTemplate +from huaweicloudsdkcss.v1.model.add_favorite_request import AddFavoriteRequest +from huaweicloudsdkcss.v1.model.add_favorite_response import AddFavoriteResponse +from huaweicloudsdkcss.v1.model.address_and_ports import AddressAndPorts +from huaweicloudsdkcss.v1.model.batch_add_or_delete_tag_on_cluster_req import BatchAddOrDeleteTagOnClusterReq +from huaweicloudsdkcss.v1.model.bind_public_req import BindPublicReq +from huaweicloudsdkcss.v1.model.bind_public_req_eip import BindPublicReqEip +from huaweicloudsdkcss.v1.model.bind_public_req_eip_band_width import BindPublicReqEipBandWidth +from huaweicloudsdkcss.v1.model.cluster_list import ClusterList +from huaweicloudsdkcss.v1.model.cluster_list_action_progress import ClusterListActionProgress +from huaweicloudsdkcss.v1.model.cluster_list_datastore import ClusterListDatastore +from huaweicloudsdkcss.v1.model.cluster_list_failed_reasons import ClusterListFailedReasons +from huaweicloudsdkcss.v1.model.cluster_list_instances import ClusterListInstances +from huaweicloudsdkcss.v1.model.cluster_list_tags import ClusterListTags +from huaweicloudsdkcss.v1.model.config_list import ConfigList +from huaweicloudsdkcss.v1.model.confs import Confs +from huaweicloudsdkcss.v1.model.connections import Connections +from huaweicloudsdkcss.v1.model.create_auto_create_policy_request import CreateAutoCreatePolicyRequest +from huaweicloudsdkcss.v1.model.create_auto_create_policy_response import CreateAutoCreatePolicyResponse +from huaweicloudsdkcss.v1.model.create_bind_public_request import CreateBindPublicRequest +from huaweicloudsdkcss.v1.model.create_bind_public_response import CreateBindPublicResponse +from huaweicloudsdkcss.v1.model.create_cluster_backup_strategy_body import CreateClusterBackupStrategyBody +from huaweicloudsdkcss.v1.model.create_cluster_body import CreateClusterBody +from huaweicloudsdkcss.v1.model.create_cluster_cluster_response import CreateClusterClusterResponse +from huaweicloudsdkcss.v1.model.create_cluster_datastore_body import CreateClusterDatastoreBody +from huaweicloudsdkcss.v1.model.create_cluster_instance_body import CreateClusterInstanceBody +from huaweicloudsdkcss.v1.model.create_cluster_instance_nics_body import CreateClusterInstanceNicsBody +from huaweicloudsdkcss.v1.model.create_cluster_instance_volume_body import CreateClusterInstanceVolumeBody +from huaweicloudsdkcss.v1.model.create_cluster_req import CreateClusterReq +from huaweicloudsdkcss.v1.model.create_cluster_request import CreateClusterRequest +from huaweicloudsdkcss.v1.model.create_cluster_response import CreateClusterResponse +from huaweicloudsdkcss.v1.model.create_cluster_tags_body import CreateClusterTagsBody +from huaweicloudsdkcss.v1.model.create_clusters_tags_request import CreateClustersTagsRequest +from huaweicloudsdkcss.v1.model.create_clusters_tags_response import CreateClustersTagsResponse +from huaweicloudsdkcss.v1.model.create_cnf_req import CreateCnfReq +from huaweicloudsdkcss.v1.model.create_cnf_request import CreateCnfRequest +from huaweicloudsdkcss.v1.model.create_cnf_response import CreateCnfResponse +from huaweicloudsdkcss.v1.model.create_load_ik_thesaurus_request import CreateLoadIkThesaurusRequest +from huaweicloudsdkcss.v1.model.create_load_ik_thesaurus_response import CreateLoadIkThesaurusResponse +from huaweicloudsdkcss.v1.model.create_log_backup_request import CreateLogBackupRequest +from huaweicloudsdkcss.v1.model.create_log_backup_response import CreateLogBackupResponse +from huaweicloudsdkcss.v1.model.create_snapshot_req import CreateSnapshotReq +from huaweicloudsdkcss.v1.model.create_snapshot_request import CreateSnapshotRequest +from huaweicloudsdkcss.v1.model.create_snapshot_response import CreateSnapshotResponse +from huaweicloudsdkcss.v1.model.custom_templates import CustomTemplates +from huaweicloudsdkcss.v1.model.delete_cluster_request import DeleteClusterRequest +from huaweicloudsdkcss.v1.model.delete_cluster_response import DeleteClusterResponse +from huaweicloudsdkcss.v1.model.delete_clusters_tags_request import DeleteClustersTagsRequest +from huaweicloudsdkcss.v1.model.delete_clusters_tags_response import DeleteClustersTagsResponse +from huaweicloudsdkcss.v1.model.delete_conf_req import DeleteConfReq +from huaweicloudsdkcss.v1.model.delete_conf_request import DeleteConfRequest +from huaweicloudsdkcss.v1.model.delete_conf_response import DeleteConfResponse +from huaweicloudsdkcss.v1.model.delete_ik_thesaurus_request import DeleteIkThesaurusRequest +from huaweicloudsdkcss.v1.model.delete_ik_thesaurus_response import DeleteIkThesaurusResponse +from huaweicloudsdkcss.v1.model.delete_snapshot_request import DeleteSnapshotRequest +from huaweicloudsdkcss.v1.model.delete_snapshot_response import DeleteSnapshotResponse +from huaweicloudsdkcss.v1.model.delete_template_req import DeleteTemplateReq +from huaweicloudsdkcss.v1.model.delete_template_request import DeleteTemplateRequest +from huaweicloudsdkcss.v1.model.delete_template_response import DeleteTemplateResponse +from huaweicloudsdkcss.v1.model.esflavors_versions_flavors_resp import EsflavorsVersionsFlavorsResp +from huaweicloudsdkcss.v1.model.esflavors_versions_resp import EsflavorsVersionsResp +from huaweicloudsdkcss.v1.model.extend_cluster_grow_req import ExtendClusterGrowReq +from huaweicloudsdkcss.v1.model.extend_cluster_instances_resp import ExtendClusterInstancesResp +from huaweicloudsdkcss.v1.model.extend_cluster_req import ExtendClusterReq +from huaweicloudsdkcss.v1.model.get_log_backup_req import GetLogBackupReq +from huaweicloudsdkcss.v1.model.list_actions_request import ListActionsRequest +from huaweicloudsdkcss.v1.model.list_actions_response import ListActionsResponse +from huaweicloudsdkcss.v1.model.list_clusters_details_request import ListClustersDetailsRequest +from huaweicloudsdkcss.v1.model.list_clusters_details_response import ListClustersDetailsResponse +from huaweicloudsdkcss.v1.model.list_clusters_tags_request import ListClustersTagsRequest +from huaweicloudsdkcss.v1.model.list_clusters_tags_response import ListClustersTagsResponse +from huaweicloudsdkcss.v1.model.list_confs_request import ListConfsRequest +from huaweicloudsdkcss.v1.model.list_confs_response import ListConfsResponse +from huaweicloudsdkcss.v1.model.list_flavors_request import ListFlavorsRequest +from huaweicloudsdkcss.v1.model.list_flavors_response import ListFlavorsResponse +from huaweicloudsdkcss.v1.model.list_pipelines_request import ListPipelinesRequest +from huaweicloudsdkcss.v1.model.list_pipelines_response import ListPipelinesResponse +from huaweicloudsdkcss.v1.model.list_snapshot_backups_datastore_resp import ListSnapshotBackupsDatastoreResp +from huaweicloudsdkcss.v1.model.list_snapshot_backups_resp import ListSnapshotBackupsResp +from huaweicloudsdkcss.v1.model.list_snapshots_request import ListSnapshotsRequest +from huaweicloudsdkcss.v1.model.list_snapshots_response import ListSnapshotsResponse +from huaweicloudsdkcss.v1.model.list_templates_request import ListTemplatesRequest +from huaweicloudsdkcss.v1.model.list_templates_response import ListTemplatesResponse +from huaweicloudsdkcss.v1.model.list_ymls_job_request import ListYmlsJobRequest +from huaweicloudsdkcss.v1.model.list_ymls_job_response import ListYmlsJobResponse +from huaweicloudsdkcss.v1.model.list_ymls_request import ListYmlsRequest +from huaweicloudsdkcss.v1.model.list_ymls_response import ListYmlsResponse +from huaweicloudsdkcss.v1.model.load_custom_thesaurus_req import LoadCustomThesaurusReq +from huaweicloudsdkcss.v1.model.log_configuration import LogConfiguration +from huaweicloudsdkcss.v1.model.log_list import LogList +from huaweicloudsdkcss.v1.model.pay_info_body import PayInfoBody +from huaweicloudsdkcss.v1.model.period_req import PeriodReq +from huaweicloudsdkcss.v1.model.pipelines import Pipelines +from huaweicloudsdkcss.v1.model.reset_password_req import ResetPasswordReq +from huaweicloudsdkcss.v1.model.reset_password_request import ResetPasswordRequest +from huaweicloudsdkcss.v1.model.reset_password_response import ResetPasswordResponse +from huaweicloudsdkcss.v1.model.restart_cluster_request import RestartClusterRequest +from huaweicloudsdkcss.v1.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkcss.v1.model.restore_snapshot_req import RestoreSnapshotReq +from huaweicloudsdkcss.v1.model.restore_snapshot_request import RestoreSnapshotRequest +from huaweicloudsdkcss.v1.model.restore_snapshot_response import RestoreSnapshotResponse +from huaweicloudsdkcss.v1.model.result import Result +from huaweicloudsdkcss.v1.model.role_extend_grow_req import RoleExtendGrowReq +from huaweicloudsdkcss.v1.model.role_extend_req import RoleExtendReq +from huaweicloudsdkcss.v1.model.set_rds_backup_cnf_req import SetRDSBackupCnfReq +from huaweicloudsdkcss.v1.model.setting import Setting +from huaweicloudsdkcss.v1.model.show_all_tags_tags_resp import ShowAllTagsTagsResp +from huaweicloudsdkcss.v1.model.show_auto_create_policy_request import ShowAutoCreatePolicyRequest +from huaweicloudsdkcss.v1.model.show_auto_create_policy_response import ShowAutoCreatePolicyResponse +from huaweicloudsdkcss.v1.model.show_cluster_tag_request import ShowClusterTagRequest +from huaweicloudsdkcss.v1.model.show_cluster_tag_response import ShowClusterTagResponse +from huaweicloudsdkcss.v1.model.show_get_conf_detail_request import ShowGetConfDetailRequest +from huaweicloudsdkcss.v1.model.show_get_conf_detail_response import ShowGetConfDetailResponse +from huaweicloudsdkcss.v1.model.show_get_log_setting_request import ShowGetLogSettingRequest +from huaweicloudsdkcss.v1.model.show_get_log_setting_response import ShowGetLogSettingResponse +from huaweicloudsdkcss.v1.model.show_ik_thesaurus_request import ShowIkThesaurusRequest +from huaweicloudsdkcss.v1.model.show_ik_thesaurus_response import ShowIkThesaurusResponse +from huaweicloudsdkcss.v1.model.show_log_backup_request import ShowLogBackupRequest +from huaweicloudsdkcss.v1.model.show_log_backup_response import ShowLogBackupResponse +from huaweicloudsdkcss.v1.model.show_tags_tags_resp import ShowTagsTagsResp +from huaweicloudsdkcss.v1.model.show_vpcep_connection_request import ShowVpcepConnectionRequest +from huaweicloudsdkcss.v1.model.show_vpcep_connection_response import ShowVpcepConnectionResponse +from huaweicloudsdkcss.v1.model.start_auto_setting_request import StartAutoSettingRequest +from huaweicloudsdkcss.v1.model.start_auto_setting_response import StartAutoSettingResponse +from huaweicloudsdkcss.v1.model.start_connectivity_test_req import StartConnectivityTestReq +from huaweicloudsdkcss.v1.model.start_connectivity_test_request import StartConnectivityTestRequest +from huaweicloudsdkcss.v1.model.start_connectivity_test_response import StartConnectivityTestResponse +from huaweicloudsdkcss.v1.model.start_kibana_public_req import StartKibanaPublicReq +from huaweicloudsdkcss.v1.model.start_kibana_public_req_elb_whitelist import StartKibanaPublicReqElbWhitelist +from huaweicloudsdkcss.v1.model.start_kibana_public_request import StartKibanaPublicRequest +from huaweicloudsdkcss.v1.model.start_kibana_public_response import StartKibanaPublicResponse +from huaweicloudsdkcss.v1.model.start_log_auto_backup_policy_req import StartLogAutoBackupPolicyReq +from huaweicloudsdkcss.v1.model.start_log_auto_backup_policy_request import StartLogAutoBackupPolicyRequest +from huaweicloudsdkcss.v1.model.start_log_auto_backup_policy_response import StartLogAutoBackupPolicyResponse +from huaweicloudsdkcss.v1.model.start_logs_req import StartLogsReq +from huaweicloudsdkcss.v1.model.start_logs_request import StartLogsRequest +from huaweicloudsdkcss.v1.model.start_logs_response import StartLogsResponse +from huaweicloudsdkcss.v1.model.start_pipeline_req import StartPipelineReq +from huaweicloudsdkcss.v1.model.start_pipeline_request import StartPipelineRequest +from huaweicloudsdkcss.v1.model.start_pipeline_response import StartPipelineResponse +from huaweicloudsdkcss.v1.model.start_public_whitelist_req import StartPublicWhitelistReq +from huaweicloudsdkcss.v1.model.start_public_whitelist_request import StartPublicWhitelistRequest +from huaweicloudsdkcss.v1.model.start_public_whitelist_response import StartPublicWhitelistResponse +from huaweicloudsdkcss.v1.model.start_vpecp_req import StartVpecpReq +from huaweicloudsdkcss.v1.model.start_vpecp_request import StartVpecpRequest +from huaweicloudsdkcss.v1.model.start_vpecp_response import StartVpecpResponse +from huaweicloudsdkcss.v1.model.stop_log_auto_backup_policy_request import StopLogAutoBackupPolicyRequest +from huaweicloudsdkcss.v1.model.stop_log_auto_backup_policy_response import StopLogAutoBackupPolicyResponse +from huaweicloudsdkcss.v1.model.stop_logs_request import StopLogsRequest +from huaweicloudsdkcss.v1.model.stop_logs_response import StopLogsResponse +from huaweicloudsdkcss.v1.model.stop_pipeline_request import StopPipelineRequest +from huaweicloudsdkcss.v1.model.stop_pipeline_response import StopPipelineResponse +from huaweicloudsdkcss.v1.model.stop_public_kibana_whitelist_request import StopPublicKibanaWhitelistRequest +from huaweicloudsdkcss.v1.model.stop_public_kibana_whitelist_response import StopPublicKibanaWhitelistResponse +from huaweicloudsdkcss.v1.model.stop_public_whitelist_request import StopPublicWhitelistRequest +from huaweicloudsdkcss.v1.model.stop_public_whitelist_response import StopPublicWhitelistResponse +from huaweicloudsdkcss.v1.model.stop_snapshot_request import StopSnapshotRequest +from huaweicloudsdkcss.v1.model.stop_snapshot_response import StopSnapshotResponse +from huaweicloudsdkcss.v1.model.stop_vpecp_request import StopVpecpRequest +from huaweicloudsdkcss.v1.model.stop_vpecp_response import StopVpecpResponse +from huaweicloudsdkcss.v1.model.sys_tags import SysTags +from huaweicloudsdkcss.v1.model.system_templates import SystemTemplates +from huaweicloudsdkcss.v1.model.tag import Tag +from huaweicloudsdkcss.v1.model.tag_list import TagList +from huaweicloudsdkcss.v1.model.tag_req import TagReq +from huaweicloudsdkcss.v1.model.update_alter_kibana_request import UpdateAlterKibanaRequest +from huaweicloudsdkcss.v1.model.update_alter_kibana_response import UpdateAlterKibanaResponse +from huaweicloudsdkcss.v1.model.update_batch_clusters_tags_request import UpdateBatchClustersTagsRequest +from huaweicloudsdkcss.v1.model.update_batch_clusters_tags_response import UpdateBatchClustersTagsResponse +from huaweicloudsdkcss.v1.model.update_close_kibana_request import UpdateCloseKibanaRequest +from huaweicloudsdkcss.v1.model.update_close_kibana_response import UpdateCloseKibanaResponse +from huaweicloudsdkcss.v1.model.update_cluster_name_req import UpdateClusterNameReq +from huaweicloudsdkcss.v1.model.update_cluster_name_request import UpdateClusterNameRequest +from huaweicloudsdkcss.v1.model.update_cluster_name_response import UpdateClusterNameResponse +from huaweicloudsdkcss.v1.model.update_cnf_request import UpdateCnfRequest +from huaweicloudsdkcss.v1.model.update_cnf_response import UpdateCnfResponse +from huaweicloudsdkcss.v1.model.update_extend_cluster_request import UpdateExtendClusterRequest +from huaweicloudsdkcss.v1.model.update_extend_cluster_response import UpdateExtendClusterResponse +from huaweicloudsdkcss.v1.model.update_extend_instance_storage_request import UpdateExtendInstanceStorageRequest +from huaweicloudsdkcss.v1.model.update_extend_instance_storage_response import UpdateExtendInstanceStorageResponse +from huaweicloudsdkcss.v1.model.update_log_setting_req import UpdateLogSettingReq +from huaweicloudsdkcss.v1.model.update_log_setting_request import UpdateLogSettingRequest +from huaweicloudsdkcss.v1.model.update_log_setting_response import UpdateLogSettingResponse +from huaweicloudsdkcss.v1.model.update_ondemand_cluster_to_period_request import UpdateOndemandClusterToPeriodRequest +from huaweicloudsdkcss.v1.model.update_ondemand_cluster_to_period_response import UpdateOndemandClusterToPeriodResponse +from huaweicloudsdkcss.v1.model.update_public_band_width_request import UpdatePublicBandWidthRequest +from huaweicloudsdkcss.v1.model.update_public_band_width_response import UpdatePublicBandWidthResponse +from huaweicloudsdkcss.v1.model.update_public_kibana_bandwidth_req import UpdatePublicKibanaBandwidthReq +from huaweicloudsdkcss.v1.model.update_public_kibana_bandwidth_req_band_width import UpdatePublicKibanaBandwidthReqBandWidth +from huaweicloudsdkcss.v1.model.update_public_kibana_whitelist_req import UpdatePublicKibanaWhitelistReq +from huaweicloudsdkcss.v1.model.update_public_kibana_whitelist_request import UpdatePublicKibanaWhitelistRequest +from huaweicloudsdkcss.v1.model.update_public_kibana_whitelist_response import UpdatePublicKibanaWhitelistResponse +from huaweicloudsdkcss.v1.model.update_snapshot_setting_req import UpdateSnapshotSettingReq +from huaweicloudsdkcss.v1.model.update_snapshot_setting_request import UpdateSnapshotSettingRequest +from huaweicloudsdkcss.v1.model.update_snapshot_setting_response import UpdateSnapshotSettingResponse +from huaweicloudsdkcss.v1.model.update_unbind_public_request import UpdateUnbindPublicRequest +from huaweicloudsdkcss.v1.model.update_unbind_public_response import UpdateUnbindPublicResponse +from huaweicloudsdkcss.v1.model.update_vpcep_connection_req import UpdateVpcepConnectionReq +from huaweicloudsdkcss.v1.model.update_vpcep_connection_request import UpdateVpcepConnectionRequest +from huaweicloudsdkcss.v1.model.update_vpcep_connection_response import UpdateVpcepConnectionResponse +from huaweicloudsdkcss.v1.model.update_vpcep_whitelist_req import UpdateVpcepWhitelistReq +from huaweicloudsdkcss.v1.model.update_vpcep_whitelist_request import UpdateVpcepWhitelistRequest +from huaweicloudsdkcss.v1.model.update_vpcep_whitelist_response import UpdateVpcepWhitelistResponse +from huaweicloudsdkcss.v1.model.update_ymls_req import UpdateYmlsReq +from huaweicloudsdkcss.v1.model.update_ymls_req_edit import UpdateYmlsReqEdit +from huaweicloudsdkcss.v1.model.update_ymls_req_edit_modify import UpdateYmlsReqEditModify +from huaweicloudsdkcss.v1.model.update_ymls_request import UpdateYmlsRequest +from huaweicloudsdkcss.v1.model.update_ymls_response import UpdateYmlsResponse + diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py new file mode 100644 index 000000000..db7dd9a5b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py @@ -0,0 +1,4316 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class CssAsyncClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(CssAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkcss.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "CssClient": + raise TypeError("client type error, support client type is CssClient") + + return ClientBuilder(clazz) + + def create_auto_create_policy_async(self, request): + """设置自动创建快照策略 + + 该接口用于设置自动创建快照,默认一天创建一个快照。 + + :param CreateAutoCreatePolicyRequest request + :return: CreateAutoCreatePolicyResponse + """ + return self.create_auto_create_policy_with_http_info(request) + + def create_auto_create_policy_with_http_info(self, request): + """设置自动创建快照策略 + + 该接口用于设置自动创建快照,默认一天创建一个快照。 + + :param CreateAutoCreatePolicyRequest request + :return: CreateAutoCreatePolicyResponse + """ + + all_params = ['cluster_id', 'set_rds_backup_cnf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAutoCreatePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_bind_public_async(self, request): + """开启公网访问 + + 该接口用于开启公网访问。 + + :param CreateBindPublicRequest request + :return: CreateBindPublicResponse + """ + return self.create_bind_public_with_http_info(request) + + def create_bind_public_with_http_info(self, request): + """开启公网访问 + + 该接口用于开启公网访问。 + + :param CreateBindPublicRequest request + :return: CreateBindPublicResponse + """ + + all_params = ['cluster_id', 'bind_public_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateBindPublicResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_cluster_async(self, request): + """创建集群 + + 该接口用于创建集群。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + return self.create_cluster_with_http_info(request) + + def create_cluster_with_http_info(self, request): + """创建集群 + + 该接口用于创建集群。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + + all_params = ['create_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_clusters_tags_async(self, request): + """添加指定集群标签 + + 该接口用于给指定集群添加标签。 + + :param CreateClustersTagsRequest request + :return: CreateClustersTagsResponse + """ + return self.create_clusters_tags_with_http_info(request) + + def create_clusters_tags_with_http_info(self, request): + """添加指定集群标签 + + 该接口用于给指定集群添加标签。 + + :param CreateClustersTagsRequest request + :return: CreateClustersTagsResponse + """ + + all_params = ['cluster_id', 'tag'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_load_ik_thesaurus_async(self, request): + """加载自定义词库 + + 该接口用于加载存放于OBS的自定义词库。 + + :param CreateLoadIkThesaurusRequest request + :return: CreateLoadIkThesaurusResponse + """ + return self.create_load_ik_thesaurus_with_http_info(request) + + def create_load_ik_thesaurus_with_http_info(self, request): + """加载自定义词库 + + 该接口用于加载存放于OBS的自定义词库。 + + :param CreateLoadIkThesaurusRequest request + :return: CreateLoadIkThesaurusResponse + """ + + all_params = ['cluster_id', 'load_custom_thesaurus_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/thesaurus', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLoadIkThesaurusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_log_backup_async(self, request): + """备份日志 + + 该接口用于备份日志。 + + :param CreateLogBackupRequest request + :return: CreateLogBackupResponse + """ + return self.create_log_backup_with_http_info(request) + + def create_log_backup_with_http_info(self, request): + """备份日志 + + 该接口用于备份日志。 + + :param CreateLogBackupRequest request + :return: CreateLogBackupResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/collect', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogBackupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_snapshot_async(self, request): + """手动创建快照 + + 该接口用于手动创建一个快照。 + + :param CreateSnapshotRequest request + :return: CreateSnapshotResponse + """ + return self.create_snapshot_with_http_info(request) + + def create_snapshot_with_http_info(self, request): + """手动创建快照 + + 该接口用于手动创建一个快照。 + + :param CreateSnapshotRequest request + :return: CreateSnapshotResponse + """ + + all_params = ['cluster_id', 'create_snapshot_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_cluster_async(self, request): + """删除集群 + + 此接口用于删除集群。集群删除将释放此集群的所有资源,包括客户数据。为了安全起见,请确保为这个集群创建快照。 + + :param DeleteClusterRequest request + :return: DeleteClusterResponse + """ + return self.delete_cluster_with_http_info(request) + + def delete_cluster_with_http_info(self, request): + """删除集群 + + 此接口用于删除集群。集群删除将释放此集群的所有资源,包括客户数据。为了安全起见,请确保为这个集群创建快照。 + + :param DeleteClusterRequest request + :return: DeleteClusterResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_clusters_tags_async(self, request): + """删除集群标签 + + 此接口用于删除集群标签。 + + :param DeleteClustersTagsRequest request + :return: DeleteClustersTagsResponse + """ + return self.delete_clusters_tags_with_http_info(request) + + def delete_clusters_tags_with_http_info(self, request): + """删除集群标签 + + 此接口用于删除集群标签。 + + :param DeleteClustersTagsRequest request + :return: DeleteClustersTagsResponse + """ + + all_params = ['cluster_id', 'key'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'key' in local_var_params: + path_params['key'] = local_var_params['key'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags/{key}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_ik_thesaurus_async(self, request): + """删除自定义词库 + + 该接口用于删除自定义词库。 + + :param DeleteIkThesaurusRequest request + :return: DeleteIkThesaurusResponse + """ + return self.delete_ik_thesaurus_with_http_info(request) + + def delete_ik_thesaurus_with_http_info(self, request): + """删除自定义词库 + + 该接口用于删除自定义词库。 + + :param DeleteIkThesaurusRequest request + :return: DeleteIkThesaurusResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/thesaurus', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteIkThesaurusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_snapshot_async(self, request): + """删除快照 + + 该接口用于删除快照。 + + :param DeleteSnapshotRequest request + :return: DeleteSnapshotResponse + """ + return self.delete_snapshot_with_http_info(request) + + def delete_snapshot_with_http_info(self, request): + """删除快照 + + 该接口用于删除快照。 + + :param DeleteSnapshotRequest request + :return: DeleteSnapshotResponse + """ + + all_params = ['cluster_id', 'snapshot_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'snapshot_id' in local_var_params: + path_params['snapshot_id'] = local_var_params['snapshot_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_clusters_details_async(self, request): + """查询集群列表 + + 该接口用于查询并显示集群列表以及集群的状态。 + + :param ListClustersDetailsRequest request + :return: ListClustersDetailsResponse + """ + return self.list_clusters_details_with_http_info(request) + + def list_clusters_details_with_http_info(self, request): + """查询集群列表 + + 该接口用于查询并显示集群列表以及集群的状态。 + + :param ListClustersDetailsRequest request + :return: ListClustersDetailsResponse + """ + + all_params = ['start', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in local_var_params: + query_params.append(('start', local_var_params['start'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListClustersDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_clusters_tags_async(self, request): + """查询所有标签 + + 该接口用于查询指定region下的所有标签集合。 + + :param ListClustersTagsRequest request + :return: ListClustersTagsResponse + """ + return self.list_clusters_tags_with_http_info(request) + + def list_clusters_tags_with_http_info(self, request): + """查询所有标签 + + 该接口用于查询指定region下的所有标签集合。 + + :param ListClustersTagsRequest request + :return: ListClustersTagsResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_flavors_async(self, request): + """获取实例规格列表 + + 该接口用于查询并显示支持的实例规格对应的ID。 + + :param ListFlavorsRequest request + :return: ListFlavorsResponse + """ + return self.list_flavors_with_http_info(request) + + def list_flavors_with_http_info(self, request): + """获取实例规格列表 + + 该接口用于查询并显示支持的实例规格对应的ID。 + + :param ListFlavorsRequest request + :return: ListFlavorsResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/es-flavors', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListFlavorsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_snapshots_async(self, request): + """查询快照列表 + + 该接口用于查询集群的所有快照。 + + :param ListSnapshotsRequest request + :return: ListSnapshotsResponse + """ + return self.list_snapshots_with_http_info(request) + + def list_snapshots_with_http_info(self, request): + """查询快照列表 + + 该接口用于查询集群的所有快照。 + + :param ListSnapshotsRequest request + :return: ListSnapshotsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshots', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSnapshotsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_ymls_async(self, request): + """获取参数配置列表 + + 该接口用于获取参数配置列表。 + + :param ListYmlsRequest request + :return: ListYmlsResponse + """ + return self.list_ymls_with_http_info(request) + + def list_ymls_with_http_info(self, request): + """获取参数配置列表 + + 该接口用于获取参数配置列表。 + + :param ListYmlsRequest request + :return: ListYmlsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/ymls/template', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListYmlsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_ymls_job_async(self, request): + """获取参数配置任务列表 + + 该接口用于获取参数配置任务列表。 + + :param ListYmlsJobRequest request + :return: ListYmlsJobResponse + """ + return self.list_ymls_job_with_http_info(request) + + def list_ymls_job_with_http_info(self, request): + """获取参数配置任务列表 + + 该接口用于获取参数配置任务列表。 + + :param ListYmlsJobRequest request + :return: ListYmlsJobResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/ymls/joblists', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListYmlsJobResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def reset_password_async(self, request): + """修改密码 + + 该接口用于修改集群密码。 + + :param ResetPasswordRequest request + :return: ResetPasswordResponse + """ + return self.reset_password_with_http_info(request) + + def reset_password_with_http_info(self, request): + """修改密码 + + 该接口用于修改集群密码。 + + :param ResetPasswordRequest request + :return: ResetPasswordResponse + """ + + all_params = ['cluster_id', 'reset_password_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/password/reset', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ResetPasswordResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def restart_cluster_async(self, request): + """重启集群 + + 此接口用于重启集群,重启集群将导致业务中断。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + return self.restart_cluster_with_http_info(request) + + def restart_cluster_with_http_info(self, request): + """重启集群 + + 此接口用于重启集群,重启集群将导致业务中断。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/restart', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RestartClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def restore_snapshot_async(self, request): + """恢复快照 + + 该接口用于手动恢复一个快照。 + + :param RestoreSnapshotRequest request + :return: RestoreSnapshotResponse + """ + return self.restore_snapshot_with_http_info(request) + + def restore_snapshot_with_http_info(self, request): + """恢复快照 + + 该接口用于手动恢复一个快照。 + + :param RestoreSnapshotRequest request + :return: RestoreSnapshotResponse + """ + + all_params = ['cluster_id', 'snapshot_id', 'restore_snapshot_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'snapshot_id' in local_var_params: + path_params['snapshot_id'] = local_var_params['snapshot_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}/restore', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RestoreSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_auto_create_policy_async(self, request): + """查询集群的自动创建快照策略 + + 该接口用于查询自动创建快照策略。 + + :param ShowAutoCreatePolicyRequest request + :return: ShowAutoCreatePolicyResponse + """ + return self.show_auto_create_policy_with_http_info(request) + + def show_auto_create_policy_with_http_info(self, request): + """查询集群的自动创建快照策略 + + 该接口用于查询自动创建快照策略。 + + :param ShowAutoCreatePolicyRequest request + :return: ShowAutoCreatePolicyResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAutoCreatePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_cluster_tag_async(self, request): + """查询指定集群的标签 + + 该接口用于查询指定集群的标签信息。 + + :param ShowClusterTagRequest request + :return: ShowClusterTagResponse + """ + return self.show_cluster_tag_with_http_info(request) + + def show_cluster_tag_with_http_info(self, request): + """查询指定集群的标签 + + 该接口用于查询指定集群的标签信息。 + + :param ShowClusterTagRequest request + :return: ShowClusterTagResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowClusterTagResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_get_log_setting_async(self, request): + """查询日志基础配置 + + 该接口用于日志基础配置查询。 + + :param ShowGetLogSettingRequest request + :return: ShowGetLogSettingResponse + """ + return self.show_get_log_setting_with_http_info(request) + + def show_get_log_setting_with_http_info(self, request): + """查询日志基础配置 + + 该接口用于日志基础配置查询。 + + :param ShowGetLogSettingRequest request + :return: ShowGetLogSettingResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/settings', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowGetLogSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_ik_thesaurus_async(self, request): + """查询自定义词库状态 + + 该接口用于查询自定义词库的加载状态。 + + :param ShowIkThesaurusRequest request + :return: ShowIkThesaurusResponse + """ + return self.show_ik_thesaurus_with_http_info(request) + + def show_ik_thesaurus_with_http_info(self, request): + """查询自定义词库状态 + + 该接口用于查询自定义词库的加载状态。 + + :param ShowIkThesaurusRequest request + :return: ShowIkThesaurusResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/thesaurus', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowIkThesaurusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_log_backup_async(self, request): + """查询日志 + + 该接口用于查询日志信息。 + + :param ShowLogBackupRequest request + :return: ShowLogBackupResponse + """ + return self.show_log_backup_with_http_info(request) + + def show_log_backup_with_http_info(self, request): + """查询日志 + + 该接口用于查询日志信息。 + + :param ShowLogBackupRequest request + :return: ShowLogBackupResponse + """ + + all_params = ['cluster_id', 'get_log_backup_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowLogBackupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_vpcep_connection_async(self, request): + """获取终端节点连接 + + 该接口用于获取终端节点连接。 + + :param ShowVpcepConnectionRequest request + :return: ShowVpcepConnectionResponse + """ + return self.show_vpcep_connection_with_http_info(request) + + def show_vpcep_connection_with_http_info(self, request): + """获取终端节点连接 + + 该接口用于获取终端节点连接。 + + :param ShowVpcepConnectionRequest request + :return: ShowVpcepConnectionResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowVpcepConnectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_auto_setting_async(self, request): + """自动设置集群快照的基础配置(不推荐使用) + + 说明:自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](https://support.huaweicloud.com/api-css/css_03_0030.html)。 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。 - “OBS桶”:快照存储的OBS桶位置。 - “备份路径”:快照在OBS桶中的存放路径。 - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。 + + :param StartAutoSettingRequest request + :return: StartAutoSettingResponse + """ + return self.start_auto_setting_with_http_info(request) + + def start_auto_setting_with_http_info(self, request): + """自动设置集群快照的基础配置(不推荐使用) + + 说明:自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](https://support.huaweicloud.com/api-css/css_03_0030.html)。 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。 - “OBS桶”:快照存储的OBS桶位置。 - “备份路径”:快照在OBS桶中的存放路径。 - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。 + + :param StartAutoSettingRequest request + :return: StartAutoSettingResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/auto_setting', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartAutoSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_log_auto_backup_policy_async(self, request): + """开启日志自动备份策略 + + 该接口用于日志自动备份策略开启。 + + :param StartLogAutoBackupPolicyRequest request + :return: StartLogAutoBackupPolicyResponse + """ + return self.start_log_auto_backup_policy_with_http_info(request) + + def start_log_auto_backup_policy_with_http_info(self, request): + """开启日志自动备份策略 + + 该接口用于日志自动备份策略开启。 + + :param StartLogAutoBackupPolicyRequest request + :return: StartLogAutoBackupPolicyResponse + """ + + all_params = ['cluster_id', 'start_log_auto_backup_policy_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/policy/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartLogAutoBackupPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_logs_async(self, request): + """开启日志功能 + + 该接口用于开启日志功能。 + + :param StartLogsRequest request + :return: StartLogsResponse + """ + return self.start_logs_with_http_info(request) + + def start_logs_with_http_info(self, request): + """开启日志功能 + + 该接口用于开启日志功能。 + + :param StartLogsRequest request + :return: StartLogsResponse + """ + + all_params = ['cluster_id', 'start_logs_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartLogsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_public_whitelist_async(self, request): + """开启公网访问控制白名单 + + 该接口用于开启公网访问控制白名单。 + + :param StartPublicWhitelistRequest request + :return: StartPublicWhitelistResponse + """ + return self.start_public_whitelist_with_http_info(request) + + def start_public_whitelist_with_http_info(self, request): + """开启公网访问控制白名单 + + 该接口用于开启公网访问控制白名单。 + + :param StartPublicWhitelistRequest request + :return: StartPublicWhitelistResponse + """ + + all_params = ['cluster_id', 'start_public_whitelist_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartPublicWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_vpecp_async(self, request): + """开启终端节点服务 + + 该接口用于开启终端节点服务。 + + :param StartVpecpRequest request + :return: StartVpecpResponse + """ + return self.start_vpecp_with_http_info(request) + + def start_vpecp_with_http_info(self, request): + """开启终端节点服务 + + 该接口用于开启终端节点服务。 + + :param StartVpecpRequest request + :return: StartVpecpResponse + """ + + all_params = ['cluster_id', 'start_vpecp_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartVpecpResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_log_auto_backup_policy_async(self, request): + """关闭日志自动备份策略 + + 该接口用于日志自动备份策略关闭。 + + :param StopLogAutoBackupPolicyRequest request + :return: StopLogAutoBackupPolicyResponse + """ + return self.stop_log_auto_backup_policy_with_http_info(request) + + def stop_log_auto_backup_policy_with_http_info(self, request): + """关闭日志自动备份策略 + + 该接口用于日志自动备份策略关闭。 + + :param StopLogAutoBackupPolicyRequest request + :return: StopLogAutoBackupPolicyResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/policy/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopLogAutoBackupPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_logs_async(self, request): + """关闭日志功能 + + 该接口用于关闭日志功能。 + + :param StopLogsRequest request + :return: StopLogsResponse + """ + return self.stop_logs_with_http_info(request) + + def stop_logs_with_http_info(self, request): + """关闭日志功能 + + 该接口用于关闭日志功能。 + + :param StopLogsRequest request + :return: StopLogsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopLogsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_public_whitelist_async(self, request): + """关闭公网访问控制白名单 + + 该接口用于关闭公网访问控制白名单。 + + :param StopPublicWhitelistRequest request + :return: StopPublicWhitelistResponse + """ + return self.stop_public_whitelist_with_http_info(request) + + def stop_public_whitelist_with_http_info(self, request): + """关闭公网访问控制白名单 + + 该接口用于关闭公网访问控制白名单。 + + :param StopPublicWhitelistRequest request + :return: StopPublicWhitelistResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopPublicWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_snapshot_async(self, request): + """停用快照功能 + + 该接口用于停用快照功能。 + + :param StopSnapshotRequest request + :return: StopSnapshotResponse + """ + return self.stop_snapshot_with_http_info(request) + + def stop_snapshot_with_http_info(self, request): + """停用快照功能 + + 该接口用于停用快照功能。 + + :param StopSnapshotRequest request + :return: StopSnapshotResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshots', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_vpecp_async(self, request): + """关闭终端节点服务 + + 该接口用于关闭终端节点服务。 + + :param StopVpecpRequest request + :return: StopVpecpResponse + """ + return self.stop_vpecp_with_http_info(request) + + def stop_vpecp_with_http_info(self, request): + """关闭终端节点服务 + + 该接口用于关闭终端节点服务。 + + :param StopVpecpRequest request + :return: StopVpecpResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopVpecpResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_batch_clusters_tags_async(self, request): + """批量添加或删除集群标签 + + 该接口用于批量添加或删除集群标签。 + + :param UpdateBatchClustersTagsRequest request + :return: UpdateBatchClustersTagsResponse + """ + return self.update_batch_clusters_tags_with_http_info(request) + + def update_batch_clusters_tags_with_http_info(self, request): + """批量添加或删除集群标签 + + 该接口用于批量添加或删除集群标签。 + + :param UpdateBatchClustersTagsRequest request + :return: UpdateBatchClustersTagsResponse + """ + + all_params = ['cluster_id', 'batch_add_or_delete_tag_on_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags/action', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateBatchClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cluster_name_async(self, request): + """修改集群名称 + + 该接口用于修改集群名称。 + + :param UpdateClusterNameRequest request + :return: UpdateClusterNameResponse + """ + return self.update_cluster_name_with_http_info(request) + + def update_cluster_name_with_http_info(self, request): + """修改集群名称 + + 该接口用于修改集群名称。 + + :param UpdateClusterNameRequest request + :return: UpdateClusterNameResponse + """ + + all_params = ['cluster_id', 'update_cluster_name_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/changename', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateClusterNameResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_extend_cluster_async(self, request): + """扩容集群 + + 该接口用于集群扩容实例(仅支持扩容elasticsearch实例)。只扩容普通节点,且只针对要扩容的集群实例不存在特殊节点(Master、Client、冷数据节点)的情况。 说明:推荐使用[扩容实例的数量和存储容量](https://support.huaweicloud.com/api-css/css_03_0038.html)进行扩容。 + + :param UpdateExtendClusterRequest request + :return: UpdateExtendClusterResponse + """ + return self.update_extend_cluster_with_http_info(request) + + def update_extend_cluster_with_http_info(self, request): + """扩容集群 + + 该接口用于集群扩容实例(仅支持扩容elasticsearch实例)。只扩容普通节点,且只针对要扩容的集群实例不存在特殊节点(Master、Client、冷数据节点)的情况。 说明:推荐使用[扩容实例的数量和存储容量](https://support.huaweicloud.com/api-css/css_03_0038.html)进行扩容。 + + :param UpdateExtendClusterRequest request + :return: UpdateExtendClusterResponse + """ + + all_params = ['cluster_id', 'extend_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/extend', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateExtendClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_extend_instance_storage_async(self, request): + """扩容实例的数量和存储容量 + + 该接口用于集群扩容不同类型实例的个数以及存储容量。已经存在独立Master、Client、冷数据节点的集群使用该接口扩容。(支持扩容elasticsearch和logstash实例)。 + + :param UpdateExtendInstanceStorageRequest request + :return: UpdateExtendInstanceStorageResponse + """ + return self.update_extend_instance_storage_with_http_info(request) + + def update_extend_instance_storage_with_http_info(self, request): + """扩容实例的数量和存储容量 + + 该接口用于集群扩容不同类型实例的个数以及存储容量。已经存在独立Master、Client、冷数据节点的集群使用该接口扩容。(支持扩容elasticsearch和logstash实例)。 + + :param UpdateExtendInstanceStorageRequest request + :return: UpdateExtendInstanceStorageResponse + """ + + all_params = ['cluster_id', 'role_extend_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/role_extend', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateExtendInstanceStorageResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_setting_async(self, request): + """修改日志基础配置 + + 该接口用于修改日志基础配置。 + + :param UpdateLogSettingRequest request + :return: UpdateLogSettingResponse + """ + return self.update_log_setting_with_http_info(request) + + def update_log_setting_with_http_info(self, request): + """修改日志基础配置 + + 该接口用于修改日志基础配置。 + + :param UpdateLogSettingRequest request + :return: UpdateLogSettingResponse + """ + + all_params = ['cluster_id', 'update_log_setting_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/settings', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_ondemand_cluster_to_period_async(self, request): + """按需集群转包周期 + + 该接口用于按需集群转包周期集群。 + + :param UpdateOndemandClusterToPeriodRequest request + :return: UpdateOndemandClusterToPeriodResponse + """ + return self.update_ondemand_cluster_to_period_with_http_info(request) + + def update_ondemand_cluster_to_period_with_http_info(self, request): + """按需集群转包周期 + + 该接口用于按需集群转包周期集群。 + + :param UpdateOndemandClusterToPeriodRequest request + :return: UpdateOndemandClusterToPeriodResponse + """ + + all_params = ['cluster_id', 'period_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/cluster/{cluster_id}/period', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateOndemandClusterToPeriodResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_public_band_width_async(self, request): + """修改公网访问带宽 + + 该接口用于修改公网访问带宽。 + + :param UpdatePublicBandWidthRequest request + :return: UpdatePublicBandWidthResponse + """ + return self.update_public_band_width_with_http_info(request) + + def update_public_band_width_with_http_info(self, request): + """修改公网访问带宽 + + 该接口用于修改公网访问带宽。 + + :param UpdatePublicBandWidthRequest request + :return: UpdatePublicBandWidthResponse + """ + + all_params = ['cluster_id', 'bind_public_req_eip'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/bandwidth', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePublicBandWidthResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_snapshot_setting_async(self, request): + """修改集群快照的基础配置 + + 该接口用于修改集群快照的基础配置,可修改OBS桶和IAM委托。 说明:如果未开启快照功能,使用该接口后,将会开启快照。 + + :param UpdateSnapshotSettingRequest request + :return: UpdateSnapshotSettingResponse + """ + return self.update_snapshot_setting_with_http_info(request) + + def update_snapshot_setting_with_http_info(self, request): + """修改集群快照的基础配置 + + 该接口用于修改集群快照的基础配置,可修改OBS桶和IAM委托。 说明:如果未开启快照功能,使用该接口后,将会开启快照。 + + :param UpdateSnapshotSettingRequest request + :return: UpdateSnapshotSettingResponse + """ + + all_params = ['cluster_id', 'update_snapshot_setting_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/setting', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateSnapshotSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_unbind_public_async(self, request): + """关闭公网访问 + + 该接口用于关闭公网访问。 + + :param UpdateUnbindPublicRequest request + :return: UpdateUnbindPublicResponse + """ + return self.update_unbind_public_with_http_info(request) + + def update_unbind_public_with_http_info(self, request): + """关闭公网访问 + + 该接口用于关闭公网访问。 + + :param UpdateUnbindPublicRequest request + :return: UpdateUnbindPublicResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateUnbindPublicResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_vpcep_connection_async(self, request): + """更新终端节点连接 + + 该接口用于更新终端节点连接。 + + :param UpdateVpcepConnectionRequest request + :return: UpdateVpcepConnectionResponse + """ + return self.update_vpcep_connection_with_http_info(request) + + def update_vpcep_connection_with_http_info(self, request): + """更新终端节点连接 + + 该接口用于更新终端节点连接。 + + :param UpdateVpcepConnectionRequest request + :return: UpdateVpcepConnectionResponse + """ + + all_params = ['cluster_id', 'update_vpcep_connection_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateVpcepConnectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_vpcep_whitelist_async(self, request): + """修改终端节点服务白名单 + + 该接口用于修改终端节点服务白名单。 + + :param UpdateVpcepWhitelistRequest request + :return: UpdateVpcepWhitelistResponse + """ + return self.update_vpcep_whitelist_with_http_info(request) + + def update_vpcep_whitelist_with_http_info(self, request): + """修改终端节点服务白名单 + + 该接口用于修改终端节点服务白名单。 + + :param UpdateVpcepWhitelistRequest request + :return: UpdateVpcepWhitelistResponse + """ + + all_params = ['cluster_id', 'update_vpcep_whitelist_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/permissions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateVpcepWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_ymls_async(self, request): + """修改参数配置 + + 该接口用于修改参数配口。 + + :param UpdateYmlsRequest request + :return: UpdateYmlsResponse + """ + return self.update_ymls_with_http_info(request) + + def update_ymls_with_http_info(self, request): + """修改参数配置 + + 该接口用于修改参数配口。 + + :param UpdateYmlsRequest request + :return: UpdateYmlsResponse + """ + + all_params = ['cluster_id', 'update_ymls_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/ymls/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateYmlsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_kibana_public_async(self, request): + """开启Kibana公网访问 + + 该接口用于开启Kibana公网访问。 + + :param StartKibanaPublicRequest request + :return: StartKibanaPublicResponse + """ + return self.start_kibana_public_with_http_info(request) + + def start_kibana_public_with_http_info(self, request): + """开启Kibana公网访问 + + 该接口用于开启Kibana公网访问。 + + :param StartKibanaPublicRequest request + :return: StartKibanaPublicResponse + """ + + all_params = ['cluster_id', 'start_kibana_public_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartKibanaPublicResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_public_kibana_whitelist_async(self, request): + """关闭访问控制 + + 该接口用于关闭Kibana公网访问控制。 + + :param StopPublicKibanaWhitelistRequest request + :return: StopPublicKibanaWhitelistResponse + """ + return self.stop_public_kibana_whitelist_with_http_info(request) + + def stop_public_kibana_whitelist_with_http_info(self, request): + """关闭访问控制 + + 该接口用于关闭Kibana公网访问控制。 + + :param StopPublicKibanaWhitelistRequest request + :return: StopPublicKibanaWhitelistResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopPublicKibanaWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_alter_kibana_async(self, request): + """修改Kibana公网带宽 + + 该接口用于修改Kibana公网带宽。 + + :param UpdateAlterKibanaRequest request + :return: UpdateAlterKibanaResponse + """ + return self.update_alter_kibana_with_http_info(request) + + def update_alter_kibana_with_http_info(self, request): + """修改Kibana公网带宽 + + 该接口用于修改Kibana公网带宽。 + + :param UpdateAlterKibanaRequest request + :return: UpdateAlterKibanaResponse + """ + + all_params = ['cluster_id', 'update_public_kibana_bandwidth_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/bandwidth', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAlterKibanaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_close_kibana_async(self, request): + """关闭Kibana公网访问 + + 该接口用于关闭Kibana公网访问。 + + :param UpdateCloseKibanaRequest request + :return: UpdateCloseKibanaResponse + """ + return self.update_close_kibana_with_http_info(request) + + def update_close_kibana_with_http_info(self, request): + """关闭Kibana公网访问 + + 该接口用于关闭Kibana公网访问。 + + :param UpdateCloseKibanaRequest request + :return: UpdateCloseKibanaResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCloseKibanaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_public_kibana_whitelist_async(self, request): + """修改访问控制 + + 该接口通过修改kibana白名单,修改kibana的访问权限。 + + :param UpdatePublicKibanaWhitelistRequest request + :return: UpdatePublicKibanaWhitelistResponse + """ + return self.update_public_kibana_whitelist_with_http_info(request) + + def update_public_kibana_whitelist_with_http_info(self, request): + """修改访问控制 + + 该接口通过修改kibana白名单,修改kibana的访问权限。 + + :param UpdatePublicKibanaWhitelistRequest request + :return: UpdatePublicKibanaWhitelistResponse + """ + + all_params = ['cluster_id', 'update_public_kibana_whitelist_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePublicKibanaWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def add_favorite_async(self, request): + """添加到自定义模板 + + 该接口用于添加到自定义模板。 + + :param AddFavoriteRequest request + :return: AddFavoriteResponse + """ + return self.add_favorite_with_http_info(request) + + def add_favorite_with_http_info(self, request): + """添加到自定义模板 + + 该接口用于添加到自定义模板。 + + :param AddFavoriteRequest request + :return: AddFavoriteResponse + """ + + all_params = ['cluster_id', 'add_favorite_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/favorite', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='AddFavoriteResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_cnf_async(self, request): + """创建配置文件 + + 该接口用于创建配置文件。 + + :param CreateCnfRequest request + :return: CreateCnfResponse + """ + return self.create_cnf_with_http_info(request) + + def create_cnf_with_http_info(self, request): + """创建配置文件 + + 该接口用于创建配置文件。 + + :param CreateCnfRequest request + :return: CreateCnfResponse + """ + + all_params = ['cluster_id', 'create_cnf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/submit', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCnfResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_conf_async(self, request): + """删除配置文件 + + 删除配置文件。 + + :param DeleteConfRequest request + :return: DeleteConfResponse + """ + return self.delete_conf_with_http_info(request) + + def delete_conf_with_http_info(self, request): + """删除配置文件 + + 删除配置文件。 + + :param DeleteConfRequest request + :return: DeleteConfResponse + """ + + all_params = ['cluster_id', 'delete_conf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/delete', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteConfResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_template_async(self, request): + """删除自定义模板 + + 该接口用于删除自定义模板。 + + :param DeleteTemplateRequest request + :return: DeleteTemplateResponse + """ + return self.delete_template_with_http_info(request) + + def delete_template_with_http_info(self, request): + """删除自定义模板 + + 该接口用于删除自定义模板。 + + :param DeleteTemplateRequest request + :return: DeleteTemplateResponse + """ + + all_params = ['cluster_id', 'delete_template_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/lgsconf/deletetemplate', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_actions_async(self, request): + """查询操作记录 + + 该接口用于查询操作记录。 + + :param ListActionsRequest request + :return: ListActionsResponse + """ + return self.list_actions_with_http_info(request) + + def list_actions_with_http_info(self, request): + """查询操作记录 + + 该接口用于查询操作记录。 + + :param ListActionsRequest request + :return: ListActionsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listactions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListActionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_confs_async(self, request): + """查询配置文件列表 + + 该接口用于查询配置文件列表。 + + :param ListConfsRequest request + :return: ListConfsResponse + """ + return self.list_confs_with_http_info(request) + + def list_confs_with_http_info(self, request): + """查询配置文件列表 + + 该接口用于查询配置文件列表。 + + :param ListConfsRequest request + :return: ListConfsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listconfs', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListConfsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_pipelines_async(self, request): + """查询pipeline列表 + + 该接口用于查询pipeline列表。 + + :param ListPipelinesRequest request + :return: ListPipelinesResponse + """ + return self.list_pipelines_with_http_info(request) + + def list_pipelines_with_http_info(self, request): + """查询pipeline列表 + + 该接口用于查询pipeline列表。 + + :param ListPipelinesRequest request + :return: ListPipelinesResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listpipelines', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPipelinesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_templates_async(self, request): + """查询模板列表 + + 该接口用于查询模板列表。 + + :param ListTemplatesRequest request + :return: ListTemplatesResponse + """ + return self.list_templates_with_http_info(request) + + def list_templates_with_http_info(self, request): + """查询模板列表 + + 该接口用于查询模板列表。 + + :param ListTemplatesRequest request + :return: ListTemplatesResponse + """ + + all_params = ['type'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/lgsconf/template', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTemplatesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_get_conf_detail_async(self, request): + """查询配置文件内容 + + 该接口用于查询配置文件内容。 + + :param ShowGetConfDetailRequest request + :return: ShowGetConfDetailResponse + """ + return self.show_get_conf_detail_with_http_info(request) + + def show_get_conf_detail_with_http_info(self, request): + """查询配置文件内容 + + 该接口用于查询配置文件内容。 + + :param ShowGetConfDetailRequest request + :return: ShowGetConfDetailResponse + """ + + all_params = ['cluster_id', 'name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/confdetail', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowGetConfDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_connectivity_test_async(self, request): + """连通性测试 + + 该接口用于连通性测试。 + + :param StartConnectivityTestRequest request + :return: StartConnectivityTestResponse + """ + return self.start_connectivity_test_with_http_info(request) + + def start_connectivity_test_with_http_info(self, request): + """连通性测试 + + 该接口用于连通性测试。 + + :param StartConnectivityTestRequest request + :return: StartConnectivityTestResponse + """ + + all_params = ['cluster_id', 'start_connectivity_test_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/checkconnection', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartConnectivityTestResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_pipeline_async(self, request): + """启动pipeline迁移数据 + + 该接口用于启动pipeline迁移数据。 + + :param StartPipelineRequest request + :return: StartPipelineResponse + """ + return self.start_pipeline_with_http_info(request) + + def start_pipeline_with_http_info(self, request): + """启动pipeline迁移数据 + + 该接口用于启动pipeline迁移数据。 + + :param StartPipelineRequest request + :return: StartPipelineResponse + """ + + all_params = ['cluster_id', 'start_pipeline_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/start', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartPipelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_pipeline_async(self, request): + """停止pipeline迁移数据 + + 该接口用于停止pipeline迁移数据。 + + :param StopPipelineRequest request + :return: StopPipelineResponse + """ + return self.stop_pipeline_with_http_info(request) + + def stop_pipeline_with_http_info(self, request): + """停止pipeline迁移数据 + + 该接口用于停止pipeline迁移数据。 + + :param StopPipelineRequest request + :return: StopPipelineResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/stop', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopPipelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cnf_async(self, request): + """更新配置文件 + + 该接口用于更新配置文件。 + + :param UpdateCnfRequest request + :return: UpdateCnfResponse + """ + return self.update_cnf_with_http_info(request) + + def update_cnf_with_http_info(self, request): + """更新配置文件 + + 该接口用于更新配置文件。 + + :param UpdateCnfRequest request + :return: UpdateCnfResponse + """ + + all_params = ['cluster_id', 'update_cnf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCnfResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, 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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py new file mode 100644 index 000000000..d0a3ffe36 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py @@ -0,0 +1,4314 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class CssClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(CssClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkcss.v1.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "CssClient": + raise TypeError("client type error, support client type is CssClient") + + return ClientBuilder(clazz) + + def create_auto_create_policy(self, request): + """设置自动创建快照策略 + + 该接口用于设置自动创建快照,默认一天创建一个快照。 + + :param CreateAutoCreatePolicyRequest request + :return: CreateAutoCreatePolicyResponse + """ + return self.create_auto_create_policy_with_http_info(request) + + def create_auto_create_policy_with_http_info(self, request): + """设置自动创建快照策略 + + 该接口用于设置自动创建快照,默认一天创建一个快照。 + + :param CreateAutoCreatePolicyRequest request + :return: CreateAutoCreatePolicyResponse + """ + + all_params = ['cluster_id', 'set_rds_backup_cnf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateAutoCreatePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_bind_public(self, request): + """开启公网访问 + + 该接口用于开启公网访问。 + + :param CreateBindPublicRequest request + :return: CreateBindPublicResponse + """ + return self.create_bind_public_with_http_info(request) + + def create_bind_public_with_http_info(self, request): + """开启公网访问 + + 该接口用于开启公网访问。 + + :param CreateBindPublicRequest request + :return: CreateBindPublicResponse + """ + + all_params = ['cluster_id', 'bind_public_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateBindPublicResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_cluster(self, request): + """创建集群 + + 该接口用于创建集群。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + return self.create_cluster_with_http_info(request) + + def create_cluster_with_http_info(self, request): + """创建集群 + + 该接口用于创建集群。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + + all_params = ['create_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_clusters_tags(self, request): + """添加指定集群标签 + + 该接口用于给指定集群添加标签。 + + :param CreateClustersTagsRequest request + :return: CreateClustersTagsResponse + """ + return self.create_clusters_tags_with_http_info(request) + + def create_clusters_tags_with_http_info(self, request): + """添加指定集群标签 + + 该接口用于给指定集群添加标签。 + + :param CreateClustersTagsRequest request + :return: CreateClustersTagsResponse + """ + + all_params = ['cluster_id', 'tag'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_load_ik_thesaurus(self, request): + """加载自定义词库 + + 该接口用于加载存放于OBS的自定义词库。 + + :param CreateLoadIkThesaurusRequest request + :return: CreateLoadIkThesaurusResponse + """ + return self.create_load_ik_thesaurus_with_http_info(request) + + def create_load_ik_thesaurus_with_http_info(self, request): + """加载自定义词库 + + 该接口用于加载存放于OBS的自定义词库。 + + :param CreateLoadIkThesaurusRequest request + :return: CreateLoadIkThesaurusResponse + """ + + all_params = ['cluster_id', 'load_custom_thesaurus_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/thesaurus', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLoadIkThesaurusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_log_backup(self, request): + """备份日志 + + 该接口用于备份日志。 + + :param CreateLogBackupRequest request + :return: CreateLogBackupResponse + """ + return self.create_log_backup_with_http_info(request) + + def create_log_backup_with_http_info(self, request): + """备份日志 + + 该接口用于备份日志。 + + :param CreateLogBackupRequest request + :return: CreateLogBackupResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/collect', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateLogBackupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_snapshot(self, request): + """手动创建快照 + + 该接口用于手动创建一个快照。 + + :param CreateSnapshotRequest request + :return: CreateSnapshotResponse + """ + return self.create_snapshot_with_http_info(request) + + def create_snapshot_with_http_info(self, request): + """手动创建快照 + + 该接口用于手动创建一个快照。 + + :param CreateSnapshotRequest request + :return: CreateSnapshotResponse + """ + + all_params = ['cluster_id', 'create_snapshot_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_cluster(self, request): + """删除集群 + + 此接口用于删除集群。集群删除将释放此集群的所有资源,包括客户数据。为了安全起见,请确保为这个集群创建快照。 + + :param DeleteClusterRequest request + :return: DeleteClusterResponse + """ + return self.delete_cluster_with_http_info(request) + + def delete_cluster_with_http_info(self, request): + """删除集群 + + 此接口用于删除集群。集群删除将释放此集群的所有资源,包括客户数据。为了安全起见,请确保为这个集群创建快照。 + + :param DeleteClusterRequest request + :return: DeleteClusterResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_clusters_tags(self, request): + """删除集群标签 + + 此接口用于删除集群标签。 + + :param DeleteClustersTagsRequest request + :return: DeleteClustersTagsResponse + """ + return self.delete_clusters_tags_with_http_info(request) + + def delete_clusters_tags_with_http_info(self, request): + """删除集群标签 + + 此接口用于删除集群标签。 + + :param DeleteClustersTagsRequest request + :return: DeleteClustersTagsResponse + """ + + all_params = ['cluster_id', 'key'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'key' in local_var_params: + path_params['key'] = local_var_params['key'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags/{key}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_ik_thesaurus(self, request): + """删除自定义词库 + + 该接口用于删除自定义词库。 + + :param DeleteIkThesaurusRequest request + :return: DeleteIkThesaurusResponse + """ + return self.delete_ik_thesaurus_with_http_info(request) + + def delete_ik_thesaurus_with_http_info(self, request): + """删除自定义词库 + + 该接口用于删除自定义词库。 + + :param DeleteIkThesaurusRequest request + :return: DeleteIkThesaurusResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/thesaurus', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteIkThesaurusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_snapshot(self, request): + """删除快照 + + 该接口用于删除快照。 + + :param DeleteSnapshotRequest request + :return: DeleteSnapshotResponse + """ + return self.delete_snapshot_with_http_info(request) + + def delete_snapshot_with_http_info(self, request): + """删除快照 + + 该接口用于删除快照。 + + :param DeleteSnapshotRequest request + :return: DeleteSnapshotResponse + """ + + all_params = ['cluster_id', 'snapshot_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'snapshot_id' in local_var_params: + path_params['snapshot_id'] = local_var_params['snapshot_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_clusters_details(self, request): + """查询集群列表 + + 该接口用于查询并显示集群列表以及集群的状态。 + + :param ListClustersDetailsRequest request + :return: ListClustersDetailsResponse + """ + return self.list_clusters_details_with_http_info(request) + + def list_clusters_details_with_http_info(self, request): + """查询集群列表 + + 该接口用于查询并显示集群列表以及集群的状态。 + + :param ListClustersDetailsRequest request + :return: ListClustersDetailsResponse + """ + + all_params = ['start', 'limit'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in local_var_params: + query_params.append(('start', local_var_params['start'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListClustersDetailsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_clusters_tags(self, request): + """查询所有标签 + + 该接口用于查询指定region下的所有标签集合。 + + :param ListClustersTagsRequest request + :return: ListClustersTagsResponse + """ + return self.list_clusters_tags_with_http_info(request) + + def list_clusters_tags_with_http_info(self, request): + """查询所有标签 + + 该接口用于查询指定region下的所有标签集合。 + + :param ListClustersTagsRequest request + :return: ListClustersTagsResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_flavors(self, request): + """获取实例规格列表 + + 该接口用于查询并显示支持的实例规格对应的ID。 + + :param ListFlavorsRequest request + :return: ListFlavorsResponse + """ + return self.list_flavors_with_http_info(request) + + def list_flavors_with_http_info(self, request): + """获取实例规格列表 + + 该接口用于查询并显示支持的实例规格对应的ID。 + + :param ListFlavorsRequest request + :return: ListFlavorsResponse + """ + + all_params = [] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/es-flavors', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListFlavorsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_snapshots(self, request): + """查询快照列表 + + 该接口用于查询集群的所有快照。 + + :param ListSnapshotsRequest request + :return: ListSnapshotsResponse + """ + return self.list_snapshots_with_http_info(request) + + def list_snapshots_with_http_info(self, request): + """查询快照列表 + + 该接口用于查询集群的所有快照。 + + :param ListSnapshotsRequest request + :return: ListSnapshotsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshots', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListSnapshotsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_ymls(self, request): + """获取参数配置列表 + + 该接口用于获取参数配置列表。 + + :param ListYmlsRequest request + :return: ListYmlsResponse + """ + return self.list_ymls_with_http_info(request) + + def list_ymls_with_http_info(self, request): + """获取参数配置列表 + + 该接口用于获取参数配置列表。 + + :param ListYmlsRequest request + :return: ListYmlsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/ymls/template', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListYmlsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_ymls_job(self, request): + """获取参数配置任务列表 + + 该接口用于获取参数配置任务列表。 + + :param ListYmlsJobRequest request + :return: ListYmlsJobResponse + """ + return self.list_ymls_job_with_http_info(request) + + def list_ymls_job_with_http_info(self, request): + """获取参数配置任务列表 + + 该接口用于获取参数配置任务列表。 + + :param ListYmlsJobRequest request + :return: ListYmlsJobResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/ymls/joblists', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListYmlsJobResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def reset_password(self, request): + """修改密码 + + 该接口用于修改集群密码。 + + :param ResetPasswordRequest request + :return: ResetPasswordResponse + """ + return self.reset_password_with_http_info(request) + + def reset_password_with_http_info(self, request): + """修改密码 + + 该接口用于修改集群密码。 + + :param ResetPasswordRequest request + :return: ResetPasswordResponse + """ + + all_params = ['cluster_id', 'reset_password_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/password/reset', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ResetPasswordResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def restart_cluster(self, request): + """重启集群 + + 此接口用于重启集群,重启集群将导致业务中断。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + return self.restart_cluster_with_http_info(request) + + def restart_cluster_with_http_info(self, request): + """重启集群 + + 此接口用于重启集群,重启集群将导致业务中断。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/restart', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RestartClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def restore_snapshot(self, request): + """恢复快照 + + 该接口用于手动恢复一个快照。 + + :param RestoreSnapshotRequest request + :return: RestoreSnapshotResponse + """ + return self.restore_snapshot_with_http_info(request) + + def restore_snapshot_with_http_info(self, request): + """恢复快照 + + 该接口用于手动恢复一个快照。 + + :param RestoreSnapshotRequest request + :return: RestoreSnapshotResponse + """ + + all_params = ['cluster_id', 'snapshot_id', 'restore_snapshot_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + if 'snapshot_id' in local_var_params: + path_params['snapshot_id'] = local_var_params['snapshot_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}/restore', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RestoreSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_auto_create_policy(self, request): + """查询集群的自动创建快照策略 + + 该接口用于查询自动创建快照策略。 + + :param ShowAutoCreatePolicyRequest request + :return: ShowAutoCreatePolicyResponse + """ + return self.show_auto_create_policy_with_http_info(request) + + def show_auto_create_policy_with_http_info(self, request): + """查询集群的自动创建快照策略 + + 该接口用于查询自动创建快照策略。 + + :param ShowAutoCreatePolicyRequest request + :return: ShowAutoCreatePolicyResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowAutoCreatePolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_cluster_tag(self, request): + """查询指定集群的标签 + + 该接口用于查询指定集群的标签信息。 + + :param ShowClusterTagRequest request + :return: ShowClusterTagResponse + """ + return self.show_cluster_tag_with_http_info(request) + + def show_cluster_tag_with_http_info(self, request): + """查询指定集群的标签 + + 该接口用于查询指定集群的标签信息。 + + :param ShowClusterTagRequest request + :return: ShowClusterTagResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowClusterTagResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_get_log_setting(self, request): + """查询日志基础配置 + + 该接口用于日志基础配置查询。 + + :param ShowGetLogSettingRequest request + :return: ShowGetLogSettingResponse + """ + return self.show_get_log_setting_with_http_info(request) + + def show_get_log_setting_with_http_info(self, request): + """查询日志基础配置 + + 该接口用于日志基础配置查询。 + + :param ShowGetLogSettingRequest request + :return: ShowGetLogSettingResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/settings', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowGetLogSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_ik_thesaurus(self, request): + """查询自定义词库状态 + + 该接口用于查询自定义词库的加载状态。 + + :param ShowIkThesaurusRequest request + :return: ShowIkThesaurusResponse + """ + return self.show_ik_thesaurus_with_http_info(request) + + def show_ik_thesaurus_with_http_info(self, request): + """查询自定义词库状态 + + 该接口用于查询自定义词库的加载状态。 + + :param ShowIkThesaurusRequest request + :return: ShowIkThesaurusResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/thesaurus', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowIkThesaurusResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_log_backup(self, request): + """查询日志 + + 该接口用于查询日志信息。 + + :param ShowLogBackupRequest request + :return: ShowLogBackupResponse + """ + return self.show_log_backup_with_http_info(request) + + def show_log_backup_with_http_info(self, request): + """查询日志 + + 该接口用于查询日志信息。 + + :param ShowLogBackupRequest request + :return: ShowLogBackupResponse + """ + + all_params = ['cluster_id', 'get_log_backup_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/search', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowLogBackupResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_vpcep_connection(self, request): + """获取终端节点连接 + + 该接口用于获取终端节点连接。 + + :param ShowVpcepConnectionRequest request + :return: ShowVpcepConnectionResponse + """ + return self.show_vpcep_connection_with_http_info(request) + + def show_vpcep_connection_with_http_info(self, request): + """获取终端节点连接 + + 该接口用于获取终端节点连接。 + + :param ShowVpcepConnectionRequest request + :return: ShowVpcepConnectionResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowVpcepConnectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_auto_setting(self, request): + """自动设置集群快照的基础配置(不推荐使用) + + 说明:自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](https://support.huaweicloud.com/api-css/css_03_0030.html)。 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。 - “OBS桶”:快照存储的OBS桶位置。 - “备份路径”:快照在OBS桶中的存放路径。 - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。 + + :param StartAutoSettingRequest request + :return: StartAutoSettingResponse + """ + return self.start_auto_setting_with_http_info(request) + + def start_auto_setting_with_http_info(self, request): + """自动设置集群快照的基础配置(不推荐使用) + + 说明:自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](https://support.huaweicloud.com/api-css/css_03_0030.html)。 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。 - “OBS桶”:快照存储的OBS桶位置。 - “备份路径”:快照在OBS桶中的存放路径。 - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。 + + :param StartAutoSettingRequest request + :return: StartAutoSettingResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/auto_setting', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartAutoSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_log_auto_backup_policy(self, request): + """开启日志自动备份策略 + + 该接口用于日志自动备份策略开启。 + + :param StartLogAutoBackupPolicyRequest request + :return: StartLogAutoBackupPolicyResponse + """ + return self.start_log_auto_backup_policy_with_http_info(request) + + def start_log_auto_backup_policy_with_http_info(self, request): + """开启日志自动备份策略 + + 该接口用于日志自动备份策略开启。 + + :param StartLogAutoBackupPolicyRequest request + :return: StartLogAutoBackupPolicyResponse + """ + + all_params = ['cluster_id', 'start_log_auto_backup_policy_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/policy/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartLogAutoBackupPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_logs(self, request): + """开启日志功能 + + 该接口用于开启日志功能。 + + :param StartLogsRequest request + :return: StartLogsResponse + """ + return self.start_logs_with_http_info(request) + + def start_logs_with_http_info(self, request): + """开启日志功能 + + 该接口用于开启日志功能。 + + :param StartLogsRequest request + :return: StartLogsResponse + """ + + all_params = ['cluster_id', 'start_logs_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartLogsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_public_whitelist(self, request): + """开启公网访问控制白名单 + + 该接口用于开启公网访问控制白名单。 + + :param StartPublicWhitelistRequest request + :return: StartPublicWhitelistResponse + """ + return self.start_public_whitelist_with_http_info(request) + + def start_public_whitelist_with_http_info(self, request): + """开启公网访问控制白名单 + + 该接口用于开启公网访问控制白名单。 + + :param StartPublicWhitelistRequest request + :return: StartPublicWhitelistResponse + """ + + all_params = ['cluster_id', 'start_public_whitelist_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartPublicWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_vpecp(self, request): + """开启终端节点服务 + + 该接口用于开启终端节点服务。 + + :param StartVpecpRequest request + :return: StartVpecpResponse + """ + return self.start_vpecp_with_http_info(request) + + def start_vpecp_with_http_info(self, request): + """开启终端节点服务 + + 该接口用于开启终端节点服务。 + + :param StartVpecpRequest request + :return: StartVpecpResponse + """ + + all_params = ['cluster_id', 'start_vpecp_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartVpecpResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_log_auto_backup_policy(self, request): + """关闭日志自动备份策略 + + 该接口用于日志自动备份策略关闭。 + + :param StopLogAutoBackupPolicyRequest request + :return: StopLogAutoBackupPolicyResponse + """ + return self.stop_log_auto_backup_policy_with_http_info(request) + + def stop_log_auto_backup_policy_with_http_info(self, request): + """关闭日志自动备份策略 + + 该接口用于日志自动备份策略关闭。 + + :param StopLogAutoBackupPolicyRequest request + :return: StopLogAutoBackupPolicyResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/policy/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopLogAutoBackupPolicyResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_logs(self, request): + """关闭日志功能 + + 该接口用于关闭日志功能。 + + :param StopLogsRequest request + :return: StopLogsResponse + """ + return self.stop_logs_with_http_info(request) + + def stop_logs_with_http_info(self, request): + """关闭日志功能 + + 该接口用于关闭日志功能。 + + :param StopLogsRequest request + :return: StopLogsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopLogsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_public_whitelist(self, request): + """关闭公网访问控制白名单 + + 该接口用于关闭公网访问控制白名单。 + + :param StopPublicWhitelistRequest request + :return: StopPublicWhitelistResponse + """ + return self.stop_public_whitelist_with_http_info(request) + + def stop_public_whitelist_with_http_info(self, request): + """关闭公网访问控制白名单 + + 该接口用于关闭公网访问控制白名单。 + + :param StopPublicWhitelistRequest request + :return: StopPublicWhitelistResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopPublicWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_snapshot(self, request): + """停用快照功能 + + 该接口用于停用快照功能。 + + :param StopSnapshotRequest request + :return: StopSnapshotResponse + """ + return self.stop_snapshot_with_http_info(request) + + def stop_snapshot_with_http_info(self, request): + """停用快照功能 + + 该接口用于停用快照功能。 + + :param StopSnapshotRequest request + :return: StopSnapshotResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshots', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopSnapshotResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_vpecp(self, request): + """关闭终端节点服务 + + 该接口用于关闭终端节点服务。 + + :param StopVpecpRequest request + :return: StopVpecpResponse + """ + return self.stop_vpecp_with_http_info(request) + + def stop_vpecp_with_http_info(self, request): + """关闭终端节点服务 + + 该接口用于关闭终端节点服务。 + + :param StopVpecpRequest request + :return: StopVpecpResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopVpecpResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_batch_clusters_tags(self, request): + """批量添加或删除集群标签 + + 该接口用于批量添加或删除集群标签。 + + :param UpdateBatchClustersTagsRequest request + :return: UpdateBatchClustersTagsResponse + """ + return self.update_batch_clusters_tags_with_http_info(request) + + def update_batch_clusters_tags_with_http_info(self, request): + """批量添加或删除集群标签 + + 该接口用于批量添加或删除集群标签。 + + :param UpdateBatchClustersTagsRequest request + :return: UpdateBatchClustersTagsResponse + """ + + all_params = ['cluster_id', 'batch_add_or_delete_tag_on_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/css-cluster/{cluster_id}/tags/action', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateBatchClustersTagsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cluster_name(self, request): + """修改集群名称 + + 该接口用于修改集群名称。 + + :param UpdateClusterNameRequest request + :return: UpdateClusterNameResponse + """ + return self.update_cluster_name_with_http_info(request) + + def update_cluster_name_with_http_info(self, request): + """修改集群名称 + + 该接口用于修改集群名称。 + + :param UpdateClusterNameRequest request + :return: UpdateClusterNameResponse + """ + + all_params = ['cluster_id', 'update_cluster_name_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/changename', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateClusterNameResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_extend_cluster(self, request): + """扩容集群 + + 该接口用于集群扩容实例(仅支持扩容elasticsearch实例)。只扩容普通节点,且只针对要扩容的集群实例不存在特殊节点(Master、Client、冷数据节点)的情况。 说明:推荐使用[扩容实例的数量和存储容量](https://support.huaweicloud.com/api-css/css_03_0038.html)进行扩容。 + + :param UpdateExtendClusterRequest request + :return: UpdateExtendClusterResponse + """ + return self.update_extend_cluster_with_http_info(request) + + def update_extend_cluster_with_http_info(self, request): + """扩容集群 + + 该接口用于集群扩容实例(仅支持扩容elasticsearch实例)。只扩容普通节点,且只针对要扩容的集群实例不存在特殊节点(Master、Client、冷数据节点)的情况。 说明:推荐使用[扩容实例的数量和存储容量](https://support.huaweicloud.com/api-css/css_03_0038.html)进行扩容。 + + :param UpdateExtendClusterRequest request + :return: UpdateExtendClusterResponse + """ + + all_params = ['cluster_id', 'extend_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/extend', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateExtendClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_extend_instance_storage(self, request): + """扩容实例的数量和存储容量 + + 该接口用于集群扩容不同类型实例的个数以及存储容量。已经存在独立Master、Client、冷数据节点的集群使用该接口扩容。(支持扩容elasticsearch和logstash实例)。 + + :param UpdateExtendInstanceStorageRequest request + :return: UpdateExtendInstanceStorageResponse + """ + return self.update_extend_instance_storage_with_http_info(request) + + def update_extend_instance_storage_with_http_info(self, request): + """扩容实例的数量和存储容量 + + 该接口用于集群扩容不同类型实例的个数以及存储容量。已经存在独立Master、Client、冷数据节点的集群使用该接口扩容。(支持扩容elasticsearch和logstash实例)。 + + :param UpdateExtendInstanceStorageRequest request + :return: UpdateExtendInstanceStorageResponse + """ + + all_params = ['cluster_id', 'role_extend_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/role_extend', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateExtendInstanceStorageResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_log_setting(self, request): + """修改日志基础配置 + + 该接口用于修改日志基础配置。 + + :param UpdateLogSettingRequest request + :return: UpdateLogSettingResponse + """ + return self.update_log_setting_with_http_info(request) + + def update_log_setting_with_http_info(self, request): + """修改日志基础配置 + + 该接口用于修改日志基础配置。 + + :param UpdateLogSettingRequest request + :return: UpdateLogSettingResponse + """ + + all_params = ['cluster_id', 'update_log_setting_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/logs/settings', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateLogSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_ondemand_cluster_to_period(self, request): + """按需集群转包周期 + + 该接口用于按需集群转包周期集群。 + + :param UpdateOndemandClusterToPeriodRequest request + :return: UpdateOndemandClusterToPeriodResponse + """ + return self.update_ondemand_cluster_to_period_with_http_info(request) + + def update_ondemand_cluster_to_period_with_http_info(self, request): + """按需集群转包周期 + + 该接口用于按需集群转包周期集群。 + + :param UpdateOndemandClusterToPeriodRequest request + :return: UpdateOndemandClusterToPeriodResponse + """ + + all_params = ['cluster_id', 'period_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/cluster/{cluster_id}/period', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateOndemandClusterToPeriodResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_public_band_width(self, request): + """修改公网访问带宽 + + 该接口用于修改公网访问带宽。 + + :param UpdatePublicBandWidthRequest request + :return: UpdatePublicBandWidthResponse + """ + return self.update_public_band_width_with_http_info(request) + + def update_public_band_width_with_http_info(self, request): + """修改公网访问带宽 + + 该接口用于修改公网访问带宽。 + + :param UpdatePublicBandWidthRequest request + :return: UpdatePublicBandWidthResponse + """ + + all_params = ['cluster_id', 'bind_public_req_eip'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/bandwidth', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePublicBandWidthResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_snapshot_setting(self, request): + """修改集群快照的基础配置 + + 该接口用于修改集群快照的基础配置,可修改OBS桶和IAM委托。 说明:如果未开启快照功能,使用该接口后,将会开启快照。 + + :param UpdateSnapshotSettingRequest request + :return: UpdateSnapshotSettingResponse + """ + return self.update_snapshot_setting_with_http_info(request) + + def update_snapshot_setting_with_http_info(self, request): + """修改集群快照的基础配置 + + 该接口用于修改集群快照的基础配置,可修改OBS桶和IAM委托。 说明:如果未开启快照功能,使用该接口后,将会开启快照。 + + :param UpdateSnapshotSettingRequest request + :return: UpdateSnapshotSettingResponse + """ + + all_params = ['cluster_id', 'update_snapshot_setting_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/setting', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateSnapshotSettingResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_unbind_public(self, request): + """关闭公网访问 + + 该接口用于关闭公网访问。 + + :param UpdateUnbindPublicRequest request + :return: UpdateUnbindPublicResponse + """ + return self.update_unbind_public_with_http_info(request) + + def update_unbind_public_with_http_info(self, request): + """关闭公网访问 + + 该接口用于关闭公网访问。 + + :param UpdateUnbindPublicRequest request + :return: UpdateUnbindPublicResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/public/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateUnbindPublicResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_vpcep_connection(self, request): + """更新终端节点连接 + + 该接口用于更新终端节点连接。 + + :param UpdateVpcepConnectionRequest request + :return: UpdateVpcepConnectionResponse + """ + return self.update_vpcep_connection_with_http_info(request) + + def update_vpcep_connection_with_http_info(self, request): + """更新终端节点连接 + + 该接口用于更新终端节点连接。 + + :param UpdateVpcepConnectionRequest request + :return: UpdateVpcepConnectionResponse + """ + + all_params = ['cluster_id', 'update_vpcep_connection_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateVpcepConnectionResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_vpcep_whitelist(self, request): + """修改终端节点服务白名单 + + 该接口用于修改终端节点服务白名单。 + + :param UpdateVpcepWhitelistRequest request + :return: UpdateVpcepWhitelistResponse + """ + return self.update_vpcep_whitelist_with_http_info(request) + + def update_vpcep_whitelist_with_http_info(self, request): + """修改终端节点服务白名单 + + 该接口用于修改终端节点服务白名单。 + + :param UpdateVpcepWhitelistRequest request + :return: UpdateVpcepWhitelistResponse + """ + + all_params = ['cluster_id', 'update_vpcep_whitelist_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/permissions', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateVpcepWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_ymls(self, request): + """修改参数配置 + + 该接口用于修改参数配口。 + + :param UpdateYmlsRequest request + :return: UpdateYmlsResponse + """ + return self.update_ymls_with_http_info(request) + + def update_ymls_with_http_info(self, request): + """修改参数配置 + + 该接口用于修改参数配口。 + + :param UpdateYmlsRequest request + :return: UpdateYmlsResponse + """ + + all_params = ['cluster_id', 'update_ymls_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/ymls/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateYmlsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_kibana_public(self, request): + """开启Kibana公网访问 + + 该接口用于开启Kibana公网访问。 + + :param StartKibanaPublicRequest request + :return: StartKibanaPublicResponse + """ + return self.start_kibana_public_with_http_info(request) + + def start_kibana_public_with_http_info(self, request): + """开启Kibana公网访问 + + 该接口用于开启Kibana公网访问。 + + :param StartKibanaPublicRequest request + :return: StartKibanaPublicResponse + """ + + all_params = ['cluster_id', 'start_kibana_public_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartKibanaPublicResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_public_kibana_whitelist(self, request): + """关闭访问控制 + + 该接口用于关闭Kibana公网访问控制。 + + :param StopPublicKibanaWhitelistRequest request + :return: StopPublicKibanaWhitelistResponse + """ + return self.stop_public_kibana_whitelist_with_http_info(request) + + def stop_public_kibana_whitelist_with_http_info(self, request): + """关闭访问控制 + + 该接口用于关闭Kibana公网访问控制。 + + :param StopPublicKibanaWhitelistRequest request + :return: StopPublicKibanaWhitelistResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopPublicKibanaWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_alter_kibana(self, request): + """修改Kibana公网带宽 + + 该接口用于修改Kibana公网带宽。 + + :param UpdateAlterKibanaRequest request + :return: UpdateAlterKibanaResponse + """ + return self.update_alter_kibana_with_http_info(request) + + def update_alter_kibana_with_http_info(self, request): + """修改Kibana公网带宽 + + 该接口用于修改Kibana公网带宽。 + + :param UpdateAlterKibanaRequest request + :return: UpdateAlterKibanaResponse + """ + + all_params = ['cluster_id', 'update_public_kibana_bandwidth_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/bandwidth', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateAlterKibanaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_close_kibana(self, request): + """关闭Kibana公网访问 + + 该接口用于关闭Kibana公网访问。 + + :param UpdateCloseKibanaRequest request + :return: UpdateCloseKibanaResponse + """ + return self.update_close_kibana_with_http_info(request) + + def update_close_kibana_with_http_info(self, request): + """关闭Kibana公网访问 + + 该接口用于关闭Kibana公网访问。 + + :param UpdateCloseKibanaRequest request + :return: UpdateCloseKibanaResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCloseKibanaResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_public_kibana_whitelist(self, request): + """修改访问控制 + + 该接口通过修改kibana白名单,修改kibana的访问权限。 + + :param UpdatePublicKibanaWhitelistRequest request + :return: UpdatePublicKibanaWhitelistResponse + """ + return self.update_public_kibana_whitelist_with_http_info(request) + + def update_public_kibana_whitelist_with_http_info(self, request): + """修改访问控制 + + 该接口通过修改kibana白名单,修改kibana的访问权限。 + + :param UpdatePublicKibanaWhitelistRequest request + :return: UpdatePublicKibanaWhitelistResponse + """ + + all_params = ['cluster_id', 'update_public_kibana_whitelist_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdatePublicKibanaWhitelistResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def add_favorite(self, request): + """添加到自定义模板 + + 该接口用于添加到自定义模板。 + + :param AddFavoriteRequest request + :return: AddFavoriteResponse + """ + return self.add_favorite_with_http_info(request) + + def add_favorite_with_http_info(self, request): + """添加到自定义模板 + + 该接口用于添加到自定义模板。 + + :param AddFavoriteRequest request + :return: AddFavoriteResponse + """ + + all_params = ['cluster_id', 'add_favorite_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/favorite', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='AddFavoriteResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def create_cnf(self, request): + """创建配置文件 + + 该接口用于创建配置文件。 + + :param CreateCnfRequest request + :return: CreateCnfResponse + """ + return self.create_cnf_with_http_info(request) + + def create_cnf_with_http_info(self, request): + """创建配置文件 + + 该接口用于创建配置文件。 + + :param CreateCnfRequest request + :return: CreateCnfResponse + """ + + all_params = ['cluster_id', 'create_cnf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/submit', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateCnfResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_conf(self, request): + """删除配置文件 + + 删除配置文件。 + + :param DeleteConfRequest request + :return: DeleteConfResponse + """ + return self.delete_conf_with_http_info(request) + + def delete_conf_with_http_info(self, request): + """删除配置文件 + + 删除配置文件。 + + :param DeleteConfRequest request + :return: DeleteConfResponse + """ + + all_params = ['cluster_id', 'delete_conf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/delete', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteConfResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def delete_template(self, request): + """删除自定义模板 + + 该接口用于删除自定义模板。 + + :param DeleteTemplateRequest request + :return: DeleteTemplateResponse + """ + return self.delete_template_with_http_info(request) + + def delete_template_with_http_info(self, request): + """删除自定义模板 + + 该接口用于删除自定义模板。 + + :param DeleteTemplateRequest request + :return: DeleteTemplateResponse + """ + + all_params = ['cluster_id', 'delete_template_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/lgsconf/deletetemplate', + method='DELETE', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='DeleteTemplateResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_actions(self, request): + """查询操作记录 + + 该接口用于查询操作记录。 + + :param ListActionsRequest request + :return: ListActionsResponse + """ + return self.list_actions_with_http_info(request) + + def list_actions_with_http_info(self, request): + """查询操作记录 + + 该接口用于查询操作记录。 + + :param ListActionsRequest request + :return: ListActionsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listactions', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListActionsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_confs(self, request): + """查询配置文件列表 + + 该接口用于查询配置文件列表。 + + :param ListConfsRequest request + :return: ListConfsResponse + """ + return self.list_confs_with_http_info(request) + + def list_confs_with_http_info(self, request): + """查询配置文件列表 + + 该接口用于查询配置文件列表。 + + :param ListConfsRequest request + :return: ListConfsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listconfs', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListConfsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_pipelines(self, request): + """查询pipeline列表 + + 该接口用于查询pipeline列表。 + + :param ListPipelinesRequest request + :return: ListPipelinesResponse + """ + return self.list_pipelines_with_http_info(request) + + def list_pipelines_with_http_info(self, request): + """查询pipeline列表 + + 该接口用于查询pipeline列表。 + + :param ListPipelinesRequest request + :return: ListPipelinesResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listpipelines', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListPipelinesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def list_templates(self, request): + """查询模板列表 + + 该接口用于查询模板列表。 + + :param ListTemplatesRequest request + :return: ListTemplatesResponse + """ + return self.list_templates_with_http_info(request) + + def list_templates_with_http_info(self, request): + """查询模板列表 + + 该接口用于查询模板列表。 + + :param ListTemplatesRequest request + :return: ListTemplatesResponse + """ + + all_params = ['type'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/lgsconf/template', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTemplatesResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def show_get_conf_detail(self, request): + """查询配置文件内容 + + 该接口用于查询配置文件内容。 + + :param ShowGetConfDetailRequest request + :return: ShowGetConfDetailResponse + """ + return self.show_get_conf_detail_with_http_info(request) + + def show_get_conf_detail_with_http_info(self, request): + """查询配置文件内容 + + 该接口用于查询配置文件内容。 + + :param ShowGetConfDetailRequest request + :return: ShowGetConfDetailResponse + """ + + all_params = ['cluster_id', 'name'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/confdetail', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ShowGetConfDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_connectivity_test(self, request): + """连通性测试 + + 该接口用于连通性测试。 + + :param StartConnectivityTestRequest request + :return: StartConnectivityTestResponse + """ + return self.start_connectivity_test_with_http_info(request) + + def start_connectivity_test_with_http_info(self, request): + """连通性测试 + + 该接口用于连通性测试。 + + :param StartConnectivityTestRequest request + :return: StartConnectivityTestResponse + """ + + all_params = ['cluster_id', 'start_connectivity_test_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/checkconnection', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartConnectivityTestResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_pipeline(self, request): + """启动pipeline迁移数据 + + 该接口用于启动pipeline迁移数据。 + + :param StartPipelineRequest request + :return: StartPipelineResponse + """ + return self.start_pipeline_with_http_info(request) + + def start_pipeline_with_http_info(self, request): + """启动pipeline迁移数据 + + 该接口用于启动pipeline迁移数据。 + + :param StartPipelineRequest request + :return: StartPipelineResponse + """ + + all_params = ['cluster_id', 'start_pipeline_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/start', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartPipelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_pipeline(self, request): + """停止pipeline迁移数据 + + 该接口用于停止pipeline迁移数据。 + + :param StopPipelineRequest request + :return: StopPipelineResponse + """ + return self.stop_pipeline_with_http_info(request) + + def stop_pipeline_with_http_info(self, request): + """停止pipeline迁移数据 + + 该接口用于停止pipeline迁移数据。 + + :param StopPipelineRequest request + :return: StopPipelineResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/stop', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopPipelineResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def update_cnf(self, request): + """更新配置文件 + + 该接口用于更新配置文件。 + + :param UpdateCnfRequest request + :return: UpdateCnfResponse + """ + return self.update_cnf_with_http_info(request) + + def update_cnf_with_http_info(self, request): + """更新配置文件 + + 该接口用于更新配置文件。 + + :param UpdateCnfRequest request + :return: UpdateCnfResponse + """ + + all_params = ['cluster_id', 'update_cnf_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/update', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='UpdateCnfResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, 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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_exception.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_exception.py new file mode 100644 index 000000000..f3d3de83e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_exception.py @@ -0,0 +1,19 @@ +import json + +from huaweicloudsdkcpts.exceptions import exceptions + +class CssError: + def __init__(self, request_id=None, error_code=None, error_msg=None): + self.error_msg = error_msg + self.error_code = error_code + self.request_id = request_id + +def handle_exception(response_body): + css_error = CssError() + + css_error_dict = json.loads(response_body) + for key in css_error_dict: + if type(css_error_dict[key]) == dict and "error_code" in css_error_dict[key] and "error_msg" in \ + css_error_dict[key]: + css_error = CssError(css_error_dict[key]["request_id"], css_error_dict[key]["error_code"], css_error_dict[key]["error_msg"]) + return css_error \ No newline at end of file diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py new file mode 100644 index 000000000..c646a66ab --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkcss.v1.model.actions import Actions +from huaweicloudsdkcss.v1.model.add_favorite_req import AddFavoriteReq +from huaweicloudsdkcss.v1.model.add_favorite_req_template import AddFavoriteReqTemplate +from huaweicloudsdkcss.v1.model.add_favorite_request import AddFavoriteRequest +from huaweicloudsdkcss.v1.model.add_favorite_response import AddFavoriteResponse +from huaweicloudsdkcss.v1.model.address_and_ports import AddressAndPorts +from huaweicloudsdkcss.v1.model.batch_add_or_delete_tag_on_cluster_req import BatchAddOrDeleteTagOnClusterReq +from huaweicloudsdkcss.v1.model.bind_public_req import BindPublicReq +from huaweicloudsdkcss.v1.model.bind_public_req_eip import BindPublicReqEip +from huaweicloudsdkcss.v1.model.bind_public_req_eip_band_width import BindPublicReqEipBandWidth +from huaweicloudsdkcss.v1.model.cluster_list import ClusterList +from huaweicloudsdkcss.v1.model.cluster_list_action_progress import ClusterListActionProgress +from huaweicloudsdkcss.v1.model.cluster_list_datastore import ClusterListDatastore +from huaweicloudsdkcss.v1.model.cluster_list_failed_reasons import ClusterListFailedReasons +from huaweicloudsdkcss.v1.model.cluster_list_instances import ClusterListInstances +from huaweicloudsdkcss.v1.model.cluster_list_tags import ClusterListTags +from huaweicloudsdkcss.v1.model.config_list import ConfigList +from huaweicloudsdkcss.v1.model.confs import Confs +from huaweicloudsdkcss.v1.model.connections import Connections +from huaweicloudsdkcss.v1.model.create_auto_create_policy_request import CreateAutoCreatePolicyRequest +from huaweicloudsdkcss.v1.model.create_auto_create_policy_response import CreateAutoCreatePolicyResponse +from huaweicloudsdkcss.v1.model.create_bind_public_request import CreateBindPublicRequest +from huaweicloudsdkcss.v1.model.create_bind_public_response import CreateBindPublicResponse +from huaweicloudsdkcss.v1.model.create_cluster_backup_strategy_body import CreateClusterBackupStrategyBody +from huaweicloudsdkcss.v1.model.create_cluster_body import CreateClusterBody +from huaweicloudsdkcss.v1.model.create_cluster_cluster_response import CreateClusterClusterResponse +from huaweicloudsdkcss.v1.model.create_cluster_datastore_body import CreateClusterDatastoreBody +from huaweicloudsdkcss.v1.model.create_cluster_instance_body import CreateClusterInstanceBody +from huaweicloudsdkcss.v1.model.create_cluster_instance_nics_body import CreateClusterInstanceNicsBody +from huaweicloudsdkcss.v1.model.create_cluster_instance_volume_body import CreateClusterInstanceVolumeBody +from huaweicloudsdkcss.v1.model.create_cluster_req import CreateClusterReq +from huaweicloudsdkcss.v1.model.create_cluster_request import CreateClusterRequest +from huaweicloudsdkcss.v1.model.create_cluster_response import CreateClusterResponse +from huaweicloudsdkcss.v1.model.create_cluster_tags_body import CreateClusterTagsBody +from huaweicloudsdkcss.v1.model.create_clusters_tags_request import CreateClustersTagsRequest +from huaweicloudsdkcss.v1.model.create_clusters_tags_response import CreateClustersTagsResponse +from huaweicloudsdkcss.v1.model.create_cnf_req import CreateCnfReq +from huaweicloudsdkcss.v1.model.create_cnf_request import CreateCnfRequest +from huaweicloudsdkcss.v1.model.create_cnf_response import CreateCnfResponse +from huaweicloudsdkcss.v1.model.create_load_ik_thesaurus_request import CreateLoadIkThesaurusRequest +from huaweicloudsdkcss.v1.model.create_load_ik_thesaurus_response import CreateLoadIkThesaurusResponse +from huaweicloudsdkcss.v1.model.create_log_backup_request import CreateLogBackupRequest +from huaweicloudsdkcss.v1.model.create_log_backup_response import CreateLogBackupResponse +from huaweicloudsdkcss.v1.model.create_snapshot_req import CreateSnapshotReq +from huaweicloudsdkcss.v1.model.create_snapshot_request import CreateSnapshotRequest +from huaweicloudsdkcss.v1.model.create_snapshot_response import CreateSnapshotResponse +from huaweicloudsdkcss.v1.model.custom_templates import CustomTemplates +from huaweicloudsdkcss.v1.model.delete_cluster_request import DeleteClusterRequest +from huaweicloudsdkcss.v1.model.delete_cluster_response import DeleteClusterResponse +from huaweicloudsdkcss.v1.model.delete_clusters_tags_request import DeleteClustersTagsRequest +from huaweicloudsdkcss.v1.model.delete_clusters_tags_response import DeleteClustersTagsResponse +from huaweicloudsdkcss.v1.model.delete_conf_req import DeleteConfReq +from huaweicloudsdkcss.v1.model.delete_conf_request import DeleteConfRequest +from huaweicloudsdkcss.v1.model.delete_conf_response import DeleteConfResponse +from huaweicloudsdkcss.v1.model.delete_ik_thesaurus_request import DeleteIkThesaurusRequest +from huaweicloudsdkcss.v1.model.delete_ik_thesaurus_response import DeleteIkThesaurusResponse +from huaweicloudsdkcss.v1.model.delete_snapshot_request import DeleteSnapshotRequest +from huaweicloudsdkcss.v1.model.delete_snapshot_response import DeleteSnapshotResponse +from huaweicloudsdkcss.v1.model.delete_template_req import DeleteTemplateReq +from huaweicloudsdkcss.v1.model.delete_template_request import DeleteTemplateRequest +from huaweicloudsdkcss.v1.model.delete_template_response import DeleteTemplateResponse +from huaweicloudsdkcss.v1.model.esflavors_versions_flavors_resp import EsflavorsVersionsFlavorsResp +from huaweicloudsdkcss.v1.model.esflavors_versions_resp import EsflavorsVersionsResp +from huaweicloudsdkcss.v1.model.extend_cluster_grow_req import ExtendClusterGrowReq +from huaweicloudsdkcss.v1.model.extend_cluster_instances_resp import ExtendClusterInstancesResp +from huaweicloudsdkcss.v1.model.extend_cluster_req import ExtendClusterReq +from huaweicloudsdkcss.v1.model.get_log_backup_req import GetLogBackupReq +from huaweicloudsdkcss.v1.model.list_actions_request import ListActionsRequest +from huaweicloudsdkcss.v1.model.list_actions_response import ListActionsResponse +from huaweicloudsdkcss.v1.model.list_clusters_details_request import ListClustersDetailsRequest +from huaweicloudsdkcss.v1.model.list_clusters_details_response import ListClustersDetailsResponse +from huaweicloudsdkcss.v1.model.list_clusters_tags_request import ListClustersTagsRequest +from huaweicloudsdkcss.v1.model.list_clusters_tags_response import ListClustersTagsResponse +from huaweicloudsdkcss.v1.model.list_confs_request import ListConfsRequest +from huaweicloudsdkcss.v1.model.list_confs_response import ListConfsResponse +from huaweicloudsdkcss.v1.model.list_flavors_request import ListFlavorsRequest +from huaweicloudsdkcss.v1.model.list_flavors_response import ListFlavorsResponse +from huaweicloudsdkcss.v1.model.list_pipelines_request import ListPipelinesRequest +from huaweicloudsdkcss.v1.model.list_pipelines_response import ListPipelinesResponse +from huaweicloudsdkcss.v1.model.list_snapshot_backups_datastore_resp import ListSnapshotBackupsDatastoreResp +from huaweicloudsdkcss.v1.model.list_snapshot_backups_resp import ListSnapshotBackupsResp +from huaweicloudsdkcss.v1.model.list_snapshots_request import ListSnapshotsRequest +from huaweicloudsdkcss.v1.model.list_snapshots_response import ListSnapshotsResponse +from huaweicloudsdkcss.v1.model.list_templates_request import ListTemplatesRequest +from huaweicloudsdkcss.v1.model.list_templates_response import ListTemplatesResponse +from huaweicloudsdkcss.v1.model.list_ymls_job_request import ListYmlsJobRequest +from huaweicloudsdkcss.v1.model.list_ymls_job_response import ListYmlsJobResponse +from huaweicloudsdkcss.v1.model.list_ymls_request import ListYmlsRequest +from huaweicloudsdkcss.v1.model.list_ymls_response import ListYmlsResponse +from huaweicloudsdkcss.v1.model.load_custom_thesaurus_req import LoadCustomThesaurusReq +from huaweicloudsdkcss.v1.model.log_configuration import LogConfiguration +from huaweicloudsdkcss.v1.model.log_list import LogList +from huaweicloudsdkcss.v1.model.pay_info_body import PayInfoBody +from huaweicloudsdkcss.v1.model.period_req import PeriodReq +from huaweicloudsdkcss.v1.model.pipelines import Pipelines +from huaweicloudsdkcss.v1.model.reset_password_req import ResetPasswordReq +from huaweicloudsdkcss.v1.model.reset_password_request import ResetPasswordRequest +from huaweicloudsdkcss.v1.model.reset_password_response import ResetPasswordResponse +from huaweicloudsdkcss.v1.model.restart_cluster_request import RestartClusterRequest +from huaweicloudsdkcss.v1.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkcss.v1.model.restore_snapshot_req import RestoreSnapshotReq +from huaweicloudsdkcss.v1.model.restore_snapshot_request import RestoreSnapshotRequest +from huaweicloudsdkcss.v1.model.restore_snapshot_response import RestoreSnapshotResponse +from huaweicloudsdkcss.v1.model.result import Result +from huaweicloudsdkcss.v1.model.role_extend_grow_req import RoleExtendGrowReq +from huaweicloudsdkcss.v1.model.role_extend_req import RoleExtendReq +from huaweicloudsdkcss.v1.model.set_rds_backup_cnf_req import SetRDSBackupCnfReq +from huaweicloudsdkcss.v1.model.setting import Setting +from huaweicloudsdkcss.v1.model.show_all_tags_tags_resp import ShowAllTagsTagsResp +from huaweicloudsdkcss.v1.model.show_auto_create_policy_request import ShowAutoCreatePolicyRequest +from huaweicloudsdkcss.v1.model.show_auto_create_policy_response import ShowAutoCreatePolicyResponse +from huaweicloudsdkcss.v1.model.show_cluster_tag_request import ShowClusterTagRequest +from huaweicloudsdkcss.v1.model.show_cluster_tag_response import ShowClusterTagResponse +from huaweicloudsdkcss.v1.model.show_get_conf_detail_request import ShowGetConfDetailRequest +from huaweicloudsdkcss.v1.model.show_get_conf_detail_response import ShowGetConfDetailResponse +from huaweicloudsdkcss.v1.model.show_get_log_setting_request import ShowGetLogSettingRequest +from huaweicloudsdkcss.v1.model.show_get_log_setting_response import ShowGetLogSettingResponse +from huaweicloudsdkcss.v1.model.show_ik_thesaurus_request import ShowIkThesaurusRequest +from huaweicloudsdkcss.v1.model.show_ik_thesaurus_response import ShowIkThesaurusResponse +from huaweicloudsdkcss.v1.model.show_log_backup_request import ShowLogBackupRequest +from huaweicloudsdkcss.v1.model.show_log_backup_response import ShowLogBackupResponse +from huaweicloudsdkcss.v1.model.show_tags_tags_resp import ShowTagsTagsResp +from huaweicloudsdkcss.v1.model.show_vpcep_connection_request import ShowVpcepConnectionRequest +from huaweicloudsdkcss.v1.model.show_vpcep_connection_response import ShowVpcepConnectionResponse +from huaweicloudsdkcss.v1.model.start_auto_setting_request import StartAutoSettingRequest +from huaweicloudsdkcss.v1.model.start_auto_setting_response import StartAutoSettingResponse +from huaweicloudsdkcss.v1.model.start_connectivity_test_req import StartConnectivityTestReq +from huaweicloudsdkcss.v1.model.start_connectivity_test_request import StartConnectivityTestRequest +from huaweicloudsdkcss.v1.model.start_connectivity_test_response import StartConnectivityTestResponse +from huaweicloudsdkcss.v1.model.start_kibana_public_req import StartKibanaPublicReq +from huaweicloudsdkcss.v1.model.start_kibana_public_req_elb_whitelist import StartKibanaPublicReqElbWhitelist +from huaweicloudsdkcss.v1.model.start_kibana_public_request import StartKibanaPublicRequest +from huaweicloudsdkcss.v1.model.start_kibana_public_response import StartKibanaPublicResponse +from huaweicloudsdkcss.v1.model.start_log_auto_backup_policy_req import StartLogAutoBackupPolicyReq +from huaweicloudsdkcss.v1.model.start_log_auto_backup_policy_request import StartLogAutoBackupPolicyRequest +from huaweicloudsdkcss.v1.model.start_log_auto_backup_policy_response import StartLogAutoBackupPolicyResponse +from huaweicloudsdkcss.v1.model.start_logs_req import StartLogsReq +from huaweicloudsdkcss.v1.model.start_logs_request import StartLogsRequest +from huaweicloudsdkcss.v1.model.start_logs_response import StartLogsResponse +from huaweicloudsdkcss.v1.model.start_pipeline_req import StartPipelineReq +from huaweicloudsdkcss.v1.model.start_pipeline_request import StartPipelineRequest +from huaweicloudsdkcss.v1.model.start_pipeline_response import StartPipelineResponse +from huaweicloudsdkcss.v1.model.start_public_whitelist_req import StartPublicWhitelistReq +from huaweicloudsdkcss.v1.model.start_public_whitelist_request import StartPublicWhitelistRequest +from huaweicloudsdkcss.v1.model.start_public_whitelist_response import StartPublicWhitelistResponse +from huaweicloudsdkcss.v1.model.start_vpecp_req import StartVpecpReq +from huaweicloudsdkcss.v1.model.start_vpecp_request import StartVpecpRequest +from huaweicloudsdkcss.v1.model.start_vpecp_response import StartVpecpResponse +from huaweicloudsdkcss.v1.model.stop_log_auto_backup_policy_request import StopLogAutoBackupPolicyRequest +from huaweicloudsdkcss.v1.model.stop_log_auto_backup_policy_response import StopLogAutoBackupPolicyResponse +from huaweicloudsdkcss.v1.model.stop_logs_request import StopLogsRequest +from huaweicloudsdkcss.v1.model.stop_logs_response import StopLogsResponse +from huaweicloudsdkcss.v1.model.stop_pipeline_request import StopPipelineRequest +from huaweicloudsdkcss.v1.model.stop_pipeline_response import StopPipelineResponse +from huaweicloudsdkcss.v1.model.stop_public_kibana_whitelist_request import StopPublicKibanaWhitelistRequest +from huaweicloudsdkcss.v1.model.stop_public_kibana_whitelist_response import StopPublicKibanaWhitelistResponse +from huaweicloudsdkcss.v1.model.stop_public_whitelist_request import StopPublicWhitelistRequest +from huaweicloudsdkcss.v1.model.stop_public_whitelist_response import StopPublicWhitelistResponse +from huaweicloudsdkcss.v1.model.stop_snapshot_request import StopSnapshotRequest +from huaweicloudsdkcss.v1.model.stop_snapshot_response import StopSnapshotResponse +from huaweicloudsdkcss.v1.model.stop_vpecp_request import StopVpecpRequest +from huaweicloudsdkcss.v1.model.stop_vpecp_response import StopVpecpResponse +from huaweicloudsdkcss.v1.model.sys_tags import SysTags +from huaweicloudsdkcss.v1.model.system_templates import SystemTemplates +from huaweicloudsdkcss.v1.model.tag import Tag +from huaweicloudsdkcss.v1.model.tag_list import TagList +from huaweicloudsdkcss.v1.model.tag_req import TagReq +from huaweicloudsdkcss.v1.model.update_alter_kibana_request import UpdateAlterKibanaRequest +from huaweicloudsdkcss.v1.model.update_alter_kibana_response import UpdateAlterKibanaResponse +from huaweicloudsdkcss.v1.model.update_batch_clusters_tags_request import UpdateBatchClustersTagsRequest +from huaweicloudsdkcss.v1.model.update_batch_clusters_tags_response import UpdateBatchClustersTagsResponse +from huaweicloudsdkcss.v1.model.update_close_kibana_request import UpdateCloseKibanaRequest +from huaweicloudsdkcss.v1.model.update_close_kibana_response import UpdateCloseKibanaResponse +from huaweicloudsdkcss.v1.model.update_cluster_name_req import UpdateClusterNameReq +from huaweicloudsdkcss.v1.model.update_cluster_name_request import UpdateClusterNameRequest +from huaweicloudsdkcss.v1.model.update_cluster_name_response import UpdateClusterNameResponse +from huaweicloudsdkcss.v1.model.update_cnf_request import UpdateCnfRequest +from huaweicloudsdkcss.v1.model.update_cnf_response import UpdateCnfResponse +from huaweicloudsdkcss.v1.model.update_extend_cluster_request import UpdateExtendClusterRequest +from huaweicloudsdkcss.v1.model.update_extend_cluster_response import UpdateExtendClusterResponse +from huaweicloudsdkcss.v1.model.update_extend_instance_storage_request import UpdateExtendInstanceStorageRequest +from huaweicloudsdkcss.v1.model.update_extend_instance_storage_response import UpdateExtendInstanceStorageResponse +from huaweicloudsdkcss.v1.model.update_log_setting_req import UpdateLogSettingReq +from huaweicloudsdkcss.v1.model.update_log_setting_request import UpdateLogSettingRequest +from huaweicloudsdkcss.v1.model.update_log_setting_response import UpdateLogSettingResponse +from huaweicloudsdkcss.v1.model.update_ondemand_cluster_to_period_request import UpdateOndemandClusterToPeriodRequest +from huaweicloudsdkcss.v1.model.update_ondemand_cluster_to_period_response import UpdateOndemandClusterToPeriodResponse +from huaweicloudsdkcss.v1.model.update_public_band_width_request import UpdatePublicBandWidthRequest +from huaweicloudsdkcss.v1.model.update_public_band_width_response import UpdatePublicBandWidthResponse +from huaweicloudsdkcss.v1.model.update_public_kibana_bandwidth_req import UpdatePublicKibanaBandwidthReq +from huaweicloudsdkcss.v1.model.update_public_kibana_bandwidth_req_band_width import UpdatePublicKibanaBandwidthReqBandWidth +from huaweicloudsdkcss.v1.model.update_public_kibana_whitelist_req import UpdatePublicKibanaWhitelistReq +from huaweicloudsdkcss.v1.model.update_public_kibana_whitelist_request import UpdatePublicKibanaWhitelistRequest +from huaweicloudsdkcss.v1.model.update_public_kibana_whitelist_response import UpdatePublicKibanaWhitelistResponse +from huaweicloudsdkcss.v1.model.update_snapshot_setting_req import UpdateSnapshotSettingReq +from huaweicloudsdkcss.v1.model.update_snapshot_setting_request import UpdateSnapshotSettingRequest +from huaweicloudsdkcss.v1.model.update_snapshot_setting_response import UpdateSnapshotSettingResponse +from huaweicloudsdkcss.v1.model.update_unbind_public_request import UpdateUnbindPublicRequest +from huaweicloudsdkcss.v1.model.update_unbind_public_response import UpdateUnbindPublicResponse +from huaweicloudsdkcss.v1.model.update_vpcep_connection_req import UpdateVpcepConnectionReq +from huaweicloudsdkcss.v1.model.update_vpcep_connection_request import UpdateVpcepConnectionRequest +from huaweicloudsdkcss.v1.model.update_vpcep_connection_response import UpdateVpcepConnectionResponse +from huaweicloudsdkcss.v1.model.update_vpcep_whitelist_req import UpdateVpcepWhitelistReq +from huaweicloudsdkcss.v1.model.update_vpcep_whitelist_request import UpdateVpcepWhitelistRequest +from huaweicloudsdkcss.v1.model.update_vpcep_whitelist_response import UpdateVpcepWhitelistResponse +from huaweicloudsdkcss.v1.model.update_ymls_req import UpdateYmlsReq +from huaweicloudsdkcss.v1.model.update_ymls_req_edit import UpdateYmlsReqEdit +from huaweicloudsdkcss.v1.model.update_ymls_req_edit_modify import UpdateYmlsReqEditModify +from huaweicloudsdkcss.v1.model.update_ymls_request import UpdateYmlsRequest +from huaweicloudsdkcss.v1.model.update_ymls_response import UpdateYmlsResponse diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/actions.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/actions.py new file mode 100644 index 000000000..73c9654aa --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/actions.py @@ -0,0 +1,276 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Actions: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'action_type': 'str', + 'conf_content': 'str', + 'status': 'str', + 'update_at': 'str', + 'error_msg': 'str', + 'message': 'str' + } + + attribute_map = { + 'id': 'id', + 'action_type': 'actionType', + 'conf_content': 'confContent', + 'status': 'status', + 'update_at': 'updateAt', + 'error_msg': 'errorMsg', + 'message': 'message' + } + + def __init__(self, id=None, action_type=None, conf_content=None, status=None, update_at=None, error_msg=None, message=None): + """Actions - a model defined in huaweicloud sdk""" + + + + self._id = None + self._action_type = None + self._conf_content = None + self._status = None + self._update_at = None + self._error_msg = None + self._message = None + self.discriminator = None + + if id is not None: + self.id = id + if action_type is not None: + self.action_type = action_type + if conf_content is not None: + self.conf_content = conf_content + if status is not None: + self.status = status + if update_at is not None: + self.update_at = update_at + if error_msg is not None: + self.error_msg = error_msg + if message is not None: + self.message = message + + @property + def id(self): + """Gets the id of this Actions. + + 操作记录id。 + + :return: The id of this Actions. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Actions. + + 操作记录id。 + + :param id: The id of this Actions. + :type: str + """ + self._id = id + + @property + def action_type(self): + """Gets the action_type of this Actions. + + 操作类型。 + + :return: The action_type of this Actions. + :rtype: str + """ + return self._action_type + + @action_type.setter + def action_type(self, action_type): + """Sets the action_type of this Actions. + + 操作类型。 + + :param action_type: The action_type of this Actions. + :type: str + """ + self._action_type = action_type + + @property + def conf_content(self): + """Gets the conf_content of this Actions. + + 配置文件内容。 + + :return: The conf_content of this Actions. + :rtype: str + """ + return self._conf_content + + @conf_content.setter + def conf_content(self, conf_content): + """Sets the conf_content of this Actions. + + 配置文件内容。 + + :param conf_content: The conf_content of this Actions. + :type: str + """ + self._conf_content = conf_content + + @property + def status(self): + """Gets the status of this Actions. + + 操作状态。 + + :return: The status of this Actions. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Actions. + + 操作状态。 + + :param status: The status of this Actions. + :type: str + """ + self._status = status + + @property + def update_at(self): + """Gets the update_at of this Actions. + + 更新时间。 + + :return: The update_at of this Actions. + :rtype: str + """ + return self._update_at + + @update_at.setter + def update_at(self, update_at): + """Sets the update_at of this Actions. + + 更新时间。 + + :param update_at: The update_at of this Actions. + :type: str + """ + self._update_at = update_at + + @property + def error_msg(self): + """Gets the error_msg of this Actions. + + 错误信息。 + + :return: The error_msg of this Actions. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this Actions. + + 错误信息。 + + :param error_msg: The error_msg of this Actions. + :type: str + """ + self._error_msg = error_msg + + @property + def message(self): + """Gets the message of this Actions. + + 内容。 + + :return: The message of this Actions. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Actions. + + 内容。 + + :param message: The message of this Actions. + :type: str + """ + self._message = 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, Actions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/plan_record_time.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req.py similarity index 54% rename from huaweicloud-sdk-live/huaweicloudsdklive/v1/model/plan_record_time.py rename to huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req.py index 627f677e5..fad8caf2d 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/plan_record_time.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req.py @@ -8,7 +8,7 @@ import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization -class PlanRecordTime: +class AddFavoriteReq: """ @@ -22,71 +22,68 @@ class PlanRecordTime: sensitive_list = [] openapi_types = { - 'start_time': 'date', - 'end_time': 'date' + 'name': 'str', + 'template': 'AddFavoriteReqTemplate' } attribute_map = { - 'start_time': 'start_time', - 'end_time': 'end_time' + 'name': 'name', + 'template': 'template' } - def __init__(self, start_time=None, end_time=None): - """PlanRecordTime - a model defined in huaweicloud sdk""" + def __init__(self, name=None, template=None): + """AddFavoriteReq - a model defined in huaweicloud sdk""" - self._start_time = None - self._end_time = None + self._name = None + self._template = None self.discriminator = None - self.start_time = start_time - if end_time is not None: - self.end_time = end_time + self.name = name + self.template = template @property - def start_time(self): - """Gets the start_time of this PlanRecordTime. + def name(self): + """Gets the name of this AddFavoriteReq. - 录制开始时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间。 + 自定义模板名称。 - :return: The start_time of this PlanRecordTime. - :rtype: date + :return: The name of this AddFavoriteReq. + :rtype: str """ - return self._start_time + return self._name - @start_time.setter - def start_time(self, start_time): - """Sets the start_time of this PlanRecordTime. + @name.setter + def name(self, name): + """Sets the name of this AddFavoriteReq. - 录制开始时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间。 + 自定义模板名称。 - :param start_time: The start_time of this PlanRecordTime. - :type: date + :param name: The name of this AddFavoriteReq. + :type: str """ - self._start_time = start_time + self._name = name @property - def end_time(self): - """Gets the end_time of this PlanRecordTime. + def template(self): + """Gets the template of this AddFavoriteReq. - 录制结束时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间。如果填写,填写的时间必须晚于当前时间。如果不填写,则在计划录制触发后不停止。 - :return: The end_time of this PlanRecordTime. - :rtype: date + :return: The template of this AddFavoriteReq. + :rtype: AddFavoriteReqTemplate """ - return self._end_time + return self._template - @end_time.setter - def end_time(self, end_time): - """Sets the end_time of this PlanRecordTime. + @template.setter + def template(self, template): + """Sets the template of this AddFavoriteReq. - 录制结束时间,格式:yyyy-mm-ddThh:mm:ssZ,UTC时间。如果填写,填写的时间必须晚于当前时间。如果不填写,则在计划录制触发后不停止。 - :param end_time: The end_time of this PlanRecordTime. - :type: date + :param template: The template of this AddFavoriteReq. + :type: AddFavoriteReqTemplate """ - self._end_time = end_time + self._template = template def to_dict(self): """Returns the model properties as a dict""" @@ -130,7 +127,7 @@ class PlanRecordTime: def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, PlanRecordTime): + if not isinstance(other, AddFavoriteReq): return False return self.__dict__ == other.__dict__ diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req_template.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req_template.py new file mode 100644 index 000000000..5f507077c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_req_template.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddFavoriteReqTemplate: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'template_name': 'str', + 'desc': 'str' + } + + attribute_map = { + 'template_name': 'templateName', + 'desc': 'desc' + } + + def __init__(self, template_name=None, desc=None): + """AddFavoriteReqTemplate - a model defined in huaweicloud sdk""" + + + + self._template_name = None + self._desc = None + self.discriminator = None + + self.template_name = template_name + if desc is not None: + self.desc = desc + + @property + def template_name(self): + """Gets the template_name of this AddFavoriteReqTemplate. + + 模板名称。 + + :return: The template_name of this AddFavoriteReqTemplate. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this AddFavoriteReqTemplate. + + 模板名称。 + + :param template_name: The template_name of this AddFavoriteReqTemplate. + :type: str + """ + self._template_name = template_name + + @property + def desc(self): + """Gets the desc of this AddFavoriteReqTemplate. + + 模板描述。 + + :return: The desc of this AddFavoriteReqTemplate. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this AddFavoriteReqTemplate. + + 模板描述。 + + :param desc: The desc of this AddFavoriteReqTemplate. + :type: str + """ + self._desc = desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddFavoriteReqTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_request.py new file mode 100644 index 000000000..9410698ca --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddFavoriteRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'AddFavoriteReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """AddFavoriteRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this AddFavoriteRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this AddFavoriteRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this AddFavoriteRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this AddFavoriteRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this AddFavoriteRequest. + + + :return: The body of this AddFavoriteRequest. + :rtype: AddFavoriteReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AddFavoriteRequest. + + + :param body: The body of this AddFavoriteRequest. + :type: AddFavoriteReq + """ + 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, AddFavoriteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_response.py new file mode 100644 index 000000000..838395214 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/add_favorite_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddFavoriteResponse(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): + """AddFavoriteResponse - a model defined in huaweicloud sdk""" + + super(AddFavoriteResponse, 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, AddFavoriteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/address_and_ports.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/address_and_ports.py new file mode 100644 index 000000000..5ce540a61 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/address_and_ports.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddressAndPorts: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'port': 'int', + 'status': 'int' + } + + attribute_map = { + 'address': 'address', + 'port': 'port', + 'status': 'status' + } + + def __init__(self, address=None, port=None, status=None): + """AddressAndPorts - a model defined in huaweicloud sdk""" + + + + self._address = None + self._port = None + self._status = None + self.discriminator = None + + self.address = address + if port is not None: + self.port = port + if status is not None: + self.status = status + + @property + def address(self): + """Gets the address of this AddressAndPorts. + + IP地址或域名。 + + :return: The address of this AddressAndPorts. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this AddressAndPorts. + + IP地址或域名。 + + :param address: The address of this AddressAndPorts. + :type: str + """ + self._address = address + + @property + def port(self): + """Gets the port of this AddressAndPorts. + + 端口号。 + + :return: The port of this AddressAndPorts. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this AddressAndPorts. + + 端口号。 + + :param port: The port of this AddressAndPorts. + :type: int + """ + self._port = port + + @property + def status(self): + """Gets the status of this AddressAndPorts. + + 联通状态 + + :return: The status of this AddressAndPorts. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AddressAndPorts. + + 联通状态 + + :param status: The status of this AddressAndPorts. + :type: int + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddressAndPorts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/batch_add_or_delete_tag_on_cluster_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/batch_add_or_delete_tag_on_cluster_req.py new file mode 100644 index 000000000..7ad12af5a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/batch_add_or_delete_tag_on_cluster_req.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchAddOrDeleteTagOnClusterReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'action': 'str', + 'tags': 'list[TagList]', + 'sys_tags': 'list[SysTags]' + } + + attribute_map = { + 'action': 'action', + 'tags': 'tags', + 'sys_tags': 'sysTags' + } + + def __init__(self, action=None, tags=None, sys_tags=None): + """BatchAddOrDeleteTagOnClusterReq - a model defined in huaweicloud sdk""" + + + + self._action = None + self._tags = None + self._sys_tags = None + self.discriminator = None + + self.action = action + self.tags = tags + if sys_tags is not None: + self.sys_tags = sys_tags + + @property + def action(self): + """Gets the action of this BatchAddOrDeleteTagOnClusterReq. + + 操作类型。 说明:通过该属性标识当前所需的操作类型。 - create:批量添加标签。 - delete:批量删除标签。 + + :return: The action of this BatchAddOrDeleteTagOnClusterReq. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this BatchAddOrDeleteTagOnClusterReq. + + 操作类型。 说明:通过该属性标识当前所需的操作类型。 - create:批量添加标签。 - delete:批量删除标签。 + + :param action: The action of this BatchAddOrDeleteTagOnClusterReq. + :type: str + """ + self._action = action + + @property + def tags(self): + """Gets the tags of this BatchAddOrDeleteTagOnClusterReq. + + 标签列表 + + :return: The tags of this BatchAddOrDeleteTagOnClusterReq. + :rtype: list[TagList] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this BatchAddOrDeleteTagOnClusterReq. + + 标签列表 + + :param tags: The tags of this BatchAddOrDeleteTagOnClusterReq. + :type: list[TagList] + """ + self._tags = tags + + @property + def sys_tags(self): + """Gets the sys_tags of this BatchAddOrDeleteTagOnClusterReq. + + 标签列表 + + :return: The sys_tags of this BatchAddOrDeleteTagOnClusterReq. + :rtype: list[SysTags] + """ + return self._sys_tags + + @sys_tags.setter + def sys_tags(self, sys_tags): + """Sets the sys_tags of this BatchAddOrDeleteTagOnClusterReq. + + 标签列表 + + :param sys_tags: The sys_tags of this BatchAddOrDeleteTagOnClusterReq. + :type: list[SysTags] + """ + self._sys_tags = sys_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, BatchAddOrDeleteTagOnClusterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req.py new file mode 100644 index 000000000..e6b922935 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindPublicReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BindPublicReqEip', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'eip': 'eip', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, eip=None, is_auto_pay=None): + """BindPublicReq - a model defined in huaweicloud sdk""" + + + + self._eip = None + self._is_auto_pay = None + self.discriminator = None + + self.eip = eip + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def eip(self): + """Gets the eip of this BindPublicReq. + + + :return: The eip of this BindPublicReq. + :rtype: BindPublicReqEip + """ + return self._eip + + @eip.setter + def eip(self, eip): + """Sets the eip of this BindPublicReq. + + + :param eip: The eip of this BindPublicReq. + :type: BindPublicReqEip + """ + self._eip = eip + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this BindPublicReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this BindPublicReq. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this BindPublicReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this BindPublicReq. + :type: int + """ + 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, BindPublicReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip.py new file mode 100644 index 000000000..344102f28 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindPublicReqEip: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'band_width': 'BindPublicReqEipBandWidth', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'band_width': 'bandWidth', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, band_width=None, is_auto_pay=None): + """BindPublicReqEip - a model defined in huaweicloud sdk""" + + + + self._band_width = None + self._is_auto_pay = None + self.discriminator = None + + self.band_width = band_width + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def band_width(self): + """Gets the band_width of this BindPublicReqEip. + + + :return: The band_width of this BindPublicReqEip. + :rtype: BindPublicReqEipBandWidth + """ + return self._band_width + + @band_width.setter + def band_width(self, band_width): + """Sets the band_width of this BindPublicReqEip. + + + :param band_width: The band_width of this BindPublicReqEip. + :type: BindPublicReqEipBandWidth + """ + self._band_width = band_width + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this BindPublicReqEip. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this BindPublicReqEip. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this BindPublicReqEip. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this BindPublicReqEip. + :type: int + """ + 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, BindPublicReqEip): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip_band_width.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip_band_width.py new file mode 100644 index 000000000..9741ff678 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/bind_public_req_eip_band_width.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindPublicReqEipBandWidth: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'size': 'int' + } + + attribute_map = { + 'size': 'size' + } + + def __init__(self, size=None): + """BindPublicReqEipBandWidth - a model defined in huaweicloud sdk""" + + + + self._size = None + self.discriminator = None + + self.size = size + + @property + def size(self): + """Gets the size of this BindPublicReqEipBandWidth. + + 带宽大小。 + + :return: The size of this BindPublicReqEipBandWidth. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BindPublicReqEipBandWidth. + + 带宽大小。 + + :param size: The size of this BindPublicReqEipBandWidth. + :type: 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, BindPublicReqEipBandWidth): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list.py new file mode 100644 index 000000000..49f1c6299 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list.py @@ -0,0 +1,592 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterList: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'datastore': 'ClusterListDatastore', + 'instances': 'list[ClusterListInstances]', + 'updated': 'str', + 'name': 'str', + 'created': 'str', + 'id': 'str', + 'status': 'str', + 'endpoint': 'str', + 'action_progress': 'ClusterListActionProgress', + 'actions': 'list[str]', + 'failed_reasons': 'ClusterListFailedReasons', + 'authority_enable': 'bool', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str', + 'enterprise_project_id': 'str', + 'period': 'bool', + 'https_enable': 'bool', + 'tags': 'list[ClusterListTags]' + } + + attribute_map = { + 'datastore': 'datastore', + 'instances': 'instances', + 'updated': 'updated', + 'name': 'name', + 'created': 'created', + 'id': 'id', + 'status': 'status', + 'endpoint': 'endpoint', + 'action_progress': 'actionProgress', + 'actions': 'actions', + 'failed_reasons': 'failed_reasons', + 'authority_enable': 'authorityEnable', + 'vpc_id': 'vpcId', + 'subnet_id': 'subnetId', + 'security_group_id': 'securityGroupId', + 'enterprise_project_id': 'enterprise_project_id', + 'period': 'period', + 'https_enable': 'httpsEnable', + 'tags': 'tags' + } + + def __init__(self, datastore=None, instances=None, updated=None, name=None, created=None, id=None, status=None, endpoint=None, action_progress=None, actions=None, failed_reasons=None, authority_enable=None, vpc_id=None, subnet_id=None, security_group_id=None, enterprise_project_id=None, period=None, https_enable=None, tags=None): + """ClusterList - a model defined in huaweicloud sdk""" + + + + self._datastore = None + self._instances = None + self._updated = None + self._name = None + self._created = None + self._id = None + self._status = None + self._endpoint = None + self._action_progress = None + self._actions = None + self._failed_reasons = None + self._authority_enable = None + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self._enterprise_project_id = None + self._period = None + self._https_enable = None + self._tags = None + self.discriminator = None + + if datastore is not None: + self.datastore = datastore + if instances is not None: + self.instances = instances + if updated is not None: + self.updated = updated + if name is not None: + self.name = name + if created is not None: + self.created = created + if id is not None: + self.id = id + if status is not None: + self.status = status + if endpoint is not None: + self.endpoint = endpoint + if action_progress is not None: + self.action_progress = action_progress + if actions is not None: + self.actions = actions + if failed_reasons is not None: + self.failed_reasons = failed_reasons + if authority_enable is not None: + self.authority_enable = authority_enable + 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 enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if period is not None: + self.period = period + if https_enable is not None: + self.https_enable = https_enable + if tags is not None: + self.tags = tags + + @property + def datastore(self): + """Gets the datastore of this ClusterList. + + + :return: The datastore of this ClusterList. + :rtype: ClusterListDatastore + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this ClusterList. + + + :param datastore: The datastore of this ClusterList. + :type: ClusterListDatastore + """ + self._datastore = datastore + + @property + def instances(self): + """Gets the instances of this ClusterList. + + 节点对象列表。 + + :return: The instances of this ClusterList. + :rtype: list[ClusterListInstances] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this ClusterList. + + 节点对象列表。 + + :param instances: The instances of this ClusterList. + :type: list[ClusterListInstances] + """ + self._instances = instances + + @property + def updated(self): + """Gets the updated of this ClusterList. + + 集群上次修改时间,格式为ISO8601: CCYY-MM-DDThh:mm:ss。 + + :return: The updated of this ClusterList. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this ClusterList. + + 集群上次修改时间,格式为ISO8601: CCYY-MM-DDThh:mm:ss。 + + :param updated: The updated of this ClusterList. + :type: str + """ + self._updated = updated + + @property + def name(self): + """Gets the name of this ClusterList. + + 集群名称。 + + :return: The name of this ClusterList. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ClusterList. + + 集群名称。 + + :param name: The name of this ClusterList. + :type: str + """ + self._name = name + + @property + def created(self): + """Gets the created of this ClusterList. + + 集群创建时间,格式为ISO8601: CCYY-MM-DDThh:mm:ss。 说明:返回的集群列表信息按照创建时间降序排序,即创建时间最新的集群排在最前。 + + :return: The created of this ClusterList. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this ClusterList. + + 集群创建时间,格式为ISO8601: CCYY-MM-DDThh:mm:ss。 说明:返回的集群列表信息按照创建时间降序排序,即创建时间最新的集群排在最前。 + + :param created: The created of this ClusterList. + :type: str + """ + self._created = created + + @property + def id(self): + """Gets the id of this ClusterList. + + 集群ID。 + + :return: The id of this ClusterList. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ClusterList. + + 集群ID。 + + :param id: The id of this ClusterList. + :type: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this ClusterList. + + 查询返回值。 - 100:创建中。 - 200:可用。 - 303:不可用,如创建失败。 + + :return: The status of this ClusterList. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ClusterList. + + 查询返回值。 - 100:创建中。 - 200:可用。 - 303:不可用,如创建失败。 + + :param status: The status of this ClusterList. + :type: str + """ + self._status = status + + @property + def endpoint(self): + """Gets the endpoint of this ClusterList. + + 用户VPC访问IP地址和端口号。 + + :return: The endpoint of this ClusterList. + :rtype: str + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this ClusterList. + + 用户VPC访问IP地址和端口号。 + + :param endpoint: The endpoint of this ClusterList. + :type: str + """ + self._endpoint = endpoint + + @property + def action_progress(self): + """Gets the action_progress of this ClusterList. + + + :return: The action_progress of this ClusterList. + :rtype: ClusterListActionProgress + """ + return self._action_progress + + @action_progress.setter + def action_progress(self, action_progress): + """Sets the action_progress of this ClusterList. + + + :param action_progress: The action_progress of this ClusterList. + :type: ClusterListActionProgress + """ + self._action_progress = action_progress + + @property + def actions(self): + """Gets the actions of this ClusterList. + + 集群当前行为,REBOOTING表示重启,GROWING表示扩容,RESTORING表示恢复集群,SNAPSHOTTING表示创建快照。 + + :return: The actions of this ClusterList. + :rtype: list[str] + """ + return self._actions + + @actions.setter + def actions(self, actions): + """Sets the actions of this ClusterList. + + 集群当前行为,REBOOTING表示重启,GROWING表示扩容,RESTORING表示恢复集群,SNAPSHOTTING表示创建快照。 + + :param actions: The actions of this ClusterList. + :type: list[str] + """ + self._actions = actions + + @property + def failed_reasons(self): + """Gets the failed_reasons of this ClusterList. + + + :return: The failed_reasons of this ClusterList. + :rtype: ClusterListFailedReasons + """ + return self._failed_reasons + + @failed_reasons.setter + def failed_reasons(self, failed_reasons): + """Sets the failed_reasons of this ClusterList. + + + :param failed_reasons: The failed_reasons of this ClusterList. + :type: ClusterListFailedReasons + """ + self._failed_reasons = failed_reasons + + @property + def authority_enable(self): + """Gets the authority_enable of this ClusterList. + + 是否开启认证,取值范围为true或false。默认关闭认证功能。当开启认证时,httpsEnable需要设置为true。 - true:表示集群开启认证。 - false:表示集群不开启认证。 + + :return: The authority_enable of this ClusterList. + :rtype: bool + """ + return self._authority_enable + + @authority_enable.setter + def authority_enable(self, authority_enable): + """Sets the authority_enable of this ClusterList. + + 是否开启认证,取值范围为true或false。默认关闭认证功能。当开启认证时,httpsEnable需要设置为true。 - true:表示集群开启认证。 - false:表示集群不开启认证。 + + :param authority_enable: The authority_enable of this ClusterList. + :type: bool + """ + self._authority_enable = authority_enable + + @property + def vpc_id(self): + """Gets the vpc_id of this ClusterList. + + VPC ID。 + + :return: The vpc_id of this ClusterList. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this ClusterList. + + VPC ID。 + + :param vpc_id: The vpc_id of this ClusterList. + :type: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this ClusterList. + + 子网ID。 + + :return: The subnet_id of this ClusterList. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this ClusterList. + + 子网ID。 + + :param subnet_id: The subnet_id of this ClusterList. + :type: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this ClusterList. + + 安全组ID。 + + :return: The security_group_id of this ClusterList. + :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 ClusterList. + + 安全组ID。 + + :param security_group_id: The security_group_id of this ClusterList. + :type: str + """ + self._security_group_id = security_group_id + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ClusterList. + + 集群所属的企业项目ID。 如果集群所属用户没有开通企业项目,则不会返回该参数。 + + :return: The enterprise_project_id of this ClusterList. + :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 ClusterList. + + 集群所属的企业项目ID。 如果集群所属用户没有开通企业项目,则不会返回该参数。 + + :param enterprise_project_id: The enterprise_project_id of this ClusterList. + :type: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def period(self): + """Gets the period of this ClusterList. + + + :return: The period of this ClusterList. + :rtype: bool + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this ClusterList. + + + :param period: The period of this ClusterList. + :type: bool + """ + self._period = period + + @property + def https_enable(self): + """Gets the https_enable of this ClusterList. + + 是否开启https访问 + + :return: The https_enable of this ClusterList. + :rtype: bool + """ + return self._https_enable + + @https_enable.setter + def https_enable(self, https_enable): + """Sets the https_enable of this ClusterList. + + 是否开启https访问 + + :param https_enable: The https_enable of this ClusterList. + :type: bool + """ + self._https_enable = https_enable + + @property + def tags(self): + """Gets the tags of this ClusterList. + + 集群标签。 + + :return: The tags of this ClusterList. + :rtype: list[ClusterListTags] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ClusterList. + + 集群标签。 + + :param tags: The tags of this ClusterList. + :type: list[ClusterListTags] + """ + 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, ClusterList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_action_progress.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_action_progress.py new file mode 100644 index 000000000..84a695cef --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_action_progress.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterListActionProgress: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'creating': 'str' + } + + attribute_map = { + 'creating': 'CREATING' + } + + def __init__(self, creating=None): + """ClusterListActionProgress - a model defined in huaweicloud sdk""" + + + + self._creating = None + self.discriminator = None + + if creating is not None: + self.creating = creating + + @property + def creating(self): + """Gets the creating of this ClusterListActionProgress. + + 进度百分比。 + + :return: The creating of this ClusterListActionProgress. + :rtype: str + """ + return self._creating + + @creating.setter + def creating(self, creating): + """Sets the creating of this ClusterListActionProgress. + + 进度百分比。 + + :param creating: The creating of this ClusterListActionProgress. + :type: str + """ + self._creating = creating + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterListActionProgress): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_datastore.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_datastore.py new file mode 100644 index 000000000..390ce78df --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_datastore.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterListDatastore: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'version': 'str' + } + + attribute_map = { + 'type': 'type', + 'version': 'version' + } + + def __init__(self, type=None, version=None): + """ClusterListDatastore - a model defined in huaweicloud sdk""" + + + + self._type = None + self._version = None + self.discriminator = None + + if type is not None: + self.type = type + if version is not None: + self.version = version + + @property + def type(self): + """Gets the type of this ClusterListDatastore. + + 支持类型:elasticsearch。 + + :return: The type of this ClusterListDatastore. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ClusterListDatastore. + + 支持类型:elasticsearch。 + + :param type: The type of this ClusterListDatastore. + :type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this ClusterListDatastore. + + 引擎版本号。当前引擎版本为5.5.1、6.2.3、6.5.4、7.1.1、7.6.2、7.9.3。 + + :return: The version of this ClusterListDatastore. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ClusterListDatastore. + + 引擎版本号。当前引擎版本为5.5.1、6.2.3、6.5.4、7.1.1、7.6.2、7.9.3。 + + :param version: The version of this ClusterListDatastore. + :type: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterListDatastore): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_failed_reasons.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_failed_reasons.py new file mode 100644 index 000000000..c5f568037 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_failed_reasons.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterListFailedReasons: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, error_code=None, error_msg=None): + """ClusterListFailedReasons - a model defined in huaweicloud sdk""" + + + + self._error_code = None + self._error_msg = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this ClusterListFailedReasons. + + 错误码。 - CSS.6000:表示集群创建失败。 - CSS.6001:表示集群扩容失败。 - CSS.6002:表示集群重启失败。 - CSS.6004:表示集群节点创建失败。 - CSS.6005:表示服务初始化失败。 + + :return: The error_code of this ClusterListFailedReasons. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ClusterListFailedReasons. + + 错误码。 - CSS.6000:表示集群创建失败。 - CSS.6001:表示集群扩容失败。 - CSS.6002:表示集群重启失败。 - CSS.6004:表示集群节点创建失败。 - CSS.6005:表示服务初始化失败。 + + :param error_code: The error_code of this ClusterListFailedReasons. + :type: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ClusterListFailedReasons. + + 详细错误信息。 + + :return: The error_msg of this ClusterListFailedReasons. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ClusterListFailedReasons. + + 详细错误信息。 + + :param error_msg: The error_msg of this ClusterListFailedReasons. + :type: str + """ + self._error_msg = error_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterListFailedReasons): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_instances.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_instances.py new file mode 100644 index 000000000..0583d108a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_instances.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterListInstances: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'status': 'str', + 'type': 'str', + 'id': 'str', + 'name': 'str', + 'spec_code': 'str', + 'az_code': 'str' + } + + attribute_map = { + 'status': 'status', + 'type': 'type', + 'id': 'id', + 'name': 'name', + 'spec_code': 'specCode', + 'az_code': 'azCode' + } + + def __init__(self, status=None, type=None, id=None, name=None, spec_code=None, az_code=None): + """ClusterListInstances - a model defined in huaweicloud sdk""" + + + + self._status = None + self._type = None + self._id = None + self._name = None + self._spec_code = None + self._az_code = None + self.discriminator = None + + if status is not None: + self.status = status + if type is not None: + self.type = type + if id is not None: + self.id = id + if name is not None: + self.name = name + if spec_code is not None: + self.spec_code = spec_code + if az_code is not None: + self.az_code = az_code + + @property + def status(self): + """Gets the status of this ClusterListInstances. + + 状态。 - 100:创建中。 - 200:可用。 - 303:不可用,如创建失败。 + + :return: The status of this ClusterListInstances. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ClusterListInstances. + + 状态。 - 100:创建中。 - 200:可用。 - 303:不可用,如创建失败。 + + :param status: The status of this ClusterListInstances. + :type: str + """ + self._status = status + + @property + def type(self): + """Gets the type of this ClusterListInstances. + + 支持类型:ess(Elasticsearch节点)。 + + :return: The type of this ClusterListInstances. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ClusterListInstances. + + 支持类型:ess(Elasticsearch节点)。 + + :param type: The type of this ClusterListInstances. + :type: str + """ + self._type = type + + @property + def id(self): + """Gets the id of this ClusterListInstances. + + 实例ID。 + + :return: The id of this ClusterListInstances. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ClusterListInstances. + + 实例ID。 + + :param id: The id of this ClusterListInstances. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ClusterListInstances. + + 实例名字。 + + :return: The name of this ClusterListInstances. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ClusterListInstances. + + 实例名字。 + + :param name: The name of this ClusterListInstances. + :type: str + """ + self._name = name + + @property + def spec_code(self): + """Gets the spec_code of this ClusterListInstances. + + 节点规格名称。 + + :return: The spec_code of this ClusterListInstances. + :rtype: str + """ + return self._spec_code + + @spec_code.setter + def spec_code(self, spec_code): + """Sets the spec_code of this ClusterListInstances. + + 节点规格名称。 + + :param spec_code: The spec_code of this ClusterListInstances. + :type: str + """ + self._spec_code = spec_code + + @property + def az_code(self): + """Gets the az_code of this ClusterListInstances. + + 节点所属AZ信息。 + + :return: The az_code of this ClusterListInstances. + :rtype: str + """ + return self._az_code + + @az_code.setter + def az_code(self, az_code): + """Sets the az_code of this ClusterListInstances. + + 节点所属AZ信息。 + + :param az_code: The az_code of this ClusterListInstances. + :type: str + """ + self._az_code = az_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterListInstances): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_tags.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_tags.py new file mode 100644 index 000000000..8ce1d6d99 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_tags.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterListTags: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ClusterListTags - a model defined in huaweicloud sdk""" + + + + self._key = None + self._value = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this ClusterListTags. + + 集群标签的key值。 + + :return: The key of this ClusterListTags. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ClusterListTags. + + 集群标签的key值。 + + :param key: The key of this ClusterListTags. + :type: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this ClusterListTags. + + 集群标签的value值。 + + :return: The value of this ClusterListTags. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ClusterListTags. + + 集群标签的value值。 + + :param value: The value of this ClusterListTags. + :type: 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, ClusterListTags): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/config_list.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/config_list.py new file mode 100644 index 000000000..079bd5154 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/config_list.py @@ -0,0 +1,276 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConfigList: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'cluster_id': 'str', + 'create_at': 'object', + 'status': 'str', + 'finished_at': 'object', + 'modify_delete_reset': 'str', + 'failed_msg': 'str' + } + + attribute_map = { + 'id': 'id', + 'cluster_id': 'clusterId', + 'create_at': 'createAt', + 'status': 'status', + 'finished_at': 'finishedAt', + 'modify_delete_reset': 'modifyDeleteReset', + 'failed_msg': 'failedMsg' + } + + def __init__(self, id=None, cluster_id=None, create_at=None, status=None, finished_at=None, modify_delete_reset=None, failed_msg=None): + """ConfigList - a model defined in huaweicloud sdk""" + + + + self._id = None + self._cluster_id = None + self._create_at = None + self._status = None + self._finished_at = None + self._modify_delete_reset = None + self._failed_msg = None + self.discriminator = None + + if id is not None: + self.id = id + if cluster_id is not None: + self.cluster_id = cluster_id + if create_at is not None: + self.create_at = create_at + if status is not None: + self.status = status + if finished_at is not None: + self.finished_at = finished_at + if modify_delete_reset is not None: + self.modify_delete_reset = modify_delete_reset + if failed_msg is not None: + self.failed_msg = failed_msg + + @property + def id(self): + """Gets the id of this ConfigList. + + 操作ID + + :return: The id of this ConfigList. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConfigList. + + 操作ID + + :param id: The id of this ConfigList. + :type: str + """ + self._id = id + + @property + def cluster_id(self): + """Gets the cluster_id of this ConfigList. + + 集群ID。 + + :return: The cluster_id of this ConfigList. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ConfigList. + + 集群ID。 + + :param cluster_id: The cluster_id of this ConfigList. + :type: str + """ + self._cluster_id = cluster_id + + @property + def create_at(self): + """Gets the create_at of this ConfigList. + + 创建时间。 + + :return: The create_at of this ConfigList. + :rtype: object + """ + return self._create_at + + @create_at.setter + def create_at(self, create_at): + """Sets the create_at of this ConfigList. + + 创建时间。 + + :param create_at: The create_at of this ConfigList. + :type: object + """ + self._create_at = create_at + + @property + def status(self): + """Gets the status of this ConfigList. + + 状态。 + + :return: The status of this ConfigList. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ConfigList. + + 状态。 + + :param status: The status of this ConfigList. + :type: str + """ + self._status = status + + @property + def finished_at(self): + """Gets the finished_at of this ConfigList. + + 结束时间。 + + :return: The finished_at of this ConfigList. + :rtype: object + """ + return self._finished_at + + @finished_at.setter + def finished_at(self, finished_at): + """Sets the finished_at of this ConfigList. + + 结束时间。 + + :param finished_at: The finished_at of this ConfigList. + :type: object + """ + self._finished_at = finished_at + + @property + def modify_delete_reset(self): + """Gets the modify_delete_reset of this ConfigList. + + 修改参数配置记录。 + + :return: The modify_delete_reset of this ConfigList. + :rtype: str + """ + return self._modify_delete_reset + + @modify_delete_reset.setter + def modify_delete_reset(self, modify_delete_reset): + """Sets the modify_delete_reset of this ConfigList. + + 修改参数配置记录。 + + :param modify_delete_reset: The modify_delete_reset of this ConfigList. + :type: str + """ + self._modify_delete_reset = modify_delete_reset + + @property + def failed_msg(self): + """Gets the failed_msg of this ConfigList. + + 返回错误信息。 + + :return: The failed_msg of this ConfigList. + :rtype: str + """ + return self._failed_msg + + @failed_msg.setter + def failed_msg(self, failed_msg): + """Sets the failed_msg of this ConfigList. + + 返回错误信息。 + + :param failed_msg: The failed_msg of this ConfigList. + :type: str + """ + self._failed_msg = failed_msg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfigList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/confs.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/confs.py new file mode 100644 index 000000000..3718bb703 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/confs.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Confs: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'status': 'str', + 'conf_content': 'str', + 'setting': 'Setting', + 'update_at': 'str' + } + + attribute_map = { + 'name': 'name', + 'status': 'status', + 'conf_content': 'confContent', + 'setting': 'setting', + 'update_at': 'updateAt' + } + + def __init__(self, name=None, status=None, conf_content=None, setting=None, update_at=None): + """Confs - a model defined in huaweicloud sdk""" + + + + self._name = None + self._status = None + self._conf_content = None + self._setting = None + self._update_at = None + self.discriminator = None + + if name is not None: + self.name = name + if status is not None: + self.status = status + if conf_content is not None: + self.conf_content = conf_content + if setting is not None: + self.setting = setting + if update_at is not None: + self.update_at = update_at + + @property + def name(self): + """Gets the name of this Confs. + + 配置文件名称。 + + :return: The name of this Confs. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Confs. + + 配置文件名称。 + + :param name: The name of this Confs. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this Confs. + + 配置文件状态。 + + :return: The status of this Confs. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Confs. + + 配置文件状态。 + + :param status: The status of this Confs. + :type: str + """ + self._status = status + + @property + def conf_content(self): + """Gets the conf_content of this Confs. + + 配置文件内容。 + + :return: The conf_content of this Confs. + :rtype: str + """ + return self._conf_content + + @conf_content.setter + def conf_content(self, conf_content): + """Sets the conf_content of this Confs. + + 配置文件内容。 + + :param conf_content: The conf_content of this Confs. + :type: str + """ + self._conf_content = conf_content + + @property + def setting(self): + """Gets the setting of this Confs. + + + :return: The setting of this Confs. + :rtype: Setting + """ + return self._setting + + @setting.setter + def setting(self, setting): + """Sets the setting of this Confs. + + + :param setting: The setting of this Confs. + :type: Setting + """ + self._setting = setting + + @property + def update_at(self): + """Gets the update_at of this Confs. + + 更新时间。 + + :return: The update_at of this Confs. + :rtype: str + """ + return self._update_at + + @update_at.setter + def update_at(self, update_at): + """Sets the update_at of this Confs. + + 更新时间。 + + :param update_at: The update_at of this Confs. + :type: str + """ + self._update_at = update_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Confs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/connections.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/connections.py new file mode 100644 index 000000000..c039cb28e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/connections.py @@ -0,0 +1,276 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Connections: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'status': 'str', + 'max_session': 'str', + 'specification_name': 'str', + 'created_at': 'str', + 'update_at': 'str', + 'domain_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'status': 'status', + 'max_session': 'maxSession', + 'specification_name': 'specificationName', + 'created_at': 'created_at', + 'update_at': 'update_at', + 'domain_id': 'domain_id' + } + + def __init__(self, id=None, status=None, max_session=None, specification_name=None, created_at=None, update_at=None, domain_id=None): + """Connections - a model defined in huaweicloud sdk""" + + + + self._id = None + self._status = None + self._max_session = None + self._specification_name = None + self._created_at = None + self._update_at = None + self._domain_id = None + self.discriminator = None + + if id is not None: + self.id = id + if status is not None: + self.status = status + if max_session is not None: + self.max_session = max_session + if specification_name is not None: + self.specification_name = specification_name + if created_at is not None: + self.created_at = created_at + if update_at is not None: + self.update_at = update_at + if domain_id is not None: + self.domain_id = domain_id + + @property + def id(self): + """Gets the id of this Connections. + + 终端节点ID。 + + :return: The id of this Connections. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Connections. + + 终端节点ID。 + + :param id: The id of this Connections. + :type: str + """ + self._id = id + + @property + def status(self): + """Gets the status of this Connections. + + 状态。 + + :return: The status of this Connections. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Connections. + + 状态。 + + :param status: The status of this Connections. + :type: str + """ + self._status = status + + @property + def max_session(self): + """Gets the max_session of this Connections. + + 最大连接数。 + + :return: The max_session of this Connections. + :rtype: str + """ + return self._max_session + + @max_session.setter + def max_session(self, max_session): + """Sets the max_session of this Connections. + + 最大连接数。 + + :param max_session: The max_session of this Connections. + :type: str + """ + self._max_session = max_session + + @property + def specification_name(self): + """Gets the specification_name of this Connections. + + 终端节点名称。 + + :return: The specification_name of this Connections. + :rtype: str + """ + return self._specification_name + + @specification_name.setter + def specification_name(self, specification_name): + """Sets the specification_name of this Connections. + + 终端节点名称。 + + :param specification_name: The specification_name of this Connections. + :type: str + """ + self._specification_name = specification_name + + @property + def created_at(self): + """Gets the created_at of this Connections. + + 创建时间。 + + :return: The created_at of this Connections. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Connections. + + 创建时间。 + + :param created_at: The created_at of this Connections. + :type: str + """ + self._created_at = created_at + + @property + def update_at(self): + """Gets the update_at of this Connections. + + 更新时间。 + + :return: The update_at of this Connections. + :rtype: str + """ + return self._update_at + + @update_at.setter + def update_at(self, update_at): + """Sets the update_at of this Connections. + + 更新时间。 + + :param update_at: The update_at of this Connections. + :type: str + """ + self._update_at = update_at + + @property + def domain_id(self): + """Gets the domain_id of this Connections. + + 拥有者。 + + :return: The domain_id of this Connections. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this Connections. + + 拥有者。 + + :param domain_id: The domain_id of this Connections. + :type: str + """ + self._domain_id = domain_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, Connections): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_request.py new file mode 100644 index 000000000..51bd5e1f7 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAutoCreatePolicyRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'SetRDSBackupCnfReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateAutoCreatePolicyRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateAutoCreatePolicyRequest. + + 指定要自动创建快照的集群ID。 + + :return: The cluster_id of this CreateAutoCreatePolicyRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateAutoCreatePolicyRequest. + + 指定要自动创建快照的集群ID。 + + :param cluster_id: The cluster_id of this CreateAutoCreatePolicyRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateAutoCreatePolicyRequest. + + + :return: The body of this CreateAutoCreatePolicyRequest. + :rtype: SetRDSBackupCnfReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAutoCreatePolicyRequest. + + + :param body: The body of this CreateAutoCreatePolicyRequest. + :type: SetRDSBackupCnfReq + """ + 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, CreateAutoCreatePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_response.py new file mode 100644 index 000000000..42890a80f --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_auto_create_policy_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAutoCreatePolicyResponse(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): + """CreateAutoCreatePolicyResponse - a model defined in huaweicloud sdk""" + + super(CreateAutoCreatePolicyResponse, 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, CreateAutoCreatePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_request.py new file mode 100644 index 000000000..6140ec590 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBindPublicRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'BindPublicReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateBindPublicRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateBindPublicRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this CreateBindPublicRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateBindPublicRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this CreateBindPublicRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateBindPublicRequest. + + + :return: The body of this CreateBindPublicRequest. + :rtype: BindPublicReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateBindPublicRequest. + + + :param body: The body of this CreateBindPublicRequest. + :type: BindPublicReq + """ + 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, CreateBindPublicRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_response.py new file mode 100644 index 000000000..539962ec0 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_bind_public_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBindPublicResponse(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 = { + 'action': 'str' + } + + attribute_map = { + 'action': 'action' + } + + def __init__(self, action=None): + """CreateBindPublicResponse - a model defined in huaweicloud sdk""" + + super(CreateBindPublicResponse, self).__init__() + + self._action = None + self.discriminator = None + + if action is not None: + self.action = action + + @property + def action(self): + """Gets the action of this CreateBindPublicResponse. + + 操作行为。 + + :return: The action of this CreateBindPublicResponse. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this CreateBindPublicResponse. + + 操作行为。 + + :param action: The action of this CreateBindPublicResponse. + :type: str + """ + self._action = action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateBindPublicResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py new file mode 100644 index 000000000..da387649d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_backup_strategy_body.py @@ -0,0 +1,246 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterBackupStrategyBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'prefix': 'str', + 'keepday': 'int', + 'bucket': 'str', + 'base_path': 'str', + 'agency': 'str' + } + + attribute_map = { + 'period': 'period', + 'prefix': 'prefix', + 'keepday': 'keepday', + 'bucket': 'bucket', + 'base_path': 'basePath', + 'agency': 'agency' + } + + def __init__(self, period=None, prefix=None, keepday=None, bucket=None, base_path=None, agency=None): + """CreateClusterBackupStrategyBody - a model defined in huaweicloud sdk""" + + + + self._period = None + self._prefix = None + self._keepday = None + self._bucket = None + self._base_path = None + self._agency = None + self.discriminator = None + + self.period = period + self.prefix = prefix + self.keepday = keepday + if bucket is not None: + self.bucket = bucket + if base_path is not None: + self.base_path = base_path + if agency is not None: + self.agency = agency + + @property + def period(self): + """Gets the period of this CreateClusterBackupStrategyBody. + + 每天自动创建快照的时间点。只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :return: The period of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this CreateClusterBackupStrategyBody. + + 每天自动创建快照的时间点。只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :param period: The period of this CreateClusterBackupStrategyBody. + :type: str + """ + self._period = period + + @property + def prefix(self): + """Gets the prefix of this CreateClusterBackupStrategyBody. + + 自动创建的快照的前缀。 + + :return: The prefix of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this CreateClusterBackupStrategyBody. + + 自动创建的快照的前缀。 + + :param prefix: The prefix of this CreateClusterBackupStrategyBody. + :type: str + """ + self._prefix = prefix + + @property + def keepday(self): + """Gets the keepday of this CreateClusterBackupStrategyBody. + + 自动创建快照的保留天数。取值范围:1-90。 + + :return: The keepday of this CreateClusterBackupStrategyBody. + :rtype: int + """ + return self._keepday + + @keepday.setter + def keepday(self, keepday): + """Sets the keepday of this CreateClusterBackupStrategyBody. + + 自动创建快照的保留天数。取值范围:1-90。 + + :param keepday: The keepday of this CreateClusterBackupStrategyBody. + :type: int + """ + self._keepday = keepday + + @property + def bucket(self): + """Gets the bucket of this CreateClusterBackupStrategyBody. + + 备份使用的OBS桶名称,如果桶已经存放快照数据了,不可更改。 + + :return: The bucket of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this CreateClusterBackupStrategyBody. + + 备份使用的OBS桶名称,如果桶已经存放快照数据了,不可更改。 + + :param bucket: The bucket of this CreateClusterBackupStrategyBody. + :type: str + """ + self._bucket = bucket + + @property + def base_path(self): + """Gets the base_path of this CreateClusterBackupStrategyBody. + + 快照在OBS桶中的存放路径。 + + :return: The base_path of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._base_path + + @base_path.setter + def base_path(self, base_path): + """Sets the base_path of this CreateClusterBackupStrategyBody. + + 快照在OBS桶中的存放路径。 + + :param base_path: The base_path of this CreateClusterBackupStrategyBody. + :type: str + """ + self._base_path = base_path + + @property + def agency(self): + """Gets the agency of this CreateClusterBackupStrategyBody. + + 访问OBS使用的IAM委托名称。 说明:如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + + :return: The agency of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this CreateClusterBackupStrategyBody. + + 访问OBS使用的IAM委托名称。 说明:如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + + :param agency: The agency of this CreateClusterBackupStrategyBody. + :type: str + """ + self._agency = agency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterBackupStrategyBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py new file mode 100644 index 000000000..0c5c35414 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_body.py @@ -0,0 +1,291 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'backup_strategy': 'CreateClusterBackupStrategyBody', + 'instance_num': 'int', + 'instance': 'CreateClusterInstanceBody', + 'enterprise_project_id': 'str', + 'tags': 'list[CreateClusterTagsBody]', + 'datastore': 'CreateClusterDatastoreBody', + 'pay_info': 'PayInfoBody' + } + + attribute_map = { + 'name': 'name', + 'backup_strategy': 'backupStrategy', + 'instance_num': 'instanceNum', + 'instance': 'instance', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'datastore': 'datastore', + 'pay_info': 'payInfo' + } + + def __init__(self, name=None, backup_strategy=None, instance_num=None, instance=None, enterprise_project_id=None, tags=None, datastore=None, pay_info=None): + """CreateClusterBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._backup_strategy = None + self._instance_num = None + self._instance = None + self._enterprise_project_id = None + self._tags = None + self._datastore = None + self._pay_info = None + self.discriminator = None + + self.name = name + if backup_strategy is not None: + self.backup_strategy = backup_strategy + self.instance_num = instance_num + self.instance = instance + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + self.datastore = datastore + if pay_info is not None: + self.pay_info = pay_info + + @property + def name(self): + """Gets the name of this CreateClusterBody. + + 集群名称。4~32个字符,只能包含数字、字母、中划线和下划线,且必须以字母开头。 + + :return: The name of this CreateClusterBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateClusterBody. + + 集群名称。4~32个字符,只能包含数字、字母、中划线和下划线,且必须以字母开头。 + + :param name: The name of this CreateClusterBody. + :type: str + """ + self._name = name + + @property + def backup_strategy(self): + """Gets the backup_strategy of this CreateClusterBody. + + + :return: The backup_strategy of this CreateClusterBody. + :rtype: CreateClusterBackupStrategyBody + """ + return self._backup_strategy + + @backup_strategy.setter + def backup_strategy(self, backup_strategy): + """Sets the backup_strategy of this CreateClusterBody. + + + :param backup_strategy: The backup_strategy of this CreateClusterBody. + :type: CreateClusterBackupStrategyBody + """ + self._backup_strategy = backup_strategy + + @property + def instance_num(self): + """Gets the instance_num of this CreateClusterBody. + + 集群实例个数,取值范围为1~32。 + + :return: The instance_num of this CreateClusterBody. + :rtype: int + """ + return self._instance_num + + @instance_num.setter + def instance_num(self, instance_num): + """Sets the instance_num of this CreateClusterBody. + + 集群实例个数,取值范围为1~32。 + + :param instance_num: The instance_num of this CreateClusterBody. + :type: int + """ + self._instance_num = instance_num + + @property + def instance(self): + """Gets the instance of this CreateClusterBody. + + + :return: The instance of this CreateClusterBody. + :rtype: CreateClusterInstanceBody + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this CreateClusterBody. + + + :param instance: The instance of this CreateClusterBody. + :type: CreateClusterInstanceBody + """ + self._instance = instance + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateClusterBody. + + 企业项目ID。创建集群时,给集群绑定企业项目ID。最大长度36个字符,带\"-\"连字符的UUID格式,或者是字符串\"0\"。\"0\"表示默认企业项目。 说明:关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理服务用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)。 + + :return: The enterprise_project_id of this CreateClusterBody. + :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 CreateClusterBody. + + 企业项目ID。创建集群时,给集群绑定企业项目ID。最大长度36个字符,带\"-\"连字符的UUID格式,或者是字符串\"0\"。\"0\"表示默认企业项目。 说明:关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理服务用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)。 + + :param enterprise_project_id: The enterprise_project_id of this CreateClusterBody. + :type: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this CreateClusterBody. + + 集群标签。 关于标签特性的详细信息,请参见[《标签管理产品介绍》](https://support.huaweicloud.com/productdesc-tms/zh-cn_topic_0071335169.html)。 + + :return: The tags of this CreateClusterBody. + :rtype: list[CreateClusterTagsBody] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateClusterBody. + + 集群标签。 关于标签特性的详细信息,请参见[《标签管理产品介绍》](https://support.huaweicloud.com/productdesc-tms/zh-cn_topic_0071335169.html)。 + + :param tags: The tags of this CreateClusterBody. + :type: list[CreateClusterTagsBody] + """ + self._tags = tags + + @property + def datastore(self): + """Gets the datastore of this CreateClusterBody. + + + :return: The datastore of this CreateClusterBody. + :rtype: CreateClusterDatastoreBody + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this CreateClusterBody. + + + :param datastore: The datastore of this CreateClusterBody. + :type: CreateClusterDatastoreBody + """ + self._datastore = datastore + + @property + def pay_info(self): + """Gets the pay_info of this CreateClusterBody. + + + :return: The pay_info of this CreateClusterBody. + :rtype: PayInfoBody + """ + return self._pay_info + + @pay_info.setter + def pay_info(self, pay_info): + """Sets the pay_info of this CreateClusterBody. + + + :param pay_info: The pay_info of this CreateClusterBody. + :type: PayInfoBody + """ + self._pay_info = pay_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, CreateClusterBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_cluster_response.py new file mode 100644 index 000000000..9db50cf16 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_cluster_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterClusterResponse: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """CreateClusterClusterResponse - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this CreateClusterClusterResponse. + + 集群ID。 + + :return: The id of this CreateClusterClusterResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateClusterClusterResponse. + + 集群ID。 + + :param id: The id of this CreateClusterClusterResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreateClusterClusterResponse. + + 集群名称。 + + :return: The name of this CreateClusterClusterResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateClusterClusterResponse. + + 集群名称。 + + :param name: The name of this CreateClusterClusterResponse. + :type: 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, CreateClusterClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_datastore_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_datastore_body.py new file mode 100644 index 000000000..f46c138b3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_datastore_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterDatastoreBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'type': 'str' + } + + attribute_map = { + 'version': 'version', + 'type': 'type' + } + + def __init__(self, version=None, type=None): + """CreateClusterDatastoreBody - a model defined in huaweicloud sdk""" + + + + self._version = None + self._type = None + self.discriminator = None + + self.version = version + self.type = type + + @property + def version(self): + """Gets the version of this CreateClusterDatastoreBody. + + 引擎版本号,支持5.5.1、6.2.3、6.5.4、7.1.1、7.6.2和7.9.3,默认为5.5.1。 + + :return: The version of this CreateClusterDatastoreBody. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateClusterDatastoreBody. + + 引擎版本号,支持5.5.1、6.2.3、6.5.4、7.1.1、7.6.2和7.9.3,默认为5.5.1。 + + :param version: The version of this CreateClusterDatastoreBody. + :type: str + """ + self._version = version + + @property + def type(self): + """Gets the type of this CreateClusterDatastoreBody. + + 引擎类型,默认为elasticsearch。目前只支持elasticsearch。 + + :return: The type of this CreateClusterDatastoreBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateClusterDatastoreBody. + + 引擎类型,默认为elasticsearch。目前只支持elasticsearch。 + + :param type: The type of this CreateClusterDatastoreBody. + :type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterDatastoreBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_body.py new file mode 100644 index 000000000..8cbd87cae --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_body.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterInstanceBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'flavor_ref': 'str', + 'volume': 'CreateClusterInstanceVolumeBody', + 'nics': 'CreateClusterInstanceNicsBody', + 'availability_zone': 'str' + } + + attribute_map = { + 'flavor_ref': 'flavorRef', + 'volume': 'volume', + 'nics': 'nics', + 'availability_zone': 'availability_zone' + } + + def __init__(self, flavor_ref=None, volume=None, nics=None, availability_zone=None): + """CreateClusterInstanceBody - a model defined in huaweicloud sdk""" + + + + self._flavor_ref = None + self._volume = None + self._nics = None + self._availability_zone = None + self.discriminator = None + + self.flavor_ref = flavor_ref + self.volume = volume + self.nics = nics + if availability_zone is not None: + self.availability_zone = availability_zone + + @property + def flavor_ref(self): + """Gets the flavor_ref of this CreateClusterInstanceBody. + + 实例规格名称。例如乌兰察布三中, - ess.spec-2u16g规格对应的取值范围为40GB~1280GB。 - ess.spec-4u32g规格对应的取值范围为40GB~2560GB。 - ess.spec-8u64g规格对应的取值范围为80GB~5120GB。 - ess.spec-16u128g规格对应的取值范围为160GB~10240GB。 + + :return: The flavor_ref of this CreateClusterInstanceBody. + :rtype: str + """ + return self._flavor_ref + + @flavor_ref.setter + def flavor_ref(self, flavor_ref): + """Sets the flavor_ref of this CreateClusterInstanceBody. + + 实例规格名称。例如乌兰察布三中, - ess.spec-2u16g规格对应的取值范围为40GB~1280GB。 - ess.spec-4u32g规格对应的取值范围为40GB~2560GB。 - ess.spec-8u64g规格对应的取值范围为80GB~5120GB。 - ess.spec-16u128g规格对应的取值范围为160GB~10240GB。 + + :param flavor_ref: The flavor_ref of this CreateClusterInstanceBody. + :type: str + """ + self._flavor_ref = flavor_ref + + @property + def volume(self): + """Gets the volume of this CreateClusterInstanceBody. + + + :return: The volume of this CreateClusterInstanceBody. + :rtype: CreateClusterInstanceVolumeBody + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this CreateClusterInstanceBody. + + + :param volume: The volume of this CreateClusterInstanceBody. + :type: CreateClusterInstanceVolumeBody + """ + self._volume = volume + + @property + def nics(self): + """Gets the nics of this CreateClusterInstanceBody. + + + :return: The nics of this CreateClusterInstanceBody. + :rtype: CreateClusterInstanceNicsBody + """ + return self._nics + + @nics.setter + def nics(self, nics): + """Sets the nics of this CreateClusterInstanceBody. + + + :param nics: The nics of this CreateClusterInstanceBody. + :type: CreateClusterInstanceNicsBody + """ + self._nics = nics + + @property + def availability_zone(self): + """Gets the availability_zone of this CreateClusterInstanceBody. + + 可用区。不填时默认创建单AZ。 如果需要创建多AZ,各个AZ之间使用英文逗号分隔,比如az1,az2 ,az不能重复输入,并且要求节点个数大于等于AZ个数。 如果节点个数为AZ个数的倍数,节点将会均匀的分布到各个AZ。如果节点个数不为AZ个数的倍数时,各个AZ分布的节点个数之和的绝对值之差小于等于1。 + + :return: The availability_zone of this CreateClusterInstanceBody. + :rtype: str + """ + return self._availability_zone + + @availability_zone.setter + def availability_zone(self, availability_zone): + """Sets the availability_zone of this CreateClusterInstanceBody. + + 可用区。不填时默认创建单AZ。 如果需要创建多AZ,各个AZ之间使用英文逗号分隔,比如az1,az2 ,az不能重复输入,并且要求节点个数大于等于AZ个数。 如果节点个数为AZ个数的倍数,节点将会均匀的分布到各个AZ。如果节点个数不为AZ个数的倍数时,各个AZ分布的节点个数之和的绝对值之差小于等于1。 + + :param availability_zone: The availability_zone of this CreateClusterInstanceBody. + :type: str + """ + self._availability_zone = availability_zone + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterInstanceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_nics_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_nics_body.py new file mode 100644 index 000000000..f13decdad --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_nics_body.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterInstanceNicsBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'net_id': 'str', + 'security_group_id': 'str' + } + + attribute_map = { + 'vpc_id': 'vpcId', + 'net_id': 'netId', + 'security_group_id': 'securityGroupId' + } + + def __init__(self, vpc_id=None, net_id=None, security_group_id=None): + """CreateClusterInstanceNicsBody - a model defined in huaweicloud sdk""" + + + + self._vpc_id = None + self._net_id = None + self._security_group_id = None + self.discriminator = None + + self.vpc_id = vpc_id + self.net_id = net_id + self.security_group_id = security_group_id + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateClusterInstanceNicsBody. + + 指定虚拟私有云ID,用于集群网络配置。 + + :return: The vpc_id of this CreateClusterInstanceNicsBody. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateClusterInstanceNicsBody. + + 指定虚拟私有云ID,用于集群网络配置。 + + :param vpc_id: The vpc_id of this CreateClusterInstanceNicsBody. + :type: str + """ + self._vpc_id = vpc_id + + @property + def net_id(self): + """Gets the net_id of this CreateClusterInstanceNicsBody. + + 子网ID(网络ID),其中一个搜索集群所有实例的子网和安全组必须相同。 + + :return: The net_id of this CreateClusterInstanceNicsBody. + :rtype: str + """ + return self._net_id + + @net_id.setter + def net_id(self, net_id): + """Sets the net_id of this CreateClusterInstanceNicsBody. + + 子网ID(网络ID),其中一个搜索集群所有实例的子网和安全组必须相同。 + + :param net_id: The net_id of this CreateClusterInstanceNicsBody. + :type: str + """ + self._net_id = net_id + + @property + def security_group_id(self): + """Gets the security_group_id of this CreateClusterInstanceNicsBody. + + 安全组ID,其中一个搜索集群所有实例的子网和安全组必须相同。 + + :return: The security_group_id of this CreateClusterInstanceNicsBody. + :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 CreateClusterInstanceNicsBody. + + 安全组ID,其中一个搜索集群所有实例的子网和安全组必须相同。 + + :param security_group_id: The security_group_id of this CreateClusterInstanceNicsBody. + :type: str + """ + self._security_group_id = security_group_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, CreateClusterInstanceNicsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_volume_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_volume_body.py new file mode 100644 index 000000000..d3228c86a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_instance_volume_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterInstanceVolumeBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'volume_type': 'str', + 'size': 'int' + } + + attribute_map = { + 'volume_type': 'volume_type', + 'size': 'size' + } + + def __init__(self, volume_type=None, size=None): + """CreateClusterInstanceVolumeBody - a model defined in huaweicloud sdk""" + + + + self._volume_type = None + self._size = None + self.discriminator = None + + self.volume_type = volume_type + self.size = size + + @property + def volume_type(self): + """Gets the volume_type of this CreateClusterInstanceVolumeBody. + + 卷类型。 - COMMON:普通I/O。 - HIGH:高I/O。 - ULTRAHIGH:超高I/O。 + + :return: The volume_type of this CreateClusterInstanceVolumeBody. + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this CreateClusterInstanceVolumeBody. + + 卷类型。 - COMMON:普通I/O。 - HIGH:高I/O。 - ULTRAHIGH:超高I/O。 + + :param volume_type: The volume_type of this CreateClusterInstanceVolumeBody. + :type: str + """ + self._volume_type = volume_type + + @property + def size(self): + """Gets the size of this CreateClusterInstanceVolumeBody. + + 卷大小,必须为4和10的倍数。 单位:GB。 + + :return: The size of this CreateClusterInstanceVolumeBody. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this CreateClusterInstanceVolumeBody. + + 卷大小,必须为4和10的倍数。 单位:GB。 + + :param size: The size of this CreateClusterInstanceVolumeBody. + :type: 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, CreateClusterInstanceVolumeBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_req.py new file mode 100644 index 000000000..ebfbb1853 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_req.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster': 'CreateClusterBody' + } + + attribute_map = { + 'cluster': 'cluster' + } + + def __init__(self, cluster=None): + """CreateClusterReq - a model defined in huaweicloud sdk""" + + + + self._cluster = None + self.discriminator = None + + self.cluster = cluster + + @property + def cluster(self): + """Gets the cluster of this CreateClusterReq. + + + :return: The cluster of this CreateClusterReq. + :rtype: CreateClusterBody + """ + return self._cluster + + @cluster.setter + def cluster(self, cluster): + """Sets the cluster of this CreateClusterReq. + + + :param cluster: The cluster of this CreateClusterReq. + :type: CreateClusterBody + """ + self._cluster = cluster + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_request.py new file mode 100644 index 000000000..f7fdf079d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateClusterReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateClusterRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateClusterRequest. + + + :return: The body of this CreateClusterRequest. + :rtype: CreateClusterReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateClusterRequest. + + + :param body: The body of this CreateClusterRequest. + :type: CreateClusterReq + """ + 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, CreateClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_response.py new file mode 100644 index 000000000..265fe63e1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterResponse(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 = { + 'cluster': 'CreateClusterClusterResponse' + } + + attribute_map = { + 'cluster': 'cluster' + } + + def __init__(self, cluster=None): + """CreateClusterResponse - a model defined in huaweicloud sdk""" + + super(CreateClusterResponse, self).__init__() + + self._cluster = None + self.discriminator = None + + if cluster is not None: + self.cluster = cluster + + @property + def cluster(self): + """Gets the cluster of this CreateClusterResponse. + + + :return: The cluster of this CreateClusterResponse. + :rtype: CreateClusterClusterResponse + """ + return self._cluster + + @cluster.setter + def cluster(self, cluster): + """Sets the cluster of this CreateClusterResponse. + + + :param cluster: The cluster of this CreateClusterResponse. + :type: CreateClusterClusterResponse + """ + self._cluster = cluster + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_tags_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_tags_body.py new file mode 100644 index 000000000..a086381ab --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cluster_tags_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterTagsBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """CreateClusterTagsBody - a model defined in huaweicloud sdk""" + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + self.value = value + + @property + def key(self): + """Gets the key of this CreateClusterTagsBody. + + 集群标签的key值。可输入的字符串长度为1~36个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :return: The key of this CreateClusterTagsBody. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CreateClusterTagsBody. + + 集群标签的key值。可输入的字符串长度为1~36个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :param key: The key of this CreateClusterTagsBody. + :type: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this CreateClusterTagsBody. + + 集群标签的value值。可输入的字符串长度为0~43个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :return: The value of this CreateClusterTagsBody. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CreateClusterTagsBody. + + 集群标签的value值。可输入的字符串长度为0~43个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :param value: The value of this CreateClusterTagsBody. + :type: 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, CreateClusterTagsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_request.py new file mode 100644 index 000000000..3885ac548 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClustersTagsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'TagReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateClustersTagsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateClustersTagsRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this CreateClustersTagsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateClustersTagsRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this CreateClustersTagsRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateClustersTagsRequest. + + + :return: The body of this CreateClustersTagsRequest. + :rtype: TagReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateClustersTagsRequest. + + + :param body: The body of this CreateClustersTagsRequest. + :type: TagReq + """ + 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, CreateClustersTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_response.py new file mode 100644 index 000000000..96c77bf8c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_clusters_tags_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClustersTagsResponse(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): + """CreateClustersTagsResponse - a model defined in huaweicloud sdk""" + + super(CreateClustersTagsResponse, 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, CreateClustersTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_req.py new file mode 100644 index 000000000..2e53c9aec --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_req.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCnfReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'conf_content': 'str', + 'setting': 'Setting' + } + + attribute_map = { + 'name': 'name', + 'conf_content': 'confContent', + 'setting': 'setting' + } + + def __init__(self, name=None, conf_content=None, setting=None): + """CreateCnfReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self._conf_content = None + self._setting = None + self.discriminator = None + + self.name = name + self.conf_content = conf_content + self.setting = setting + + @property + def name(self): + """Gets the name of this CreateCnfReq. + + 名称。 + + :return: The name of this CreateCnfReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateCnfReq. + + 名称。 + + :param name: The name of this CreateCnfReq. + :type: str + """ + self._name = name + + @property + def conf_content(self): + """Gets the conf_content of this CreateCnfReq. + + 配置文件内容。 + + :return: The conf_content of this CreateCnfReq. + :rtype: str + """ + return self._conf_content + + @conf_content.setter + def conf_content(self, conf_content): + """Sets the conf_content of this CreateCnfReq. + + 配置文件内容。 + + :param conf_content: The conf_content of this CreateCnfReq. + :type: str + """ + self._conf_content = conf_content + + @property + def setting(self): + """Gets the setting of this CreateCnfReq. + + + :return: The setting of this CreateCnfReq. + :rtype: Setting + """ + return self._setting + + @setting.setter + def setting(self, setting): + """Sets the setting of this CreateCnfReq. + + + :param setting: The setting of this CreateCnfReq. + :type: Setting + """ + self._setting = setting + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCnfReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_request.py new file mode 100644 index 000000000..66475373b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCnfRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'CreateCnfReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateCnfRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateCnfRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this CreateCnfRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateCnfRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this CreateCnfRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateCnfRequest. + + + :return: The body of this CreateCnfRequest. + :rtype: CreateCnfReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCnfRequest. + + + :param body: The body of this CreateCnfRequest. + :type: CreateCnfReq + """ + 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, CreateCnfRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_response.py new file mode 100644 index 000000000..1b5472907 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_cnf_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCnfResponse(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): + """CreateCnfResponse - a model defined in huaweicloud sdk""" + + super(CreateCnfResponse, 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, CreateCnfResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_request.py new file mode 100644 index 000000000..15dd51fd0 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLoadIkThesaurusRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'LoadCustomThesaurusReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateLoadIkThesaurusRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateLoadIkThesaurusRequest. + + 指定配置自定义词库的集群ID。 + + :return: The cluster_id of this CreateLoadIkThesaurusRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateLoadIkThesaurusRequest. + + 指定配置自定义词库的集群ID。 + + :param cluster_id: The cluster_id of this CreateLoadIkThesaurusRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateLoadIkThesaurusRequest. + + + :return: The body of this CreateLoadIkThesaurusRequest. + :rtype: LoadCustomThesaurusReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLoadIkThesaurusRequest. + + + :param body: The body of this CreateLoadIkThesaurusRequest. + :type: LoadCustomThesaurusReq + """ + 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, CreateLoadIkThesaurusRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_response.py new file mode 100644 index 000000000..639b5690c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_load_ik_thesaurus_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLoadIkThesaurusResponse(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): + """CreateLoadIkThesaurusResponse - a model defined in huaweicloud sdk""" + + super(CreateLoadIkThesaurusResponse, 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, CreateLoadIkThesaurusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_request.py new file mode 100644 index 000000000..c94388a3f --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogBackupRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """CreateLogBackupRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateLogBackupRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this CreateLogBackupRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateLogBackupRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this CreateLogBackupRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogBackupRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_response.py new file mode 100644 index 000000000..8f4619768 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_log_backup_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogBackupResponse(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): + """CreateLogBackupResponse - a model defined in huaweicloud sdk""" + + super(CreateLogBackupResponse, 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, CreateLogBackupResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_req.py new file mode 100644 index 000000000..adb357614 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_req.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSnapshotReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'indices': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'indices': 'indices' + } + + def __init__(self, name=None, description=None, indices=None): + """CreateSnapshotReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self._description = None + self._indices = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + if indices is not None: + self.indices = indices + + @property + def name(self): + """Gets the name of this CreateSnapshotReq. + + 快照名称,快照名称在4位到64位之间,必须以字母开头,可以包含字母、数字、中划线或者下划线,注意字母不能大写且不能包含其他特殊字符。 + + :return: The name of this CreateSnapshotReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateSnapshotReq. + + 快照名称,快照名称在4位到64位之间,必须以字母开头,可以包含字母、数字、中划线或者下划线,注意字母不能大写且不能包含其他特殊字符。 + + :param name: The name of this CreateSnapshotReq. + :type: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateSnapshotReq. + + 快照描述,0~256个字符,不能包含“<>”字符。 + + :return: The description of this CreateSnapshotReq. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateSnapshotReq. + + 快照描述,0~256个字符,不能包含“<>”字符。 + + :param description: The description of this CreateSnapshotReq. + :type: str + """ + self._description = description + + @property + def indices(self): + """Gets the indices of this CreateSnapshotReq. + + 指定要备份的索引名称,多个索引用逗号隔开,默认备份所有索引。支持使用“\\*”匹配多个索引,例如:2018-06\\*,表示备份名称前缀是2018-06的所有索引的数据。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?特殊字符。 + + :return: The indices of this CreateSnapshotReq. + :rtype: str + """ + return self._indices + + @indices.setter + def indices(self, indices): + """Sets the indices of this CreateSnapshotReq. + + 指定要备份的索引名称,多个索引用逗号隔开,默认备份所有索引。支持使用“\\*”匹配多个索引,例如:2018-06\\*,表示备份名称前缀是2018-06的所有索引的数据。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?特殊字符。 + + :param indices: The indices of this CreateSnapshotReq. + :type: str + """ + self._indices = indices + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSnapshotReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_request.py new file mode 100644 index 000000000..e1517d1f3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSnapshotRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'CreateSnapshotReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """CreateSnapshotRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this CreateSnapshotRequest. + + 指定要备份的集群ID。 + + :return: The cluster_id of this CreateSnapshotRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CreateSnapshotRequest. + + 指定要备份的集群ID。 + + :param cluster_id: The cluster_id of this CreateSnapshotRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this CreateSnapshotRequest. + + + :return: The body of this CreateSnapshotRequest. + :rtype: CreateSnapshotReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateSnapshotRequest. + + + :param body: The body of this CreateSnapshotRequest. + :type: CreateSnapshotReq + """ + 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, CreateSnapshotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_response.py new file mode 100644 index 000000000..ea40f94d9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/create_snapshot_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateSnapshotResponse(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 = { + 'name': 'str', + 'description': 'str', + 'indices': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'indices': 'indices' + } + + def __init__(self, name=None, description=None, indices=None): + """CreateSnapshotResponse - a model defined in huaweicloud sdk""" + + super(CreateSnapshotResponse, self).__init__() + + self._name = None + self._description = None + self._indices = None + self.discriminator = None + + if name is not None: + self.name = name + if description is not None: + self.description = description + if indices is not None: + self.indices = indices + + @property + def name(self): + """Gets the name of this CreateSnapshotResponse. + + 快照名称。 + + :return: The name of this CreateSnapshotResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateSnapshotResponse. + + 快照名称。 + + :param name: The name of this CreateSnapshotResponse. + :type: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateSnapshotResponse. + + 快照描述。 + + :return: The description of this CreateSnapshotResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateSnapshotResponse. + + 快照描述。 + + :param description: The description of this CreateSnapshotResponse. + :type: str + """ + self._description = description + + @property + def indices(self): + """Gets the indices of this CreateSnapshotResponse. + + 指定要备份的索引名称。 + + :return: The indices of this CreateSnapshotResponse. + :rtype: str + """ + return self._indices + + @indices.setter + def indices(self, indices): + """Sets the indices of this CreateSnapshotResponse. + + 指定要备份的索引名称。 + + :param indices: The indices of this CreateSnapshotResponse. + :type: str + """ + self._indices = indices + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSnapshotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/custom_templates.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/custom_templates.py new file mode 100644 index 000000000..be6ebf41c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/custom_templates.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CustomTemplates: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'conf_content': 'str', + 'desc': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'conf_content': 'confContent', + 'desc': 'desc' + } + + def __init__(self, id=None, name=None, conf_content=None, desc=None): + """CustomTemplates - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._conf_content = None + self._desc = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if conf_content is not None: + self.conf_content = conf_content + if desc is not None: + self.desc = desc + + @property + def id(self): + """Gets the id of this CustomTemplates. + + 配置文件id。 + + :return: The id of this CustomTemplates. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CustomTemplates. + + 配置文件id。 + + :param id: The id of this CustomTemplates. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CustomTemplates. + + 配置文件名称。 + + :return: The name of this CustomTemplates. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CustomTemplates. + + 配置文件名称。 + + :param name: The name of this CustomTemplates. + :type: str + """ + self._name = name + + @property + def conf_content(self): + """Gets the conf_content of this CustomTemplates. + + 配置文件内容。 + + :return: The conf_content of this CustomTemplates. + :rtype: str + """ + return self._conf_content + + @conf_content.setter + def conf_content(self, conf_content): + """Sets the conf_content of this CustomTemplates. + + 配置文件内容。 + + :param conf_content: The conf_content of this CustomTemplates. + :type: str + """ + self._conf_content = conf_content + + @property + def desc(self): + """Gets the desc of this CustomTemplates. + + 描述。 + + :return: The desc of this CustomTemplates. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this CustomTemplates. + + 描述。 + + :param desc: The desc of this CustomTemplates. + :type: str + """ + self._desc = desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CustomTemplates): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_request.py new file mode 100644 index 000000000..46ec1c276 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteClusterRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """DeleteClusterRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteClusterRequest. + + 指定删除集群ID。 + + :return: The cluster_id of this DeleteClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteClusterRequest. + + 指定删除集群ID。 + + :param cluster_id: The cluster_id of this DeleteClusterRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_response.py new file mode 100644 index 000000000..e1f3f5140 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_cluster_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteClusterResponse(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): + """DeleteClusterResponse - a model defined in huaweicloud sdk""" + + super(DeleteClusterResponse, 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, DeleteClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_request.py new file mode 100644 index 000000000..da4232b07 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteClustersTagsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'key': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'key': 'key' + } + + def __init__(self, cluster_id=None, key=None): + """DeleteClustersTagsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._key = None + self.discriminator = None + + self.cluster_id = cluster_id + self.key = key + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteClustersTagsRequest. + + 指定删除集群ID。 + + :return: The cluster_id of this DeleteClustersTagsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteClustersTagsRequest. + + 指定删除集群ID。 + + :param cluster_id: The cluster_id of this DeleteClustersTagsRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def key(self): + """Gets the key of this DeleteClustersTagsRequest. + + 需要删除的标签名。 + + :return: The key of this DeleteClustersTagsRequest. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this DeleteClustersTagsRequest. + + 需要删除的标签名。 + + :param key: The key of this DeleteClustersTagsRequest. + :type: str + """ + self._key = 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, DeleteClustersTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_response.py new file mode 100644 index 000000000..07690341d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_clusters_tags_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteClustersTagsResponse(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): + """DeleteClustersTagsResponse - a model defined in huaweicloud sdk""" + + super(DeleteClustersTagsResponse, 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, DeleteClustersTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_req.py new file mode 100644 index 000000000..9cc80abad --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteConfReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """DeleteConfReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this DeleteConfReq. + + 配置文件名称。 + + :return: The name of this DeleteConfReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeleteConfReq. + + 配置文件名称。 + + :param name: The name of this DeleteConfReq. + :type: 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, DeleteConfReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_request.py new file mode 100644 index 000000000..faff4ffee --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteConfRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'DeleteConfReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """DeleteConfRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteConfRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this DeleteConfRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteConfRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this DeleteConfRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this DeleteConfRequest. + + + :return: The body of this DeleteConfRequest. + :rtype: DeleteConfReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteConfRequest. + + + :param body: The body of this DeleteConfRequest. + :type: DeleteConfReq + """ + 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, DeleteConfRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_response.py new file mode 100644 index 000000000..d1a80d7fc --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_conf_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteConfResponse(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): + """DeleteConfResponse - a model defined in huaweicloud sdk""" + + super(DeleteConfResponse, 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, DeleteConfResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_request.py new file mode 100644 index 000000000..3465e53dc --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIkThesaurusRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """DeleteIkThesaurusRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteIkThesaurusRequest. + + 指定要删除自定义词库的集群ID。 + + :return: The cluster_id of this DeleteIkThesaurusRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteIkThesaurusRequest. + + 指定要删除自定义词库的集群ID。 + + :param cluster_id: The cluster_id of this DeleteIkThesaurusRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteIkThesaurusRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_response.py new file mode 100644 index 000000000..d53c883bd --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_ik_thesaurus_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteIkThesaurusResponse(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): + """DeleteIkThesaurusResponse - a model defined in huaweicloud sdk""" + + super(DeleteIkThesaurusResponse, 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, DeleteIkThesaurusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_request.py new file mode 100644 index 000000000..eb81e4646 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteSnapshotRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'snapshot_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'snapshot_id': 'snapshot_id' + } + + def __init__(self, cluster_id=None, snapshot_id=None): + """DeleteSnapshotRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._snapshot_id = None + self.discriminator = None + + self.cluster_id = cluster_id + self.snapshot_id = snapshot_id + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteSnapshotRequest. + + 快照所属的集群的ID。 + + :return: The cluster_id of this DeleteSnapshotRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteSnapshotRequest. + + 快照所属的集群的ID。 + + :param cluster_id: The cluster_id of this DeleteSnapshotRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def snapshot_id(self): + """Gets the snapshot_id of this DeleteSnapshotRequest. + + 要删除快照的ID。 + + :return: The snapshot_id of this DeleteSnapshotRequest. + :rtype: str + """ + return self._snapshot_id + + @snapshot_id.setter + def snapshot_id(self, snapshot_id): + """Sets the snapshot_id of this DeleteSnapshotRequest. + + 要删除快照的ID。 + + :param snapshot_id: The snapshot_id of this DeleteSnapshotRequest. + :type: str + """ + self._snapshot_id = snapshot_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, DeleteSnapshotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_response.py new file mode 100644 index 000000000..65e2a89cd --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_snapshot_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteSnapshotResponse(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): + """DeleteSnapshotResponse - a model defined in huaweicloud sdk""" + + super(DeleteSnapshotResponse, 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, DeleteSnapshotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_req.py new file mode 100644 index 000000000..c40b9391c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTemplateReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): + """DeleteTemplateReq - a model defined in huaweicloud sdk""" + + + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this DeleteTemplateReq. + + 模板名称。 + + :return: The name of this DeleteTemplateReq. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this DeleteTemplateReq. + + 模板名称。 + + :param name: The name of this DeleteTemplateReq. + :type: 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, DeleteTemplateReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_request.py new file mode 100644 index 000000000..9d019c4d3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTemplateRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'DeleteTemplateReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """DeleteTemplateRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this DeleteTemplateRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this DeleteTemplateRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this DeleteTemplateRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this DeleteTemplateRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this DeleteTemplateRequest. + + + :return: The body of this DeleteTemplateRequest. + :rtype: DeleteTemplateReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteTemplateRequest. + + + :param body: The body of this DeleteTemplateRequest. + :type: DeleteTemplateReq + """ + 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, DeleteTemplateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_response.py new file mode 100644 index 000000000..3a6f0bdcf --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/delete_template_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteTemplateResponse(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): + """DeleteTemplateResponse - a model defined in huaweicloud sdk""" + + super(DeleteTemplateResponse, 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, DeleteTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_flavors_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_flavors_resp.py new file mode 100644 index 000000000..08cc23dfe --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_flavors_resp.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EsflavorsVersionsFlavorsResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'ram': 'int', + 'cpu': 'int', + 'name': 'str', + 'region': 'str', + 'diskrange': 'str', + 'flavor_id': 'str' + } + + attribute_map = { + 'ram': 'ram', + 'cpu': 'cpu', + 'name': 'name', + 'region': 'region', + 'diskrange': 'diskrange', + 'flavor_id': 'flavor_id' + } + + def __init__(self, ram=None, cpu=None, name=None, region=None, diskrange=None, flavor_id=None): + """EsflavorsVersionsFlavorsResp - a model defined in huaweicloud sdk""" + + + + self._ram = None + self._cpu = None + self._name = None + self._region = None + self._diskrange = None + self._flavor_id = None + self.discriminator = None + + if ram is not None: + self.ram = ram + if cpu is not None: + self.cpu = cpu + if name is not None: + self.name = name + if region is not None: + self.region = region + if diskrange is not None: + self.diskrange = diskrange + if flavor_id is not None: + self.flavor_id = flavor_id + + @property + def ram(self): + """Gets the ram of this EsflavorsVersionsFlavorsResp. + + 实例的内存大小。单位GB。 + + :return: The ram of this EsflavorsVersionsFlavorsResp. + :rtype: int + """ + return self._ram + + @ram.setter + def ram(self, ram): + """Sets the ram of this EsflavorsVersionsFlavorsResp. + + 实例的内存大小。单位GB。 + + :param ram: The ram of this EsflavorsVersionsFlavorsResp. + :type: int + """ + self._ram = ram + + @property + def cpu(self): + """Gets the cpu of this EsflavorsVersionsFlavorsResp. + + 实例的CPU核数。 + + :return: The cpu of this EsflavorsVersionsFlavorsResp. + :rtype: int + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """Sets the cpu of this EsflavorsVersionsFlavorsResp. + + 实例的CPU核数。 + + :param cpu: The cpu of this EsflavorsVersionsFlavorsResp. + :type: int + """ + self._cpu = cpu + + @property + def name(self): + """Gets the name of this EsflavorsVersionsFlavorsResp. + + 规格名称。 + + :return: The name of this EsflavorsVersionsFlavorsResp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this EsflavorsVersionsFlavorsResp. + + 规格名称。 + + :param name: The name of this EsflavorsVersionsFlavorsResp. + :type: str + """ + self._name = name + + @property + def region(self): + """Gets the region of this EsflavorsVersionsFlavorsResp. + + 可用区域。 + + :return: The region of this EsflavorsVersionsFlavorsResp. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this EsflavorsVersionsFlavorsResp. + + 可用区域。 + + :param region: The region of this EsflavorsVersionsFlavorsResp. + :type: str + """ + self._region = region + + @property + def diskrange(self): + """Gets the diskrange of this EsflavorsVersionsFlavorsResp. + + 实例的硬盘容量范围。 + + :return: The diskrange of this EsflavorsVersionsFlavorsResp. + :rtype: str + """ + return self._diskrange + + @diskrange.setter + def diskrange(self, diskrange): + """Sets the diskrange of this EsflavorsVersionsFlavorsResp. + + 实例的硬盘容量范围。 + + :param diskrange: The diskrange of this EsflavorsVersionsFlavorsResp. + :type: str + """ + self._diskrange = diskrange + + @property + def flavor_id(self): + """Gets the flavor_id of this EsflavorsVersionsFlavorsResp. + + 规格对应的ID。 + + :return: The flavor_id of this EsflavorsVersionsFlavorsResp. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this EsflavorsVersionsFlavorsResp. + + 规格对应的ID。 + + :param flavor_id: The flavor_id of this EsflavorsVersionsFlavorsResp. + :type: str + """ + self._flavor_id = flavor_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, EsflavorsVersionsFlavorsResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_resp.py new file mode 100644 index 000000000..d509cf21c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/esflavors_versions_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EsflavorsVersionsResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'flavors': 'list[EsflavorsVersionsFlavorsResp]' + } + + attribute_map = { + 'version': 'version', + 'flavors': 'flavors' + } + + def __init__(self, version=None, flavors=None): + """EsflavorsVersionsResp - a model defined in huaweicloud sdk""" + + + + self._version = None + self._flavors = None + self.discriminator = None + + if version is not None: + self.version = version + if flavors is not None: + self.flavors = flavors + + @property + def version(self): + """Gets the version of this EsflavorsVersionsResp. + + 引擎版本,支持5.5.1、6.2.3、6.5.4、7.1.1、7.6.2、7.9.3。 + + :return: The version of this EsflavorsVersionsResp. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this EsflavorsVersionsResp. + + 引擎版本,支持5.5.1、6.2.3、6.5.4、7.1.1、7.6.2、7.9.3。 + + :param version: The version of this EsflavorsVersionsResp. + :type: str + """ + self._version = version + + @property + def flavors(self): + """Gets the flavors of this EsflavorsVersionsResp. + + 规格列表。 + + :return: The flavors of this EsflavorsVersionsResp. + :rtype: list[EsflavorsVersionsFlavorsResp] + """ + return self._flavors + + @flavors.setter + def flavors(self, flavors): + """Sets the flavors of this EsflavorsVersionsResp. + + 规格列表。 + + :param flavors: The flavors of this EsflavorsVersionsResp. + :type: list[EsflavorsVersionsFlavorsResp] + """ + self._flavors = flavors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EsflavorsVersionsResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_grow_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_grow_req.py new file mode 100644 index 000000000..dbe774e00 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_grow_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExtendClusterGrowReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'modify_size': 'int' + } + + attribute_map = { + 'modify_size': 'modifySize' + } + + def __init__(self, modify_size=None): + """ExtendClusterGrowReq - a model defined in huaweicloud sdk""" + + + + self._modify_size = None + self.discriminator = None + + self.modify_size = modify_size + + @property + def modify_size(self): + """Gets the modify_size of this ExtendClusterGrowReq. + + 扩容实例个数。 说明:集群已有实例个数和扩容实例个数总和不能超过32。 + + :return: The modify_size of this ExtendClusterGrowReq. + :rtype: int + """ + return self._modify_size + + @modify_size.setter + def modify_size(self, modify_size): + """Sets the modify_size of this ExtendClusterGrowReq. + + 扩容实例个数。 说明:集群已有实例个数和扩容实例个数总和不能超过32。 + + :param modify_size: The modify_size of this ExtendClusterGrowReq. + :type: int + """ + self._modify_size = modify_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, ExtendClusterGrowReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_instances_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_instances_resp.py new file mode 100644 index 000000000..d235bb697 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_instances_resp.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExtendClusterInstancesResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'type': 'str', + 'shard_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'type': 'type', + 'shard_id': 'shard_id' + } + + def __init__(self, id=None, name=None, type=None, shard_id=None): + """ExtendClusterInstancesResp - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._type = None + self._shard_id = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if type is not None: + self.type = type + if shard_id is not None: + self.shard_id = shard_id + + @property + def id(self): + """Gets the id of this ExtendClusterInstancesResp. + + 实例ID。 + + :return: The id of this ExtendClusterInstancesResp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ExtendClusterInstancesResp. + + 实例ID。 + + :param id: The id of this ExtendClusterInstancesResp. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ExtendClusterInstancesResp. + + 实例名字。 + + :return: The name of this ExtendClusterInstancesResp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ExtendClusterInstancesResp. + + 实例名字。 + + :param name: The name of this ExtendClusterInstancesResp. + :type: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ExtendClusterInstancesResp. + + 实例类型。 + + :return: The type of this ExtendClusterInstancesResp. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ExtendClusterInstancesResp. + + 实例类型。 + + :param type: The type of this ExtendClusterInstancesResp. + :type: str + """ + self._type = type + + @property + def shard_id(self): + """Gets the shard_id of this ExtendClusterInstancesResp. + + 实例组名。 + + :return: The shard_id of this ExtendClusterInstancesResp. + :rtype: str + """ + return self._shard_id + + @shard_id.setter + def shard_id(self, shard_id): + """Sets the shard_id of this ExtendClusterInstancesResp. + + 实例组名。 + + :param shard_id: The shard_id of this ExtendClusterInstancesResp. + :type: str + """ + self._shard_id = shard_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, ExtendClusterInstancesResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_req.py new file mode 100644 index 000000000..caa02d000 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/extend_cluster_req.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExtendClusterReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'grow': 'ExtendClusterGrowReq', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'grow': 'grow', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, grow=None, is_auto_pay=None): + """ExtendClusterReq - a model defined in huaweicloud sdk""" + + + + self._grow = None + self._is_auto_pay = None + self.discriminator = None + + self.grow = grow + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def grow(self): + """Gets the grow of this ExtendClusterReq. + + + :return: The grow of this ExtendClusterReq. + :rtype: ExtendClusterGrowReq + """ + return self._grow + + @grow.setter + def grow(self, grow): + """Sets the grow of this ExtendClusterReq. + + + :param grow: The grow of this ExtendClusterReq. + :type: ExtendClusterGrowReq + """ + self._grow = grow + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this ExtendClusterReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this ExtendClusterReq. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this ExtendClusterReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this ExtendClusterReq. + :type: int + """ + 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, ExtendClusterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/get_log_backup_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/get_log_backup_req.py new file mode 100644 index 000000000..a2a57afe9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/get_log_backup_req.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetLogBackupReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_name': 'str', + 'level': 'str', + 'log_type': 'str' + } + + attribute_map = { + 'instance_name': 'instanceName', + 'level': 'level', + 'log_type': 'logType' + } + + def __init__(self, instance_name=None, level=None, log_type=None): + """GetLogBackupReq - a model defined in huaweicloud sdk""" + + + + self._instance_name = None + self._level = None + self._log_type = None + self.discriminator = None + + self.instance_name = instance_name + self.level = level + self.log_type = log_type + + @property + def instance_name(self): + """Gets the instance_name of this GetLogBackupReq. + + 节点名称 + + :return: The instance_name of this GetLogBackupReq. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this GetLogBackupReq. + + 节点名称 + + :param instance_name: The instance_name of this GetLogBackupReq. + :type: str + """ + self._instance_name = instance_name + + @property + def level(self): + """Gets the level of this GetLogBackupReq. + + 日志级别。可查询的日志级别为:INFO,ERROR,DEBUG,WARN。 + + :return: The level of this GetLogBackupReq. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this GetLogBackupReq. + + 日志级别。可查询的日志级别为:INFO,ERROR,DEBUG,WARN。 + + :param level: The level of this GetLogBackupReq. + :type: str + """ + self._level = level + + @property + def log_type(self): + """Gets the log_type of this GetLogBackupReq. + + 日志类型。可查询的日志类型为:deprecation,indexingSlow,searchSlow, instance。 + + :return: The log_type of this GetLogBackupReq. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """Sets the log_type of this GetLogBackupReq. + + 日志类型。可查询的日志类型为:deprecation,indexingSlow,searchSlow, instance。 + + :param log_type: The log_type of this GetLogBackupReq. + :type: str + """ + self._log_type = log_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, GetLogBackupReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_request.py new file mode 100644 index 000000000..045f44295 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListActionsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ListActionsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListActionsRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ListActionsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListActionsRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ListActionsRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListActionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_response.py new file mode 100644 index 000000000..de0938566 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_actions_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListActionsResponse(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 = { + 'actions': 'list[Actions]' + } + + attribute_map = { + 'actions': 'actions' + } + + def __init__(self, actions=None): + """ListActionsResponse - a model defined in huaweicloud sdk""" + + super(ListActionsResponse, self).__init__() + + self._actions = None + self.discriminator = None + + if actions is not None: + self.actions = actions + + @property + def actions(self): + """Gets the actions of this ListActionsResponse. + + 操作记录列表。 + + :return: The actions of this ListActionsResponse. + :rtype: list[Actions] + """ + return self._actions + + @actions.setter + def actions(self, actions): + """Sets the actions of this ListActionsResponse. + + 操作记录列表。 + + :param actions: The actions of this ListActionsResponse. + :type: list[Actions] + """ + self._actions = actions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListActionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py new file mode 100644 index 000000000..836d34868 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListClustersDetailsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'limit': 'int' + } + + attribute_map = { + 'start': 'start', + 'limit': 'limit' + } + + def __init__(self, start=None, limit=None): + """ListClustersDetailsRequest - a model defined in huaweicloud sdk""" + + + + self._start = None + self._limit = None + self.discriminator = None + + if start is not None: + self.start = start + if limit is not None: + self.limit = limit + + @property + def start(self): + """Gets the start of this ListClustersDetailsRequest. + + 指定查询起始值,默认值为1,即从第1个集群开始查询。 + + :return: The start of this ListClustersDetailsRequest. + :rtype: int + """ + return self._start + + @start.setter + def start(self, start): + """Sets the start of this ListClustersDetailsRequest. + + 指定查询起始值,默认值为1,即从第1个集群开始查询。 + + :param start: The start of this ListClustersDetailsRequest. + :type: int + """ + self._start = start + + @property + def limit(self): + """Gets the limit of this ListClustersDetailsRequest. + + 指定查询个数,默认值为10,即一次查询10个集群信息。 + + :return: The limit of this ListClustersDetailsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListClustersDetailsRequest. + + 指定查询个数,默认值为10,即一次查询10个集群信息。 + + :param limit: The limit of this ListClustersDetailsRequest. + :type: int + """ + self._limit = limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListClustersDetailsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_response.py new file mode 100644 index 000000000..0d7ff2da1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListClustersDetailsResponse(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 = { + 'clusters': 'list[ClusterList]' + } + + attribute_map = { + 'clusters': 'clusters' + } + + def __init__(self, clusters=None): + """ListClustersDetailsResponse - a model defined in huaweicloud sdk""" + + super(ListClustersDetailsResponse, self).__init__() + + self._clusters = None + self.discriminator = None + + if clusters is not None: + self.clusters = clusters + + @property + def clusters(self): + """Gets the clusters of this ListClustersDetailsResponse. + + 集群对象列表。 + + :return: The clusters of this ListClustersDetailsResponse. + :rtype: list[ClusterList] + """ + return self._clusters + + @clusters.setter + def clusters(self, clusters): + """Sets the clusters of this ListClustersDetailsResponse. + + 集群对象列表。 + + :param clusters: The clusters of this ListClustersDetailsResponse. + :type: list[ClusterList] + """ + self._clusters = clusters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListClustersDetailsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_request.py new file mode 100644 index 000000000..4caeaf38a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_request.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListClustersTagsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ListClustersTagsRequest - a 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, ListClustersTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_response.py new file mode 100644 index 000000000..8a3a70331 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_tags_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListClustersTagsResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'tags': 'list[ShowAllTagsTagsResp]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ListClustersTagsResponse - a model defined in huaweicloud sdk""" + + super(ListClustersTagsResponse, self).__init__() + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this ListClustersTagsResponse. + + 集群的标签列表。 + + :return: The tags of this ListClustersTagsResponse. + :rtype: list[ShowAllTagsTagsResp] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListClustersTagsResponse. + + 集群的标签列表。 + + :param tags: The tags of this ListClustersTagsResponse. + :type: list[ShowAllTagsTagsResp] + """ + 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, ListClustersTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_request.py new file mode 100644 index 000000000..b40e85234 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListConfsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ListConfsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListConfsRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ListConfsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListConfsRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ListConfsRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListConfsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_response.py new file mode 100644 index 000000000..63d7155d0 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_confs_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListConfsResponse(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 = { + 'confs': 'list[Confs]' + } + + attribute_map = { + 'confs': 'confs' + } + + def __init__(self, confs=None): + """ListConfsResponse - a model defined in huaweicloud sdk""" + + super(ListConfsResponse, self).__init__() + + self._confs = None + self.discriminator = None + + if confs is not None: + self.confs = confs + + @property + def confs(self): + """Gets the confs of this ListConfsResponse. + + 配置文件列表。 + + :return: The confs of this ListConfsResponse. + :rtype: list[Confs] + """ + return self._confs + + @confs.setter + def confs(self, confs): + """Sets the confs of this ListConfsResponse. + + 配置文件列表。 + + :param confs: The confs of this ListConfsResponse. + :type: list[Confs] + """ + self._confs = confs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListConfsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_request.py new file mode 100644 index 000000000..e707f0197 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_request.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFlavorsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ListFlavorsRequest - a 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, ListFlavorsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_response.py new file mode 100644 index 000000000..3b1fcdaff --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_flavors_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFlavorsResponse(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 = { + 'versions': 'list[EsflavorsVersionsResp]' + } + + attribute_map = { + 'versions': 'versions' + } + + def __init__(self, versions=None): + """ListFlavorsResponse - a model defined in huaweicloud sdk""" + + super(ListFlavorsResponse, self).__init__() + + self._versions = None + self.discriminator = None + + if versions is not None: + self.versions = versions + + @property + def versions(self): + """Gets the versions of this ListFlavorsResponse. + + 引擎版本列表。 + + :return: The versions of this ListFlavorsResponse. + :rtype: list[EsflavorsVersionsResp] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """Sets the versions of this ListFlavorsResponse. + + 引擎版本列表。 + + :param versions: The versions of this ListFlavorsResponse. + :type: list[EsflavorsVersionsResp] + """ + self._versions = versions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFlavorsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_request.py new file mode 100644 index 000000000..bf3fc4d2e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPipelinesRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ListPipelinesRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListPipelinesRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ListPipelinesRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListPipelinesRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ListPipelinesRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPipelinesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_response.py new file mode 100644 index 000000000..954eb299b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_pipelines_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPipelinesResponse(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 = { + 'pipelines': 'list[Pipelines]' + } + + attribute_map = { + 'pipelines': 'pipelines' + } + + def __init__(self, pipelines=None): + """ListPipelinesResponse - a model defined in huaweicloud sdk""" + + super(ListPipelinesResponse, self).__init__() + + self._pipelines = None + self.discriminator = None + + if pipelines is not None: + self.pipelines = pipelines + + @property + def pipelines(self): + """Gets the pipelines of this ListPipelinesResponse. + + pipeline列表。 + + :return: The pipelines of this ListPipelinesResponse. + :rtype: list[Pipelines] + """ + return self._pipelines + + @pipelines.setter + def pipelines(self, pipelines): + """Sets the pipelines of this ListPipelinesResponse. + + pipeline列表。 + + :param pipelines: The pipelines of this ListPipelinesResponse. + :type: list[Pipelines] + """ + self._pipelines = pipelines + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPipelinesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_datastore_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_datastore_resp.py new file mode 100644 index 000000000..26f34578d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_datastore_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSnapshotBackupsDatastoreResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'version': 'str' + } + + attribute_map = { + 'type': 'type', + 'version': 'version' + } + + def __init__(self, type=None, version=None): + """ListSnapshotBackupsDatastoreResp - a model defined in huaweicloud sdk""" + + + + self._type = None + self._version = None + self.discriminator = None + + if type is not None: + self.type = type + if version is not None: + self.version = version + + @property + def type(self): + """Gets the type of this ListSnapshotBackupsDatastoreResp. + + 支持类型:elasticsearch。 + + :return: The type of this ListSnapshotBackupsDatastoreResp. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListSnapshotBackupsDatastoreResp. + + 支持类型:elasticsearch。 + + :param type: The type of this ListSnapshotBackupsDatastoreResp. + :type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this ListSnapshotBackupsDatastoreResp. + + 引擎版本号。当前引擎版本为5.5.1、6.2.3、6.5.4、7.1.1、7.6.2、7.9.3。 + + :return: The version of this ListSnapshotBackupsDatastoreResp. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ListSnapshotBackupsDatastoreResp. + + 引擎版本号。当前引擎版本为5.5.1、6.2.3、6.5.4、7.1.1、7.6.2、7.9.3。 + + :param version: The version of this ListSnapshotBackupsDatastoreResp. + :type: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSnapshotBackupsDatastoreResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_resp.py new file mode 100644 index 000000000..993606cd7 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshot_backups_resp.py @@ -0,0 +1,679 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSnapshotBackupsResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'created': 'str', + 'datastore': 'ListSnapshotBackupsDatastoreResp', + 'description': 'str', + 'id': 'str', + 'cluster_id': 'str', + 'cluster_name': 'str', + 'name': 'str', + 'status': 'str', + 'updated': 'str', + 'backup_type': 'str', + 'backup_method': 'str', + 'backup_expected_start_time': 'str', + 'backup_keep_day': 'int', + 'backup_period': 'str', + 'indices': 'str', + 'total_shards': 'int', + 'failed_shards': 'int', + 'version': 'str', + 'restore_status': 'str', + 'start_time': 'int', + 'end_time': 'int', + 'bucket_name': 'str' + } + + attribute_map = { + 'created': 'created', + 'datastore': 'datastore', + 'description': 'description', + 'id': 'id', + 'cluster_id': 'clusterId', + 'cluster_name': 'clusterName', + 'name': 'name', + 'status': 'status', + 'updated': 'updated', + 'backup_type': 'backupType', + 'backup_method': 'backupMethod', + 'backup_expected_start_time': 'backupExpectedStartTime', + 'backup_keep_day': 'backupKeepDay', + 'backup_period': 'backupPeriod', + 'indices': 'indices', + 'total_shards': 'totalShards', + 'failed_shards': 'failedShards', + 'version': 'version', + 'restore_status': 'restoreStatus', + 'start_time': 'startTime', + 'end_time': 'endTime', + 'bucket_name': 'bucketName' + } + + def __init__(self, created=None, datastore=None, description=None, id=None, cluster_id=None, cluster_name=None, name=None, status=None, updated=None, backup_type=None, backup_method=None, backup_expected_start_time=None, backup_keep_day=None, backup_period=None, indices=None, total_shards=None, failed_shards=None, version=None, restore_status=None, start_time=None, end_time=None, bucket_name=None): + """ListSnapshotBackupsResp - a model defined in huaweicloud sdk""" + + + + self._created = None + self._datastore = None + self._description = None + self._id = None + self._cluster_id = None + self._cluster_name = None + self._name = None + self._status = None + self._updated = None + self._backup_type = None + self._backup_method = None + self._backup_expected_start_time = None + self._backup_keep_day = None + self._backup_period = None + self._indices = None + self._total_shards = None + self._failed_shards = None + self._version = None + self._restore_status = None + self._start_time = None + self._end_time = None + self._bucket_name = None + self.discriminator = None + + if created is not None: + self.created = created + if datastore is not None: + self.datastore = datastore + if description is not None: + self.description = description + if id is not None: + self.id = id + if cluster_id is not None: + self.cluster_id = cluster_id + if cluster_name is not None: + self.cluster_name = cluster_name + if name is not None: + self.name = name + if status is not None: + self.status = status + if updated is not None: + self.updated = updated + if backup_type is not None: + self.backup_type = backup_type + if backup_method is not None: + self.backup_method = backup_method + if backup_expected_start_time is not None: + self.backup_expected_start_time = backup_expected_start_time + if backup_keep_day is not None: + self.backup_keep_day = backup_keep_day + if backup_period is not None: + self.backup_period = backup_period + if indices is not None: + self.indices = indices + if total_shards is not None: + self.total_shards = total_shards + if failed_shards is not None: + self.failed_shards = failed_shards + if version is not None: + self.version = version + if restore_status is not None: + self.restore_status = restore_status + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if bucket_name is not None: + self.bucket_name = bucket_name + + @property + def created(self): + """Gets the created of this ListSnapshotBackupsResp. + + 快照创建时间。 + + :return: The created of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this ListSnapshotBackupsResp. + + 快照创建时间。 + + :param created: The created of this ListSnapshotBackupsResp. + :type: str + """ + self._created = created + + @property + def datastore(self): + """Gets the datastore of this ListSnapshotBackupsResp. + + + :return: The datastore of this ListSnapshotBackupsResp. + :rtype: ListSnapshotBackupsDatastoreResp + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this ListSnapshotBackupsResp. + + + :param datastore: The datastore of this ListSnapshotBackupsResp. + :type: ListSnapshotBackupsDatastoreResp + """ + self._datastore = datastore + + @property + def description(self): + """Gets the description of this ListSnapshotBackupsResp. + + 快照描述信息。 + + :return: The description of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ListSnapshotBackupsResp. + + 快照描述信息。 + + :param description: The description of this ListSnapshotBackupsResp. + :type: str + """ + self._description = description + + @property + def id(self): + """Gets the id of this ListSnapshotBackupsResp. + + 快照ID。 + + :return: The id of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListSnapshotBackupsResp. + + 快照ID。 + + :param id: The id of this ListSnapshotBackupsResp. + :type: str + """ + self._id = id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListSnapshotBackupsResp. + + 集群ID。 + + :return: The cluster_id of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListSnapshotBackupsResp. + + 集群ID。 + + :param cluster_id: The cluster_id of this ListSnapshotBackupsResp. + :type: str + """ + self._cluster_id = cluster_id + + @property + def cluster_name(self): + """Gets the cluster_name of this ListSnapshotBackupsResp. + + 集群名字。 + + :return: The cluster_name of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._cluster_name + + @cluster_name.setter + def cluster_name(self, cluster_name): + """Sets the cluster_name of this ListSnapshotBackupsResp. + + 集群名字。 + + :param cluster_name: The cluster_name of this ListSnapshotBackupsResp. + :type: str + """ + self._cluster_name = cluster_name + + @property + def name(self): + """Gets the name of this ListSnapshotBackupsResp. + + 快照名称。 + + :return: The name of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListSnapshotBackupsResp. + + 快照名称。 + + :param name: The name of this ListSnapshotBackupsResp. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this ListSnapshotBackupsResp. + + 快照状态。 + + :return: The status of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListSnapshotBackupsResp. + + 快照状态。 + + :param status: The status of this ListSnapshotBackupsResp. + :type: str + """ + self._status = status + + @property + def updated(self): + """Gets the updated of this ListSnapshotBackupsResp. + + 快照状态是否更新。 + + :return: The updated of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this ListSnapshotBackupsResp. + + 快照状态是否更新。 + + :param updated: The updated of this ListSnapshotBackupsResp. + :type: str + """ + self._updated = updated + + @property + def backup_type(self): + """Gets the backup_type of this ListSnapshotBackupsResp. + + “0”表示自动创建,“1”表示手动创建。 + + :return: The backup_type of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._backup_type + + @backup_type.setter + def backup_type(self, backup_type): + """Sets the backup_type of this ListSnapshotBackupsResp. + + “0”表示自动创建,“1”表示手动创建。 + + :param backup_type: The backup_type of this ListSnapshotBackupsResp. + :type: str + """ + self._backup_type = backup_type + + @property + def backup_method(self): + """Gets the backup_method of this ListSnapshotBackupsResp. + + 创建快照方式。 + + :return: The backup_method of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._backup_method + + @backup_method.setter + def backup_method(self, backup_method): + """Sets the backup_method of this ListSnapshotBackupsResp. + + 创建快照方式。 + + :param backup_method: The backup_method of this ListSnapshotBackupsResp. + :type: str + """ + self._backup_method = backup_method + + @property + def backup_expected_start_time(self): + """Gets the backup_expected_start_time of this ListSnapshotBackupsResp. + + 快照开始执行时间。 + + :return: The backup_expected_start_time of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._backup_expected_start_time + + @backup_expected_start_time.setter + def backup_expected_start_time(self, backup_expected_start_time): + """Sets the backup_expected_start_time of this ListSnapshotBackupsResp. + + 快照开始执行时间。 + + :param backup_expected_start_time: The backup_expected_start_time of this ListSnapshotBackupsResp. + :type: str + """ + self._backup_expected_start_time = backup_expected_start_time + + @property + def backup_keep_day(self): + """Gets the backup_keep_day of this ListSnapshotBackupsResp. + + 快照保留时间。 + + :return: The backup_keep_day of this ListSnapshotBackupsResp. + :rtype: int + """ + return self._backup_keep_day + + @backup_keep_day.setter + def backup_keep_day(self, backup_keep_day): + """Sets the backup_keep_day of this ListSnapshotBackupsResp. + + 快照保留时间。 + + :param backup_keep_day: The backup_keep_day of this ListSnapshotBackupsResp. + :type: int + """ + self._backup_keep_day = backup_keep_day + + @property + def backup_period(self): + """Gets the backup_period of this ListSnapshotBackupsResp. + + 快照每天执行的时间点。 + + :return: The backup_period of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._backup_period + + @backup_period.setter + def backup_period(self, backup_period): + """Sets the backup_period of this ListSnapshotBackupsResp. + + 快照每天执行的时间点。 + + :param backup_period: The backup_period of this ListSnapshotBackupsResp. + :type: str + """ + self._backup_period = backup_period + + @property + def indices(self): + """Gets the indices of this ListSnapshotBackupsResp. + + 要备份的索引。 + + :return: The indices of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._indices + + @indices.setter + def indices(self, indices): + """Sets the indices of this ListSnapshotBackupsResp. + + 要备份的索引。 + + :param indices: The indices of this ListSnapshotBackupsResp. + :type: str + """ + self._indices = indices + + @property + def total_shards(self): + """Gets the total_shards of this ListSnapshotBackupsResp. + + 要备份的索引的总shard数。 + + :return: The total_shards of this ListSnapshotBackupsResp. + :rtype: int + """ + return self._total_shards + + @total_shards.setter + def total_shards(self, total_shards): + """Sets the total_shards of this ListSnapshotBackupsResp. + + 要备份的索引的总shard数。 + + :param total_shards: The total_shards of this ListSnapshotBackupsResp. + :type: int + """ + self._total_shards = total_shards + + @property + def failed_shards(self): + """Gets the failed_shards of this ListSnapshotBackupsResp. + + 备份失败的shard数。 + + :return: The failed_shards of this ListSnapshotBackupsResp. + :rtype: int + """ + return self._failed_shards + + @failed_shards.setter + def failed_shards(self, failed_shards): + """Sets the failed_shards of this ListSnapshotBackupsResp. + + 备份失败的shard数。 + + :param failed_shards: The failed_shards of this ListSnapshotBackupsResp. + :type: int + """ + self._failed_shards = failed_shards + + @property + def version(self): + """Gets the version of this ListSnapshotBackupsResp. + + 快照的版本。 + + :return: The version of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ListSnapshotBackupsResp. + + 快照的版本。 + + :param version: The version of this ListSnapshotBackupsResp. + :type: str + """ + self._version = version + + @property + def restore_status(self): + """Gets the restore_status of this ListSnapshotBackupsResp. + + 快照恢复的状态。 + + :return: The restore_status of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._restore_status + + @restore_status.setter + def restore_status(self, restore_status): + """Sets the restore_status of this ListSnapshotBackupsResp. + + 快照恢复的状态。 + + :param restore_status: The restore_status of this ListSnapshotBackupsResp. + :type: str + """ + self._restore_status = restore_status + + @property + def start_time(self): + """Gets the start_time of this ListSnapshotBackupsResp. + + 快照开始执行的时间戳。 + + :return: The start_time of this ListSnapshotBackupsResp. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListSnapshotBackupsResp. + + 快照开始执行的时间戳。 + + :param start_time: The start_time of this ListSnapshotBackupsResp. + :type: int + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListSnapshotBackupsResp. + + 快照执行结束的时间戳。 + + :return: The end_time of this ListSnapshotBackupsResp. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListSnapshotBackupsResp. + + 快照执行结束的时间戳。 + + :param end_time: The end_time of this ListSnapshotBackupsResp. + :type: int + """ + self._end_time = end_time + + @property + def bucket_name(self): + """Gets the bucket_name of this ListSnapshotBackupsResp. + + 保存快照数据的桶。 + + :return: The bucket_name of this ListSnapshotBackupsResp. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this ListSnapshotBackupsResp. + + 保存快照数据的桶。 + + :param bucket_name: The bucket_name of this ListSnapshotBackupsResp. + :type: str + """ + self._bucket_name = bucket_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, ListSnapshotBackupsResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_request.py new file mode 100644 index 000000000..2adc37966 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSnapshotsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ListSnapshotsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListSnapshotsRequest. + + 指定需查询的快照所属的集群的ID。 + + :return: The cluster_id of this ListSnapshotsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListSnapshotsRequest. + + 指定需查询的快照所属的集群的ID。 + + :param cluster_id: The cluster_id of this ListSnapshotsRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSnapshotsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_response.py new file mode 100644 index 000000000..113b65188 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_snapshots_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSnapshotsResponse(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 = { + 'backups': 'list[ListSnapshotBackupsResp]' + } + + attribute_map = { + 'backups': 'backups' + } + + def __init__(self, backups=None): + """ListSnapshotsResponse - a model defined in huaweicloud sdk""" + + super(ListSnapshotsResponse, self).__init__() + + self._backups = None + self.discriminator = None + + if backups is not None: + self.backups = backups + + @property + def backups(self): + """Gets the backups of this ListSnapshotsResponse. + + 快照列表。 + + :return: The backups of this ListSnapshotsResponse. + :rtype: list[ListSnapshotBackupsResp] + """ + return self._backups + + @backups.setter + def backups(self, backups): + """Sets the backups of this ListSnapshotsResponse. + + 快照列表。 + + :param backups: The backups of this ListSnapshotsResponse. + :type: list[ListSnapshotBackupsResp] + """ + self._backups = backups + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSnapshotsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_request.py new file mode 100644 index 000000000..d7e055e97 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTemplatesRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): + """ListTemplatesRequest - a model defined in huaweicloud sdk""" + + + + self._type = None + self.discriminator = None + + if type is not None: + self.type = type + + @property + def type(self): + """Gets the type of this ListTemplatesRequest. + + 模板类型。custom为自定义模板,system为系统模板。不指定查询模板类型默认查找自定义模板和系统模板。 + + :return: The type of this ListTemplatesRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListTemplatesRequest. + + 模板类型。custom为自定义模板,system为系统模板。不指定查询模板类型默认查找自定义模板和系统模板。 + + :param type: The type of this ListTemplatesRequest. + :type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTemplatesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_response.py new file mode 100644 index 000000000..521b6bbda --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_templates_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTemplatesResponse(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 = { + 'system_templates': 'list[SystemTemplates]', + 'custom_templates': 'list[CustomTemplates]' + } + + attribute_map = { + 'system_templates': 'systemTemplates', + 'custom_templates': 'customTemplates' + } + + def __init__(self, system_templates=None, custom_templates=None): + """ListTemplatesResponse - a model defined in huaweicloud sdk""" + + super(ListTemplatesResponse, self).__init__() + + self._system_templates = None + self._custom_templates = None + self.discriminator = None + + if system_templates is not None: + self.system_templates = system_templates + if custom_templates is not None: + self.custom_templates = custom_templates + + @property + def system_templates(self): + """Gets the system_templates of this ListTemplatesResponse. + + 系统模板列表。 + + :return: The system_templates of this ListTemplatesResponse. + :rtype: list[SystemTemplates] + """ + return self._system_templates + + @system_templates.setter + def system_templates(self, system_templates): + """Sets the system_templates of this ListTemplatesResponse. + + 系统模板列表。 + + :param system_templates: The system_templates of this ListTemplatesResponse. + :type: list[SystemTemplates] + """ + self._system_templates = system_templates + + @property + def custom_templates(self): + """Gets the custom_templates of this ListTemplatesResponse. + + 自定义模板列表。 + + :return: The custom_templates of this ListTemplatesResponse. + :rtype: list[CustomTemplates] + """ + return self._custom_templates + + @custom_templates.setter + def custom_templates(self, custom_templates): + """Sets the custom_templates of this ListTemplatesResponse. + + 自定义模板列表。 + + :param custom_templates: The custom_templates of this ListTemplatesResponse. + :type: list[CustomTemplates] + """ + self._custom_templates = custom_templates + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTemplatesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_request.py new file mode 100644 index 000000000..7aef89e6d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListYmlsJobRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ListYmlsJobRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListYmlsJobRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ListYmlsJobRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListYmlsJobRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ListYmlsJobRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListYmlsJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_response.py new file mode 100644 index 000000000..207084fa3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_job_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListYmlsJobResponse(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 = { + 'config_list': 'list[ConfigList]' + } + + attribute_map = { + 'config_list': 'configList' + } + + def __init__(self, config_list=None): + """ListYmlsJobResponse - a model defined in huaweicloud sdk""" + + super(ListYmlsJobResponse, self).__init__() + + self._config_list = None + self.discriminator = None + + if config_list is not None: + self.config_list = config_list + + @property + def config_list(self): + """Gets the config_list of this ListYmlsJobResponse. + + 配置列表。 + + :return: The config_list of this ListYmlsJobResponse. + :rtype: list[ConfigList] + """ + return self._config_list + + @config_list.setter + def config_list(self, config_list): + """Sets the config_list of this ListYmlsJobResponse. + + 配置列表。 + + :param config_list: The config_list of this ListYmlsJobResponse. + :type: list[ConfigList] + """ + self._config_list = config_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, ListYmlsJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_request.py new file mode 100644 index 000000000..5d9f023d0 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListYmlsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ListYmlsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ListYmlsRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ListYmlsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ListYmlsRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ListYmlsRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListYmlsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_response.py new file mode 100644 index 000000000..cc628fc6e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_ymls_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListYmlsResponse(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 = { + 'config_list': 'list[ConfigList]' + } + + attribute_map = { + 'config_list': 'configList' + } + + def __init__(self, config_list=None): + """ListYmlsResponse - a model defined in huaweicloud sdk""" + + super(ListYmlsResponse, self).__init__() + + self._config_list = None + self.discriminator = None + + if config_list is not None: + self.config_list = config_list + + @property + def config_list(self): + """Gets the config_list of this ListYmlsResponse. + + 配置列表。 + + :return: The config_list of this ListYmlsResponse. + :rtype: list[ConfigList] + """ + return self._config_list + + @config_list.setter + def config_list(self, config_list): + """Sets the config_list of this ListYmlsResponse. + + 配置列表。 + + :param config_list: The config_list of this ListYmlsResponse. + :type: list[ConfigList] + """ + self._config_list = config_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, ListYmlsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/load_custom_thesaurus_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/load_custom_thesaurus_req.py new file mode 100644 index 000000000..77ad79592 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/load_custom_thesaurus_req.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LoadCustomThesaurusReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'main_object': 'str', + 'stop_object': 'str', + 'synonym_object': 'str' + } + + attribute_map = { + 'bucket_name': 'bucketName', + 'main_object': 'mainObject', + 'stop_object': 'stopObject', + 'synonym_object': 'synonymObject' + } + + def __init__(self, bucket_name=None, main_object=None, stop_object=None, synonym_object=None): + """LoadCustomThesaurusReq - a model defined in huaweicloud sdk""" + + + + self._bucket_name = None + self._main_object = None + self._stop_object = None + self._synonym_object = None + self.discriminator = None + + self.bucket_name = bucket_name + self.main_object = main_object + self.stop_object = stop_object + self.synonym_object = synonym_object + + @property + def bucket_name(self): + """Gets the bucket_name of this LoadCustomThesaurusReq. + + 词库文件存放的OBS桶(桶类型必须为标准存储或者低频存储,不支持归档存储)。 + + :return: The bucket_name of this LoadCustomThesaurusReq. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this LoadCustomThesaurusReq. + + 词库文件存放的OBS桶(桶类型必须为标准存储或者低频存储,不支持归档存储)。 + + :param bucket_name: The bucket_name of this LoadCustomThesaurusReq. + :type: str + """ + self._bucket_name = bucket_name + + @property + def main_object(self): + """Gets the main_object of this LoadCustomThesaurusReq. + + 主词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持100M。 mainObject, stopObject, synonymObject三个参数至少要填写一个。 说明:一次只能加载一个主词库,不支持同时加载多个主词库。 + + :return: The main_object of this LoadCustomThesaurusReq. + :rtype: str + """ + return self._main_object + + @main_object.setter + def main_object(self, main_object): + """Sets the main_object of this LoadCustomThesaurusReq. + + 主词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持100M。 mainObject, stopObject, synonymObject三个参数至少要填写一个。 说明:一次只能加载一个主词库,不支持同时加载多个主词库。 + + :param main_object: The main_object of this LoadCustomThesaurusReq. + :type: str + """ + self._main_object = main_object + + @property + def stop_object(self): + """Gets the stop_object of this LoadCustomThesaurusReq. + + 停词词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持20M。 mainObject, stopObject, synonymObject三个参数至少要填写一个。 + + :return: The stop_object of this LoadCustomThesaurusReq. + :rtype: str + """ + return self._stop_object + + @stop_object.setter + def stop_object(self, stop_object): + """Sets the stop_object of this LoadCustomThesaurusReq. + + 停词词库文件对象,必须为UTF-8无BOM编码的文本文件,一行一个分词,文件大小最大支持20M。 mainObject, stopObject, synonymObject三个参数至少要填写一个。 + + :param stop_object: The stop_object of this LoadCustomThesaurusReq. + :type: str + """ + self._stop_object = stop_object + + @property + def synonym_object(self): + """Gets the synonym_object of this LoadCustomThesaurusReq. + + 同义词词库文件,必须为UTF-8无BOM编码的文本文件,一行一组分词,文件大小最大支持20M。 mainObject, stopObject, synonymObject三个参数至少要填写一个。 + + :return: The synonym_object of this LoadCustomThesaurusReq. + :rtype: str + """ + return self._synonym_object + + @synonym_object.setter + def synonym_object(self, synonym_object): + """Sets the synonym_object of this LoadCustomThesaurusReq. + + 同义词词库文件,必须为UTF-8无BOM编码的文本文件,一行一组分词,文件大小最大支持20M。 mainObject, stopObject, synonymObject三个参数至少要填写一个。 + + :param synonym_object: The synonym_object of this LoadCustomThesaurusReq. + :type: str + """ + self._synonym_object = synonym_object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LoadCustomThesaurusReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py new file mode 100644 index 000000000..685cab8f9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_configuration.py @@ -0,0 +1,330 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LogConfiguration: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'cluster_id': 'str', + 'obs_bucket': 'str', + 'agency': 'str', + 'update_at': 'int', + 'base_path': 'str', + 'auto_enable': 'bool', + 'period': 'str', + 'log_switch': 'bool' + } + + attribute_map = { + 'id': 'id', + 'cluster_id': 'clusterId', + 'obs_bucket': 'obsBucket', + 'agency': 'agency', + 'update_at': 'updateAt', + 'base_path': 'basePath', + 'auto_enable': 'autoEnable', + 'period': 'period', + 'log_switch': 'logSwitch' + } + + def __init__(self, id=None, cluster_id=None, obs_bucket=None, agency=None, update_at=None, base_path=None, auto_enable=None, period=None, log_switch=None): + """LogConfiguration - a model defined in huaweicloud sdk""" + + + + self._id = None + self._cluster_id = None + self._obs_bucket = None + self._agency = None + self._update_at = None + self._base_path = None + self._auto_enable = None + self._period = None + self._log_switch = None + self.discriminator = None + + if id is not None: + self.id = id + if cluster_id is not None: + self.cluster_id = cluster_id + if obs_bucket is not None: + self.obs_bucket = obs_bucket + if agency is not None: + self.agency = agency + if update_at is not None: + self.update_at = update_at + if base_path is not None: + self.base_path = base_path + if auto_enable is not None: + self.auto_enable = auto_enable + if period is not None: + self.period = period + if log_switch is not None: + self.log_switch = log_switch + + @property + def id(self): + """Gets the id of this LogConfiguration. + + ID。 + + :return: The id of this LogConfiguration. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this LogConfiguration. + + ID。 + + :param id: The id of this LogConfiguration. + :type: str + """ + self._id = id + + @property + def cluster_id(self): + """Gets the cluster_id of this LogConfiguration. + + 集群ID。 + + :return: The cluster_id of this LogConfiguration. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this LogConfiguration. + + 集群ID。 + + :param cluster_id: The cluster_id of this LogConfiguration. + :type: str + """ + self._cluster_id = cluster_id + + @property + def obs_bucket(self): + """Gets the obs_bucket of this LogConfiguration. + + OBS桶。 + + :return: The obs_bucket of this LogConfiguration. + :rtype: str + """ + return self._obs_bucket + + @obs_bucket.setter + def obs_bucket(self, obs_bucket): + """Sets the obs_bucket of this LogConfiguration. + + OBS桶。 + + :param obs_bucket: The obs_bucket of this LogConfiguration. + :type: str + """ + self._obs_bucket = obs_bucket + + @property + def agency(self): + """Gets the agency of this LogConfiguration. + + IAM 委托。 + + :return: The agency of this LogConfiguration. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this LogConfiguration. + + IAM 委托。 + + :param agency: The agency of this LogConfiguration. + :type: str + """ + self._agency = agency + + @property + def update_at(self): + """Gets the update_at of this LogConfiguration. + + 更新时间。 + + :return: The update_at of this LogConfiguration. + :rtype: int + """ + return self._update_at + + @update_at.setter + def update_at(self, update_at): + """Sets the update_at of this LogConfiguration. + + 更新时间。 + + :param update_at: The update_at of this LogConfiguration. + :type: int + """ + self._update_at = update_at + + @property + def base_path(self): + """Gets the base_path of this LogConfiguration. + + 备份路径。 + + :return: The base_path of this LogConfiguration. + :rtype: str + """ + return self._base_path + + @base_path.setter + def base_path(self, base_path): + """Sets the base_path of this LogConfiguration. + + 备份路径。 + + :param base_path: The base_path of this LogConfiguration. + :type: str + """ + self._base_path = base_path + + @property + def auto_enable(self): + """Gets the auto_enable of this LogConfiguration. + + 自动备份开关。 + + :return: The auto_enable of this LogConfiguration. + :rtype: bool + """ + return self._auto_enable + + @auto_enable.setter + def auto_enable(self, auto_enable): + """Sets the auto_enable of this LogConfiguration. + + 自动备份开关。 + + :param auto_enable: The auto_enable of this LogConfiguration. + :type: bool + """ + self._auto_enable = auto_enable + + @property + def period(self): + """Gets the period of this LogConfiguration. + + 备份开始时间。 + + :return: The period of this LogConfiguration. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this LogConfiguration. + + 备份开始时间。 + + :param period: The period of this LogConfiguration. + :type: str + """ + self._period = period + + @property + def log_switch(self): + """Gets the log_switch of this LogConfiguration. + + 日志开关。 + + :return: The log_switch of this LogConfiguration. + :rtype: bool + """ + return self._log_switch + + @log_switch.setter + def log_switch(self, log_switch): + """Sets the log_switch of this LogConfiguration. + + 日志开关。 + + :param log_switch: The log_switch of this LogConfiguration. + :type: bool + """ + self._log_switch = log_switch + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LogConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_list.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_list.py new file mode 100644 index 000000000..5111d6320 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/log_list.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LogList: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'content': 'str', + 'date': 'str', + 'level': 'str' + } + + attribute_map = { + 'content': 'content', + 'date': 'date', + 'level': 'level' + } + + def __init__(self, content=None, date=None, level=None): + """LogList - a model defined in huaweicloud sdk""" + + + + self._content = None + self._date = None + self._level = None + self.discriminator = None + + if content is not None: + self.content = content + if date is not None: + self.date = date + if level is not None: + self.level = level + + @property + def content(self): + """Gets the content of this LogList. + + 日志内容。 + + :return: The content of this LogList. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this LogList. + + 日志内容。 + + :param content: The content of this LogList. + :type: str + """ + self._content = content + + @property + def date(self): + """Gets the date of this LogList. + + 日期。 + + :return: The date of this LogList. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this LogList. + + 日期。 + + :param date: The date of this LogList. + :type: str + """ + self._date = date + + @property + def level(self): + """Gets the level of this LogList. + + 日志级别。 + + :return: The level of this LogList. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this LogList. + + 日志级别。 + + :param level: The level of this LogList. + :type: str + """ + self._level = level + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LogList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pay_info_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pay_info_body.py new file mode 100644 index 000000000..c6c20795e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pay_info_body.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PayInfoBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'pay_model': 'int', + 'period': 'int', + 'is_auto_renew': 'int', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'pay_model': 'payModel', + 'period': 'period', + 'is_auto_renew': 'isAutoRenew', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, pay_model=None, period=None, is_auto_renew=None, is_auto_pay=None): + """PayInfoBody - a model defined in huaweicloud sdk""" + + + + self._pay_model = None + self._period = None + self._is_auto_renew = None + self._is_auto_pay = None + self.discriminator = None + + self.pay_model = pay_model + self.period = period + 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 pay_model(self): + """Gets the pay_model of this PayInfoBody. + + 订购周期类型。 - 2: 包月。 - 3: 包年。 + + :return: The pay_model of this PayInfoBody. + :rtype: int + """ + return self._pay_model + + @pay_model.setter + def pay_model(self, pay_model): + """Sets the pay_model of this PayInfoBody. + + 订购周期类型。 - 2: 包月。 - 3: 包年。 + + :param pay_model: The pay_model of this PayInfoBody. + :type: int + """ + self._pay_model = pay_model + + @property + def period(self): + """Gets the period of this PayInfoBody. + + 订购周期数。 - 若payModel为2,则有效值为1-9。 - 若payModel为3,则有效值为1-3。 + + :return: The period of this PayInfoBody. + :rtype: int + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this PayInfoBody. + + 订购周期数。 - 若payModel为2,则有效值为1-9。 - 若payModel为3,则有效值为1-3。 + + :param period: The period of this PayInfoBody. + :type: int + """ + self._period = period + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this PayInfoBody. + + 是否自动续订,为空时表示不自动续订。 - 1: 自动续订。 - 2:不自动续订(默认)。 + + :return: The is_auto_renew of this PayInfoBody. + :rtype: int + """ + return self._is_auto_renew + + @is_auto_renew.setter + def is_auto_renew(self, is_auto_renew): + """Sets the is_auto_renew of this PayInfoBody. + + 是否自动续订,为空时表示不自动续订。 - 1: 自动续订。 - 2:不自动续订(默认)。 + + :param is_auto_renew: The is_auto_renew of this PayInfoBody. + :type: int + """ + self._is_auto_renew = is_auto_renew + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this PayInfoBody. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this PayInfoBody. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this PayInfoBody. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this PayInfoBody. + :type: int + """ + 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, PayInfoBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/period_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/period_req.py new file mode 100644 index 000000000..4bd433bc6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/period_req.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PeriodReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'period_num': 'int', + 'is_auto_renew': 'int', + 'is_auto_pay': 'int', + 'console_url': 'str' + } + + attribute_map = { + 'period_type': 'periodType', + 'period_num': 'periodNum', + 'is_auto_renew': 'isAutoRenew', + 'is_auto_pay': 'isAutoPay', + 'console_url': 'consoleURL' + } + + def __init__(self, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None, console_url=None): + """PeriodReq - a model defined in huaweicloud sdk""" + + + + self._period_type = None + self._period_num = None + self._is_auto_renew = None + self._is_auto_pay = None + self._console_url = 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 + if console_url is not None: + self.console_url = console_url + + @property + def period_type(self): + """Gets the period_type of this PeriodReq. + + 订购周期类型。 - 2: 包月(参数范围:1-9)。 - 3: 包年(参数范围:1-3)。 + + :return: The period_type of this PeriodReq. + :rtype: int + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this PeriodReq. + + 订购周期类型。 - 2: 包月(参数范围:1-9)。 - 3: 包年(参数范围:1-3)。 + + :param period_type: The period_type of this PeriodReq. + :type: int + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this PeriodReq. + + 订购周期数。 + + :return: The period_num of this PeriodReq. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this PeriodReq. + + 订购周期数。 + + :param period_num: The period_num of this PeriodReq. + :type: int + """ + self._period_num = period_num + + @property + def is_auto_renew(self): + """Gets the is_auto_renew of this PeriodReq. + + 是否自动续订,为空时表示不自动续订 - 1: 自动续订。 - 2: 不自动续订(默认)。 + + :return: The is_auto_renew of this PeriodReq. + :rtype: int + """ + return self._is_auto_renew + + @is_auto_renew.setter + def is_auto_renew(self, is_auto_renew): + """Sets the is_auto_renew of this PeriodReq. + + 是否自动续订,为空时表示不自动续订 - 1: 自动续订。 - 2: 不自动续订(默认)。 + + :param is_auto_renew: The is_auto_renew of this PeriodReq. + :type: int + """ + self._is_auto_renew = is_auto_renew + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this PeriodReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this PeriodReq. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this PeriodReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this PeriodReq. + :type: int + """ + self._is_auto_pay = is_auto_pay + + @property + def console_url(self): + """Gets the console_url of this PeriodReq. + + 云服务ConsoleURL。 - 订购订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息。(仅手动支付时涉及)。 + + :return: The console_url of this PeriodReq. + :rtype: str + """ + return self._console_url + + @console_url.setter + def console_url(self, console_url): + """Sets the console_url of this PeriodReq. + + 云服务ConsoleURL。 - 订购订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息。(仅手动支付时涉及)。 + + :param console_url: The console_url of this PeriodReq. + :type: str + """ + self._console_url = console_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PeriodReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pipelines.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pipelines.py new file mode 100644 index 000000000..e2a453674 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/pipelines.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Pipelines: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'status': 'str', + 'keep_alive': 'bool', + 'events': 'str', + 'update_at': 'str' + } + + attribute_map = { + 'name': 'name', + 'status': 'status', + 'keep_alive': 'keepAlive', + 'events': 'events', + 'update_at': 'updateAt' + } + + def __init__(self, name=None, status=None, keep_alive=None, events=None, update_at=None): + """Pipelines - a model defined in huaweicloud sdk""" + + + + self._name = None + self._status = None + self._keep_alive = None + self._events = None + self._update_at = None + self.discriminator = None + + if name is not None: + self.name = name + if status is not None: + self.status = status + if keep_alive is not None: + self.keep_alive = keep_alive + if events is not None: + self.events = events + if update_at is not None: + self.update_at = update_at + + @property + def name(self): + """Gets the name of this Pipelines. + + 配置文件名称。 + + :return: The name of this Pipelines. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Pipelines. + + 配置文件名称。 + + :param name: The name of this Pipelines. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this Pipelines. + + pipeline状态。 + + :return: The status of this Pipelines. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Pipelines. + + pipeline状态。 + + :param status: The status of this Pipelines. + :type: str + """ + self._status = status + + @property + def keep_alive(self): + """Gets the keep_alive of this Pipelines. + + 是否开启常驻。 + + :return: The keep_alive of this Pipelines. + :rtype: bool + """ + return self._keep_alive + + @keep_alive.setter + def keep_alive(self, keep_alive): + """Sets the keep_alive of this Pipelines. + + 是否开启常驻。 + + :param keep_alive: The keep_alive of this Pipelines. + :type: bool + """ + self._keep_alive = keep_alive + + @property + def events(self): + """Gets the events of this Pipelines. + + 事件只有在“工作中”状态才可以实时查看(需要手动刷新),“已停止”状态请到output端查看迁移数据量。 + + :return: The events of this Pipelines. + :rtype: str + """ + return self._events + + @events.setter + def events(self, events): + """Sets the events of this Pipelines. + + 事件只有在“工作中”状态才可以实时查看(需要手动刷新),“已停止”状态请到output端查看迁移数据量。 + + :param events: The events of this Pipelines. + :type: str + """ + self._events = events + + @property + def update_at(self): + """Gets the update_at of this Pipelines. + + 更新时间。 + + :return: The update_at of this Pipelines. + :rtype: str + """ + return self._update_at + + @update_at.setter + def update_at(self, update_at): + """Sets the update_at of this Pipelines. + + 更新时间。 + + :param update_at: The update_at of this Pipelines. + :type: str + """ + self._update_at = update_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Pipelines): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_req.py new file mode 100644 index 000000000..a95f28136 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResetPasswordReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'newpassword': 'str' + } + + attribute_map = { + 'newpassword': 'newpassword' + } + + def __init__(self, newpassword=None): + """ResetPasswordReq - a model defined in huaweicloud sdk""" + + + + self._newpassword = None + self.discriminator = None + + self.newpassword = newpassword + + @property + def newpassword(self): + """Gets the newpassword of this ResetPasswordReq. + + 新密码。 + + :return: The newpassword of this ResetPasswordReq. + :rtype: str + """ + return self._newpassword + + @newpassword.setter + def newpassword(self, newpassword): + """Sets the newpassword of this ResetPasswordReq. + + 新密码。 + + :param newpassword: The newpassword of this ResetPasswordReq. + :type: str + """ + self._newpassword = newpassword + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResetPasswordReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_request.py new file mode 100644 index 000000000..518b297ff --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResetPasswordRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'ResetPasswordReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """ResetPasswordRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this ResetPasswordRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this ResetPasswordRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ResetPasswordRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this ResetPasswordRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this ResetPasswordRequest. + + + :return: The body of this ResetPasswordRequest. + :rtype: ResetPasswordReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ResetPasswordRequest. + + + :param body: The body of this ResetPasswordRequest. + :type: ResetPasswordReq + """ + 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, ResetPasswordRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_response.py new file mode 100644 index 000000000..3a43e03f6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/reset_password_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResetPasswordResponse(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): + """ResetPasswordResponse - a model defined in huaweicloud sdk""" + + super(ResetPasswordResponse, 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, ResetPasswordResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_request.py new file mode 100644 index 000000000..515f9294c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestartClusterRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """RestartClusterRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this RestartClusterRequest. + + 指定重启集群ID。 + + :return: The cluster_id of this RestartClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RestartClusterRequest. + + 指定重启集群ID。 + + :param cluster_id: The cluster_id of this RestartClusterRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RestartClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_response.py new file mode 100644 index 000000000..80cff9e77 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restart_cluster_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestartClusterResponse(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': 'list[str]' + } + + attribute_map = { + 'job_id': 'jobId' + } + + def __init__(self, job_id=None): + """RestartClusterResponse - a model defined in huaweicloud sdk""" + + super(RestartClusterResponse, 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 RestartClusterResponse. + + 重启任务的ID。 + + :return: The job_id of this RestartClusterResponse. + :rtype: list[str] + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this RestartClusterResponse. + + 重启任务的ID。 + + :param job_id: The job_id of this RestartClusterResponse. + :type: list[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, RestartClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_req.py new file mode 100644 index 000000000..1b728b15b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_req.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestoreSnapshotReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_cluster': 'str', + 'indices': 'str', + 'rename_pattern': 'str', + 'rename_replacement': 'str' + } + + attribute_map = { + 'target_cluster': 'targetCluster', + 'indices': 'indices', + 'rename_pattern': 'renamePattern', + 'rename_replacement': 'renameReplacement' + } + + def __init__(self, target_cluster=None, indices=None, rename_pattern=None, rename_replacement=None): + """RestoreSnapshotReq - a model defined in huaweicloud sdk""" + + + + self._target_cluster = None + self._indices = None + self._rename_pattern = None + self._rename_replacement = None + self.discriminator = None + + self.target_cluster = target_cluster + if indices is not None: + self.indices = indices + if rename_pattern is not None: + self.rename_pattern = rename_pattern + if rename_replacement is not None: + self.rename_replacement = rename_replacement + + @property + def target_cluster(self): + """Gets the target_cluster of this RestoreSnapshotReq. + + 快照要恢复到的集群的ID。 + + :return: The target_cluster of this RestoreSnapshotReq. + :rtype: str + """ + return self._target_cluster + + @target_cluster.setter + def target_cluster(self, target_cluster): + """Sets the target_cluster of this RestoreSnapshotReq. + + 快照要恢复到的集群的ID。 + + :param target_cluster: The target_cluster of this RestoreSnapshotReq. + :type: str + """ + self._target_cluster = target_cluster + + @property + def indices(self): + """Gets the indices of this RestoreSnapshotReq. + + 指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\\*”匹配多个索引,例如:2018-06\\*,表示恢复名称前缀是2018-06的所有索引的数据。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?特殊字符。 + + :return: The indices of this RestoreSnapshotReq. + :rtype: str + """ + return self._indices + + @indices.setter + def indices(self, indices): + """Sets the indices of this RestoreSnapshotReq. + + 指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\\*”匹配多个索引,例如:2018-06\\*,表示恢复名称前缀是2018-06的所有索引的数据。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?特殊字符。 + + :param indices: The indices of this RestoreSnapshotReq. + :type: str + """ + self._indices = indices + + @property + def rename_pattern(self): + """Gets the rename_pattern of this RestoreSnapshotReq. + + 匹配要恢复的索引规则,最大支持1024个字符。根据此处定义的过滤条件去恢复符合条件的索引,过滤条件请使用正则表达式。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?,特殊字符。 + + :return: The rename_pattern of this RestoreSnapshotReq. + :rtype: str + """ + return self._rename_pattern + + @rename_pattern.setter + def rename_pattern(self, rename_pattern): + """Sets the rename_pattern of this RestoreSnapshotReq. + + 匹配要恢复的索引规则,最大支持1024个字符。根据此处定义的过滤条件去恢复符合条件的索引,过滤条件请使用正则表达式。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?,特殊字符。 + + :param rename_pattern: The rename_pattern of this RestoreSnapshotReq. + :type: str + """ + self._rename_pattern = rename_pattern + + @property + def rename_replacement(self): + """Gets the rename_replacement of this RestoreSnapshotReq. + + 索引重命名的规则。0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?,特殊字符。例如,“restored_index_$1”表示在所有恢复的索引名称前面加上“restored_”。 设置renameReplacement参数时,renamePattern和该参数必须同时设置才能生效。 + + :return: The rename_replacement of this RestoreSnapshotReq. + :rtype: str + """ + return self._rename_replacement + + @rename_replacement.setter + def rename_replacement(self, rename_replacement): + """Sets the rename_replacement of this RestoreSnapshotReq. + + 索引重命名的规则。0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?,特殊字符。例如,“restored_index_$1”表示在所有恢复的索引名称前面加上“restored_”。 设置renameReplacement参数时,renamePattern和该参数必须同时设置才能生效。 + + :param rename_replacement: The rename_replacement of this RestoreSnapshotReq. + :type: str + """ + self._rename_replacement = rename_replacement + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RestoreSnapshotReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_request.py new file mode 100644 index 000000000..d7dad89bb --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_request.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestoreSnapshotRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'snapshot_id': 'str', + 'body': 'RestoreSnapshotReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'snapshot_id': 'snapshot_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, snapshot_id=None, body=None): + """RestoreSnapshotRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._snapshot_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + self.snapshot_id = snapshot_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this RestoreSnapshotRequest. + + 快照所属的集群ID。 + + :return: The cluster_id of this RestoreSnapshotRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RestoreSnapshotRequest. + + 快照所属的集群ID。 + + :param cluster_id: The cluster_id of this RestoreSnapshotRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def snapshot_id(self): + """Gets the snapshot_id of this RestoreSnapshotRequest. + + 快照ID。 + + :return: The snapshot_id of this RestoreSnapshotRequest. + :rtype: str + """ + return self._snapshot_id + + @snapshot_id.setter + def snapshot_id(self, snapshot_id): + """Sets the snapshot_id of this RestoreSnapshotRequest. + + 快照ID。 + + :param snapshot_id: The snapshot_id of this RestoreSnapshotRequest. + :type: str + """ + self._snapshot_id = snapshot_id + + @property + def body(self): + """Gets the body of this RestoreSnapshotRequest. + + + :return: The body of this RestoreSnapshotRequest. + :rtype: RestoreSnapshotReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RestoreSnapshotRequest. + + + :param body: The body of this RestoreSnapshotRequest. + :type: RestoreSnapshotReq + """ + 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, RestoreSnapshotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_response.py new file mode 100644 index 000000000..78544d5e3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/restore_snapshot_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestoreSnapshotResponse(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): + """RestoreSnapshotResponse - a model defined in huaweicloud sdk""" + + super(RestoreSnapshotResponse, 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, RestoreSnapshotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/result.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/result.py new file mode 100644 index 000000000..eeaf39185 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/result.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Result: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'port': 'int', + 'status': 'int' + } + + attribute_map = { + 'address': 'address', + 'port': 'port', + 'status': 'status' + } + + def __init__(self, address=None, port=None, status=None): + """Result - a model defined in huaweicloud sdk""" + + + + self._address = None + self._port = None + self._status = None + self.discriminator = None + + if address is not None: + self.address = address + if port is not None: + self.port = port + if status is not None: + self.status = status + + @property + def address(self): + """Gets the address of this Result. + + IP地址或域名。 + + :return: The address of this Result. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this Result. + + IP地址或域名。 + + :param address: The address of this Result. + :type: str + """ + self._address = address + + @property + def port(self): + """Gets the port of this Result. + + 端口号。 + + :return: The port of this Result. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this Result. + + 端口号。 + + :param port: The port of this Result. + :type: int + """ + self._port = port + + @property + def status(self): + """Gets the status of this Result. + + 测试结果。1表示连接成功,0表示地址不可达,2表示端口不可达,3表示域名无法解析,-2表示位置错误。 + + :return: The status of this Result. + :rtype: int + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Result. + + 测试结果。1表示连接成功,0表示地址不可达,2表示端口不可达,3表示域名无法解析,-2表示位置错误。 + + :param status: The status of this Result. + :type: int + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Result): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_grow_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_grow_req.py new file mode 100644 index 000000000..0c1cc7307 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_grow_req.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RoleExtendGrowReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'nodesize': 'int', + 'disksize': 'int' + } + + attribute_map = { + 'type': 'type', + 'nodesize': 'nodesize', + 'disksize': 'disksize' + } + + def __init__(self, type=None, nodesize=None, disksize=None): + """RoleExtendGrowReq - a model defined in huaweicloud sdk""" + + + + self._type = None + self._nodesize = None + self._disksize = None + self.discriminator = None + + self.type = type + self.nodesize = nodesize + self.disksize = disksize + + @property + def type(self): + """Gets the type of this RoleExtendGrowReq. + + 扩容实例类型。取值为ess、ess-master或ess-client,请至少选择一个。 ess-master、ess-client节点只支持扩容实例个数。 + + :return: The type of this RoleExtendGrowReq. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RoleExtendGrowReq. + + 扩容实例类型。取值为ess、ess-master或ess-client,请至少选择一个。 ess-master、ess-client节点只支持扩容实例个数。 + + :param type: The type of this RoleExtendGrowReq. + :type: str + """ + self._type = type + + @property + def nodesize(self): + """Gets the nodesize of this RoleExtendGrowReq. + + 扩容实例个数。集群已有实例个数和扩容实例个数总和不能超过32。 + + :return: The nodesize of this RoleExtendGrowReq. + :rtype: int + """ + return self._nodesize + + @nodesize.setter + def nodesize(self, nodesize): + """Sets the nodesize of this RoleExtendGrowReq. + + 扩容实例个数。集群已有实例个数和扩容实例个数总和不能超过32。 + + :param nodesize: The nodesize of this RoleExtendGrowReq. + :type: int + """ + self._nodesize = nodesize + + @property + def disksize(self): + """Gets the disksize of this RoleExtendGrowReq. + + 扩容实例存储容量。集群原实例存储容量和扩容实例存储容量之和不能超过创建集群时对应的实例存储容量上限,且同一个集群实例存储容量扩容不能超过6次。 单位:GB。 + + :return: The disksize of this RoleExtendGrowReq. + :rtype: int + """ + return self._disksize + + @disksize.setter + def disksize(self, disksize): + """Sets the disksize of this RoleExtendGrowReq. + + 扩容实例存储容量。集群原实例存储容量和扩容实例存储容量之和不能超过创建集群时对应的实例存储容量上限,且同一个集群实例存储容量扩容不能超过6次。 单位:GB。 + + :param disksize: The disksize of this RoleExtendGrowReq. + :type: int + """ + self._disksize = disksize + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RoleExtendGrowReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_req.py new file mode 100644 index 000000000..64fdfbfc6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/role_extend_req.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RoleExtendReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'grow': 'list[RoleExtendGrowReq]', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'grow': 'grow', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, grow=None, is_auto_pay=None): + """RoleExtendReq - a model defined in huaweicloud sdk""" + + + + self._grow = None + self._is_auto_pay = None + self.discriminator = None + + self.grow = grow + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def grow(self): + """Gets the grow of this RoleExtendReq. + + 集群扩容请求详细描述。 + + :return: The grow of this RoleExtendReq. + :rtype: list[RoleExtendGrowReq] + """ + return self._grow + + @grow.setter + def grow(self, grow): + """Sets the grow of this RoleExtendReq. + + 集群扩容请求详细描述。 + + :param grow: The grow of this RoleExtendReq. + :type: list[RoleExtendGrowReq] + """ + self._grow = grow + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this RoleExtendReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this RoleExtendReq. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this RoleExtendReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this RoleExtendReq. + :type: int + """ + 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, RoleExtendReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/set_rds_backup_cnf_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/set_rds_backup_cnf_req.py new file mode 100644 index 000000000..9a518743b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/set_rds_backup_cnf_req.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetRDSBackupCnfReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'prefix': 'str', + 'period': 'str', + 'keepday': 'int', + 'enable': 'str', + 'delete_auto': 'str' + } + + attribute_map = { + 'prefix': 'prefix', + 'period': 'period', + 'keepday': 'keepday', + 'enable': 'enable', + 'delete_auto': 'deleteAuto' + } + + def __init__(self, prefix=None, period=None, keepday=None, enable=None, delete_auto=None): + """SetRDSBackupCnfReq - a model defined in huaweicloud sdk""" + + + + self._prefix = None + self._period = None + self._keepday = None + self._enable = None + self._delete_auto = None + self.discriminator = None + + self.prefix = prefix + self.period = period + self.keepday = keepday + self.enable = enable + if delete_auto is not None: + self.delete_auto = delete_auto + + @property + def prefix(self): + """Gets the prefix of this SetRDSBackupCnfReq. + + 自动创建的快照名称前缀。 + + :return: The prefix of this SetRDSBackupCnfReq. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this SetRDSBackupCnfReq. + + 自动创建的快照名称前缀。 + + :param prefix: The prefix of this SetRDSBackupCnfReq. + :type: str + """ + self._prefix = prefix + + @property + def period(self): + """Gets the period of this SetRDSBackupCnfReq. + + 每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :return: The period of this SetRDSBackupCnfReq. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this SetRDSBackupCnfReq. + + 每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :param period: The period of this SetRDSBackupCnfReq. + :type: str + """ + self._period = period + + @property + def keepday(self): + """Gets the keepday of this SetRDSBackupCnfReq. + + 设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。 + + :return: The keepday of this SetRDSBackupCnfReq. + :rtype: int + """ + return self._keepday + + @keepday.setter + def keepday(self, keepday): + """Sets the keepday of this SetRDSBackupCnfReq. + + 设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。 + + :param keepday: The keepday of this SetRDSBackupCnfReq. + :type: int + """ + self._keepday = keepday + + @property + def enable(self): + """Gets the enable of this SetRDSBackupCnfReq. + + “true”表示开启自动创建快照策略,“false”表示关闭自动创建快照策略。 + + :return: The enable of this SetRDSBackupCnfReq. + :rtype: str + """ + return self._enable + + @enable.setter + def enable(self, enable): + """Sets the enable of this SetRDSBackupCnfReq. + + “true”表示开启自动创建快照策略,“false”表示关闭自动创建快照策略。 + + :param enable: The enable of this SetRDSBackupCnfReq. + :type: str + """ + self._enable = enable + + @property + def delete_auto(self): + """Gets the delete_auto of this SetRDSBackupCnfReq. + + 表示关闭自动创建快照策略时,是否需要清除所有自动创建的快照。默认为“false”,表示不会删除之前已自动创建的快照。设置为true,表示在关闭自动创建快照策略的同时,删除所有已创建的快照。 + + :return: The delete_auto of this SetRDSBackupCnfReq. + :rtype: str + """ + return self._delete_auto + + @delete_auto.setter + def delete_auto(self, delete_auto): + """Sets the delete_auto of this SetRDSBackupCnfReq. + + 表示关闭自动创建快照策略时,是否需要清除所有自动创建的快照。默认为“false”,表示不会删除之前已自动创建的快照。设置为true,表示在关闭自动创建快照策略的同时,删除所有已创建的快照。 + + :param delete_auto: The delete_auto of this SetRDSBackupCnfReq. + :type: str + """ + self._delete_auto = delete_auto + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetRDSBackupCnfReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/setting.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/setting.py new file mode 100644 index 000000000..c6058eaba --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/setting.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Setting: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'workers': 'int', + 'batch_size': 'int', + 'batch_delay_ms': 'int', + 'queue_type': 'str', + 'queue_check_point_writes': 'int', + 'queue_max_bytes_mb': 'int' + } + + attribute_map = { + 'workers': 'workers', + 'batch_size': 'batchSize', + 'batch_delay_ms': 'batchDelayMs', + 'queue_type': 'queueType', + 'queue_check_point_writes': 'queueCheckPointWrites', + 'queue_max_bytes_mb': 'queueMaxBytesMb' + } + + def __init__(self, workers=None, batch_size=None, batch_delay_ms=None, queue_type=None, queue_check_point_writes=None, queue_max_bytes_mb=None): + """Setting - a model defined in huaweicloud sdk""" + + + + self._workers = None + self._batch_size = None + self._batch_delay_ms = None + self._queue_type = None + self._queue_check_point_writes = None + self._queue_max_bytes_mb = None + self.discriminator = None + + if workers is not None: + self.workers = workers + if batch_size is not None: + self.batch_size = batch_size + if batch_delay_ms is not None: + self.batch_delay_ms = batch_delay_ms + self.queue_type = queue_type + if queue_check_point_writes is not None: + self.queue_check_point_writes = queue_check_point_writes + if queue_max_bytes_mb is not None: + self.queue_max_bytes_mb = queue_max_bytes_mb + + @property + def workers(self): + """Gets the workers of this Setting. + + 并行执行管道的Filters+Outputs阶段的工作线程数,默认值为CPU核数。 + + :return: The workers of this Setting. + :rtype: int + """ + return self._workers + + @workers.setter + def workers(self, workers): + """Sets the workers of this Setting. + + 并行执行管道的Filters+Outputs阶段的工作线程数,默认值为CPU核数。 + + :param workers: The workers of this Setting. + :type: int + """ + self._workers = workers + + @property + def batch_size(self): + """Gets the batch_size of this Setting. + + 单个工作线程在尝试执行其Filters和Outputs之前将从inputs收集的最大事件数,该值较大通常更有效,但会增加内存开销,默认为125。 + + :return: The batch_size of this Setting. + :rtype: int + """ + return self._batch_size + + @batch_size.setter + def batch_size(self, batch_size): + """Sets the batch_size of this Setting. + + 单个工作线程在尝试执行其Filters和Outputs之前将从inputs收集的最大事件数,该值较大通常更有效,但会增加内存开销,默认为125。 + + :param batch_size: The batch_size of this Setting. + :type: int + """ + self._batch_size = batch_size + + @property + def batch_delay_ms(self): + """Gets the batch_delay_ms of this Setting. + + 每个event被pipeline调度等待的最小时间。 单位毫秒。 + + :return: The batch_delay_ms of this Setting. + :rtype: int + """ + return self._batch_delay_ms + + @batch_delay_ms.setter + def batch_delay_ms(self, batch_delay_ms): + """Sets the batch_delay_ms of this Setting. + + 每个event被pipeline调度等待的最小时间。 单位毫秒。 + + :param batch_delay_ms: The batch_delay_ms of this Setting. + :type: int + """ + self._batch_delay_ms = batch_delay_ms + + @property + def queue_type(self): + """Gets the queue_type of this Setting. + + 用于事件缓冲的内部队列模型。memory 为基于内存的传统队列,persisted为基于磁盘的ACKed持久化队列,默认值为memory。 + + :return: The queue_type of this Setting. + :rtype: str + """ + return self._queue_type + + @queue_type.setter + def queue_type(self, queue_type): + """Sets the queue_type of this Setting. + + 用于事件缓冲的内部队列模型。memory 为基于内存的传统队列,persisted为基于磁盘的ACKed持久化队列,默认值为memory。 + + :param queue_type: The queue_type of this Setting. + :type: str + """ + self._queue_type = queue_type + + @property + def queue_check_point_writes(self): + """Gets the queue_check_point_writes of this Setting. + + 如果使用持久化队列,则表示强制执行检查点之前写入的最大事件数,默认值为1024。 + + :return: The queue_check_point_writes of this Setting. + :rtype: int + """ + return self._queue_check_point_writes + + @queue_check_point_writes.setter + def queue_check_point_writes(self, queue_check_point_writes): + """Sets the queue_check_point_writes of this Setting. + + 如果使用持久化队列,则表示强制执行检查点之前写入的最大事件数,默认值为1024。 + + :param queue_check_point_writes: The queue_check_point_writes of this Setting. + :type: int + """ + self._queue_check_point_writes = queue_check_point_writes + + @property + def queue_max_bytes_mb(self): + """Gets the queue_max_bytes_mb of this Setting. + + 如果使用持久化队列,则表示持久化队列的总容量(以兆字节MB为单位),确保磁盘的容量大于该值,默认值为1024。 + + :return: The queue_max_bytes_mb of this Setting. + :rtype: int + """ + return self._queue_max_bytes_mb + + @queue_max_bytes_mb.setter + def queue_max_bytes_mb(self, queue_max_bytes_mb): + """Sets the queue_max_bytes_mb of this Setting. + + 如果使用持久化队列,则表示持久化队列的总容量(以兆字节MB为单位),确保磁盘的容量大于该值,默认值为1024。 + + :param queue_max_bytes_mb: The queue_max_bytes_mb of this Setting. + :type: int + """ + self._queue_max_bytes_mb = queue_max_bytes_mb + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Setting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_all_tags_tags_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_all_tags_tags_resp.py new file mode 100644 index 000000000..6ca4d996c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_all_tags_tags_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAllTagsTagsResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'values': 'list[str]' + } + + attribute_map = { + 'key': 'key', + 'values': 'values' + } + + def __init__(self, key=None, values=None): + """ShowAllTagsTagsResp - a model defined in huaweicloud sdk""" + + + + self._key = None + self._values = None + self.discriminator = None + + if key is not None: + self.key = key + if values is not None: + self.values = values + + @property + def key(self): + """Gets the key of this ShowAllTagsTagsResp. + + 集群标签的key值。 + + :return: The key of this ShowAllTagsTagsResp. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ShowAllTagsTagsResp. + + 集群标签的key值。 + + :param key: The key of this ShowAllTagsTagsResp. + :type: str + """ + self._key = key + + @property + def values(self): + """Gets the values of this ShowAllTagsTagsResp. + + 集群标签的value值列表。 + + :return: The values of this ShowAllTagsTagsResp. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this ShowAllTagsTagsResp. + + 集群标签的value值列表。 + + :param values: The values of this ShowAllTagsTagsResp. + :type: list[str] + """ + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAllTagsTagsResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_request.py new file mode 100644 index 000000000..548f8eb88 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAutoCreatePolicyRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ShowAutoCreatePolicyRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowAutoCreatePolicyRequest. + + 指定需查询自动创建快照策略的集群ID。 + + :return: The cluster_id of this ShowAutoCreatePolicyRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowAutoCreatePolicyRequest. + + 指定需查询自动创建快照策略的集群ID。 + + :param cluster_id: The cluster_id of this ShowAutoCreatePolicyRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAutoCreatePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_response.py new file mode 100644 index 000000000..ec03b5345 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_auto_create_policy_response.py @@ -0,0 +1,276 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAutoCreatePolicyResponse(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 = { + 'keepday': 'int', + 'period': 'str', + 'prefix': 'str', + 'bucket': 'str', + 'base_path': 'str', + 'agency': 'str', + 'enable': 'str' + } + + attribute_map = { + 'keepday': 'keepday', + 'period': 'period', + 'prefix': 'prefix', + 'bucket': 'bucket', + 'base_path': 'basePath', + 'agency': 'agency', + 'enable': 'enable' + } + + def __init__(self, keepday=None, period=None, prefix=None, bucket=None, base_path=None, agency=None, enable=None): + """ShowAutoCreatePolicyResponse - a model defined in huaweicloud sdk""" + + super(ShowAutoCreatePolicyResponse, self).__init__() + + self._keepday = None + self._period = None + self._prefix = None + self._bucket = None + self._base_path = None + self._agency = None + self._enable = None + self.discriminator = None + + if keepday is not None: + self.keepday = keepday + if period is not None: + self.period = period + if prefix is not None: + self.prefix = prefix + if bucket is not None: + self.bucket = bucket + if base_path is not None: + self.base_path = base_path + if agency is not None: + self.agency = agency + if enable is not None: + self.enable = enable + + @property + def keepday(self): + """Gets the keepday of this ShowAutoCreatePolicyResponse. + + 快照保留的天数。 + + :return: The keepday of this ShowAutoCreatePolicyResponse. + :rtype: int + """ + return self._keepday + + @keepday.setter + def keepday(self, keepday): + """Sets the keepday of this ShowAutoCreatePolicyResponse. + + 快照保留的天数。 + + :param keepday: The keepday of this ShowAutoCreatePolicyResponse. + :type: int + """ + self._keepday = keepday + + @property + def period(self): + """Gets the period of this ShowAutoCreatePolicyResponse. + + 每天快照创建时刻。 + + :return: The period of this ShowAutoCreatePolicyResponse. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this ShowAutoCreatePolicyResponse. + + 每天快照创建时刻。 + + :param period: The period of this ShowAutoCreatePolicyResponse. + :type: str + """ + self._period = period + + @property + def prefix(self): + """Gets the prefix of this ShowAutoCreatePolicyResponse. + + 快照命名前缀。 + + :return: The prefix of this ShowAutoCreatePolicyResponse. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this ShowAutoCreatePolicyResponse. + + 快照命名前缀。 + + :param prefix: The prefix of this ShowAutoCreatePolicyResponse. + :type: str + """ + self._prefix = prefix + + @property + def bucket(self): + """Gets the bucket of this ShowAutoCreatePolicyResponse. + + 快照存放的OBS桶。 + + :return: The bucket of this ShowAutoCreatePolicyResponse. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this ShowAutoCreatePolicyResponse. + + 快照存放的OBS桶。 + + :param bucket: The bucket of this ShowAutoCreatePolicyResponse. + :type: str + """ + self._bucket = bucket + + @property + def base_path(self): + """Gets the base_path of this ShowAutoCreatePolicyResponse. + + 快照在OBS桶中的存放路径。 + + :return: The base_path of this ShowAutoCreatePolicyResponse. + :rtype: str + """ + return self._base_path + + @base_path.setter + def base_path(self, base_path): + """Sets the base_path of this ShowAutoCreatePolicyResponse. + + 快照在OBS桶中的存放路径。 + + :param base_path: The base_path of this ShowAutoCreatePolicyResponse. + :type: str + """ + self._base_path = base_path + + @property + def agency(self): + """Gets the agency of this ShowAutoCreatePolicyResponse. + + 访问OBS桶用到的委托。 + + :return: The agency of this ShowAutoCreatePolicyResponse. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this ShowAutoCreatePolicyResponse. + + 访问OBS桶用到的委托。 + + :param agency: The agency of this ShowAutoCreatePolicyResponse. + :type: str + """ + self._agency = agency + + @property + def enable(self): + """Gets the enable of this ShowAutoCreatePolicyResponse. + + 是否开启自动创建快照策略。 + + :return: The enable of this ShowAutoCreatePolicyResponse. + :rtype: str + """ + return self._enable + + @enable.setter + def enable(self, enable): + """Sets the enable of this ShowAutoCreatePolicyResponse. + + 是否开启自动创建快照策略。 + + :param enable: The enable of this ShowAutoCreatePolicyResponse. + :type: str + """ + self._enable = enable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAutoCreatePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_request.py new file mode 100644 index 000000000..17219ce54 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClusterTagRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ShowClusterTagRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowClusterTagRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this ShowClusterTagRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowClusterTagRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this ShowClusterTagRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowClusterTagRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_response.py new file mode 100644 index 000000000..a3f60a252 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_tag_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClusterTagResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'tags': 'list[ShowTagsTagsResp]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): + """ShowClusterTagResponse - a model defined in huaweicloud sdk""" + + super(ShowClusterTagResponse, self).__init__() + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this ShowClusterTagResponse. + + 集群标签列表。 + + :return: The tags of this ShowClusterTagResponse. + :rtype: list[ShowTagsTagsResp] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ShowClusterTagResponse. + + 集群标签列表。 + + :param tags: The tags of this ShowClusterTagResponse. + :type: list[ShowTagsTagsResp] + """ + 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, ShowClusterTagResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_request.py new file mode 100644 index 000000000..d280442e2 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowGetConfDetailRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'name': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'name': 'name' + } + + def __init__(self, cluster_id=None, name=None): + """ShowGetConfDetailRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._name = None + self.discriminator = None + + self.cluster_id = cluster_id + self.name = name + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowGetConfDetailRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ShowGetConfDetailRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowGetConfDetailRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ShowGetConfDetailRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def name(self): + """Gets the name of this ShowGetConfDetailRequest. + + 配置文件名称。 + + :return: The name of this ShowGetConfDetailRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowGetConfDetailRequest. + + 配置文件名称。 + + :param name: The name of this ShowGetConfDetailRequest. + :type: 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, ShowGetConfDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_response.py new file mode 100644 index 000000000..6fb23733d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_conf_detail_response.py @@ -0,0 +1,220 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowGetConfDetailResponse(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 = { + 'name': 'str', + 'status': 'str', + 'conf_content': 'str', + 'setting': 'Setting', + 'update_at': 'str' + } + + attribute_map = { + 'name': 'name', + 'status': 'status', + 'conf_content': 'confContent', + 'setting': 'setting', + 'update_at': 'updateAt' + } + + def __init__(self, name=None, status=None, conf_content=None, setting=None, update_at=None): + """ShowGetConfDetailResponse - a model defined in huaweicloud sdk""" + + super(ShowGetConfDetailResponse, self).__init__() + + self._name = None + self._status = None + self._conf_content = None + self._setting = None + self._update_at = None + self.discriminator = None + + if name is not None: + self.name = name + if status is not None: + self.status = status + if conf_content is not None: + self.conf_content = conf_content + if setting is not None: + self.setting = setting + if update_at is not None: + self.update_at = update_at + + @property + def name(self): + """Gets the name of this ShowGetConfDetailResponse. + + 配置文件名称。 + + :return: The name of this ShowGetConfDetailResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowGetConfDetailResponse. + + 配置文件名称。 + + :param name: The name of this ShowGetConfDetailResponse. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this ShowGetConfDetailResponse. + + 配置文件状态。 + + :return: The status of this ShowGetConfDetailResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowGetConfDetailResponse. + + 配置文件状态。 + + :param status: The status of this ShowGetConfDetailResponse. + :type: str + """ + self._status = status + + @property + def conf_content(self): + """Gets the conf_content of this ShowGetConfDetailResponse. + + 配置文件内容。 + + :return: The conf_content of this ShowGetConfDetailResponse. + :rtype: str + """ + return self._conf_content + + @conf_content.setter + def conf_content(self, conf_content): + """Sets the conf_content of this ShowGetConfDetailResponse. + + 配置文件内容。 + + :param conf_content: The conf_content of this ShowGetConfDetailResponse. + :type: str + """ + self._conf_content = conf_content + + @property + def setting(self): + """Gets the setting of this ShowGetConfDetailResponse. + + + :return: The setting of this ShowGetConfDetailResponse. + :rtype: Setting + """ + return self._setting + + @setting.setter + def setting(self, setting): + """Sets the setting of this ShowGetConfDetailResponse. + + + :param setting: The setting of this ShowGetConfDetailResponse. + :type: Setting + """ + self._setting = setting + + @property + def update_at(self): + """Gets the update_at of this ShowGetConfDetailResponse. + + 更新时间。 + + :return: The update_at of this ShowGetConfDetailResponse. + :rtype: str + """ + return self._update_at + + @update_at.setter + def update_at(self, update_at): + """Sets the update_at of this ShowGetConfDetailResponse. + + 更新时间。 + + :param update_at: The update_at of this ShowGetConfDetailResponse. + :type: str + """ + self._update_at = update_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowGetConfDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_request.py new file mode 100644 index 000000000..ada018381 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowGetLogSettingRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ShowGetLogSettingRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowGetLogSettingRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ShowGetLogSettingRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowGetLogSettingRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ShowGetLogSettingRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowGetLogSettingRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_response.py new file mode 100644 index 000000000..70d505cc3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_get_log_setting_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowGetLogSettingResponse(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 = { + 'log_configuration': 'LogConfiguration' + } + + attribute_map = { + 'log_configuration': 'logConfiguration' + } + + def __init__(self, log_configuration=None): + """ShowGetLogSettingResponse - a model defined in huaweicloud sdk""" + + super(ShowGetLogSettingResponse, self).__init__() + + self._log_configuration = None + self.discriminator = None + + if log_configuration is not None: + self.log_configuration = log_configuration + + @property + def log_configuration(self): + """Gets the log_configuration of this ShowGetLogSettingResponse. + + + :return: The log_configuration of this ShowGetLogSettingResponse. + :rtype: LogConfiguration + """ + return self._log_configuration + + @log_configuration.setter + def log_configuration(self, log_configuration): + """Sets the log_configuration of this ShowGetLogSettingResponse. + + + :param log_configuration: The log_configuration of this ShowGetLogSettingResponse. + :type: LogConfiguration + """ + self._log_configuration = log_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, ShowGetLogSettingResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_request.py new file mode 100644 index 000000000..074066add --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIkThesaurusRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ShowIkThesaurusRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowIkThesaurusRequest. + + 指定需查询词库状态的集群ID。 + + :return: The cluster_id of this ShowIkThesaurusRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowIkThesaurusRequest. + + 指定需查询词库状态的集群ID。 + + :param cluster_id: The cluster_id of this ShowIkThesaurusRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIkThesaurusRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_response.py new file mode 100644 index 000000000..f2768bbc1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_ik_thesaurus_response.py @@ -0,0 +1,357 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowIkThesaurusResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'status': 'str', + 'bucket': 'str', + 'main_obj': 'str', + 'stop_obj': 'str', + 'synonym_obj': 'str', + 'update_time': 'str', + 'update_details': 'str', + 'cluster_id': 'str', + 'operate_status': 'str', + 'id': 'str' + } + + attribute_map = { + 'status': 'status', + 'bucket': 'bucket', + 'main_obj': 'mainObj', + 'stop_obj': 'stopObj', + 'synonym_obj': 'synonymObj', + 'update_time': 'updateTime', + 'update_details': 'updateDetails', + 'cluster_id': 'clusterId', + 'operate_status': 'operateStatus', + 'id': 'id' + } + + def __init__(self, status=None, bucket=None, main_obj=None, stop_obj=None, synonym_obj=None, update_time=None, update_details=None, cluster_id=None, operate_status=None, id=None): + """ShowIkThesaurusResponse - a model defined in huaweicloud sdk""" + + super(ShowIkThesaurusResponse, self).__init__() + + self._status = None + self._bucket = None + self._main_obj = None + self._stop_obj = None + self._synonym_obj = None + self._update_time = None + self._update_details = None + self._cluster_id = None + self._operate_status = None + self._id = None + self.discriminator = None + + if status is not None: + self.status = status + if bucket is not None: + self.bucket = bucket + if main_obj is not None: + self.main_obj = main_obj + if stop_obj is not None: + self.stop_obj = stop_obj + if synonym_obj is not None: + self.synonym_obj = synonym_obj + if update_time is not None: + self.update_time = update_time + if update_details is not None: + self.update_details = update_details + if cluster_id is not None: + self.cluster_id = cluster_id + if operate_status is not None: + self.operate_status = operate_status + if id is not None: + self.id = id + + @property + def status(self): + """Gets the status of this ShowIkThesaurusResponse. + + 加载状态。 - Loaded表示加载成功。 - Loading表示正在加载中。 - Failed表示加载失败。 + + :return: The status of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowIkThesaurusResponse. + + 加载状态。 - Loaded表示加载成功。 - Loading表示正在加载中。 - Failed表示加载失败。 + + :param status: The status of this ShowIkThesaurusResponse. + :type: str + """ + self._status = status + + @property + def bucket(self): + """Gets the bucket of this ShowIkThesaurusResponse. + + 存放词库文件的OBS桶。 + + :return: The bucket of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this ShowIkThesaurusResponse. + + 存放词库文件的OBS桶。 + + :param bucket: The bucket of this ShowIkThesaurusResponse. + :type: str + """ + self._bucket = bucket + + @property + def main_obj(self): + """Gets the main_obj of this ShowIkThesaurusResponse. + + 主词库文件对象。 + + :return: The main_obj of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._main_obj + + @main_obj.setter + def main_obj(self, main_obj): + """Sets the main_obj of this ShowIkThesaurusResponse. + + 主词库文件对象。 + + :param main_obj: The main_obj of this ShowIkThesaurusResponse. + :type: str + """ + self._main_obj = main_obj + + @property + def stop_obj(self): + """Gets the stop_obj of this ShowIkThesaurusResponse. + + 停词词库文件对象。 + + :return: The stop_obj of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._stop_obj + + @stop_obj.setter + def stop_obj(self, stop_obj): + """Sets the stop_obj of this ShowIkThesaurusResponse. + + 停词词库文件对象。 + + :param stop_obj: The stop_obj of this ShowIkThesaurusResponse. + :type: str + """ + self._stop_obj = stop_obj + + @property + def synonym_obj(self): + """Gets the synonym_obj of this ShowIkThesaurusResponse. + + 同义词词库文件对象。 + + :return: The synonym_obj of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._synonym_obj + + @synonym_obj.setter + def synonym_obj(self, synonym_obj): + """Sets the synonym_obj of this ShowIkThesaurusResponse. + + 同义词词库文件对象。 + + :param synonym_obj: The synonym_obj of this ShowIkThesaurusResponse. + :type: str + """ + self._synonym_obj = synonym_obj + + @property + def update_time(self): + """Gets the update_time of this ShowIkThesaurusResponse. + + 词库最近更新时间。 + + :return: The update_time of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowIkThesaurusResponse. + + 词库最近更新时间。 + + :param update_time: The update_time of this ShowIkThesaurusResponse. + :type: str + """ + self._update_time = update_time + + @property + def update_details(self): + """Gets the update_details of this ShowIkThesaurusResponse. + + 更新详情。 + + :return: The update_details of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._update_details + + @update_details.setter + def update_details(self, update_details): + """Sets the update_details of this ShowIkThesaurusResponse. + + 更新详情。 + + :param update_details: The update_details of this ShowIkThesaurusResponse. + :type: str + """ + self._update_details = update_details + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowIkThesaurusResponse. + + 指定配置自定义词库的集群ID。 + + :return: The cluster_id of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowIkThesaurusResponse. + + 指定配置自定义词库的集群ID。 + + :param cluster_id: The cluster_id of this ShowIkThesaurusResponse. + :type: str + """ + self._cluster_id = cluster_id + + @property + def operate_status(self): + """Gets the operate_status of this ShowIkThesaurusResponse. + + 操作状态。 + + :return: The operate_status of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._operate_status + + @operate_status.setter + def operate_status(self, operate_status): + """Sets the operate_status of this ShowIkThesaurusResponse. + + 操作状态。 + + :param operate_status: The operate_status of this ShowIkThesaurusResponse. + :type: str + """ + self._operate_status = operate_status + + @property + def id(self): + """Gets the id of this ShowIkThesaurusResponse. + + 词库的ID。 + + :return: The id of this ShowIkThesaurusResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowIkThesaurusResponse. + + 词库的ID。 + + :param id: The id of this ShowIkThesaurusResponse. + :type: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowIkThesaurusResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_request.py new file mode 100644 index 000000000..714b8840e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowLogBackupRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'GetLogBackupReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """ShowLogBackupRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowLogBackupRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ShowLogBackupRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowLogBackupRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ShowLogBackupRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this ShowLogBackupRequest. + + + :return: The body of this ShowLogBackupRequest. + :rtype: GetLogBackupReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowLogBackupRequest. + + + :param body: The body of this ShowLogBackupRequest. + :type: GetLogBackupReq + """ + 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, ShowLogBackupRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_response.py new file mode 100644 index 000000000..134468c81 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_log_backup_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowLogBackupResponse(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 = { + 'log_list': 'list[LogList]' + } + + attribute_map = { + 'log_list': 'logList' + } + + def __init__(self, log_list=None): + """ShowLogBackupResponse - a model defined in huaweicloud sdk""" + + super(ShowLogBackupResponse, self).__init__() + + self._log_list = None + self.discriminator = None + + if log_list is not None: + self.log_list = log_list + + @property + def log_list(self): + """Gets the log_list of this ShowLogBackupResponse. + + + :return: The log_list of this ShowLogBackupResponse. + :rtype: list[LogList] + """ + return self._log_list + + @log_list.setter + def log_list(self, log_list): + """Sets the log_list of this ShowLogBackupResponse. + + + :param log_list: The log_list of this ShowLogBackupResponse. + :type: list[LogList] + """ + self._log_list = log_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, ShowLogBackupResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_tags_tags_resp.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_tags_tags_resp.py new file mode 100644 index 000000000..c677bb900 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_tags_tags_resp.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTagsTagsResp: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowTagsTagsResp - a model defined in huaweicloud sdk""" + + + + self._key = None + self._value = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this ShowTagsTagsResp. + + 集群标签的key值。 + + :return: The key of this ShowTagsTagsResp. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this ShowTagsTagsResp. + + 集群标签的key值。 + + :param key: The key of this ShowTagsTagsResp. + :type: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this ShowTagsTagsResp. + + 集群标签的value值。 + + :return: The value of this ShowTagsTagsResp. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ShowTagsTagsResp. + + 集群标签的value值。 + + :param value: The value of this ShowTagsTagsResp. + :type: 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, ShowTagsTagsResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_request.py new file mode 100644 index 000000000..1907e47bb --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowVpcepConnectionRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """ShowVpcepConnectionRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowVpcepConnectionRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this ShowVpcepConnectionRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowVpcepConnectionRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this ShowVpcepConnectionRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowVpcepConnectionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py new file mode 100644 index 000000000..5508baafc --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowVpcepConnectionResponse(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 = { + 'connections': 'list[Connections]', + 'vpcep_update_switch': 'bool', + 'total_count': 'int' + } + + attribute_map = { + 'connections': 'connections', + 'vpcep_update_switch': 'vpcepUpdateSwitch', + 'total_count': 'total_count' + } + + def __init__(self, connections=None, vpcep_update_switch=None, total_count=None): + """ShowVpcepConnectionResponse - a model defined in huaweicloud sdk""" + + super(ShowVpcepConnectionResponse, self).__init__() + + self._connections = None + self._vpcep_update_switch = None + self._total_count = None + self.discriminator = None + + if connections is not None: + self.connections = connections + if vpcep_update_switch is not None: + self.vpcep_update_switch = vpcep_update_switch + if total_count is not None: + self.total_count = total_count + + @property + def connections(self): + """Gets the connections of this ShowVpcepConnectionResponse. + + + :return: The connections of this ShowVpcepConnectionResponse. + :rtype: list[Connections] + """ + return self._connections + + @connections.setter + def connections(self, connections): + """Sets the connections of this ShowVpcepConnectionResponse. + + + :param connections: The connections of this ShowVpcepConnectionResponse. + :type: list[Connections] + """ + self._connections = connections + + @property + def vpcep_update_switch(self): + """Gets the vpcep_update_switch of this ShowVpcepConnectionResponse. + + 终端节点更新开关。 + + :return: The vpcep_update_switch of this ShowVpcepConnectionResponse. + :rtype: bool + """ + return self._vpcep_update_switch + + @vpcep_update_switch.setter + def vpcep_update_switch(self, vpcep_update_switch): + """Sets the vpcep_update_switch of this ShowVpcepConnectionResponse. + + 终端节点更新开关。 + + :param vpcep_update_switch: The vpcep_update_switch of this ShowVpcepConnectionResponse. + :type: bool + """ + self._vpcep_update_switch = vpcep_update_switch + + @property + def total_count(self): + """Gets the total_count of this ShowVpcepConnectionResponse. + + 终端节点数量。 + + :return: The total_count of this ShowVpcepConnectionResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ShowVpcepConnectionResponse. + + 终端节点数量。 + + :param total_count: The total_count of this ShowVpcepConnectionResponse. + :type: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowVpcepConnectionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_request.py new file mode 100644 index 000000000..b9f28a206 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartAutoSettingRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StartAutoSettingRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StartAutoSettingRequest. + + 指定要备份的集群ID。 + + :return: The cluster_id of this StartAutoSettingRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartAutoSettingRequest. + + 指定要备份的集群ID。 + + :param cluster_id: The cluster_id of this StartAutoSettingRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartAutoSettingRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_response.py new file mode 100644 index 000000000..69c20f1ef --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_auto_setting_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartAutoSettingResponse(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): + """StartAutoSettingResponse - a model defined in huaweicloud sdk""" + + super(StartAutoSettingResponse, 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, StartAutoSettingResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_req.py new file mode 100644 index 000000000..843e45b5d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartConnectivityTestReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_and_ports': 'list[AddressAndPorts]' + } + + attribute_map = { + 'address_and_ports': 'addressAndPorts' + } + + def __init__(self, address_and_ports=None): + """StartConnectivityTestReq - a model defined in huaweicloud sdk""" + + + + self._address_and_ports = None + self.discriminator = None + + self.address_and_ports = address_and_ports + + @property + def address_and_ports(self): + """Gets the address_and_ports of this StartConnectivityTestReq. + + 地址和端口列表。 + + :return: The address_and_ports of this StartConnectivityTestReq. + :rtype: list[AddressAndPorts] + """ + return self._address_and_ports + + @address_and_ports.setter + def address_and_ports(self, address_and_ports): + """Sets the address_and_ports of this StartConnectivityTestReq. + + 地址和端口列表。 + + :param address_and_ports: The address_and_ports of this StartConnectivityTestReq. + :type: list[AddressAndPorts] + """ + self._address_and_ports = address_and_ports + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartConnectivityTestReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_request.py new file mode 100644 index 000000000..ef4263c95 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartConnectivityTestRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartConnectivityTestReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartConnectivityTestRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartConnectivityTestRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartConnectivityTestRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartConnectivityTestRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartConnectivityTestRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartConnectivityTestRequest. + + + :return: The body of this StartConnectivityTestRequest. + :rtype: StartConnectivityTestReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartConnectivityTestRequest. + + + :param body: The body of this StartConnectivityTestRequest. + :type: StartConnectivityTestReq + """ + 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, StartConnectivityTestRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_response.py new file mode 100644 index 000000000..cbd57b8e9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_connectivity_test_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartConnectivityTestResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'result': 'list[Result]' + } + + attribute_map = { + 'result': 'result' + } + + def __init__(self, result=None): + """StartConnectivityTestResponse - a model defined in huaweicloud sdk""" + + super(StartConnectivityTestResponse, self).__init__() + + self._result = None + self.discriminator = None + + if result is not None: + self.result = result + + @property + def result(self): + """Gets the result of this StartConnectivityTestResponse. + + 连通性测试结果。 + + :return: The result of this StartConnectivityTestResponse. + :rtype: list[Result] + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this StartConnectivityTestResponse. + + 连通性测试结果。 + + :param result: The result of this StartConnectivityTestResponse. + :type: list[Result] + """ + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartConnectivityTestResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req.py new file mode 100644 index 000000000..447959b16 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartKibanaPublicReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_size': 'int', + 'elb_white_list': 'StartKibanaPublicReqElbWhitelist', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'eip_size': 'eipSize', + 'elb_white_list': 'elbWhiteList', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, eip_size=None, elb_white_list=None, is_auto_pay=None): + """StartKibanaPublicReq - a model defined in huaweicloud sdk""" + + + + self._eip_size = None + self._elb_white_list = None + self._is_auto_pay = None + self.discriminator = None + + self.eip_size = eip_size + self.elb_white_list = elb_white_list + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def eip_size(self): + """Gets the eip_size of this StartKibanaPublicReq. + + 带宽。 + + :return: The eip_size of this StartKibanaPublicReq. + :rtype: int + """ + return self._eip_size + + @eip_size.setter + def eip_size(self, eip_size): + """Sets the eip_size of this StartKibanaPublicReq. + + 带宽。 + + :param eip_size: The eip_size of this StartKibanaPublicReq. + :type: int + """ + self._eip_size = eip_size + + @property + def elb_white_list(self): + """Gets the elb_white_list of this StartKibanaPublicReq. + + + :return: The elb_white_list of this StartKibanaPublicReq. + :rtype: StartKibanaPublicReqElbWhitelist + """ + return self._elb_white_list + + @elb_white_list.setter + def elb_white_list(self, elb_white_list): + """Sets the elb_white_list of this StartKibanaPublicReq. + + + :param elb_white_list: The elb_white_list of this StartKibanaPublicReq. + :type: StartKibanaPublicReqElbWhitelist + """ + self._elb_white_list = elb_white_list + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this StartKibanaPublicReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this StartKibanaPublicReq. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this StartKibanaPublicReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this StartKibanaPublicReq. + :type: int + """ + 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, StartKibanaPublicReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req_elb_whitelist.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req_elb_whitelist.py new file mode 100644 index 000000000..35331d5bc --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_req_elb_whitelist.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartKibanaPublicReqElbWhitelist: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_white_list': 'bool', + 'white_list': 'str' + } + + attribute_map = { + 'enable_white_list': 'enableWhiteList', + 'white_list': 'whiteList' + } + + def __init__(self, enable_white_list=None, white_list=None): + """StartKibanaPublicReqElbWhitelist - a model defined in huaweicloud sdk""" + + + + self._enable_white_list = None + self._white_list = None + self.discriminator = None + + self.enable_white_list = enable_white_list + self.white_list = white_list + + @property + def enable_white_list(self): + """Gets the enable_white_list of this StartKibanaPublicReqElbWhitelist. + + 开启白名单。 + + :return: The enable_white_list of this StartKibanaPublicReqElbWhitelist. + :rtype: bool + """ + return self._enable_white_list + + @enable_white_list.setter + def enable_white_list(self, enable_white_list): + """Sets the enable_white_list of this StartKibanaPublicReqElbWhitelist. + + 开启白名单。 + + :param enable_white_list: The enable_white_list of this StartKibanaPublicReqElbWhitelist. + :type: bool + """ + self._enable_white_list = enable_white_list + + @property + def white_list(self): + """Gets the white_list of this StartKibanaPublicReqElbWhitelist. + + 白名单。 + + :return: The white_list of this StartKibanaPublicReqElbWhitelist. + :rtype: str + """ + return self._white_list + + @white_list.setter + def white_list(self, white_list): + """Sets the white_list of this StartKibanaPublicReqElbWhitelist. + + 白名单。 + + :param white_list: The white_list of this StartKibanaPublicReqElbWhitelist. + :type: str + """ + self._white_list = white_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, StartKibanaPublicReqElbWhitelist): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_request.py new file mode 100644 index 000000000..6ffa11574 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartKibanaPublicRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartKibanaPublicReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartKibanaPublicRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartKibanaPublicRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartKibanaPublicRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartKibanaPublicRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartKibanaPublicRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartKibanaPublicRequest. + + + :return: The body of this StartKibanaPublicRequest. + :rtype: StartKibanaPublicReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartKibanaPublicRequest. + + + :param body: The body of this StartKibanaPublicRequest. + :type: StartKibanaPublicReq + """ + 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, StartKibanaPublicRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_response.py new file mode 100644 index 000000000..d06a0be8a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_kibana_public_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartKibanaPublicResponse(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): + """StartKibanaPublicResponse - a model defined in huaweicloud sdk""" + + super(StartKibanaPublicResponse, 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, StartKibanaPublicResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_req.py new file mode 100644 index 000000000..7cd44a33b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartLogAutoBackupPolicyReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str' + } + + attribute_map = { + 'period': 'period' + } + + def __init__(self, period=None): + """StartLogAutoBackupPolicyReq - a model defined in huaweicloud sdk""" + + + + self._period = None + self.discriminator = None + + self.period = period + + @property + def period(self): + """Gets the period of this StartLogAutoBackupPolicyReq. + + 备份开始时间。 + + :return: The period of this StartLogAutoBackupPolicyReq. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this StartLogAutoBackupPolicyReq. + + 备份开始时间。 + + :param period: The period of this StartLogAutoBackupPolicyReq. + :type: str + """ + self._period = period + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartLogAutoBackupPolicyReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_request.py new file mode 100644 index 000000000..338b47c4b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartLogAutoBackupPolicyRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartLogAutoBackupPolicyReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartLogAutoBackupPolicyRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartLogAutoBackupPolicyRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartLogAutoBackupPolicyRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartLogAutoBackupPolicyRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartLogAutoBackupPolicyRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartLogAutoBackupPolicyRequest. + + + :return: The body of this StartLogAutoBackupPolicyRequest. + :rtype: StartLogAutoBackupPolicyReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartLogAutoBackupPolicyRequest. + + + :param body: The body of this StartLogAutoBackupPolicyRequest. + :type: StartLogAutoBackupPolicyReq + """ + 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, StartLogAutoBackupPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_response.py new file mode 100644 index 000000000..ea2420fff --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_log_auto_backup_policy_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartLogAutoBackupPolicyResponse(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): + """StartLogAutoBackupPolicyResponse - a model defined in huaweicloud sdk""" + + super(StartLogAutoBackupPolicyResponse, 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, StartLogAutoBackupPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py new file mode 100644 index 000000000..ec76d58b6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_req.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartLogsReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'agency': 'str', + 'log_base_path': 'str', + 'log_bucket': 'str' + } + + attribute_map = { + 'agency': 'agency', + 'log_base_path': 'logBasePath', + 'log_bucket': 'logBucket' + } + + def __init__(self, agency=None, log_base_path=None, log_bucket=None): + """StartLogsReq - a model defined in huaweicloud sdk""" + + + + self._agency = None + self._log_base_path = None + self._log_bucket = None + self.discriminator = None + + self.agency = agency + self.log_base_path = log_base_path + self.log_bucket = log_bucket + + @property + def agency(self): + """Gets the agency of this StartLogsReq. + + IAM委托。 + + :return: The agency of this StartLogsReq. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this StartLogsReq. + + IAM委托。 + + :param agency: The agency of this StartLogsReq. + :type: str + """ + self._agency = agency + + @property + def log_base_path(self): + """Gets the log_base_path of this StartLogsReq. + + 备份路径。 + + :return: The log_base_path of this StartLogsReq. + :rtype: str + """ + return self._log_base_path + + @log_base_path.setter + def log_base_path(self, log_base_path): + """Sets the log_base_path of this StartLogsReq. + + 备份路径。 + + :param log_base_path: The log_base_path of this StartLogsReq. + :type: str + """ + self._log_base_path = log_base_path + + @property + def log_bucket(self): + """Gets the log_bucket of this StartLogsReq. + + OBS桶。 + + :return: The log_bucket of this StartLogsReq. + :rtype: str + """ + return self._log_bucket + + @log_bucket.setter + def log_bucket(self, log_bucket): + """Sets the log_bucket of this StartLogsReq. + + OBS桶。 + + :param log_bucket: The log_bucket of this StartLogsReq. + :type: str + """ + self._log_bucket = log_bucket + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartLogsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_request.py new file mode 100644 index 000000000..970107ec5 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartLogsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartLogsReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartLogsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartLogsRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartLogsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartLogsRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartLogsRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartLogsRequest. + + + :return: The body of this StartLogsRequest. + :rtype: StartLogsReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartLogsRequest. + + + :param body: The body of this StartLogsRequest. + :type: StartLogsReq + """ + 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, StartLogsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_response.py new file mode 100644 index 000000000..8b6b7d6cc --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_logs_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartLogsResponse(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): + """StartLogsResponse - a model defined in huaweicloud sdk""" + + super(StartLogsResponse, 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, StartLogsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_req.py new file mode 100644 index 000000000..b142a4d44 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_req.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartPipelineReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'keep_alive': 'bool', + 'names': 'list[str]' + } + + attribute_map = { + 'keep_alive': 'keepAlive', + 'names': 'names' + } + + def __init__(self, keep_alive=None, names=None): + """StartPipelineReq - a model defined in huaweicloud sdk""" + + + + self._keep_alive = None + self._names = None + self.discriminator = None + + if keep_alive is not None: + self.keep_alive = keep_alive + self.names = names + + @property + def keep_alive(self): + """Gets the keep_alive of this StartPipelineReq. + + 是否保持常驻。 开启“保持常驻”适用于需要长期运行的业务。开启“保持常驻”以后,将会在每个节点上面配置一个守护进程,当logstash服务出现故障的时候,会主动拉起并修复。“保持常驻”不适用于短期运行的业务,因为多次主动拉起logstash服务会导致数据迁移重复。 + + :return: The keep_alive of this StartPipelineReq. + :rtype: bool + """ + return self._keep_alive + + @keep_alive.setter + def keep_alive(self, keep_alive): + """Sets the keep_alive of this StartPipelineReq. + + 是否保持常驻。 开启“保持常驻”适用于需要长期运行的业务。开启“保持常驻”以后,将会在每个节点上面配置一个守护进程,当logstash服务出现故障的时候,会主动拉起并修复。“保持常驻”不适用于短期运行的业务,因为多次主动拉起logstash服务会导致数据迁移重复。 + + :param keep_alive: The keep_alive of this StartPipelineReq. + :type: bool + """ + self._keep_alive = keep_alive + + @property + def names(self): + """Gets the names of this StartPipelineReq. + + 配置文件名称。 + + :return: The names of this StartPipelineReq. + :rtype: list[str] + """ + return self._names + + @names.setter + def names(self, names): + """Sets the names of this StartPipelineReq. + + 配置文件名称。 + + :param names: The names of this StartPipelineReq. + :type: list[str] + """ + self._names = names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartPipelineReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_request.py new file mode 100644 index 000000000..6c90d43d9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartPipelineRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartPipelineReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartPipelineRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartPipelineRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartPipelineRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartPipelineRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartPipelineRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartPipelineRequest. + + + :return: The body of this StartPipelineRequest. + :rtype: StartPipelineReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartPipelineRequest. + + + :param body: The body of this StartPipelineRequest. + :type: StartPipelineReq + """ + 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, StartPipelineRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_response.py new file mode 100644 index 000000000..6eeea34e7 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_pipeline_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartPipelineResponse(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): + """StartPipelineResponse - a model defined in huaweicloud sdk""" + + super(StartPipelineResponse, 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, StartPipelineResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_req.py new file mode 100644 index 000000000..42b5a3447 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartPublicWhitelistReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'white_list': 'str' + } + + attribute_map = { + 'white_list': 'whiteList' + } + + def __init__(self, white_list=None): + """StartPublicWhitelistReq - a model defined in huaweicloud sdk""" + + + + self._white_list = None + self.discriminator = None + + self.white_list = white_list + + @property + def white_list(self): + """Gets the white_list of this StartPublicWhitelistReq. + + 开启白名单的用户IP。 + + :return: The white_list of this StartPublicWhitelistReq. + :rtype: str + """ + return self._white_list + + @white_list.setter + def white_list(self, white_list): + """Sets the white_list of this StartPublicWhitelistReq. + + 开启白名单的用户IP。 + + :param white_list: The white_list of this StartPublicWhitelistReq. + :type: str + """ + self._white_list = white_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, StartPublicWhitelistReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_request.py new file mode 100644 index 000000000..ade42cceb --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartPublicWhitelistRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartPublicWhitelistReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartPublicWhitelistRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartPublicWhitelistRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartPublicWhitelistRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartPublicWhitelistRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartPublicWhitelistRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartPublicWhitelistRequest. + + + :return: The body of this StartPublicWhitelistRequest. + :rtype: StartPublicWhitelistReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartPublicWhitelistRequest. + + + :param body: The body of this StartPublicWhitelistRequest. + :type: StartPublicWhitelistReq + """ + 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, StartPublicWhitelistRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_response.py new file mode 100644 index 000000000..2dad0ea06 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_public_whitelist_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartPublicWhitelistResponse(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): + """StartPublicWhitelistResponse - a model defined in huaweicloud sdk""" + + super(StartPublicWhitelistResponse, 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, StartPublicWhitelistResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py new file mode 100644 index 000000000..ad56507a3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartVpecpReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'endpoint_with_dns_name': 'str' + } + + attribute_map = { + 'endpoint_with_dns_name': 'endpointWithDnsName' + } + + def __init__(self, endpoint_with_dns_name=None): + """StartVpecpReq - a model defined in huaweicloud sdk""" + + + + self._endpoint_with_dns_name = None + self.discriminator = None + + self.endpoint_with_dns_name = endpoint_with_dns_name + + @property + def endpoint_with_dns_name(self): + """Gets the endpoint_with_dns_name of this StartVpecpReq. + + 内网域名。 + + :return: The endpoint_with_dns_name of this StartVpecpReq. + :rtype: str + """ + return self._endpoint_with_dns_name + + @endpoint_with_dns_name.setter + def endpoint_with_dns_name(self, endpoint_with_dns_name): + """Sets the endpoint_with_dns_name of this StartVpecpReq. + + 内网域名。 + + :param endpoint_with_dns_name: The endpoint_with_dns_name of this StartVpecpReq. + :type: str + """ + self._endpoint_with_dns_name = endpoint_with_dns_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, StartVpecpReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_request.py new file mode 100644 index 000000000..2efdf51b7 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartVpecpRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartVpecpReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartVpecpRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartVpecpRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StartVpecpRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartVpecpRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StartVpecpRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartVpecpRequest. + + + :return: The body of this StartVpecpRequest. + :rtype: StartVpecpReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartVpecpRequest. + + + :param body: The body of this StartVpecpRequest. + :type: StartVpecpReq + """ + 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, StartVpecpRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_response.py new file mode 100644 index 000000000..f4c21b26b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/start_vpecp_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartVpecpResponse(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 = { + 'action': 'str' + } + + attribute_map = { + 'action': 'action' + } + + def __init__(self, action=None): + """StartVpecpResponse - a model defined in huaweicloud sdk""" + + super(StartVpecpResponse, self).__init__() + + self._action = None + self.discriminator = None + + if action is not None: + self.action = action + + @property + def action(self): + """Gets the action of this StartVpecpResponse. + + 操作行为。createVpcepservice表示已开启终端节点。 + + :return: The action of this StartVpecpResponse. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this StartVpecpResponse. + + 操作行为。createVpcepservice表示已开启终端节点。 + + :param action: The action of this StartVpecpResponse. + :type: str + """ + self._action = action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartVpecpResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_request.py new file mode 100644 index 000000000..107118927 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopLogAutoBackupPolicyRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopLogAutoBackupPolicyRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopLogAutoBackupPolicyRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StopLogAutoBackupPolicyRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopLogAutoBackupPolicyRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StopLogAutoBackupPolicyRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopLogAutoBackupPolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_response.py new file mode 100644 index 000000000..90b33e785 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_log_auto_backup_policy_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopLogAutoBackupPolicyResponse(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): + """StopLogAutoBackupPolicyResponse - a model defined in huaweicloud sdk""" + + super(StopLogAutoBackupPolicyResponse, 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, StopLogAutoBackupPolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_request.py new file mode 100644 index 000000000..a4c665672 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopLogsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopLogsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopLogsRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StopLogsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopLogsRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StopLogsRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopLogsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_response.py new file mode 100644 index 000000000..887821f69 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_logs_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopLogsResponse(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): + """StopLogsResponse - a model defined in huaweicloud sdk""" + + super(StopLogsResponse, 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, StopLogsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_request.py new file mode 100644 index 000000000..1116281fa --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopPipelineRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopPipelineRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopPipelineRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StopPipelineRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopPipelineRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StopPipelineRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopPipelineRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_response.py new file mode 100644 index 000000000..579e4d096 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_pipeline_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopPipelineResponse(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): + """StopPipelineResponse - a model defined in huaweicloud sdk""" + + super(StopPipelineResponse, 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, StopPipelineResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_request.py new file mode 100644 index 000000000..bd0ff712f --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopPublicKibanaWhitelistRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopPublicKibanaWhitelistRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopPublicKibanaWhitelistRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StopPublicKibanaWhitelistRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopPublicKibanaWhitelistRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StopPublicKibanaWhitelistRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopPublicKibanaWhitelistRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_response.py new file mode 100644 index 000000000..55dd1ce10 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_kibana_whitelist_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopPublicKibanaWhitelistResponse(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): + """StopPublicKibanaWhitelistResponse - a model defined in huaweicloud sdk""" + + super(StopPublicKibanaWhitelistResponse, 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, StopPublicKibanaWhitelistResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_request.py new file mode 100644 index 000000000..fe58f7aec --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopPublicWhitelistRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopPublicWhitelistRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopPublicWhitelistRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StopPublicWhitelistRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopPublicWhitelistRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StopPublicWhitelistRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopPublicWhitelistRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_response.py new file mode 100644 index 000000000..eb5b96a60 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_public_whitelist_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopPublicWhitelistResponse(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): + """StopPublicWhitelistResponse - a model defined in huaweicloud sdk""" + + super(StopPublicWhitelistResponse, 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, StopPublicWhitelistResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_request.py new file mode 100644 index 000000000..050d88b7a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopSnapshotRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopSnapshotRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopSnapshotRequest. + + 快照所属的集群的ID。 + + :return: The cluster_id of this StopSnapshotRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopSnapshotRequest. + + 快照所属的集群的ID。 + + :param cluster_id: The cluster_id of this StopSnapshotRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopSnapshotRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_response.py new file mode 100644 index 000000000..0ee4c20a1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_snapshot_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopSnapshotResponse(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): + """StopSnapshotResponse - a model defined in huaweicloud sdk""" + + super(StopSnapshotResponse, 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, StopSnapshotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_request.py new file mode 100644 index 000000000..c7699d24f --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopVpecpRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopVpecpRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopVpecpRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this StopVpecpRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopVpecpRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this StopVpecpRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopVpecpRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_response.py new file mode 100644 index 000000000..1debbdbd3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/stop_vpecp_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopVpecpResponse(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 = { + 'action': 'str' + } + + attribute_map = { + 'action': 'action' + } + + def __init__(self, action=None): + """StopVpecpResponse - a model defined in huaweicloud sdk""" + + super(StopVpecpResponse, self).__init__() + + self._action = None + self.discriminator = None + + if action is not None: + self.action = action + + @property + def action(self): + """Gets the action of this StopVpecpResponse. + + 操作行为:已关闭终端节点。 + + :return: The action of this StopVpecpResponse. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this StopVpecpResponse. + + 操作行为:已关闭终端节点。 + + :param action: The action of this StopVpecpResponse. + :type: str + """ + self._action = action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopVpecpResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/sys_tags.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/sys_tags.py new file mode 100644 index 000000000..f30366178 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/sys_tags.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SysTags: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """SysTags - a model defined in huaweicloud sdk""" + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + self.value = value + + @property + def key(self): + """Gets the key of this SysTags. + + 标签名。 + + :return: The key of this SysTags. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this SysTags. + + 标签名。 + + :param key: The key of this SysTags. + :type: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this SysTags. + + 标签值。 + + :return: The value of this SysTags. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this SysTags. + + 标签值。 + + :param value: The value of this SysTags. + :type: 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, SysTags): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/system_templates.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/system_templates.py new file mode 100644 index 000000000..c4ef4b506 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/system_templates.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SystemTemplates: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'conf_content': 'str', + 'desc': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'conf_content': 'confContent', + 'desc': 'desc' + } + + def __init__(self, id=None, name=None, conf_content=None, desc=None): + """SystemTemplates - a model defined in huaweicloud sdk""" + + + + self._id = None + self._name = None + self._conf_content = None + self._desc = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if conf_content is not None: + self.conf_content = conf_content + if desc is not None: + self.desc = desc + + @property + def id(self): + """Gets the id of this SystemTemplates. + + 配置文件id。 + + :return: The id of this SystemTemplates. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SystemTemplates. + + 配置文件id。 + + :param id: The id of this SystemTemplates. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this SystemTemplates. + + 配置文件名称。 + + :return: The name of this SystemTemplates. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SystemTemplates. + + 配置文件名称。 + + :param name: The name of this SystemTemplates. + :type: str + """ + self._name = name + + @property + def conf_content(self): + """Gets the conf_content of this SystemTemplates. + + 配置文件内容。 + + :return: The conf_content of this SystemTemplates. + :rtype: str + """ + return self._conf_content + + @conf_content.setter + def conf_content(self, conf_content): + """Sets the conf_content of this SystemTemplates. + + 配置文件内容。 + + :param conf_content: The conf_content of this SystemTemplates. + :type: str + """ + self._conf_content = conf_content + + @property + def desc(self): + """Gets the desc of this SystemTemplates. + + 描述。 + + :return: The desc of this SystemTemplates. + :rtype: str + """ + return self._desc + + @desc.setter + def desc(self, desc): + """Sets the desc of this SystemTemplates. + + 描述。 + + :param desc: The desc of this SystemTemplates. + :type: str + """ + self._desc = desc + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SystemTemplates): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag.py new file mode 100644 index 000000000..0d8fa6d4b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +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 - a model defined in huaweicloud sdk""" + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + 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: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this Tag. + + 标签值。 + + :return: The value of this Tag. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Tag. + + 标签值。 + + :param value: The value of this Tag. + :type: 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-css/huaweicloudsdkcss/v1/model/tag_list.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_list.py new file mode 100644 index 000000000..3d9dd6d04 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_list.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TagList: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'tag': 'TagReq' + } + + attribute_map = { + 'tag': 'tag' + } + + def __init__(self, tag=None): + """TagList - a model defined in huaweicloud sdk""" + + + + self._tag = None + self.discriminator = None + + if tag is not None: + self.tag = tag + + @property + def tag(self): + """Gets the tag of this TagList. + + + :return: The tag of this TagList. + :rtype: TagReq + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this TagList. + + + :param tag: The tag of this TagList. + :type: TagReq + """ + self._tag = tag + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_req.py new file mode 100644 index 000000000..5ab8da97d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/tag_req.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TagReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'tag': 'Tag' + } + + attribute_map = { + 'tag': 'tag' + } + + def __init__(self, tag=None): + """TagReq - a model defined in huaweicloud sdk""" + + + + self._tag = None + self.discriminator = None + + self.tag = tag + + @property + def tag(self): + """Gets the tag of this TagReq. + + + :return: The tag of this TagReq. + :rtype: Tag + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this TagReq. + + + :param tag: The tag of this TagReq. + :type: Tag + """ + self._tag = tag + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TagReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_request.py new file mode 100644 index 000000000..f86e7ff47 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAlterKibanaRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdatePublicKibanaBandwidthReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateAlterKibanaRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateAlterKibanaRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateAlterKibanaRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateAlterKibanaRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateAlterKibanaRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateAlterKibanaRequest. + + + :return: The body of this UpdateAlterKibanaRequest. + :rtype: UpdatePublicKibanaBandwidthReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateAlterKibanaRequest. + + + :param body: The body of this UpdateAlterKibanaRequest. + :type: UpdatePublicKibanaBandwidthReq + """ + 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, UpdateAlterKibanaRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_response.py new file mode 100644 index 000000000..bb617c98e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_alter_kibana_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateAlterKibanaResponse(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): + """UpdateAlterKibanaResponse - a model defined in huaweicloud sdk""" + + super(UpdateAlterKibanaResponse, 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, UpdateAlterKibanaResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_request.py new file mode 100644 index 000000000..8af98ce9b --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateBatchClustersTagsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'BatchAddOrDeleteTagOnClusterReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateBatchClustersTagsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateBatchClustersTagsRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this UpdateBatchClustersTagsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateBatchClustersTagsRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this UpdateBatchClustersTagsRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateBatchClustersTagsRequest. + + + :return: The body of this UpdateBatchClustersTagsRequest. + :rtype: BatchAddOrDeleteTagOnClusterReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateBatchClustersTagsRequest. + + + :param body: The body of this UpdateBatchClustersTagsRequest. + :type: BatchAddOrDeleteTagOnClusterReq + """ + 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, UpdateBatchClustersTagsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_response.py new file mode 100644 index 000000000..b71283729 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_batch_clusters_tags_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateBatchClustersTagsResponse(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): + """UpdateBatchClustersTagsResponse - a model defined in huaweicloud sdk""" + + super(UpdateBatchClustersTagsResponse, 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, UpdateBatchClustersTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_request.py new file mode 100644 index 000000000..e06d95d46 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateCloseKibanaRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """UpdateCloseKibanaRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateCloseKibanaRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateCloseKibanaRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateCloseKibanaRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateCloseKibanaRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateCloseKibanaRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_response.py new file mode 100644 index 000000000..49f9cf001 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_close_kibana_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateCloseKibanaResponse(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): + """UpdateCloseKibanaResponse - a model defined in huaweicloud sdk""" + + super(UpdateCloseKibanaResponse, 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, UpdateCloseKibanaResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_req.py new file mode 100644 index 000000000..232484e65 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateClusterNameReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'display_name': 'str' + } + + attribute_map = { + 'display_name': 'displayName' + } + + def __init__(self, display_name=None): + """UpdateClusterNameReq - a model defined in huaweicloud sdk""" + + + + self._display_name = None + self.discriminator = None + + self.display_name = display_name + + @property + def display_name(self): + """Gets the display_name of this UpdateClusterNameReq. + + 修改后集群名称。 + + :return: The display_name of this UpdateClusterNameReq. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this UpdateClusterNameReq. + + 修改后集群名称。 + + :param display_name: The display_name of this UpdateClusterNameReq. + :type: str + """ + self._display_name = display_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, UpdateClusterNameReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_request.py new file mode 100644 index 000000000..26def4b34 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateClusterNameRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdateClusterNameReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateClusterNameRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateClusterNameRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this UpdateClusterNameRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateClusterNameRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this UpdateClusterNameRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateClusterNameRequest. + + + :return: The body of this UpdateClusterNameRequest. + :rtype: UpdateClusterNameReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateClusterNameRequest. + + + :param body: The body of this UpdateClusterNameRequest. + :type: UpdateClusterNameReq + """ + 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, UpdateClusterNameRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_response.py new file mode 100644 index 000000000..7aa7da56d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cluster_name_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateClusterNameResponse(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): + """UpdateClusterNameResponse - a model defined in huaweicloud sdk""" + + super(UpdateClusterNameResponse, 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, UpdateClusterNameResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_request.py new file mode 100644 index 000000000..32c1b4582 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateCnfRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'CreateCnfReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateCnfRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateCnfRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateCnfRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateCnfRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateCnfRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateCnfRequest. + + + :return: The body of this UpdateCnfRequest. + :rtype: CreateCnfReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateCnfRequest. + + + :param body: The body of this UpdateCnfRequest. + :type: CreateCnfReq + """ + 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, UpdateCnfRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_response.py new file mode 100644 index 000000000..d52eddbd9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_cnf_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateCnfResponse(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): + """UpdateCnfResponse - a model defined in huaweicloud sdk""" + + super(UpdateCnfResponse, 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, UpdateCnfResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_request.py new file mode 100644 index 000000000..208ddb1b1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateExtendClusterRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'ExtendClusterReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateExtendClusterRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateExtendClusterRequest. + + 指定待扩容的集群ID。 + + :return: The cluster_id of this UpdateExtendClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateExtendClusterRequest. + + 指定待扩容的集群ID。 + + :param cluster_id: The cluster_id of this UpdateExtendClusterRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateExtendClusterRequest. + + + :return: The body of this UpdateExtendClusterRequest. + :rtype: ExtendClusterReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateExtendClusterRequest. + + + :param body: The body of this UpdateExtendClusterRequest. + :type: ExtendClusterReq + """ + 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, UpdateExtendClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_response.py new file mode 100644 index 000000000..1cae0d1ee --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_cluster_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateExtendClusterResponse(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', + 'instances': 'list[ExtendClusterInstancesResp]' + } + + attribute_map = { + 'id': 'id', + 'instances': 'instances' + } + + def __init__(self, id=None, instances=None): + """UpdateExtendClusterResponse - a model defined in huaweicloud sdk""" + + super(UpdateExtendClusterResponse, self).__init__() + + self._id = None + self._instances = None + self.discriminator = None + + if id is not None: + self.id = id + if instances is not None: + self.instances = instances + + @property + def id(self): + """Gets the id of this UpdateExtendClusterResponse. + + 集群ID。 + + :return: The id of this UpdateExtendClusterResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateExtendClusterResponse. + + 集群ID。 + + :param id: The id of this UpdateExtendClusterResponse. + :type: str + """ + self._id = id + + @property + def instances(self): + """Gets the instances of this UpdateExtendClusterResponse. + + 扩容实例列表。 + + :return: The instances of this UpdateExtendClusterResponse. + :rtype: list[ExtendClusterInstancesResp] + """ + return self._instances + + @instances.setter + def instances(self, instances): + """Sets the instances of this UpdateExtendClusterResponse. + + 扩容实例列表。 + + :param instances: The instances of this UpdateExtendClusterResponse. + :type: list[ExtendClusterInstancesResp] + """ + 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, UpdateExtendClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_request.py new file mode 100644 index 000000000..7493c728c --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateExtendInstanceStorageRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'RoleExtendReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateExtendInstanceStorageRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateExtendInstanceStorageRequest. + + 指定待扩容的集群ID。 + + :return: The cluster_id of this UpdateExtendInstanceStorageRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateExtendInstanceStorageRequest. + + 指定待扩容的集群ID。 + + :param cluster_id: The cluster_id of this UpdateExtendInstanceStorageRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateExtendInstanceStorageRequest. + + + :return: The body of this UpdateExtendInstanceStorageRequest. + :rtype: RoleExtendReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateExtendInstanceStorageRequest. + + + :param body: The body of this UpdateExtendInstanceStorageRequest. + :type: RoleExtendReq + """ + 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, UpdateExtendInstanceStorageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_response.py new file mode 100644 index 000000000..d8d761f72 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_extend_instance_storage_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateExtendInstanceStorageResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): + """UpdateExtendInstanceStorageResponse - a model defined in huaweicloud sdk""" + + super(UpdateExtendInstanceStorageResponse, self).__init__() + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this UpdateExtendInstanceStorageResponse. + + 集群ID。 + + :return: The id of this UpdateExtendInstanceStorageResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateExtendInstanceStorageResponse. + + 集群ID。 + + :param id: The id of this UpdateExtendInstanceStorageResponse. + :type: str + """ + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateExtendInstanceStorageResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py new file mode 100644 index 000000000..0780114a3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_req.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateLogSettingReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'agency': 'str', + 'log_base_path': 'str', + 'log_bucket': 'str' + } + + attribute_map = { + 'agency': 'agency', + 'log_base_path': 'logBasePath', + 'log_bucket': 'logBucket' + } + + def __init__(self, agency=None, log_base_path=None, log_bucket=None): + """UpdateLogSettingReq - a model defined in huaweicloud sdk""" + + + + self._agency = None + self._log_base_path = None + self._log_bucket = None + self.discriminator = None + + self.agency = agency + self.log_base_path = log_base_path + self.log_bucket = log_bucket + + @property + def agency(self): + """Gets the agency of this UpdateLogSettingReq. + + IAM 委托。 + + :return: The agency of this UpdateLogSettingReq. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this UpdateLogSettingReq. + + IAM 委托。 + + :param agency: The agency of this UpdateLogSettingReq. + :type: str + """ + self._agency = agency + + @property + def log_base_path(self): + """Gets the log_base_path of this UpdateLogSettingReq. + + 备份路径。 + + :return: The log_base_path of this UpdateLogSettingReq. + :rtype: str + """ + return self._log_base_path + + @log_base_path.setter + def log_base_path(self, log_base_path): + """Sets the log_base_path of this UpdateLogSettingReq. + + 备份路径。 + + :param log_base_path: The log_base_path of this UpdateLogSettingReq. + :type: str + """ + self._log_base_path = log_base_path + + @property + def log_bucket(self): + """Gets the log_bucket of this UpdateLogSettingReq. + + OBS 桶。 + + :return: The log_bucket of this UpdateLogSettingReq. + :rtype: str + """ + return self._log_bucket + + @log_bucket.setter + def log_bucket(self, log_bucket): + """Sets the log_bucket of this UpdateLogSettingReq. + + OBS 桶。 + + :param log_bucket: The log_bucket of this UpdateLogSettingReq. + :type: str + """ + self._log_bucket = log_bucket + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateLogSettingReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_request.py new file mode 100644 index 000000000..bf7ce71e7 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateLogSettingRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdateLogSettingReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateLogSettingRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateLogSettingRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateLogSettingRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateLogSettingRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateLogSettingRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateLogSettingRequest. + + + :return: The body of this UpdateLogSettingRequest. + :rtype: UpdateLogSettingReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateLogSettingRequest. + + + :param body: The body of this UpdateLogSettingRequest. + :type: UpdateLogSettingReq + """ + 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, UpdateLogSettingRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_response.py new file mode 100644 index 000000000..cee66b034 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_log_setting_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateLogSettingResponse(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): + """UpdateLogSettingResponse - a model defined in huaweicloud sdk""" + + super(UpdateLogSettingResponse, 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, UpdateLogSettingResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_request.py new file mode 100644 index 000000000..82271f1b6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateOndemandClusterToPeriodRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'PeriodReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateOndemandClusterToPeriodRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateOndemandClusterToPeriodRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this UpdateOndemandClusterToPeriodRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateOndemandClusterToPeriodRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this UpdateOndemandClusterToPeriodRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateOndemandClusterToPeriodRequest. + + + :return: The body of this UpdateOndemandClusterToPeriodRequest. + :rtype: PeriodReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateOndemandClusterToPeriodRequest. + + + :param body: The body of this UpdateOndemandClusterToPeriodRequest. + :type: PeriodReq + """ + 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, UpdateOndemandClusterToPeriodRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_response.py new file mode 100644 index 000000000..287b0a575 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ondemand_cluster_to_period_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateOndemandClusterToPeriodResponse(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': 'orderId' + } + + def __init__(self, order_id=None): + """UpdateOndemandClusterToPeriodResponse - a model defined in huaweicloud sdk""" + + super(UpdateOndemandClusterToPeriodResponse, 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 UpdateOndemandClusterToPeriodResponse. + + 订单ID(此订单类型为“新购”)。 + + :return: The order_id of this UpdateOndemandClusterToPeriodResponse. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this UpdateOndemandClusterToPeriodResponse. + + 订单ID(此订单类型为“新购”)。 + + :param order_id: The order_id of this UpdateOndemandClusterToPeriodResponse. + :type: 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, UpdateOndemandClusterToPeriodResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_request.py new file mode 100644 index 000000000..953012d07 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicBandWidthRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'BindPublicReqEip' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdatePublicBandWidthRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdatePublicBandWidthRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdatePublicBandWidthRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdatePublicBandWidthRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdatePublicBandWidthRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdatePublicBandWidthRequest. + + + :return: The body of this UpdatePublicBandWidthRequest. + :rtype: BindPublicReqEip + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePublicBandWidthRequest. + + + :param body: The body of this UpdatePublicBandWidthRequest. + :type: BindPublicReqEip + """ + 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, UpdatePublicBandWidthRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_response.py new file mode 100644 index 000000000..72c1f7591 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_band_width_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicBandWidthResponse(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): + """UpdatePublicBandWidthResponse - a model defined in huaweicloud sdk""" + + super(UpdatePublicBandWidthResponse, 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, UpdatePublicBandWidthResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req.py new file mode 100644 index 000000000..1ae021b5d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicKibanaBandwidthReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'band_width': 'UpdatePublicKibanaBandwidthReqBandWidth', + 'is_auto_pay': 'int' + } + + attribute_map = { + 'band_width': 'bandWidth', + 'is_auto_pay': 'isAutoPay' + } + + def __init__(self, band_width=None, is_auto_pay=None): + """UpdatePublicKibanaBandwidthReq - a model defined in huaweicloud sdk""" + + + + self._band_width = None + self._is_auto_pay = None + self.discriminator = None + + self.band_width = band_width + if is_auto_pay is not None: + self.is_auto_pay = is_auto_pay + + @property + def band_width(self): + """Gets the band_width of this UpdatePublicKibanaBandwidthReq. + + + :return: The band_width of this UpdatePublicKibanaBandwidthReq. + :rtype: UpdatePublicKibanaBandwidthReqBandWidth + """ + return self._band_width + + @band_width.setter + def band_width(self, band_width): + """Sets the band_width of this UpdatePublicKibanaBandwidthReq. + + + :param band_width: The band_width of this UpdatePublicKibanaBandwidthReq. + :type: UpdatePublicKibanaBandwidthReqBandWidth + """ + self._band_width = band_width + + @property + def is_auto_pay(self): + """Gets the is_auto_pay of this UpdatePublicKibanaBandwidthReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :return: The is_auto_pay of this UpdatePublicKibanaBandwidthReq. + :rtype: int + """ + return self._is_auto_pay + + @is_auto_pay.setter + def is_auto_pay(self, is_auto_pay): + """Sets the is_auto_pay of this UpdatePublicKibanaBandwidthReq. + + 是否自动支付。下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。该参数适用于包周期集群。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券)。 - 0: 否(需要客户手动去支付,客户可以选择折扣和优惠券)。默认值为“0”。 + + :param is_auto_pay: The is_auto_pay of this UpdatePublicKibanaBandwidthReq. + :type: int + """ + 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, UpdatePublicKibanaBandwidthReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req_band_width.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req_band_width.py new file mode 100644 index 000000000..8f7d3e903 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_bandwidth_req_band_width.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicKibanaBandwidthReqBandWidth: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'size': 'int' + } + + attribute_map = { + 'size': 'size' + } + + def __init__(self, size=None): + """UpdatePublicKibanaBandwidthReqBandWidth - a model defined in huaweicloud sdk""" + + + + self._size = None + self.discriminator = None + + self.size = size + + @property + def size(self): + """Gets the size of this UpdatePublicKibanaBandwidthReqBandWidth. + + 修改后的带宽。 + + :return: The size of this UpdatePublicKibanaBandwidthReqBandWidth. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this UpdatePublicKibanaBandwidthReqBandWidth. + + 修改后的带宽。 + + :param size: The size of this UpdatePublicKibanaBandwidthReqBandWidth. + :type: 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, UpdatePublicKibanaBandwidthReqBandWidth): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_req.py new file mode 100644 index 000000000..f5fec4b22 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicKibanaWhitelistReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'white_list': 'str' + } + + attribute_map = { + 'white_list': 'whiteList' + } + + def __init__(self, white_list=None): + """UpdatePublicKibanaWhitelistReq - a model defined in huaweicloud sdk""" + + + + self._white_list = None + self.discriminator = None + + self.white_list = white_list + + @property + def white_list(self): + """Gets the white_list of this UpdatePublicKibanaWhitelistReq. + + 白名单。 + + :return: The white_list of this UpdatePublicKibanaWhitelistReq. + :rtype: str + """ + return self._white_list + + @white_list.setter + def white_list(self, white_list): + """Sets the white_list of this UpdatePublicKibanaWhitelistReq. + + 白名单。 + + :param white_list: The white_list of this UpdatePublicKibanaWhitelistReq. + :type: str + """ + self._white_list = white_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, UpdatePublicKibanaWhitelistReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_request.py new file mode 100644 index 000000000..07fce4aef --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicKibanaWhitelistRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdatePublicKibanaWhitelistReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdatePublicKibanaWhitelistRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdatePublicKibanaWhitelistRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdatePublicKibanaWhitelistRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdatePublicKibanaWhitelistRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdatePublicKibanaWhitelistRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdatePublicKibanaWhitelistRequest. + + + :return: The body of this UpdatePublicKibanaWhitelistRequest. + :rtype: UpdatePublicKibanaWhitelistReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePublicKibanaWhitelistRequest. + + + :param body: The body of this UpdatePublicKibanaWhitelistRequest. + :type: UpdatePublicKibanaWhitelistReq + """ + 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, UpdatePublicKibanaWhitelistRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_response.py new file mode 100644 index 000000000..58be13b94 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_public_kibana_whitelist_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePublicKibanaWhitelistResponse(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): + """UpdatePublicKibanaWhitelistResponse - a model defined in huaweicloud sdk""" + + super(UpdatePublicKibanaWhitelistResponse, 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, UpdatePublicKibanaWhitelistResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py new file mode 100644 index 000000000..56cee53c1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_req.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSnapshotSettingReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'bucket': 'str', + 'agency': 'str', + 'base_path': 'str' + } + + attribute_map = { + 'bucket': 'bucket', + 'agency': 'agency', + 'base_path': 'basePath' + } + + def __init__(self, bucket=None, agency=None, base_path=None): + """UpdateSnapshotSettingReq - a model defined in huaweicloud sdk""" + + + + self._bucket = None + self._agency = None + self._base_path = None + self.discriminator = None + + self.bucket = bucket + self.agency = agency + self.base_path = base_path + + @property + def bucket(self): + """Gets the bucket of this UpdateSnapshotSettingReq. + + 备份使用的OBS桶,如果桶已经存放快照数据了,不可更改。 + + :return: The bucket of this UpdateSnapshotSettingReq. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this UpdateSnapshotSettingReq. + + 备份使用的OBS桶,如果桶已经存放快照数据了,不可更改。 + + :param bucket: The bucket of this UpdateSnapshotSettingReq. + :type: str + """ + self._bucket = bucket + + @property + def agency(self): + """Gets the agency of this UpdateSnapshotSettingReq. + + 访问OBS使用的IAM委托名称。 + + :return: The agency of this UpdateSnapshotSettingReq. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this UpdateSnapshotSettingReq. + + 访问OBS使用的IAM委托名称。 + + :param agency: The agency of this UpdateSnapshotSettingReq. + :type: str + """ + self._agency = agency + + @property + def base_path(self): + """Gets the base_path of this UpdateSnapshotSettingReq. + + 快照在OBS桶中的存放路径。 + + :return: The base_path of this UpdateSnapshotSettingReq. + :rtype: str + """ + return self._base_path + + @base_path.setter + def base_path(self, base_path): + """Sets the base_path of this UpdateSnapshotSettingReq. + + 快照在OBS桶中的存放路径。 + + :param base_path: The base_path of this UpdateSnapshotSettingReq. + :type: str + """ + self._base_path = base_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, UpdateSnapshotSettingReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_request.py new file mode 100644 index 000000000..d159f33e9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSnapshotSettingRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdateSnapshotSettingReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateSnapshotSettingRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateSnapshotSettingRequest. + + 指定要备份的集群ID。 + + :return: The cluster_id of this UpdateSnapshotSettingRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateSnapshotSettingRequest. + + 指定要备份的集群ID。 + + :param cluster_id: The cluster_id of this UpdateSnapshotSettingRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateSnapshotSettingRequest. + + + :return: The body of this UpdateSnapshotSettingRequest. + :rtype: UpdateSnapshotSettingReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateSnapshotSettingRequest. + + + :param body: The body of this UpdateSnapshotSettingRequest. + :type: UpdateSnapshotSettingReq + """ + 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, UpdateSnapshotSettingRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_response.py new file mode 100644 index 000000000..2a0bdc1a9 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_snapshot_setting_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSnapshotSettingResponse(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): + """UpdateSnapshotSettingResponse - a model defined in huaweicloud sdk""" + + super(UpdateSnapshotSettingResponse, 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, UpdateSnapshotSettingResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_request.py new file mode 100644 index 000000000..f26a17966 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateUnbindPublicRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """UpdateUnbindPublicRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateUnbindPublicRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateUnbindPublicRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateUnbindPublicRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateUnbindPublicRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateUnbindPublicRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_response.py new file mode 100644 index 000000000..94eff4774 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_unbind_public_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateUnbindPublicResponse(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 = { + 'action': 'str' + } + + attribute_map = { + 'action': 'action' + } + + def __init__(self, action=None): + """UpdateUnbindPublicResponse - a model defined in huaweicloud sdk""" + + super(UpdateUnbindPublicResponse, self).__init__() + + self._action = None + self.discriminator = None + + if action is not None: + self.action = action + + @property + def action(self): + """Gets the action of this UpdateUnbindPublicResponse. + + 操作行为。 + + :return: The action of this UpdateUnbindPublicResponse. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdateUnbindPublicResponse. + + 操作行为。 + + :param action: The action of this UpdateUnbindPublicResponse. + :type: str + """ + self._action = action + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateUnbindPublicResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_req.py new file mode 100644 index 000000000..1770f70a3 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_req.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVpcepConnectionReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'action': 'str', + 'endpoint_id_list': 'list[str]' + } + + attribute_map = { + 'action': 'action', + 'endpoint_id_list': 'endpointIdList' + } + + def __init__(self, action=None, endpoint_id_list=None): + """UpdateVpcepConnectionReq - a model defined in huaweicloud sdk""" + + + + self._action = None + self._endpoint_id_list = None + self.discriminator = None + + self.action = action + self.endpoint_id_list = endpoint_id_list + + @property + def action(self): + """Gets the action of this UpdateVpcepConnectionReq. + + 期望的操作行为。 + + :return: The action of this UpdateVpcepConnectionReq. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdateVpcepConnectionReq. + + 期望的操作行为。 + + :param action: The action of this UpdateVpcepConnectionReq. + :type: str + """ + self._action = action + + @property + def endpoint_id_list(self): + """Gets the endpoint_id_list of this UpdateVpcepConnectionReq. + + 终端节点ID列表(用户ID)。 + + :return: The endpoint_id_list of this UpdateVpcepConnectionReq. + :rtype: list[str] + """ + return self._endpoint_id_list + + @endpoint_id_list.setter + def endpoint_id_list(self, endpoint_id_list): + """Sets the endpoint_id_list of this UpdateVpcepConnectionReq. + + 终端节点ID列表(用户ID)。 + + :param endpoint_id_list: The endpoint_id_list of this UpdateVpcepConnectionReq. + :type: list[str] + """ + self._endpoint_id_list = endpoint_id_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, UpdateVpcepConnectionReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_request.py new file mode 100644 index 000000000..979ee072d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVpcepConnectionRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdateVpcepConnectionReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateVpcepConnectionRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateVpcepConnectionRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateVpcepConnectionRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateVpcepConnectionRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateVpcepConnectionRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateVpcepConnectionRequest. + + + :return: The body of this UpdateVpcepConnectionRequest. + :rtype: UpdateVpcepConnectionReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateVpcepConnectionRequest. + + + :param body: The body of this UpdateVpcepConnectionRequest. + :type: UpdateVpcepConnectionReq + """ + 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, UpdateVpcepConnectionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_response.py new file mode 100644 index 000000000..c9cf79958 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_connection_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVpcepConnectionResponse(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): + """UpdateVpcepConnectionResponse - a model defined in huaweicloud sdk""" + + super(UpdateVpcepConnectionResponse, 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, UpdateVpcepConnectionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_req.py new file mode 100644 index 000000000..1ce115892 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_req.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVpcepWhitelistReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_permissions': 'list[str]' + } + + attribute_map = { + 'vpc_permissions': 'vpcPermissions' + } + + def __init__(self, vpc_permissions=None): + """UpdateVpcepWhitelistReq - a model defined in huaweicloud sdk""" + + + + self._vpc_permissions = None + self.discriminator = None + + self.vpc_permissions = vpc_permissions + + @property + def vpc_permissions(self): + """Gets the vpc_permissions of this UpdateVpcepWhitelistReq. + + 白名单(用户的账号ID)。 + + :return: The vpc_permissions of this UpdateVpcepWhitelistReq. + :rtype: list[str] + """ + return self._vpc_permissions + + @vpc_permissions.setter + def vpc_permissions(self, vpc_permissions): + """Sets the vpc_permissions of this UpdateVpcepWhitelistReq. + + 白名单(用户的账号ID)。 + + :param vpc_permissions: The vpc_permissions of this UpdateVpcepWhitelistReq. + :type: list[str] + """ + self._vpc_permissions = vpc_permissions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVpcepWhitelistReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_request.py new file mode 100644 index 000000000..90f07f7b0 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVpcepWhitelistRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdateVpcepWhitelistReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateVpcepWhitelistRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateVpcepWhitelistRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateVpcepWhitelistRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateVpcepWhitelistRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateVpcepWhitelistRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateVpcepWhitelistRequest. + + + :return: The body of this UpdateVpcepWhitelistRequest. + :rtype: UpdateVpcepWhitelistReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateVpcepWhitelistRequest. + + + :param body: The body of this UpdateVpcepWhitelistRequest. + :type: UpdateVpcepWhitelistReq + """ + 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, UpdateVpcepWhitelistRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_response.py new file mode 100644 index 000000000..419adce40 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_vpcep_whitelist_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVpcepWhitelistResponse(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): + """UpdateVpcepWhitelistResponse - a model defined in huaweicloud sdk""" + + super(UpdateVpcepWhitelistResponse, 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, UpdateVpcepWhitelistResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req.py new file mode 100644 index 000000000..2dec478a6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateYmlsReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'edit': 'UpdateYmlsReqEdit' + } + + attribute_map = { + 'edit': 'edit' + } + + def __init__(self, edit=None): + """UpdateYmlsReq - a model defined in huaweicloud sdk""" + + + + self._edit = None + self.discriminator = None + + self.edit = edit + + @property + def edit(self): + """Gets the edit of this UpdateYmlsReq. + + + :return: The edit of this UpdateYmlsReq. + :rtype: UpdateYmlsReqEdit + """ + return self._edit + + @edit.setter + def edit(self, edit): + """Sets the edit of this UpdateYmlsReq. + + + :param edit: The edit of this UpdateYmlsReq. + :type: UpdateYmlsReqEdit + """ + self._edit = edit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateYmlsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit.py new file mode 100644 index 000000000..6c67191d6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateYmlsReqEdit: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'modify': 'UpdateYmlsReqEditModify' + } + + attribute_map = { + 'modify': 'modify' + } + + def __init__(self, modify=None): + """UpdateYmlsReqEdit - a model defined in huaweicloud sdk""" + + + + self._modify = None + self.discriminator = None + + self.modify = modify + + @property + def modify(self): + """Gets the modify of this UpdateYmlsReqEdit. + + + :return: The modify of this UpdateYmlsReqEdit. + :rtype: UpdateYmlsReqEditModify + """ + return self._modify + + @modify.setter + def modify(self, modify): + """Sets the modify of this UpdateYmlsReqEdit. + + + :param modify: The modify of this UpdateYmlsReqEdit. + :type: UpdateYmlsReqEditModify + """ + self._modify = modify + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateYmlsReqEdit): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit_modify.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit_modify.py new file mode 100644 index 000000000..3087f01e6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_req_edit_modify.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateYmlsReqEditModify: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'elasticsearch_yml': 'object' + } + + attribute_map = { + 'elasticsearch_yml': 'elasticsearch.yml' + } + + def __init__(self, elasticsearch_yml=None): + """UpdateYmlsReqEditModify - a model defined in huaweicloud sdk""" + + + + self._elasticsearch_yml = None + self.discriminator = None + + self.elasticsearch_yml = elasticsearch_yml + + @property + def elasticsearch_yml(self): + """Gets the elasticsearch_yml of this UpdateYmlsReqEditModify. + + 参数配置列表。 + + :return: The elasticsearch_yml of this UpdateYmlsReqEditModify. + :rtype: object + """ + return self._elasticsearch_yml + + @elasticsearch_yml.setter + def elasticsearch_yml(self, elasticsearch_yml): + """Sets the elasticsearch_yml of this UpdateYmlsReqEditModify. + + 参数配置列表。 + + :param elasticsearch_yml: The elasticsearch_yml of this UpdateYmlsReqEditModify. + :type: object + """ + self._elasticsearch_yml = elasticsearch_yml + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateYmlsReqEditModify): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_request.py new file mode 100644 index 000000000..0728318ec --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateYmlsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'UpdateYmlsReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """UpdateYmlsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this UpdateYmlsRequest. + + 指定查询集群ID。 + + :return: The cluster_id of this UpdateYmlsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this UpdateYmlsRequest. + + 指定查询集群ID。 + + :param cluster_id: The cluster_id of this UpdateYmlsRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this UpdateYmlsRequest. + + + :return: The body of this UpdateYmlsRequest. + :rtype: UpdateYmlsReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateYmlsRequest. + + + :param body: The body of this UpdateYmlsRequest. + :type: UpdateYmlsReq + """ + 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, UpdateYmlsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_response.py new file mode 100644 index 000000000..3cf77e3ed --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/update_ymls_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateYmlsResponse(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 = { + 'acknowledged': 'bool', + 'external_message': 'str', + 'http_error_response': 'str' + } + + attribute_map = { + 'acknowledged': 'acknowledged', + 'external_message': 'externalMessage', + 'http_error_response': 'httpErrorResponse' + } + + def __init__(self, acknowledged=None, external_message=None, http_error_response=None): + """UpdateYmlsResponse - a model defined in huaweicloud sdk""" + + super(UpdateYmlsResponse, self).__init__() + + self._acknowledged = None + self._external_message = None + self._http_error_response = None + self.discriminator = None + + if acknowledged is not None: + self.acknowledged = acknowledged + if external_message is not None: + self.external_message = external_message + if http_error_response is not None: + self.http_error_response = http_error_response + + @property + def acknowledged(self): + """Gets the acknowledged of this UpdateYmlsResponse. + + 返回值。 + + :return: The acknowledged of this UpdateYmlsResponse. + :rtype: bool + """ + return self._acknowledged + + @acknowledged.setter + def acknowledged(self, acknowledged): + """Sets the acknowledged of this UpdateYmlsResponse. + + 返回值。 + + :param acknowledged: The acknowledged of this UpdateYmlsResponse. + :type: bool + """ + self._acknowledged = acknowledged + + @property + def external_message(self): + """Gets the external_message of this UpdateYmlsResponse. + + 返回信息。 + + :return: The external_message of this UpdateYmlsResponse. + :rtype: str + """ + return self._external_message + + @external_message.setter + def external_message(self, external_message): + """Sets the external_message of this UpdateYmlsResponse. + + 返回信息。 + + :param external_message: The external_message of this UpdateYmlsResponse. + :type: str + """ + self._external_message = external_message + + @property + def http_error_response(self): + """Gets the http_error_response of this UpdateYmlsResponse. + + 返回错误信息。 + + :return: The http_error_response of this UpdateYmlsResponse. + :rtype: str + """ + return self._http_error_response + + @http_error_response.setter + def http_error_response(self, http_error_response): + """Sets the http_error_response of this UpdateYmlsResponse. + + 返回错误信息。 + + :param http_error_response: The http_error_response of this UpdateYmlsResponse. + :type: str + """ + self._http_error_response = http_error_response + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateYmlsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py new file mode 100644 index 000000000..c59769cfd --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py @@ -0,0 +1,27 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region + + +class CssRegion: + def __init__(self): + pass + + CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://css.cn-south-1.myhuaweicloud.com") + + static_fields = { + "cn-south-1": CN_SOUTH_1, + } + + @staticmethod + def value_of(region_id, static_fields=types.MappingProxyType(static_fields) if six.PY3 else static_fields): + if region_id is None or len(region_id) == 0: + raise KeyError("Unexpected empty parameter: region_id.") + if not static_fields.get(region_id): + raise KeyError("Unexpected region_id: " + region_id) + return static_fields.get(region_id) + + diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/__init__.py new file mode 100644 index 000000000..74985c6cb --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/__init__.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import CssClient +from huaweicloudsdkcss.v2.css_client import CssClient +from huaweicloudsdkcss.v2.css_async_client import CssAsyncClient +# import models into sdk package +from huaweicloudsdkcss.v2.model.create_cluster_backup_strategy_body import CreateClusterBackupStrategyBody +from huaweicloudsdkcss.v2.model.create_cluster_body import CreateClusterBody +from huaweicloudsdkcss.v2.model.create_cluster_datastore_body import CreateClusterDatastoreBody +from huaweicloudsdkcss.v2.model.create_cluster_elb_white_list import CreateClusterElbWhiteList +from huaweicloudsdkcss.v2.model.create_cluster_instance_nics_body import CreateClusterInstanceNicsBody +from huaweicloudsdkcss.v2.model.create_cluster_instance_volume_body import CreateClusterInstanceVolumeBody +from huaweicloudsdkcss.v2.model.create_cluster_load_balance import CreateClusterLoadBalance +from huaweicloudsdkcss.v2.model.create_cluster_public_eip import CreateClusterPublicEip +from huaweicloudsdkcss.v2.model.create_cluster_public_eip_size import CreateClusterPublicEipSize +from huaweicloudsdkcss.v2.model.create_cluster_public_ip_req import CreateClusterPublicIpReq +from huaweicloudsdkcss.v2.model.create_cluster_public_kibana_elb_white_list import CreateClusterPublicKibanaElbWhiteList +from huaweicloudsdkcss.v2.model.create_cluster_public_kibana_req import CreateClusterPublicKibanaReq +from huaweicloudsdkcss.v2.model.create_cluster_req import CreateClusterReq +from huaweicloudsdkcss.v2.model.create_cluster_request import CreateClusterRequest +from huaweicloudsdkcss.v2.model.create_cluster_response import CreateClusterResponse +from huaweicloudsdkcss.v2.model.create_cluster_roles_body import CreateClusterRolesBody +from huaweicloudsdkcss.v2.model.create_cluster_tags_body import CreateClusterTagsBody +from huaweicloudsdkcss.v2.model.restart_cluster_req import RestartClusterReq +from huaweicloudsdkcss.v2.model.restart_cluster_request import RestartClusterRequest +from huaweicloudsdkcss.v2.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkcss.v2.model.rolling_restart_req import RollingRestartReq +from huaweicloudsdkcss.v2.model.rolling_restart_request import RollingRestartRequest +from huaweicloudsdkcss.v2.model.rolling_restart_response import RollingRestartResponse +from huaweicloudsdkcss.v2.model.start_auto_create_snapshots_req import StartAutoCreateSnapshotsReq +from huaweicloudsdkcss.v2.model.start_auto_create_snapshots_request import StartAutoCreateSnapshotsRequest +from huaweicloudsdkcss.v2.model.start_auto_create_snapshots_response import StartAutoCreateSnapshotsResponse +from huaweicloudsdkcss.v2.model.stop_auto_create_snapshots_request import StopAutoCreateSnapshotsRequest +from huaweicloudsdkcss.v2.model.stop_auto_create_snapshots_response import StopAutoCreateSnapshotsResponse + diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_async_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_async_client.py new file mode 100644 index 000000000..52ca2864f --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_async_client.py @@ -0,0 +1,407 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class CssAsyncClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(CssAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkcss.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "CssClient": + raise TypeError("client type error, support client type is CssClient") + + return ClientBuilder(clazz) + + def create_cluster_async(self, request): + """创建集群V2 + + 该接口用于创建集群V2。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + return self.create_cluster_with_http_info(request) + + def create_cluster_with_http_info(self, request): + """创建集群V2 + + 该接口用于创建集群V2。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + + all_params = ['create_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def restart_cluster_async(self, request): + """重启集群V2 + + 该接口用于重启集群。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + return self.restart_cluster_with_http_info(request) + + def restart_cluster_with_http_info(self, request): + """重启集群V2 + + 该接口用于重启集群。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + + all_params = ['cluster_id', 'rolling_restart_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/restart', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RestartClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def rolling_restart_async(self, request): + """滚动重启 + + 该接口用于滚动重启。 + + :param RollingRestartRequest request + :return: RollingRestartResponse + """ + return self.rolling_restart_with_http_info(request) + + def rolling_restart_with_http_info(self, request): + """滚动重启 + + 该接口用于滚动重启。 + + :param RollingRestartRequest request + :return: RollingRestartResponse + """ + + all_params = ['cluster_id', 'rolling_restart_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/rolling_restart', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RollingRestartResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_auto_create_snapshots_async(self, request): + """开启自动创建快照功能 + + 该接口用于打开自动创建快照功能。 + + :param StartAutoCreateSnapshotsRequest request + :return: StartAutoCreateSnapshotsResponse + """ + return self.start_auto_create_snapshots_with_http_info(request) + + def start_auto_create_snapshots_with_http_info(self, request): + """开启自动创建快照功能 + + 该接口用于打开自动创建快照功能。 + + :param StartAutoCreateSnapshotsRequest request + :return: StartAutoCreateSnapshotsResponse + """ + + all_params = ['cluster_id', 'start_auto_create_snapshots_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/snapshots/policy/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartAutoCreateSnapshotsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_auto_create_snapshots_async(self, request): + """关闭自动创建快照功能 + + 该接口用于关闭自动创建快照功能。 + + :param StopAutoCreateSnapshotsRequest request + :return: StopAutoCreateSnapshotsResponse + """ + return self.stop_auto_create_snapshots_with_http_info(request) + + def stop_auto_create_snapshots_with_http_info(self, request): + """关闭自动创建快照功能 + + 该接口用于关闭自动创建快照功能。 + + :param StopAutoCreateSnapshotsRequest request + :return: StopAutoCreateSnapshotsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/snapshots/policy/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopAutoCreateSnapshotsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, 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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_client.py new file mode 100644 index 000000000..671e0f00d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_client.py @@ -0,0 +1,405 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import datetime +import re +import importlib + +import six + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.exceptions import exceptions +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest + + +class CssClient(Client): + """ + :param configuration: .Configuration object for this client + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self): + super(CssClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkcss.v2.model") + self.preset_headers = {'User-Agent': 'HuaweiCloud-SDK-Python'} + + @classmethod + def new_builder(cls, clazz=None): + if clazz is None: + return ClientBuilder(cls) + + if clazz.__name__ != "CssClient": + raise TypeError("client type error, support client type is CssClient") + + return ClientBuilder(clazz) + + def create_cluster(self, request): + """创建集群V2 + + 该接口用于创建集群V2。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + return self.create_cluster_with_http_info(request) + + def create_cluster_with_http_info(self, request): + """创建集群V2 + + 该接口用于创建集群V2。 + + :param CreateClusterRequest request + :return: CreateClusterResponse + """ + + all_params = ['create_cluster_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def restart_cluster(self, request): + """重启集群V2 + + 该接口用于重启集群。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + return self.restart_cluster_with_http_info(request) + + def restart_cluster_with_http_info(self, request): + """重启集群V2 + + 该接口用于重启集群。 + + :param RestartClusterRequest request + :return: RestartClusterResponse + """ + + all_params = ['cluster_id', 'rolling_restart_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/restart', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RestartClusterResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def rolling_restart(self, request): + """滚动重启 + + 该接口用于滚动重启。 + + :param RollingRestartRequest request + :return: RollingRestartResponse + """ + return self.rolling_restart_with_http_info(request) + + def rolling_restart_with_http_info(self, request): + """滚动重启 + + 该接口用于滚动重启。 + + :param RollingRestartRequest request + :return: RollingRestartResponse + """ + + all_params = ['cluster_id', 'rolling_restart_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/rolling_restart', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='RollingRestartResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def start_auto_create_snapshots(self, request): + """开启自动创建快照功能 + + 该接口用于打开自动创建快照功能。 + + :param StartAutoCreateSnapshotsRequest request + :return: StartAutoCreateSnapshotsResponse + """ + return self.start_auto_create_snapshots_with_http_info(request) + + def start_auto_create_snapshots_with_http_info(self, request): + """开启自动创建快照功能 + + 该接口用于打开自动创建快照功能。 + + :param StartAutoCreateSnapshotsRequest request + :return: StartAutoCreateSnapshotsResponse + """ + + all_params = ['cluster_id', 'start_auto_create_snapshots_req'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/snapshots/policy/open', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StartAutoCreateSnapshotsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def stop_auto_create_snapshots(self, request): + """关闭自动创建快照功能 + + 该接口用于关闭自动创建快照功能。 + + :param StopAutoCreateSnapshotsRequest request + :return: StopAutoCreateSnapshotsResponse + """ + return self.stop_auto_create_snapshots_with_http_info(request) + + def stop_auto_create_snapshots_with_http_info(self, request): + """关闭自动创建快照功能 + + 该接口用于关闭自动创建快照功能。 + + :param StopAutoCreateSnapshotsRequest request + :return: StopAutoCreateSnapshotsResponse + """ + + all_params = ['cluster_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2.0/{project_id}/clusters/{cluster_id}/snapshots/policy/close', + method='PUT', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopAutoCreateSnapshotsResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, 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 dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: 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, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_exception.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_exception.py new file mode 100644 index 000000000..f3d3de83e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/css_exception.py @@ -0,0 +1,19 @@ +import json + +from huaweicloudsdkcpts.exceptions import exceptions + +class CssError: + def __init__(self, request_id=None, error_code=None, error_msg=None): + self.error_msg = error_msg + self.error_code = error_code + self.request_id = request_id + +def handle_exception(response_body): + css_error = CssError() + + css_error_dict = json.loads(response_body) + for key in css_error_dict: + if type(css_error_dict[key]) == dict and "error_code" in css_error_dict[key] and "error_msg" in \ + css_error_dict[key]: + css_error = CssError(css_error_dict[key]["request_id"], css_error_dict[key]["error_code"], css_error_dict[key]["error_msg"]) + return css_error \ No newline at end of file diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/__init__.py new file mode 100644 index 000000000..ea6fc65d1 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/__init__.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkcss.v2.model.create_cluster_backup_strategy_body import CreateClusterBackupStrategyBody +from huaweicloudsdkcss.v2.model.create_cluster_body import CreateClusterBody +from huaweicloudsdkcss.v2.model.create_cluster_datastore_body import CreateClusterDatastoreBody +from huaweicloudsdkcss.v2.model.create_cluster_elb_white_list import CreateClusterElbWhiteList +from huaweicloudsdkcss.v2.model.create_cluster_instance_nics_body import CreateClusterInstanceNicsBody +from huaweicloudsdkcss.v2.model.create_cluster_instance_volume_body import CreateClusterInstanceVolumeBody +from huaweicloudsdkcss.v2.model.create_cluster_load_balance import CreateClusterLoadBalance +from huaweicloudsdkcss.v2.model.create_cluster_public_eip import CreateClusterPublicEip +from huaweicloudsdkcss.v2.model.create_cluster_public_eip_size import CreateClusterPublicEipSize +from huaweicloudsdkcss.v2.model.create_cluster_public_ip_req import CreateClusterPublicIpReq +from huaweicloudsdkcss.v2.model.create_cluster_public_kibana_elb_white_list import CreateClusterPublicKibanaElbWhiteList +from huaweicloudsdkcss.v2.model.create_cluster_public_kibana_req import CreateClusterPublicKibanaReq +from huaweicloudsdkcss.v2.model.create_cluster_req import CreateClusterReq +from huaweicloudsdkcss.v2.model.create_cluster_request import CreateClusterRequest +from huaweicloudsdkcss.v2.model.create_cluster_response import CreateClusterResponse +from huaweicloudsdkcss.v2.model.create_cluster_roles_body import CreateClusterRolesBody +from huaweicloudsdkcss.v2.model.create_cluster_tags_body import CreateClusterTagsBody +from huaweicloudsdkcss.v2.model.restart_cluster_req import RestartClusterReq +from huaweicloudsdkcss.v2.model.restart_cluster_request import RestartClusterRequest +from huaweicloudsdkcss.v2.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkcss.v2.model.rolling_restart_req import RollingRestartReq +from huaweicloudsdkcss.v2.model.rolling_restart_request import RollingRestartRequest +from huaweicloudsdkcss.v2.model.rolling_restart_response import RollingRestartResponse +from huaweicloudsdkcss.v2.model.start_auto_create_snapshots_req import StartAutoCreateSnapshotsReq +from huaweicloudsdkcss.v2.model.start_auto_create_snapshots_request import StartAutoCreateSnapshotsRequest +from huaweicloudsdkcss.v2.model.start_auto_create_snapshots_response import StartAutoCreateSnapshotsResponse +from huaweicloudsdkcss.v2.model.stop_auto_create_snapshots_request import StopAutoCreateSnapshotsRequest +from huaweicloudsdkcss.v2.model.stop_auto_create_snapshots_response import StopAutoCreateSnapshotsResponse diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_backup_strategy_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_backup_strategy_body.py new file mode 100644 index 000000000..da387649d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_backup_strategy_body.py @@ -0,0 +1,246 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterBackupStrategyBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'prefix': 'str', + 'keepday': 'int', + 'bucket': 'str', + 'base_path': 'str', + 'agency': 'str' + } + + attribute_map = { + 'period': 'period', + 'prefix': 'prefix', + 'keepday': 'keepday', + 'bucket': 'bucket', + 'base_path': 'basePath', + 'agency': 'agency' + } + + def __init__(self, period=None, prefix=None, keepday=None, bucket=None, base_path=None, agency=None): + """CreateClusterBackupStrategyBody - a model defined in huaweicloud sdk""" + + + + self._period = None + self._prefix = None + self._keepday = None + self._bucket = None + self._base_path = None + self._agency = None + self.discriminator = None + + self.period = period + self.prefix = prefix + self.keepday = keepday + if bucket is not None: + self.bucket = bucket + if base_path is not None: + self.base_path = base_path + if agency is not None: + self.agency = agency + + @property + def period(self): + """Gets the period of this CreateClusterBackupStrategyBody. + + 每天自动创建快照的时间点。只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :return: The period of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this CreateClusterBackupStrategyBody. + + 每天自动创建快照的时间点。只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :param period: The period of this CreateClusterBackupStrategyBody. + :type: str + """ + self._period = period + + @property + def prefix(self): + """Gets the prefix of this CreateClusterBackupStrategyBody. + + 自动创建的快照的前缀。 + + :return: The prefix of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this CreateClusterBackupStrategyBody. + + 自动创建的快照的前缀。 + + :param prefix: The prefix of this CreateClusterBackupStrategyBody. + :type: str + """ + self._prefix = prefix + + @property + def keepday(self): + """Gets the keepday of this CreateClusterBackupStrategyBody. + + 自动创建快照的保留天数。取值范围:1-90。 + + :return: The keepday of this CreateClusterBackupStrategyBody. + :rtype: int + """ + return self._keepday + + @keepday.setter + def keepday(self, keepday): + """Sets the keepday of this CreateClusterBackupStrategyBody. + + 自动创建快照的保留天数。取值范围:1-90。 + + :param keepday: The keepday of this CreateClusterBackupStrategyBody. + :type: int + """ + self._keepday = keepday + + @property + def bucket(self): + """Gets the bucket of this CreateClusterBackupStrategyBody. + + 备份使用的OBS桶名称,如果桶已经存放快照数据了,不可更改。 + + :return: The bucket of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this CreateClusterBackupStrategyBody. + + 备份使用的OBS桶名称,如果桶已经存放快照数据了,不可更改。 + + :param bucket: The bucket of this CreateClusterBackupStrategyBody. + :type: str + """ + self._bucket = bucket + + @property + def base_path(self): + """Gets the base_path of this CreateClusterBackupStrategyBody. + + 快照在OBS桶中的存放路径。 + + :return: The base_path of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._base_path + + @base_path.setter + def base_path(self, base_path): + """Sets the base_path of this CreateClusterBackupStrategyBody. + + 快照在OBS桶中的存放路径。 + + :param base_path: The base_path of this CreateClusterBackupStrategyBody. + :type: str + """ + self._base_path = base_path + + @property + def agency(self): + """Gets the agency of this CreateClusterBackupStrategyBody. + + 访问OBS使用的IAM委托名称。 说明:如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + + :return: The agency of this CreateClusterBackupStrategyBody. + :rtype: str + """ + return self._agency + + @agency.setter + def agency(self, agency): + """Sets the agency of this CreateClusterBackupStrategyBody. + + 访问OBS使用的IAM委托名称。 说明:如果bucket、basePath和agency三个参数同时为空,则系统会自动创建OBS桶和IAM代理,否则使用配置的参数值。 + + :param agency: The agency of this CreateClusterBackupStrategyBody. + :type: str + """ + self._agency = agency + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterBackupStrategyBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_body.py new file mode 100644 index 000000000..9554e2d52 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_body.py @@ -0,0 +1,447 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'backup_strategy': 'CreateClusterBackupStrategyBody', + 'roles': 'list[CreateClusterRolesBody]', + 'nics': 'CreateClusterInstanceNicsBody', + 'enterprise_project_id': 'str', + 'tags': 'list[CreateClusterTagsBody]', + 'availability_zone': 'str', + 'datastore': 'CreateClusterDatastoreBody', + 'authority_enable': 'bool', + 'https_enable': 'bool', + 'admin_pwd': 'str', + 'public_ip_req': 'CreateClusterPublicIpReq', + 'load_balance': 'CreateClusterLoadBalance', + 'public_kibana_req': 'CreateClusterPublicKibanaReq' + } + + attribute_map = { + 'name': 'name', + 'backup_strategy': 'backupStrategy', + 'roles': 'roles', + 'nics': 'nics', + 'enterprise_project_id': 'enterprise_project_id', + 'tags': 'tags', + 'availability_zone': 'availability_zone', + 'datastore': 'datastore', + 'authority_enable': 'authorityEnable', + 'https_enable': 'httpsEnable', + 'admin_pwd': 'adminPwd', + 'public_ip_req': 'publicIPReq', + 'load_balance': 'loadBalance', + 'public_kibana_req': 'publicKibanaReq' + } + + def __init__(self, name=None, backup_strategy=None, roles=None, nics=None, enterprise_project_id=None, tags=None, availability_zone=None, datastore=None, authority_enable=None, https_enable=None, admin_pwd=None, public_ip_req=None, load_balance=None, public_kibana_req=None): + """CreateClusterBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._backup_strategy = None + self._roles = None + self._nics = None + self._enterprise_project_id = None + self._tags = None + self._availability_zone = None + self._datastore = None + self._authority_enable = None + self._https_enable = None + self._admin_pwd = None + self._public_ip_req = None + self._load_balance = None + self._public_kibana_req = None + self.discriminator = None + + self.name = name + if backup_strategy is not None: + self.backup_strategy = backup_strategy + self.roles = roles + self.nics = nics + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if tags is not None: + self.tags = tags + if availability_zone is not None: + self.availability_zone = availability_zone + self.datastore = datastore + if authority_enable is not None: + self.authority_enable = authority_enable + if https_enable is not None: + self.https_enable = https_enable + if admin_pwd is not None: + self.admin_pwd = admin_pwd + if public_ip_req is not None: + self.public_ip_req = public_ip_req + if load_balance is not None: + self.load_balance = load_balance + if public_kibana_req is not None: + self.public_kibana_req = public_kibana_req + + @property + def name(self): + """Gets the name of this CreateClusterBody. + + 集群名称。4~32个字符,只能包含数字、字母、中划线和下划线,且必须以字母开头。 + + :return: The name of this CreateClusterBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateClusterBody. + + 集群名称。4~32个字符,只能包含数字、字母、中划线和下划线,且必须以字母开头。 + + :param name: The name of this CreateClusterBody. + :type: str + """ + self._name = name + + @property + def backup_strategy(self): + """Gets the backup_strategy of this CreateClusterBody. + + + :return: The backup_strategy of this CreateClusterBody. + :rtype: CreateClusterBackupStrategyBody + """ + return self._backup_strategy + + @backup_strategy.setter + def backup_strategy(self, backup_strategy): + """Sets the backup_strategy of this CreateClusterBody. + + + :param backup_strategy: The backup_strategy of this CreateClusterBody. + :type: CreateClusterBackupStrategyBody + """ + self._backup_strategy = backup_strategy + + @property + def roles(self): + """Gets the roles of this CreateClusterBody. + + + :return: The roles of this CreateClusterBody. + :rtype: list[CreateClusterRolesBody] + """ + return self._roles + + @roles.setter + def roles(self, roles): + """Sets the roles of this CreateClusterBody. + + + :param roles: The roles of this CreateClusterBody. + :type: list[CreateClusterRolesBody] + """ + self._roles = roles + + @property + def nics(self): + """Gets the nics of this CreateClusterBody. + + + :return: The nics of this CreateClusterBody. + :rtype: CreateClusterInstanceNicsBody + """ + return self._nics + + @nics.setter + def nics(self, nics): + """Sets the nics of this CreateClusterBody. + + + :param nics: The nics of this CreateClusterBody. + :type: CreateClusterInstanceNicsBody + """ + self._nics = nics + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateClusterBody. + + 企业项目ID。创建集群时,给集群绑定企业项目ID。最大长度36个字符,带\"-\"连字符的UUID格式,或者是字符串\"0\"。\"0\"表示默认企业项目。 说明:关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理服务用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)。 + + :return: The enterprise_project_id of this CreateClusterBody. + :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 CreateClusterBody. + + 企业项目ID。创建集群时,给集群绑定企业项目ID。最大长度36个字符,带\"-\"连字符的UUID格式,或者是字符串\"0\"。\"0\"表示默认企业项目。 说明:关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理服务用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)。 + + :param enterprise_project_id: The enterprise_project_id of this CreateClusterBody. + :type: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def tags(self): + """Gets the tags of this CreateClusterBody. + + 集群标签。 关于标签特性的详细信息,请参见[《标签管理产品介绍》](https://support.huaweicloud.com/productdesc-tms/zh-cn_topic_0071335169.html)。 + + :return: The tags of this CreateClusterBody. + :rtype: list[CreateClusterTagsBody] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CreateClusterBody. + + 集群标签。 关于标签特性的详细信息,请参见[《标签管理产品介绍》](https://support.huaweicloud.com/productdesc-tms/zh-cn_topic_0071335169.html)。 + + :param tags: The tags of this CreateClusterBody. + :type: list[CreateClusterTagsBody] + """ + self._tags = tags + + @property + def availability_zone(self): + """Gets the availability_zone of this CreateClusterBody. + + 可用区。 + + :return: The availability_zone of this CreateClusterBody. + :rtype: str + """ + return self._availability_zone + + @availability_zone.setter + def availability_zone(self, availability_zone): + """Sets the availability_zone of this CreateClusterBody. + + 可用区。 + + :param availability_zone: The availability_zone of this CreateClusterBody. + :type: str + """ + self._availability_zone = availability_zone + + @property + def datastore(self): + """Gets the datastore of this CreateClusterBody. + + + :return: The datastore of this CreateClusterBody. + :rtype: CreateClusterDatastoreBody + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this CreateClusterBody. + + + :param datastore: The datastore of this CreateClusterBody. + :type: CreateClusterDatastoreBody + """ + self._datastore = datastore + + @property + def authority_enable(self): + """Gets the authority_enable of this CreateClusterBody. + + 是否开启认证,取值范围为true或false。默认关闭认证功能。当开启认证时,httpsEnable需要设置为true。 - true:表示集群开启认证。 - false:表示集群不开启认证。 此参数只有6.5.4及之后版本支持。 + + :return: The authority_enable of this CreateClusterBody. + :rtype: bool + """ + return self._authority_enable + + @authority_enable.setter + def authority_enable(self, authority_enable): + """Sets the authority_enable of this CreateClusterBody. + + 是否开启认证,取值范围为true或false。默认关闭认证功能。当开启认证时,httpsEnable需要设置为true。 - true:表示集群开启认证。 - false:表示集群不开启认证。 此参数只有6.5.4及之后版本支持。 + + :param authority_enable: The authority_enable of this CreateClusterBody. + :type: bool + """ + self._authority_enable = authority_enable + + @property + def https_enable(self): + """Gets the https_enable of this CreateClusterBody. + + 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 此参数只有6.5.4及之后版本支持。 + + :return: The https_enable of this CreateClusterBody. + :rtype: bool + """ + return self._https_enable + + @https_enable.setter + def https_enable(self, https_enable): + """Sets the https_enable of this CreateClusterBody. + + 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。 - true:表示集群进行通信加密。 - false:表示集群不进行通信加密。 此参数只有6.5.4及之后版本支持。 + + :param https_enable: The https_enable of this CreateClusterBody. + :type: bool + """ + self._https_enable = https_enable + + @property + def admin_pwd(self): + """Gets the admin_pwd of this CreateClusterBody. + + 安全模式下集群管理员admin的密码,只有当authorityEnable设置为true时需要设置此参数。 + + :return: The admin_pwd of this CreateClusterBody. + :rtype: str + """ + return self._admin_pwd + + @admin_pwd.setter + def admin_pwd(self, admin_pwd): + """Sets the admin_pwd of this CreateClusterBody. + + 安全模式下集群管理员admin的密码,只有当authorityEnable设置为true时需要设置此参数。 + + :param admin_pwd: The admin_pwd of this CreateClusterBody. + :type: str + """ + self._admin_pwd = admin_pwd + + @property + def public_ip_req(self): + """Gets the public_ip_req of this CreateClusterBody. + + + :return: The public_ip_req of this CreateClusterBody. + :rtype: CreateClusterPublicIpReq + """ + return self._public_ip_req + + @public_ip_req.setter + def public_ip_req(self, public_ip_req): + """Sets the public_ip_req of this CreateClusterBody. + + + :param public_ip_req: The public_ip_req of this CreateClusterBody. + :type: CreateClusterPublicIpReq + """ + self._public_ip_req = public_ip_req + + @property + def load_balance(self): + """Gets the load_balance of this CreateClusterBody. + + + :return: The load_balance of this CreateClusterBody. + :rtype: CreateClusterLoadBalance + """ + return self._load_balance + + @load_balance.setter + def load_balance(self, load_balance): + """Sets the load_balance of this CreateClusterBody. + + + :param load_balance: The load_balance of this CreateClusterBody. + :type: CreateClusterLoadBalance + """ + self._load_balance = load_balance + + @property + def public_kibana_req(self): + """Gets the public_kibana_req of this CreateClusterBody. + + + :return: The public_kibana_req of this CreateClusterBody. + :rtype: CreateClusterPublicKibanaReq + """ + return self._public_kibana_req + + @public_kibana_req.setter + def public_kibana_req(self, public_kibana_req): + """Sets the public_kibana_req of this CreateClusterBody. + + + :param public_kibana_req: The public_kibana_req of this CreateClusterBody. + :type: CreateClusterPublicKibanaReq + """ + self._public_kibana_req = public_kibana_req + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_datastore_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_datastore_body.py new file mode 100644 index 000000000..e004c926e --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_datastore_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterDatastoreBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'type': 'str' + } + + attribute_map = { + 'version': 'version', + 'type': 'type' + } + + def __init__(self, version=None, type=None): + """CreateClusterDatastoreBody - a model defined in huaweicloud sdk""" + + + + self._version = None + self._type = None + self.discriminator = None + + self.version = version + self.type = type + + @property + def version(self): + """Gets the version of this CreateClusterDatastoreBody. + + 引擎版本号。 elasticsearch支持5.5.1、6.2.3、6.5.4、7.1.1、7.6.2或7.9.3。 logstash支持5.6.16或7.10.0。 + + :return: The version of this CreateClusterDatastoreBody. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CreateClusterDatastoreBody. + + 引擎版本号。 elasticsearch支持5.5.1、6.2.3、6.5.4、7.1.1、7.6.2或7.9.3。 logstash支持5.6.16或7.10.0。 + + :param version: The version of this CreateClusterDatastoreBody. + :type: str + """ + self._version = version + + @property + def type(self): + """Gets the type of this CreateClusterDatastoreBody. + + 引擎类型,支持elasticsearch和logstash。 + + :return: The type of this CreateClusterDatastoreBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateClusterDatastoreBody. + + 引擎类型,支持elasticsearch和logstash。 + + :param type: The type of this CreateClusterDatastoreBody. + :type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterDatastoreBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_elb_white_list.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_elb_white_list.py new file mode 100644 index 000000000..372610f92 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_elb_white_list.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterElbWhiteList: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_white_list': 'bool', + 'white_list': 'str' + } + + attribute_map = { + 'enable_white_list': 'enableWhiteList', + 'white_list': 'whiteList' + } + + def __init__(self, enable_white_list=None, white_list=None): + """CreateClusterElbWhiteList - a model defined in huaweicloud sdk""" + + + + self._enable_white_list = None + self._white_list = None + self.discriminator = None + + self.enable_white_list = enable_white_list + if white_list is not None: + self.white_list = white_list + + @property + def enable_white_list(self): + """Gets the enable_white_list of this CreateClusterElbWhiteList. + + 是否开启访问控制。 + + :return: The enable_white_list of this CreateClusterElbWhiteList. + :rtype: bool + """ + return self._enable_white_list + + @enable_white_list.setter + def enable_white_list(self, enable_white_list): + """Sets the enable_white_list of this CreateClusterElbWhiteList. + + 是否开启访问控制。 + + :param enable_white_list: The enable_white_list of this CreateClusterElbWhiteList. + :type: bool + """ + self._enable_white_list = enable_white_list + + @property + def white_list(self): + """Gets the white_list of this CreateClusterElbWhiteList. + + 访问控制白名单。 + + :return: The white_list of this CreateClusterElbWhiteList. + :rtype: str + """ + return self._white_list + + @white_list.setter + def white_list(self, white_list): + """Sets the white_list of this CreateClusterElbWhiteList. + + 访问控制白名单。 + + :param white_list: The white_list of this CreateClusterElbWhiteList. + :type: str + """ + self._white_list = white_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, CreateClusterElbWhiteList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_nics_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_nics_body.py new file mode 100644 index 000000000..f13decdad --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_nics_body.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterInstanceNicsBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'net_id': 'str', + 'security_group_id': 'str' + } + + attribute_map = { + 'vpc_id': 'vpcId', + 'net_id': 'netId', + 'security_group_id': 'securityGroupId' + } + + def __init__(self, vpc_id=None, net_id=None, security_group_id=None): + """CreateClusterInstanceNicsBody - a model defined in huaweicloud sdk""" + + + + self._vpc_id = None + self._net_id = None + self._security_group_id = None + self.discriminator = None + + self.vpc_id = vpc_id + self.net_id = net_id + self.security_group_id = security_group_id + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateClusterInstanceNicsBody. + + 指定虚拟私有云ID,用于集群网络配置。 + + :return: The vpc_id of this CreateClusterInstanceNicsBody. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateClusterInstanceNicsBody. + + 指定虚拟私有云ID,用于集群网络配置。 + + :param vpc_id: The vpc_id of this CreateClusterInstanceNicsBody. + :type: str + """ + self._vpc_id = vpc_id + + @property + def net_id(self): + """Gets the net_id of this CreateClusterInstanceNicsBody. + + 子网ID(网络ID),其中一个搜索集群所有实例的子网和安全组必须相同。 + + :return: The net_id of this CreateClusterInstanceNicsBody. + :rtype: str + """ + return self._net_id + + @net_id.setter + def net_id(self, net_id): + """Sets the net_id of this CreateClusterInstanceNicsBody. + + 子网ID(网络ID),其中一个搜索集群所有实例的子网和安全组必须相同。 + + :param net_id: The net_id of this CreateClusterInstanceNicsBody. + :type: str + """ + self._net_id = net_id + + @property + def security_group_id(self): + """Gets the security_group_id of this CreateClusterInstanceNicsBody. + + 安全组ID,其中一个搜索集群所有实例的子网和安全组必须相同。 + + :return: The security_group_id of this CreateClusterInstanceNicsBody. + :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 CreateClusterInstanceNicsBody. + + 安全组ID,其中一个搜索集群所有实例的子网和安全组必须相同。 + + :param security_group_id: The security_group_id of this CreateClusterInstanceNicsBody. + :type: str + """ + self._security_group_id = security_group_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, CreateClusterInstanceNicsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_volume_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_volume_body.py new file mode 100644 index 000000000..d3228c86a --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_instance_volume_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterInstanceVolumeBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'volume_type': 'str', + 'size': 'int' + } + + attribute_map = { + 'volume_type': 'volume_type', + 'size': 'size' + } + + def __init__(self, volume_type=None, size=None): + """CreateClusterInstanceVolumeBody - a model defined in huaweicloud sdk""" + + + + self._volume_type = None + self._size = None + self.discriminator = None + + self.volume_type = volume_type + self.size = size + + @property + def volume_type(self): + """Gets the volume_type of this CreateClusterInstanceVolumeBody. + + 卷类型。 - COMMON:普通I/O。 - HIGH:高I/O。 - ULTRAHIGH:超高I/O。 + + :return: The volume_type of this CreateClusterInstanceVolumeBody. + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this CreateClusterInstanceVolumeBody. + + 卷类型。 - COMMON:普通I/O。 - HIGH:高I/O。 - ULTRAHIGH:超高I/O。 + + :param volume_type: The volume_type of this CreateClusterInstanceVolumeBody. + :type: str + """ + self._volume_type = volume_type + + @property + def size(self): + """Gets the size of this CreateClusterInstanceVolumeBody. + + 卷大小,必须为4和10的倍数。 单位:GB。 + + :return: The size of this CreateClusterInstanceVolumeBody. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this CreateClusterInstanceVolumeBody. + + 卷大小,必须为4和10的倍数。 单位:GB。 + + :param size: The size of this CreateClusterInstanceVolumeBody. + :type: 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, CreateClusterInstanceVolumeBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_load_balance.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_load_balance.py new file mode 100644 index 000000000..e75622fa0 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_load_balance.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterLoadBalance: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'endpoint_with_dns_name': 'bool', + 'vpc_permisssions': 'list[str]' + } + + attribute_map = { + 'endpoint_with_dns_name': 'endpointWithDnsName', + 'vpc_permisssions': 'vpcPermisssions' + } + + def __init__(self, endpoint_with_dns_name=None, vpc_permisssions=None): + """CreateClusterLoadBalance - a model defined in huaweicloud sdk""" + + + + self._endpoint_with_dns_name = None + self._vpc_permisssions = None + self.discriminator = None + + self.endpoint_with_dns_name = endpoint_with_dns_name + if vpc_permisssions is not None: + self.vpc_permisssions = vpc_permisssions + + @property + def endpoint_with_dns_name(self): + """Gets the endpoint_with_dns_name of this CreateClusterLoadBalance. + + 是否开启内网域名。 + + :return: The endpoint_with_dns_name of this CreateClusterLoadBalance. + :rtype: bool + """ + return self._endpoint_with_dns_name + + @endpoint_with_dns_name.setter + def endpoint_with_dns_name(self, endpoint_with_dns_name): + """Sets the endpoint_with_dns_name of this CreateClusterLoadBalance. + + 是否开启内网域名。 + + :param endpoint_with_dns_name: The endpoint_with_dns_name of this CreateClusterLoadBalance. + :type: bool + """ + self._endpoint_with_dns_name = endpoint_with_dns_name + + @property + def vpc_permisssions(self): + """Gets the vpc_permisssions of this CreateClusterLoadBalance. + + 访问控制。 + + :return: The vpc_permisssions of this CreateClusterLoadBalance. + :rtype: list[str] + """ + return self._vpc_permisssions + + @vpc_permisssions.setter + def vpc_permisssions(self, vpc_permisssions): + """Sets the vpc_permisssions of this CreateClusterLoadBalance. + + 访问控制。 + + :param vpc_permisssions: The vpc_permisssions of this CreateClusterLoadBalance. + :type: list[str] + """ + self._vpc_permisssions = vpc_permisssions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterLoadBalance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip.py new file mode 100644 index 000000000..c29ad1626 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterPublicEip: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'band_width': 'CreateClusterPublicEipSize' + } + + attribute_map = { + 'band_width': 'bandWidth' + } + + def __init__(self, band_width=None): + """CreateClusterPublicEip - a model defined in huaweicloud sdk""" + + + + self._band_width = None + self.discriminator = None + + self.band_width = band_width + + @property + def band_width(self): + """Gets the band_width of this CreateClusterPublicEip. + + + :return: The band_width of this CreateClusterPublicEip. + :rtype: CreateClusterPublicEipSize + """ + return self._band_width + + @band_width.setter + def band_width(self, band_width): + """Sets the band_width of this CreateClusterPublicEip. + + + :param band_width: The band_width of this CreateClusterPublicEip. + :type: CreateClusterPublicEipSize + """ + self._band_width = band_width + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterPublicEip): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip_size.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip_size.py new file mode 100644 index 000000000..e9cdad07f --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_eip_size.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterPublicEipSize: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'size': 'int' + } + + attribute_map = { + 'size': 'size' + } + + def __init__(self, size=None): + """CreateClusterPublicEipSize - a model defined in huaweicloud sdk""" + + + + self._size = None + self.discriminator = None + + self.size = size + + @property + def size(self): + """Gets the size of this CreateClusterPublicEipSize. + + 带宽大小。 + + :return: The size of this CreateClusterPublicEipSize. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this CreateClusterPublicEipSize. + + 带宽大小。 + + :param size: The size of this CreateClusterPublicEipSize. + :type: 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, CreateClusterPublicEipSize): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_ip_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_ip_req.py new file mode 100644 index 000000000..e6c1a9d68 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_ip_req.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterPublicIpReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateClusterPublicEip', + 'elb_white_list_req': 'CreateClusterElbWhiteList', + 'public_bind_type': 'str', + 'eip_id': 'str' + } + + attribute_map = { + 'eip': 'eip', + 'elb_white_list_req': 'elbWhiteListReq', + 'public_bind_type': 'publicBindType', + 'eip_id': 'eipId' + } + + def __init__(self, eip=None, elb_white_list_req=None, public_bind_type=None, eip_id=None): + """CreateClusterPublicIpReq - a model defined in huaweicloud sdk""" + + + + self._eip = None + self._elb_white_list_req = None + self._public_bind_type = None + self._eip_id = None + self.discriminator = None + + self.eip = eip + self.elb_white_list_req = elb_white_list_req + self.public_bind_type = public_bind_type + if eip_id is not None: + self.eip_id = eip_id + + @property + def eip(self): + """Gets the eip of this CreateClusterPublicIpReq. + + + :return: The eip of this CreateClusterPublicIpReq. + :rtype: CreateClusterPublicEip + """ + return self._eip + + @eip.setter + def eip(self, eip): + """Sets the eip of this CreateClusterPublicIpReq. + + + :param eip: The eip of this CreateClusterPublicIpReq. + :type: CreateClusterPublicEip + """ + self._eip = eip + + @property + def elb_white_list_req(self): + """Gets the elb_white_list_req of this CreateClusterPublicIpReq. + + + :return: The elb_white_list_req of this CreateClusterPublicIpReq. + :rtype: CreateClusterElbWhiteList + """ + return self._elb_white_list_req + + @elb_white_list_req.setter + def elb_white_list_req(self, elb_white_list_req): + """Sets the elb_white_list_req of this CreateClusterPublicIpReq. + + + :param elb_white_list_req: The elb_white_list_req of this CreateClusterPublicIpReq. + :type: CreateClusterElbWhiteList + """ + self._elb_white_list_req = elb_white_list_req + + @property + def public_bind_type(self): + """Gets the public_bind_type of this CreateClusterPublicIpReq. + + 是否自动绑定弹性公网IP。auto_assgin为自动分配,bind_existing为绑定已有IP,需要填写eipId字段。 + + :return: The public_bind_type of this CreateClusterPublicIpReq. + :rtype: str + """ + return self._public_bind_type + + @public_bind_type.setter + def public_bind_type(self, public_bind_type): + """Sets the public_bind_type of this CreateClusterPublicIpReq. + + 是否自动绑定弹性公网IP。auto_assgin为自动分配,bind_existing为绑定已有IP,需要填写eipId字段。 + + :param public_bind_type: The public_bind_type of this CreateClusterPublicIpReq. + :type: str + """ + self._public_bind_type = public_bind_type + + @property + def eip_id(self): + """Gets the eip_id of this CreateClusterPublicIpReq. + + 弹性公网IP的ID。 + + :return: The eip_id of this CreateClusterPublicIpReq. + :rtype: str + """ + return self._eip_id + + @eip_id.setter + def eip_id(self, eip_id): + """Sets the eip_id of this CreateClusterPublicIpReq. + + 弹性公网IP的ID。 + + :param eip_id: The eip_id of this CreateClusterPublicIpReq. + :type: str + """ + self._eip_id = eip_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, CreateClusterPublicIpReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_elb_white_list.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_elb_white_list.py new file mode 100644 index 000000000..339dc7041 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_elb_white_list.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterPublicKibanaElbWhiteList: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'white_list': 'str', + 'enable_white_list': 'bool' + } + + attribute_map = { + 'white_list': 'whiteList', + 'enable_white_list': 'enableWhiteList' + } + + def __init__(self, white_list=None, enable_white_list=None): + """CreateClusterPublicKibanaElbWhiteList - a model defined in huaweicloud sdk""" + + + + self._white_list = None + self._enable_white_list = None + self.discriminator = None + + self.white_list = white_list + self.enable_white_list = enable_white_list + + @property + def white_list(self): + """Gets the white_list of this CreateClusterPublicKibanaElbWhiteList. + + 白名单。 + + :return: The white_list of this CreateClusterPublicKibanaElbWhiteList. + :rtype: str + """ + return self._white_list + + @white_list.setter + def white_list(self, white_list): + """Sets the white_list of this CreateClusterPublicKibanaElbWhiteList. + + 白名单。 + + :param white_list: The white_list of this CreateClusterPublicKibanaElbWhiteList. + :type: str + """ + self._white_list = white_list + + @property + def enable_white_list(self): + """Gets the enable_white_list of this CreateClusterPublicKibanaElbWhiteList. + + 是否开启访问控制。 + + :return: The enable_white_list of this CreateClusterPublicKibanaElbWhiteList. + :rtype: bool + """ + return self._enable_white_list + + @enable_white_list.setter + def enable_white_list(self, enable_white_list): + """Sets the enable_white_list of this CreateClusterPublicKibanaElbWhiteList. + + 是否开启访问控制。 + + :param enable_white_list: The enable_white_list of this CreateClusterPublicKibanaElbWhiteList. + :type: bool + """ + self._enable_white_list = enable_white_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, CreateClusterPublicKibanaElbWhiteList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_req.py new file mode 100644 index 000000000..568620a32 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_public_kibana_req.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterPublicKibanaReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_size': 'int', + 'elb_white_list': 'CreateClusterPublicKibanaElbWhiteList' + } + + attribute_map = { + 'eip_size': 'eipSize', + 'elb_white_list': 'elbWhiteList' + } + + def __init__(self, eip_size=None, elb_white_list=None): + """CreateClusterPublicKibanaReq - a model defined in huaweicloud sdk""" + + + + self._eip_size = None + self._elb_white_list = None + self.discriminator = None + + self.eip_size = eip_size + self.elb_white_list = elb_white_list + + @property + def eip_size(self): + """Gets the eip_size of this CreateClusterPublicKibanaReq. + + 带宽大小。 + + :return: The eip_size of this CreateClusterPublicKibanaReq. + :rtype: int + """ + return self._eip_size + + @eip_size.setter + def eip_size(self, eip_size): + """Sets the eip_size of this CreateClusterPublicKibanaReq. + + 带宽大小。 + + :param eip_size: The eip_size of this CreateClusterPublicKibanaReq. + :type: int + """ + self._eip_size = eip_size + + @property + def elb_white_list(self): + """Gets the elb_white_list of this CreateClusterPublicKibanaReq. + + + :return: The elb_white_list of this CreateClusterPublicKibanaReq. + :rtype: CreateClusterPublicKibanaElbWhiteList + """ + return self._elb_white_list + + @elb_white_list.setter + def elb_white_list(self, elb_white_list): + """Sets the elb_white_list of this CreateClusterPublicKibanaReq. + + + :param elb_white_list: The elb_white_list of this CreateClusterPublicKibanaReq. + :type: CreateClusterPublicKibanaElbWhiteList + """ + self._elb_white_list = elb_white_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, CreateClusterPublicKibanaReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_req.py new file mode 100644 index 000000000..ebfbb1853 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_req.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster': 'CreateClusterBody' + } + + attribute_map = { + 'cluster': 'cluster' + } + + def __init__(self, cluster=None): + """CreateClusterReq - a model defined in huaweicloud sdk""" + + + + self._cluster = None + self.discriminator = None + + self.cluster = cluster + + @property + def cluster(self): + """Gets the cluster of this CreateClusterReq. + + + :return: The cluster of this CreateClusterReq. + :rtype: CreateClusterBody + """ + return self._cluster + + @cluster.setter + def cluster(self, cluster): + """Sets the cluster of this CreateClusterReq. + + + :param cluster: The cluster of this CreateClusterReq. + :type: CreateClusterBody + """ + self._cluster = cluster + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_request.py new file mode 100644 index 000000000..f7fdf079d --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateClusterReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateClusterRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateClusterRequest. + + + :return: The body of this CreateClusterRequest. + :rtype: CreateClusterReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateClusterRequest. + + + :param body: The body of this CreateClusterRequest. + :type: CreateClusterReq + """ + 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, CreateClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_response.py new file mode 100644 index 000000000..179571972 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_response.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """CreateClusterResponse - a model defined in huaweicloud sdk""" + + super(CreateClusterResponse, self).__init__() + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this CreateClusterResponse. + + 集群ID。 + + :return: The id of this CreateClusterResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateClusterResponse. + + 集群ID。 + + :param id: The id of this CreateClusterResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CreateClusterResponse. + + 集群名称。 + + :return: The name of this CreateClusterResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateClusterResponse. + + 集群名称。 + + :param name: The name of this CreateClusterResponse. + :type: 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, CreateClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_roles_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_roles_body.py new file mode 100644 index 000000000..d0c4d9bfd --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_roles_body.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterRolesBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'flavor_ref': 'str', + 'volume': 'CreateClusterInstanceVolumeBody', + 'type': 'str', + 'instance_num': 'int' + } + + attribute_map = { + 'flavor_ref': 'flavorRef', + 'volume': 'volume', + 'type': 'type', + 'instance_num': 'instanceNum' + } + + def __init__(self, flavor_ref=None, volume=None, type=None, instance_num=None): + """CreateClusterRolesBody - a model defined in huaweicloud sdk""" + + + + self._flavor_ref = None + self._volume = None + self._type = None + self._instance_num = None + self.discriminator = None + + self.flavor_ref = flavor_ref + self.volume = volume + self.type = type + self.instance_num = instance_num + + @property + def flavor_ref(self): + """Gets the flavor_ref of this CreateClusterRolesBody. + + 实例规格名称。例如, - ess.spec-2u16g规格对应的取值范围为40GB~1280GB。 - ess.spec-4u32g规格对应的取值范围为40GB~2560GB。 - ess.spec-8u64g规格对应的取值范围为80GB~5120GB。 - ess.spec-16u128g规格对应的取值范围为160GB~10240GB。 + + :return: The flavor_ref of this CreateClusterRolesBody. + :rtype: str + """ + return self._flavor_ref + + @flavor_ref.setter + def flavor_ref(self, flavor_ref): + """Sets the flavor_ref of this CreateClusterRolesBody. + + 实例规格名称。例如, - ess.spec-2u16g规格对应的取值范围为40GB~1280GB。 - ess.spec-4u32g规格对应的取值范围为40GB~2560GB。 - ess.spec-8u64g规格对应的取值范围为80GB~5120GB。 - ess.spec-16u128g规格对应的取值范围为160GB~10240GB。 + + :param flavor_ref: The flavor_ref of this CreateClusterRolesBody. + :type: str + """ + self._flavor_ref = flavor_ref + + @property + def volume(self): + """Gets the volume of this CreateClusterRolesBody. + + + :return: The volume of this CreateClusterRolesBody. + :rtype: CreateClusterInstanceVolumeBody + """ + return self._volume + + @volume.setter + def volume(self, volume): + """Sets the volume of this CreateClusterRolesBody. + + + :param volume: The volume of this CreateClusterRolesBody. + :type: CreateClusterInstanceVolumeBody + """ + self._volume = volume + + @property + def type(self): + """Gets the type of this CreateClusterRolesBody. + + 实例类型。例如, - ess-master对应Master节点。 - ess-client对应Clinet节点。 - ess-cold对应冷数据节点。 - ess对应数据节点。 + + :return: The type of this CreateClusterRolesBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateClusterRolesBody. + + 实例类型。例如, - ess-master对应Master节点。 - ess-client对应Clinet节点。 - ess-cold对应冷数据节点。 - ess对应数据节点。 + + :param type: The type of this CreateClusterRolesBody. + :type: str + """ + self._type = type + + @property + def instance_num(self): + """Gets the instance_num of this CreateClusterRolesBody. + + 实例个数。 + + :return: The instance_num of this CreateClusterRolesBody. + :rtype: int + """ + return self._instance_num + + @instance_num.setter + def instance_num(self, instance_num): + """Sets the instance_num of this CreateClusterRolesBody. + + 实例个数。 + + :param instance_num: The instance_num of this CreateClusterRolesBody. + :type: int + """ + self._instance_num = instance_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateClusterRolesBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_tags_body.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_tags_body.py new file mode 100644 index 000000000..a086381ab --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/create_cluster_tags_body.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateClusterTagsBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """CreateClusterTagsBody - a model defined in huaweicloud sdk""" + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + self.value = value + + @property + def key(self): + """Gets the key of this CreateClusterTagsBody. + + 集群标签的key值。可输入的字符串长度为1~36个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :return: The key of this CreateClusterTagsBody. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CreateClusterTagsBody. + + 集群标签的key值。可输入的字符串长度为1~36个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :param key: The key of this CreateClusterTagsBody. + :type: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this CreateClusterTagsBody. + + 集群标签的value值。可输入的字符串长度为0~43个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :return: The value of this CreateClusterTagsBody. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CreateClusterTagsBody. + + 集群标签的value值。可输入的字符串长度为0~43个字符。只能包含数字、字母、中划线\"-\"和下划线\"_\"。 + + :param value: The value of this CreateClusterTagsBody. + :type: 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, CreateClusterTagsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_req.py new file mode 100644 index 000000000..937414439 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_req.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestartClusterReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'value': 'str' + } + + attribute_map = { + 'type': 'type', + 'value': 'value' + } + + def __init__(self, type=None, value=None): + """RestartClusterReq - a model defined in huaweicloud sdk""" + + + + self._type = None + self._value = None + self.discriminator = None + + self.type = type + self.value = value + + @property + def type(self): + """Gets the type of this RestartClusterReq. + + 操作角色 + + :return: The type of this RestartClusterReq. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RestartClusterReq. + + 操作角色 + + :param type: The type of this RestartClusterReq. + :type: str + """ + self._type = type + + @property + def value(self): + """Gets the value of this RestartClusterReq. + + 节点类型 + + :return: The value of this RestartClusterReq. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this RestartClusterReq. + + 节点类型 + + :param value: The value of this RestartClusterReq. + :type: 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, RestartClusterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_request.py new file mode 100644 index 000000000..4cd527eea --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestartClusterRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'RestartClusterReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """RestartClusterRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this RestartClusterRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this RestartClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RestartClusterRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this RestartClusterRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this RestartClusterRequest. + + + :return: The body of this RestartClusterRequest. + :rtype: RestartClusterReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RestartClusterRequest. + + + :param body: The body of this RestartClusterRequest. + :type: RestartClusterReq + """ + 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, RestartClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_response.py new file mode 100644 index 000000000..74725a882 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/restart_cluster_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RestartClusterResponse(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): + """RestartClusterResponse - a model defined in huaweicloud sdk""" + + super(RestartClusterResponse, 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, RestartClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_req.py new file mode 100644 index 000000000..e907e3394 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_req.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RollingRestartReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'value': 'str' + } + + attribute_map = { + 'type': 'type', + 'value': 'value' + } + + def __init__(self, type=None, value=None): + """RollingRestartReq - a model defined in huaweicloud sdk""" + + + + self._type = None + self._value = None + self.discriminator = None + + self.type = type + self.value = value + + @property + def type(self): + """Gets the type of this RollingRestartReq. + + 操作角色 + + :return: The type of this RollingRestartReq. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this RollingRestartReq. + + 操作角色 + + :param type: The type of this RollingRestartReq. + :type: str + """ + self._type = type + + @property + def value(self): + """Gets the value of this RollingRestartReq. + + 实例类型。例如, - ess-master对应Master节点。 - ess-client对应Clinet节点。 - ess-cold对应冷数据节点。 - ess对应数据节点。 - all对应所有节点。 + + :return: The value of this RollingRestartReq. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this RollingRestartReq. + + 实例类型。例如, - ess-master对应Master节点。 - ess-client对应Clinet节点。 - ess-cold对应冷数据节点。 - ess对应数据节点。 - all对应所有节点。 + + :param value: The value of this RollingRestartReq. + :type: 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, RollingRestartReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_request.py new file mode 100644 index 000000000..29889f1c6 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RollingRestartRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'RollingRestartReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """RollingRestartRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this RollingRestartRequest. + + 指定待查询的集群ID。 + + :return: The cluster_id of this RollingRestartRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this RollingRestartRequest. + + 指定待查询的集群ID。 + + :param cluster_id: The cluster_id of this RollingRestartRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this RollingRestartRequest. + + + :return: The body of this RollingRestartRequest. + :rtype: RollingRestartReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this RollingRestartRequest. + + + :param body: The body of this RollingRestartRequest. + :type: RollingRestartReq + """ + 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, RollingRestartRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_response.py new file mode 100644 index 000000000..feb093c78 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/rolling_restart_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RollingRestartResponse(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): + """RollingRestartResponse - a model defined in huaweicloud sdk""" + + super(RollingRestartResponse, 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, RollingRestartResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_req.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_req.py new file mode 100644 index 000000000..12b56d9aa --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_req.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartAutoCreateSnapshotsReq: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'indices': 'str', + 'keepday': 'int', + 'period': 'str', + 'prefix': 'str' + } + + attribute_map = { + 'indices': 'indices', + 'keepday': 'keepday', + 'period': 'period', + 'prefix': 'prefix' + } + + def __init__(self, indices=None, keepday=None, period=None, prefix=None): + """StartAutoCreateSnapshotsReq - a model defined in huaweicloud sdk""" + + + + self._indices = None + self._keepday = None + self._period = None + self._prefix = None + self.discriminator = None + + if indices is not None: + self.indices = indices + self.keepday = keepday + self.period = period + self.prefix = prefix + + @property + def indices(self): + """Gets the indices of this StartAutoCreateSnapshotsReq. + + 指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\\*”匹配多个索引,例如:2018-06\\*,表示恢复名称前缀是2018-06的所有索引的数据。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?特殊字符。 默认值为\\*,表示恢复所有索引。 + + :return: The indices of this StartAutoCreateSnapshotsReq. + :rtype: str + """ + return self._indices + + @indices.setter + def indices(self, indices): + """Sets the indices of this StartAutoCreateSnapshotsReq. + + 指定要恢复的索引名称,多个索引用逗号隔开,默认恢复所有索引。支持使用“\\*”匹配多个索引,例如:2018-06\\*,表示恢复名称前缀是2018-06的所有索引的数据。 0~1024个字符,不能包含空格和大写字母,且不能包含\\\"\\\\<|>/?特殊字符。 默认值为\\*,表示恢复所有索引。 + + :param indices: The indices of this StartAutoCreateSnapshotsReq. + :type: str + """ + self._indices = indices + + @property + def keepday(self): + """Gets the keepday of this StartAutoCreateSnapshotsReq. + + 设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。 + + :return: The keepday of this StartAutoCreateSnapshotsReq. + :rtype: int + """ + return self._keepday + + @keepday.setter + def keepday(self, keepday): + """Sets the keepday of this StartAutoCreateSnapshotsReq. + + 设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。 + + :param keepday: The keepday of this StartAutoCreateSnapshotsReq. + :type: int + """ + self._keepday = keepday + + @property + def period(self): + """Gets the period of this StartAutoCreateSnapshotsReq. + + 每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :return: The period of this StartAutoCreateSnapshotsReq. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this StartAutoCreateSnapshotsReq. + + 每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。 + + :param period: The period of this StartAutoCreateSnapshotsReq. + :type: str + """ + self._period = period + + @property + def prefix(self): + """Gets the prefix of this StartAutoCreateSnapshotsReq. + + 自动创建的快照名称前缀。 + + :return: The prefix of this StartAutoCreateSnapshotsReq. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this StartAutoCreateSnapshotsReq. + + 自动创建的快照名称前缀。 + + :param prefix: The prefix of this StartAutoCreateSnapshotsReq. + :type: str + """ + self._prefix = prefix + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StartAutoCreateSnapshotsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_request.py new file mode 100644 index 000000000..2b65eb1c8 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartAutoCreateSnapshotsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'StartAutoCreateSnapshotsReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """StartAutoCreateSnapshotsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this StartAutoCreateSnapshotsRequest. + + 快照所属的集群的ID。 + + :return: The cluster_id of this StartAutoCreateSnapshotsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StartAutoCreateSnapshotsRequest. + + 快照所属的集群的ID。 + + :param cluster_id: The cluster_id of this StartAutoCreateSnapshotsRequest. + :type: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this StartAutoCreateSnapshotsRequest. + + + :return: The body of this StartAutoCreateSnapshotsRequest. + :rtype: StartAutoCreateSnapshotsReq + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this StartAutoCreateSnapshotsRequest. + + + :param body: The body of this StartAutoCreateSnapshotsRequest. + :type: StartAutoCreateSnapshotsReq + """ + 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, StartAutoCreateSnapshotsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_response.py new file mode 100644 index 000000000..e44142865 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/start_auto_create_snapshots_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StartAutoCreateSnapshotsResponse(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): + """StartAutoCreateSnapshotsResponse - a model defined in huaweicloud sdk""" + + super(StartAutoCreateSnapshotsResponse, 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, StartAutoCreateSnapshotsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_request.py new file mode 100644 index 000000000..f7c365945 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopAutoCreateSnapshotsRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id' + } + + def __init__(self, cluster_id=None): + """StopAutoCreateSnapshotsRequest - a model defined in huaweicloud sdk""" + + + + self._cluster_id = None + self.discriminator = None + + self.cluster_id = cluster_id + + @property + def cluster_id(self): + """Gets the cluster_id of this StopAutoCreateSnapshotsRequest. + + 快照所属的集群的ID。 + + :return: The cluster_id of this StopAutoCreateSnapshotsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this StopAutoCreateSnapshotsRequest. + + 快照所属的集群的ID。 + + :param cluster_id: The cluster_id of this StopAutoCreateSnapshotsRequest. + :type: str + """ + self._cluster_id = cluster_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopAutoCreateSnapshotsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_response.py new file mode 100644 index 000000000..173df3e09 --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/model/stop_auto_create_snapshots_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopAutoCreateSnapshotsResponse(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): + """StopAutoCreateSnapshotsResponse - a model defined in huaweicloud sdk""" + + super(StopAutoCreateSnapshotsResponse, 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, StopAutoCreateSnapshotsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py new file mode 100644 index 000000000..c59769cfd --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py @@ -0,0 +1,27 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region + + +class CssRegion: + def __init__(self): + pass + + CN_SOUTH_1 = Region(id="cn-south-1", endpoint="https://css.cn-south-1.myhuaweicloud.com") + + static_fields = { + "cn-south-1": CN_SOUTH_1, + } + + @staticmethod + def value_of(region_id, static_fields=types.MappingProxyType(static_fields) if six.PY3 else static_fields): + if region_id is None or len(region_id) == 0: + raise KeyError("Unexpected empty parameter: region_id.") + if not static_fields.get(region_id): + raise KeyError("Unexpected region_id: " + region_id) + return static_fields.get(region_id) + + diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt new file mode 100644 index 000000000..1cd756540 --- /dev/null +++ b/huaweicloud-sdk-css/requirements.txt @@ -0,0 +1 @@ +huaweicloudsdkcore \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py new file mode 100644 index 000000000..45ffdcf62 --- /dev/null +++ b/huaweicloud-sdk-css/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkcss" +VERSION = "3.0.77" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "CSS" +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"] + +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", "CSS"], + 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-css/test-requirements.txt b/huaweicloud-sdk-css/test-requirements.txt new file mode 100644 index 000000000..2702246c0 --- /dev/null +++ b/huaweicloud-sdk-css/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 122c12e94..f5453d46d 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 1a81a8260..f380fc803 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 80719df2d..3abeb9ac9 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index b31e6ae22..2b0a94b24 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -20,6 +20,9 @@ from huaweicloudsdkdcs.v2.model.batch_delete_body import BatchDeleteBody from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult +from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody +from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_request import BatchStopMigrationTasksRequest +from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_response import BatchStopMigrationTasksResponse from huaweicloudsdkdcs.v2.model.bigkeys_body import BigkeysBody from huaweicloudsdkdcs.v2.model.bss_param import BssParam from huaweicloudsdkdcs.v2.model.bss_param_entity import BssParamEntity @@ -30,6 +33,7 @@ from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import Clust from huaweicloudsdkdcs.v2.model.command_time_taken import CommandTimeTaken from huaweicloudsdkdcs.v2.model.command_time_taken_list import CommandTimeTakenList from huaweicloudsdkdcs.v2.model.conclusion_item import ConclusionItem +from huaweicloudsdkdcs.v2.model.config_migration_instance_body import ConfigMigrationInstanceBody from huaweicloudsdkdcs.v2.model.copy_instance_request import CopyInstanceRequest from huaweicloudsdkdcs.v2.model.copy_instance_response import CopyInstanceResponse from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_request import CreateBigkeyScanTaskRequest @@ -45,6 +49,9 @@ from huaweicloudsdkdcs.v2.model.create_instance_response import CreateInstanceRe from huaweicloudsdkdcs.v2.model.create_migration_task_body import CreateMigrationTaskBody from huaweicloudsdkdcs.v2.model.create_migration_task_request import CreateMigrationTaskRequest from huaweicloudsdkdcs.v2.model.create_migration_task_response import CreateMigrationTaskResponse +from huaweicloudsdkdcs.v2.model.create_online_migration_task_body import CreateOnlineMigrationTaskBody +from huaweicloudsdkdcs.v2.model.create_online_migration_task_request import CreateOnlineMigrationTaskRequest +from huaweicloudsdkdcs.v2.model.create_online_migration_task_response import CreateOnlineMigrationTaskResponse from huaweicloudsdkdcs.v2.model.create_or_delete_instance_tags import CreateOrDeleteInstanceTags from huaweicloudsdkdcs.v2.model.create_redislog_download_link_request import CreateRedislogDownloadLinkRequest from huaweicloudsdkdcs.v2.model.create_redislog_download_link_response import CreateRedislogDownloadLinkResponse @@ -151,6 +158,9 @@ from huaweicloudsdkdcs.v2.model.restore_instance_body import RestoreInstanceBody from huaweicloudsdkdcs.v2.model.restore_instance_request import RestoreInstanceRequest from huaweicloudsdkdcs.v2.model.restore_instance_response import RestoreInstanceResponse from huaweicloudsdkdcs.v2.model.runlog_item import RunlogItem +from huaweicloudsdkdcs.v2.model.set_online_migration_task_body import SetOnlineMigrationTaskBody +from huaweicloudsdkdcs.v2.model.set_online_migration_task_request import SetOnlineMigrationTaskRequest +from huaweicloudsdkdcs.v2.model.set_online_migration_task_response import SetOnlineMigrationTaskResponse from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest @@ -179,6 +189,9 @@ from huaweicloudsdkdcs.v2.model.source_instance_body import SourceInstanceBody from huaweicloudsdkdcs.v2.model.status_statistic import StatusStatistic from huaweicloudsdkdcs.v2.model.stop_migration_task_request import StopMigrationTaskRequest from huaweicloudsdkdcs.v2.model.stop_migration_task_response import StopMigrationTaskResponse +from huaweicloudsdkdcs.v2.model.stop_migration_task_result import StopMigrationTaskResult +from huaweicloudsdkdcs.v2.model.stop_migration_task_sync_request import StopMigrationTaskSyncRequest +from huaweicloudsdkdcs.v2.model.stop_migration_task_sync_response import StopMigrationTaskSyncResponse from huaweicloudsdkdcs.v2.model.tag import Tag from huaweicloudsdkdcs.v2.model.target_instance_body import TargetInstanceBody from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_request import UpdateBigkeyAutoscanConfigRequest diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index 43c90b117..4395c49bf 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -178,6 +178,69 @@ class DcsAsyncClient(Client): request_type=request.__class__.__name__) + def batch_stop_migration_tasks_async(self, request): + """批量停止数据迁移任务 + + 批量停止数据迁移任务,接口响应成功,仅表示下发任务成功。查询到迁移任务状态为TERMINATED时,即停止成功。 + + :param BatchStopMigrationTasksRequest request + :return: BatchStopMigrationTasksResponse + """ + return self.batch_stop_migration_tasks_with_http_info(request) + + def batch_stop_migration_tasks_with_http_info(self, request): + """批量停止数据迁移任务 + + 批量停止数据迁移任务,接口响应成功,仅表示下发任务成功。查询到迁移任务状态为TERMINATED时,即停止成功。 + + :param BatchStopMigrationTasksRequest request + :return: BatchStopMigrationTasksResponse + """ + + all_params = ['batch_stop_migration_tasks_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration-task/batch-stop', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='BatchStopMigrationTasksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_master_standby_async(self, request): """主备切换 @@ -623,6 +686,69 @@ class DcsAsyncClient(Client): request_type=request.__class__.__name__) + def create_online_migration_task_async(self, request): + """创建在线数据迁移任务 + + 创建在线数据迁移任务。 + + :param CreateOnlineMigrationTaskRequest request + :return: CreateOnlineMigrationTaskResponse + """ + return self.create_online_migration_task_with_http_info(request) + + def create_online_migration_task_with_http_info(self, request): + """创建在线数据迁移任务 + + 创建在线数据迁移任务。 + + :param CreateOnlineMigrationTaskRequest request + :return: CreateOnlineMigrationTaskResponse + """ + + all_params = ['create_online_migration_task_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration/instance', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateOnlineMigrationTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_redislog_async(self, request): """采集Redis运行日志 @@ -2818,6 +2944,71 @@ class DcsAsyncClient(Client): request_type=request.__class__.__name__) + def set_online_migration_task_async(self, request): + """配置在线数据迁移任务 + + 配置在线数据迁移任务。 + + :param SetOnlineMigrationTaskRequest request + :return: SetOnlineMigrationTaskResponse + """ + return self.set_online_migration_task_with_http_info(request) + + def set_online_migration_task_with_http_info(self, request): + """配置在线数据迁移任务 + + 配置在线数据迁移任务。 + + :param SetOnlineMigrationTaskRequest request + :return: SetOnlineMigrationTaskResponse + """ + + all_params = ['task_id', 'set_online_migration_task_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration/{task_id}/task', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='SetOnlineMigrationTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_bigkey_autoscan_config_async(self, request): """查询大key自动分析配置 @@ -3513,6 +3704,69 @@ class DcsAsyncClient(Client): request_type=request.__class__.__name__) + def stop_migration_task_sync_async(self, request): + """同步停止数据迁移任务 + + 同步停止数据迁移任务。 + + :param StopMigrationTaskSyncRequest request + :return: StopMigrationTaskSyncResponse + """ + return self.stop_migration_task_sync_with_http_info(request) + + def stop_migration_task_sync_with_http_info(self, request): + """同步停止数据迁移任务 + + 同步停止数据迁移任务。 + + :param StopMigrationTaskSyncRequest request + :return: StopMigrationTaskSyncResponse + """ + + all_params = ['task_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration-task/{task_id}/sync-stop', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopMigrationTaskSyncResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_bigkey_autoscan_config_async(self, request): """设置大key自动分析配置 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index 0353a2095..329dc308a 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -178,6 +178,69 @@ class DcsClient(Client): request_type=request.__class__.__name__) + def batch_stop_migration_tasks(self, request): + """批量停止数据迁移任务 + + 批量停止数据迁移任务,接口响应成功,仅表示下发任务成功。查询到迁移任务状态为TERMINATED时,即停止成功。 + + :param BatchStopMigrationTasksRequest request + :return: BatchStopMigrationTasksResponse + """ + return self.batch_stop_migration_tasks_with_http_info(request) + + def batch_stop_migration_tasks_with_http_info(self, request): + """批量停止数据迁移任务 + + 批量停止数据迁移任务,接口响应成功,仅表示下发任务成功。查询到迁移任务状态为TERMINATED时,即停止成功。 + + :param BatchStopMigrationTasksRequest request + :return: BatchStopMigrationTasksResponse + """ + + all_params = ['batch_stop_migration_tasks_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration-task/batch-stop', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='BatchStopMigrationTasksResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def change_master_standby(self, request): """主备切换 @@ -623,6 +686,69 @@ class DcsClient(Client): request_type=request.__class__.__name__) + def create_online_migration_task(self, request): + """创建在线数据迁移任务 + + 创建在线数据迁移任务。 + + :param CreateOnlineMigrationTaskRequest request + :return: CreateOnlineMigrationTaskResponse + """ + return self.create_online_migration_task_with_http_info(request) + + def create_online_migration_task_with_http_info(self, request): + """创建在线数据迁移任务 + + 创建在线数据迁移任务。 + + :param CreateOnlineMigrationTaskRequest request + :return: CreateOnlineMigrationTaskResponse + """ + + all_params = ['create_online_migration_task_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration/instance', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='CreateOnlineMigrationTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def create_redislog(self, request): """采集Redis运行日志 @@ -2818,6 +2944,71 @@ class DcsClient(Client): request_type=request.__class__.__name__) + def set_online_migration_task(self, request): + """配置在线数据迁移任务 + + 配置在线数据迁移任务。 + + :param SetOnlineMigrationTaskRequest request + :return: SetOnlineMigrationTaskResponse + """ + return self.set_online_migration_task_with_http_info(request) + + def set_online_migration_task_with_http_info(self, request): + """配置在线数据迁移任务 + + 配置在线数据迁移任务。 + + :param SetOnlineMigrationTaskRequest request + :return: SetOnlineMigrationTaskResponse + """ + + all_params = ['task_id', 'set_online_migration_task_request_body'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if 'body' in local_var_params: + body_params = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration/{task_id}/task', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='SetOnlineMigrationTaskResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def show_bigkey_autoscan_config(self, request): """查询大key自动分析配置 @@ -3513,6 +3704,69 @@ class DcsClient(Client): request_type=request.__class__.__name__) + def stop_migration_task_sync(self, request): + """同步停止数据迁移任务 + + 同步停止数据迁移任务。 + + :param StopMigrationTaskSyncRequest request + :return: StopMigrationTaskSyncResponse + """ + return self.stop_migration_task_sync_with_http_info(request) + + def stop_migration_task_sync_with_http_info(self, request): + """同步停止数据迁移任务 + + 同步停止数据迁移任务。 + + :param StopMigrationTaskSyncRequest request + :return: StopMigrationTaskSyncResponse + """ + + all_params = ['task_id'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + if 'task_id' in local_var_params: + path_params['task_id'] = local_var_params['task_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/migration-task/{task_id}/sync-stop', + method='POST', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='StopMigrationTaskSyncResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def update_bigkey_autoscan_config(self, request): """设置大key自动分析配置 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index b39cd5c8b..160a17273 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -17,6 +17,9 @@ from huaweicloudsdkdcs.v2.model.batch_delete_body import BatchDeleteBody from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult +from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody +from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_request import BatchStopMigrationTasksRequest +from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_response import BatchStopMigrationTasksResponse from huaweicloudsdkdcs.v2.model.bigkeys_body import BigkeysBody from huaweicloudsdkdcs.v2.model.bss_param import BssParam from huaweicloudsdkdcs.v2.model.bss_param_entity import BssParamEntity @@ -27,6 +30,7 @@ from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import Clust from huaweicloudsdkdcs.v2.model.command_time_taken import CommandTimeTaken from huaweicloudsdkdcs.v2.model.command_time_taken_list import CommandTimeTakenList from huaweicloudsdkdcs.v2.model.conclusion_item import ConclusionItem +from huaweicloudsdkdcs.v2.model.config_migration_instance_body import ConfigMigrationInstanceBody from huaweicloudsdkdcs.v2.model.copy_instance_request import CopyInstanceRequest from huaweicloudsdkdcs.v2.model.copy_instance_response import CopyInstanceResponse from huaweicloudsdkdcs.v2.model.create_bigkey_scan_task_request import CreateBigkeyScanTaskRequest @@ -42,6 +46,9 @@ from huaweicloudsdkdcs.v2.model.create_instance_response import CreateInstanceRe from huaweicloudsdkdcs.v2.model.create_migration_task_body import CreateMigrationTaskBody from huaweicloudsdkdcs.v2.model.create_migration_task_request import CreateMigrationTaskRequest from huaweicloudsdkdcs.v2.model.create_migration_task_response import CreateMigrationTaskResponse +from huaweicloudsdkdcs.v2.model.create_online_migration_task_body import CreateOnlineMigrationTaskBody +from huaweicloudsdkdcs.v2.model.create_online_migration_task_request import CreateOnlineMigrationTaskRequest +from huaweicloudsdkdcs.v2.model.create_online_migration_task_response import CreateOnlineMigrationTaskResponse from huaweicloudsdkdcs.v2.model.create_or_delete_instance_tags import CreateOrDeleteInstanceTags from huaweicloudsdkdcs.v2.model.create_redislog_download_link_request import CreateRedislogDownloadLinkRequest from huaweicloudsdkdcs.v2.model.create_redislog_download_link_response import CreateRedislogDownloadLinkResponse @@ -148,6 +155,9 @@ from huaweicloudsdkdcs.v2.model.restore_instance_body import RestoreInstanceBody from huaweicloudsdkdcs.v2.model.restore_instance_request import RestoreInstanceRequest from huaweicloudsdkdcs.v2.model.restore_instance_response import RestoreInstanceResponse from huaweicloudsdkdcs.v2.model.runlog_item import RunlogItem +from huaweicloudsdkdcs.v2.model.set_online_migration_task_body import SetOnlineMigrationTaskBody +from huaweicloudsdkdcs.v2.model.set_online_migration_task_request import SetOnlineMigrationTaskRequest +from huaweicloudsdkdcs.v2.model.set_online_migration_task_response import SetOnlineMigrationTaskResponse from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest @@ -176,6 +186,9 @@ from huaweicloudsdkdcs.v2.model.source_instance_body import SourceInstanceBody from huaweicloudsdkdcs.v2.model.status_statistic import StatusStatistic from huaweicloudsdkdcs.v2.model.stop_migration_task_request import StopMigrationTaskRequest from huaweicloudsdkdcs.v2.model.stop_migration_task_response import StopMigrationTaskResponse +from huaweicloudsdkdcs.v2.model.stop_migration_task_result import StopMigrationTaskResult +from huaweicloudsdkdcs.v2.model.stop_migration_task_sync_request import StopMigrationTaskSyncRequest +from huaweicloudsdkdcs.v2.model.stop_migration_task_sync_response import StopMigrationTaskSyncResponse from huaweicloudsdkdcs.v2.model.tag import Tag from huaweicloudsdkdcs.v2.model.target_instance_body import TargetInstanceBody from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_request import UpdateBigkeyAutoscanConfigRequest diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_body.py new file mode 100644 index 000000000..e4e330ad6 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_body.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchStopMigrationTasksBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'migration_tasks': 'list[str]' + } + + attribute_map = { + 'migration_tasks': 'migration_tasks' + } + + def __init__(self, migration_tasks=None): + """BatchStopMigrationTasksBody - a model defined in huaweicloud sdk""" + + + + self._migration_tasks = None + self.discriminator = None + + self.migration_tasks = migration_tasks + + @property + def migration_tasks(self): + """Gets the migration_tasks of this BatchStopMigrationTasksBody. + + 数据迁移任务列表。 + + :return: The migration_tasks of this BatchStopMigrationTasksBody. + :rtype: list[str] + """ + return self._migration_tasks + + @migration_tasks.setter + def migration_tasks(self, migration_tasks): + """Sets the migration_tasks of this BatchStopMigrationTasksBody. + + 数据迁移任务列表。 + + :param migration_tasks: The migration_tasks of this BatchStopMigrationTasksBody. + :type: list[str] + """ + self._migration_tasks = migration_tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchStopMigrationTasksBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_request.py new file mode 100644 index 000000000..92ead910f --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchStopMigrationTasksRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BatchStopMigrationTasksBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchStopMigrationTasksRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchStopMigrationTasksRequest. + + + :return: The body of this BatchStopMigrationTasksRequest. + :rtype: BatchStopMigrationTasksBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchStopMigrationTasksRequest. + + + :param body: The body of this BatchStopMigrationTasksRequest. + :type: BatchStopMigrationTasksBody + """ + 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, BatchStopMigrationTasksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_response.py new file mode 100644 index 000000000..3aa10ee93 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchStopMigrationTasksResponse(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 = { + 'migration_tasks': 'list[StopMigrationTaskResult]' + } + + attribute_map = { + 'migration_tasks': 'migration_tasks' + } + + def __init__(self, migration_tasks=None): + """BatchStopMigrationTasksResponse - a model defined in huaweicloud sdk""" + + super(BatchStopMigrationTasksResponse, self).__init__() + + self._migration_tasks = None + self.discriminator = None + + if migration_tasks is not None: + self.migration_tasks = migration_tasks + + @property + def migration_tasks(self): + """Gets the migration_tasks of this BatchStopMigrationTasksResponse. + + 数据迁移任务列表。 + + :return: The migration_tasks of this BatchStopMigrationTasksResponse. + :rtype: list[StopMigrationTaskResult] + """ + return self._migration_tasks + + @migration_tasks.setter + def migration_tasks(self, migration_tasks): + """Sets the migration_tasks of this BatchStopMigrationTasksResponse. + + 数据迁移任务列表。 + + :param migration_tasks: The migration_tasks of this BatchStopMigrationTasksResponse. + :type: list[StopMigrationTaskResult] + """ + self._migration_tasks = migration_tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchStopMigrationTasksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/config_migration_instance_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/config_migration_instance_body.py new file mode 100644 index 000000000..a4daca26f --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/config_migration_instance_body.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ConfigMigrationInstanceBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'addrs': 'str', + 'password': 'str' + } + + attribute_map = { + 'id': 'id', + 'addrs': 'addrs', + 'password': 'password' + } + + def __init__(self, id=None, addrs=None, password=None): + """ConfigMigrationInstanceBody - a model defined in huaweicloud sdk""" + + + + self._id = None + self._addrs = None + self._password = None + self.discriminator = None + + if id is not None: + self.id = id + if addrs is not None: + self.addrs = addrs + if password is not None: + self.password = password + + @property + def id(self): + """Gets the id of this ConfigMigrationInstanceBody. + + Redis实例ID。(Redis类型为云服务Redis时必须填写) + + :return: The id of this ConfigMigrationInstanceBody. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConfigMigrationInstanceBody. + + Redis实例ID。(Redis类型为云服务Redis时必须填写) + + :param id: The id of this ConfigMigrationInstanceBody. + :type: str + """ + self._id = id + + @property + def addrs(self): + """Gets the addrs of this ConfigMigrationInstanceBody. + + Redis实例地址。(Redis类型为自建Redis时必须填写)。 + + :return: The addrs of this ConfigMigrationInstanceBody. + :rtype: str + """ + return self._addrs + + @addrs.setter + def addrs(self, addrs): + """Sets the addrs of this ConfigMigrationInstanceBody. + + Redis实例地址。(Redis类型为自建Redis时必须填写)。 + + :param addrs: The addrs of this ConfigMigrationInstanceBody. + :type: str + """ + self._addrs = addrs + + @property + def password(self): + """Gets the password of this ConfigMigrationInstanceBody. + + Redis密码,如果设置了密码,则必须填写。 + + :return: The password of this ConfigMigrationInstanceBody. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this ConfigMigrationInstanceBody. + + Redis密码,如果设置了密码,则必须填写。 + + :param password: The password of this ConfigMigrationInstanceBody. + :type: str + """ + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConfigMigrationInstanceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_body.py new file mode 100644 index 000000000..07817f2b9 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_body.py @@ -0,0 +1,218 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateOnlineMigrationTaskBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'vpc_id': 'str', + 'subnet_id': 'str', + 'security_group_id': 'str' + } + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'security_group_id': 'security_group_id' + } + + def __init__(self, name=None, description=None, vpc_id=None, subnet_id=None, security_group_id=None): + """CreateOnlineMigrationTaskBody - a model defined in huaweicloud sdk""" + + + + self._name = None + self._description = None + self._vpc_id = None + self._subnet_id = None + self._security_group_id = None + self.discriminator = None + + self.name = name + if description is not None: + self.description = description + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.security_group_id = security_group_id + + @property + def name(self): + """Gets the name of this CreateOnlineMigrationTaskBody. + + 在线迁移任务名称。 + + :return: The name of this CreateOnlineMigrationTaskBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateOnlineMigrationTaskBody. + + 在线迁移任务名称。 + + :param name: The name of this CreateOnlineMigrationTaskBody. + :type: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this CreateOnlineMigrationTaskBody. + + 在线迁移任务描述。 + + :return: The description of this CreateOnlineMigrationTaskBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateOnlineMigrationTaskBody. + + 在线迁移任务描述。 + + :param description: The description of this CreateOnlineMigrationTaskBody. + :type: str + """ + self._description = description + + @property + def vpc_id(self): + """Gets the vpc_id of this CreateOnlineMigrationTaskBody. + + 虚拟私有云ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_apiv3_0003.html)。 + + :return: The vpc_id of this CreateOnlineMigrationTaskBody. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this CreateOnlineMigrationTaskBody. + + 虚拟私有云ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_apiv3_0003.html)。 + + :param vpc_id: The vpc_id of this CreateOnlineMigrationTaskBody. + :type: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this CreateOnlineMigrationTaskBody. + + 子网的网络ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + + :return: The subnet_id of this CreateOnlineMigrationTaskBody. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this CreateOnlineMigrationTaskBody. + + 子网的网络ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。 + + :param subnet_id: The subnet_id of this CreateOnlineMigrationTaskBody. + :type: str + """ + self._subnet_id = subnet_id + + @property + def security_group_id(self): + """Gets the security_group_id of this CreateOnlineMigrationTaskBody. + + 指定实例所属的安全组。 安全组用来实现安全组内和组间虚拟机的访问控制,加强虚拟机的安全保护。您可以在安全组中定义各种访问规则,当虚拟机加入该安全组后,即受到这些访问规则的保护。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,访问控制安全组选项下可以对安全组进行创建和配置,并获取安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询安全组列表](https://support.huaweicloud.com/api-vpc/vpc_apiv3_0012.html)。 + + :return: The security_group_id of this CreateOnlineMigrationTaskBody. + :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 CreateOnlineMigrationTaskBody. + + 指定实例所属的安全组。 安全组用来实现安全组内和组间虚拟机的访问控制,加强虚拟机的安全保护。您可以在安全组中定义各种访问规则,当虚拟机加入该安全组后,即受到这些访问规则的保护。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,访问控制安全组选项下可以对安全组进行创建和配置,并获取安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询安全组列表](https://support.huaweicloud.com/api-vpc/vpc_apiv3_0012.html)。 + + :param security_group_id: The security_group_id of this CreateOnlineMigrationTaskBody. + :type: str + """ + self._security_group_id = security_group_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, CreateOnlineMigrationTaskBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_request.py new file mode 100644 index 000000000..228da931c --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_request.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateOnlineMigrationTaskRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateOnlineMigrationTaskBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateOnlineMigrationTaskRequest - a model defined in huaweicloud sdk""" + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateOnlineMigrationTaskRequest. + + + :return: The body of this CreateOnlineMigrationTaskRequest. + :rtype: CreateOnlineMigrationTaskBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateOnlineMigrationTaskRequest. + + + :param body: The body of this CreateOnlineMigrationTaskRequest. + :type: CreateOnlineMigrationTaskBody + """ + 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, CreateOnlineMigrationTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_response.py new file mode 100644 index 000000000..352ef9009 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/create_online_migration_task_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateOnlineMigrationTaskResponse(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_id': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """CreateOnlineMigrationTaskResponse - a model defined in huaweicloud sdk""" + + super(CreateOnlineMigrationTaskResponse, self).__init__() + + self._instance_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this CreateOnlineMigrationTaskResponse. + + 在线迁移任务ID。 + + :return: The instance_id of this CreateOnlineMigrationTaskResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateOnlineMigrationTaskResponse. + + 在线迁移任务ID。 + + :param instance_id: The instance_id of this CreateOnlineMigrationTaskResponse. + :type: 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, CreateOnlineMigrationTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_body.py new file mode 100644 index 000000000..59f227bf9 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_body.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetOnlineMigrationTaskBody: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'migration_method': 'str', + 'resume_mode': 'str', + 'bandwidth_limit_mb': 'str', + 'source_instance': 'ConfigMigrationInstanceBody', + 'target_instance': 'ConfigMigrationInstanceBody' + } + + attribute_map = { + 'migration_method': 'migration_method', + 'resume_mode': 'resume_mode', + 'bandwidth_limit_mb': 'bandwidth_limit_mb', + 'source_instance': 'source_instance', + 'target_instance': 'target_instance' + } + + def __init__(self, migration_method=None, resume_mode=None, bandwidth_limit_mb=None, source_instance=None, target_instance=None): + """SetOnlineMigrationTaskBody - a model defined in huaweicloud sdk""" + + + + self._migration_method = None + self._resume_mode = None + self._bandwidth_limit_mb = None + self._source_instance = None + self._target_instance = None + self.discriminator = None + + self.migration_method = migration_method + self.resume_mode = resume_mode + if bandwidth_limit_mb is not None: + self.bandwidth_limit_mb = bandwidth_limit_mb + self.source_instance = source_instance + self.target_instance = target_instance + + @property + def migration_method(self): + """Gets the migration_method of this SetOnlineMigrationTaskBody. + + 迁移方式,包括全量迁移和增量迁移两种类型。 - 全量迁移:该模式为Redis的一次性迁移,适用于可中断业务的迁移场景。 全量迁移过程中,如果源Redis有数据更新,这部分更新数据不会被迁移到目标Redis。 - 增量迁移:该模式为Redis的持续性迁移,适用于对业务中断敏感的迁移场景。 增量迁移阶段通过解析日志等技术, 持续保持源Redis和目标端Redis的数据一致。 取值范围: - full_amount_migration:表示全量迁移。 - incremental_migration:表示增量迁移。 + + :return: The migration_method of this SetOnlineMigrationTaskBody. + :rtype: str + """ + return self._migration_method + + @migration_method.setter + def migration_method(self, migration_method): + """Sets the migration_method of this SetOnlineMigrationTaskBody. + + 迁移方式,包括全量迁移和增量迁移两种类型。 - 全量迁移:该模式为Redis的一次性迁移,适用于可中断业务的迁移场景。 全量迁移过程中,如果源Redis有数据更新,这部分更新数据不会被迁移到目标Redis。 - 增量迁移:该模式为Redis的持续性迁移,适用于对业务中断敏感的迁移场景。 增量迁移阶段通过解析日志等技术, 持续保持源Redis和目标端Redis的数据一致。 取值范围: - full_amount_migration:表示全量迁移。 - incremental_migration:表示增量迁移。 + + :param migration_method: The migration_method of this SetOnlineMigrationTaskBody. + :type: str + """ + self._migration_method = migration_method + + @property + def resume_mode(self): + """Gets the resume_mode of this SetOnlineMigrationTaskBody. + + 自动重连,根据参数决定是否自动重连。 自动重连模式在遇到网络等异常情况时,会无限自动重试。 自动重连模式在无法进行增量同步时,会触发全量同步,增加带宽占用,请谨慎选择。 取值范围: - auto:自动重连。 - manual:手动重连。 + + :return: The resume_mode of this SetOnlineMigrationTaskBody. + :rtype: str + """ + return self._resume_mode + + @resume_mode.setter + def resume_mode(self, resume_mode): + """Sets the resume_mode of this SetOnlineMigrationTaskBody. + + 自动重连,根据参数决定是否自动重连。 自动重连模式在遇到网络等异常情况时,会无限自动重试。 自动重连模式在无法进行增量同步时,会触发全量同步,增加带宽占用,请谨慎选择。 取值范围: - auto:自动重连。 - manual:手动重连。 + + :param resume_mode: The resume_mode of this SetOnlineMigrationTaskBody. + :type: str + """ + self._resume_mode = resume_mode + + @property + def bandwidth_limit_mb(self): + """Gets the bandwidth_limit_mb of this SetOnlineMigrationTaskBody. + + 带宽限制,当迁移方式为增量迁移时,为保证业务正常运行,您可以启用带宽限制功能,当数据同步速度达到带宽限制时,将限制同步速度的继续增长。 -限制为MB/s -取值范围:1-10,241(大于0小于10,241的整数) + + :return: The bandwidth_limit_mb of this SetOnlineMigrationTaskBody. + :rtype: str + """ + return self._bandwidth_limit_mb + + @bandwidth_limit_mb.setter + def bandwidth_limit_mb(self, bandwidth_limit_mb): + """Sets the bandwidth_limit_mb of this SetOnlineMigrationTaskBody. + + 带宽限制,当迁移方式为增量迁移时,为保证业务正常运行,您可以启用带宽限制功能,当数据同步速度达到带宽限制时,将限制同步速度的继续增长。 -限制为MB/s -取值范围:1-10,241(大于0小于10,241的整数) + + :param bandwidth_limit_mb: The bandwidth_limit_mb of this SetOnlineMigrationTaskBody. + :type: str + """ + self._bandwidth_limit_mb = bandwidth_limit_mb + + @property + def source_instance(self): + """Gets the source_instance of this SetOnlineMigrationTaskBody. + + + :return: The source_instance of this SetOnlineMigrationTaskBody. + :rtype: ConfigMigrationInstanceBody + """ + return self._source_instance + + @source_instance.setter + def source_instance(self, source_instance): + """Sets the source_instance of this SetOnlineMigrationTaskBody. + + + :param source_instance: The source_instance of this SetOnlineMigrationTaskBody. + :type: ConfigMigrationInstanceBody + """ + self._source_instance = source_instance + + @property + def target_instance(self): + """Gets the target_instance of this SetOnlineMigrationTaskBody. + + + :return: The target_instance of this SetOnlineMigrationTaskBody. + :rtype: ConfigMigrationInstanceBody + """ + return self._target_instance + + @target_instance.setter + def target_instance(self, target_instance): + """Sets the target_instance of this SetOnlineMigrationTaskBody. + + + :param target_instance: The target_instance of this SetOnlineMigrationTaskBody. + :type: ConfigMigrationInstanceBody + """ + self._target_instance = target_instance + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetOnlineMigrationTaskBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_request.py new file mode 100644 index 000000000..77708bb47 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_request.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetOnlineMigrationTaskRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'task_id': 'str', + 'body': 'SetOnlineMigrationTaskBody' + } + + attribute_map = { + 'task_id': 'task_id', + 'body': 'body' + } + + def __init__(self, task_id=None, body=None): + """SetOnlineMigrationTaskRequest - a model defined in huaweicloud sdk""" + + + + self._task_id = None + self._body = None + self.discriminator = None + + self.task_id = task_id + if body is not None: + self.body = body + + @property + def task_id(self): + """Gets the task_id of this SetOnlineMigrationTaskRequest. + + 在线迁移任务ID。 + + :return: The task_id of this SetOnlineMigrationTaskRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this SetOnlineMigrationTaskRequest. + + 在线迁移任务ID。 + + :param task_id: The task_id of this SetOnlineMigrationTaskRequest. + :type: str + """ + self._task_id = task_id + + @property + def body(self): + """Gets the body of this SetOnlineMigrationTaskRequest. + + + :return: The body of this SetOnlineMigrationTaskRequest. + :rtype: SetOnlineMigrationTaskBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetOnlineMigrationTaskRequest. + + + :param body: The body of this SetOnlineMigrationTaskRequest. + :type: SetOnlineMigrationTaskBody + """ + 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, SetOnlineMigrationTaskRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_response.py new file mode 100644 index 000000000..b5998e812 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/set_online_migration_task_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetOnlineMigrationTaskResponse(SdkResponse): + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str', + 'status': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status' + } + + def __init__(self, id=None, name=None, status=None): + """SetOnlineMigrationTaskResponse - a model defined in huaweicloud sdk""" + + super(SetOnlineMigrationTaskResponse, self).__init__() + + self._id = None + self._name = None + self._status = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if status is not None: + self.status = status + + @property + def id(self): + """Gets the id of this SetOnlineMigrationTaskResponse. + + 迁移任务ID。 + + :return: The id of this SetOnlineMigrationTaskResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SetOnlineMigrationTaskResponse. + + 迁移任务ID。 + + :param id: The id of this SetOnlineMigrationTaskResponse. + :type: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this SetOnlineMigrationTaskResponse. + + 迁移任务名称。 + + :return: The name of this SetOnlineMigrationTaskResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SetOnlineMigrationTaskResponse. + + 迁移任务名称。 + + :param name: The name of this SetOnlineMigrationTaskResponse. + :type: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this SetOnlineMigrationTaskResponse. + + 迁移任务状态,这个字段的值包括:SUCCESS, FAILED, MIGRATING,TERMINATED + + :return: The status of this SetOnlineMigrationTaskResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this SetOnlineMigrationTaskResponse. + + 迁移任务状态,这个字段的值包括:SUCCESS, FAILED, MIGRATING,TERMINATED + + :param status: The status of this SetOnlineMigrationTaskResponse. + :type: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetOnlineMigrationTaskResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py new file mode 100644 index 000000000..376766159 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopMigrationTaskResult: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'result': 'str', + 'task_id': 'str' + } + + attribute_map = { + 'result': 'result', + 'task_id': 'task_id' + } + + def __init__(self, result=None, task_id=None): + """StopMigrationTaskResult - a model defined in huaweicloud sdk""" + + + + self._result = None + self._task_id = None + self.discriminator = None + + if result is not None: + self.result = result + if task_id is not None: + self.task_id = task_id + + @property + def result(self): + """Gets the result of this StopMigrationTaskResult. + + 下发停止迁移任务操作结果。 + + :return: The result of this StopMigrationTaskResult. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this StopMigrationTaskResult. + + 下发停止迁移任务操作结果。 + + :param result: The result of this StopMigrationTaskResult. + :type: str + """ + self._result = result + + @property + def task_id(self): + """Gets the task_id of this StopMigrationTaskResult. + + 数据迁移任务ID。 + + :return: The task_id of this StopMigrationTaskResult. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this StopMigrationTaskResult. + + 数据迁移任务ID。 + + :param task_id: The task_id of this StopMigrationTaskResult. + :type: str + """ + self._task_id = task_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopMigrationTaskResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_request.py new file mode 100644 index 000000000..39ff53f11 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_request.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopMigrationTaskSyncRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'task_id': 'str' + } + + attribute_map = { + 'task_id': 'task_id' + } + + def __init__(self, task_id=None): + """StopMigrationTaskSyncRequest - a model defined in huaweicloud sdk""" + + + + self._task_id = None + self.discriminator = None + + self.task_id = task_id + + @property + def task_id(self): + """Gets the task_id of this StopMigrationTaskSyncRequest. + + 任务ID + + :return: The task_id of this StopMigrationTaskSyncRequest. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this StopMigrationTaskSyncRequest. + + 任务ID + + :param task_id: The task_id of this StopMigrationTaskSyncRequest. + :type: str + """ + self._task_id = task_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopMigrationTaskSyncRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_response.py new file mode 100644 index 000000000..ecc635948 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_sync_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopMigrationTaskSyncResponse(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): + """StopMigrationTaskSyncResponse - a model defined in huaweicloud sdk""" + + super(StopMigrationTaskSyncResponse, 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, StopMigrationTaskSyncResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 7b6bc750f..3a91e8d68 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index 5af8c2656..671f53075 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index be5e6c06b..0c039dbb7 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 0c159dd03..17a7b4163 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_async_client.py b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_async_client.py index 072bd08d8..7a423b042 100644 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_async_client.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_async_client.py @@ -205,7 +205,7 @@ class DevStarAsyncClient(Client): :return: ShowApplicationDependentResourcesResponse """ - all_params = ['application_id', 'x_language'] + all_params = ['application_id', 'x_language', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -218,6 +218,10 @@ class DevStarAsyncClient(Client): path_params['application_id'] = local_var_params['application_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'x_language' in local_var_params: @@ -1271,7 +1275,7 @@ class DevStarAsyncClient(Client): def show_repository_by_cloud_ide_async(self, request): """使用 CloudIDE 实例打开应用代码 - 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限 + 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE,使用要求: - 用户需为登录状态。 - 拥有仓库权限。 :param ShowRepositoryByCloudIdeRequest request :return: ShowRepositoryByCloudIdeResponse @@ -1281,7 +1285,7 @@ class DevStarAsyncClient(Client): def show_repository_by_cloud_ide_with_http_info(self, request): """使用 CloudIDE 实例打开应用代码 - 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限 + 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE,使用要求: - 用户需为登录状态。 - 拥有仓库权限。 :param ShowRepositoryByCloudIdeRequest request :return: ShowRepositoryByCloudIdeResponse @@ -1545,7 +1549,7 @@ class DevStarAsyncClient(Client): def list_published_templates_async(self, request): """查询模板列表(V1) - 查询模板列表,推荐使用V2版本接口。 + 查询模板列表,推荐使用/v1/templates/query接口。 :param ListPublishedTemplatesRequest request :return: ListPublishedTemplatesResponse @@ -1555,7 +1559,7 @@ class DevStarAsyncClient(Client): def list_published_templates_with_http_info(self, request): """查询模板列表(V1) - 查询模板列表,推荐使用V2版本接口。 + 查询模板列表,推荐使用/v1/templates/query接口。 :param ListPublishedTemplatesRequest request :return: ListPublishedTemplatesResponse diff --git a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_client.py b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_client.py index b5428fa10..2b9354059 100644 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_client.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/devstar_client.py @@ -205,7 +205,7 @@ class DevStarClient(Client): :return: ShowApplicationDependentResourcesResponse """ - all_params = ['application_id', 'x_language'] + all_params = ['application_id', 'x_language', 'limit', 'offset'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -218,6 +218,10 @@ class DevStarClient(Client): path_params['application_id'] = local_var_params['application_id'] query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'x_language' in local_var_params: @@ -1271,7 +1275,7 @@ class DevStarClient(Client): def show_repository_by_cloud_ide(self, request): """使用 CloudIDE 实例打开应用代码 - 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限 + 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE,使用要求: - 用户需为登录状态。 - 拥有仓库权限。 :param ShowRepositoryByCloudIdeRequest request :return: ShowRepositoryByCloudIdeResponse @@ -1281,7 +1285,7 @@ class DevStarClient(Client): def show_repository_by_cloud_ide_with_http_info(self, request): """使用 CloudIDE 实例打开应用代码 - 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE 使用要求:1.用户需为登录状态; 2.拥有仓库权限 + 使用 CloudIDE 实例打开应用代码。CloudIDE会保存用户项目数据,相同用户使用同一个CloudIDE,使用要求: - 用户需为登录状态。 - 拥有仓库权限。 :param ShowRepositoryByCloudIdeRequest request :return: ShowRepositoryByCloudIdeResponse @@ -1545,7 +1549,7 @@ class DevStarClient(Client): def list_published_templates(self, request): """查询模板列表(V1) - 查询模板列表,推荐使用V2版本接口。 + 查询模板列表,推荐使用/v1/templates/query接口。 :param ListPublishedTemplatesRequest request :return: ListPublishedTemplatesResponse @@ -1555,7 +1559,7 @@ class DevStarClient(Client): def list_published_templates_with_http_info(self, request): """查询模板列表(V1) - 查询模板列表,推荐使用V2版本接口。 + 查询模板列表,推荐使用/v1/templates/query接口。 :param ListPublishedTemplatesRequest request :return: ListPublishedTemplatesResponse diff --git a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_request.py b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_request.py index d3ce29d82..70999c709 100644 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_request.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_request.py @@ -23,26 +23,36 @@ class ShowApplicationDependentResourcesRequest: openapi_types = { 'x_language': 'str', - 'application_id': 'str' + 'application_id': 'str', + 'limit': 'int', + 'offset': 'int' } attribute_map = { 'x_language': 'X-Language', - 'application_id': 'application_id' + 'application_id': 'application_id', + 'limit': 'limit', + 'offset': 'offset' } - def __init__(self, x_language=None, application_id=None): + def __init__(self, x_language=None, application_id=None, limit=None, offset=None): """ShowApplicationDependentResourcesRequest - a model defined in huaweicloud sdk""" self._x_language = None self._application_id = None + self._limit = None + self._offset = None self.discriminator = None if x_language is not None: self.x_language = x_language self.application_id = application_id + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset @property def x_language(self): @@ -88,6 +98,50 @@ class ShowApplicationDependentResourcesRequest: """ self._application_id = application_id + @property + def limit(self): + """Gets the limit of this ShowApplicationDependentResourcesRequest. + + 每页显示的条目数量 + + :return: The limit of this ShowApplicationDependentResourcesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowApplicationDependentResourcesRequest. + + 每页显示的条目数量 + + :param limit: The limit of this ShowApplicationDependentResourcesRequest. + :type: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ShowApplicationDependentResourcesRequest. + + 偏移量,表示从此偏移量开始查询 + + :return: The offset of this ShowApplicationDependentResourcesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowApplicationDependentResourcesRequest. + + 偏移量,表示从此偏移量开始查询 + + :param offset: The offset of this ShowApplicationDependentResourcesRequest. + :type: int + """ + self._offset = offset + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_response.py b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_response.py index f084b2912..0583466f1 100644 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_response.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_application_dependent_resources_response.py @@ -22,23 +22,28 @@ class ShowApplicationDependentResourcesResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'dependent_services': 'list[ResouceInfo]' + 'dependent_services': 'list[ResouceInfo]', + 'count': 'int' } attribute_map = { - 'dependent_services': 'dependent_services' + 'dependent_services': 'dependent_services', + 'count': 'count' } - def __init__(self, dependent_services=None): + def __init__(self, dependent_services=None, count=None): """ShowApplicationDependentResourcesResponse - a model defined in huaweicloud sdk""" super(ShowApplicationDependentResourcesResponse, self).__init__() self._dependent_services = None + self._count = None self.discriminator = None if dependent_services is not None: self.dependent_services = dependent_services + if count is not None: + self.count = count @property def dependent_services(self): @@ -62,6 +67,28 @@ class ShowApplicationDependentResourcesResponse(SdkResponse): """ self._dependent_services = dependent_services + @property + def count(self): + """Gets the count of this ShowApplicationDependentResourcesResponse. + + 资源总个数 + + :return: The count of this ShowApplicationDependentResourcesResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowApplicationDependentResourcesResponse. + + 资源总个数 + + :param count: The count of this ShowApplicationDependentResourcesResponse. + :type: int + """ + self._count = count + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_repository_by_cloud_ide_request.py b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_repository_by_cloud_ide_request.py index 3095c7208..936e39ed3 100644 --- a/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_repository_by_cloud_ide_request.py +++ b/huaweicloud-sdk-devstar/huaweicloudsdkdevstar/v1/model/show_repository_by_cloud_ide_request.py @@ -94,7 +94,7 @@ class ShowRepositoryByCloudIdeRequest: def repository_id(self): """Gets the repository_id of this ShowRepositoryByCloudIdeRequest. - 仓库id + 仓库id。 :return: The repository_id of this ShowRepositoryByCloudIdeRequest. :rtype: str @@ -105,7 +105,7 @@ class ShowRepositoryByCloudIdeRequest: def repository_id(self, repository_id): """Sets the repository_id of this ShowRepositoryByCloudIdeRequest. - 仓库id + 仓库id。 :param repository_id: The repository_id of this ShowRepositoryByCloudIdeRequest. :type: str @@ -116,7 +116,7 @@ class ShowRepositoryByCloudIdeRequest: def repository_ssh_url(self): """Gets the repository_ssh_url of this ShowRepositoryByCloudIdeRequest. - 仓库下载地址 + 仓库下载地址。 :return: The repository_ssh_url of this ShowRepositoryByCloudIdeRequest. :rtype: str @@ -127,7 +127,7 @@ class ShowRepositoryByCloudIdeRequest: def repository_ssh_url(self, repository_ssh_url): """Sets the repository_ssh_url of this ShowRepositoryByCloudIdeRequest. - 仓库下载地址 + 仓库下载地址。 :param repository_ssh_url: The repository_ssh_url of this ShowRepositoryByCloudIdeRequest. :type: str @@ -138,7 +138,7 @@ class ShowRepositoryByCloudIdeRequest: def region_id(self): """Gets the region_id of this ShowRepositoryByCloudIdeRequest. - 区域ID + 区域ID,目前仅支持北京四:cn-north-4及北京一:cn-north-1。 :return: The region_id of this ShowRepositoryByCloudIdeRequest. :rtype: str @@ -149,7 +149,7 @@ class ShowRepositoryByCloudIdeRequest: def region_id(self, region_id): """Sets the region_id of this ShowRepositoryByCloudIdeRequest. - 区域ID + 区域ID,目前仅支持北京四:cn-north-4及北京一:cn-north-1。 :param region_id: The region_id of this ShowRepositoryByCloudIdeRequest. :type: str @@ -160,7 +160,7 @@ class ShowRepositoryByCloudIdeRequest: def space_prefix(self): """Gets the space_prefix of this ShowRepositoryByCloudIdeRequest. - 工作空间名称前缀 + 工作空间名称前缀,仅在is_open_last为false时生效,由用户自定义,支持大小写字母、中文、_、-,长度1-256。 :return: The space_prefix of this ShowRepositoryByCloudIdeRequest. :rtype: str @@ -171,7 +171,7 @@ class ShowRepositoryByCloudIdeRequest: def space_prefix(self, space_prefix): """Sets the space_prefix of this ShowRepositoryByCloudIdeRequest. - 工作空间名称前缀 + 工作空间名称前缀,仅在is_open_last为false时生效,由用户自定义,支持大小写字母、中文、_、-,长度1-256。 :param space_prefix: The space_prefix of this ShowRepositoryByCloudIdeRequest. :type: str @@ -182,7 +182,7 @@ class ShowRepositoryByCloudIdeRequest: def is_open_last(self): """Gets the is_open_last of this ShowRepositoryByCloudIdeRequest. - 是否打开上一次的工作空间 + 是否打开上一次的工作空间,true表示打开上一次工作空间,如果没有上一次工作空间会返回空,false代表打开一个全新的工作空间。 :return: The is_open_last of this ShowRepositoryByCloudIdeRequest. :rtype: bool @@ -193,7 +193,7 @@ class ShowRepositoryByCloudIdeRequest: def is_open_last(self, is_open_last): """Sets the is_open_last of this ShowRepositoryByCloudIdeRequest. - 是否打开上一次的工作空间 + 是否打开上一次的工作空间,true表示打开上一次工作空间,如果没有上一次工作空间会返回空,false代表打开一个全新的工作空间。 :param is_open_last: The is_open_last of this ShowRepositoryByCloudIdeRequest. :type: bool @@ -204,7 +204,7 @@ class ShowRepositoryByCloudIdeRequest: def is_free(self): """Gets the is_free of this ShowRepositoryByCloudIdeRequest. - 是否创建免费实例链接 + 是否创建 CloudIDE 免费实例链接,true表示创建一个 CloudIDE 免费实例链接,false表示创建一个 CloudIDE 收费实例链接。 :return: The is_free of this ShowRepositoryByCloudIdeRequest. :rtype: bool @@ -215,7 +215,7 @@ class ShowRepositoryByCloudIdeRequest: def is_free(self, is_free): """Sets the is_free of this ShowRepositoryByCloudIdeRequest. - 是否创建免费实例链接 + 是否创建 CloudIDE 免费实例链接,true表示创建一个 CloudIDE 免费实例链接,false表示创建一个 CloudIDE 收费实例链接。 :param is_free: The is_free of this ShowRepositoryByCloudIdeRequest. :type: bool diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 9fc1dd381..47eecbf34 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 3fb20b340..2c8d56b73 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dms/setup.py b/huaweicloud-sdk-dms/setup.py index 40a29390b..d22e44973 100644 --- a/huaweicloud-sdk-dms/setup.py +++ b/huaweicloud-sdk-dms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 39a3d0bd2..7965163c6 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 65ab9628c..20e08b25a 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 950ea7a24..c40ab63b1 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 9c411806a..d96319cb7 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 9051a5c97..d043e461f 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index be90e27ef..1586e1294 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 5b91bca6b..d013feb97 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 65c29bc4e..f835671e3 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 456310ddf..b48513831 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index f93b30e4d..a9b50998b 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_request_body.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_request_body.py index d32190a65..fad387a42 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_request_body.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_request_body.py @@ -166,7 +166,7 @@ class CreateFunctionRequestBody: def runtime(self): """Gets the runtime of this CreateFunctionRequestBody. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this CreateFunctionRequestBody. :rtype: str @@ -177,7 +177,7 @@ class CreateFunctionRequestBody: def runtime(self, runtime): """Sets the runtime of this CreateFunctionRequestBody. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this CreateFunctionRequestBody. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py index 27bb8151c..bd2615b57 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py @@ -331,7 +331,7 @@ class CreateFunctionResponse(SdkResponse): def runtime(self): """Gets the runtime of this CreateFunctionResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this CreateFunctionResponse. :rtype: str @@ -342,7 +342,7 @@ class CreateFunctionResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this CreateFunctionResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this CreateFunctionResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_response.py index ac1748b40..edfee6c2c 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_version_response.py @@ -361,7 +361,7 @@ class CreateFunctionVersionResponse(SdkResponse): def runtime(self): """Gets the runtime of this CreateFunctionVersionResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this CreateFunctionVersionResponse. :rtype: str @@ -372,7 +372,7 @@ class CreateFunctionVersionResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this CreateFunctionVersionResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this CreateFunctionVersionResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/import_function_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/import_function_response.py index 71a64eec0..62ba921c4 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/import_function_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/import_function_response.py @@ -326,7 +326,7 @@ class ImportFunctionResponse(SdkResponse): def runtime(self): """Gets the runtime of this ImportFunctionResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this ImportFunctionResponse. :rtype: str @@ -337,7 +337,7 @@ class ImportFunctionResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this ImportFunctionResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this ImportFunctionResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_result.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_result.py index 22244c282..9c23af05b 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_result.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_result.py @@ -324,7 +324,7 @@ class ListFunctionResult: def runtime(self): """Gets the runtime of this ListFunctionResult. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this ListFunctionResult. :rtype: str @@ -335,7 +335,7 @@ class ListFunctionResult: def runtime(self, runtime): """Sets the runtime of this ListFunctionResult. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this ListFunctionResult. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_version_result.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_version_result.py index 986618520..c42e36586 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_version_result.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/list_function_version_result.py @@ -339,7 +339,7 @@ class ListFunctionVersionResult: def runtime(self): """Gets the runtime of this ListFunctionVersionResult. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this ListFunctionVersionResult. :rtype: str @@ -350,7 +350,7 @@ class ListFunctionVersionResult: def runtime(self, runtime): """Sets the runtime of this ListFunctionVersionResult. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this ListFunctionVersionResult. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_code_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_code_response.py index a569a6d71..c909454e0 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_code_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_code_response.py @@ -175,7 +175,7 @@ class ShowFunctionCodeResponse(SdkResponse): def runtime(self): """Gets the runtime of this ShowFunctionCodeResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this ShowFunctionCodeResponse. :rtype: str @@ -186,7 +186,7 @@ class ShowFunctionCodeResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this ShowFunctionCodeResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this ShowFunctionCodeResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_config_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_config_response.py index 54739c5f1..3ae2769c9 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_config_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/show_function_config_response.py @@ -356,7 +356,7 @@ class ShowFunctionConfigResponse(SdkResponse): def runtime(self): """Gets the runtime of this ShowFunctionConfigResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this ShowFunctionConfigResponse. :rtype: str @@ -367,7 +367,7 @@ class ShowFunctionConfigResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this ShowFunctionConfigResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this ShowFunctionConfigResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_code_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_code_response.py index d0d3a20c7..20b13ed20 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_code_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_code_response.py @@ -175,7 +175,7 @@ class UpdateFunctionCodeResponse(SdkResponse): def runtime(self): """Gets the runtime of this UpdateFunctionCodeResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this UpdateFunctionCodeResponse. :rtype: str @@ -186,7 +186,7 @@ class UpdateFunctionCodeResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this UpdateFunctionCodeResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this UpdateFunctionCodeResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_request_body.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_request_body.py index 2606004e4..1bdf16661 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_request_body.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_request_body.py @@ -141,7 +141,7 @@ class UpdateFunctionConfigRequestBody: def runtime(self): """Gets the runtime of this UpdateFunctionConfigRequestBody. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this UpdateFunctionConfigRequestBody. :rtype: str @@ -152,7 +152,7 @@ class UpdateFunctionConfigRequestBody: def runtime(self, runtime): """Sets the runtime of this UpdateFunctionConfigRequestBody. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this UpdateFunctionConfigRequestBody. :type: str diff --git a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_response.py b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_response.py index 42084b2c4..ca22a2725 100644 --- a/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_response.py +++ b/huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/update_function_config_response.py @@ -356,7 +356,7 @@ class UpdateFunctionConfigResponse(SdkResponse): def runtime(self): """Gets the runtime of this UpdateFunctionConfigResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :return: The runtime of this UpdateFunctionConfigResponse. :rtype: str @@ -367,7 +367,7 @@ class UpdateFunctionConfigResponse(SdkResponse): def runtime(self, runtime): """Sets the runtime of this UpdateFunctionConfigResponse. - FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 + FunctionGraph函数的执行环境 支持Node.js6.10、Python2.7、Python3.6、Java8、Go1.8、Node.js 8.10、C#.NET Core 2.0、C#.NET Core 2.1、PHP7.3。 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 :param runtime: The runtime of this UpdateFunctionConfigResponse. :type: str diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 96ecf39ea..ae62d4f9c 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/create_gauss_my_sql_backup_response.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/create_gauss_my_sql_backup_response.py index 04a3e02d0..29b2455a9 100644 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/create_gauss_my_sql_backup_response.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/create_gauss_my_sql_backup_response.py @@ -22,23 +22,28 @@ class CreateGaussMySqlBackupResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'backup': 'Backup' + 'backup': 'Backup', + 'job_id': 'str' } attribute_map = { - 'backup': 'backup' + 'backup': 'backup', + 'job_id': 'job_id' } - def __init__(self, backup=None): + def __init__(self, backup=None, job_id=None): """CreateGaussMySqlBackupResponse - a model defined in huaweicloud sdk""" super(CreateGaussMySqlBackupResponse, self).__init__() self._backup = None + self._job_id = None self.discriminator = None if backup is not None: self.backup = backup + if job_id is not None: + self.job_id = job_id @property def backup(self): @@ -60,6 +65,28 @@ class CreateGaussMySqlBackupResponse(SdkResponse): """ self._backup = backup + @property + def job_id(self): + """Gets the job_id of this CreateGaussMySqlBackupResponse. + + 任务ID。 + + :return: The job_id of this CreateGaussMySqlBackupResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateGaussMySqlBackupResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateGaussMySqlBackupResponse. + :type: str + """ + self._job_id = job_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/mysql_instance_info_detail.py b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/mysql_instance_info_detail.py index b158102ab..8158d41d7 100644 --- a/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/mysql_instance_info_detail.py +++ b/huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/mysql_instance_info_detail.py @@ -27,6 +27,7 @@ class MysqlInstanceInfoDetail: 'project_id': 'str', 'status': 'str', 'port': 'str', + 'alias': 'str', 'type': 'str', 'node_count': 'int', 'datastore': 'MysqlDatastore', @@ -57,6 +58,7 @@ class MysqlInstanceInfoDetail: 'project_id': 'project_id', 'status': 'status', 'port': 'port', + 'alias': 'alias', 'type': 'type', 'node_count': 'node_count', 'datastore': 'datastore', @@ -81,7 +83,7 @@ class MysqlInstanceInfoDetail: 'dedicated_resource_id': 'dedicated_resource_id' } - def __init__(self, id=None, name=None, project_id=None, status=None, port=None, type=None, node_count=None, datastore=None, backup_used_space=None, created=None, updated=None, private_write_ips=None, public_ips=None, db_user_name=None, vpc_id=None, subnet_id=None, security_group_id=None, configuration_id=None, backup_strategy=None, nodes=None, enterprise_project_id=None, time_zone=None, az_mode=None, master_az_code=None, maintenance_window=None, tags=None, dedicated_resource_id=None): + def __init__(self, id=None, name=None, project_id=None, status=None, port=None, alias=None, type=None, node_count=None, datastore=None, backup_used_space=None, created=None, updated=None, private_write_ips=None, public_ips=None, db_user_name=None, vpc_id=None, subnet_id=None, security_group_id=None, configuration_id=None, backup_strategy=None, nodes=None, enterprise_project_id=None, time_zone=None, az_mode=None, master_az_code=None, maintenance_window=None, tags=None, dedicated_resource_id=None): """MysqlInstanceInfoDetail - a model defined in huaweicloud sdk""" @@ -91,6 +93,7 @@ class MysqlInstanceInfoDetail: self._project_id = None self._status = None self._port = None + self._alias = None self._type = None self._node_count = None self._datastore = None @@ -122,6 +125,8 @@ class MysqlInstanceInfoDetail: self.status = status if port is not None: self.port = port + if alias is not None: + self.alias = alias if type is not None: self.type = type if node_count is not None: @@ -277,6 +282,28 @@ class MysqlInstanceInfoDetail: """ self._port = port + @property + def alias(self): + """Gets the alias of this MysqlInstanceInfoDetail. + + 实例备注 + + :return: The alias of this MysqlInstanceInfoDetail. + :rtype: str + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this MysqlInstanceInfoDetail. + + 实例备注 + + :param alias: The alias of this MysqlInstanceInfoDetail. + :type: str + """ + self._alias = alias + @property def type(self): """Gets the type of this MysqlInstanceInfoDetail. diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index 0b912d548..26e8dbb5a 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_result.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_result.py index d3db1ebfa..cc7ee238a 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_result.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_result.py @@ -25,7 +25,7 @@ class ListInstancesResult: 'id': 'str', 'name': 'str', 'status': 'str', - 'port': 'int', + 'port': 'str', 'mode': 'str', 'region': 'str', 'datastore': 'ListInstancesDatastoreResult', @@ -202,7 +202,7 @@ class ListInstancesResult: 数据库端口。 :return: The port of this ListInstancesResult. - :rtype: int + :rtype: str """ return self._port @@ -213,7 +213,7 @@ class ListInstancesResult: 数据库端口。 :param port: The port of this ListInstancesResult. - :type: int + :type: str """ self._port = port diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index acb25922e..ffdc2957b 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 44d0c958f..a1fbf279d 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index d7cef6b35..0bd73a6bf 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 793280711..12bec3b3b 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index d995ffa68..8e6da5c91 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 5f01fa4e7..a86bf19cc 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index a581ef364..0b50a7440 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index ff53e443d..a28fd2684 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index bf6a81d3d..16ec1972c 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 2d07946a3..20dfd9493 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index e2e7d0021..a2d9ef369 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index c0967ff5d..23185ef4d 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 7156f5268..aac405af2 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 979c728d6..9db589c84 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 835ad0cad..39d49a8fc 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index ab82e8a59..2bd760268 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 7d5f0c94a..a6947ac9b 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_async_client.py b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_async_client.py index c97fb7601..ea15d2b7d 100644 --- a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_async_client.py +++ b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_async_client.py @@ -1254,7 +1254,7 @@ class KmsAsyncClient(Client): def enable_key_rotation_async(self, request): """开启密钥轮换 - - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮询间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 + - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮换间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 :param EnableKeyRotationRequest request :return: EnableKeyRotationResponse @@ -1264,7 +1264,7 @@ class KmsAsyncClient(Client): def enable_key_rotation_with_http_info(self, request): """开启密钥轮换 - - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮询间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 + - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮换间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 :param EnableKeyRotationRequest request :return: EnableKeyRotationResponse @@ -2447,7 +2447,7 @@ class KmsAsyncClient(Client): def validate_signature_async(self, request): """验证签名 - - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行数字签名。 + - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行签名验证。 :param ValidateSignatureRequest request :return: ValidateSignatureResponse @@ -2457,7 +2457,7 @@ class KmsAsyncClient(Client): def validate_signature_with_http_info(self, request): """验证签名 - - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行数字签名。 + - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行签名验证。 :param ValidateSignatureRequest request :return: ValidateSignatureResponse diff --git a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_client.py b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_client.py index 2bf4e8d24..e2b61b6e4 100644 --- a/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_client.py +++ b/huaweicloud-sdk-kms/huaweicloudsdkkms/v2/kms_client.py @@ -1254,7 +1254,7 @@ class KmsClient(Client): def enable_key_rotation(self, request): """开启密钥轮换 - - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮询间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 + - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮换间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 :param EnableKeyRotationRequest request :return: EnableKeyRotationResponse @@ -1264,7 +1264,7 @@ class KmsClient(Client): def enable_key_rotation_with_http_info(self, request): """开启密钥轮换 - - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮询间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 + - 功能介绍:开启用户主密钥轮换。 - 说明: - 开启密钥轮换后,默认轮换间隔时间为365天。 - 默认主密钥及外部导入密钥不支持轮换操作。 :param EnableKeyRotationRequest request :return: EnableKeyRotationResponse @@ -2447,7 +2447,7 @@ class KmsClient(Client): def validate_signature(self, request): """验证签名 - - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行数字签名。 + - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行签名验证。 :param ValidateSignatureRequest request :return: ValidateSignatureResponse @@ -2457,7 +2457,7 @@ class KmsClient(Client): def validate_signature_with_http_info(self, request): """验证签名 - - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行数字签名。 + - 功能介绍:使用非对称密钥的私钥对消息或消息摘要进行签名验证。 :param ValidateSignatureRequest request :return: ValidateSignatureResponse diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 294deb391..bdf5a4952 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 65f885960..e8c17ae08 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py index 72a4339de..1aa05201d 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/__init__.py @@ -53,7 +53,6 @@ from huaweicloudsdklive.v1.model.live_domain_modify_req import LiveDomainModifyR from huaweicloudsdklive.v1.model.log_info import LogInfo from huaweicloudsdklive.v1.model.mp4_record_config import MP4RecordConfig from huaweicloudsdklive.v1.model.online_info import OnlineInfo -from huaweicloudsdklive.v1.model.plan_record_time import PlanRecordTime from huaweicloudsdklive.v1.model.quality_info import QualityInfo from huaweicloudsdklive.v1.model.record_callback_config import RecordCallbackConfig from huaweicloudsdklive.v1.model.record_callback_config_request import RecordCallbackConfigRequest diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py index 6df53527b..e4998fef6 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/__init__.py @@ -50,7 +50,6 @@ from huaweicloudsdklive.v1.model.live_domain_modify_req import LiveDomainModifyR from huaweicloudsdklive.v1.model.log_info import LogInfo from huaweicloudsdklive.v1.model.mp4_record_config import MP4RecordConfig from huaweicloudsdklive.v1.model.online_info import OnlineInfo -from huaweicloudsdklive.v1.model.plan_record_time import PlanRecordTime from huaweicloudsdklive.v1.model.quality_info import QualityInfo from huaweicloudsdklive.v1.model.record_callback_config import RecordCallbackConfig from huaweicloudsdklive.v1.model.record_callback_config_request import RecordCallbackConfigRequest diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_record_rule_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_record_rule_response.py index c826f9215..883ee3216 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_record_rule_response.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/create_record_rule_response.py @@ -27,7 +27,6 @@ class CreateRecordRuleResponse(SdkResponse): 'app': 'str', 'stream': 'str', 'record_type': 'str', - 'plan_record_time': 'PlanRecordTime', 'default_record_config': 'DefaultRecordConfig', 'create_time': 'date', 'update_time': 'date' @@ -39,13 +38,12 @@ class CreateRecordRuleResponse(SdkResponse): 'app': 'app', 'stream': 'stream', 'record_type': 'record_type', - 'plan_record_time': 'plan_record_time', 'default_record_config': 'default_record_config', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, plan_record_time=None, default_record_config=None, create_time=None, update_time=None): + def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, default_record_config=None, create_time=None, update_time=None): """CreateRecordRuleResponse - a model defined in huaweicloud sdk""" super(CreateRecordRuleResponse, self).__init__() @@ -55,7 +53,6 @@ class CreateRecordRuleResponse(SdkResponse): self._app = None self._stream = None self._record_type = None - self._plan_record_time = None self._default_record_config = None self._create_time = None self._update_time = None @@ -71,8 +68,6 @@ class CreateRecordRuleResponse(SdkResponse): self.stream = stream if record_type is not None: self.record_type = record_type - if plan_record_time is not None: - self.plan_record_time = plan_record_time if default_record_config is not None: self.default_record_config = default_record_config if create_time is not None: @@ -190,26 +185,6 @@ class CreateRecordRuleResponse(SdkResponse): """ self._record_type = record_type - @property - def plan_record_time(self): - """Gets the plan_record_time of this CreateRecordRuleResponse. - - - :return: The plan_record_time of this CreateRecordRuleResponse. - :rtype: PlanRecordTime - """ - return self._plan_record_time - - @plan_record_time.setter - def plan_record_time(self, plan_record_time): - """Sets the plan_record_time of this CreateRecordRuleResponse. - - - :param plan_record_time: The plan_record_time of this CreateRecordRuleResponse. - :type: PlanRecordTime - """ - self._plan_record_time = plan_record_time - @property def default_record_config(self): """Gets the default_record_config of this CreateRecordRuleResponse. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config.py index 1ccb5d0d8..ceb2a9871 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config.py @@ -27,7 +27,6 @@ class RecordCallbackConfig: 'app': 'str', 'notify_callback_url': 'str', 'notify_event_subscription': 'list[str]', - 'on_demand_callback_url': 'str', 'sign_type': 'str', 'create_time': 'date', 'update_time': 'date' @@ -39,13 +38,12 @@ class RecordCallbackConfig: 'app': 'app', 'notify_callback_url': 'notify_callback_url', 'notify_event_subscription': 'notify_event_subscription', - 'on_demand_callback_url': 'on_demand_callback_url', 'sign_type': 'sign_type', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, id=None, publish_domain=None, app=None, notify_callback_url=None, notify_event_subscription=None, on_demand_callback_url=None, sign_type=None, create_time=None, update_time=None): + def __init__(self, id=None, publish_domain=None, app=None, notify_callback_url=None, notify_event_subscription=None, sign_type=None, create_time=None, update_time=None): """RecordCallbackConfig - a model defined in huaweicloud sdk""" @@ -55,7 +53,6 @@ class RecordCallbackConfig: self._app = None self._notify_callback_url = None self._notify_event_subscription = None - self._on_demand_callback_url = None self._sign_type = None self._create_time = None self._update_time = None @@ -69,8 +66,6 @@ class RecordCallbackConfig: self.notify_callback_url = notify_callback_url if notify_event_subscription is not None: self.notify_event_subscription = notify_event_subscription - if on_demand_callback_url is not None: - self.on_demand_callback_url = on_demand_callback_url if sign_type is not None: self.sign_type = sign_type if create_time is not None: @@ -188,28 +183,6 @@ class RecordCallbackConfig: """ self._notify_event_subscription = notify_event_subscription - @property - def on_demand_callback_url(self): - """Gets the on_demand_callback_url of this RecordCallbackConfig. - - 按需录制回调url地址 - - :return: The on_demand_callback_url of this RecordCallbackConfig. - :rtype: str - """ - return self._on_demand_callback_url - - @on_demand_callback_url.setter - def on_demand_callback_url(self, on_demand_callback_url): - """Sets the on_demand_callback_url of this RecordCallbackConfig. - - 按需录制回调url地址 - - :param on_demand_callback_url: The on_demand_callback_url of this RecordCallbackConfig. - :type: str - """ - self._on_demand_callback_url = on_demand_callback_url - @property def sign_type(self): """Gets the sign_type of this RecordCallbackConfig. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config_request.py index 9ee8acc9d..c8351a679 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_callback_config_request.py @@ -26,7 +26,6 @@ class RecordCallbackConfigRequest: 'app': 'str', 'notify_callback_url': 'str', 'notify_event_subscription': 'list[str]', - 'on_demand_callback_url': 'str', 'sign_type': 'str' } @@ -35,11 +34,10 @@ class RecordCallbackConfigRequest: 'app': 'app', 'notify_callback_url': 'notify_callback_url', 'notify_event_subscription': 'notify_event_subscription', - 'on_demand_callback_url': 'on_demand_callback_url', 'sign_type': 'sign_type' } - def __init__(self, publish_domain=None, app=None, notify_callback_url=None, notify_event_subscription=None, on_demand_callback_url=None, sign_type=None): + def __init__(self, publish_domain=None, app=None, notify_callback_url=None, notify_event_subscription=None, sign_type=None): """RecordCallbackConfigRequest - a model defined in huaweicloud sdk""" @@ -48,7 +46,6 @@ class RecordCallbackConfigRequest: self._app = None self._notify_callback_url = None self._notify_event_subscription = None - self._on_demand_callback_url = None self._sign_type = None self.discriminator = None @@ -58,8 +55,6 @@ class RecordCallbackConfigRequest: self.notify_callback_url = notify_callback_url if notify_event_subscription is not None: self.notify_event_subscription = notify_event_subscription - if on_demand_callback_url is not None: - self.on_demand_callback_url = on_demand_callback_url if sign_type is not None: self.sign_type = sign_type @@ -151,28 +146,6 @@ class RecordCallbackConfigRequest: """ self._notify_event_subscription = notify_event_subscription - @property - def on_demand_callback_url(self): - """Gets the on_demand_callback_url of this RecordCallbackConfigRequest. - - 按需录制回调url地址 - - :return: The on_demand_callback_url of this RecordCallbackConfigRequest. - :rtype: str - """ - return self._on_demand_callback_url - - @on_demand_callback_url.setter - def on_demand_callback_url(self, on_demand_callback_url): - """Sets the on_demand_callback_url of this RecordCallbackConfigRequest. - - 按需录制回调url地址 - - :param on_demand_callback_url: The on_demand_callback_url of this RecordCallbackConfigRequest. - :type: str - """ - self._on_demand_callback_url = on_demand_callback_url - @property def sign_type(self): """Gets the sign_type of this RecordCallbackConfigRequest. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule.py index 1f93f3396..e9b16a47a 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule.py @@ -27,7 +27,6 @@ class RecordRule: 'app': 'str', 'stream': 'str', 'record_type': 'str', - 'plan_record_time': 'PlanRecordTime', 'default_record_config': 'DefaultRecordConfig', 'create_time': 'date', 'update_time': 'date' @@ -39,13 +38,12 @@ class RecordRule: 'app': 'app', 'stream': 'stream', 'record_type': 'record_type', - 'plan_record_time': 'plan_record_time', 'default_record_config': 'default_record_config', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, plan_record_time=None, default_record_config=None, create_time=None, update_time=None): + def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, default_record_config=None, create_time=None, update_time=None): """RecordRule - a model defined in huaweicloud sdk""" @@ -55,7 +53,6 @@ class RecordRule: self._app = None self._stream = None self._record_type = None - self._plan_record_time = None self._default_record_config = None self._create_time = None self._update_time = None @@ -68,8 +65,6 @@ class RecordRule: self.stream = stream if record_type is not None: self.record_type = record_type - if plan_record_time is not None: - self.plan_record_time = plan_record_time if default_record_config is not None: self.default_record_config = default_record_config if create_time is not None: @@ -187,26 +182,6 @@ class RecordRule: """ self._record_type = record_type - @property - def plan_record_time(self): - """Gets the plan_record_time of this RecordRule. - - - :return: The plan_record_time of this RecordRule. - :rtype: PlanRecordTime - """ - return self._plan_record_time - - @plan_record_time.setter - def plan_record_time(self, plan_record_time): - """Sets the plan_record_time of this RecordRule. - - - :param plan_record_time: The plan_record_time of this RecordRule. - :type: PlanRecordTime - """ - self._plan_record_time = plan_record_time - @property def default_record_config(self): """Gets the default_record_config of this RecordRule. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule_request.py index 2ddfc4e7d..0e547bba7 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/record_rule_request.py @@ -26,7 +26,6 @@ class RecordRuleRequest: 'app': 'str', 'stream': 'str', 'record_type': 'str', - 'plan_record_time': 'PlanRecordTime', 'default_record_config': 'DefaultRecordConfig' } @@ -35,11 +34,10 @@ class RecordRuleRequest: 'app': 'app', 'stream': 'stream', 'record_type': 'record_type', - 'plan_record_time': 'plan_record_time', 'default_record_config': 'default_record_config' } - def __init__(self, publish_domain=None, app=None, stream=None, record_type=None, plan_record_time=None, default_record_config=None): + def __init__(self, publish_domain=None, app=None, stream=None, record_type=None, default_record_config=None): """RecordRuleRequest - a model defined in huaweicloud sdk""" @@ -48,7 +46,6 @@ class RecordRuleRequest: self._app = None self._stream = None self._record_type = None - self._plan_record_time = None self._default_record_config = None self.discriminator = None @@ -57,8 +54,6 @@ class RecordRuleRequest: self.stream = stream if record_type is not None: self.record_type = record_type - if plan_record_time is not None: - self.plan_record_time = plan_record_time self.default_record_config = default_record_config @property @@ -149,26 +144,6 @@ class RecordRuleRequest: """ self._record_type = record_type - @property - def plan_record_time(self): - """Gets the plan_record_time of this RecordRuleRequest. - - - :return: The plan_record_time of this RecordRuleRequest. - :rtype: PlanRecordTime - """ - return self._plan_record_time - - @plan_record_time.setter - def plan_record_time(self, plan_record_time): - """Sets the plan_record_time of this RecordRuleRequest. - - - :param plan_record_time: The plan_record_time of this RecordRuleRequest. - :type: PlanRecordTime - """ - self._plan_record_time = plan_record_time - @property def default_record_config(self): """Gets the default_record_config of this RecordRuleRequest. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_callback_config_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_callback_config_response.py index c2424bd91..438ddefcb 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_callback_config_response.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_callback_config_response.py @@ -27,7 +27,6 @@ class ShowRecordCallbackConfigResponse(SdkResponse): 'app': 'str', 'notify_callback_url': 'str', 'notify_event_subscription': 'list[str]', - 'on_demand_callback_url': 'str', 'sign_type': 'str', 'create_time': 'date', 'update_time': 'date' @@ -39,13 +38,12 @@ class ShowRecordCallbackConfigResponse(SdkResponse): 'app': 'app', 'notify_callback_url': 'notify_callback_url', 'notify_event_subscription': 'notify_event_subscription', - 'on_demand_callback_url': 'on_demand_callback_url', 'sign_type': 'sign_type', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, id=None, publish_domain=None, app=None, notify_callback_url=None, notify_event_subscription=None, on_demand_callback_url=None, sign_type=None, create_time=None, update_time=None): + def __init__(self, id=None, publish_domain=None, app=None, notify_callback_url=None, notify_event_subscription=None, sign_type=None, create_time=None, update_time=None): """ShowRecordCallbackConfigResponse - a model defined in huaweicloud sdk""" super(ShowRecordCallbackConfigResponse, self).__init__() @@ -55,7 +53,6 @@ class ShowRecordCallbackConfigResponse(SdkResponse): self._app = None self._notify_callback_url = None self._notify_event_subscription = None - self._on_demand_callback_url = None self._sign_type = None self._create_time = None self._update_time = None @@ -71,8 +68,6 @@ class ShowRecordCallbackConfigResponse(SdkResponse): self.notify_callback_url = notify_callback_url if notify_event_subscription is not None: self.notify_event_subscription = notify_event_subscription - if on_demand_callback_url is not None: - self.on_demand_callback_url = on_demand_callback_url if sign_type is not None: self.sign_type = sign_type if create_time is not None: @@ -190,28 +185,6 @@ class ShowRecordCallbackConfigResponse(SdkResponse): """ self._notify_event_subscription = notify_event_subscription - @property - def on_demand_callback_url(self): - """Gets the on_demand_callback_url of this ShowRecordCallbackConfigResponse. - - 按需录制回调url地址 - - :return: The on_demand_callback_url of this ShowRecordCallbackConfigResponse. - :rtype: str - """ - return self._on_demand_callback_url - - @on_demand_callback_url.setter - def on_demand_callback_url(self, on_demand_callback_url): - """Sets the on_demand_callback_url of this ShowRecordCallbackConfigResponse. - - 按需录制回调url地址 - - :param on_demand_callback_url: The on_demand_callback_url of this ShowRecordCallbackConfigResponse. - :type: str - """ - self._on_demand_callback_url = on_demand_callback_url - @property def sign_type(self): """Gets the sign_type of this ShowRecordCallbackConfigResponse. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_rule_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_rule_response.py index 0f3fa9c4d..dc1b064a2 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_rule_response.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/show_record_rule_response.py @@ -27,7 +27,6 @@ class ShowRecordRuleResponse(SdkResponse): 'app': 'str', 'stream': 'str', 'record_type': 'str', - 'plan_record_time': 'PlanRecordTime', 'default_record_config': 'DefaultRecordConfig', 'create_time': 'date', 'update_time': 'date' @@ -39,13 +38,12 @@ class ShowRecordRuleResponse(SdkResponse): 'app': 'app', 'stream': 'stream', 'record_type': 'record_type', - 'plan_record_time': 'plan_record_time', 'default_record_config': 'default_record_config', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, plan_record_time=None, default_record_config=None, create_time=None, update_time=None): + def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, default_record_config=None, create_time=None, update_time=None): """ShowRecordRuleResponse - a model defined in huaweicloud sdk""" super(ShowRecordRuleResponse, self).__init__() @@ -55,7 +53,6 @@ class ShowRecordRuleResponse(SdkResponse): self._app = None self._stream = None self._record_type = None - self._plan_record_time = None self._default_record_config = None self._create_time = None self._update_time = None @@ -71,8 +68,6 @@ class ShowRecordRuleResponse(SdkResponse): self.stream = stream if record_type is not None: self.record_type = record_type - if plan_record_time is not None: - self.plan_record_time = plan_record_time if default_record_config is not None: self.default_record_config = default_record_config if create_time is not None: @@ -190,26 +185,6 @@ class ShowRecordRuleResponse(SdkResponse): """ self._record_type = record_type - @property - def plan_record_time(self): - """Gets the plan_record_time of this ShowRecordRuleResponse. - - - :return: The plan_record_time of this ShowRecordRuleResponse. - :rtype: PlanRecordTime - """ - return self._plan_record_time - - @plan_record_time.setter - def plan_record_time(self, plan_record_time): - """Sets the plan_record_time of this ShowRecordRuleResponse. - - - :param plan_record_time: The plan_record_time of this ShowRecordRuleResponse. - :type: PlanRecordTime - """ - self._plan_record_time = plan_record_time - @property def default_record_config(self): """Gets the default_record_config of this ShowRecordRuleResponse. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_record_rule_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_record_rule_response.py index f1297b2e3..c655b9769 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_record_rule_response.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v1/model/update_record_rule_response.py @@ -27,7 +27,6 @@ class UpdateRecordRuleResponse(SdkResponse): 'app': 'str', 'stream': 'str', 'record_type': 'str', - 'plan_record_time': 'PlanRecordTime', 'default_record_config': 'DefaultRecordConfig', 'create_time': 'date', 'update_time': 'date' @@ -39,13 +38,12 @@ class UpdateRecordRuleResponse(SdkResponse): 'app': 'app', 'stream': 'stream', 'record_type': 'record_type', - 'plan_record_time': 'plan_record_time', 'default_record_config': 'default_record_config', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, plan_record_time=None, default_record_config=None, create_time=None, update_time=None): + def __init__(self, id=None, publish_domain=None, app=None, stream=None, record_type=None, default_record_config=None, create_time=None, update_time=None): """UpdateRecordRuleResponse - a model defined in huaweicloud sdk""" super(UpdateRecordRuleResponse, self).__init__() @@ -55,7 +53,6 @@ class UpdateRecordRuleResponse(SdkResponse): self._app = None self._stream = None self._record_type = None - self._plan_record_time = None self._default_record_config = None self._create_time = None self._update_time = None @@ -71,8 +68,6 @@ class UpdateRecordRuleResponse(SdkResponse): self.stream = stream if record_type is not None: self.record_type = record_type - if plan_record_time is not None: - self.plan_record_time = plan_record_time if default_record_config is not None: self.default_record_config = default_record_config if create_time is not None: @@ -190,26 +185,6 @@ class UpdateRecordRuleResponse(SdkResponse): """ self._record_type = record_type - @property - def plan_record_time(self): - """Gets the plan_record_time of this UpdateRecordRuleResponse. - - - :return: The plan_record_time of this UpdateRecordRuleResponse. - :rtype: PlanRecordTime - """ - return self._plan_record_time - - @plan_record_time.setter - def plan_record_time(self, plan_record_time): - """Sets the plan_record_time of this UpdateRecordRuleResponse. - - - :param plan_record_time: The plan_record_time of this UpdateRecordRuleResponse. - :type: PlanRecordTime - """ - self._plan_record_time = plan_record_time - @property def default_record_config(self): """Gets the default_record_config of this UpdateRecordRuleResponse. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/__init__.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/__init__.py index 8e0088a3f..41bc91420 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/__init__.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/__init__.py @@ -6,9 +6,13 @@ from __future__ import absolute_import from huaweicloudsdklive.v2.live_client import LiveClient from huaweicloudsdklive.v2.live_async_client import LiveAsyncClient # import models into sdk package +from huaweicloudsdklive.v2.model.area_detail import AreaDetail +from huaweicloudsdklive.v2.model.area_time_value import AreaTimeValue from huaweicloudsdklive.v2.model.history_stream_info import HistoryStreamInfo from huaweicloudsdklive.v2.model.http_code import HttpCode from huaweicloudsdklive.v2.model.http_code_summary import HttpCodeSummary +from huaweicloudsdklive.v2.model.list_area_detail_request import ListAreaDetailRequest +from huaweicloudsdklive.v2.model.list_area_detail_response import ListAreaDetailResponse from huaweicloudsdklive.v2.model.list_bandwidth_detail_request import ListBandwidthDetailRequest from huaweicloudsdklive.v2.model.list_bandwidth_detail_response import ListBandwidthDetailResponse from huaweicloudsdklive.v2.model.list_domain_bandwidth_peak_request import ListDomainBandwidthPeakRequest @@ -31,6 +35,8 @@ from huaweicloudsdklive.v2.model.list_snapshot_data_request import ListSnapshotD from huaweicloudsdklive.v2.model.list_snapshot_data_response import ListSnapshotDataResponse from huaweicloudsdklive.v2.model.list_transcode_data_request import ListTranscodeDataRequest from huaweicloudsdklive.v2.model.list_transcode_data_response import ListTranscodeDataResponse +from huaweicloudsdklive.v2.model.list_transcode_task_count_request import ListTranscodeTaskCountRequest +from huaweicloudsdklive.v2.model.list_transcode_task_count_response import ListTranscodeTaskCountResponse from huaweicloudsdklive.v2.model.list_users_of_stream_request import ListUsersOfStreamRequest from huaweicloudsdklive.v2.model.list_users_of_stream_response import ListUsersOfStreamResponse from huaweicloudsdklive.v2.model.peak_bandwidth_data import PeakBandwidthData @@ -44,10 +50,13 @@ from huaweicloudsdklive.v2.model.show_up_bandwidth_response import ShowUpBandwid from huaweicloudsdklive.v2.model.snapshot_data import SnapshotData from huaweicloudsdklive.v2.model.stream_count_data import StreamCountData from huaweicloudsdklive.v2.model.stream_portrait import StreamPortrait +from huaweicloudsdklive.v2.model.time_value import TimeValue from huaweicloudsdklive.v2.model.traffic_data import TrafficData from huaweicloudsdklive.v2.model.traffic_summary_data import TrafficSummaryData +from huaweicloudsdklive.v2.model.transcode_count_data import TranscodeCountData from huaweicloudsdklive.v2.model.transcode_data import TranscodeData from huaweicloudsdklive.v2.model.transcode_spec import TranscodeSpec +from huaweicloudsdklive.v2.model.transcode_spec_count import TranscodeSpecCount from huaweicloudsdklive.v2.model.transcode_summary import TranscodeSummary from huaweicloudsdklive.v2.model.v2_bandwidth_data import V2BandwidthData from huaweicloudsdklive.v2.model.v2_bitrate_info import V2BitrateInfo diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_async_client.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_async_client.py index 0f0ac1297..73bf4f00a 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_async_client.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_async_client.py @@ -48,6 +48,90 @@ class LiveAsyncClient(Client): return ClientBuilder(clazz) + def list_area_detail_async(self, request): + """查询直播各区域指标分布接口 + + 查询直播全球区域维度的详细数据接口。 最大查询跨度1天,最大查询周期90天。 支持查询当天,当前数据延时少于1分钟。 + + :param ListAreaDetailRequest request + :return: ListAreaDetailResponse + """ + return self.list_area_detail_with_http_info(request) + + def list_area_detail_with_http_info(self, request): + """查询直播各区域指标分布接口 + + 查询直播全球区域维度的详细数据接口。 最大查询跨度1天,最大查询周期90天。 支持查询当天,当前数据延时少于1分钟。 + + :param ListAreaDetailRequest request + :return: ListAreaDetailResponse + """ + + all_params = ['start_time', 'end_time', 'play_domains', 'area', 'metric', 'app', 'stream', 'interval', 'isp', 'protocol'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'play_domains' in local_var_params: + query_params.append(('play_domains', local_var_params['play_domains'])) + collection_formats['play_domains'] = 'csv' + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) + if 'interval' in local_var_params: + query_params.append(('interval', local_var_params['interval'])) + if 'isp' in local_var_params: + query_params.append(('isp', local_var_params['isp'])) + collection_formats['isp'] = 'csv' + if 'area' in local_var_params: + query_params.append(('area', local_var_params['area'])) + collection_formats['area'] = 'csv' + if 'metric' in local_var_params: + query_params.append(('metric', local_var_params['metric'])) + if 'protocol' in local_var_params: + query_params.append(('protocol', local_var_params['protocol'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id"] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/stats/area/detail', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAreaDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_bandwidth_detail_async(self, request): """查询播放带宽趋势接口 @@ -378,7 +462,7 @@ class LiveAsyncClient(Client): def list_history_streams_async(self, request): """查询历史推流列表接口 - 查询历史推流列表。 不能查询现推流。 最大查询跨度1天,最大查询周期1个月。 + 查询历史推流列表。 不能查询现推流。 最大查询跨度1天。 :param ListHistoryStreamsRequest request :return: ListHistoryStreamsResponse @@ -388,7 +472,7 @@ class LiveAsyncClient(Client): def list_history_streams_with_http_info(self, request): """查询历史推流列表接口 - 查询历史推流列表。 不能查询现推流。 最大查询跨度1天,最大查询周期1个月。 + 查询历史推流列表。 不能查询现推流。 最大查询跨度1天。 :param ListHistoryStreamsRequest request :return: ListHistoryStreamsResponse @@ -546,7 +630,7 @@ class LiveAsyncClient(Client): :return: ListRecordDataResponse """ - all_params = ['start_time', 'end_time'] + all_params = ['publish_domain', 'start_time', 'end_time'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -557,6 +641,8 @@ class LiveAsyncClient(Client): path_params = {} query_params = [] + if 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) if 'start_time' in local_var_params: query_params.append(('start_time', local_var_params['start_time'])) if 'end_time' in local_var_params: @@ -728,6 +814,75 @@ class LiveAsyncClient(Client): request_type=request.__class__.__name__) + def list_transcode_task_count_async(self, request): + """查询直播转码任务数接口 + + 查询5分钟粒度的各档位转码任务数。 仅支持查询视频转码任务数。 最大查询跨度7天,最大查询周期90天。 + + :param ListTranscodeTaskCountRequest request + :return: ListTranscodeTaskCountResponse + """ + return self.list_transcode_task_count_with_http_info(request) + + def list_transcode_task_count_with_http_info(self, request): + """查询直播转码任务数接口 + + 查询5分钟粒度的各档位转码任务数。 仅支持查询视频转码任务数。 最大查询跨度7天,最大查询周期90天。 + + :param ListTranscodeTaskCountRequest request + :return: ListTranscodeTaskCountResponse + """ + + all_params = ['publish_domain', 'app', 'start_time', 'end_time'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id"] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/stats/transcode/task-count', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTranscodeTaskCountResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_users_of_stream_async(self, request): """查询观众趋势接口 @@ -1030,7 +1185,7 @@ class LiveAsyncClient(Client): def list_single_stream_bitrate_async(self, request): """查询推流码率数据接口 - 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的码率数据列表粒度为1秒钟。 :param ListSingleStreamBitrateRequest request :return: ListSingleStreamBitrateResponse @@ -1040,7 +1195,7 @@ class LiveAsyncClient(Client): def list_single_stream_bitrate_with_http_info(self, request): """查询推流码率数据接口 - 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的码率数据列表粒度为1秒钟。 :param ListSingleStreamBitrateRequest request :return: ListSingleStreamBitrateResponse @@ -1101,7 +1256,7 @@ class LiveAsyncClient(Client): def list_single_stream_framerate_async(self, request): """查询推流帧率数据接口 - 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的帧率数据列表粒度为1秒钟。 :param ListSingleStreamFramerateRequest request :return: ListSingleStreamFramerateResponse @@ -1111,7 +1266,7 @@ class LiveAsyncClient(Client): def list_single_stream_framerate_with_http_info(self, request): """查询推流帧率数据接口 - 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的帧率数据列表粒度为1秒钟。 :param ListSingleStreamFramerateRequest request :return: ListSingleStreamFramerateResponse diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_client.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_client.py index 4867917b9..dc1b7fcf1 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_client.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/live_client.py @@ -48,6 +48,90 @@ class LiveClient(Client): return ClientBuilder(clazz) + def list_area_detail(self, request): + """查询直播各区域指标分布接口 + + 查询直播全球区域维度的详细数据接口。 最大查询跨度1天,最大查询周期90天。 支持查询当天,当前数据延时少于1分钟。 + + :param ListAreaDetailRequest request + :return: ListAreaDetailResponse + """ + return self.list_area_detail_with_http_info(request) + + def list_area_detail_with_http_info(self, request): + """查询直播各区域指标分布接口 + + 查询直播全球区域维度的详细数据接口。 最大查询跨度1天,最大查询周期90天。 支持查询当天,当前数据延时少于1分钟。 + + :param ListAreaDetailRequest request + :return: ListAreaDetailResponse + """ + + all_params = ['start_time', 'end_time', 'play_domains', 'area', 'metric', 'app', 'stream', 'interval', 'isp', 'protocol'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + if 'play_domains' in local_var_params: + query_params.append(('play_domains', local_var_params['play_domains'])) + collection_formats['play_domains'] = 'csv' + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'stream' in local_var_params: + query_params.append(('stream', local_var_params['stream'])) + if 'interval' in local_var_params: + query_params.append(('interval', local_var_params['interval'])) + if 'isp' in local_var_params: + query_params.append(('isp', local_var_params['isp'])) + collection_formats['isp'] = 'csv' + if 'area' in local_var_params: + query_params.append(('area', local_var_params['area'])) + collection_formats['area'] = 'csv' + if 'metric' in local_var_params: + query_params.append(('metric', local_var_params['metric'])) + if 'protocol' in local_var_params: + query_params.append(('protocol', local_var_params['protocol'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id"] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/stats/area/detail', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListAreaDetailResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_bandwidth_detail(self, request): """查询播放带宽趋势接口 @@ -378,7 +462,7 @@ class LiveClient(Client): def list_history_streams(self, request): """查询历史推流列表接口 - 查询历史推流列表。 不能查询现推流。 最大查询跨度1天,最大查询周期1个月。 + 查询历史推流列表。 不能查询现推流。 最大查询跨度1天。 :param ListHistoryStreamsRequest request :return: ListHistoryStreamsResponse @@ -388,7 +472,7 @@ class LiveClient(Client): def list_history_streams_with_http_info(self, request): """查询历史推流列表接口 - 查询历史推流列表。 不能查询现推流。 最大查询跨度1天,最大查询周期1个月。 + 查询历史推流列表。 不能查询现推流。 最大查询跨度1天。 :param ListHistoryStreamsRequest request :return: ListHistoryStreamsResponse @@ -546,7 +630,7 @@ class LiveClient(Client): :return: ListRecordDataResponse """ - all_params = ['start_time', 'end_time'] + all_params = ['publish_domain', 'start_time', 'end_time'] local_var_params = {} for attr in request.attribute_map: if hasattr(request, attr): @@ -557,6 +641,8 @@ class LiveClient(Client): path_params = {} query_params = [] + if 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) if 'start_time' in local_var_params: query_params.append(('start_time', local_var_params['start_time'])) if 'end_time' in local_var_params: @@ -728,6 +814,75 @@ class LiveClient(Client): request_type=request.__class__.__name__) + def list_transcode_task_count(self, request): + """查询直播转码任务数接口 + + 查询5分钟粒度的各档位转码任务数。 仅支持查询视频转码任务数。 最大查询跨度7天,最大查询周期90天。 + + :param ListTranscodeTaskCountRequest request + :return: ListTranscodeTaskCountResponse + """ + return self.list_transcode_task_count_with_http_info(request) + + def list_transcode_task_count_with_http_info(self, request): + """查询直播转码任务数接口 + + 查询5分钟粒度的各档位转码任务数。 仅支持查询视频转码任务数。 最大查询跨度7天,最大查询周期90天。 + + :param ListTranscodeTaskCountRequest request + :return: ListTranscodeTaskCountResponse + """ + + all_params = ['publish_domain', 'app', 'start_time', 'end_time'] + local_var_params = {} + for attr in request.attribute_map: + if hasattr(request, attr): + local_var_params[attr] = getattr(request, attr) + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'publish_domain' in local_var_params: + query_params.append(('publish_domain', local_var_params['publish_domain'])) + if 'app' in local_var_params: + query_params.append(('app', local_var_params['app'])) + if 'start_time' in local_var_params: + query_params.append(('start_time', local_var_params['start_time'])) + if 'end_time' in local_var_params: + query_params.append(('end_time', local_var_params['end_time'])) + + header_params = {} + + form_params = {} + + body_params = None + if isinstance(request, SdkStreamRequest): + body_params = request.get_file_stream() + + response_headers = ["X-request-id"] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + return self.call_api( + resource_path='/v2/{project_id}/stats/transcode/task-count', + method='GET', + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + post_params=form_params, + response_type='ListTranscodeTaskCountResponse', + response_headers=response_headers, + auth_settings=auth_settings, + collection_formats=collection_formats, + request_type=request.__class__.__name__) + + def list_users_of_stream(self, request): """查询观众趋势接口 @@ -1030,7 +1185,7 @@ class LiveClient(Client): def list_single_stream_bitrate(self, request): """查询推流码率数据接口 - 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的码率数据列表粒度为1秒钟。 :param ListSingleStreamBitrateRequest request :return: ListSingleStreamBitrateResponse @@ -1040,7 +1195,7 @@ class LiveClient(Client): def list_single_stream_bitrate_with_http_info(self, request): """查询推流码率数据接口 - 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流监控码率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的码率数据列表粒度为1秒钟。 :param ListSingleStreamBitrateRequest request :return: ListSingleStreamBitrateResponse @@ -1101,7 +1256,7 @@ class LiveClient(Client): def list_single_stream_framerate(self, request): """查询推流帧率数据接口 - 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的帧率数据列表粒度为1秒钟。 :param ListSingleStreamFramerateRequest request :return: ListSingleStreamFramerateResponse @@ -1111,7 +1266,7 @@ class LiveClient(Client): def list_single_stream_framerate_with_http_info(self, request): """查询推流帧率数据接口 - 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 + 查询推流帧率数据接口。 最大查询跨度1天,最大查询周期1个月。 返回的帧率数据列表粒度为1秒钟。 :param ListSingleStreamFramerateRequest request :return: ListSingleStreamFramerateResponse diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/__init__.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/__init__.py index 05cd0397e..85ce08aa1 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/__init__.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/__init__.py @@ -3,9 +3,13 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdklive.v2.model.area_detail import AreaDetail +from huaweicloudsdklive.v2.model.area_time_value import AreaTimeValue from huaweicloudsdklive.v2.model.history_stream_info import HistoryStreamInfo from huaweicloudsdklive.v2.model.http_code import HttpCode from huaweicloudsdklive.v2.model.http_code_summary import HttpCodeSummary +from huaweicloudsdklive.v2.model.list_area_detail_request import ListAreaDetailRequest +from huaweicloudsdklive.v2.model.list_area_detail_response import ListAreaDetailResponse from huaweicloudsdklive.v2.model.list_bandwidth_detail_request import ListBandwidthDetailRequest from huaweicloudsdklive.v2.model.list_bandwidth_detail_response import ListBandwidthDetailResponse from huaweicloudsdklive.v2.model.list_domain_bandwidth_peak_request import ListDomainBandwidthPeakRequest @@ -28,6 +32,8 @@ from huaweicloudsdklive.v2.model.list_snapshot_data_request import ListSnapshotD from huaweicloudsdklive.v2.model.list_snapshot_data_response import ListSnapshotDataResponse from huaweicloudsdklive.v2.model.list_transcode_data_request import ListTranscodeDataRequest from huaweicloudsdklive.v2.model.list_transcode_data_response import ListTranscodeDataResponse +from huaweicloudsdklive.v2.model.list_transcode_task_count_request import ListTranscodeTaskCountRequest +from huaweicloudsdklive.v2.model.list_transcode_task_count_response import ListTranscodeTaskCountResponse from huaweicloudsdklive.v2.model.list_users_of_stream_request import ListUsersOfStreamRequest from huaweicloudsdklive.v2.model.list_users_of_stream_response import ListUsersOfStreamResponse from huaweicloudsdklive.v2.model.peak_bandwidth_data import PeakBandwidthData @@ -41,10 +47,13 @@ from huaweicloudsdklive.v2.model.show_up_bandwidth_response import ShowUpBandwid from huaweicloudsdklive.v2.model.snapshot_data import SnapshotData from huaweicloudsdklive.v2.model.stream_count_data import StreamCountData from huaweicloudsdklive.v2.model.stream_portrait import StreamPortrait +from huaweicloudsdklive.v2.model.time_value import TimeValue from huaweicloudsdklive.v2.model.traffic_data import TrafficData from huaweicloudsdklive.v2.model.traffic_summary_data import TrafficSummaryData +from huaweicloudsdklive.v2.model.transcode_count_data import TranscodeCountData from huaweicloudsdklive.v2.model.transcode_data import TranscodeData from huaweicloudsdklive.v2.model.transcode_spec import TranscodeSpec +from huaweicloudsdklive.v2.model.transcode_spec_count import TranscodeSpecCount from huaweicloudsdklive.v2.model.transcode_summary import TranscodeSummary from huaweicloudsdklive.v2.model.v2_bandwidth_data import V2BandwidthData from huaweicloudsdklive.v2.model.v2_bitrate_info import V2BitrateInfo diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_detail.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_detail.py new file mode 100644 index 000000000..b1b2dde5d --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_detail.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AreaDetail: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'area': 'str', + 'summary': 'list[TimeValue]', + 'detail': 'list[AreaTimeValue]' + } + + attribute_map = { + 'area': 'area', + 'summary': 'summary', + 'detail': 'detail' + } + + def __init__(self, area=None, summary=None, detail=None): + """AreaDetail - a model defined in huaweicloud sdk""" + + + + self._area = None + self._summary = None + self._detail = None + self.discriminator = None + + self.area = area + self.summary = summary + self.detail = detail + + @property + def area(self): + """Gets the area of this AreaDetail. + + 各个计费大区名称,例如CN + + :return: The area of this AreaDetail. + :rtype: str + """ + return self._area + + @area.setter + def area(self, area): + """Sets the area of this AreaDetail. + + 各个计费大区名称,例如CN + + :param area: The area of this AreaDetail. + :type: str + """ + self._area = area + + @property + def summary(self): + """Gets the summary of this AreaDetail. + + 时间戳及相应时间的指标数值 + + :return: The summary of this AreaDetail. + :rtype: list[TimeValue] + """ + return self._summary + + @summary.setter + def summary(self, summary): + """Sets the summary of this AreaDetail. + + 时间戳及相应时间的指标数值 + + :param summary: The summary of this AreaDetail. + :type: list[TimeValue] + """ + self._summary = summary + + @property + def detail(self): + """Gets the detail of this AreaDetail. + + 各个大区下的具体省份、区域、国家的时间戳及相应时间的指标数值 + + :return: The detail of this AreaDetail. + :rtype: list[AreaTimeValue] + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this AreaDetail. + + 各个大区下的具体省份、区域、国家的时间戳及相应时间的指标数值 + + :param detail: The detail of this AreaDetail. + :type: list[AreaTimeValue] + """ + self._detail = detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AreaDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py new file mode 100644 index 000000000..a6b0c6dcc --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/area_time_value.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AreaTimeValue: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'data': 'list[TimeValue]' + } + + attribute_map = { + 'name': 'name', + 'data': 'data' + } + + def __init__(self, name=None, data=None): + """AreaTimeValue - a model defined in huaweicloud sdk""" + + + + self._name = None + self._data = None + self.discriminator = None + + self.name = name + self.data = data + + @property + def name(self): + """Gets the name of this AreaTimeValue. + + 各个大区下的具体省份、区域、国家的名称。 具体取值请参考[国家名称缩写](vod_08_0172.xml)和[省份名称缩写](live_03_0043.xml)。 + + :return: The name of this AreaTimeValue. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AreaTimeValue. + + 各个大区下的具体省份、区域、国家的名称。 具体取值请参考[国家名称缩写](vod_08_0172.xml)和[省份名称缩写](live_03_0043.xml)。 + + :param name: The name of this AreaTimeValue. + :type: str + """ + self._name = name + + @property + def data(self): + """Gets the data of this AreaTimeValue. + + 当前时间返回指定指标的值 + + :return: The data of this AreaTimeValue. + :rtype: list[TimeValue] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this AreaTimeValue. + + 当前时间返回指定指标的值 + + :param data: The data of this AreaTimeValue. + :type: list[TimeValue] + """ + 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, AreaTimeValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py new file mode 100644 index 000000000..856cf3772 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_request.py @@ -0,0 +1,352 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAreaDetailRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'play_domains': 'list[str]', + 'app': 'str', + 'stream': 'str', + 'interval': 'int', + 'isp': 'list[str]', + 'area': 'list[str]', + 'metric': 'str', + 'protocol': 'str' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'play_domains': 'play_domains', + 'app': 'app', + 'stream': 'stream', + 'interval': 'interval', + 'isp': 'isp', + 'area': 'area', + 'metric': 'metric', + 'protocol': 'protocol' + } + + def __init__(self, start_time=None, end_time=None, play_domains=None, app=None, stream=None, interval=None, isp=None, area=None, metric=None, protocol=None): + """ListAreaDetailRequest - a model defined in huaweicloud sdk""" + + + + self._start_time = None + self._end_time = None + self._play_domains = None + self._app = None + self._stream = None + self._interval = None + self._isp = None + self._area = None + self._metric = None + self._protocol = None + self.discriminator = None + + self.start_time = start_time + self.end_time = end_time + self.play_domains = play_domains + if app is not None: + self.app = app + if stream is not None: + self.stream = stream + if interval is not None: + self.interval = interval + if isp is not None: + self.isp = isp + self.area = area + self.metric = metric + if protocol is not None: + self.protocol = protocol + + @property + def start_time(self): + """Gets the start_time of this ListAreaDetailRequest. + + 查询起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期90天。 + + :return: The start_time of this ListAreaDetailRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListAreaDetailRequest. + + 查询起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期90天。 + + :param start_time: The start_time of this ListAreaDetailRequest. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListAreaDetailRequest. + + 查询结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期90天。 + + :return: The end_time of this ListAreaDetailRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListAreaDetailRequest. + + 查询结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期90天。 + + :param end_time: The end_time of this ListAreaDetailRequest. + :type: str + """ + self._end_time = end_time + + @property + def play_domains(self): + """Gets the play_domains of this ListAreaDetailRequest. + + 需查询的播放域名列表,最多支持查询10个域名。 + + :return: The play_domains of this ListAreaDetailRequest. + :rtype: list[str] + """ + return self._play_domains + + @play_domains.setter + def play_domains(self, play_domains): + """Sets the play_domains of this ListAreaDetailRequest. + + 需查询的播放域名列表,最多支持查询10个域名。 + + :param play_domains: The play_domains of this ListAreaDetailRequest. + :type: list[str] + """ + self._play_domains = play_domains + + @property + def app(self): + """Gets the app of this ListAreaDetailRequest. + + 需查询的app。 + + :return: The app of this ListAreaDetailRequest. + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this ListAreaDetailRequest. + + 需查询的app。 + + :param app: The app of this ListAreaDetailRequest. + :type: str + """ + self._app = app + + @property + def stream(self): + """Gets the stream of this ListAreaDetailRequest. + + 流名称。 + + :return: The stream of this ListAreaDetailRequest. + :rtype: str + """ + return self._stream + + @stream.setter + def stream(self, stream): + """Sets the stream of this ListAreaDetailRequest. + + 流名称。 + + :param stream: The stream of this ListAreaDetailRequest. + :type: str + """ + self._stream = stream + + @property + def interval(self): + """Gets the interval of this ListAreaDetailRequest. + + 查询数据的时间粒度。支持300(默认值)、3600和86400秒。若参数为空,则默认为300秒。 注意,若metric的值为player(观众数),则interval填入的值不起效果,查询粒度interval默认为60秒。 + + :return: The interval of this ListAreaDetailRequest. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this ListAreaDetailRequest. + + 查询数据的时间粒度。支持300(默认值)、3600和86400秒。若参数为空,则默认为300秒。 注意,若metric的值为player(观众数),则interval填入的值不起效果,查询粒度interval默认为60秒。 + + :param interval: The interval of this ListAreaDetailRequest. + :type: int + """ + self._interval = interval + + @property + def isp(self): + """Gets the isp of this ListAreaDetailRequest. + + 运营商列表,取值如下: - CMCC:移动 - CTCC:电信 - CUCC:联通 - OTHER:其他 若参数为空,则查询所有运营商。 + + :return: The isp of this ListAreaDetailRequest. + :rtype: list[str] + """ + return self._isp + + @isp.setter + def isp(self, isp): + """Sets the isp of this ListAreaDetailRequest. + + 运营商列表,取值如下: - CMCC:移动 - CTCC:电信 - CUCC:联通 - OTHER:其他 若参数为空,则查询所有运营商。 + + :param isp: The isp of this ListAreaDetailRequest. + :type: list[str] + """ + self._isp = isp + + @property + def area(self): + """Gets the area of this ListAreaDetailRequest. + + 需查询的计费大区,取值如下: - CN - AP1 - AP2 - AP3 - EU - MEAA - NA - SA + + :return: The area of this ListAreaDetailRequest. + :rtype: list[str] + """ + return self._area + + @area.setter + def area(self, area): + """Sets the area of this ListAreaDetailRequest. + + 需查询的计费大区,取值如下: - CN - AP1 - AP2 - AP3 - EU - MEAA - NA - SA + + :param area: The area of this ListAreaDetailRequest. + :type: list[str] + """ + self._area = area + + @property + def metric(self): + """Gets the metric of this ListAreaDetailRequest. + + 指标,取值如下: - bandwidth:带宽 - traffic:流量 - player:观众数 + + :return: The metric of this ListAreaDetailRequest. + :rtype: str + """ + return self._metric + + @metric.setter + def metric(self, metric): + """Sets the metric of this ListAreaDetailRequest. + + 指标,取值如下: - bandwidth:带宽 - traffic:流量 - player:观众数 + + :param metric: The metric of this ListAreaDetailRequest. + :type: str + """ + self._metric = metric + + @property + def protocol(self): + """Gets the protocol of this ListAreaDetailRequest. + + 请求协议,取值如下: - flv - hls + + :return: The protocol of this ListAreaDetailRequest. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this ListAreaDetailRequest. + + 请求协议,取值如下: - flv - hls + + :param protocol: The protocol of this ListAreaDetailRequest. + :type: 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, ListAreaDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_response.py new file mode 100644 index 000000000..60e09a4dc --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_area_detail_response.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAreaDetailResponse(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 = { + 'data_list': 'list[AreaDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'data_list': 'data_list', + 'x_request_id': 'X-request-id' + } + + def __init__(self, data_list=None, x_request_id=None): + """ListAreaDetailResponse - a model defined in huaweicloud sdk""" + + super(ListAreaDetailResponse, self).__init__() + + self._data_list = None + self._x_request_id = None + self.discriminator = None + + if data_list is not None: + self.data_list = data_list + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def data_list(self): + """Gets the data_list of this ListAreaDetailResponse. + + 时间戳及相应时间的指标数值 + + :return: The data_list of this ListAreaDetailResponse. + :rtype: list[AreaDetail] + """ + return self._data_list + + @data_list.setter + def data_list(self, data_list): + """Sets the data_list of this ListAreaDetailResponse. + + 时间戳及相应时间的指标数值 + + :param data_list: The data_list of this ListAreaDetailResponse. + :type: list[AreaDetail] + """ + self._data_list = data_list + + @property + def x_request_id(self): + """Gets the x_request_id of this ListAreaDetailResponse. + + + :return: The x_request_id of this ListAreaDetailResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListAreaDetailResponse. + + + :param x_request_id: The x_request_id of this ListAreaDetailResponse. + :type: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAreaDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_history_streams_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_history_streams_request.py index 216e5255a..bbc65caaa 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_history_streams_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_history_streams_request.py @@ -139,7 +139,7 @@ class ListHistoryStreamsRequest: def start_time(self): """Gets the start_time of this ListHistoryStreamsRequest. - 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期1个月。 若参数为空,默认查询1天数据。 + 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天。 若参数为空,默认查询1天数据。 :return: The start_time of this ListHistoryStreamsRequest. :rtype: str @@ -150,7 +150,7 @@ class ListHistoryStreamsRequest: def start_time(self, start_time): """Sets the start_time of this ListHistoryStreamsRequest. - 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天,最大查询周期1个月。 若参数为空,默认查询1天数据。 + 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度1天。 若参数为空,默认查询1天数据。 :param start_time: The start_time of this ListHistoryStreamsRequest. :type: str @@ -161,7 +161,7 @@ class ListHistoryStreamsRequest: def end_time(self): """Gets the end_time of this ListHistoryStreamsRequest. - 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度1天,最大查询周期1个月。结束时间需大于起始时间。 + 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度1天。结束时间需大于起始时间。 :return: The end_time of this ListHistoryStreamsRequest. :rtype: str @@ -172,7 +172,7 @@ class ListHistoryStreamsRequest: def end_time(self, end_time): """Sets the end_time of this ListHistoryStreamsRequest. - 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度1天,最大查询周期1个月。结束时间需大于起始时间。 + 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度1天。结束时间需大于起始时间。 :param end_time: The end_time of this ListHistoryStreamsRequest. :type: str diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_record_data_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_record_data_request.py index a4dcffc80..5c47eea16 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_record_data_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_record_data_request.py @@ -22,29 +22,56 @@ class ListRecordDataRequest: sensitive_list = [] openapi_types = { + 'publish_domain': 'str', 'start_time': 'str', 'end_time': 'str' } attribute_map = { + 'publish_domain': 'publish_domain', 'start_time': 'start_time', 'end_time': 'end_time' } - def __init__(self, start_time=None, end_time=None): + def __init__(self, publish_domain=None, start_time=None, end_time=None): """ListRecordDataRequest - a model defined in huaweicloud sdk""" + self._publish_domain = None self._start_time = None self._end_time = None self.discriminator = None + if publish_domain is not None: + self.publish_domain = publish_domain if start_time is not None: self.start_time = start_time if end_time is not None: self.end_time = end_time + @property + def publish_domain(self): + """Gets the publish_domain of this ListRecordDataRequest. + + 推流域名。 + + :return: The publish_domain of this ListRecordDataRequest. + :rtype: str + """ + return self._publish_domain + + @publish_domain.setter + def publish_domain(self, publish_domain): + """Sets the publish_domain of this ListRecordDataRequest. + + 推流域名。 + + :param publish_domain: The publish_domain of this ListRecordDataRequest. + :type: str + """ + self._publish_domain = publish_domain + @property def start_time(self): """Gets the start_time of this ListRecordDataRequest. diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_request.py new file mode 100644 index 000000000..081f735ba --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_request.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTranscodeTaskCountRequest: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'publish_domain': 'str', + 'app': 'str', + 'start_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'publish_domain': 'publish_domain', + 'app': 'app', + 'start_time': 'start_time', + 'end_time': 'end_time' + } + + def __init__(self, publish_domain=None, app=None, start_time=None, end_time=None): + """ListTranscodeTaskCountRequest - a model defined in huaweicloud sdk""" + + + + self._publish_domain = None + self._app = None + self._start_time = None + self._end_time = None + self.discriminator = None + + self.publish_domain = publish_domain + if app is not None: + self.app = app + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + + @property + def publish_domain(self): + """Gets the publish_domain of this ListTranscodeTaskCountRequest. + + 推流域名 + + :return: The publish_domain of this ListTranscodeTaskCountRequest. + :rtype: str + """ + return self._publish_domain + + @publish_domain.setter + def publish_domain(self, publish_domain): + """Sets the publish_domain of this ListTranscodeTaskCountRequest. + + 推流域名 + + :param publish_domain: The publish_domain of this ListTranscodeTaskCountRequest. + :type: str + """ + self._publish_domain = publish_domain + + @property + def app(self): + """Gets the app of this ListTranscodeTaskCountRequest. + + 应用名称,若查询结果为空,表示该应用下没有转码任务。 + + :return: The app of this ListTranscodeTaskCountRequest. + :rtype: str + """ + return self._app + + @app.setter + def app(self, app): + """Sets the app of this ListTranscodeTaskCountRequest. + + 应用名称,若查询结果为空,表示该应用下没有转码任务。 + + :param app: The app of this ListTranscodeTaskCountRequest. + :type: str + """ + self._app = app + + @property + def start_time(self): + """Gets the start_time of this ListTranscodeTaskCountRequest. + + 查询起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度7天,最大查询周期90天。 若参数为空,默认查询7天数据。 + + :return: The start_time of this ListTranscodeTaskCountRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListTranscodeTaskCountRequest. + + 查询起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度7天,最大查询周期90天。 若参数为空,默认查询7天数据。 + + :param start_time: The start_time of this ListTranscodeTaskCountRequest. + :type: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListTranscodeTaskCountRequest. + + 查询结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度7天,最大查询周期90天。 结束时间需大于起始时间。 若参数为空,默认为当前时间。 + + :return: The end_time of this ListTranscodeTaskCountRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListTranscodeTaskCountRequest. + + 查询结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度7天,最大查询周期90天。 结束时间需大于起始时间。 若参数为空,默认为当前时间。 + + :param end_time: The end_time of this ListTranscodeTaskCountRequest. + :type: 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, ListTranscodeTaskCountRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_response.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_response.py new file mode 100644 index 000000000..1935488c3 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/list_transcode_task_count_response.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import re +import six + + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTranscodeTaskCountResponse(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 = { + 'transcode_data_list': 'list[TranscodeCountData]', + 'x_request_id': 'str' + } + + attribute_map = { + 'transcode_data_list': 'transcode_data_list', + 'x_request_id': 'X-request-id' + } + + def __init__(self, transcode_data_list=None, x_request_id=None): + """ListTranscodeTaskCountResponse - a model defined in huaweicloud sdk""" + + super(ListTranscodeTaskCountResponse, self).__init__() + + self._transcode_data_list = None + self._x_request_id = None + self.discriminator = None + + if transcode_data_list is not None: + self.transcode_data_list = transcode_data_list + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def transcode_data_list(self): + """Gets the transcode_data_list of this ListTranscodeTaskCountResponse. + + 时间戳及相应时间的数值。 + + :return: The transcode_data_list of this ListTranscodeTaskCountResponse. + :rtype: list[TranscodeCountData] + """ + return self._transcode_data_list + + @transcode_data_list.setter + def transcode_data_list(self, transcode_data_list): + """Sets the transcode_data_list of this ListTranscodeTaskCountResponse. + + 时间戳及相应时间的数值。 + + :param transcode_data_list: The transcode_data_list of this ListTranscodeTaskCountResponse. + :type: list[TranscodeCountData] + """ + self._transcode_data_list = transcode_data_list + + @property + def x_request_id(self): + """Gets the x_request_id of this ListTranscodeTaskCountResponse. + + + :return: The x_request_id of this ListTranscodeTaskCountResponse. + :rtype: str + """ + return self._x_request_id + + @x_request_id.setter + def x_request_id(self, x_request_id): + """Sets the x_request_id of this ListTranscodeTaskCountResponse. + + + :param x_request_id: The x_request_id of this ListTranscodeTaskCountResponse. + :type: str + """ + self._x_request_id = x_request_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTranscodeTaskCountResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_stream_count_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_stream_count_request.py index cdd87531e..85b03ee32 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_stream_count_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_stream_count_request.py @@ -75,7 +75,7 @@ class ShowStreamCountRequest: def start_time(self): """Gets the start_time of this ShowStreamCountRequest. - 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期90天 若参数为空,默认查询7天数据。 + 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期1年。 若参数为空,默认查询7天数据。 :return: The start_time of this ShowStreamCountRequest. :rtype: str @@ -86,7 +86,7 @@ class ShowStreamCountRequest: def start_time(self, start_time): """Sets the start_time of this ShowStreamCountRequest. - 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期90天 若参数为空,默认查询7天数据。 + 起始时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。最大查询跨度31天,最大查询周期1年。 若参数为空,默认查询7天数据。 :param start_time: The start_time of this ShowStreamCountRequest. :type: str diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py index cc00c9032..2ac980b4b 100644 --- a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/show_up_bandwidth_request.py @@ -232,7 +232,7 @@ class ShowUpBandwidthRequest: def end_time(self): """Gets the end_time of this ShowUpBandwidthRequest. - 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度31天,最大查询周期90天。结束时间需大于起始时间。 + 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度31天,最大查询周期1年。结束时间需大于起始时间。 :return: The end_time of this ShowUpBandwidthRequest. :rtype: str @@ -243,7 +243,7 @@ class ShowUpBandwidthRequest: def end_time(self, end_time): """Sets the end_time of this ShowUpBandwidthRequest. - 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度31天,最大查询周期90天。结束时间需大于起始时间。 + 结束时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ。 若参数为空,默认为当前时间,最大查询跨度31天,最大查询周期1年。结束时间需大于起始时间。 :param end_time: The end_time of this ShowUpBandwidthRequest. :type: str diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/time_value.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/time_value.py new file mode 100644 index 000000000..4b53a67f2 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/time_value.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TimeValue: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'time': 'str', + 'value': 'int' + } + + attribute_map = { + 'time': 'time', + 'value': 'value' + } + + def __init__(self, time=None, value=None): + """TimeValue - a model defined in huaweicloud sdk""" + + + + self._time = None + self._value = None + self.discriminator = None + + if time is not None: + self.time = time + if value is not None: + self.value = value + + @property + def time(self): + """Gets the time of this TimeValue. + + 采样时间。日期格式按照ISO8601表示法,并使用UTC时间。格式为YYYY-MM-DDThh:mm:ssZ + + :return: The time of this TimeValue. + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TimeValue. + + 采样时间。日期格式按照ISO8601表示法,并使用UTC时间。格式为YYYY-MM-DDThh:mm:ssZ + + :param time: The time of this TimeValue. + :type: str + """ + self._time = time + + @property + def value(self): + """Gets the value of this TimeValue. + + 当前时间返回指定指标的值 + + :return: The value of this TimeValue. + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TimeValue. + + 当前时间返回指定指标的值 + + :param value: The value of this TimeValue. + :type: int + """ + 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, TimeValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_count_data.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_count_data.py new file mode 100644 index 000000000..a0c7f5c88 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_count_data.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TranscodeCountData: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + + sensitive_list = [] + + openapi_types = { + 'spec_list': 'list[TranscodeSpecCount]', + 'time': 'str' + } + + attribute_map = { + 'spec_list': 'spec_list', + 'time': 'time' + } + + def __init__(self, spec_list=None, time=None): + """TranscodeCountData - a model defined in huaweicloud sdk""" + + + + self._spec_list = None + self._time = None + self.discriminator = None + + if spec_list is not None: + self.spec_list = spec_list + if time is not None: + self.time = time + + @property + def spec_list(self): + """Gets the spec_list of this TranscodeCountData. + + 每个采样时间中的转码任务数信息。 + + :return: The spec_list of this TranscodeCountData. + :rtype: list[TranscodeSpecCount] + """ + return self._spec_list + + @spec_list.setter + def spec_list(self, spec_list): + """Sets the spec_list of this TranscodeCountData. + + 每个采样时间中的转码任务数信息。 + + :param spec_list: The spec_list of this TranscodeCountData. + :type: list[TranscodeSpecCount] + """ + self._spec_list = spec_list + + @property + def time(self): + """Gets the time of this TranscodeCountData. + + 采样时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ 。 + + :return: The time of this TranscodeCountData. + :rtype: str + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TranscodeCountData. + + 采样时间。日期格式按照ISO8601表示法,并使用UTC时间。 格式为:YYYY-MM-DDThh:mm:ssZ 。 + + :param time: The time of this TranscodeCountData. + :type: str + """ + self._time = 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, TranscodeCountData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec_count.py b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec_count.py new file mode 100644 index 000000000..16d1d7b96 --- /dev/null +++ b/huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec_count.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +import re +import six + + + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TranscodeSpecCount: + + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'count': 'int' + } + + attribute_map = { + 'type': 'type', + 'count': 'count' + } + + def __init__(self, type=None, count=None): + """TranscodeSpecCount - a model defined in huaweicloud sdk""" + + + + self._type = None + self._count = None + self.discriminator = None + + if type is not None: + self.type = type + if count is not None: + self.count = count + + @property + def type(self): + """Gets the type of this TranscodeSpecCount. + + 转码规格,具体格式如下: - 若未开启高清低码,则格式为:编码格式_分辨率档位。 - 若已开启高清低码,则格式为:编码格式_PVC_分辨率档位。 其中,编码格式包括H264、H265,分辨率档位包括: - 4K:3840 x 2160及以下 - 2K:2560 x 1440及以下 - FHD:1920 x 1080及以下 - HD:1280 x 720及以下 - SD:640 x 480及以下 示例:若编码格式为H264,分辨率档位为FHD,则转码规格为H264_FHD。 + + :return: The type of this TranscodeSpecCount. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TranscodeSpecCount. + + 转码规格,具体格式如下: - 若未开启高清低码,则格式为:编码格式_分辨率档位。 - 若已开启高清低码,则格式为:编码格式_PVC_分辨率档位。 其中,编码格式包括H264、H265,分辨率档位包括: - 4K:3840 x 2160及以下 - 2K:2560 x 1440及以下 - FHD:1920 x 1080及以下 - HD:1280 x 720及以下 - SD:640 x 480及以下 示例:若编码格式为H264,分辨率档位为FHD,则转码规格为H264_FHD。 + + :param type: The type of this TranscodeSpecCount. + :type: str + """ + self._type = type + + @property + def count(self): + """Gets the count of this TranscodeSpecCount. + + 采样时间点转码任务数。 + + :return: The count of this TranscodeSpecCount. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this TranscodeSpecCount. + + 采样时间点转码任务数。 + + :param count: The count of this TranscodeSpecCount. + :type: 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, TranscodeSpecCount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index 072ead0e7..8c6e12fa4 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index c7aab8661..f09390146 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py index 09abf96f9..c27b0930a 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_participant_info.py @@ -51,7 +51,8 @@ class QosParticipantInfo: 'speaker_info': 'str', 'camera_info': 'str', 'data_center': 'str', - 'left_reason': 'int' + 'left_reason': 'int', + 'exist_qos': 'bool' } attribute_map = { @@ -84,10 +85,11 @@ class QosParticipantInfo: 'speaker_info': 'speakerInfo', 'camera_info': 'cameraInfo', 'data_center': 'dataCenter', - 'left_reason': 'leftReason' + 'left_reason': 'leftReason', + 'exist_qos': 'existQos' } - def __init__(self, conf_uuid=None, conference_id=None, participant_id=None, user_uuid=None, display_name=None, dept_name=None, terminal_type=None, role=None, ip_address=None, country=None, province=None, city=None, app_version=None, join_time=None, left_time=None, system_info=None, network_type=None, alarm=None, audio_alarm_send=None, video_alarm_send=None, screen_alarm_send=None, audio_alarm_rec=None, video_alarm_rec=None, screen_alarm_rec=None, cpu_alarm=None, microphone_info=None, speaker_info=None, camera_info=None, data_center=None, left_reason=None): + def __init__(self, conf_uuid=None, conference_id=None, participant_id=None, user_uuid=None, display_name=None, dept_name=None, terminal_type=None, role=None, ip_address=None, country=None, province=None, city=None, app_version=None, join_time=None, left_time=None, system_info=None, network_type=None, alarm=None, audio_alarm_send=None, video_alarm_send=None, screen_alarm_send=None, audio_alarm_rec=None, video_alarm_rec=None, screen_alarm_rec=None, cpu_alarm=None, microphone_info=None, speaker_info=None, camera_info=None, data_center=None, left_reason=None, exist_qos=None): """QosParticipantInfo - a model defined in huaweicloud sdk""" @@ -122,6 +124,7 @@ class QosParticipantInfo: self._camera_info = None self._data_center = None self._left_reason = None + self._exist_qos = None self.discriminator = None if conf_uuid is not None: @@ -184,6 +187,8 @@ class QosParticipantInfo: self.data_center = data_center if left_reason is not None: self.left_reason = left_reason + if exist_qos is not None: + self.exist_qos = exist_qos @property def conf_uuid(self): @@ -845,6 +850,28 @@ class QosParticipantInfo: """ self._left_reason = left_reason + @property + def exist_qos(self): + """Gets the exist_qos of this QosParticipantInfo. + + 与会者是否存在QoS数据。 true:存在QoS数据。 false:不存在QoS数据。 + + :return: The exist_qos of this QosParticipantInfo. + :rtype: bool + """ + return self._exist_qos + + @exist_qos.setter + def exist_qos(self, exist_qos): + """Sets the exist_qos of this QosParticipantInfo. + + 与会者是否存在QoS数据。 true:存在QoS数据。 false:不存在QoS数据。 + + :param exist_qos: The exist_qos of this QosParticipantInfo. + :type: bool + """ + self._exist_qos = exist_qos + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_web_hook_config_response.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_web_hook_config_response.py index 66fffa3b5..5c00c2267 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_web_hook_config_response.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_web_hook_config_response.py @@ -178,7 +178,7 @@ class ShowWebHookConfigResponse(SdkResponse): def status(self): """Gets the status of this ShowWebHookConfigResponse. - 连接状态 0 启用 1、未启动 + 连接状态: 0表示已启用 ;1表示未启动; 2表示已锁定 :return: The status of this ShowWebHookConfigResponse. :rtype: int @@ -189,7 +189,7 @@ class ShowWebHookConfigResponse(SdkResponse): def status(self, status): """Sets the status of this ShowWebHookConfigResponse. - 连接状态 0 启用 1、未启动 + 连接状态: 0表示已启用 ;1表示未启动; 2表示已锁定 :param status: The status of this ShowWebHookConfigResponse. :type: int diff --git a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/update_web_hook_config_status_request.py b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/update_web_hook_config_status_request.py index 81680d158..da90344d8 100644 --- a/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/update_web_hook_config_status_request.py +++ b/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/update_web_hook_config_status_request.py @@ -69,7 +69,7 @@ class UpdateWebHookConfigStatusRequest: def status(self): """Gets the status of this UpdateWebHookConfigStatusRequest. - 0:启用, 1:未启用, 2:锁定 + 连接状态: 0表示已启用 ;1表示未启动; 2表示已锁定 :return: The status of this UpdateWebHookConfigStatusRequest. :rtype: int @@ -80,7 +80,7 @@ class UpdateWebHookConfigStatusRequest: def status(self, status): """Sets the status of this UpdateWebHookConfigStatusRequest. - 0:启用, 1:未启用, 2:锁定 + 连接状态: 0表示已启用 ;1表示未启动; 2表示已锁定 :param status: The status of this UpdateWebHookConfigStatusRequest. :type: int diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 9f0a5fbb6..b55769349 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 9b909e344..67abca59e 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 63584face..626e19d4a 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index d869119ca..f4dc131c0 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 3730f846c..df1e1ab1d 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 32d7ccba9..5816b0bd3 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 1c1268acf..b4a2cf749 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index ecf14aa92..3a0b8e038 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 534b12524..d01e52eb0 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 99394e3b9..893d8d975 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 7334e7fbc..fd9890bc4 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py index c744a0fd2..3d4b66821 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py @@ -235,7 +235,6 @@ from huaweicloudsdkrds.v3.model.restore_databases_info import RestoreDatabasesIn from huaweicloudsdkrds.v3.model.restore_exist_instance_request import RestoreExistInstanceRequest from huaweicloudsdkrds.v3.model.restore_exist_instance_response import RestoreExistInstanceResponse from huaweicloudsdkrds.v3.model.restore_existing_instance_request_body import RestoreExistingInstanceRequestBody -from huaweicloudsdkrds.v3.model.restore_existing_instance_request_body_source import RestoreExistingInstanceRequestBodySource from huaweicloudsdkrds.v3.model.restore_point import RestorePoint from huaweicloudsdkrds.v3.model.restore_table_info import RestoreTableInfo from huaweicloudsdkrds.v3.model.restore_tables_request import RestoreTablesRequest diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py index de9bbe3bb..b997f5b2b 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py @@ -232,7 +232,6 @@ from huaweicloudsdkrds.v3.model.restore_databases_info import RestoreDatabasesIn from huaweicloudsdkrds.v3.model.restore_exist_instance_request import RestoreExistInstanceRequest from huaweicloudsdkrds.v3.model.restore_exist_instance_response import RestoreExistInstanceResponse from huaweicloudsdkrds.v3.model.restore_existing_instance_request_body import RestoreExistingInstanceRequestBody -from huaweicloudsdkrds.v3.model.restore_existing_instance_request_body_source import RestoreExistingInstanceRequestBodySource from huaweicloudsdkrds.v3.model.restore_point import RestorePoint from huaweicloudsdkrds.v3.model.restore_table_info import RestoreTableInfo from huaweicloudsdkrds.v3.model.restore_tables_request import RestoreTablesRequest diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_policy.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_policy.py index deb47c7be..5ea09a751 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_policy.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/recycle_policy.py @@ -22,55 +22,29 @@ class RecyclePolicy: sensitive_list = [] openapi_types = { - 'is_open_recycle_policy': 'bool', 'retention_period_in_days': 'str' } attribute_map = { - 'is_open_recycle_policy': 'is_open_recycle_policy', 'retention_period_in_days': 'retention_period_in_days' } - def __init__(self, is_open_recycle_policy=None, retention_period_in_days=None): + def __init__(self, retention_period_in_days=None): """RecyclePolicy - a model defined in huaweicloud sdk""" - self._is_open_recycle_policy = None self._retention_period_in_days = None self.discriminator = None - self.is_open_recycle_policy = is_open_recycle_policy if retention_period_in_days is not None: self.retention_period_in_days = retention_period_in_days - @property - def is_open_recycle_policy(self): - """Gets the is_open_recycle_policy of this RecyclePolicy. - - 是否打开回收策略,取值为“true”或“false”。 - - :return: The is_open_recycle_policy of this RecyclePolicy. - :rtype: bool - """ - return self._is_open_recycle_policy - - @is_open_recycle_policy.setter - def is_open_recycle_policy(self, is_open_recycle_policy): - """Sets the is_open_recycle_policy of this RecyclePolicy. - - 是否打开回收策略,取值为“true”或“false”。 - - :param is_open_recycle_policy: The is_open_recycle_policy of this RecyclePolicy. - :type: bool - """ - self._is_open_recycle_policy = is_open_recycle_policy - @property def retention_period_in_days(self): """Gets the retention_period_in_days of this RecyclePolicy. - 保留时间,设置已删除实例保留天数,支持整数,可设置范围为1~7天。 当“is_open_recycle_policy”取值为“true”时且“retention_period_in_days”为空,保留时间默认是7天。 + 保留时间,设置已删除实例保留天数,支持整数,可设置范围为1~7天。 当“retention_period_in_days”为空,保留时间默认是7天。 :return: The retention_period_in_days of this RecyclePolicy. :rtype: str @@ -81,7 +55,7 @@ class RecyclePolicy: def retention_period_in_days(self, retention_period_in_days): """Sets the retention_period_in_days of this RecyclePolicy. - 保留时间,设置已删除实例保留天数,支持整数,可设置范围为1~7天。 当“is_open_recycle_policy”取值为“true”时且“retention_period_in_days”为空,保留时间默认是7天。 + 保留时间,设置已删除实例保留天数,支持整数,可设置范围为1~7天。 当“retention_period_in_days”为空,保留时间默认是7天。 :param retention_period_in_days: The retention_period_in_days of this RecyclePolicy. :type: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body.py index 2ff4bbc01..2b6520557 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body.py @@ -22,7 +22,7 @@ class RestoreExistingInstanceRequestBody: sensitive_list = [] openapi_types = { - 'source': 'RestoreExistingInstanceRequestBodySource', + 'source': 'RestoreToExistingInstanceRequestBodySource', 'target': 'RestoreToExistingInstanceRequestBodyTarget' } @@ -49,7 +49,7 @@ class RestoreExistingInstanceRequestBody: :return: The source of this RestoreExistingInstanceRequestBody. - :rtype: RestoreExistingInstanceRequestBodySource + :rtype: RestoreToExistingInstanceRequestBodySource """ return self._source @@ -59,7 +59,7 @@ class RestoreExistingInstanceRequestBody: :param source: The source of this RestoreExistingInstanceRequestBody. - :type: RestoreExistingInstanceRequestBodySource + :type: RestoreToExistingInstanceRequestBodySource """ self._source = source diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body_source.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body_source.py deleted file mode 100644 index f38b0928a..000000000 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_existing_instance_request_body_source.py +++ /dev/null @@ -1,248 +0,0 @@ -# coding: utf-8 - -import re -import six - - - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class RestoreExistingInstanceRequestBodySource: - - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the 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', - 'type': 'str', - 'backup_id': 'str', - 'restore_time': 'int', - 'database_name': 'dict(str, str)', - 'restore_all_database': 'bool' - } - - attribute_map = { - 'instance_id': 'instance_id', - 'type': 'type', - 'backup_id': 'backup_id', - 'restore_time': 'restore_time', - 'database_name': 'database_name', - 'restore_all_database': 'restore_all_database' - } - - def __init__(self, instance_id=None, type=None, backup_id=None, restore_time=None, database_name=None, restore_all_database=None): - """RestoreExistingInstanceRequestBodySource - a model defined in huaweicloud sdk""" - - - - self._instance_id = None - self._type = None - self._backup_id = None - self._restore_time = None - self._database_name = None - self._restore_all_database = None - self.discriminator = None - - self.instance_id = instance_id - if type is not None: - self.type = type - if backup_id is not None: - self.backup_id = backup_id - if restore_time is not None: - self.restore_time = restore_time - if database_name is not None: - self.database_name = database_name - if restore_all_database is not None: - self.restore_all_database = restore_all_database - - @property - def instance_id(self): - """Gets the instance_id of this RestoreExistingInstanceRequestBodySource. - - 实例ID。 - - :return: The instance_id of this RestoreExistingInstanceRequestBodySource. - :rtype: str - """ - return self._instance_id - - @instance_id.setter - def instance_id(self, instance_id): - """Sets the instance_id of this RestoreExistingInstanceRequestBodySource. - - 实例ID。 - - :param instance_id: The instance_id of this RestoreExistingInstanceRequestBodySource. - :type: str - """ - self._instance_id = instance_id - - @property - def type(self): - """Gets the type of this RestoreExistingInstanceRequestBodySource. - - 表示恢复方式,枚举值: - “backup”,表示使用备份文件恢复,按照此方式恢复时,“type”字段为非必选,“backup_id”必选。 - “timestamp”,表示按时间点恢复,按照此方式恢复时,“type”字段必选,“restore_time”必选。 - - :return: The type of this RestoreExistingInstanceRequestBodySource. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this RestoreExistingInstanceRequestBodySource. - - 表示恢复方式,枚举值: - “backup”,表示使用备份文件恢复,按照此方式恢复时,“type”字段为非必选,“backup_id”必选。 - “timestamp”,表示按时间点恢复,按照此方式恢复时,“type”字段必选,“restore_time”必选。 - - :param type: The type of this RestoreExistingInstanceRequestBodySource. - :type: str - """ - self._type = type - - @property - def backup_id(self): - """Gets the backup_id of this RestoreExistingInstanceRequestBodySource. - - 用于恢复的备份ID。当使用备份文件恢复时需要指定该参数。 - - :return: The backup_id of this RestoreExistingInstanceRequestBodySource. - :rtype: str - """ - return self._backup_id - - @backup_id.setter - def backup_id(self, backup_id): - """Sets the backup_id of this RestoreExistingInstanceRequestBodySource. - - 用于恢复的备份ID。当使用备份文件恢复时需要指定该参数。 - - :param backup_id: The backup_id of this RestoreExistingInstanceRequestBodySource. - :type: str - """ - self._backup_id = backup_id - - @property - def restore_time(self): - """Gets the restore_time of this RestoreExistingInstanceRequestBodySource. - - 恢复数据的时间点,格式为UNIX时间戳,单位是毫秒,时区为UTC。 - - :return: The restore_time of this RestoreExistingInstanceRequestBodySource. - :rtype: int - """ - return self._restore_time - - @restore_time.setter - def restore_time(self, restore_time): - """Sets the restore_time of this RestoreExistingInstanceRequestBodySource. - - 恢复数据的时间点,格式为UNIX时间戳,单位是毫秒,时区为UTC。 - - :param restore_time: The restore_time of this RestoreExistingInstanceRequestBodySource. - :type: int - """ - self._restore_time = restore_time - - @property - def database_name(self): - """Gets the database_name of this RestoreExistingInstanceRequestBodySource. - - 仅适用于SQL Server引擎,当有此参数时表示支持局部恢复和重命名恢复,恢复数据以局部恢复为主。不填写该字段时,默认恢复全部数据库。 - 新数据库名称不可与源实例或目标实例数据库名称重名,新数据库名称为空,默认按照原数据库名进行恢复。 - 新数据库名不能包含rdsadmin、master、msdb、tempdb、model或resource字段(不区分大小写)。 - 数据库名称长度在1~64个字符之间,包含字母、数字、下划线或中划线,不能包含其他特殊字符。 - - :return: The database_name of this RestoreExistingInstanceRequestBodySource. - :rtype: dict(str, str) - """ - return self._database_name - - @database_name.setter - def database_name(self, database_name): - """Sets the database_name of this RestoreExistingInstanceRequestBodySource. - - 仅适用于SQL Server引擎,当有此参数时表示支持局部恢复和重命名恢复,恢复数据以局部恢复为主。不填写该字段时,默认恢复全部数据库。 - 新数据库名称不可与源实例或目标实例数据库名称重名,新数据库名称为空,默认按照原数据库名进行恢复。 - 新数据库名不能包含rdsadmin、master、msdb、tempdb、model或resource字段(不区分大小写)。 - 数据库名称长度在1~64个字符之间,包含字母、数字、下划线或中划线,不能包含其他特殊字符。 - - :param database_name: The database_name of this RestoreExistingInstanceRequestBodySource. - :type: dict(str, str) - """ - self._database_name = database_name - - @property - def restore_all_database(self): - """Gets the restore_all_database of this RestoreExistingInstanceRequestBodySource. - - 该字段仅适用于SQL Server引擎。是否恢复所有数据库,不填写该字段默认为false,不会恢复所有数据库到目标实例。 - 须知: 如果您想恢复所有数据库到已有实例,必须设置restore_all_database为true。 - - :return: The restore_all_database of this RestoreExistingInstanceRequestBodySource. - :rtype: bool - """ - return self._restore_all_database - - @restore_all_database.setter - def restore_all_database(self, restore_all_database): - """Sets the restore_all_database of this RestoreExistingInstanceRequestBodySource. - - 该字段仅适用于SQL Server引擎。是否恢复所有数据库,不填写该字段默认为false,不会恢复所有数据库到目标实例。 - 须知: 如果您想恢复所有数据库到已有实例,必须设置restore_all_database为true。 - - :param restore_all_database: The restore_all_database of this RestoreExistingInstanceRequestBodySource. - :type: bool - """ - self._restore_all_database = restore_all_database - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RestoreExistingInstanceRequestBodySource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_to_existing_instance_request_body_source.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_to_existing_instance_request_body_source.py index 7d8355483..e78471180 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_to_existing_instance_request_body_source.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_to_existing_instance_request_body_source.py @@ -26,7 +26,8 @@ class RestoreToExistingInstanceRequestBodySource: 'type': 'str', 'backup_id': 'str', 'restore_time': 'int', - 'database_name': 'dict(str, str)' + 'database_name': 'dict(str, str)', + 'restore_all_database': 'bool' } attribute_map = { @@ -34,10 +35,11 @@ class RestoreToExistingInstanceRequestBodySource: 'type': 'type', 'backup_id': 'backup_id', 'restore_time': 'restore_time', - 'database_name': 'database_name' + 'database_name': 'database_name', + 'restore_all_database': 'restore_all_database' } - def __init__(self, instance_id=None, type=None, backup_id=None, restore_time=None, database_name=None): + def __init__(self, instance_id=None, type=None, backup_id=None, restore_time=None, database_name=None, restore_all_database=None): """RestoreToExistingInstanceRequestBodySource - a model defined in huaweicloud sdk""" @@ -47,6 +49,7 @@ class RestoreToExistingInstanceRequestBodySource: self._backup_id = None self._restore_time = None self._database_name = None + self._restore_all_database = None self.discriminator = None self.instance_id = instance_id @@ -58,6 +61,8 @@ class RestoreToExistingInstanceRequestBodySource: self.restore_time = restore_time if database_name is not None: self.database_name = database_name + if restore_all_database is not None: + self.restore_all_database = restore_all_database @property def instance_id(self): @@ -169,6 +174,28 @@ class RestoreToExistingInstanceRequestBodySource: """ self._database_name = database_name + @property + def restore_all_database(self): + """Gets the restore_all_database of this RestoreToExistingInstanceRequestBodySource. + + 该字段仅适用于SQL Server引擎。是否恢复所有数据库,不填写该字段默认为false,不会恢复所有数据库到目标实例。 - 须知: 如果您想恢复所有数据库到已有实例,必须设置restore_all_database为true。 + + :return: The restore_all_database of this RestoreToExistingInstanceRequestBodySource. + :rtype: bool + """ + return self._restore_all_database + + @restore_all_database.setter + def restore_all_database(self, restore_all_database): + """Sets the restore_all_database of this RestoreToExistingInstanceRequestBodySource. + + 该字段仅适用于SQL Server引擎。是否恢复所有数据库,不填写该字段默认为false,不会恢复所有数据库到目标实例。 - 须知: 如果您想恢复所有数据库到已有实例,必须设置restore_all_database为true。 + + :param restore_all_database: The restore_all_database of this RestoreToExistingInstanceRequestBodySource. + :type: bool + """ + self._restore_all_database = restore_all_database + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 516cbcb9a..faf2226b5 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index c19ddd4e4..9e1d80ad8 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 8a271b7b9..82290e158 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index a5815674e..ca0e49a0c 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 4bf8f0d6f..05f1f1427 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index 01102e181..d3500de43 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index dbc661733..b22d43c27 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 5857bf4bf..bc3da7f1e 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index 76da62d2d..a6165bd6f 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 9fca665cd..f6d3c6e42 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index e534ae6ce..10bb32581 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 95c66471e..1b66c5197 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 15fc7479f..956bc5d78 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 77c205fa7..77dcf3c58 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 857792f73..9c7423c03 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index 7d6485fd4..279086ea2 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 65d129e28..dd00b17d5 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 4cada88e6..4ffbbae63 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-vss/setup.py b/huaweicloud-sdk-vss/setup.py index 880acb8b7..32b07865f 100644 --- a/huaweicloud-sdk-vss/setup.py +++ b/huaweicloud-sdk-vss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvss" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 5db461550..c2ff4193b 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.0.76" +VERSION = "3.0.77" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"