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,388 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OrganizationPolicy:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'description': 'str',
|
23
|
+
'operation_type': 'str',
|
24
|
+
'domain_id': 'str',
|
25
|
+
'policy_name': 'str',
|
26
|
+
'policy_enabled': 'bool',
|
27
|
+
'policy_operation_definition': 'PolicyoODCreate',
|
28
|
+
'policy_trigger': 'PolicyTriggerReq',
|
29
|
+
'status': 'str',
|
30
|
+
'domain_name': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'id': 'id',
|
35
|
+
'name': 'name',
|
36
|
+
'description': 'description',
|
37
|
+
'operation_type': 'operation_type',
|
38
|
+
'domain_id': 'domain_id',
|
39
|
+
'policy_name': 'policy_name',
|
40
|
+
'policy_enabled': 'policy_enabled',
|
41
|
+
'policy_operation_definition': 'policy_operation_definition',
|
42
|
+
'policy_trigger': 'policy_trigger',
|
43
|
+
'status': 'status',
|
44
|
+
'domain_name': 'domain_name'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, id=None, name=None, description=None, operation_type=None, domain_id=None, policy_name=None, policy_enabled=None, policy_operation_definition=None, policy_trigger=None, status=None, domain_name=None):
|
48
|
+
r"""OrganizationPolicy
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param id: 组织策略ID
|
53
|
+
:type id: str
|
54
|
+
:param name: 组织策略名称
|
55
|
+
:type name: str
|
56
|
+
:param description: 组织策略描述
|
57
|
+
:type description: str
|
58
|
+
:param operation_type: 组织策略类型 - backup: 备份 - replication: 复制
|
59
|
+
:type operation_type: str
|
60
|
+
:param domain_id: 组织策略所属账号ID
|
61
|
+
:type domain_id: str
|
62
|
+
:param policy_name: 策略名称
|
63
|
+
:type policy_name: str
|
64
|
+
:param policy_enabled: 策略是否开启
|
65
|
+
:type policy_enabled: bool
|
66
|
+
:param policy_operation_definition:
|
67
|
+
:type policy_operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
68
|
+
:param policy_trigger:
|
69
|
+
:type policy_trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
70
|
+
:param status: 组织策略状态
|
71
|
+
:type status: str
|
72
|
+
:param domain_name: 组织策略所属账号
|
73
|
+
:type domain_name: str
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._id = None
|
79
|
+
self._name = None
|
80
|
+
self._description = None
|
81
|
+
self._operation_type = None
|
82
|
+
self._domain_id = None
|
83
|
+
self._policy_name = None
|
84
|
+
self._policy_enabled = None
|
85
|
+
self._policy_operation_definition = None
|
86
|
+
self._policy_trigger = None
|
87
|
+
self._status = None
|
88
|
+
self._domain_name = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
self.id = id
|
92
|
+
self.name = name
|
93
|
+
if description is not None:
|
94
|
+
self.description = description
|
95
|
+
self.operation_type = operation_type
|
96
|
+
self.domain_id = domain_id
|
97
|
+
self.policy_name = policy_name
|
98
|
+
self.policy_enabled = policy_enabled
|
99
|
+
self.policy_operation_definition = policy_operation_definition
|
100
|
+
self.policy_trigger = policy_trigger
|
101
|
+
self.status = status
|
102
|
+
if domain_name is not None:
|
103
|
+
self.domain_name = domain_name
|
104
|
+
|
105
|
+
@property
|
106
|
+
def id(self):
|
107
|
+
r"""Gets the id of this OrganizationPolicy.
|
108
|
+
|
109
|
+
组织策略ID
|
110
|
+
|
111
|
+
:return: The id of this OrganizationPolicy.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._id
|
115
|
+
|
116
|
+
@id.setter
|
117
|
+
def id(self, id):
|
118
|
+
r"""Sets the id of this OrganizationPolicy.
|
119
|
+
|
120
|
+
组织策略ID
|
121
|
+
|
122
|
+
:param id: The id of this OrganizationPolicy.
|
123
|
+
:type id: str
|
124
|
+
"""
|
125
|
+
self._id = id
|
126
|
+
|
127
|
+
@property
|
128
|
+
def name(self):
|
129
|
+
r"""Gets the name of this OrganizationPolicy.
|
130
|
+
|
131
|
+
组织策略名称
|
132
|
+
|
133
|
+
:return: The name of this OrganizationPolicy.
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._name
|
137
|
+
|
138
|
+
@name.setter
|
139
|
+
def name(self, name):
|
140
|
+
r"""Sets the name of this OrganizationPolicy.
|
141
|
+
|
142
|
+
组织策略名称
|
143
|
+
|
144
|
+
:param name: The name of this OrganizationPolicy.
|
145
|
+
:type name: str
|
146
|
+
"""
|
147
|
+
self._name = name
|
148
|
+
|
149
|
+
@property
|
150
|
+
def description(self):
|
151
|
+
r"""Gets the description of this OrganizationPolicy.
|
152
|
+
|
153
|
+
组织策略描述
|
154
|
+
|
155
|
+
:return: The description of this OrganizationPolicy.
|
156
|
+
:rtype: str
|
157
|
+
"""
|
158
|
+
return self._description
|
159
|
+
|
160
|
+
@description.setter
|
161
|
+
def description(self, description):
|
162
|
+
r"""Sets the description of this OrganizationPolicy.
|
163
|
+
|
164
|
+
组织策略描述
|
165
|
+
|
166
|
+
:param description: The description of this OrganizationPolicy.
|
167
|
+
:type description: str
|
168
|
+
"""
|
169
|
+
self._description = description
|
170
|
+
|
171
|
+
@property
|
172
|
+
def operation_type(self):
|
173
|
+
r"""Gets the operation_type of this OrganizationPolicy.
|
174
|
+
|
175
|
+
组织策略类型 - backup: 备份 - replication: 复制
|
176
|
+
|
177
|
+
:return: The operation_type of this OrganizationPolicy.
|
178
|
+
:rtype: str
|
179
|
+
"""
|
180
|
+
return self._operation_type
|
181
|
+
|
182
|
+
@operation_type.setter
|
183
|
+
def operation_type(self, operation_type):
|
184
|
+
r"""Sets the operation_type of this OrganizationPolicy.
|
185
|
+
|
186
|
+
组织策略类型 - backup: 备份 - replication: 复制
|
187
|
+
|
188
|
+
:param operation_type: The operation_type of this OrganizationPolicy.
|
189
|
+
:type operation_type: str
|
190
|
+
"""
|
191
|
+
self._operation_type = operation_type
|
192
|
+
|
193
|
+
@property
|
194
|
+
def domain_id(self):
|
195
|
+
r"""Gets the domain_id of this OrganizationPolicy.
|
196
|
+
|
197
|
+
组织策略所属账号ID
|
198
|
+
|
199
|
+
:return: The domain_id of this OrganizationPolicy.
|
200
|
+
:rtype: str
|
201
|
+
"""
|
202
|
+
return self._domain_id
|
203
|
+
|
204
|
+
@domain_id.setter
|
205
|
+
def domain_id(self, domain_id):
|
206
|
+
r"""Sets the domain_id of this OrganizationPolicy.
|
207
|
+
|
208
|
+
组织策略所属账号ID
|
209
|
+
|
210
|
+
:param domain_id: The domain_id of this OrganizationPolicy.
|
211
|
+
:type domain_id: str
|
212
|
+
"""
|
213
|
+
self._domain_id = domain_id
|
214
|
+
|
215
|
+
@property
|
216
|
+
def policy_name(self):
|
217
|
+
r"""Gets the policy_name of this OrganizationPolicy.
|
218
|
+
|
219
|
+
策略名称
|
220
|
+
|
221
|
+
:return: The policy_name of this OrganizationPolicy.
|
222
|
+
:rtype: str
|
223
|
+
"""
|
224
|
+
return self._policy_name
|
225
|
+
|
226
|
+
@policy_name.setter
|
227
|
+
def policy_name(self, policy_name):
|
228
|
+
r"""Sets the policy_name of this OrganizationPolicy.
|
229
|
+
|
230
|
+
策略名称
|
231
|
+
|
232
|
+
:param policy_name: The policy_name of this OrganizationPolicy.
|
233
|
+
:type policy_name: str
|
234
|
+
"""
|
235
|
+
self._policy_name = policy_name
|
236
|
+
|
237
|
+
@property
|
238
|
+
def policy_enabled(self):
|
239
|
+
r"""Gets the policy_enabled of this OrganizationPolicy.
|
240
|
+
|
241
|
+
策略是否开启
|
242
|
+
|
243
|
+
:return: The policy_enabled of this OrganizationPolicy.
|
244
|
+
:rtype: bool
|
245
|
+
"""
|
246
|
+
return self._policy_enabled
|
247
|
+
|
248
|
+
@policy_enabled.setter
|
249
|
+
def policy_enabled(self, policy_enabled):
|
250
|
+
r"""Sets the policy_enabled of this OrganizationPolicy.
|
251
|
+
|
252
|
+
策略是否开启
|
253
|
+
|
254
|
+
:param policy_enabled: The policy_enabled of this OrganizationPolicy.
|
255
|
+
:type policy_enabled: bool
|
256
|
+
"""
|
257
|
+
self._policy_enabled = policy_enabled
|
258
|
+
|
259
|
+
@property
|
260
|
+
def policy_operation_definition(self):
|
261
|
+
r"""Gets the policy_operation_definition of this OrganizationPolicy.
|
262
|
+
|
263
|
+
:return: The policy_operation_definition of this OrganizationPolicy.
|
264
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
265
|
+
"""
|
266
|
+
return self._policy_operation_definition
|
267
|
+
|
268
|
+
@policy_operation_definition.setter
|
269
|
+
def policy_operation_definition(self, policy_operation_definition):
|
270
|
+
r"""Sets the policy_operation_definition of this OrganizationPolicy.
|
271
|
+
|
272
|
+
:param policy_operation_definition: The policy_operation_definition of this OrganizationPolicy.
|
273
|
+
:type policy_operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
274
|
+
"""
|
275
|
+
self._policy_operation_definition = policy_operation_definition
|
276
|
+
|
277
|
+
@property
|
278
|
+
def policy_trigger(self):
|
279
|
+
r"""Gets the policy_trigger of this OrganizationPolicy.
|
280
|
+
|
281
|
+
:return: The policy_trigger of this OrganizationPolicy.
|
282
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
283
|
+
"""
|
284
|
+
return self._policy_trigger
|
285
|
+
|
286
|
+
@policy_trigger.setter
|
287
|
+
def policy_trigger(self, policy_trigger):
|
288
|
+
r"""Sets the policy_trigger of this OrganizationPolicy.
|
289
|
+
|
290
|
+
:param policy_trigger: The policy_trigger of this OrganizationPolicy.
|
291
|
+
:type policy_trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
292
|
+
"""
|
293
|
+
self._policy_trigger = policy_trigger
|
294
|
+
|
295
|
+
@property
|
296
|
+
def status(self):
|
297
|
+
r"""Gets the status of this OrganizationPolicy.
|
298
|
+
|
299
|
+
组织策略状态
|
300
|
+
|
301
|
+
:return: The status of this OrganizationPolicy.
|
302
|
+
:rtype: str
|
303
|
+
"""
|
304
|
+
return self._status
|
305
|
+
|
306
|
+
@status.setter
|
307
|
+
def status(self, status):
|
308
|
+
r"""Sets the status of this OrganizationPolicy.
|
309
|
+
|
310
|
+
组织策略状态
|
311
|
+
|
312
|
+
:param status: The status of this OrganizationPolicy.
|
313
|
+
:type status: str
|
314
|
+
"""
|
315
|
+
self._status = status
|
316
|
+
|
317
|
+
@property
|
318
|
+
def domain_name(self):
|
319
|
+
r"""Gets the domain_name of this OrganizationPolicy.
|
320
|
+
|
321
|
+
组织策略所属账号
|
322
|
+
|
323
|
+
:return: The domain_name of this OrganizationPolicy.
|
324
|
+
:rtype: str
|
325
|
+
"""
|
326
|
+
return self._domain_name
|
327
|
+
|
328
|
+
@domain_name.setter
|
329
|
+
def domain_name(self, domain_name):
|
330
|
+
r"""Sets the domain_name of this OrganizationPolicy.
|
331
|
+
|
332
|
+
组织策略所属账号
|
333
|
+
|
334
|
+
:param domain_name: The domain_name of this OrganizationPolicy.
|
335
|
+
:type domain_name: str
|
336
|
+
"""
|
337
|
+
self._domain_name = domain_name
|
338
|
+
|
339
|
+
def to_dict(self):
|
340
|
+
"""Returns the model properties as a dict"""
|
341
|
+
result = {}
|
342
|
+
|
343
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
344
|
+
value = getattr(self, attr)
|
345
|
+
if isinstance(value, list):
|
346
|
+
result[attr] = list(map(
|
347
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
348
|
+
value
|
349
|
+
))
|
350
|
+
elif hasattr(value, "to_dict"):
|
351
|
+
result[attr] = value.to_dict()
|
352
|
+
elif isinstance(value, dict):
|
353
|
+
result[attr] = dict(map(
|
354
|
+
lambda item: (item[0], item[1].to_dict())
|
355
|
+
if hasattr(item[1], "to_dict") else item,
|
356
|
+
value.items()
|
357
|
+
))
|
358
|
+
else:
|
359
|
+
if attr in self.sensitive_list:
|
360
|
+
result[attr] = "****"
|
361
|
+
else:
|
362
|
+
result[attr] = value
|
363
|
+
|
364
|
+
return result
|
365
|
+
|
366
|
+
def to_str(self):
|
367
|
+
"""Returns the string representation of the model"""
|
368
|
+
import simplejson as json
|
369
|
+
if six.PY2:
|
370
|
+
import sys
|
371
|
+
reload(sys)
|
372
|
+
sys.setdefaultencoding("utf-8")
|
373
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
374
|
+
|
375
|
+
def __repr__(self):
|
376
|
+
"""For `print`"""
|
377
|
+
return self.to_str()
|
378
|
+
|
379
|
+
def __eq__(self, other):
|
380
|
+
"""Returns true if both objects are equal"""
|
381
|
+
if not isinstance(other, OrganizationPolicy):
|
382
|
+
return False
|
383
|
+
|
384
|
+
return self.__dict__ == other.__dict__
|
385
|
+
|
386
|
+
def __ne__(self, other):
|
387
|
+
"""Returns true if both objects are not equal"""
|
388
|
+
return not self == other
|
@@ -0,0 +1,275 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OrganizationPolicyCreate:
|
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
|
+
'operation_type': 'str',
|
23
|
+
'policy_name': 'str',
|
24
|
+
'policy_enabled': 'bool',
|
25
|
+
'policy_operation_definition': 'PolicyoODCreate',
|
26
|
+
'policy_trigger': 'PolicyTriggerReq'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'name',
|
31
|
+
'description': 'description',
|
32
|
+
'operation_type': 'operation_type',
|
33
|
+
'policy_name': 'policy_name',
|
34
|
+
'policy_enabled': 'policy_enabled',
|
35
|
+
'policy_operation_definition': 'policy_operation_definition',
|
36
|
+
'policy_trigger': 'policy_trigger'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, name=None, description=None, operation_type=None, policy_name=None, policy_enabled=None, policy_operation_definition=None, policy_trigger=None):
|
40
|
+
r"""OrganizationPolicyCreate
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param name: 组织策略名称
|
45
|
+
:type name: str
|
46
|
+
:param description: 组织策略描述
|
47
|
+
:type description: str
|
48
|
+
:param operation_type: 组织策略类型 - backup: 备份 - replication: 复制
|
49
|
+
:type operation_type: str
|
50
|
+
:param policy_name: 策略名称
|
51
|
+
:type policy_name: str
|
52
|
+
:param policy_enabled: 策略是否开启
|
53
|
+
:type policy_enabled: bool
|
54
|
+
:param policy_operation_definition:
|
55
|
+
:type policy_operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
56
|
+
:param policy_trigger:
|
57
|
+
:type policy_trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._name = None
|
63
|
+
self._description = None
|
64
|
+
self._operation_type = None
|
65
|
+
self._policy_name = None
|
66
|
+
self._policy_enabled = None
|
67
|
+
self._policy_operation_definition = None
|
68
|
+
self._policy_trigger = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.name = name
|
72
|
+
if description is not None:
|
73
|
+
self.description = description
|
74
|
+
self.operation_type = operation_type
|
75
|
+
self.policy_name = policy_name
|
76
|
+
self.policy_enabled = policy_enabled
|
77
|
+
self.policy_operation_definition = policy_operation_definition
|
78
|
+
self.policy_trigger = policy_trigger
|
79
|
+
|
80
|
+
@property
|
81
|
+
def name(self):
|
82
|
+
r"""Gets the name of this OrganizationPolicyCreate.
|
83
|
+
|
84
|
+
组织策略名称
|
85
|
+
|
86
|
+
:return: The name of this OrganizationPolicyCreate.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
r"""Sets the name of this OrganizationPolicyCreate.
|
94
|
+
|
95
|
+
组织策略名称
|
96
|
+
|
97
|
+
:param name: The name of this OrganizationPolicyCreate.
|
98
|
+
:type name: str
|
99
|
+
"""
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def description(self):
|
104
|
+
r"""Gets the description of this OrganizationPolicyCreate.
|
105
|
+
|
106
|
+
组织策略描述
|
107
|
+
|
108
|
+
:return: The description of this OrganizationPolicyCreate.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._description
|
112
|
+
|
113
|
+
@description.setter
|
114
|
+
def description(self, description):
|
115
|
+
r"""Sets the description of this OrganizationPolicyCreate.
|
116
|
+
|
117
|
+
组织策略描述
|
118
|
+
|
119
|
+
:param description: The description of this OrganizationPolicyCreate.
|
120
|
+
:type description: str
|
121
|
+
"""
|
122
|
+
self._description = description
|
123
|
+
|
124
|
+
@property
|
125
|
+
def operation_type(self):
|
126
|
+
r"""Gets the operation_type of this OrganizationPolicyCreate.
|
127
|
+
|
128
|
+
组织策略类型 - backup: 备份 - replication: 复制
|
129
|
+
|
130
|
+
:return: The operation_type of this OrganizationPolicyCreate.
|
131
|
+
:rtype: str
|
132
|
+
"""
|
133
|
+
return self._operation_type
|
134
|
+
|
135
|
+
@operation_type.setter
|
136
|
+
def operation_type(self, operation_type):
|
137
|
+
r"""Sets the operation_type of this OrganizationPolicyCreate.
|
138
|
+
|
139
|
+
组织策略类型 - backup: 备份 - replication: 复制
|
140
|
+
|
141
|
+
:param operation_type: The operation_type of this OrganizationPolicyCreate.
|
142
|
+
:type operation_type: str
|
143
|
+
"""
|
144
|
+
self._operation_type = operation_type
|
145
|
+
|
146
|
+
@property
|
147
|
+
def policy_name(self):
|
148
|
+
r"""Gets the policy_name of this OrganizationPolicyCreate.
|
149
|
+
|
150
|
+
策略名称
|
151
|
+
|
152
|
+
:return: The policy_name of this OrganizationPolicyCreate.
|
153
|
+
:rtype: str
|
154
|
+
"""
|
155
|
+
return self._policy_name
|
156
|
+
|
157
|
+
@policy_name.setter
|
158
|
+
def policy_name(self, policy_name):
|
159
|
+
r"""Sets the policy_name of this OrganizationPolicyCreate.
|
160
|
+
|
161
|
+
策略名称
|
162
|
+
|
163
|
+
:param policy_name: The policy_name of this OrganizationPolicyCreate.
|
164
|
+
:type policy_name: str
|
165
|
+
"""
|
166
|
+
self._policy_name = policy_name
|
167
|
+
|
168
|
+
@property
|
169
|
+
def policy_enabled(self):
|
170
|
+
r"""Gets the policy_enabled of this OrganizationPolicyCreate.
|
171
|
+
|
172
|
+
策略是否开启
|
173
|
+
|
174
|
+
:return: The policy_enabled of this OrganizationPolicyCreate.
|
175
|
+
:rtype: bool
|
176
|
+
"""
|
177
|
+
return self._policy_enabled
|
178
|
+
|
179
|
+
@policy_enabled.setter
|
180
|
+
def policy_enabled(self, policy_enabled):
|
181
|
+
r"""Sets the policy_enabled of this OrganizationPolicyCreate.
|
182
|
+
|
183
|
+
策略是否开启
|
184
|
+
|
185
|
+
:param policy_enabled: The policy_enabled of this OrganizationPolicyCreate.
|
186
|
+
:type policy_enabled: bool
|
187
|
+
"""
|
188
|
+
self._policy_enabled = policy_enabled
|
189
|
+
|
190
|
+
@property
|
191
|
+
def policy_operation_definition(self):
|
192
|
+
r"""Gets the policy_operation_definition of this OrganizationPolicyCreate.
|
193
|
+
|
194
|
+
:return: The policy_operation_definition of this OrganizationPolicyCreate.
|
195
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
196
|
+
"""
|
197
|
+
return self._policy_operation_definition
|
198
|
+
|
199
|
+
@policy_operation_definition.setter
|
200
|
+
def policy_operation_definition(self, policy_operation_definition):
|
201
|
+
r"""Sets the policy_operation_definition of this OrganizationPolicyCreate.
|
202
|
+
|
203
|
+
:param policy_operation_definition: The policy_operation_definition of this OrganizationPolicyCreate.
|
204
|
+
:type policy_operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
|
205
|
+
"""
|
206
|
+
self._policy_operation_definition = policy_operation_definition
|
207
|
+
|
208
|
+
@property
|
209
|
+
def policy_trigger(self):
|
210
|
+
r"""Gets the policy_trigger of this OrganizationPolicyCreate.
|
211
|
+
|
212
|
+
:return: The policy_trigger of this OrganizationPolicyCreate.
|
213
|
+
:rtype: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
214
|
+
"""
|
215
|
+
return self._policy_trigger
|
216
|
+
|
217
|
+
@policy_trigger.setter
|
218
|
+
def policy_trigger(self, policy_trigger):
|
219
|
+
r"""Sets the policy_trigger of this OrganizationPolicyCreate.
|
220
|
+
|
221
|
+
:param policy_trigger: The policy_trigger of this OrganizationPolicyCreate.
|
222
|
+
:type policy_trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
|
223
|
+
"""
|
224
|
+
self._policy_trigger = policy_trigger
|
225
|
+
|
226
|
+
def to_dict(self):
|
227
|
+
"""Returns the model properties as a dict"""
|
228
|
+
result = {}
|
229
|
+
|
230
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
231
|
+
value = getattr(self, attr)
|
232
|
+
if isinstance(value, list):
|
233
|
+
result[attr] = list(map(
|
234
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
235
|
+
value
|
236
|
+
))
|
237
|
+
elif hasattr(value, "to_dict"):
|
238
|
+
result[attr] = value.to_dict()
|
239
|
+
elif isinstance(value, dict):
|
240
|
+
result[attr] = dict(map(
|
241
|
+
lambda item: (item[0], item[1].to_dict())
|
242
|
+
if hasattr(item[1], "to_dict") else item,
|
243
|
+
value.items()
|
244
|
+
))
|
245
|
+
else:
|
246
|
+
if attr in self.sensitive_list:
|
247
|
+
result[attr] = "****"
|
248
|
+
else:
|
249
|
+
result[attr] = value
|
250
|
+
|
251
|
+
return result
|
252
|
+
|
253
|
+
def to_str(self):
|
254
|
+
"""Returns the string representation of the model"""
|
255
|
+
import simplejson as json
|
256
|
+
if six.PY2:
|
257
|
+
import sys
|
258
|
+
reload(sys)
|
259
|
+
sys.setdefaultencoding("utf-8")
|
260
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
261
|
+
|
262
|
+
def __repr__(self):
|
263
|
+
"""For `print`"""
|
264
|
+
return self.to_str()
|
265
|
+
|
266
|
+
def __eq__(self, other):
|
267
|
+
"""Returns true if both objects are equal"""
|
268
|
+
if not isinstance(other, OrganizationPolicyCreate):
|
269
|
+
return False
|
270
|
+
|
271
|
+
return self.__dict__ == other.__dict__
|
272
|
+
|
273
|
+
def __ne__(self, other):
|
274
|
+
"""Returns true if both objects are not equal"""
|
275
|
+
return not self == other
|