huaweicloudsdkcbr 3.0.42rc0__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.
Files changed (285) hide show
  1. huaweicloudsdkcbr/v1/__init__.py +110 -5
  2. huaweicloudsdkcbr/v1/cbr_async_client.py +3641 -1490
  3. huaweicloudsdkcbr/v1/cbr_client.py +3638 -1488
  4. huaweicloudsdkcbr/v1/model/__init__.py +109 -3
  5. huaweicloudsdkcbr/v1/model/add_agent_path_request.py +139 -0
  6. huaweicloudsdkcbr/v1/model/add_agent_path_response.py +145 -0
  7. huaweicloudsdkcbr/v1/model/add_member_request.py +26 -19
  8. huaweicloudsdkcbr/v1/model/add_member_response.py +27 -19
  9. huaweicloudsdkcbr/v1/model/add_members_req.py +52 -17
  10. huaweicloudsdkcbr/v1/model/add_vault_resource_request.py +26 -19
  11. huaweicloudsdkcbr/v1/model/add_vault_resource_response.py +19 -13
  12. huaweicloudsdkcbr/v1/model/agent.py +433 -0
  13. huaweicloudsdkcbr/v1/model/agent_add_path_req.py +143 -0
  14. huaweicloudsdkcbr/v1/model/agent_register.py +285 -0
  15. huaweicloudsdkcbr/v1/model/agent_register_req.py +110 -0
  16. huaweicloudsdkcbr/v1/model/agent_remove_path_req.py +114 -0
  17. huaweicloudsdkcbr/v1/model/agent_update.py +114 -0
  18. huaweicloudsdkcbr/v1/model/agent_update_req.py +110 -0
  19. huaweicloudsdkcbr/v1/model/associate_vault_policy_request.py +26 -19
  20. huaweicloudsdkcbr/v1/model/associate_vault_policy_response.py +20 -16
  21. huaweicloudsdkcbr/v1/model/backup_extend_info.py +91 -68
  22. huaweicloudsdkcbr/v1/model/backup_replicate_req.py +19 -16
  23. huaweicloudsdkcbr/v1/model/backup_replicate_req_body.py +43 -28
  24. huaweicloudsdkcbr/v1/model/backup_replicate_resp_body.py +55 -36
  25. huaweicloudsdkcbr/v1/model/backup_resp.py +246 -87
  26. huaweicloudsdkcbr/v1/model/backup_restore.py +67 -29
  27. huaweicloudsdkcbr/v1/model/backup_restore_req.py +19 -16
  28. huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +25 -18
  29. huaweicloudsdkcbr/v1/model/backup_sync.py +53 -34
  30. huaweicloudsdkcbr/v1/model/backup_sync_req.py +19 -14
  31. huaweicloudsdkcbr/v1/model/backup_sync_resp_body.py +23 -16
  32. huaweicloudsdkcbr/v1/model/backup_update.py +115 -0
  33. huaweicloudsdkcbr/v1/model/backup_update_req.py +111 -0
  34. huaweicloudsdkcbr/v1/model/batch_create_and_delete_vault_tags_request.py +26 -19
  35. huaweicloudsdkcbr/v1/model/batch_create_and_delete_vault_tags_response.py +14 -10
  36. huaweicloudsdkcbr/v1/model/batch_update_vault_request.py +111 -0
  37. huaweicloudsdkcbr/v1/model/batch_update_vault_request_body.py +110 -0
  38. huaweicloudsdkcbr/v1/model/batch_update_vault_response.py +116 -0
  39. huaweicloudsdkcbr/v1/model/billing.py +125 -65
  40. huaweicloudsdkcbr/v1/model/billing_create.py +99 -70
  41. huaweicloudsdkcbr/v1/model/billing_update.py +23 -16
  42. huaweicloudsdkcbr/v1/model/bind_rules_tags.py +142 -0
  43. huaweicloudsdkcbr/v1/model/bulk_create_and_delete_vault_tags_req.py +30 -21
  44. huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
  45. huaweicloudsdkcbr/v1/model/cbc_order_result.py +200 -0
  46. huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
  47. huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +199 -0
  48. huaweicloudsdkcbr/v1/model/cbc_update.py +196 -0
  49. huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
  50. huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
  51. huaweicloudsdkcbr/v1/model/change_to_period.py +286 -0
  52. huaweicloudsdkcbr/v1/model/change_vault_charge_mode_request.py +111 -0
  53. huaweicloudsdkcbr/v1/model/change_vault_charge_mode_response.py +174 -0
  54. huaweicloudsdkcbr/v1/model/check_agent_request.py +111 -0
  55. huaweicloudsdkcbr/v1/model/check_agent_response.py +116 -0
  56. huaweicloudsdkcbr/v1/model/checkpoint_create.py +47 -36
  57. huaweicloudsdkcbr/v1/model/checkpoint_create_skipped_resource.py +38 -25
  58. huaweicloudsdkcbr/v1/model/checkpoint_extra_info_resp.py +28 -19
  59. huaweicloudsdkcbr/v1/model/checkpoint_param.py +78 -34
  60. huaweicloudsdkcbr/v1/model/checkpoint_plan_create.py +35 -24
  61. huaweicloudsdkcbr/v1/model/checkpoint_replicate_param.py +43 -28
  62. huaweicloudsdkcbr/v1/model/checkpoint_replicate_req.py +19 -16
  63. huaweicloudsdkcbr/v1/model/checkpoint_replicate_resp_body.py +54 -35
  64. huaweicloudsdkcbr/v1/model/checkpoint_replicate_respbackups.py +23 -16
  65. huaweicloudsdkcbr/v1/model/checkpoint_resource_resp.py +57 -38
  66. huaweicloudsdkcbr/v1/model/{billbing_create_extra_info.py → combined_order.py} +65 -29
  67. huaweicloudsdkcbr/v1/model/copy_backup_request.py +26 -19
  68. huaweicloudsdkcbr/v1/model/copy_backup_response.py +20 -16
  69. huaweicloudsdkcbr/v1/model/copy_checkpoint_request.py +19 -16
  70. huaweicloudsdkcbr/v1/model/copy_checkpoint_response.py +20 -16
  71. huaweicloudsdkcbr/v1/model/create_checkpoint_request.py +19 -16
  72. huaweicloudsdkcbr/v1/model/create_checkpoint_response.py +20 -16
  73. huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
  74. huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
  75. huaweicloudsdkcbr/v1/model/create_policy_request.py +19 -16
  76. huaweicloudsdkcbr/v1/model/create_policy_response.py +20 -16
  77. huaweicloudsdkcbr/v1/model/create_post_paid_vault_request.py +111 -0
  78. huaweicloudsdkcbr/v1/model/create_post_paid_vault_response.py +203 -0
  79. huaweicloudsdkcbr/v1/model/create_vault_request.py +19 -16
  80. huaweicloudsdkcbr/v1/model/create_vault_response.py +21 -17
  81. huaweicloudsdkcbr/v1/model/create_vault_tags_request.py +26 -19
  82. huaweicloudsdkcbr/v1/model/create_vault_tags_response.py +14 -10
  83. huaweicloudsdkcbr/v1/model/delete_backup_request.py +20 -13
  84. huaweicloudsdkcbr/v1/model/delete_backup_response.py +14 -10
  85. huaweicloudsdkcbr/v1/model/delete_member_request.py +27 -16
  86. huaweicloudsdkcbr/v1/model/delete_member_response.py +14 -10
  87. huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
  88. huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
  89. huaweicloudsdkcbr/v1/model/delete_policy_request.py +20 -13
  90. huaweicloudsdkcbr/v1/model/delete_policy_response.py +14 -10
  91. huaweicloudsdkcbr/v1/model/delete_vault_request.py +20 -13
  92. huaweicloudsdkcbr/v1/model/delete_vault_response.py +14 -10
  93. huaweicloudsdkcbr/v1/model/delete_vault_tag_request.py +27 -16
  94. huaweicloudsdkcbr/v1/model/delete_vault_tag_response.py +14 -10
  95. huaweicloudsdkcbr/v1/model/disassociate_vault_policy_request.py +26 -19
  96. huaweicloudsdkcbr/v1/model/disassociate_vault_policy_response.py +20 -16
  97. huaweicloudsdkcbr/v1/model/domain_migrate.py +142 -0
  98. huaweicloudsdkcbr/v1/model/domain_migrate_project_status.py +286 -0
  99. huaweicloudsdkcbr/v1/model/{vault_resource_intances_resp.py → domain_projects_info.py} +54 -49
  100. huaweicloudsdkcbr/v1/model/exclude_path.py +144 -0
  101. huaweicloudsdkcbr/v1/model/image_data.py +20 -15
  102. huaweicloudsdkcbr/v1/model/import_backup_request.py +19 -16
  103. huaweicloudsdkcbr/v1/model/import_backup_response.py +20 -14
  104. huaweicloudsdkcbr/v1/model/import_checkpoint_request.py +111 -0
  105. huaweicloudsdkcbr/v1/model/import_checkpoint_response.py +112 -0
  106. huaweicloudsdkcbr/v1/model/instances_resource_detail.py +111 -0
  107. huaweicloudsdkcbr/v1/model/list_agent_request.py +202 -0
  108. huaweicloudsdkcbr/v1/model/list_agent_response.py +203 -0
  109. huaweicloudsdkcbr/v1/model/list_backups_request.py +221 -76
  110. huaweicloudsdkcbr/v1/model/list_backups_response.py +86 -20
  111. huaweicloudsdkcbr/v1/model/list_domain_projects_request.py +114 -0
  112. huaweicloudsdkcbr/v1/model/list_domain_projects_response.py +116 -0
  113. huaweicloudsdkcbr/v1/model/list_external_vault_request.py +316 -0
  114. huaweicloudsdkcbr/v1/model/list_external_vault_response.py +203 -0
  115. huaweicloudsdkcbr/v1/model/list_op_logs_request.py +97 -46
  116. huaweicloudsdkcbr/v1/model/list_op_logs_response.py +86 -20
  117. huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +172 -0
  118. huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
  119. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
  120. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
  121. huaweicloudsdkcbr/v1/model/list_policies_request.py +27 -16
  122. huaweicloudsdkcbr/v1/model/list_policies_response.py +27 -19
  123. huaweicloudsdkcbr/v1/model/list_projects_request.py +84 -0
  124. huaweicloudsdkcbr/v1/model/list_projects_response.py +141 -0
  125. huaweicloudsdkcbr/v1/model/list_protectable_request.py +69 -34
  126. huaweicloudsdkcbr/v1/model/list_protectable_response.py +20 -14
  127. huaweicloudsdkcbr/v1/model/list_vault_request.py +92 -45
  128. huaweicloudsdkcbr/v1/model/list_vault_response.py +86 -20
  129. huaweicloudsdkcbr/v1/model/match.py +23 -16
  130. huaweicloudsdkcbr/v1/model/member.py +53 -34
  131. huaweicloudsdkcbr/v1/model/migrate_domain_request.py +111 -0
  132. huaweicloudsdkcbr/v1/model/migrate_domain_response.py +112 -0
  133. huaweicloudsdkcbr/v1/model/migrate_vault_resource_request.py +24 -21
  134. huaweicloudsdkcbr/v1/model/migrate_vault_resource_response.py +19 -13
  135. huaweicloudsdkcbr/v1/model/op_error_info.py +23 -16
  136. huaweicloudsdkcbr/v1/model/op_extend_info_bckup.py +43 -28
  137. huaweicloudsdkcbr/v1/model/op_extend_info_common.py +28 -19
  138. huaweicloudsdkcbr/v1/model/op_extend_info_delete.py +23 -16
  139. huaweicloudsdkcbr/v1/model/op_extend_info_remove_resources.py +31 -22
  140. huaweicloudsdkcbr/v1/model/op_extend_info_replication.py +63 -40
  141. huaweicloudsdkcbr/v1/model/op_extend_info_restore.py +33 -22
  142. huaweicloudsdkcbr/v1/model/op_extend_info_sync.py +28 -19
  143. huaweicloudsdkcbr/v1/model/op_extend_info_vault_delete.py +27 -20
  144. huaweicloudsdkcbr/v1/model/op_extra_info.py +67 -64
  145. huaweicloudsdkcbr/v1/model/operation_log.py +90 -61
  146. huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
  147. huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
  148. huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
  149. huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
  150. huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
  151. huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
  152. huaweicloudsdkcbr/v1/model/path.py +231 -0
  153. huaweicloudsdkcbr/v1/model/policy.py +51 -38
  154. huaweicloudsdkcbr/v1/model/policy_associate_vault.py +23 -16
  155. huaweicloudsdkcbr/v1/model/policy_create.py +40 -31
  156. huaweicloudsdkcbr/v1/model/policy_create_req.py +19 -16
  157. huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +20 -15
  158. huaweicloudsdkcbr/v1/model/policy_trigger_properties_resp.py +25 -18
  159. huaweicloudsdkcbr/v1/model/policy_trigger_req.py +19 -16
  160. huaweicloudsdkcbr/v1/model/policy_trigger_resp.py +34 -25
  161. huaweicloudsdkcbr/v1/model/policy_update.py +35 -28
  162. huaweicloudsdkcbr/v1/model/policy_update_req.py +19 -16
  163. huaweicloudsdkcbr/v1/model/policyo_od_create.py +97 -45
  164. huaweicloudsdkcbr/v1/model/projects_list_info.py +314 -0
  165. huaweicloudsdkcbr/v1/model/protectable_agent_req.py +114 -0
  166. huaweicloudsdkcbr/v1/model/protectable_agent_status.py +260 -0
  167. huaweicloudsdkcbr/v1/model/protectable_agent_status_resource.py +171 -0
  168. huaweicloudsdkcbr/v1/model/protectable_replication_capabilities_resp_region.py +23 -16
  169. huaweicloudsdkcbr/v1/model/protectable_result.py +68 -30
  170. huaweicloudsdkcbr/v1/model/protectables_resp.py +58 -41
  171. huaweicloudsdkcbr/v1/model/register_agent_request.py +111 -0
  172. huaweicloudsdkcbr/v1/model/register_agent_response.py +112 -0
  173. huaweicloudsdkcbr/v1/model/remove_agent_path_request.py +139 -0
  174. huaweicloudsdkcbr/v1/model/remove_agent_path_response.py +145 -0
  175. huaweicloudsdkcbr/v1/model/remove_vault_resource_request.py +26 -19
  176. huaweicloudsdkcbr/v1/model/remove_vault_resource_response.py +19 -13
  177. huaweicloudsdkcbr/v1/model/replication_record_get.py +85 -58
  178. huaweicloudsdkcbr/v1/model/replication_records_extra_info.py +231 -0
  179. huaweicloudsdkcbr/v1/model/resource.py +38 -28
  180. huaweicloudsdkcbr/v1/model/resource_create.py +36 -27
  181. huaweicloudsdkcbr/v1/model/resource_extra_info.py +28 -21
  182. huaweicloudsdkcbr/v1/model/resource_extra_info_include_volumes.py +23 -16
  183. huaweicloudsdkcbr/v1/model/resource_resp.py +88 -42
  184. huaweicloudsdkcbr/v1/model/restore_backup_request.py +26 -19
  185. huaweicloudsdkcbr/v1/model/restore_backup_response.py +14 -10
  186. huaweicloudsdkcbr/v1/model/restore_details.py +114 -0
  187. huaweicloudsdkcbr/v1/model/self_links_info.py +115 -0
  188. huaweicloudsdkcbr/v1/model/set_vault_resource_request.py +139 -0
  189. huaweicloudsdkcbr/v1/model/set_vault_resource_response.py +116 -0
  190. huaweicloudsdkcbr/v1/model/show_agent_request.py +114 -0
  191. huaweicloudsdkcbr/v1/model/show_agent_response.py +112 -0
  192. huaweicloudsdkcbr/v1/model/show_backup_request.py +20 -13
  193. huaweicloudsdkcbr/v1/model/show_backup_response.py +21 -17
  194. huaweicloudsdkcbr/v1/model/show_checkpoint_request.py +20 -13
  195. huaweicloudsdkcbr/v1/model/show_checkpoint_response.py +20 -16
  196. huaweicloudsdkcbr/v1/model/show_domain_request.py +114 -0
  197. huaweicloudsdkcbr/v1/model/show_domain_response.py +203 -0
  198. huaweicloudsdkcbr/v1/model/show_member_detail_request.py +27 -16
  199. huaweicloudsdkcbr/v1/model/show_member_detail_response.py +20 -16
  200. huaweicloudsdkcbr/v1/model/show_members_detail_request.py +76 -37
  201. huaweicloudsdkcbr/v1/model/show_members_detail_response.py +27 -19
  202. huaweicloudsdkcbr/v1/model/show_metadata_request.py +114 -0
  203. huaweicloudsdkcbr/v1/model/show_metadata_response.py +319 -0
  204. huaweicloudsdkcbr/v1/model/show_migrate_status_request.py +115 -0
  205. huaweicloudsdkcbr/v1/model/show_migrate_status_response.py +145 -0
  206. huaweicloudsdkcbr/v1/model/show_op_log_request.py +20 -13
  207. huaweicloudsdkcbr/v1/model/show_op_log_response.py +20 -16
  208. huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
  209. huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
  210. huaweicloudsdkcbr/v1/model/show_policy_request.py +20 -13
  211. huaweicloudsdkcbr/v1/model/show_policy_response.py +20 -16
  212. huaweicloudsdkcbr/v1/model/show_protectable_request.py +27 -16
  213. huaweicloudsdkcbr/v1/model/show_protectable_response.py +20 -16
  214. huaweicloudsdkcbr/v1/model/show_replication_capabilities_request.py +13 -10
  215. huaweicloudsdkcbr/v1/model/show_replication_capabilities_response.py +20 -14
  216. huaweicloudsdkcbr/v1/model/show_storage_usage_request.py +202 -0
  217. huaweicloudsdkcbr/v1/model/show_storage_usage_response.py +145 -0
  218. huaweicloudsdkcbr/v1/model/show_summary_request.py +84 -0
  219. huaweicloudsdkcbr/v1/model/show_summary_response.py +145 -0
  220. huaweicloudsdkcbr/v1/model/show_vault_project_tag_request.py +13 -10
  221. huaweicloudsdkcbr/v1/model/show_vault_project_tag_response.py +20 -14
  222. huaweicloudsdkcbr/v1/model/show_vault_request.py +20 -13
  223. huaweicloudsdkcbr/v1/model/show_vault_resource_instances_request.py +19 -16
  224. huaweicloudsdkcbr/v1/model/show_vault_resource_instances_response.py +25 -17
  225. huaweicloudsdkcbr/v1/model/show_vault_response.py +20 -16
  226. huaweicloudsdkcbr/v1/model/show_vault_tag_request.py +20 -13
  227. huaweicloudsdkcbr/v1/model/show_vault_tag_response.py +26 -18
  228. huaweicloudsdkcbr/v1/model/storage_usage.py +257 -0
  229. huaweicloudsdkcbr/v1/model/sync_param.py +142 -0
  230. huaweicloudsdkcbr/v1/model/sync_req.py +110 -0
  231. huaweicloudsdkcbr/v1/model/sync_resp_body.py +142 -0
  232. huaweicloudsdkcbr/v1/model/sys_tag.py +25 -18
  233. huaweicloudsdkcbr/v1/model/sys_tags.py +23 -16
  234. huaweicloudsdkcbr/v1/model/tag.py +28 -22
  235. huaweicloudsdkcbr/v1/model/tag_resource.py +44 -35
  236. huaweicloudsdkcbr/v1/model/tags_req.py +23 -16
  237. huaweicloudsdkcbr/v1/model/tags_resp.py +27 -20
  238. huaweicloudsdkcbr/v1/model/unregister_agent_request.py +114 -0
  239. huaweicloudsdkcbr/v1/model/unregister_agent_response.py +85 -0
  240. huaweicloudsdkcbr/v1/model/update_agent_request.py +135 -0
  241. huaweicloudsdkcbr/v1/model/update_agent_response.py +112 -0
  242. huaweicloudsdkcbr/v1/model/update_backup_request.py +139 -0
  243. huaweicloudsdkcbr/v1/model/update_backup_response.py +112 -0
  244. huaweicloudsdkcbr/v1/model/update_member.py +23 -16
  245. huaweicloudsdkcbr/v1/model/update_member_status_request.py +33 -22
  246. huaweicloudsdkcbr/v1/model/update_member_status_response.py +20 -16
  247. huaweicloudsdkcbr/v1/model/update_order_request.py +139 -0
  248. huaweicloudsdkcbr/v1/model/update_order_response.py +174 -0
  249. huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
  250. huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
  251. huaweicloudsdkcbr/v1/model/update_policy_request.py +26 -19
  252. huaweicloudsdkcbr/v1/model/update_policy_response.py +20 -16
  253. huaweicloudsdkcbr/v1/model/update_vault_request.py +26 -19
  254. huaweicloudsdkcbr/v1/model/update_vault_response.py +20 -16
  255. huaweicloudsdkcbr/v1/model/vault.py +236 -93
  256. huaweicloudsdkcbr/v1/model/vault_add_resource_req.py +19 -14
  257. huaweicloudsdkcbr/v1/model/vault_associate.py +59 -22
  258. huaweicloudsdkcbr/v1/model/vault_backup.py +24 -19
  259. huaweicloudsdkcbr/v1/model/vault_backup_req.py +19 -16
  260. huaweicloudsdkcbr/v1/model/vault_batch_update.py +144 -0
  261. huaweicloudsdkcbr/v1/model/vault_bind_rules.py +22 -17
  262. huaweicloudsdkcbr/v1/model/vault_create.py +246 -53
  263. huaweicloudsdkcbr/v1/model/vault_create_parameters.py +111 -0
  264. huaweicloudsdkcbr/v1/model/vault_create_req.py +19 -16
  265. huaweicloudsdkcbr/v1/model/vault_create_resource.py +797 -0
  266. huaweicloudsdkcbr/v1/model/vault_dissociate.py +18 -13
  267. huaweicloudsdkcbr/v1/model/vault_get.py +256 -108
  268. huaweicloudsdkcbr/v1/model/vault_migrate_resource_req.py +23 -16
  269. huaweicloudsdkcbr/v1/model/vault_order.py +478 -0
  270. huaweicloudsdkcbr/v1/model/vault_order_create_reqs.py +110 -0
  271. huaweicloudsdkcbr/v1/model/vault_policy_resp.py +28 -19
  272. huaweicloudsdkcbr/v1/model/vault_remove_resource_req.py +20 -15
  273. huaweicloudsdkcbr/v1/model/vault_resource_instances_req.py +106 -52
  274. huaweicloudsdkcbr/v1/model/vault_set_resource_req.py +142 -0
  275. huaweicloudsdkcbr/v1/model/vault_tags_create_req.py +19 -16
  276. huaweicloudsdkcbr/v1/model/vault_update.py +130 -34
  277. huaweicloudsdkcbr/v1/model/vault_update_req.py +19 -16
  278. huaweicloudsdkcbr/v1/region/cbr_region.py +119 -45
  279. {huaweicloudsdkcbr-3.0.42rc0.dist-info → huaweicloudsdkcbr-3.1.160.dist-info}/METADATA +9 -9
  280. huaweicloudsdkcbr-3.1.160.dist-info/RECORD +285 -0
  281. {huaweicloudsdkcbr-3.0.42rc0.dist-info → huaweicloudsdkcbr-3.1.160.dist-info}/WHEEL +1 -1
  282. huaweicloudsdkcbr/v1/model/backup_detail.py +0 -654
  283. huaweicloudsdkcbr-3.0.42rc0.dist-info/RECORD +0 -179
  284. {huaweicloudsdkcbr-3.0.42rc0.dist-info → huaweicloudsdkcbr-3.1.160.dist-info}/LICENSE +0 -0
  285. {huaweicloudsdkcbr-3.0.42rc0.dist-info → huaweicloudsdkcbr-3.1.160.dist-info}/top_level.txt +0 -0
@@ -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 PolicyCreate:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class PolicyCreate:
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 = {
@@ -39,7 +33,21 @@ class PolicyCreate:
39
33
  }
40
34
 
41
35
  def __init__(self, enabled=None, name=None, operation_definition=None, operation_type=None, trigger=None):
42
- """PolicyCreate - a model defined in huaweicloud sdk"""
36
+ r"""PolicyCreate
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param enabled: 是否启用策略
41
+ :type enabled: bool
42
+ :param name: 策略名称,长度限制:1- 64,只能由中文、字母、数字、“_”、“-”组成。
43
+ :type name: str
44
+ :param operation_definition:
45
+ :type operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
46
+ :param operation_type: 策略类型,如备份,复制 Enum:[ backup,replication]
47
+ :type operation_type: str
48
+ :param trigger:
49
+ :type trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
50
+ """
43
51
 
44
52
 
45
53
 
@@ -59,7 +67,7 @@ class PolicyCreate:
59
67
 
60
68
  @property
61
69
  def enabled(self):
62
- """Gets the enabled of this PolicyCreate.
70
+ r"""Gets the enabled of this PolicyCreate.
63
71
 
64
72
  是否启用策略
65
73
 
@@ -70,18 +78,18 @@ class PolicyCreate:
70
78
 
71
79
  @enabled.setter
72
80
  def enabled(self, enabled):
73
- """Sets the enabled of this PolicyCreate.
81
+ r"""Sets the enabled of this PolicyCreate.
74
82
 
75
83
  是否启用策略
76
84
 
77
85
  :param enabled: The enabled of this PolicyCreate.
78
- :type: bool
86
+ :type enabled: bool
79
87
  """
80
88
  self._enabled = enabled
81
89
 
82
90
  @property
83
91
  def name(self):
84
- """Gets the name of this PolicyCreate.
92
+ r"""Gets the name of this PolicyCreate.
85
93
 
86
94
  策略名称,长度限制:1- 64,只能由中文、字母、数字、“_”、“-”组成。
87
95
 
@@ -92,38 +100,36 @@ class PolicyCreate:
92
100
 
93
101
  @name.setter
94
102
  def name(self, name):
95
- """Sets the name of this PolicyCreate.
103
+ r"""Sets the name of this PolicyCreate.
96
104
 
97
105
  策略名称,长度限制:1- 64,只能由中文、字母、数字、“_”、“-”组成。
98
106
 
99
107
  :param name: The name of this PolicyCreate.
100
- :type: str
108
+ :type name: str
101
109
  """
102
110
  self._name = name
103
111
 
104
112
  @property
105
113
  def operation_definition(self):
106
- """Gets the operation_definition of this PolicyCreate.
107
-
114
+ r"""Gets the operation_definition of this PolicyCreate.
108
115
 
109
116
  :return: The operation_definition of this PolicyCreate.
110
- :rtype: PolicyoODCreate
117
+ :rtype: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
111
118
  """
112
119
  return self._operation_definition
113
120
 
114
121
  @operation_definition.setter
115
122
  def operation_definition(self, operation_definition):
116
- """Sets the operation_definition of this PolicyCreate.
117
-
123
+ r"""Sets the operation_definition of this PolicyCreate.
118
124
 
119
125
  :param operation_definition: The operation_definition of this PolicyCreate.
120
- :type: PolicyoODCreate
126
+ :type operation_definition: :class:`huaweicloudsdkcbr.v1.PolicyoODCreate`
121
127
  """
122
128
  self._operation_definition = operation_definition
123
129
 
124
130
  @property
125
131
  def operation_type(self):
126
- """Gets the operation_type of this PolicyCreate.
132
+ r"""Gets the operation_type of this PolicyCreate.
127
133
 
128
134
  策略类型,如备份,复制 Enum:[ backup,replication]
129
135
 
@@ -134,32 +140,30 @@ class PolicyCreate:
134
140
 
135
141
  @operation_type.setter
136
142
  def operation_type(self, operation_type):
137
- """Sets the operation_type of this PolicyCreate.
143
+ r"""Sets the operation_type of this PolicyCreate.
138
144
 
139
145
  策略类型,如备份,复制 Enum:[ backup,replication]
140
146
 
141
147
  :param operation_type: The operation_type of this PolicyCreate.
142
- :type: str
148
+ :type operation_type: str
143
149
  """
144
150
  self._operation_type = operation_type
145
151
 
146
152
  @property
147
153
  def trigger(self):
148
- """Gets the trigger of this PolicyCreate.
149
-
154
+ r"""Gets the trigger of this PolicyCreate.
150
155
 
151
156
  :return: The trigger of this PolicyCreate.
152
- :rtype: PolicyTriggerReq
157
+ :rtype: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
153
158
  """
154
159
  return self._trigger
155
160
 
156
161
  @trigger.setter
157
162
  def trigger(self, trigger):
158
- """Sets the trigger of this PolicyCreate.
159
-
163
+ r"""Sets the trigger of this PolicyCreate.
160
164
 
161
165
  :param trigger: The trigger of this PolicyCreate.
162
- :type: PolicyTriggerReq
166
+ :type trigger: :class:`huaweicloudsdkcbr.v1.PolicyTriggerReq`
163
167
  """
164
168
  self._trigger = trigger
165
169
 
@@ -192,10 +196,15 @@ class PolicyCreate:
192
196
 
193
197
  def to_str(self):
194
198
  """Returns the string representation of the model"""
195
- return pprint.pformat(self.to_dict())
199
+ import simplejson as json
200
+ if six.PY2:
201
+ import sys
202
+ reload(sys)
203
+ sys.setdefaultencoding("utf-8")
204
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
196
205
 
197
206
  def __repr__(self):
198
- """For `print` and `pprint`"""
207
+ """For `print`"""
199
208
  return self.to_str()
200
209
 
201
210
  def __eq__(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 PolicyCreateReq:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class PolicyCreateReq:
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 = {
@@ -31,7 +25,13 @@ class PolicyCreateReq:
31
25
  }
32
26
 
33
27
  def __init__(self, policy=None):
34
- """PolicyCreateReq - a model defined in huaweicloud sdk"""
28
+ r"""PolicyCreateReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param policy:
33
+ :type policy: :class:`huaweicloudsdkcbr.v1.PolicyCreate`
34
+ """
35
35
 
36
36
 
37
37
 
@@ -42,21 +42,19 @@ class PolicyCreateReq:
42
42
 
43
43
  @property
44
44
  def policy(self):
45
- """Gets the policy of this PolicyCreateReq.
46
-
45
+ r"""Gets the policy of this PolicyCreateReq.
47
46
 
48
47
  :return: The policy of this PolicyCreateReq.
49
- :rtype: PolicyCreate
48
+ :rtype: :class:`huaweicloudsdkcbr.v1.PolicyCreate`
50
49
  """
51
50
  return self._policy
52
51
 
53
52
  @policy.setter
54
53
  def policy(self, policy):
55
- """Sets the policy of this PolicyCreateReq.
56
-
54
+ r"""Sets the policy of this PolicyCreateReq.
57
55
 
58
56
  :param policy: The policy of this PolicyCreateReq.
59
- :type: PolicyCreate
57
+ :type policy: :class:`huaweicloudsdkcbr.v1.PolicyCreate`
60
58
  """
61
59
  self._policy = policy
62
60
 
@@ -89,10 +87,15 @@ class PolicyCreateReq:
89
87
 
90
88
  def to_str(self):
91
89
  """Returns the string representation of the model"""
92
- return pprint.pformat(self.to_dict())
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)
93
96
 
94
97
  def __repr__(self):
95
- """For `print` and `pprint`"""
98
+ """For `print`"""
96
99
  return self.to_str()
97
100
 
98
101
  def __eq__(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 PolicyTriggerPropertiesReq:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class PolicyTriggerPropertiesReq:
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 = {
@@ -31,7 +25,13 @@ class PolicyTriggerPropertiesReq:
31
25
  }
32
26
 
33
27
  def __init__(self, pattern=None):
34
- """PolicyTriggerPropertiesReq - a model defined in huaweicloud sdk"""
28
+ r"""PolicyTriggerPropertiesReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param pattern: 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,如果在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
33
+ :type pattern: list[str]
34
+ """
35
35
 
36
36
 
37
37
 
@@ -42,9 +42,9 @@ class PolicyTriggerPropertiesReq:
42
42
 
43
43
  @property
44
44
  def pattern(self):
45
- """Gets the pattern of this PolicyTriggerPropertiesReq.
45
+ r"""Gets the pattern of this PolicyTriggerPropertiesReq.
46
46
 
47
- 调度规则,复制策略建议一天只设置一个时间点。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。
47
+ 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,如果在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'
48
48
 
49
49
  :return: The pattern of this PolicyTriggerPropertiesReq.
50
50
  :rtype: list[str]
@@ -53,12 +53,12 @@ class PolicyTriggerPropertiesReq:
53
53
 
54
54
  @pattern.setter
55
55
  def pattern(self, pattern):
56
- """Sets the pattern of this PolicyTriggerPropertiesReq.
56
+ r"""Sets the pattern of this PolicyTriggerPropertiesReq.
57
57
 
58
- 调度规则,复制策略建议一天只设置一个时间点。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。
58
+ 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,如果在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'
59
59
 
60
60
  :param pattern: The pattern of this PolicyTriggerPropertiesReq.
61
- :type: list[str]
61
+ :type pattern: list[str]
62
62
  """
63
63
  self._pattern = pattern
64
64
 
@@ -91,10 +91,15 @@ class PolicyTriggerPropertiesReq:
91
91
 
92
92
  def to_str(self):
93
93
  """Returns the string representation of the model"""
94
- return pprint.pformat(self.to_dict())
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)
95
100
 
96
101
  def __repr__(self):
97
- """For `print` and `pprint`"""
102
+ """For `print`"""
98
103
  return self.to_str()
99
104
 
100
105
  def __eq__(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 PolicyTriggerPropertiesResp:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class PolicyTriggerPropertiesResp:
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 PolicyTriggerPropertiesResp:
33
27
  }
34
28
 
35
29
  def __init__(self, pattern=None, start_time=None):
36
- """PolicyTriggerPropertiesResp - a model defined in huaweicloud sdk"""
30
+ r"""PolicyTriggerPropertiesResp
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param pattern: 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
35
+ :type pattern: list[str]
36
+ :param start_time: 调度器开始时间,例如:\"2020-01-08 09:59:49\"
37
+ :type start_time: str
38
+ """
37
39
 
38
40
 
39
41
 
@@ -47,9 +49,9 @@ class PolicyTriggerPropertiesResp:
47
49
 
48
50
  @property
49
51
  def pattern(self):
50
- """Gets the pattern of this PolicyTriggerPropertiesResp.
52
+ r"""Gets the pattern of this PolicyTriggerPropertiesResp.
51
53
 
52
- 调度器的调度策略,长度限制为10240个字符,参照iCalendar RFC 2445规范,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE四个参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且时间点间隔不能小于一小时,一个备份策略可以同时设置多个备份时间点,一天最多可以设置24个时间点。
54
+ 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
53
55
 
54
56
  :return: The pattern of this PolicyTriggerPropertiesResp.
55
57
  :rtype: list[str]
@@ -58,18 +60,18 @@ class PolicyTriggerPropertiesResp:
58
60
 
59
61
  @pattern.setter
60
62
  def pattern(self, pattern):
61
- """Sets the pattern of this PolicyTriggerPropertiesResp.
63
+ r"""Sets the pattern of this PolicyTriggerPropertiesResp.
62
64
 
63
- 调度器的调度策略,长度限制为10240个字符,参照iCalendar RFC 2445规范,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE四个参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且时间点间隔不能小于一小时,一个备份策略可以同时设置多个备份时间点,一天最多可以设置24个时间点。
65
+ 调度规则。限制24条规则。调度器的调度规则,可参照iCalendar RFC 2445规范中的事件规则,但仅支持FREQ、BYDAY、BYHOUR、BYMINUTE、INTERVAL等参数,其中FREQ仅支持WEEKLY和DAILY,BYDAY支持一周七天(MO、TU、WE、TH、FR、SA、SU),BYHOUR支持0-23小时,BYMINUTE支持0-59分钟,并且间隔不能小于一小时,一天最大24个时间点。例如,周一到周天,每天UTC时间的14:00调度,其规则为:'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA,SU;BYHOUR=14;BYMINUTE=00'。例如:某个地区的时间为 UTC+8,若在该地区每天14:00调度,则在14点基础上减8,其规则为'FREQ=DAILY;INTERVAL=1;BYHOUR=6;BYMINUTE=00'。
64
66
 
65
67
  :param pattern: The pattern of this PolicyTriggerPropertiesResp.
66
- :type: list[str]
68
+ :type pattern: list[str]
67
69
  """
68
70
  self._pattern = pattern
69
71
 
70
72
  @property
71
73
  def start_time(self):
72
- """Gets the start_time of this PolicyTriggerPropertiesResp.
74
+ r"""Gets the start_time of this PolicyTriggerPropertiesResp.
73
75
 
74
76
  调度器开始时间,例如:\"2020-01-08 09:59:49\"
75
77
 
@@ -80,12 +82,12 @@ class PolicyTriggerPropertiesResp:
80
82
 
81
83
  @start_time.setter
82
84
  def start_time(self, start_time):
83
- """Sets the start_time of this PolicyTriggerPropertiesResp.
85
+ r"""Sets the start_time of this PolicyTriggerPropertiesResp.
84
86
 
85
87
  调度器开始时间,例如:\"2020-01-08 09:59:49\"
86
88
 
87
89
  :param start_time: The start_time of this PolicyTriggerPropertiesResp.
88
- :type: str
90
+ :type start_time: str
89
91
  """
90
92
  self._start_time = start_time
91
93
 
@@ -118,10 +120,15 @@ class PolicyTriggerPropertiesResp:
118
120
 
119
121
  def to_str(self):
120
122
  """Returns the string representation of the model"""
121
- return pprint.pformat(self.to_dict())
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
122
129
 
123
130
  def __repr__(self):
124
- """For `print` and `pprint`"""
131
+ """For `print`"""
125
132
  return self.to_str()
126
133
 
127
134
  def __eq__(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 PolicyTriggerReq:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class PolicyTriggerReq:
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 = {
@@ -31,7 +25,13 @@ class PolicyTriggerReq:
31
25
  }
32
26
 
33
27
  def __init__(self, properties=None):
34
- """PolicyTriggerReq - a model defined in huaweicloud sdk"""
28
+ r"""PolicyTriggerReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param properties:
33
+ :type properties: :class:`huaweicloudsdkcbr.v1.PolicyTriggerPropertiesReq`
34
+ """
35
35
 
36
36
 
37
37
 
@@ -42,21 +42,19 @@ class PolicyTriggerReq:
42
42
 
43
43
  @property
44
44
  def properties(self):
45
- """Gets the properties of this PolicyTriggerReq.
46
-
45
+ r"""Gets the properties of this PolicyTriggerReq.
47
46
 
48
47
  :return: The properties of this PolicyTriggerReq.
49
- :rtype: PolicyTriggerPropertiesReq
48
+ :rtype: :class:`huaweicloudsdkcbr.v1.PolicyTriggerPropertiesReq`
50
49
  """
51
50
  return self._properties
52
51
 
53
52
  @properties.setter
54
53
  def properties(self, properties):
55
- """Sets the properties of this PolicyTriggerReq.
56
-
54
+ r"""Sets the properties of this PolicyTriggerReq.
57
55
 
58
56
  :param properties: The properties of this PolicyTriggerReq.
59
- :type: PolicyTriggerPropertiesReq
57
+ :type properties: :class:`huaweicloudsdkcbr.v1.PolicyTriggerPropertiesReq`
60
58
  """
61
59
  self._properties = properties
62
60
 
@@ -89,10 +87,15 @@ class PolicyTriggerReq:
89
87
 
90
88
  def to_str(self):
91
89
  """Returns the string representation of the model"""
92
- return pprint.pformat(self.to_dict())
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)
93
96
 
94
97
  def __repr__(self):
95
- """For `print` and `pprint`"""
98
+ """For `print`"""
96
99
  return self.to_str()
97
100
 
98
101
  def __eq__(self, other):