huaweicloudsdkcbr 3.0.43rc0__py3-none-any.whl → 3.1.161__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcbr/v1/__init__.py +110 -5
- huaweicloudsdkcbr/v1/cbr_async_client.py +3638 -1487
- huaweicloudsdkcbr/v1/cbr_client.py +3639 -1489
- huaweicloudsdkcbr/v1/model/__init__.py +109 -3
- huaweicloudsdkcbr/v1/model/add_agent_path_request.py +139 -0
- huaweicloudsdkcbr/v1/model/add_agent_path_response.py +145 -0
- huaweicloudsdkcbr/v1/model/add_member_request.py +26 -19
- huaweicloudsdkcbr/v1/model/add_member_response.py +27 -19
- huaweicloudsdkcbr/v1/model/add_members_req.py +52 -17
- huaweicloudsdkcbr/v1/model/add_vault_resource_request.py +26 -19
- huaweicloudsdkcbr/v1/model/add_vault_resource_response.py +19 -13
- huaweicloudsdkcbr/v1/model/agent.py +433 -0
- huaweicloudsdkcbr/v1/model/agent_add_path_req.py +143 -0
- huaweicloudsdkcbr/v1/model/agent_register.py +285 -0
- huaweicloudsdkcbr/v1/model/agent_register_req.py +110 -0
- huaweicloudsdkcbr/v1/model/agent_remove_path_req.py +114 -0
- huaweicloudsdkcbr/v1/model/agent_update.py +114 -0
- huaweicloudsdkcbr/v1/model/agent_update_req.py +110 -0
- huaweicloudsdkcbr/v1/model/associate_vault_policy_request.py +26 -19
- huaweicloudsdkcbr/v1/model/associate_vault_policy_response.py +20 -16
- huaweicloudsdkcbr/v1/model/backup_extend_info.py +91 -68
- huaweicloudsdkcbr/v1/model/backup_replicate_req.py +19 -16
- huaweicloudsdkcbr/v1/model/backup_replicate_req_body.py +43 -28
- huaweicloudsdkcbr/v1/model/backup_replicate_resp_body.py +55 -36
- huaweicloudsdkcbr/v1/model/backup_resp.py +246 -87
- huaweicloudsdkcbr/v1/model/backup_restore.py +67 -29
- huaweicloudsdkcbr/v1/model/backup_restore_req.py +19 -16
- huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +25 -18
- huaweicloudsdkcbr/v1/model/backup_sync.py +53 -34
- huaweicloudsdkcbr/v1/model/backup_sync_req.py +19 -14
- huaweicloudsdkcbr/v1/model/backup_sync_resp_body.py +23 -16
- huaweicloudsdkcbr/v1/model/backup_update.py +115 -0
- huaweicloudsdkcbr/v1/model/backup_update_req.py +111 -0
- huaweicloudsdkcbr/v1/model/batch_create_and_delete_vault_tags_request.py +26 -19
- huaweicloudsdkcbr/v1/model/batch_create_and_delete_vault_tags_response.py +14 -10
- huaweicloudsdkcbr/v1/model/batch_update_vault_request.py +111 -0
- huaweicloudsdkcbr/v1/model/batch_update_vault_request_body.py +110 -0
- huaweicloudsdkcbr/v1/model/batch_update_vault_response.py +116 -0
- huaweicloudsdkcbr/v1/model/billing.py +121 -61
- huaweicloudsdkcbr/v1/model/billing_create.py +95 -66
- huaweicloudsdkcbr/v1/model/billing_update.py +23 -16
- huaweicloudsdkcbr/v1/model/bind_rules_tags.py +142 -0
- huaweicloudsdkcbr/v1/model/bulk_create_and_delete_vault_tags_req.py +30 -21
- huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
- huaweicloudsdkcbr/v1/model/cbc_order_result.py +200 -0
- huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
- huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +199 -0
- huaweicloudsdkcbr/v1/model/cbc_update.py +196 -0
- huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
- huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
- huaweicloudsdkcbr/v1/model/change_to_period.py +286 -0
- huaweicloudsdkcbr/v1/model/change_vault_charge_mode_request.py +111 -0
- huaweicloudsdkcbr/v1/model/change_vault_charge_mode_response.py +174 -0
- huaweicloudsdkcbr/v1/model/check_agent_request.py +111 -0
- huaweicloudsdkcbr/v1/model/check_agent_response.py +116 -0
- huaweicloudsdkcbr/v1/model/checkpoint_create.py +47 -36
- huaweicloudsdkcbr/v1/model/checkpoint_create_skipped_resource.py +38 -25
- huaweicloudsdkcbr/v1/model/checkpoint_extra_info_resp.py +28 -19
- huaweicloudsdkcbr/v1/model/checkpoint_param.py +78 -34
- huaweicloudsdkcbr/v1/model/checkpoint_plan_create.py +35 -24
- huaweicloudsdkcbr/v1/model/checkpoint_replicate_param.py +43 -28
- huaweicloudsdkcbr/v1/model/checkpoint_replicate_req.py +19 -16
- huaweicloudsdkcbr/v1/model/checkpoint_replicate_resp_body.py +54 -35
- huaweicloudsdkcbr/v1/model/checkpoint_replicate_respbackups.py +23 -16
- huaweicloudsdkcbr/v1/model/checkpoint_resource_resp.py +57 -38
- huaweicloudsdkcbr/v1/model/{billbing_create_extra_info.py → combined_order.py} +65 -29
- huaweicloudsdkcbr/v1/model/copy_backup_request.py +26 -19
- huaweicloudsdkcbr/v1/model/copy_backup_response.py +20 -16
- huaweicloudsdkcbr/v1/model/copy_checkpoint_request.py +19 -16
- huaweicloudsdkcbr/v1/model/copy_checkpoint_response.py +20 -16
- huaweicloudsdkcbr/v1/model/create_checkpoint_request.py +19 -16
- huaweicloudsdkcbr/v1/model/create_checkpoint_response.py +20 -16
- huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
- huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/create_policy_request.py +19 -16
- huaweicloudsdkcbr/v1/model/create_policy_response.py +20 -16
- huaweicloudsdkcbr/v1/model/create_post_paid_vault_request.py +111 -0
- huaweicloudsdkcbr/v1/model/create_post_paid_vault_response.py +203 -0
- huaweicloudsdkcbr/v1/model/create_vault_request.py +19 -16
- huaweicloudsdkcbr/v1/model/create_vault_response.py +21 -17
- huaweicloudsdkcbr/v1/model/create_vault_tags_request.py +26 -19
- huaweicloudsdkcbr/v1/model/create_vault_tags_response.py +14 -10
- huaweicloudsdkcbr/v1/model/delete_backup_request.py +20 -13
- huaweicloudsdkcbr/v1/model/delete_backup_response.py +14 -10
- huaweicloudsdkcbr/v1/model/delete_member_request.py +27 -16
- huaweicloudsdkcbr/v1/model/delete_member_response.py +14 -10
- huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
- huaweicloudsdkcbr/v1/model/delete_policy_request.py +20 -13
- huaweicloudsdkcbr/v1/model/delete_policy_response.py +14 -10
- huaweicloudsdkcbr/v1/model/delete_vault_request.py +20 -13
- huaweicloudsdkcbr/v1/model/delete_vault_response.py +14 -10
- huaweicloudsdkcbr/v1/model/delete_vault_tag_request.py +27 -16
- huaweicloudsdkcbr/v1/model/delete_vault_tag_response.py +14 -10
- huaweicloudsdkcbr/v1/model/disassociate_vault_policy_request.py +26 -19
- huaweicloudsdkcbr/v1/model/disassociate_vault_policy_response.py +20 -16
- huaweicloudsdkcbr/v1/model/domain_migrate.py +142 -0
- huaweicloudsdkcbr/v1/model/domain_migrate_project_status.py +286 -0
- huaweicloudsdkcbr/v1/model/{vault_resource_intances_resp.py → domain_projects_info.py} +54 -49
- huaweicloudsdkcbr/v1/model/exclude_path.py +144 -0
- huaweicloudsdkcbr/v1/model/image_data.py +20 -15
- huaweicloudsdkcbr/v1/model/import_backup_request.py +19 -16
- huaweicloudsdkcbr/v1/model/import_backup_response.py +20 -14
- huaweicloudsdkcbr/v1/model/import_checkpoint_request.py +111 -0
- huaweicloudsdkcbr/v1/model/import_checkpoint_response.py +112 -0
- huaweicloudsdkcbr/v1/model/instances_resource_detail.py +111 -0
- huaweicloudsdkcbr/v1/model/list_agent_request.py +202 -0
- huaweicloudsdkcbr/v1/model/list_agent_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_backups_request.py +221 -76
- huaweicloudsdkcbr/v1/model/list_backups_response.py +86 -20
- huaweicloudsdkcbr/v1/model/list_domain_projects_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_domain_projects_response.py +116 -0
- huaweicloudsdkcbr/v1/model/list_external_vault_request.py +316 -0
- huaweicloudsdkcbr/v1/model/list_external_vault_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_op_logs_request.py +97 -46
- huaweicloudsdkcbr/v1/model/list_op_logs_response.py +86 -20
- huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +172 -0
- huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
- huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
- huaweicloudsdkcbr/v1/model/list_policies_request.py +27 -16
- huaweicloudsdkcbr/v1/model/list_policies_response.py +27 -19
- huaweicloudsdkcbr/v1/model/list_projects_request.py +84 -0
- huaweicloudsdkcbr/v1/model/list_projects_response.py +141 -0
- huaweicloudsdkcbr/v1/model/list_protectable_request.py +69 -34
- huaweicloudsdkcbr/v1/model/list_protectable_response.py +20 -14
- huaweicloudsdkcbr/v1/model/list_vault_request.py +92 -45
- huaweicloudsdkcbr/v1/model/list_vault_response.py +86 -20
- huaweicloudsdkcbr/v1/model/match.py +23 -16
- huaweicloudsdkcbr/v1/model/member.py +53 -34
- huaweicloudsdkcbr/v1/model/migrate_domain_request.py +111 -0
- huaweicloudsdkcbr/v1/model/migrate_domain_response.py +112 -0
- huaweicloudsdkcbr/v1/model/migrate_vault_resource_request.py +24 -21
- huaweicloudsdkcbr/v1/model/migrate_vault_resource_response.py +19 -13
- huaweicloudsdkcbr/v1/model/op_error_info.py +23 -16
- huaweicloudsdkcbr/v1/model/op_extend_info_bckup.py +43 -28
- huaweicloudsdkcbr/v1/model/op_extend_info_common.py +28 -19
- huaweicloudsdkcbr/v1/model/op_extend_info_delete.py +23 -16
- huaweicloudsdkcbr/v1/model/op_extend_info_remove_resources.py +29 -20
- huaweicloudsdkcbr/v1/model/op_extend_info_replication.py +63 -40
- huaweicloudsdkcbr/v1/model/op_extend_info_restore.py +33 -22
- huaweicloudsdkcbr/v1/model/op_extend_info_sync.py +28 -19
- huaweicloudsdkcbr/v1/model/op_extend_info_vault_delete.py +27 -20
- huaweicloudsdkcbr/v1/model/op_extra_info.py +67 -64
- huaweicloudsdkcbr/v1/model/operation_log.py +90 -61
- huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
- huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
- huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
- huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
- huaweicloudsdkcbr/v1/model/path.py +231 -0
- huaweicloudsdkcbr/v1/model/policy.py +51 -38
- huaweicloudsdkcbr/v1/model/policy_associate_vault.py +23 -16
- huaweicloudsdkcbr/v1/model/policy_create.py +40 -31
- huaweicloudsdkcbr/v1/model/policy_create_req.py +19 -16
- huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +20 -15
- huaweicloudsdkcbr/v1/model/policy_trigger_properties_resp.py +25 -18
- huaweicloudsdkcbr/v1/model/policy_trigger_req.py +19 -16
- huaweicloudsdkcbr/v1/model/policy_trigger_resp.py +34 -25
- huaweicloudsdkcbr/v1/model/policy_update.py +35 -28
- huaweicloudsdkcbr/v1/model/policy_update_req.py +19 -16
- huaweicloudsdkcbr/v1/model/policyo_od_create.py +97 -45
- huaweicloudsdkcbr/v1/model/projects_list_info.py +314 -0
- huaweicloudsdkcbr/v1/model/protectable_agent_req.py +114 -0
- huaweicloudsdkcbr/v1/model/protectable_agent_status.py +260 -0
- huaweicloudsdkcbr/v1/model/protectable_agent_status_resource.py +171 -0
- huaweicloudsdkcbr/v1/model/protectable_replication_capabilities_resp_region.py +23 -16
- huaweicloudsdkcbr/v1/model/protectable_result.py +68 -30
- huaweicloudsdkcbr/v1/model/protectables_resp.py +58 -41
- huaweicloudsdkcbr/v1/model/register_agent_request.py +111 -0
- huaweicloudsdkcbr/v1/model/register_agent_response.py +112 -0
- huaweicloudsdkcbr/v1/model/remove_agent_path_request.py +139 -0
- huaweicloudsdkcbr/v1/model/remove_agent_path_response.py +145 -0
- huaweicloudsdkcbr/v1/model/remove_vault_resource_request.py +26 -19
- huaweicloudsdkcbr/v1/model/remove_vault_resource_response.py +19 -13
- huaweicloudsdkcbr/v1/model/replication_record_get.py +85 -58
- huaweicloudsdkcbr/v1/model/replication_records_extra_info.py +231 -0
- huaweicloudsdkcbr/v1/model/resource.py +38 -28
- huaweicloudsdkcbr/v1/model/resource_create.py +36 -27
- huaweicloudsdkcbr/v1/model/resource_extra_info.py +28 -21
- huaweicloudsdkcbr/v1/model/resource_extra_info_include_volumes.py +23 -16
- huaweicloudsdkcbr/v1/model/resource_resp.py +88 -42
- huaweicloudsdkcbr/v1/model/restore_backup_request.py +26 -19
- huaweicloudsdkcbr/v1/model/restore_backup_response.py +14 -10
- huaweicloudsdkcbr/v1/model/restore_details.py +114 -0
- huaweicloudsdkcbr/v1/model/self_links_info.py +115 -0
- huaweicloudsdkcbr/v1/model/set_vault_resource_request.py +139 -0
- huaweicloudsdkcbr/v1/model/set_vault_resource_response.py +116 -0
- huaweicloudsdkcbr/v1/model/show_agent_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_agent_response.py +112 -0
- huaweicloudsdkcbr/v1/model/show_backup_request.py +20 -13
- huaweicloudsdkcbr/v1/model/show_backup_response.py +21 -17
- huaweicloudsdkcbr/v1/model/show_checkpoint_request.py +20 -13
- huaweicloudsdkcbr/v1/model/show_checkpoint_response.py +20 -16
- huaweicloudsdkcbr/v1/model/show_domain_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_domain_response.py +203 -0
- huaweicloudsdkcbr/v1/model/show_member_detail_request.py +27 -16
- huaweicloudsdkcbr/v1/model/show_member_detail_response.py +20 -16
- huaweicloudsdkcbr/v1/model/show_members_detail_request.py +76 -37
- huaweicloudsdkcbr/v1/model/show_members_detail_response.py +27 -19
- huaweicloudsdkcbr/v1/model/show_metadata_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_metadata_response.py +319 -0
- huaweicloudsdkcbr/v1/model/show_migrate_status_request.py +115 -0
- huaweicloudsdkcbr/v1/model/show_migrate_status_response.py +145 -0
- huaweicloudsdkcbr/v1/model/show_op_log_request.py +20 -13
- huaweicloudsdkcbr/v1/model/show_op_log_response.py +20 -16
- huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
- huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/show_policy_request.py +20 -13
- huaweicloudsdkcbr/v1/model/show_policy_response.py +20 -16
- huaweicloudsdkcbr/v1/model/show_protectable_request.py +27 -16
- huaweicloudsdkcbr/v1/model/show_protectable_response.py +20 -16
- huaweicloudsdkcbr/v1/model/show_replication_capabilities_request.py +13 -10
- huaweicloudsdkcbr/v1/model/show_replication_capabilities_response.py +20 -14
- huaweicloudsdkcbr/v1/model/show_storage_usage_request.py +202 -0
- huaweicloudsdkcbr/v1/model/show_storage_usage_response.py +145 -0
- huaweicloudsdkcbr/v1/model/show_summary_request.py +84 -0
- huaweicloudsdkcbr/v1/model/show_summary_response.py +145 -0
- huaweicloudsdkcbr/v1/model/show_vault_project_tag_request.py +13 -10
- huaweicloudsdkcbr/v1/model/show_vault_project_tag_response.py +20 -14
- huaweicloudsdkcbr/v1/model/show_vault_request.py +20 -13
- huaweicloudsdkcbr/v1/model/show_vault_resource_instances_request.py +19 -16
- huaweicloudsdkcbr/v1/model/show_vault_resource_instances_response.py +25 -17
- huaweicloudsdkcbr/v1/model/show_vault_response.py +20 -16
- huaweicloudsdkcbr/v1/model/show_vault_tag_request.py +20 -13
- huaweicloudsdkcbr/v1/model/show_vault_tag_response.py +26 -18
- huaweicloudsdkcbr/v1/model/storage_usage.py +257 -0
- huaweicloudsdkcbr/v1/model/sync_param.py +142 -0
- huaweicloudsdkcbr/v1/model/sync_req.py +110 -0
- huaweicloudsdkcbr/v1/model/sync_resp_body.py +142 -0
- huaweicloudsdkcbr/v1/model/sys_tag.py +25 -18
- huaweicloudsdkcbr/v1/model/sys_tags.py +23 -16
- huaweicloudsdkcbr/v1/model/tag.py +26 -20
- huaweicloudsdkcbr/v1/model/tag_resource.py +44 -35
- huaweicloudsdkcbr/v1/model/tags_req.py +23 -16
- huaweicloudsdkcbr/v1/model/tags_resp.py +23 -16
- huaweicloudsdkcbr/v1/model/unregister_agent_request.py +114 -0
- huaweicloudsdkcbr/v1/model/unregister_agent_response.py +85 -0
- huaweicloudsdkcbr/v1/model/update_agent_request.py +135 -0
- huaweicloudsdkcbr/v1/model/update_agent_response.py +112 -0
- huaweicloudsdkcbr/v1/model/update_backup_request.py +139 -0
- huaweicloudsdkcbr/v1/model/update_backup_response.py +112 -0
- huaweicloudsdkcbr/v1/model/update_member.py +23 -16
- huaweicloudsdkcbr/v1/model/update_member_status_request.py +33 -22
- huaweicloudsdkcbr/v1/model/update_member_status_response.py +20 -16
- huaweicloudsdkcbr/v1/model/update_order_request.py +139 -0
- huaweicloudsdkcbr/v1/model/update_order_response.py +174 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
- huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
- huaweicloudsdkcbr/v1/model/update_policy_request.py +26 -19
- huaweicloudsdkcbr/v1/model/update_policy_response.py +20 -16
- huaweicloudsdkcbr/v1/model/update_vault_request.py +26 -19
- huaweicloudsdkcbr/v1/model/update_vault_response.py +20 -16
- huaweicloudsdkcbr/v1/model/vault.py +236 -93
- huaweicloudsdkcbr/v1/model/vault_add_resource_req.py +19 -14
- huaweicloudsdkcbr/v1/model/vault_associate.py +59 -22
- huaweicloudsdkcbr/v1/model/vault_backup.py +24 -19
- huaweicloudsdkcbr/v1/model/vault_backup_req.py +19 -16
- huaweicloudsdkcbr/v1/model/vault_batch_update.py +144 -0
- huaweicloudsdkcbr/v1/model/vault_bind_rules.py +22 -17
- huaweicloudsdkcbr/v1/model/vault_create.py +246 -53
- huaweicloudsdkcbr/v1/model/vault_create_parameters.py +111 -0
- huaweicloudsdkcbr/v1/model/vault_create_req.py +19 -16
- huaweicloudsdkcbr/v1/model/vault_create_resource.py +797 -0
- huaweicloudsdkcbr/v1/model/vault_dissociate.py +18 -13
- huaweicloudsdkcbr/v1/model/vault_get.py +256 -108
- huaweicloudsdkcbr/v1/model/vault_migrate_resource_req.py +23 -16
- huaweicloudsdkcbr/v1/model/vault_order.py +478 -0
- huaweicloudsdkcbr/v1/model/vault_order_create_reqs.py +110 -0
- huaweicloudsdkcbr/v1/model/vault_policy_resp.py +28 -19
- huaweicloudsdkcbr/v1/model/vault_remove_resource_req.py +20 -15
- huaweicloudsdkcbr/v1/model/vault_resource_instances_req.py +106 -52
- huaweicloudsdkcbr/v1/model/vault_set_resource_req.py +142 -0
- huaweicloudsdkcbr/v1/model/vault_tags_create_req.py +19 -16
- huaweicloudsdkcbr/v1/model/vault_update.py +130 -34
- huaweicloudsdkcbr/v1/model/vault_update_req.py +19 -16
- huaweicloudsdkcbr/v1/region/cbr_region.py +119 -45
- {huaweicloudsdkcbr-3.0.43rc0.dist-info → huaweicloudsdkcbr-3.1.161.dist-info}/METADATA +9 -9
- huaweicloudsdkcbr-3.1.161.dist-info/RECORD +285 -0
- {huaweicloudsdkcbr-3.0.43rc0.dist-info → huaweicloudsdkcbr-3.1.161.dist-info}/WHEEL +1 -1
- huaweicloudsdkcbr/v1/model/backup_detail.py +0 -654
- huaweicloudsdkcbr-3.0.43rc0.dist-info/RECORD +0 -179
- {huaweicloudsdkcbr-3.0.43rc0.dist-info → huaweicloudsdkcbr-3.1.161.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.0.43rc0.dist-info → huaweicloudsdkcbr-3.1.161.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProtectableAgentReq:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'agent_status': 'list[ProtectableAgentStatusResource]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'agent_status': 'agent_status'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, agent_status=None):
|
28
|
+
r"""ProtectableAgentReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param agent_status: 查询参数列表
|
33
|
+
:type agent_status: list[:class:`huaweicloudsdkcbr.v1.ProtectableAgentStatusResource`]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._agent_status = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.agent_status = agent_status
|
42
|
+
|
43
|
+
@property
|
44
|
+
def agent_status(self):
|
45
|
+
r"""Gets the agent_status of this ProtectableAgentReq.
|
46
|
+
|
47
|
+
查询参数列表
|
48
|
+
|
49
|
+
:return: The agent_status of this ProtectableAgentReq.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkcbr.v1.ProtectableAgentStatusResource`]
|
51
|
+
"""
|
52
|
+
return self._agent_status
|
53
|
+
|
54
|
+
@agent_status.setter
|
55
|
+
def agent_status(self, agent_status):
|
56
|
+
r"""Sets the agent_status of this ProtectableAgentReq.
|
57
|
+
|
58
|
+
查询参数列表
|
59
|
+
|
60
|
+
:param agent_status: The agent_status of this ProtectableAgentReq.
|
61
|
+
:type agent_status: list[:class:`huaweicloudsdkcbr.v1.ProtectableAgentStatusResource`]
|
62
|
+
"""
|
63
|
+
self._agent_status = agent_status
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ProtectableAgentReq):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProtectableAgentStatus:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'code': 'int',
|
21
|
+
'installed': 'bool',
|
22
|
+
'is_old': 'bool',
|
23
|
+
'message': 'str',
|
24
|
+
'resource_id': 'str',
|
25
|
+
'version': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'code': 'code',
|
30
|
+
'installed': 'installed',
|
31
|
+
'is_old': 'is_old',
|
32
|
+
'message': 'message',
|
33
|
+
'resource_id': 'resource_id',
|
34
|
+
'version': 'version'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, code=None, installed=None, is_old=None, message=None, resource_id=None, version=None):
|
38
|
+
r"""ProtectableAgentStatus
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param code: agent无法连接的错误码
|
43
|
+
:type code: int
|
44
|
+
:param installed: agent是否安装
|
45
|
+
:type installed: bool
|
46
|
+
:param is_old: agent是否为老版本
|
47
|
+
:type is_old: bool
|
48
|
+
:param message: agent无法连接的错误信息
|
49
|
+
:type message: str
|
50
|
+
:param resource_id: 资源ID
|
51
|
+
:type resource_id: str
|
52
|
+
:param version: agent版本号
|
53
|
+
:type version: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._code = None
|
59
|
+
self._installed = None
|
60
|
+
self._is_old = None
|
61
|
+
self._message = None
|
62
|
+
self._resource_id = None
|
63
|
+
self._version = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if code is not None:
|
67
|
+
self.code = code
|
68
|
+
if installed is not None:
|
69
|
+
self.installed = installed
|
70
|
+
if is_old is not None:
|
71
|
+
self.is_old = is_old
|
72
|
+
if message is not None:
|
73
|
+
self.message = message
|
74
|
+
if resource_id is not None:
|
75
|
+
self.resource_id = resource_id
|
76
|
+
if version is not None:
|
77
|
+
self.version = version
|
78
|
+
|
79
|
+
@property
|
80
|
+
def code(self):
|
81
|
+
r"""Gets the code of this ProtectableAgentStatus.
|
82
|
+
|
83
|
+
agent无法连接的错误码
|
84
|
+
|
85
|
+
:return: The code of this ProtectableAgentStatus.
|
86
|
+
:rtype: int
|
87
|
+
"""
|
88
|
+
return self._code
|
89
|
+
|
90
|
+
@code.setter
|
91
|
+
def code(self, code):
|
92
|
+
r"""Sets the code of this ProtectableAgentStatus.
|
93
|
+
|
94
|
+
agent无法连接的错误码
|
95
|
+
|
96
|
+
:param code: The code of this ProtectableAgentStatus.
|
97
|
+
:type code: int
|
98
|
+
"""
|
99
|
+
self._code = code
|
100
|
+
|
101
|
+
@property
|
102
|
+
def installed(self):
|
103
|
+
r"""Gets the installed of this ProtectableAgentStatus.
|
104
|
+
|
105
|
+
agent是否安装
|
106
|
+
|
107
|
+
:return: The installed of this ProtectableAgentStatus.
|
108
|
+
:rtype: bool
|
109
|
+
"""
|
110
|
+
return self._installed
|
111
|
+
|
112
|
+
@installed.setter
|
113
|
+
def installed(self, installed):
|
114
|
+
r"""Sets the installed of this ProtectableAgentStatus.
|
115
|
+
|
116
|
+
agent是否安装
|
117
|
+
|
118
|
+
:param installed: The installed of this ProtectableAgentStatus.
|
119
|
+
:type installed: bool
|
120
|
+
"""
|
121
|
+
self._installed = installed
|
122
|
+
|
123
|
+
@property
|
124
|
+
def is_old(self):
|
125
|
+
r"""Gets the is_old of this ProtectableAgentStatus.
|
126
|
+
|
127
|
+
agent是否为老版本
|
128
|
+
|
129
|
+
:return: The is_old of this ProtectableAgentStatus.
|
130
|
+
:rtype: bool
|
131
|
+
"""
|
132
|
+
return self._is_old
|
133
|
+
|
134
|
+
@is_old.setter
|
135
|
+
def is_old(self, is_old):
|
136
|
+
r"""Sets the is_old of this ProtectableAgentStatus.
|
137
|
+
|
138
|
+
agent是否为老版本
|
139
|
+
|
140
|
+
:param is_old: The is_old of this ProtectableAgentStatus.
|
141
|
+
:type is_old: bool
|
142
|
+
"""
|
143
|
+
self._is_old = is_old
|
144
|
+
|
145
|
+
@property
|
146
|
+
def message(self):
|
147
|
+
r"""Gets the message of this ProtectableAgentStatus.
|
148
|
+
|
149
|
+
agent无法连接的错误信息
|
150
|
+
|
151
|
+
:return: The message of this ProtectableAgentStatus.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._message
|
155
|
+
|
156
|
+
@message.setter
|
157
|
+
def message(self, message):
|
158
|
+
r"""Sets the message of this ProtectableAgentStatus.
|
159
|
+
|
160
|
+
agent无法连接的错误信息
|
161
|
+
|
162
|
+
:param message: The message of this ProtectableAgentStatus.
|
163
|
+
:type message: str
|
164
|
+
"""
|
165
|
+
self._message = message
|
166
|
+
|
167
|
+
@property
|
168
|
+
def resource_id(self):
|
169
|
+
r"""Gets the resource_id of this ProtectableAgentStatus.
|
170
|
+
|
171
|
+
资源ID
|
172
|
+
|
173
|
+
:return: The resource_id of this ProtectableAgentStatus.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._resource_id
|
177
|
+
|
178
|
+
@resource_id.setter
|
179
|
+
def resource_id(self, resource_id):
|
180
|
+
r"""Sets the resource_id of this ProtectableAgentStatus.
|
181
|
+
|
182
|
+
资源ID
|
183
|
+
|
184
|
+
:param resource_id: The resource_id of this ProtectableAgentStatus.
|
185
|
+
:type resource_id: str
|
186
|
+
"""
|
187
|
+
self._resource_id = resource_id
|
188
|
+
|
189
|
+
@property
|
190
|
+
def version(self):
|
191
|
+
r"""Gets the version of this ProtectableAgentStatus.
|
192
|
+
|
193
|
+
agent版本号
|
194
|
+
|
195
|
+
:return: The version of this ProtectableAgentStatus.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._version
|
199
|
+
|
200
|
+
@version.setter
|
201
|
+
def version(self, version):
|
202
|
+
r"""Sets the version of this ProtectableAgentStatus.
|
203
|
+
|
204
|
+
agent版本号
|
205
|
+
|
206
|
+
:param version: The version of this ProtectableAgentStatus.
|
207
|
+
:type version: str
|
208
|
+
"""
|
209
|
+
self._version = version
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ProtectableAgentStatus):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProtectableAgentStatusResource:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'resource_id': 'str',
|
21
|
+
'resource_name': 'str',
|
22
|
+
'resource_type': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'resource_id': 'resource_id',
|
27
|
+
'resource_name': 'resource_name',
|
28
|
+
'resource_type': 'resource_type'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, resource_id=None, resource_name=None, resource_type=None):
|
32
|
+
r"""ProtectableAgentStatusResource
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param resource_id: 待检查资源ID
|
37
|
+
:type resource_id: str
|
38
|
+
:param resource_name: 待检查资源name
|
39
|
+
:type resource_name: str
|
40
|
+
:param resource_type: 待检查的资源类型。当前支持的取值包含两个:OS::Nova::Server,该值代表保护的资源为云服务器,OS::Ironic::BareMetalServer,该值代表保护的资源为裸金属服务器。
|
41
|
+
:type resource_type: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._resource_id = None
|
47
|
+
self._resource_name = None
|
48
|
+
self._resource_type = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.resource_id = resource_id
|
52
|
+
if resource_name is not None:
|
53
|
+
self.resource_name = resource_name
|
54
|
+
self.resource_type = resource_type
|
55
|
+
|
56
|
+
@property
|
57
|
+
def resource_id(self):
|
58
|
+
r"""Gets the resource_id of this ProtectableAgentStatusResource.
|
59
|
+
|
60
|
+
待检查资源ID
|
61
|
+
|
62
|
+
:return: The resource_id of this ProtectableAgentStatusResource.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._resource_id
|
66
|
+
|
67
|
+
@resource_id.setter
|
68
|
+
def resource_id(self, resource_id):
|
69
|
+
r"""Sets the resource_id of this ProtectableAgentStatusResource.
|
70
|
+
|
71
|
+
待检查资源ID
|
72
|
+
|
73
|
+
:param resource_id: The resource_id of this ProtectableAgentStatusResource.
|
74
|
+
:type resource_id: str
|
75
|
+
"""
|
76
|
+
self._resource_id = resource_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def resource_name(self):
|
80
|
+
r"""Gets the resource_name of this ProtectableAgentStatusResource.
|
81
|
+
|
82
|
+
待检查资源name
|
83
|
+
|
84
|
+
:return: The resource_name of this ProtectableAgentStatusResource.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._resource_name
|
88
|
+
|
89
|
+
@resource_name.setter
|
90
|
+
def resource_name(self, resource_name):
|
91
|
+
r"""Sets the resource_name of this ProtectableAgentStatusResource.
|
92
|
+
|
93
|
+
待检查资源name
|
94
|
+
|
95
|
+
:param resource_name: The resource_name of this ProtectableAgentStatusResource.
|
96
|
+
:type resource_name: str
|
97
|
+
"""
|
98
|
+
self._resource_name = resource_name
|
99
|
+
|
100
|
+
@property
|
101
|
+
def resource_type(self):
|
102
|
+
r"""Gets the resource_type of this ProtectableAgentStatusResource.
|
103
|
+
|
104
|
+
待检查的资源类型。当前支持的取值包含两个:OS::Nova::Server,该值代表保护的资源为云服务器,OS::Ironic::BareMetalServer,该值代表保护的资源为裸金属服务器。
|
105
|
+
|
106
|
+
:return: The resource_type of this ProtectableAgentStatusResource.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._resource_type
|
110
|
+
|
111
|
+
@resource_type.setter
|
112
|
+
def resource_type(self, resource_type):
|
113
|
+
r"""Sets the resource_type of this ProtectableAgentStatusResource.
|
114
|
+
|
115
|
+
待检查的资源类型。当前支持的取值包含两个:OS::Nova::Server,该值代表保护的资源为云服务器,OS::Ironic::BareMetalServer,该值代表保护的资源为裸金属服务器。
|
116
|
+
|
117
|
+
:param resource_type: The resource_type of this ProtectableAgentStatusResource.
|
118
|
+
:type resource_type: str
|
119
|
+
"""
|
120
|
+
self._resource_type = resource_type
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, ProtectableAgentStatusResource):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|
@@ -1,17 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import pprint
|
4
|
-
import re
|
5
|
-
|
6
3
|
import six
|
7
4
|
|
8
|
-
|
9
|
-
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class ProtectableReplicationCapabilitiesRespRegion:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class ProtectableReplicationCapabilitiesRespRegion:
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
20
15
|
and the value is json key in definition.
|
21
16
|
"""
|
22
|
-
|
23
17
|
sensitive_list = []
|
24
18
|
|
25
19
|
openapi_types = {
|
@@ -33,7 +27,15 @@ class ProtectableReplicationCapabilitiesRespRegion:
|
|
33
27
|
}
|
34
28
|
|
35
29
|
def __init__(self, name=None, replication_destinations=None):
|
36
|
-
"""ProtectableReplicationCapabilitiesRespRegion
|
30
|
+
r"""ProtectableReplicationCapabilitiesRespRegion
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param name: 云服务所在的区域
|
35
|
+
:type name: str
|
36
|
+
:param replication_destinations: 支持复制的目标区域列表
|
37
|
+
:type replication_destinations: list[str]
|
38
|
+
"""
|
37
39
|
|
38
40
|
|
39
41
|
|
@@ -46,7 +48,7 @@ class ProtectableReplicationCapabilitiesRespRegion:
|
|
46
48
|
|
47
49
|
@property
|
48
50
|
def name(self):
|
49
|
-
"""Gets the name of this ProtectableReplicationCapabilitiesRespRegion.
|
51
|
+
r"""Gets the name of this ProtectableReplicationCapabilitiesRespRegion.
|
50
52
|
|
51
53
|
云服务所在的区域
|
52
54
|
|
@@ -57,18 +59,18 @@ class ProtectableReplicationCapabilitiesRespRegion:
|
|
57
59
|
|
58
60
|
@name.setter
|
59
61
|
def name(self, name):
|
60
|
-
"""Sets the name of this ProtectableReplicationCapabilitiesRespRegion.
|
62
|
+
r"""Sets the name of this ProtectableReplicationCapabilitiesRespRegion.
|
61
63
|
|
62
64
|
云服务所在的区域
|
63
65
|
|
64
66
|
:param name: The name of this ProtectableReplicationCapabilitiesRespRegion.
|
65
|
-
:type: str
|
67
|
+
:type name: str
|
66
68
|
"""
|
67
69
|
self._name = name
|
68
70
|
|
69
71
|
@property
|
70
72
|
def replication_destinations(self):
|
71
|
-
"""Gets the replication_destinations of this ProtectableReplicationCapabilitiesRespRegion.
|
73
|
+
r"""Gets the replication_destinations of this ProtectableReplicationCapabilitiesRespRegion.
|
72
74
|
|
73
75
|
支持复制的目标区域列表
|
74
76
|
|
@@ -79,12 +81,12 @@ class ProtectableReplicationCapabilitiesRespRegion:
|
|
79
81
|
|
80
82
|
@replication_destinations.setter
|
81
83
|
def replication_destinations(self, replication_destinations):
|
82
|
-
"""Sets the replication_destinations of this ProtectableReplicationCapabilitiesRespRegion.
|
84
|
+
r"""Sets the replication_destinations of this ProtectableReplicationCapabilitiesRespRegion.
|
83
85
|
|
84
86
|
支持复制的目标区域列表
|
85
87
|
|
86
88
|
:param replication_destinations: The replication_destinations of this ProtectableReplicationCapabilitiesRespRegion.
|
87
|
-
:type: list[str]
|
89
|
+
:type replication_destinations: list[str]
|
88
90
|
"""
|
89
91
|
self._replication_destinations = replication_destinations
|
90
92
|
|
@@ -117,10 +119,15 @@ class ProtectableReplicationCapabilitiesRespRegion:
|
|
117
119
|
|
118
120
|
def to_str(self):
|
119
121
|
"""Returns the string representation of the model"""
|
120
|
-
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
121
128
|
|
122
129
|
def __repr__(self):
|
123
|
-
"""For `print`
|
130
|
+
"""For `print`"""
|
124
131
|
return self.to_str()
|
125
132
|
|
126
133
|
def __eq__(self, other):
|