huaweicloudsdkcbr 3.0.43rc0__py3-none-any.whl → 3.1.160__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.160.dist-info}/METADATA +9 -9
- huaweicloudsdkcbr-3.1.160.dist-info/RECORD +285 -0
- {huaweicloudsdkcbr-3.0.43rc0.dist-info → huaweicloudsdkcbr-3.1.160.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.160.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcbr-3.0.43rc0.dist-info → huaweicloudsdkcbr-3.1.160.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,110 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OrganizationPolicyCreateReq:
|
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
|
+
'policy': 'OrganizationPolicyCreate'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'policy': 'policy'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, policy=None):
|
28
|
+
r"""OrganizationPolicyCreateReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param policy:
|
33
|
+
:type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreate`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._policy = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.policy = policy
|
42
|
+
|
43
|
+
@property
|
44
|
+
def policy(self):
|
45
|
+
r"""Gets the policy of this OrganizationPolicyCreateReq.
|
46
|
+
|
47
|
+
:return: The policy of this OrganizationPolicyCreateReq.
|
48
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreate`
|
49
|
+
"""
|
50
|
+
return self._policy
|
51
|
+
|
52
|
+
@policy.setter
|
53
|
+
def policy(self, policy):
|
54
|
+
r"""Sets the policy of this OrganizationPolicyCreateReq.
|
55
|
+
|
56
|
+
:param policy: The policy of this OrganizationPolicyCreateReq.
|
57
|
+
:type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyCreate`
|
58
|
+
"""
|
59
|
+
self._policy = policy
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the model properties as a dict"""
|
63
|
+
result = {}
|
64
|
+
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
66
|
+
value = getattr(self, attr)
|
67
|
+
if isinstance(value, list):
|
68
|
+
result[attr] = list(map(
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
70
|
+
value
|
71
|
+
))
|
72
|
+
elif hasattr(value, "to_dict"):
|
73
|
+
result[attr] = value.to_dict()
|
74
|
+
elif isinstance(value, dict):
|
75
|
+
result[attr] = dict(map(
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
78
|
+
value.items()
|
79
|
+
))
|
80
|
+
else:
|
81
|
+
if attr in self.sensitive_list:
|
82
|
+
result[attr] = "****"
|
83
|
+
else:
|
84
|
+
result[attr] = value
|
85
|
+
|
86
|
+
return result
|
87
|
+
|
88
|
+
def to_str(self):
|
89
|
+
"""Returns the string representation of the model"""
|
90
|
+
import simplejson as json
|
91
|
+
if six.PY2:
|
92
|
+
import sys
|
93
|
+
reload(sys)
|
94
|
+
sys.setdefaultencoding("utf-8")
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
96
|
+
|
97
|
+
def __repr__(self):
|
98
|
+
"""For `print`"""
|
99
|
+
return self.to_str()
|
100
|
+
|
101
|
+
def __eq__(self, other):
|
102
|
+
"""Returns true if both objects are equal"""
|
103
|
+
if not isinstance(other, OrganizationPolicyCreateReq):
|
104
|
+
return False
|
105
|
+
|
106
|
+
return self.__dict__ == other.__dict__
|
107
|
+
|
108
|
+
def __ne__(self, other):
|
109
|
+
"""Returns true if both objects are not equal"""
|
110
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OrganizationPolicyStatus:
|
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
|
+
'policy_id': 'str',
|
21
|
+
'domain_id': 'str',
|
22
|
+
'project_id': 'str',
|
23
|
+
'status': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'policy_id': 'policy_id',
|
28
|
+
'domain_id': 'domain_id',
|
29
|
+
'project_id': 'project_id',
|
30
|
+
'status': 'status'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, policy_id=None, domain_id=None, project_id=None, status=None):
|
34
|
+
r"""OrganizationPolicyStatus
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param policy_id: 策略ID
|
39
|
+
:type policy_id: str
|
40
|
+
:param domain_id: 账号ID
|
41
|
+
:type domain_id: str
|
42
|
+
:param project_id: 项目ID
|
43
|
+
:type project_id: str
|
44
|
+
:param status: 状态
|
45
|
+
:type status: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._policy_id = None
|
51
|
+
self._domain_id = None
|
52
|
+
self._project_id = None
|
53
|
+
self._status = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.policy_id = policy_id
|
57
|
+
self.domain_id = domain_id
|
58
|
+
self.project_id = project_id
|
59
|
+
self.status = status
|
60
|
+
|
61
|
+
@property
|
62
|
+
def policy_id(self):
|
63
|
+
r"""Gets the policy_id of this OrganizationPolicyStatus.
|
64
|
+
|
65
|
+
策略ID
|
66
|
+
|
67
|
+
:return: The policy_id of this OrganizationPolicyStatus.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._policy_id
|
71
|
+
|
72
|
+
@policy_id.setter
|
73
|
+
def policy_id(self, policy_id):
|
74
|
+
r"""Sets the policy_id of this OrganizationPolicyStatus.
|
75
|
+
|
76
|
+
策略ID
|
77
|
+
|
78
|
+
:param policy_id: The policy_id of this OrganizationPolicyStatus.
|
79
|
+
:type policy_id: str
|
80
|
+
"""
|
81
|
+
self._policy_id = policy_id
|
82
|
+
|
83
|
+
@property
|
84
|
+
def domain_id(self):
|
85
|
+
r"""Gets the domain_id of this OrganizationPolicyStatus.
|
86
|
+
|
87
|
+
账号ID
|
88
|
+
|
89
|
+
:return: The domain_id of this OrganizationPolicyStatus.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._domain_id
|
93
|
+
|
94
|
+
@domain_id.setter
|
95
|
+
def domain_id(self, domain_id):
|
96
|
+
r"""Sets the domain_id of this OrganizationPolicyStatus.
|
97
|
+
|
98
|
+
账号ID
|
99
|
+
|
100
|
+
:param domain_id: The domain_id of this OrganizationPolicyStatus.
|
101
|
+
:type domain_id: str
|
102
|
+
"""
|
103
|
+
self._domain_id = domain_id
|
104
|
+
|
105
|
+
@property
|
106
|
+
def project_id(self):
|
107
|
+
r"""Gets the project_id of this OrganizationPolicyStatus.
|
108
|
+
|
109
|
+
项目ID
|
110
|
+
|
111
|
+
:return: The project_id of this OrganizationPolicyStatus.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._project_id
|
115
|
+
|
116
|
+
@project_id.setter
|
117
|
+
def project_id(self, project_id):
|
118
|
+
r"""Sets the project_id of this OrganizationPolicyStatus.
|
119
|
+
|
120
|
+
项目ID
|
121
|
+
|
122
|
+
:param project_id: The project_id of this OrganizationPolicyStatus.
|
123
|
+
:type project_id: str
|
124
|
+
"""
|
125
|
+
self._project_id = project_id
|
126
|
+
|
127
|
+
@property
|
128
|
+
def status(self):
|
129
|
+
r"""Gets the status of this OrganizationPolicyStatus.
|
130
|
+
|
131
|
+
状态
|
132
|
+
|
133
|
+
:return: The status of this OrganizationPolicyStatus.
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._status
|
137
|
+
|
138
|
+
@status.setter
|
139
|
+
def status(self, status):
|
140
|
+
r"""Sets the status of this OrganizationPolicyStatus.
|
141
|
+
|
142
|
+
状态
|
143
|
+
|
144
|
+
:param status: The status of this OrganizationPolicyStatus.
|
145
|
+
:type status: str
|
146
|
+
"""
|
147
|
+
self._status = status
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, OrganizationPolicyStatus):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|
@@ -0,0 +1,252 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OrganizationPolicyUpdate:
|
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
|
+
'name': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'policy_name': 'str',
|
23
|
+
'policy_enabled': 'bool',
|
24
|
+
'policy_operation_definition': 'PolicyoODCreate',
|
25
|
+
'policy_trigger': 'PolicyTriggerReq'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'name': 'name',
|
30
|
+
'description': 'description',
|
31
|
+
'policy_name': 'policy_name',
|
32
|
+
'policy_enabled': 'policy_enabled',
|
33
|
+
'policy_operation_definition': 'policy_operation_definition',
|
34
|
+
'policy_trigger': 'policy_trigger'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, name=None, description=None, policy_name=None, policy_enabled=None, policy_operation_definition=None, policy_trigger=None):
|
38
|
+
r"""OrganizationPolicyUpdate
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param name: 组织策略名称
|
43
|
+
:type name: str
|
44
|
+
:param description: 组织策略描述
|
45
|
+
:type description: str
|
46
|
+
:param policy_name: 策略名称
|
47
|
+
:type policy_name: str
|
48
|
+
:param policy_enabled: 策略是否开启
|
49
|
+
:type policy_enabled: bool
|
50
|
+
:param policy_operation_definition:
|
51
|
+
:type policy_operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
52
|
+
:param policy_trigger:
|
53
|
+
:type policy_trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._name = None
|
59
|
+
self._description = None
|
60
|
+
self._policy_name = None
|
61
|
+
self._policy_enabled = None
|
62
|
+
self._policy_operation_definition = None
|
63
|
+
self._policy_trigger = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if name is not None:
|
67
|
+
self.name = name
|
68
|
+
if description is not None:
|
69
|
+
self.description = description
|
70
|
+
if policy_name is not None:
|
71
|
+
self.policy_name = policy_name
|
72
|
+
if policy_enabled is not None:
|
73
|
+
self.policy_enabled = policy_enabled
|
74
|
+
if policy_operation_definition is not None:
|
75
|
+
self.policy_operation_definition = policy_operation_definition
|
76
|
+
if policy_trigger is not None:
|
77
|
+
self.policy_trigger = policy_trigger
|
78
|
+
|
79
|
+
@property
|
80
|
+
def name(self):
|
81
|
+
r"""Gets the name of this OrganizationPolicyUpdate.
|
82
|
+
|
83
|
+
组织策略名称
|
84
|
+
|
85
|
+
:return: The name of this OrganizationPolicyUpdate.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._name
|
89
|
+
|
90
|
+
@name.setter
|
91
|
+
def name(self, name):
|
92
|
+
r"""Sets the name of this OrganizationPolicyUpdate.
|
93
|
+
|
94
|
+
组织策略名称
|
95
|
+
|
96
|
+
:param name: The name of this OrganizationPolicyUpdate.
|
97
|
+
:type name: str
|
98
|
+
"""
|
99
|
+
self._name = name
|
100
|
+
|
101
|
+
@property
|
102
|
+
def description(self):
|
103
|
+
r"""Gets the description of this OrganizationPolicyUpdate.
|
104
|
+
|
105
|
+
组织策略描述
|
106
|
+
|
107
|
+
:return: The description of this OrganizationPolicyUpdate.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._description
|
111
|
+
|
112
|
+
@description.setter
|
113
|
+
def description(self, description):
|
114
|
+
r"""Sets the description of this OrganizationPolicyUpdate.
|
115
|
+
|
116
|
+
组织策略描述
|
117
|
+
|
118
|
+
:param description: The description of this OrganizationPolicyUpdate.
|
119
|
+
:type description: str
|
120
|
+
"""
|
121
|
+
self._description = description
|
122
|
+
|
123
|
+
@property
|
124
|
+
def policy_name(self):
|
125
|
+
r"""Gets the policy_name of this OrganizationPolicyUpdate.
|
126
|
+
|
127
|
+
策略名称
|
128
|
+
|
129
|
+
:return: The policy_name of this OrganizationPolicyUpdate.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._policy_name
|
133
|
+
|
134
|
+
@policy_name.setter
|
135
|
+
def policy_name(self, policy_name):
|
136
|
+
r"""Sets the policy_name of this OrganizationPolicyUpdate.
|
137
|
+
|
138
|
+
策略名称
|
139
|
+
|
140
|
+
:param policy_name: The policy_name of this OrganizationPolicyUpdate.
|
141
|
+
:type policy_name: str
|
142
|
+
"""
|
143
|
+
self._policy_name = policy_name
|
144
|
+
|
145
|
+
@property
|
146
|
+
def policy_enabled(self):
|
147
|
+
r"""Gets the policy_enabled of this OrganizationPolicyUpdate.
|
148
|
+
|
149
|
+
策略是否开启
|
150
|
+
|
151
|
+
:return: The policy_enabled of this OrganizationPolicyUpdate.
|
152
|
+
:rtype: bool
|
153
|
+
"""
|
154
|
+
return self._policy_enabled
|
155
|
+
|
156
|
+
@policy_enabled.setter
|
157
|
+
def policy_enabled(self, policy_enabled):
|
158
|
+
r"""Sets the policy_enabled of this OrganizationPolicyUpdate.
|
159
|
+
|
160
|
+
策略是否开启
|
161
|
+
|
162
|
+
:param policy_enabled: The policy_enabled of this OrganizationPolicyUpdate.
|
163
|
+
:type policy_enabled: bool
|
164
|
+
"""
|
165
|
+
self._policy_enabled = policy_enabled
|
166
|
+
|
167
|
+
@property
|
168
|
+
def policy_operation_definition(self):
|
169
|
+
r"""Gets the policy_operation_definition of this OrganizationPolicyUpdate.
|
170
|
+
|
171
|
+
:return: The policy_operation_definition of this OrganizationPolicyUpdate.
|
172
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
173
|
+
"""
|
174
|
+
return self._policy_operation_definition
|
175
|
+
|
176
|
+
@policy_operation_definition.setter
|
177
|
+
def policy_operation_definition(self, policy_operation_definition):
|
178
|
+
r"""Sets the policy_operation_definition of this OrganizationPolicyUpdate.
|
179
|
+
|
180
|
+
:param policy_operation_definition: The policy_operation_definition of this OrganizationPolicyUpdate.
|
181
|
+
:type policy_operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
182
|
+
"""
|
183
|
+
self._policy_operation_definition = policy_operation_definition
|
184
|
+
|
185
|
+
@property
|
186
|
+
def policy_trigger(self):
|
187
|
+
r"""Gets the policy_trigger of this OrganizationPolicyUpdate.
|
188
|
+
|
189
|
+
:return: The policy_trigger of this OrganizationPolicyUpdate.
|
190
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
191
|
+
"""
|
192
|
+
return self._policy_trigger
|
193
|
+
|
194
|
+
@policy_trigger.setter
|
195
|
+
def policy_trigger(self, policy_trigger):
|
196
|
+
r"""Sets the policy_trigger of this OrganizationPolicyUpdate.
|
197
|
+
|
198
|
+
:param policy_trigger: The policy_trigger of this OrganizationPolicyUpdate.
|
199
|
+
:type policy_trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
200
|
+
"""
|
201
|
+
self._policy_trigger = policy_trigger
|
202
|
+
|
203
|
+
def to_dict(self):
|
204
|
+
"""Returns the model properties as a dict"""
|
205
|
+
result = {}
|
206
|
+
|
207
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
208
|
+
value = getattr(self, attr)
|
209
|
+
if isinstance(value, list):
|
210
|
+
result[attr] = list(map(
|
211
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
212
|
+
value
|
213
|
+
))
|
214
|
+
elif hasattr(value, "to_dict"):
|
215
|
+
result[attr] = value.to_dict()
|
216
|
+
elif isinstance(value, dict):
|
217
|
+
result[attr] = dict(map(
|
218
|
+
lambda item: (item[0], item[1].to_dict())
|
219
|
+
if hasattr(item[1], "to_dict") else item,
|
220
|
+
value.items()
|
221
|
+
))
|
222
|
+
else:
|
223
|
+
if attr in self.sensitive_list:
|
224
|
+
result[attr] = "****"
|
225
|
+
else:
|
226
|
+
result[attr] = value
|
227
|
+
|
228
|
+
return result
|
229
|
+
|
230
|
+
def to_str(self):
|
231
|
+
"""Returns the string representation of the model"""
|
232
|
+
import simplejson as json
|
233
|
+
if six.PY2:
|
234
|
+
import sys
|
235
|
+
reload(sys)
|
236
|
+
sys.setdefaultencoding("utf-8")
|
237
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
238
|
+
|
239
|
+
def __repr__(self):
|
240
|
+
"""For `print`"""
|
241
|
+
return self.to_str()
|
242
|
+
|
243
|
+
def __eq__(self, other):
|
244
|
+
"""Returns true if both objects are equal"""
|
245
|
+
if not isinstance(other, OrganizationPolicyUpdate):
|
246
|
+
return False
|
247
|
+
|
248
|
+
return self.__dict__ == other.__dict__
|
249
|
+
|
250
|
+
def __ne__(self, other):
|
251
|
+
"""Returns true if both objects are not equal"""
|
252
|
+
return not self == other
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OrganizationPolicyUpdateReq:
|
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
|
+
'policy': 'OrganizationPolicyUpdate'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'policy': 'policy'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, policy=None):
|
28
|
+
r"""OrganizationPolicyUpdateReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param policy:
|
33
|
+
:type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdate`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._policy = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.policy = policy
|
42
|
+
|
43
|
+
@property
|
44
|
+
def policy(self):
|
45
|
+
r"""Gets the policy of this OrganizationPolicyUpdateReq.
|
46
|
+
|
47
|
+
:return: The policy of this OrganizationPolicyUpdateReq.
|
48
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdate`
|
49
|
+
"""
|
50
|
+
return self._policy
|
51
|
+
|
52
|
+
@policy.setter
|
53
|
+
def policy(self, policy):
|
54
|
+
r"""Sets the policy of this OrganizationPolicyUpdateReq.
|
55
|
+
|
56
|
+
:param policy: The policy of this OrganizationPolicyUpdateReq.
|
57
|
+
:type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdate`
|
58
|
+
"""
|
59
|
+
self._policy = policy
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the model properties as a dict"""
|
63
|
+
result = {}
|
64
|
+
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
66
|
+
value = getattr(self, attr)
|
67
|
+
if isinstance(value, list):
|
68
|
+
result[attr] = list(map(
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
70
|
+
value
|
71
|
+
))
|
72
|
+
elif hasattr(value, "to_dict"):
|
73
|
+
result[attr] = value.to_dict()
|
74
|
+
elif isinstance(value, dict):
|
75
|
+
result[attr] = dict(map(
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
78
|
+
value.items()
|
79
|
+
))
|
80
|
+
else:
|
81
|
+
if attr in self.sensitive_list:
|
82
|
+
result[attr] = "****"
|
83
|
+
else:
|
84
|
+
result[attr] = value
|
85
|
+
|
86
|
+
return result
|
87
|
+
|
88
|
+
def to_str(self):
|
89
|
+
"""Returns the string representation of the model"""
|
90
|
+
import simplejson as json
|
91
|
+
if six.PY2:
|
92
|
+
import sys
|
93
|
+
reload(sys)
|
94
|
+
sys.setdefaultencoding("utf-8")
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
96
|
+
|
97
|
+
def __repr__(self):
|
98
|
+
"""For `print`"""
|
99
|
+
return self.to_str()
|
100
|
+
|
101
|
+
def __eq__(self, other):
|
102
|
+
"""Returns true if both objects are equal"""
|
103
|
+
if not isinstance(other, OrganizationPolicyUpdateReq):
|
104
|
+
return False
|
105
|
+
|
106
|
+
return self.__dict__ == other.__dict__
|
107
|
+
|
108
|
+
def __ne__(self, other):
|
109
|
+
"""Returns true if both objects are not equal"""
|
110
|
+
return not self == other
|