volcengine-python-sdk 4.0.29__py2.py3-none-any.whl → 4.0.31__py2.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.

Potentially problematic release.


This version of volcengine-python-sdk might be problematic. Click here for more details.

Files changed (476) hide show
  1. {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/METADATA +1 -1
  2. {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/RECORD +476 -72
  3. {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/top_level.txt +2 -0
  4. volcenginesdkacep/__init__.py +42 -0
  5. volcenginesdkacep/api/acep_api.py +1001 -128
  6. volcenginesdkacep/models/__init__.py +42 -0
  7. volcenginesdkacep/models/add_phone_template_request.py +256 -0
  8. volcenginesdkacep/models/add_phone_template_response.py +123 -0
  9. volcenginesdkacep/models/app_list_for_create_pod_one_step_input.py +149 -0
  10. volcenginesdkacep/models/create_pod_one_step_request.py +698 -0
  11. volcenginesdkacep/models/create_pod_one_step_response.py +175 -0
  12. volcenginesdkacep/models/create_pod_request.py +696 -0
  13. volcenginesdkacep/models/create_pod_response.py +149 -0
  14. volcenginesdkacep/models/get_phone_template_request.py +124 -0
  15. volcenginesdkacep/models/get_phone_template_response.py +149 -0
  16. volcenginesdkacep/models/job_for_reset_pod_output.py +305 -0
  17. volcenginesdkacep/models/list_phone_template_request.py +279 -0
  18. volcenginesdkacep/models/list_phone_template_response.py +149 -0
  19. volcenginesdkacep/models/overlay_persist_property_for_add_phone_template_input.py +175 -0
  20. volcenginesdkacep/models/overlay_persist_property_for_create_pod_input.py +175 -0
  21. volcenginesdkacep/models/overlay_persist_property_for_create_pod_one_step_input.py +175 -0
  22. volcenginesdkacep/models/overlay_persist_property_for_get_phone_template_output.py +175 -0
  23. volcenginesdkacep/models/overlay_persist_property_for_list_phone_template_output.py +175 -0
  24. volcenginesdkacep/models/overlay_property_for_add_phone_template_input.py +175 -0
  25. volcenginesdkacep/models/overlay_property_for_create_pod_input.py +175 -0
  26. volcenginesdkacep/models/overlay_property_for_create_pod_one_step_input.py +175 -0
  27. volcenginesdkacep/models/overlay_property_for_get_phone_template_output.py +175 -0
  28. volcenginesdkacep/models/overlay_property_for_list_phone_template_output.py +175 -0
  29. volcenginesdkacep/models/overlay_setting_for_add_phone_template_input.py +201 -0
  30. volcenginesdkacep/models/overlay_setting_for_create_pod_input.py +201 -0
  31. volcenginesdkacep/models/overlay_setting_for_create_pod_one_step_input.py +201 -0
  32. volcenginesdkacep/models/overlay_setting_for_get_phone_template_output.py +201 -0
  33. volcenginesdkacep/models/overlay_setting_for_list_phone_template_output.py +201 -0
  34. volcenginesdkacep/models/phone_template_for_get_phone_template_output.py +279 -0
  35. volcenginesdkacep/models/pod_persist_property_for_update_pod_property_input.py +175 -0
  36. volcenginesdkacep/models/pod_property_for_update_pod_property_input.py +175 -0
  37. volcenginesdkacep/models/pod_setting_for_update_pod_property_input.py +201 -0
  38. volcenginesdkacep/models/pod_spec_list_for_create_pod_input.py +617 -0
  39. volcenginesdkacep/models/remove_phone_template_request.py +123 -0
  40. volcenginesdkacep/models/remove_phone_template_response.py +123 -0
  41. volcenginesdkacep/models/reset_pod_request.py +280 -0
  42. volcenginesdkacep/models/reset_pod_response.py +175 -0
  43. volcenginesdkacep/models/row_for_list_phone_template_output.py +279 -0
  44. volcenginesdkacep/models/tag_for_get_phone_template_output.py +201 -0
  45. volcenginesdkacep/models/update_phone_template_request.py +176 -0
  46. volcenginesdkacep/models/update_phone_template_response.py +95 -0
  47. volcenginesdkacep/models/update_pod_property_request.py +280 -0
  48. volcenginesdkacep/models/update_pod_property_response.py +95 -0
  49. volcenginesdkarkruntime/resources/encryption.py +10 -2
  50. volcenginesdkarkruntime/resources/responses/responses.py +42 -24
  51. volcenginesdkarkruntime/types/__init__.py +2 -0
  52. volcenginesdkarkruntime/types/responses/audio_chunking_strategy.py +30 -0
  53. volcenginesdkarkruntime/types/responses/audio_chunking_strategy_param.py +28 -0
  54. volcenginesdkarkruntime/types/responses/image_process_grounding_options.py +23 -0
  55. volcenginesdkarkruntime/types/responses/image_process_grounding_options_param.py +23 -0
  56. volcenginesdkarkruntime/types/responses/image_process_point_options.py +23 -0
  57. volcenginesdkarkruntime/types/responses/image_process_point_options_param.py +23 -0
  58. volcenginesdkarkruntime/types/responses/image_process_rotate_options.py +23 -0
  59. volcenginesdkarkruntime/types/responses/image_process_rotate_options_param.py +23 -0
  60. volcenginesdkarkruntime/types/responses/image_process_tool.py +41 -0
  61. volcenginesdkarkruntime/types/responses/image_process_tool_param.py +40 -0
  62. volcenginesdkarkruntime/types/responses/image_process_zoom_options.py +23 -0
  63. volcenginesdkarkruntime/types/responses/image_process_zoom_options_param.py +23 -0
  64. volcenginesdkarkruntime/types/responses/item_function_image_process.py +37 -0
  65. volcenginesdkarkruntime/types/responses/knowledge_search_tool.py +46 -0
  66. volcenginesdkarkruntime/types/responses/knowledge_search_tool_param.py +44 -0
  67. volcenginesdkarkruntime/types/responses/mcp_tool.py +8 -4
  68. volcenginesdkarkruntime/types/responses/response.py +58 -92
  69. volcenginesdkarkruntime/types/responses/response_annotation_added_event.py +3 -22
  70. volcenginesdkarkruntime/types/responses/response_caching.py +6 -6
  71. volcenginesdkarkruntime/types/responses/response_caching_param.py +7 -4
  72. volcenginesdkarkruntime/types/responses/response_create_params.py +11 -3
  73. volcenginesdkarkruntime/types/responses/response_image_process_action.py +24 -0
  74. volcenginesdkarkruntime/types/responses/response_image_process_args.py +30 -0
  75. volcenginesdkarkruntime/types/responses/response_image_process_call_completed_event.py +35 -0
  76. volcenginesdkarkruntime/types/responses/response_image_process_call_in_progress_event.py +24 -0
  77. volcenginesdkarkruntime/types/responses/response_image_process_call_processing_event.py +30 -0
  78. volcenginesdkarkruntime/types/responses/response_image_process_error.py +20 -0
  79. volcenginesdkarkruntime/types/responses/response_image_process_grounding_args.py +24 -0
  80. volcenginesdkarkruntime/types/responses/response_image_process_point_args.py +24 -0
  81. volcenginesdkarkruntime/types/responses/response_image_process_rotate_args.py +22 -0
  82. volcenginesdkarkruntime/types/responses/response_image_process_zoom_args.py +24 -0
  83. volcenginesdkarkruntime/types/responses/response_input_audio.py +33 -0
  84. volcenginesdkarkruntime/types/responses/response_input_audio_param.py +32 -0
  85. volcenginesdkarkruntime/types/responses/response_input_content.py +13 -3
  86. volcenginesdkarkruntime/types/responses/response_input_file.py +32 -0
  87. volcenginesdkarkruntime/types/responses/response_input_file_param.py +30 -0
  88. volcenginesdkarkruntime/types/responses/response_input_message_content_list_param.py +11 -3
  89. volcenginesdkarkruntime/types/responses/response_input_video.py +33 -0
  90. volcenginesdkarkruntime/types/responses/response_input_video_param.py +6 -9
  91. volcenginesdkarkruntime/types/responses/response_knowledge_search_call_completed_event.py +24 -0
  92. volcenginesdkarkruntime/types/responses/response_knowledge_search_call_failed_event.py +24 -0
  93. volcenginesdkarkruntime/types/responses/response_knowledge_search_call_in_progress_event.py +24 -0
  94. volcenginesdkarkruntime/types/responses/response_knowledge_search_call_searching_event.py +24 -0
  95. volcenginesdkarkruntime/types/responses/response_knowledge_search_item.py +32 -0
  96. volcenginesdkarkruntime/types/responses/response_output_item.py +8 -4
  97. volcenginesdkarkruntime/types/responses/response_output_text.py +4 -33
  98. volcenginesdkarkruntime/types/responses/response_output_text_annotation.py +63 -0
  99. volcenginesdkarkruntime/types/responses/response_output_text_annotation_added_event.py +33 -0
  100. volcenginesdkarkruntime/types/responses/response_stream_event.py +89 -50
  101. volcenginesdkarkruntime/types/responses/response_tool_usage.py +14 -6
  102. volcenginesdkarkruntime/types/responses/responses_output_text_annotation_cover_image.py +25 -0
  103. volcenginesdkarkruntime/types/responses/tool.py +5 -2
  104. volcenginesdkarkruntime/types/responses/tool_choice_knowledge_search.py +22 -0
  105. volcenginesdkarkruntime/types/responses/tool_choice_knowledge_search_param.py +20 -0
  106. volcenginesdkarkruntime/types/responses/tool_choice_mcp.py +31 -0
  107. volcenginesdkarkruntime/types/responses/tool_choice_mcp_param.py +4 -4
  108. volcenginesdkarkruntime/types/responses/tool_choice_web_search.py +22 -0
  109. volcenginesdkarkruntime/types/responses/tool_choice_web_search_param.py +20 -0
  110. volcenginesdkarkruntime/types/responses/tool_param.py +11 -3
  111. volcenginesdkarkruntime/types/responses/user_location.py +30 -0
  112. volcenginesdkarkruntime/types/responses/user_location_param.py +31 -0
  113. volcenginesdkarkruntime/types/responses/web_search_tool.py +11 -22
  114. volcenginesdkarkruntime/types/responses/web_search_tool_param.py +8 -17
  115. volcenginesdkarkruntime/types/shared/__init__.py +3 -0
  116. volcenginesdkarkruntime/types/shared/reasoning.py +10 -0
  117. volcenginesdkarkruntime/types/shared_params/__init__.py +2 -0
  118. volcenginesdkarkruntime/types/shared_params/reasoning.py +12 -0
  119. volcenginesdkarkruntime/types/shared_params/reasoning_effort.py +8 -0
  120. volcenginesdkcbr/__init__.py +91 -0
  121. volcenginesdkcbr/api/__init__.py +6 -0
  122. volcenginesdkcbr/api/cbr_api.py +2362 -0
  123. volcenginesdkcbr/models/__init__.py +87 -0
  124. volcenginesdkcbr/models/backup_policy_for_describe_backup_policies_output.py +357 -0
  125. volcenginesdkcbr/models/create_backup_job_request.py +238 -0
  126. volcenginesdkcbr/models/create_backup_job_response.py +123 -0
  127. volcenginesdkcbr/models/create_backup_plan_request.py +176 -0
  128. volcenginesdkcbr/models/create_backup_plan_response.py +123 -0
  129. volcenginesdkcbr/models/create_backup_policy_request.py +293 -0
  130. volcenginesdkcbr/models/create_backup_policy_response.py +123 -0
  131. volcenginesdkcbr/models/create_backup_resource_request.py +211 -0
  132. volcenginesdkcbr/models/create_backup_resource_response.py +123 -0
  133. volcenginesdkcbr/models/create_restore_job_request.py +177 -0
  134. volcenginesdkcbr/models/create_restore_job_response.py +123 -0
  135. volcenginesdkcbr/models/create_vault_request.py +150 -0
  136. volcenginesdkcbr/models/create_vault_response.py +123 -0
  137. volcenginesdkcbr/models/delete_backup_plan_request.py +124 -0
  138. volcenginesdkcbr/models/delete_backup_plan_response.py +95 -0
  139. volcenginesdkcbr/models/delete_backup_policy_request.py +124 -0
  140. volcenginesdkcbr/models/delete_backup_policy_response.py +95 -0
  141. volcenginesdkcbr/models/delete_backup_resource_request.py +124 -0
  142. volcenginesdkcbr/models/delete_backup_resource_response.py +95 -0
  143. volcenginesdkcbr/models/delete_recovery_point_request.py +124 -0
  144. volcenginesdkcbr/models/delete_recovery_point_response.py +95 -0
  145. volcenginesdkcbr/models/delete_vault_request.py +124 -0
  146. volcenginesdkcbr/models/delete_vault_response.py +95 -0
  147. volcenginesdkcbr/models/describe_backup_plans_request.py +175 -0
  148. volcenginesdkcbr/models/describe_backup_plans_response.py +149 -0
  149. volcenginesdkcbr/models/describe_backup_policies_request.py +175 -0
  150. volcenginesdkcbr/models/describe_backup_policies_response.py +149 -0
  151. volcenginesdkcbr/models/describe_backup_resources_request.py +175 -0
  152. volcenginesdkcbr/models/describe_backup_resources_response.py +149 -0
  153. volcenginesdkcbr/models/describe_recovery_points_request.py +175 -0
  154. volcenginesdkcbr/models/describe_recovery_points_response.py +149 -0
  155. volcenginesdkcbr/models/describe_regions_request.py +95 -0
  156. volcenginesdkcbr/models/describe_regions_response.py +123 -0
  157. volcenginesdkcbr/models/describe_restore_jobs_request.py +175 -0
  158. volcenginesdkcbr/models/describe_restore_jobs_response.py +149 -0
  159. volcenginesdkcbr/models/describe_vaults_request.py +201 -0
  160. volcenginesdkcbr/models/describe_vaults_response.py +149 -0
  161. volcenginesdkcbr/models/disable_backup_policy_request.py +124 -0
  162. volcenginesdkcbr/models/disable_backup_policy_response.py +95 -0
  163. volcenginesdkcbr/models/enable_backup_policy_request.py +124 -0
  164. volcenginesdkcbr/models/enable_backup_policy_response.py +95 -0
  165. volcenginesdkcbr/models/filter_list_for_describe_backup_resources_input.py +149 -0
  166. volcenginesdkcbr/models/filters_for_describe_backup_plans_input.py +149 -0
  167. volcenginesdkcbr/models/filters_for_describe_backup_policies_input.py +175 -0
  168. volcenginesdkcbr/models/filters_for_describe_recovery_points_input.py +253 -0
  169. volcenginesdkcbr/models/filters_for_describe_restore_jobs_input.py +201 -0
  170. volcenginesdkcbr/models/filters_for_describe_vaults_input.py +149 -0
  171. volcenginesdkcbr/models/job_for_describe_restore_jobs_output.py +279 -0
  172. volcenginesdkcbr/models/meta_information_for_create_backup_plan_input.py +149 -0
  173. volcenginesdkcbr/models/meta_information_for_create_backup_resource_input.py +149 -0
  174. volcenginesdkcbr/models/meta_information_for_describe_backup_resources_output.py +149 -0
  175. volcenginesdkcbr/models/meta_information_for_update_backup_plan_input.py +149 -0
  176. volcenginesdkcbr/models/plan_for_describe_backup_plans_output.py +253 -0
  177. volcenginesdkcbr/models/plan_for_describe_backup_resources_output.py +149 -0
  178. volcenginesdkcbr/models/policy_for_describe_backup_plans_output.py +357 -0
  179. volcenginesdkcbr/models/recovery_point_for_describe_recovery_points_output.py +513 -0
  180. volcenginesdkcbr/models/region_for_describe_regions_output.py +149 -0
  181. volcenginesdkcbr/models/resource_for_describe_backup_resources_output.py +409 -0
  182. volcenginesdkcbr/models/resource_list_for_create_backup_plan_input.py +175 -0
  183. volcenginesdkcbr/models/resource_list_for_update_backup_plan_input.py +175 -0
  184. volcenginesdkcbr/models/tag_for_describe_vaults_output.py +149 -0
  185. volcenginesdkcbr/models/update_backup_plan_request.py +202 -0
  186. volcenginesdkcbr/models/update_backup_plan_response.py +95 -0
  187. volcenginesdkcbr/models/update_backup_policy_request.py +261 -0
  188. volcenginesdkcbr/models/update_backup_policy_response.py +95 -0
  189. volcenginesdkcbr/models/update_recovery_point_request.py +151 -0
  190. volcenginesdkcbr/models/update_recovery_point_response.py +95 -0
  191. volcenginesdkcbr/models/update_restore_job_request.py +151 -0
  192. volcenginesdkcbr/models/update_restore_job_response.py +95 -0
  193. volcenginesdkcbr/models/vault_list_for_describe_vaults_output.py +279 -0
  194. volcenginesdkcore/api_client.py +1 -1
  195. volcenginesdkcore/configuration.py +1 -1
  196. volcenginesdkcore/interceptor/interceptors/sign_request_interceptor.py +1 -0
  197. volcenginesdkcore/observability/debugger.py +4 -2
  198. volcenginesdkcore/retryer/retryer.py +4 -1
  199. volcenginesdkgraph/__init__.py +11 -0
  200. volcenginesdkgraph/api/graph_api.py +485 -0
  201. volcenginesdkgraph/models/__init__.py +11 -0
  202. volcenginesdkgraph/models/describe_vegraph_config_in_k8s_request.py +124 -0
  203. volcenginesdkgraph/models/describe_vegraph_config_in_k8s_response.py +201 -0
  204. volcenginesdkgraph/models/key_black_list_for_update_key_black_list_conf_input.py +175 -0
  205. volcenginesdkgraph/models/update_gremlin_keyword_black_list_conf_request.py +230 -0
  206. volcenginesdkgraph/models/update_gremlin_keyword_black_list_conf_response.py +95 -0
  207. volcenginesdkgraph/models/update_key_black_list_conf_request.py +230 -0
  208. volcenginesdkgraph/models/update_key_black_list_conf_response.py +95 -0
  209. volcenginesdkgraph/models/update_tablet_read_black_list_conf_request.py +230 -0
  210. volcenginesdkgraph/models/update_tablet_read_black_list_conf_response.py +95 -0
  211. volcenginesdkgraph/models/update_tablet_write_black_list_conf_request.py +230 -0
  212. volcenginesdkgraph/models/update_tablet_write_black_list_conf_response.py +95 -0
  213. volcenginesdkmilvus/__init__.py +112 -0
  214. volcenginesdkmilvus/api/__init__.py +6 -0
  215. volcenginesdkmilvus/api/milvus_api.py +2168 -0
  216. volcenginesdkmilvus/models/__init__.py +108 -0
  217. volcenginesdkmilvus/models/allow_group_list_for_describe_instance_detail_output.py +149 -0
  218. volcenginesdkmilvus/models/base_instance_for_describe_instance_detail_output.py +435 -0
  219. volcenginesdkmilvus/models/charge_config_for_create_instance_input.py +201 -0
  220. volcenginesdkmilvus/models/charge_config_for_create_instance_one_step_input.py +201 -0
  221. volcenginesdkmilvus/models/charge_config_for_describe_instance_detail_output.py +201 -0
  222. volcenginesdkmilvus/models/charge_config_for_describe_instances_output.py +201 -0
  223. volcenginesdkmilvus/models/charge_config_for_describe_price_input.py +201 -0
  224. volcenginesdkmilvus/models/component_spec_list_for_create_instance_input.py +253 -0
  225. volcenginesdkmilvus/models/component_spec_list_for_create_instance_one_step_input.py +253 -0
  226. volcenginesdkmilvus/models/component_spec_list_for_describe_price_input.py +227 -0
  227. volcenginesdkmilvus/models/component_spec_list_for_scale_instance_input.py +227 -0
  228. volcenginesdkmilvus/models/config_assign_list_for_modify_instance_config_input.py +149 -0
  229. volcenginesdkmilvus/models/configuration_for_describe_instance_config_output.py +331 -0
  230. volcenginesdkmilvus/models/create_instance_one_step_request.py +306 -0
  231. volcenginesdkmilvus/models/create_instance_one_step_response.py +227 -0
  232. volcenginesdkmilvus/models/create_instance_request.py +306 -0
  233. volcenginesdkmilvus/models/create_instance_response.py +227 -0
  234. volcenginesdkmilvus/models/describe_available_spec_request.py +95 -0
  235. volcenginesdkmilvus/models/describe_available_spec_response.py +201 -0
  236. volcenginesdkmilvus/models/describe_available_version_request.py +95 -0
  237. volcenginesdkmilvus/models/describe_available_version_response.py +123 -0
  238. volcenginesdkmilvus/models/describe_config_modules_request.py +124 -0
  239. volcenginesdkmilvus/models/describe_config_modules_response.py +123 -0
  240. volcenginesdkmilvus/models/describe_instance_config_request.py +124 -0
  241. volcenginesdkmilvus/models/describe_instance_config_response.py +123 -0
  242. volcenginesdkmilvus/models/describe_instance_detail_request.py +124 -0
  243. volcenginesdkmilvus/models/describe_instance_detail_response.py +409 -0
  244. volcenginesdkmilvus/models/describe_instances_request.py +253 -0
  245. volcenginesdkmilvus/models/describe_instances_response.py +227 -0
  246. volcenginesdkmilvus/models/describe_node_info_request.py +124 -0
  247. volcenginesdkmilvus/models/describe_node_info_response.py +123 -0
  248. volcenginesdkmilvus/models/describe_price_request.py +175 -0
  249. volcenginesdkmilvus/models/describe_price_response.py +227 -0
  250. volcenginesdkmilvus/models/describe_zones_request.py +95 -0
  251. volcenginesdkmilvus/models/describe_zones_response.py +123 -0
  252. volcenginesdkmilvus/models/endpoint_list_for_describe_instance_detail_output.py +305 -0
  253. volcenginesdkmilvus/models/instance_configuration_for_create_instance_input.py +227 -0
  254. volcenginesdkmilvus/models/instance_configuration_for_create_instance_one_step_input.py +227 -0
  255. volcenginesdkmilvus/models/instance_info_for_describe_instances_output.py +409 -0
  256. volcenginesdkmilvus/models/list_tags_for_resources_request.py +228 -0
  257. volcenginesdkmilvus/models/list_tags_for_resources_response.py +149 -0
  258. volcenginesdkmilvus/models/modify_delete_protect_request.py +151 -0
  259. volcenginesdkmilvus/models/modify_delete_protect_response.py +123 -0
  260. volcenginesdkmilvus/models/modify_instance_config_request.py +150 -0
  261. volcenginesdkmilvus/models/modify_instance_config_response.py +123 -0
  262. volcenginesdkmilvus/models/modify_instance_name_request.py +151 -0
  263. volcenginesdkmilvus/models/modify_instance_name_response.py +123 -0
  264. volcenginesdkmilvus/models/modify_post_paid_request.py +205 -0
  265. volcenginesdkmilvus/models/modify_post_paid_response.py +253 -0
  266. volcenginesdkmilvus/models/modify_pre_paid_request.py +205 -0
  267. volcenginesdkmilvus/models/modify_pre_paid_response.py +253 -0
  268. volcenginesdkmilvus/models/modify_resource_tags_request.py +176 -0
  269. volcenginesdkmilvus/models/modify_resource_tags_response.py +123 -0
  270. volcenginesdkmilvus/models/network_config_for_create_instance_input.py +175 -0
  271. volcenginesdkmilvus/models/network_config_for_create_instance_one_step_input.py +175 -0
  272. volcenginesdkmilvus/models/network_config_for_describe_instance_detail_output.py +175 -0
  273. volcenginesdkmilvus/models/network_config_for_describe_instances_output.py +175 -0
  274. volcenginesdkmilvus/models/node_cu_type_support_spec_list_for_describe_available_spec_output.py +175 -0
  275. volcenginesdkmilvus/models/node_info_list_for_describe_node_info_output.py +357 -0
  276. volcenginesdkmilvus/models/node_price_list_for_describe_price_output.py +305 -0
  277. volcenginesdkmilvus/models/node_support_spec_list_for_describe_available_spec_output.py +175 -0
  278. volcenginesdkmilvus/models/release_instance_request.py +124 -0
  279. volcenginesdkmilvus/models/release_instance_response.py +123 -0
  280. volcenginesdkmilvus/models/scale_instance_request.py +204 -0
  281. volcenginesdkmilvus/models/scale_instance_response.py +175 -0
  282. volcenginesdkmilvus/models/spec_config_for_describe_instance_detail_output.py +227 -0
  283. volcenginesdkmilvus/models/spec_list_for_describe_available_spec_output.py +253 -0
  284. volcenginesdkmilvus/models/subnet_info_for_create_instance_input.py +149 -0
  285. volcenginesdkmilvus/models/subnet_info_for_create_instance_one_step_input.py +149 -0
  286. volcenginesdkmilvus/models/subnet_info_for_describe_instance_detail_output.py +149 -0
  287. volcenginesdkmilvus/models/subnet_info_for_describe_instances_output.py +149 -0
  288. volcenginesdkmilvus/models/tag_filter_for_describe_instances_input.py +149 -0
  289. volcenginesdkmilvus/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
  290. volcenginesdkmilvus/models/tag_for_create_instance_input.py +149 -0
  291. volcenginesdkmilvus/models/tag_for_create_instance_one_step_input.py +149 -0
  292. volcenginesdkmilvus/models/tag_for_describe_instance_detail_output.py +149 -0
  293. volcenginesdkmilvus/models/tag_for_describe_instances_output.py +149 -0
  294. volcenginesdkmilvus/models/tag_for_modify_resource_tags_input.py +149 -0
  295. volcenginesdkmilvus/models/tag_for_tag_resources_input.py +149 -0
  296. volcenginesdkmilvus/models/tag_resource_for_list_tags_for_resources_output.py +201 -0
  297. volcenginesdkmilvus/models/tag_resources_request.py +175 -0
  298. volcenginesdkmilvus/models/tag_resources_response.py +123 -0
  299. volcenginesdkmilvus/models/untag_resources_request.py +175 -0
  300. volcenginesdkmilvus/models/untag_resources_response.py +123 -0
  301. volcenginesdkmilvus/models/version_for_describe_available_version_output.py +149 -0
  302. volcenginesdkmilvus/models/vpc_info_for_create_instance_input.py +149 -0
  303. volcenginesdkmilvus/models/vpc_info_for_create_instance_one_step_input.py +149 -0
  304. volcenginesdkmilvus/models/vpc_info_for_describe_instance_detail_output.py +149 -0
  305. volcenginesdkmilvus/models/vpc_info_for_describe_instances_output.py +149 -0
  306. volcenginesdkmilvus/models/zone_for_describe_zones_output.py +175 -0
  307. volcenginesdkmilvus/models/zone_support_spec_list_for_describe_available_spec_output.py +149 -0
  308. volcenginesdkorganization/__init__.py +6 -0
  309. volcenginesdkorganization/api/organization_api.py +194 -0
  310. volcenginesdkorganization/models/__init__.py +6 -0
  311. volcenginesdkorganization/models/filter_for_list_tags_keys_input.py +123 -0
  312. volcenginesdkorganization/models/filter_for_list_tags_values_input.py +123 -0
  313. volcenginesdkorganization/models/list_tags_keys_request.py +209 -0
  314. volcenginesdkorganization/models/list_tags_keys_response.py +175 -0
  315. volcenginesdkorganization/models/list_tags_values_request.py +236 -0
  316. volcenginesdkorganization/models/list_tags_values_response.py +175 -0
  317. volcenginesdkseccenter20240508/__init__.py +128 -0
  318. volcenginesdkseccenter20240508/api/seccenter20240508_api.py +7987 -3913
  319. volcenginesdkseccenter20240508/models/__init__.py +128 -0
  320. volcenginesdkseccenter20240508/models/add_baseline_check_config_request.py +383 -0
  321. volcenginesdkseccenter20240508/models/add_baseline_check_config_response.py +123 -0
  322. volcenginesdkseccenter20240508/models/add_login_config_request.py +27 -1
  323. volcenginesdkseccenter20240508/models/alarm_topic_config_for_get_tls_info_output.py +175 -0
  324. volcenginesdkseccenter20240508/models/alarm_topic_config_for_modify_tls_config_input.py +149 -0
  325. volcenginesdkseccenter20240508/models/ban_alarm_ip_request.py +175 -0
  326. volcenginesdkseccenter20240508/models/ban_alarm_ip_response.py +123 -0
  327. volcenginesdkseccenter20240508/models/baseline_list_for_add_baseline_check_config_input.py +149 -0
  328. volcenginesdkseccenter20240508/models/baseline_list_for_edit_baseline_check_config_input.py +149 -0
  329. volcenginesdkseccenter20240508/models/baseline_list_for_list_baseline_basic_info_output.py +201 -0
  330. volcenginesdkseccenter20240508/models/baseline_list_for_list_baseline_check_config_output.py +149 -0
  331. volcenginesdkseccenter20240508/models/bind_mlp_auth_request.py +123 -0
  332. volcenginesdkseccenter20240508/models/bind_mlp_auth_response.py +123 -0
  333. volcenginesdkseccenter20240508/models/check_alarm_support_ban_ip_request.py +175 -0
  334. volcenginesdkseccenter20240508/models/check_alarm_support_ban_ip_response.py +227 -0
  335. volcenginesdkseccenter20240508/models/check_install_agent_client_response.py +105 -1
  336. volcenginesdkseccenter20240508/models/conditions_for_list_ordered_hosts_basic_infos_input.py +435 -0
  337. volcenginesdkseccenter20240508/models/create_mlp_asset_sync_task_request.py +124 -0
  338. volcenginesdkseccenter20240508/models/create_mlp_asset_sync_task_response.py +123 -0
  339. volcenginesdkseccenter20240508/models/data_for_get_alarm_rule_list_output.py +331 -0
  340. volcenginesdkseccenter20240508/models/data_for_get_fingerprint_env_output.py +409 -0
  341. volcenginesdkseccenter20240508/models/data_for_get_fingerprint_process_output.py +27 -1
  342. volcenginesdkseccenter20240508/models/data_for_get_fingerprint_service_output.py +53 -1
  343. volcenginesdkseccenter20240508/models/data_for_get_mlp_asset_sync_task_detail_output.py +305 -0
  344. volcenginesdkseccenter20240508/models/data_for_get_offline_notification_list_output.py +929 -0
  345. volcenginesdkseccenter20240508/models/data_for_list_ban_ip_list_output.py +487 -0
  346. volcenginesdkseccenter20240508/models/data_for_list_baseline_basic_info_output.py +201 -0
  347. volcenginesdkseccenter20240508/models/data_for_list_baseline_check_config_output.py +617 -0
  348. volcenginesdkseccenter20240508/models/data_for_list_baseline_for_group_policy_output.py +201 -0
  349. volcenginesdkseccenter20240508/models/data_for_list_check_config_related_baseline_output.py +201 -0
  350. volcenginesdkseccenter20240508/models/data_for_list_fingerprint_collect_config_output.py +331 -0
  351. volcenginesdkseccenter20240508/models/data_for_list_mlp_asset_tasks_output.py +305 -0
  352. volcenginesdkseccenter20240508/models/data_for_list_ordered_hosts_basic_infos_output.py +539 -0
  353. volcenginesdkseccenter20240508/models/delete_baseline_check_config_request.py +124 -0
  354. volcenginesdkseccenter20240508/models/delete_baseline_check_config_response.py +123 -0
  355. volcenginesdkseccenter20240508/models/detect_baseline_by_check_config_request.py +124 -0
  356. volcenginesdkseccenter20240508/models/detect_baseline_by_check_config_response.py +123 -0
  357. volcenginesdkseccenter20240508/models/ecs_instance_for_get_auto_isolate_agent_list_output.py +53 -1
  358. volcenginesdkseccenter20240508/models/ecs_instance_for_get_host_basic_info_output.py +53 -1
  359. volcenginesdkseccenter20240508/models/ecs_instance_for_get_offline_notification_list_output.py +669 -0
  360. volcenginesdkseccenter20240508/models/ecs_instance_for_list_asset_center_hosts_output.py +53 -1
  361. volcenginesdkseccenter20240508/models/ecs_instance_for_list_auto_defense_hosts_output.py +53 -1
  362. volcenginesdkseccenter20240508/models/ecs_instance_for_list_ban_ip_list_output.py +669 -0
  363. volcenginesdkseccenter20240508/models/ecs_instance_for_list_hosts_basic_infos_output.py +53 -1
  364. volcenginesdkseccenter20240508/models/ecs_instance_for_list_multi_level_asset_hosts_output.py +53 -1
  365. volcenginesdkseccenter20240508/models/ecs_instance_for_list_ordered_hosts_basic_infos_output.py +669 -0
  366. volcenginesdkseccenter20240508/models/ecs_instance_for_list_rasp_config_agent_infos_output.py +53 -1
  367. volcenginesdkseccenter20240508/models/edit_baseline_check_config_request.py +410 -0
  368. volcenginesdkseccenter20240508/models/edit_baseline_check_config_response.py +123 -0
  369. volcenginesdkseccenter20240508/models/edit_fingerprint_collect_config_request.py +254 -0
  370. volcenginesdkseccenter20240508/models/edit_fingerprint_collect_config_response.py +123 -0
  371. volcenginesdkseccenter20240508/models/export_dev_fingerprint_data_request.py +1 -1
  372. volcenginesdkseccenter20240508/models/file_for_handle_endpoint_alarms_input.py +149 -0
  373. volcenginesdkseccenter20240508/models/get_alarm_rule_list_request.py +333 -0
  374. volcenginesdkseccenter20240508/models/get_alarm_rule_list_response.py +201 -0
  375. volcenginesdkseccenter20240508/models/get_auto_protect_config_request.py +95 -0
  376. volcenginesdkseccenter20240508/models/get_auto_protect_config_response.py +149 -0
  377. volcenginesdkvod20250101/models/scenario_for_create_ai_termbase_input.py → volcenginesdkseccenter20240508/models/get_brute_force_ban_cap_params_request.py +6 -6
  378. volcenginesdkseccenter20240508/models/get_brute_force_ban_cap_params_response.py +123 -0
  379. volcenginesdkseccenter20240508/models/get_brute_force_ban_config_request.py +123 -0
  380. volcenginesdkseccenter20240508/models/get_brute_force_ban_config_response.py +383 -0
  381. volcenginesdkseccenter20240508/models/get_brute_force_ban_statistics_request.py +123 -0
  382. volcenginesdkseccenter20240508/models/get_brute_force_ban_statistics_response.py +149 -0
  383. volcenginesdkseccenter20240508/models/get_custom_weak_passwords_request.py +95 -0
  384. volcenginesdkseccenter20240508/models/get_custom_weak_passwords_response.py +201 -0
  385. volcenginesdkseccenter20240508/models/get_fingerprint_env_request.py +489 -0
  386. volcenginesdkseccenter20240508/models/get_fingerprint_env_response.py +201 -0
  387. volcenginesdkseccenter20240508/models/get_fingerprint_service_request.py +0 -7
  388. volcenginesdkseccenter20240508/models/get_fingerprint_statistics_response.py +27 -1
  389. volcenginesdkseccenter20240508/models/get_geo_location_request.py +123 -0
  390. volcenginesdkseccenter20240508/models/get_geo_location_response.py +123 -0
  391. volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_detail_request.py +124 -0
  392. volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_detail_response.py +123 -0
  393. volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_status_request.py +124 -0
  394. volcenginesdkseccenter20240508/models/get_mlp_asset_sync_task_status_response.py +201 -0
  395. volcenginesdkseccenter20240508/models/get_offline_notification_config_request.py +95 -0
  396. volcenginesdkseccenter20240508/models/get_offline_notification_config_response.py +149 -0
  397. volcenginesdkseccenter20240508/models/get_offline_notification_list_request.py +411 -0
  398. volcenginesdkseccenter20240508/models/get_offline_notification_list_response.py +201 -0
  399. volcenginesdkseccenter20240508/models/get_security_overview_score_stats_request.py +123 -0
  400. volcenginesdkseccenter20240508/models/get_security_overview_score_stats_response.py +149 -0
  401. volcenginesdkseccenter20240508/models/get_tls_info_response.py +122 -70
  402. volcenginesdkseccenter20240508/models/handle_endpoint_alarms_request.py +150 -0
  403. volcenginesdkseccenter20240508/models/handle_endpoint_alarms_response.py +95 -0
  404. volcenginesdkseccenter20240508/models/handle_list_for_handle_endpoint_alarms_input.py +201 -0
  405. volcenginesdkseccenter20240508/models/host_info_for_list_ban_ip_list_output.py +279 -0
  406. volcenginesdkseccenter20240508/models/list_alarm_tags_request.py +6 -6
  407. volcenginesdkseccenter20240508/models/list_ban_ip_list_request.py +567 -0
  408. volcenginesdkseccenter20240508/models/list_ban_ip_list_response.py +201 -0
  409. volcenginesdkseccenter20240508/models/list_baseline_basic_info_request.py +203 -0
  410. volcenginesdkseccenter20240508/models/list_baseline_basic_info_response.py +201 -0
  411. volcenginesdkseccenter20240508/models/list_baseline_check_config_request.py +203 -0
  412. volcenginesdkseccenter20240508/models/list_baseline_check_config_response.py +201 -0
  413. volcenginesdkseccenter20240508/models/list_baseline_for_group_policy_request.py +124 -0
  414. volcenginesdkseccenter20240508/models/list_baseline_for_group_policy_response.py +123 -0
  415. volcenginesdkseccenter20240508/models/list_batch_endpoint_handle_methods_request.py +150 -0
  416. volcenginesdkseccenter20240508/models/list_batch_endpoint_handle_methods_response.py +149 -0
  417. volcenginesdkseccenter20240508/models/list_check_config_related_baseline_request.py +256 -0
  418. volcenginesdkseccenter20240508/models/list_check_config_related_baseline_response.py +201 -0
  419. volcenginesdkseccenter20240508/models/list_fingerprint_collect_config_request.py +149 -0
  420. volcenginesdkseccenter20240508/models/list_fingerprint_collect_config_response.py +201 -0
  421. volcenginesdkseccenter20240508/models/list_mlp_alarm_tags_request.py +6 -6
  422. volcenginesdkseccenter20240508/models/list_mlp_asset_tasks_request.py +255 -0
  423. volcenginesdkseccenter20240508/models/list_mlp_asset_tasks_response.py +201 -0
  424. volcenginesdkseccenter20240508/models/list_ordered_hosts_basic_infos_request.py +256 -0
  425. volcenginesdkseccenter20240508/models/list_ordered_hosts_basic_infos_response.py +201 -0
  426. volcenginesdkseccenter20240508/models/location_for_get_geo_location_output.py +149 -0
  427. volcenginesdkseccenter20240508/models/login_location_for_add_login_config_input.py +175 -0
  428. volcenginesdkseccenter20240508/models/login_location_for_update_login_config_input.py +175 -0
  429. volcenginesdkseccenter20240508/models/login_topic_config_for_get_tls_info_output.py +175 -0
  430. volcenginesdkseccenter20240508/models/login_topic_config_for_modify_tls_config_input.py +149 -0
  431. volcenginesdkseccenter20240508/models/modify_tls_config_request.py +133 -3
  432. volcenginesdkseccenter20240508/models/operation_list_for_list_batch_endpoint_handle_methods_output.py +201 -0
  433. volcenginesdkseccenter20240508/models/port_change_topic_config_for_get_tls_info_output.py +175 -0
  434. volcenginesdkseccenter20240508/models/port_change_topic_config_for_modify_tls_config_input.py +149 -0
  435. volcenginesdkseccenter20240508/models/proc_list_for_list_batch_endpoint_handle_methods_output.py +175 -0
  436. volcenginesdkseccenter20240508/models/process_for_handle_endpoint_alarms_input.py +175 -0
  437. volcenginesdkseccenter20240508/models/process_start_topic_config_for_get_tls_info_output.py +175 -0
  438. volcenginesdkseccenter20240508/models/process_start_topic_config_for_modify_tls_config_input.py +149 -0
  439. volcenginesdkseccenter20240508/models/relate_alarm_info_for_list_ban_ip_list_output.py +149 -0
  440. volcenginesdkseccenter20240508/models/retry_ip_operation_request.py +150 -0
  441. volcenginesdkseccenter20240508/models/retry_ip_operation_response.py +123 -0
  442. volcenginesdkseccenter20240508/models/risk_for_get_offline_notification_list_output.py +201 -0
  443. volcenginesdkseccenter20240508/models/rule_list_for_get_brute_force_ban_config_output.py +227 -0
  444. volcenginesdkseccenter20240508/models/rule_list_for_set_brute_force_ban_config_input.py +227 -0
  445. volcenginesdkseccenter20240508/models/score_for_get_security_overview_score_stats_output.py +149 -0
  446. volcenginesdkseccenter20240508/models/set_brute_force_ban_config_request.py +461 -0
  447. volcenginesdkseccenter20240508/models/set_brute_force_ban_config_response.py +95 -0
  448. volcenginesdkseccenter20240508/models/set_custom_weak_passwords_request.py +123 -0
  449. volcenginesdkseccenter20240508/models/set_custom_weak_passwords_response.py +123 -0
  450. volcenginesdkseccenter20240508/models/stop_mlp_asset_sync_task_request.py +124 -0
  451. volcenginesdkseccenter20240508/models/stop_mlp_asset_sync_task_response.py +123 -0
  452. volcenginesdkseccenter20240508/models/un_ban_ip_item_request.py +123 -0
  453. volcenginesdkseccenter20240508/models/un_ban_ip_item_response.py +149 -0
  454. volcenginesdkseccenter20240508/models/unbind_mlp_auth_request.py +123 -0
  455. volcenginesdkseccenter20240508/models/unbind_mlp_auth_response.py +123 -0
  456. volcenginesdkseccenter20240508/models/update_auto_protect_config_request.py +124 -0
  457. volcenginesdkseccenter20240508/models/update_auto_protect_config_response.py +149 -0
  458. volcenginesdkseccenter20240508/models/update_baseline_check_config_switch_request.py +150 -0
  459. volcenginesdkseccenter20240508/models/update_baseline_check_config_switch_response.py +123 -0
  460. volcenginesdkseccenter20240508/models/update_cloud_provider_request.py +149 -0
  461. volcenginesdkseccenter20240508/models/update_cloud_provider_response.py +201 -0
  462. volcenginesdkseccenter20240508/models/update_login_config_request.py +27 -1
  463. volcenginesdkseccenter20240508/models/update_offline_notification_config_request.py +151 -0
  464. volcenginesdkseccenter20240508/models/update_offline_notification_config_response.py +123 -0
  465. volcenginesdkseccenter20240508/models/vuln_topic_config_for_get_tls_info_output.py +175 -0
  466. volcenginesdkseccenter20240508/models/vuln_topic_config_for_modify_tls_config_input.py +149 -0
  467. volcenginesdkvefaas/__init__.py +1 -0
  468. volcenginesdkvefaas/models/__init__.py +1 -0
  469. volcenginesdkvefaas/models/describe_sandbox_response.py +53 -1
  470. volcenginesdkvefaas/models/metadata_list_for_describe_sandbox_output.py +149 -0
  471. volcenginesdkvod20250101/__init__.py +0 -1
  472. volcenginesdkvod20250101/models/__init__.py +0 -1
  473. volcenginesdkvod20250101/models/create_ai_termbase_request.py +6 -5
  474. {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/WHEEL +0 -0
  475. {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/licenses/LICENSE.txt +0 -0
  476. {volcengine_python_sdk-4.0.29.dist-info → volcengine_python_sdk-4.0.31.dist-info}/licenses/NOTICE.md +0 -0
@@ -0,0 +1,2362 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ cbr
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ from __future__ import absolute_import
15
+
16
+ import re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ import volcenginesdkcore
22
+
23
+
24
+ class CBRApi(object):
25
+ """NOTE: This class is auto generated by the swagger code generator program.
26
+
27
+ Do not edit the class manually.
28
+ Ref: https://github.com/swagger-api/swagger-codegen
29
+ """
30
+
31
+ def __init__(self, api_client=None):
32
+ if api_client is None:
33
+ api_client = volcenginesdkcore.ApiClient()
34
+ self.api_client = api_client
35
+
36
+ def create_backup_job(self, body, **kwargs): # noqa: E501
37
+ """create_backup_job # noqa: E501
38
+
39
+ This method makes a synchronous HTTP request by default. To make an
40
+ asynchronous HTTP request, please pass async_req=True
41
+ >>> thread = api.create_backup_job(body, async_req=True)
42
+ >>> result = thread.get()
43
+
44
+ :param async_req bool
45
+ :param CreateBackupJobRequest body: (required)
46
+ :return: CreateBackupJobResponse
47
+ If the method is called asynchronously,
48
+ returns the request thread.
49
+ """
50
+ kwargs['_return_http_data_only'] = True
51
+ if kwargs.get('async_req'):
52
+ return self.create_backup_job_with_http_info(body, **kwargs) # noqa: E501
53
+ else:
54
+ (data) = self.create_backup_job_with_http_info(body, **kwargs) # noqa: E501
55
+ return data
56
+
57
+ def create_backup_job_with_http_info(self, body, **kwargs): # noqa: E501
58
+ """create_backup_job # noqa: E501
59
+
60
+ This method makes a synchronous HTTP request by default. To make an
61
+ asynchronous HTTP request, please pass async_req=True
62
+ >>> thread = api.create_backup_job_with_http_info(body, async_req=True)
63
+ >>> result = thread.get()
64
+
65
+ :param async_req bool
66
+ :param CreateBackupJobRequest body: (required)
67
+ :return: CreateBackupJobResponse
68
+ If the method is called asynchronously,
69
+ returns the request thread.
70
+ """
71
+
72
+ all_params = ['body'] # noqa: E501
73
+ all_params.append('async_req')
74
+ all_params.append('_return_http_data_only')
75
+ all_params.append('_preload_content')
76
+ all_params.append('_request_timeout')
77
+
78
+ params = locals()
79
+ for key, val in six.iteritems(params['kwargs']):
80
+ if key not in all_params:
81
+ raise TypeError(
82
+ "Got an unexpected keyword argument '%s'"
83
+ " to method create_backup_job" % key
84
+ )
85
+ params[key] = val
86
+ del params['kwargs']
87
+ # verify the required parameter 'body' is set
88
+ if self.api_client.client_side_validation and ('body' not in params or
89
+ params['body'] is None): # noqa: E501
90
+ raise ValueError("Missing the required parameter `body` when calling `create_backup_job`") # noqa: E501
91
+
92
+ collection_formats = {}
93
+
94
+ path_params = {}
95
+
96
+ query_params = []
97
+
98
+ header_params = {}
99
+
100
+ form_params = []
101
+ local_var_files = {}
102
+
103
+ body_params = None
104
+ if 'body' in params:
105
+ body_params = params['body']
106
+ # HTTP header `Accept`
107
+ header_params['Accept'] = self.api_client.select_header_accept(
108
+ ['application/json']) # noqa: E501
109
+
110
+ # HTTP header `Content-Type`
111
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112
+ ['application/json']) # noqa: E501
113
+
114
+ # Authentication setting
115
+ auth_settings = ['volcengineSign'] # noqa: E501
116
+
117
+ return self.api_client.call_api(
118
+ '/CreateBackupJob/2024-03-01/cbr/post/application_json/', 'POST',
119
+ path_params,
120
+ query_params,
121
+ header_params,
122
+ body=body_params,
123
+ post_params=form_params,
124
+ files=local_var_files,
125
+ response_type='CreateBackupJobResponse', # noqa: E501
126
+ auth_settings=auth_settings,
127
+ async_req=params.get('async_req'),
128
+ _return_http_data_only=params.get('_return_http_data_only'),
129
+ _preload_content=params.get('_preload_content', True),
130
+ _request_timeout=params.get('_request_timeout'),
131
+ collection_formats=collection_formats)
132
+
133
+ def create_backup_plan(self, body, **kwargs): # noqa: E501
134
+ """create_backup_plan # noqa: E501
135
+
136
+ This method makes a synchronous HTTP request by default. To make an
137
+ asynchronous HTTP request, please pass async_req=True
138
+ >>> thread = api.create_backup_plan(body, async_req=True)
139
+ >>> result = thread.get()
140
+
141
+ :param async_req bool
142
+ :param CreateBackupPlanRequest body: (required)
143
+ :return: CreateBackupPlanResponse
144
+ If the method is called asynchronously,
145
+ returns the request thread.
146
+ """
147
+ kwargs['_return_http_data_only'] = True
148
+ if kwargs.get('async_req'):
149
+ return self.create_backup_plan_with_http_info(body, **kwargs) # noqa: E501
150
+ else:
151
+ (data) = self.create_backup_plan_with_http_info(body, **kwargs) # noqa: E501
152
+ return data
153
+
154
+ def create_backup_plan_with_http_info(self, body, **kwargs): # noqa: E501
155
+ """create_backup_plan # noqa: E501
156
+
157
+ This method makes a synchronous HTTP request by default. To make an
158
+ asynchronous HTTP request, please pass async_req=True
159
+ >>> thread = api.create_backup_plan_with_http_info(body, async_req=True)
160
+ >>> result = thread.get()
161
+
162
+ :param async_req bool
163
+ :param CreateBackupPlanRequest body: (required)
164
+ :return: CreateBackupPlanResponse
165
+ If the method is called asynchronously,
166
+ returns the request thread.
167
+ """
168
+
169
+ all_params = ['body'] # noqa: E501
170
+ all_params.append('async_req')
171
+ all_params.append('_return_http_data_only')
172
+ all_params.append('_preload_content')
173
+ all_params.append('_request_timeout')
174
+
175
+ params = locals()
176
+ for key, val in six.iteritems(params['kwargs']):
177
+ if key not in all_params:
178
+ raise TypeError(
179
+ "Got an unexpected keyword argument '%s'"
180
+ " to method create_backup_plan" % key
181
+ )
182
+ params[key] = val
183
+ del params['kwargs']
184
+ # verify the required parameter 'body' is set
185
+ if self.api_client.client_side_validation and ('body' not in params or
186
+ params['body'] is None): # noqa: E501
187
+ raise ValueError("Missing the required parameter `body` when calling `create_backup_plan`") # noqa: E501
188
+
189
+ collection_formats = {}
190
+
191
+ path_params = {}
192
+
193
+ query_params = []
194
+
195
+ header_params = {}
196
+
197
+ form_params = []
198
+ local_var_files = {}
199
+
200
+ body_params = None
201
+ if 'body' in params:
202
+ body_params = params['body']
203
+ # HTTP header `Accept`
204
+ header_params['Accept'] = self.api_client.select_header_accept(
205
+ ['application/json']) # noqa: E501
206
+
207
+ # HTTP header `Content-Type`
208
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
209
+ ['application/json']) # noqa: E501
210
+
211
+ # Authentication setting
212
+ auth_settings = ['volcengineSign'] # noqa: E501
213
+
214
+ return self.api_client.call_api(
215
+ '/CreateBackupPlan/2024-03-01/cbr/post/application_json/', 'POST',
216
+ path_params,
217
+ query_params,
218
+ header_params,
219
+ body=body_params,
220
+ post_params=form_params,
221
+ files=local_var_files,
222
+ response_type='CreateBackupPlanResponse', # noqa: E501
223
+ auth_settings=auth_settings,
224
+ async_req=params.get('async_req'),
225
+ _return_http_data_only=params.get('_return_http_data_only'),
226
+ _preload_content=params.get('_preload_content', True),
227
+ _request_timeout=params.get('_request_timeout'),
228
+ collection_formats=collection_formats)
229
+
230
+ def create_backup_policy(self, body, **kwargs): # noqa: E501
231
+ """create_backup_policy # noqa: E501
232
+
233
+ This method makes a synchronous HTTP request by default. To make an
234
+ asynchronous HTTP request, please pass async_req=True
235
+ >>> thread = api.create_backup_policy(body, async_req=True)
236
+ >>> result = thread.get()
237
+
238
+ :param async_req bool
239
+ :param CreateBackupPolicyRequest body: (required)
240
+ :return: CreateBackupPolicyResponse
241
+ If the method is called asynchronously,
242
+ returns the request thread.
243
+ """
244
+ kwargs['_return_http_data_only'] = True
245
+ if kwargs.get('async_req'):
246
+ return self.create_backup_policy_with_http_info(body, **kwargs) # noqa: E501
247
+ else:
248
+ (data) = self.create_backup_policy_with_http_info(body, **kwargs) # noqa: E501
249
+ return data
250
+
251
+ def create_backup_policy_with_http_info(self, body, **kwargs): # noqa: E501
252
+ """create_backup_policy # noqa: E501
253
+
254
+ This method makes a synchronous HTTP request by default. To make an
255
+ asynchronous HTTP request, please pass async_req=True
256
+ >>> thread = api.create_backup_policy_with_http_info(body, async_req=True)
257
+ >>> result = thread.get()
258
+
259
+ :param async_req bool
260
+ :param CreateBackupPolicyRequest body: (required)
261
+ :return: CreateBackupPolicyResponse
262
+ If the method is called asynchronously,
263
+ returns the request thread.
264
+ """
265
+
266
+ all_params = ['body'] # noqa: E501
267
+ all_params.append('async_req')
268
+ all_params.append('_return_http_data_only')
269
+ all_params.append('_preload_content')
270
+ all_params.append('_request_timeout')
271
+
272
+ params = locals()
273
+ for key, val in six.iteritems(params['kwargs']):
274
+ if key not in all_params:
275
+ raise TypeError(
276
+ "Got an unexpected keyword argument '%s'"
277
+ " to method create_backup_policy" % key
278
+ )
279
+ params[key] = val
280
+ del params['kwargs']
281
+ # verify the required parameter 'body' is set
282
+ if self.api_client.client_side_validation and ('body' not in params or
283
+ params['body'] is None): # noqa: E501
284
+ raise ValueError("Missing the required parameter `body` when calling `create_backup_policy`") # noqa: E501
285
+
286
+ collection_formats = {}
287
+
288
+ path_params = {}
289
+
290
+ query_params = []
291
+
292
+ header_params = {}
293
+
294
+ form_params = []
295
+ local_var_files = {}
296
+
297
+ body_params = None
298
+ if 'body' in params:
299
+ body_params = params['body']
300
+ # HTTP header `Accept`
301
+ header_params['Accept'] = self.api_client.select_header_accept(
302
+ ['application/json']) # noqa: E501
303
+
304
+ # HTTP header `Content-Type`
305
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
306
+ ['application/json']) # noqa: E501
307
+
308
+ # Authentication setting
309
+ auth_settings = ['volcengineSign'] # noqa: E501
310
+
311
+ return self.api_client.call_api(
312
+ '/CreateBackupPolicy/2024-03-01/cbr/post/application_json/', 'POST',
313
+ path_params,
314
+ query_params,
315
+ header_params,
316
+ body=body_params,
317
+ post_params=form_params,
318
+ files=local_var_files,
319
+ response_type='CreateBackupPolicyResponse', # noqa: E501
320
+ auth_settings=auth_settings,
321
+ async_req=params.get('async_req'),
322
+ _return_http_data_only=params.get('_return_http_data_only'),
323
+ _preload_content=params.get('_preload_content', True),
324
+ _request_timeout=params.get('_request_timeout'),
325
+ collection_formats=collection_formats)
326
+
327
+ def create_backup_resource(self, body, **kwargs): # noqa: E501
328
+ """create_backup_resource # noqa: E501
329
+
330
+ This method makes a synchronous HTTP request by default. To make an
331
+ asynchronous HTTP request, please pass async_req=True
332
+ >>> thread = api.create_backup_resource(body, async_req=True)
333
+ >>> result = thread.get()
334
+
335
+ :param async_req bool
336
+ :param CreateBackupResourceRequest body: (required)
337
+ :return: CreateBackupResourceResponse
338
+ If the method is called asynchronously,
339
+ returns the request thread.
340
+ """
341
+ kwargs['_return_http_data_only'] = True
342
+ if kwargs.get('async_req'):
343
+ return self.create_backup_resource_with_http_info(body, **kwargs) # noqa: E501
344
+ else:
345
+ (data) = self.create_backup_resource_with_http_info(body, **kwargs) # noqa: E501
346
+ return data
347
+
348
+ def create_backup_resource_with_http_info(self, body, **kwargs): # noqa: E501
349
+ """create_backup_resource # noqa: E501
350
+
351
+ This method makes a synchronous HTTP request by default. To make an
352
+ asynchronous HTTP request, please pass async_req=True
353
+ >>> thread = api.create_backup_resource_with_http_info(body, async_req=True)
354
+ >>> result = thread.get()
355
+
356
+ :param async_req bool
357
+ :param CreateBackupResourceRequest body: (required)
358
+ :return: CreateBackupResourceResponse
359
+ If the method is called asynchronously,
360
+ returns the request thread.
361
+ """
362
+
363
+ all_params = ['body'] # noqa: E501
364
+ all_params.append('async_req')
365
+ all_params.append('_return_http_data_only')
366
+ all_params.append('_preload_content')
367
+ all_params.append('_request_timeout')
368
+
369
+ params = locals()
370
+ for key, val in six.iteritems(params['kwargs']):
371
+ if key not in all_params:
372
+ raise TypeError(
373
+ "Got an unexpected keyword argument '%s'"
374
+ " to method create_backup_resource" % key
375
+ )
376
+ params[key] = val
377
+ del params['kwargs']
378
+ # verify the required parameter 'body' is set
379
+ if self.api_client.client_side_validation and ('body' not in params or
380
+ params['body'] is None): # noqa: E501
381
+ raise ValueError("Missing the required parameter `body` when calling `create_backup_resource`") # noqa: E501
382
+
383
+ collection_formats = {}
384
+
385
+ path_params = {}
386
+
387
+ query_params = []
388
+
389
+ header_params = {}
390
+
391
+ form_params = []
392
+ local_var_files = {}
393
+
394
+ body_params = None
395
+ if 'body' in params:
396
+ body_params = params['body']
397
+ # HTTP header `Accept`
398
+ header_params['Accept'] = self.api_client.select_header_accept(
399
+ ['application/json']) # noqa: E501
400
+
401
+ # HTTP header `Content-Type`
402
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
403
+ ['application/json']) # noqa: E501
404
+
405
+ # Authentication setting
406
+ auth_settings = ['volcengineSign'] # noqa: E501
407
+
408
+ return self.api_client.call_api(
409
+ '/CreateBackupResource/2024-03-01/cbr/post/application_json/', 'POST',
410
+ path_params,
411
+ query_params,
412
+ header_params,
413
+ body=body_params,
414
+ post_params=form_params,
415
+ files=local_var_files,
416
+ response_type='CreateBackupResourceResponse', # noqa: E501
417
+ auth_settings=auth_settings,
418
+ async_req=params.get('async_req'),
419
+ _return_http_data_only=params.get('_return_http_data_only'),
420
+ _preload_content=params.get('_preload_content', True),
421
+ _request_timeout=params.get('_request_timeout'),
422
+ collection_formats=collection_formats)
423
+
424
+ def create_restore_job(self, body, **kwargs): # noqa: E501
425
+ """create_restore_job # noqa: E501
426
+
427
+ This method makes a synchronous HTTP request by default. To make an
428
+ asynchronous HTTP request, please pass async_req=True
429
+ >>> thread = api.create_restore_job(body, async_req=True)
430
+ >>> result = thread.get()
431
+
432
+ :param async_req bool
433
+ :param CreateRestoreJobRequest body: (required)
434
+ :return: CreateRestoreJobResponse
435
+ If the method is called asynchronously,
436
+ returns the request thread.
437
+ """
438
+ kwargs['_return_http_data_only'] = True
439
+ if kwargs.get('async_req'):
440
+ return self.create_restore_job_with_http_info(body, **kwargs) # noqa: E501
441
+ else:
442
+ (data) = self.create_restore_job_with_http_info(body, **kwargs) # noqa: E501
443
+ return data
444
+
445
+ def create_restore_job_with_http_info(self, body, **kwargs): # noqa: E501
446
+ """create_restore_job # noqa: E501
447
+
448
+ This method makes a synchronous HTTP request by default. To make an
449
+ asynchronous HTTP request, please pass async_req=True
450
+ >>> thread = api.create_restore_job_with_http_info(body, async_req=True)
451
+ >>> result = thread.get()
452
+
453
+ :param async_req bool
454
+ :param CreateRestoreJobRequest body: (required)
455
+ :return: CreateRestoreJobResponse
456
+ If the method is called asynchronously,
457
+ returns the request thread.
458
+ """
459
+
460
+ all_params = ['body'] # noqa: E501
461
+ all_params.append('async_req')
462
+ all_params.append('_return_http_data_only')
463
+ all_params.append('_preload_content')
464
+ all_params.append('_request_timeout')
465
+
466
+ params = locals()
467
+ for key, val in six.iteritems(params['kwargs']):
468
+ if key not in all_params:
469
+ raise TypeError(
470
+ "Got an unexpected keyword argument '%s'"
471
+ " to method create_restore_job" % key
472
+ )
473
+ params[key] = val
474
+ del params['kwargs']
475
+ # verify the required parameter 'body' is set
476
+ if self.api_client.client_side_validation and ('body' not in params or
477
+ params['body'] is None): # noqa: E501
478
+ raise ValueError("Missing the required parameter `body` when calling `create_restore_job`") # noqa: E501
479
+
480
+ collection_formats = {}
481
+
482
+ path_params = {}
483
+
484
+ query_params = []
485
+
486
+ header_params = {}
487
+
488
+ form_params = []
489
+ local_var_files = {}
490
+
491
+ body_params = None
492
+ if 'body' in params:
493
+ body_params = params['body']
494
+ # HTTP header `Accept`
495
+ header_params['Accept'] = self.api_client.select_header_accept(
496
+ ['application/json']) # noqa: E501
497
+
498
+ # HTTP header `Content-Type`
499
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
500
+ ['application/json']) # noqa: E501
501
+
502
+ # Authentication setting
503
+ auth_settings = ['volcengineSign'] # noqa: E501
504
+
505
+ return self.api_client.call_api(
506
+ '/CreateRestoreJob/2024-03-01/cbr/post/application_json/', 'POST',
507
+ path_params,
508
+ query_params,
509
+ header_params,
510
+ body=body_params,
511
+ post_params=form_params,
512
+ files=local_var_files,
513
+ response_type='CreateRestoreJobResponse', # noqa: E501
514
+ auth_settings=auth_settings,
515
+ async_req=params.get('async_req'),
516
+ _return_http_data_only=params.get('_return_http_data_only'),
517
+ _preload_content=params.get('_preload_content', True),
518
+ _request_timeout=params.get('_request_timeout'),
519
+ collection_formats=collection_formats)
520
+
521
+ def create_vault(self, body, **kwargs): # noqa: E501
522
+ """create_vault # noqa: E501
523
+
524
+ This method makes a synchronous HTTP request by default. To make an
525
+ asynchronous HTTP request, please pass async_req=True
526
+ >>> thread = api.create_vault(body, async_req=True)
527
+ >>> result = thread.get()
528
+
529
+ :param async_req bool
530
+ :param CreateVaultRequest body: (required)
531
+ :return: CreateVaultResponse
532
+ If the method is called asynchronously,
533
+ returns the request thread.
534
+ """
535
+ kwargs['_return_http_data_only'] = True
536
+ if kwargs.get('async_req'):
537
+ return self.create_vault_with_http_info(body, **kwargs) # noqa: E501
538
+ else:
539
+ (data) = self.create_vault_with_http_info(body, **kwargs) # noqa: E501
540
+ return data
541
+
542
+ def create_vault_with_http_info(self, body, **kwargs): # noqa: E501
543
+ """create_vault # noqa: E501
544
+
545
+ This method makes a synchronous HTTP request by default. To make an
546
+ asynchronous HTTP request, please pass async_req=True
547
+ >>> thread = api.create_vault_with_http_info(body, async_req=True)
548
+ >>> result = thread.get()
549
+
550
+ :param async_req bool
551
+ :param CreateVaultRequest body: (required)
552
+ :return: CreateVaultResponse
553
+ If the method is called asynchronously,
554
+ returns the request thread.
555
+ """
556
+
557
+ all_params = ['body'] # noqa: E501
558
+ all_params.append('async_req')
559
+ all_params.append('_return_http_data_only')
560
+ all_params.append('_preload_content')
561
+ all_params.append('_request_timeout')
562
+
563
+ params = locals()
564
+ for key, val in six.iteritems(params['kwargs']):
565
+ if key not in all_params:
566
+ raise TypeError(
567
+ "Got an unexpected keyword argument '%s'"
568
+ " to method create_vault" % key
569
+ )
570
+ params[key] = val
571
+ del params['kwargs']
572
+ # verify the required parameter 'body' is set
573
+ if self.api_client.client_side_validation and ('body' not in params or
574
+ params['body'] is None): # noqa: E501
575
+ raise ValueError("Missing the required parameter `body` when calling `create_vault`") # noqa: E501
576
+
577
+ collection_formats = {}
578
+
579
+ path_params = {}
580
+
581
+ query_params = []
582
+
583
+ header_params = {}
584
+
585
+ form_params = []
586
+ local_var_files = {}
587
+
588
+ body_params = None
589
+ if 'body' in params:
590
+ body_params = params['body']
591
+ # HTTP header `Accept`
592
+ header_params['Accept'] = self.api_client.select_header_accept(
593
+ ['application/json']) # noqa: E501
594
+
595
+ # HTTP header `Content-Type`
596
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
597
+ ['application/json']) # noqa: E501
598
+
599
+ # Authentication setting
600
+ auth_settings = ['volcengineSign'] # noqa: E501
601
+
602
+ return self.api_client.call_api(
603
+ '/CreateVault/2024-03-01/cbr/post/application_json/', 'POST',
604
+ path_params,
605
+ query_params,
606
+ header_params,
607
+ body=body_params,
608
+ post_params=form_params,
609
+ files=local_var_files,
610
+ response_type='CreateVaultResponse', # noqa: E501
611
+ auth_settings=auth_settings,
612
+ async_req=params.get('async_req'),
613
+ _return_http_data_only=params.get('_return_http_data_only'),
614
+ _preload_content=params.get('_preload_content', True),
615
+ _request_timeout=params.get('_request_timeout'),
616
+ collection_formats=collection_formats)
617
+
618
+ def delete_backup_plan(self, body, **kwargs): # noqa: E501
619
+ """delete_backup_plan # noqa: E501
620
+
621
+ This method makes a synchronous HTTP request by default. To make an
622
+ asynchronous HTTP request, please pass async_req=True
623
+ >>> thread = api.delete_backup_plan(body, async_req=True)
624
+ >>> result = thread.get()
625
+
626
+ :param async_req bool
627
+ :param DeleteBackupPlanRequest body: (required)
628
+ :return: DeleteBackupPlanResponse
629
+ If the method is called asynchronously,
630
+ returns the request thread.
631
+ """
632
+ kwargs['_return_http_data_only'] = True
633
+ if kwargs.get('async_req'):
634
+ return self.delete_backup_plan_with_http_info(body, **kwargs) # noqa: E501
635
+ else:
636
+ (data) = self.delete_backup_plan_with_http_info(body, **kwargs) # noqa: E501
637
+ return data
638
+
639
+ def delete_backup_plan_with_http_info(self, body, **kwargs): # noqa: E501
640
+ """delete_backup_plan # noqa: E501
641
+
642
+ This method makes a synchronous HTTP request by default. To make an
643
+ asynchronous HTTP request, please pass async_req=True
644
+ >>> thread = api.delete_backup_plan_with_http_info(body, async_req=True)
645
+ >>> result = thread.get()
646
+
647
+ :param async_req bool
648
+ :param DeleteBackupPlanRequest body: (required)
649
+ :return: DeleteBackupPlanResponse
650
+ If the method is called asynchronously,
651
+ returns the request thread.
652
+ """
653
+
654
+ all_params = ['body'] # noqa: E501
655
+ all_params.append('async_req')
656
+ all_params.append('_return_http_data_only')
657
+ all_params.append('_preload_content')
658
+ all_params.append('_request_timeout')
659
+
660
+ params = locals()
661
+ for key, val in six.iteritems(params['kwargs']):
662
+ if key not in all_params:
663
+ raise TypeError(
664
+ "Got an unexpected keyword argument '%s'"
665
+ " to method delete_backup_plan" % key
666
+ )
667
+ params[key] = val
668
+ del params['kwargs']
669
+ # verify the required parameter 'body' is set
670
+ if self.api_client.client_side_validation and ('body' not in params or
671
+ params['body'] is None): # noqa: E501
672
+ raise ValueError("Missing the required parameter `body` when calling `delete_backup_plan`") # noqa: E501
673
+
674
+ collection_formats = {}
675
+
676
+ path_params = {}
677
+
678
+ query_params = []
679
+
680
+ header_params = {}
681
+
682
+ form_params = []
683
+ local_var_files = {}
684
+
685
+ body_params = None
686
+ if 'body' in params:
687
+ body_params = params['body']
688
+ # HTTP header `Accept`
689
+ header_params['Accept'] = self.api_client.select_header_accept(
690
+ ['application/json']) # noqa: E501
691
+
692
+ # HTTP header `Content-Type`
693
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
694
+ ['application/json']) # noqa: E501
695
+
696
+ # Authentication setting
697
+ auth_settings = ['volcengineSign'] # noqa: E501
698
+
699
+ return self.api_client.call_api(
700
+ '/DeleteBackupPlan/2024-03-01/cbr/post/application_json/', 'POST',
701
+ path_params,
702
+ query_params,
703
+ header_params,
704
+ body=body_params,
705
+ post_params=form_params,
706
+ files=local_var_files,
707
+ response_type='DeleteBackupPlanResponse', # noqa: E501
708
+ auth_settings=auth_settings,
709
+ async_req=params.get('async_req'),
710
+ _return_http_data_only=params.get('_return_http_data_only'),
711
+ _preload_content=params.get('_preload_content', True),
712
+ _request_timeout=params.get('_request_timeout'),
713
+ collection_formats=collection_formats)
714
+
715
+ def delete_backup_policy(self, body, **kwargs): # noqa: E501
716
+ """delete_backup_policy # noqa: E501
717
+
718
+ This method makes a synchronous HTTP request by default. To make an
719
+ asynchronous HTTP request, please pass async_req=True
720
+ >>> thread = api.delete_backup_policy(body, async_req=True)
721
+ >>> result = thread.get()
722
+
723
+ :param async_req bool
724
+ :param DeleteBackupPolicyRequest body: (required)
725
+ :return: DeleteBackupPolicyResponse
726
+ If the method is called asynchronously,
727
+ returns the request thread.
728
+ """
729
+ kwargs['_return_http_data_only'] = True
730
+ if kwargs.get('async_req'):
731
+ return self.delete_backup_policy_with_http_info(body, **kwargs) # noqa: E501
732
+ else:
733
+ (data) = self.delete_backup_policy_with_http_info(body, **kwargs) # noqa: E501
734
+ return data
735
+
736
+ def delete_backup_policy_with_http_info(self, body, **kwargs): # noqa: E501
737
+ """delete_backup_policy # noqa: E501
738
+
739
+ This method makes a synchronous HTTP request by default. To make an
740
+ asynchronous HTTP request, please pass async_req=True
741
+ >>> thread = api.delete_backup_policy_with_http_info(body, async_req=True)
742
+ >>> result = thread.get()
743
+
744
+ :param async_req bool
745
+ :param DeleteBackupPolicyRequest body: (required)
746
+ :return: DeleteBackupPolicyResponse
747
+ If the method is called asynchronously,
748
+ returns the request thread.
749
+ """
750
+
751
+ all_params = ['body'] # noqa: E501
752
+ all_params.append('async_req')
753
+ all_params.append('_return_http_data_only')
754
+ all_params.append('_preload_content')
755
+ all_params.append('_request_timeout')
756
+
757
+ params = locals()
758
+ for key, val in six.iteritems(params['kwargs']):
759
+ if key not in all_params:
760
+ raise TypeError(
761
+ "Got an unexpected keyword argument '%s'"
762
+ " to method delete_backup_policy" % key
763
+ )
764
+ params[key] = val
765
+ del params['kwargs']
766
+ # verify the required parameter 'body' is set
767
+ if self.api_client.client_side_validation and ('body' not in params or
768
+ params['body'] is None): # noqa: E501
769
+ raise ValueError("Missing the required parameter `body` when calling `delete_backup_policy`") # noqa: E501
770
+
771
+ collection_formats = {}
772
+
773
+ path_params = {}
774
+
775
+ query_params = []
776
+
777
+ header_params = {}
778
+
779
+ form_params = []
780
+ local_var_files = {}
781
+
782
+ body_params = None
783
+ if 'body' in params:
784
+ body_params = params['body']
785
+ # HTTP header `Accept`
786
+ header_params['Accept'] = self.api_client.select_header_accept(
787
+ ['application/json']) # noqa: E501
788
+
789
+ # HTTP header `Content-Type`
790
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
791
+ ['application/json']) # noqa: E501
792
+
793
+ # Authentication setting
794
+ auth_settings = ['volcengineSign'] # noqa: E501
795
+
796
+ return self.api_client.call_api(
797
+ '/DeleteBackupPolicy/2024-03-01/cbr/post/application_json/', 'POST',
798
+ path_params,
799
+ query_params,
800
+ header_params,
801
+ body=body_params,
802
+ post_params=form_params,
803
+ files=local_var_files,
804
+ response_type='DeleteBackupPolicyResponse', # noqa: E501
805
+ auth_settings=auth_settings,
806
+ async_req=params.get('async_req'),
807
+ _return_http_data_only=params.get('_return_http_data_only'),
808
+ _preload_content=params.get('_preload_content', True),
809
+ _request_timeout=params.get('_request_timeout'),
810
+ collection_formats=collection_formats)
811
+
812
+ def delete_backup_resource(self, body, **kwargs): # noqa: E501
813
+ """delete_backup_resource # noqa: E501
814
+
815
+ This method makes a synchronous HTTP request by default. To make an
816
+ asynchronous HTTP request, please pass async_req=True
817
+ >>> thread = api.delete_backup_resource(body, async_req=True)
818
+ >>> result = thread.get()
819
+
820
+ :param async_req bool
821
+ :param DeleteBackupResourceRequest body: (required)
822
+ :return: DeleteBackupResourceResponse
823
+ If the method is called asynchronously,
824
+ returns the request thread.
825
+ """
826
+ kwargs['_return_http_data_only'] = True
827
+ if kwargs.get('async_req'):
828
+ return self.delete_backup_resource_with_http_info(body, **kwargs) # noqa: E501
829
+ else:
830
+ (data) = self.delete_backup_resource_with_http_info(body, **kwargs) # noqa: E501
831
+ return data
832
+
833
+ def delete_backup_resource_with_http_info(self, body, **kwargs): # noqa: E501
834
+ """delete_backup_resource # noqa: E501
835
+
836
+ This method makes a synchronous HTTP request by default. To make an
837
+ asynchronous HTTP request, please pass async_req=True
838
+ >>> thread = api.delete_backup_resource_with_http_info(body, async_req=True)
839
+ >>> result = thread.get()
840
+
841
+ :param async_req bool
842
+ :param DeleteBackupResourceRequest body: (required)
843
+ :return: DeleteBackupResourceResponse
844
+ If the method is called asynchronously,
845
+ returns the request thread.
846
+ """
847
+
848
+ all_params = ['body'] # noqa: E501
849
+ all_params.append('async_req')
850
+ all_params.append('_return_http_data_only')
851
+ all_params.append('_preload_content')
852
+ all_params.append('_request_timeout')
853
+
854
+ params = locals()
855
+ for key, val in six.iteritems(params['kwargs']):
856
+ if key not in all_params:
857
+ raise TypeError(
858
+ "Got an unexpected keyword argument '%s'"
859
+ " to method delete_backup_resource" % key
860
+ )
861
+ params[key] = val
862
+ del params['kwargs']
863
+ # verify the required parameter 'body' is set
864
+ if self.api_client.client_side_validation and ('body' not in params or
865
+ params['body'] is None): # noqa: E501
866
+ raise ValueError("Missing the required parameter `body` when calling `delete_backup_resource`") # noqa: E501
867
+
868
+ collection_formats = {}
869
+
870
+ path_params = {}
871
+
872
+ query_params = []
873
+
874
+ header_params = {}
875
+
876
+ form_params = []
877
+ local_var_files = {}
878
+
879
+ body_params = None
880
+ if 'body' in params:
881
+ body_params = params['body']
882
+ # HTTP header `Accept`
883
+ header_params['Accept'] = self.api_client.select_header_accept(
884
+ ['application/json']) # noqa: E501
885
+
886
+ # HTTP header `Content-Type`
887
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
888
+ ['application/json']) # noqa: E501
889
+
890
+ # Authentication setting
891
+ auth_settings = ['volcengineSign'] # noqa: E501
892
+
893
+ return self.api_client.call_api(
894
+ '/DeleteBackupResource/2024-03-01/cbr/post/application_json/', 'POST',
895
+ path_params,
896
+ query_params,
897
+ header_params,
898
+ body=body_params,
899
+ post_params=form_params,
900
+ files=local_var_files,
901
+ response_type='DeleteBackupResourceResponse', # noqa: E501
902
+ auth_settings=auth_settings,
903
+ async_req=params.get('async_req'),
904
+ _return_http_data_only=params.get('_return_http_data_only'),
905
+ _preload_content=params.get('_preload_content', True),
906
+ _request_timeout=params.get('_request_timeout'),
907
+ collection_formats=collection_formats)
908
+
909
+ def delete_recovery_point(self, body, **kwargs): # noqa: E501
910
+ """delete_recovery_point # noqa: E501
911
+
912
+ This method makes a synchronous HTTP request by default. To make an
913
+ asynchronous HTTP request, please pass async_req=True
914
+ >>> thread = api.delete_recovery_point(body, async_req=True)
915
+ >>> result = thread.get()
916
+
917
+ :param async_req bool
918
+ :param DeleteRecoveryPointRequest body: (required)
919
+ :return: DeleteRecoveryPointResponse
920
+ If the method is called asynchronously,
921
+ returns the request thread.
922
+ """
923
+ kwargs['_return_http_data_only'] = True
924
+ if kwargs.get('async_req'):
925
+ return self.delete_recovery_point_with_http_info(body, **kwargs) # noqa: E501
926
+ else:
927
+ (data) = self.delete_recovery_point_with_http_info(body, **kwargs) # noqa: E501
928
+ return data
929
+
930
+ def delete_recovery_point_with_http_info(self, body, **kwargs): # noqa: E501
931
+ """delete_recovery_point # noqa: E501
932
+
933
+ This method makes a synchronous HTTP request by default. To make an
934
+ asynchronous HTTP request, please pass async_req=True
935
+ >>> thread = api.delete_recovery_point_with_http_info(body, async_req=True)
936
+ >>> result = thread.get()
937
+
938
+ :param async_req bool
939
+ :param DeleteRecoveryPointRequest body: (required)
940
+ :return: DeleteRecoveryPointResponse
941
+ If the method is called asynchronously,
942
+ returns the request thread.
943
+ """
944
+
945
+ all_params = ['body'] # noqa: E501
946
+ all_params.append('async_req')
947
+ all_params.append('_return_http_data_only')
948
+ all_params.append('_preload_content')
949
+ all_params.append('_request_timeout')
950
+
951
+ params = locals()
952
+ for key, val in six.iteritems(params['kwargs']):
953
+ if key not in all_params:
954
+ raise TypeError(
955
+ "Got an unexpected keyword argument '%s'"
956
+ " to method delete_recovery_point" % key
957
+ )
958
+ params[key] = val
959
+ del params['kwargs']
960
+ # verify the required parameter 'body' is set
961
+ if self.api_client.client_side_validation and ('body' not in params or
962
+ params['body'] is None): # noqa: E501
963
+ raise ValueError("Missing the required parameter `body` when calling `delete_recovery_point`") # noqa: E501
964
+
965
+ collection_formats = {}
966
+
967
+ path_params = {}
968
+
969
+ query_params = []
970
+
971
+ header_params = {}
972
+
973
+ form_params = []
974
+ local_var_files = {}
975
+
976
+ body_params = None
977
+ if 'body' in params:
978
+ body_params = params['body']
979
+ # HTTP header `Accept`
980
+ header_params['Accept'] = self.api_client.select_header_accept(
981
+ ['application/json']) # noqa: E501
982
+
983
+ # HTTP header `Content-Type`
984
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
985
+ ['application/json']) # noqa: E501
986
+
987
+ # Authentication setting
988
+ auth_settings = ['volcengineSign'] # noqa: E501
989
+
990
+ return self.api_client.call_api(
991
+ '/DeleteRecoveryPoint/2024-03-01/cbr/post/application_json/', 'POST',
992
+ path_params,
993
+ query_params,
994
+ header_params,
995
+ body=body_params,
996
+ post_params=form_params,
997
+ files=local_var_files,
998
+ response_type='DeleteRecoveryPointResponse', # noqa: E501
999
+ auth_settings=auth_settings,
1000
+ async_req=params.get('async_req'),
1001
+ _return_http_data_only=params.get('_return_http_data_only'),
1002
+ _preload_content=params.get('_preload_content', True),
1003
+ _request_timeout=params.get('_request_timeout'),
1004
+ collection_formats=collection_formats)
1005
+
1006
+ def delete_vault(self, body, **kwargs): # noqa: E501
1007
+ """delete_vault # noqa: E501
1008
+
1009
+ This method makes a synchronous HTTP request by default. To make an
1010
+ asynchronous HTTP request, please pass async_req=True
1011
+ >>> thread = api.delete_vault(body, async_req=True)
1012
+ >>> result = thread.get()
1013
+
1014
+ :param async_req bool
1015
+ :param DeleteVaultRequest body: (required)
1016
+ :return: DeleteVaultResponse
1017
+ If the method is called asynchronously,
1018
+ returns the request thread.
1019
+ """
1020
+ kwargs['_return_http_data_only'] = True
1021
+ if kwargs.get('async_req'):
1022
+ return self.delete_vault_with_http_info(body, **kwargs) # noqa: E501
1023
+ else:
1024
+ (data) = self.delete_vault_with_http_info(body, **kwargs) # noqa: E501
1025
+ return data
1026
+
1027
+ def delete_vault_with_http_info(self, body, **kwargs): # noqa: E501
1028
+ """delete_vault # noqa: E501
1029
+
1030
+ This method makes a synchronous HTTP request by default. To make an
1031
+ asynchronous HTTP request, please pass async_req=True
1032
+ >>> thread = api.delete_vault_with_http_info(body, async_req=True)
1033
+ >>> result = thread.get()
1034
+
1035
+ :param async_req bool
1036
+ :param DeleteVaultRequest body: (required)
1037
+ :return: DeleteVaultResponse
1038
+ If the method is called asynchronously,
1039
+ returns the request thread.
1040
+ """
1041
+
1042
+ all_params = ['body'] # noqa: E501
1043
+ all_params.append('async_req')
1044
+ all_params.append('_return_http_data_only')
1045
+ all_params.append('_preload_content')
1046
+ all_params.append('_request_timeout')
1047
+
1048
+ params = locals()
1049
+ for key, val in six.iteritems(params['kwargs']):
1050
+ if key not in all_params:
1051
+ raise TypeError(
1052
+ "Got an unexpected keyword argument '%s'"
1053
+ " to method delete_vault" % key
1054
+ )
1055
+ params[key] = val
1056
+ del params['kwargs']
1057
+ # verify the required parameter 'body' is set
1058
+ if self.api_client.client_side_validation and ('body' not in params or
1059
+ params['body'] is None): # noqa: E501
1060
+ raise ValueError("Missing the required parameter `body` when calling `delete_vault`") # noqa: E501
1061
+
1062
+ collection_formats = {}
1063
+
1064
+ path_params = {}
1065
+
1066
+ query_params = []
1067
+
1068
+ header_params = {}
1069
+
1070
+ form_params = []
1071
+ local_var_files = {}
1072
+
1073
+ body_params = None
1074
+ if 'body' in params:
1075
+ body_params = params['body']
1076
+ # HTTP header `Accept`
1077
+ header_params['Accept'] = self.api_client.select_header_accept(
1078
+ ['application/json']) # noqa: E501
1079
+
1080
+ # HTTP header `Content-Type`
1081
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1082
+ ['application/json']) # noqa: E501
1083
+
1084
+ # Authentication setting
1085
+ auth_settings = ['volcengineSign'] # noqa: E501
1086
+
1087
+ return self.api_client.call_api(
1088
+ '/DeleteVault/2024-03-01/cbr/post/application_json/', 'POST',
1089
+ path_params,
1090
+ query_params,
1091
+ header_params,
1092
+ body=body_params,
1093
+ post_params=form_params,
1094
+ files=local_var_files,
1095
+ response_type='DeleteVaultResponse', # noqa: E501
1096
+ auth_settings=auth_settings,
1097
+ async_req=params.get('async_req'),
1098
+ _return_http_data_only=params.get('_return_http_data_only'),
1099
+ _preload_content=params.get('_preload_content', True),
1100
+ _request_timeout=params.get('_request_timeout'),
1101
+ collection_formats=collection_formats)
1102
+
1103
+ def describe_backup_plans(self, body, **kwargs): # noqa: E501
1104
+ """describe_backup_plans # noqa: E501
1105
+
1106
+ This method makes a synchronous HTTP request by default. To make an
1107
+ asynchronous HTTP request, please pass async_req=True
1108
+ >>> thread = api.describe_backup_plans(body, async_req=True)
1109
+ >>> result = thread.get()
1110
+
1111
+ :param async_req bool
1112
+ :param DescribeBackupPlansRequest body: (required)
1113
+ :return: DescribeBackupPlansResponse
1114
+ If the method is called asynchronously,
1115
+ returns the request thread.
1116
+ """
1117
+ kwargs['_return_http_data_only'] = True
1118
+ if kwargs.get('async_req'):
1119
+ return self.describe_backup_plans_with_http_info(body, **kwargs) # noqa: E501
1120
+ else:
1121
+ (data) = self.describe_backup_plans_with_http_info(body, **kwargs) # noqa: E501
1122
+ return data
1123
+
1124
+ def describe_backup_plans_with_http_info(self, body, **kwargs): # noqa: E501
1125
+ """describe_backup_plans # noqa: E501
1126
+
1127
+ This method makes a synchronous HTTP request by default. To make an
1128
+ asynchronous HTTP request, please pass async_req=True
1129
+ >>> thread = api.describe_backup_plans_with_http_info(body, async_req=True)
1130
+ >>> result = thread.get()
1131
+
1132
+ :param async_req bool
1133
+ :param DescribeBackupPlansRequest body: (required)
1134
+ :return: DescribeBackupPlansResponse
1135
+ If the method is called asynchronously,
1136
+ returns the request thread.
1137
+ """
1138
+
1139
+ all_params = ['body'] # noqa: E501
1140
+ all_params.append('async_req')
1141
+ all_params.append('_return_http_data_only')
1142
+ all_params.append('_preload_content')
1143
+ all_params.append('_request_timeout')
1144
+
1145
+ params = locals()
1146
+ for key, val in six.iteritems(params['kwargs']):
1147
+ if key not in all_params:
1148
+ raise TypeError(
1149
+ "Got an unexpected keyword argument '%s'"
1150
+ " to method describe_backup_plans" % key
1151
+ )
1152
+ params[key] = val
1153
+ del params['kwargs']
1154
+ # verify the required parameter 'body' is set
1155
+ if self.api_client.client_side_validation and ('body' not in params or
1156
+ params['body'] is None): # noqa: E501
1157
+ raise ValueError("Missing the required parameter `body` when calling `describe_backup_plans`") # noqa: E501
1158
+
1159
+ collection_formats = {}
1160
+
1161
+ path_params = {}
1162
+
1163
+ query_params = []
1164
+
1165
+ header_params = {}
1166
+
1167
+ form_params = []
1168
+ local_var_files = {}
1169
+
1170
+ body_params = None
1171
+ if 'body' in params:
1172
+ body_params = params['body']
1173
+ # HTTP header `Accept`
1174
+ header_params['Accept'] = self.api_client.select_header_accept(
1175
+ ['application/json']) # noqa: E501
1176
+
1177
+ # HTTP header `Content-Type`
1178
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1179
+ ['application/json']) # noqa: E501
1180
+
1181
+ # Authentication setting
1182
+ auth_settings = ['volcengineSign'] # noqa: E501
1183
+
1184
+ return self.api_client.call_api(
1185
+ '/DescribeBackupPlans/2024-03-01/cbr/post/application_json/', 'POST',
1186
+ path_params,
1187
+ query_params,
1188
+ header_params,
1189
+ body=body_params,
1190
+ post_params=form_params,
1191
+ files=local_var_files,
1192
+ response_type='DescribeBackupPlansResponse', # noqa: E501
1193
+ auth_settings=auth_settings,
1194
+ async_req=params.get('async_req'),
1195
+ _return_http_data_only=params.get('_return_http_data_only'),
1196
+ _preload_content=params.get('_preload_content', True),
1197
+ _request_timeout=params.get('_request_timeout'),
1198
+ collection_formats=collection_formats)
1199
+
1200
+ def describe_backup_policies(self, body, **kwargs): # noqa: E501
1201
+ """describe_backup_policies # noqa: E501
1202
+
1203
+ This method makes a synchronous HTTP request by default. To make an
1204
+ asynchronous HTTP request, please pass async_req=True
1205
+ >>> thread = api.describe_backup_policies(body, async_req=True)
1206
+ >>> result = thread.get()
1207
+
1208
+ :param async_req bool
1209
+ :param DescribeBackupPoliciesRequest body: (required)
1210
+ :return: DescribeBackupPoliciesResponse
1211
+ If the method is called asynchronously,
1212
+ returns the request thread.
1213
+ """
1214
+ kwargs['_return_http_data_only'] = True
1215
+ if kwargs.get('async_req'):
1216
+ return self.describe_backup_policies_with_http_info(body, **kwargs) # noqa: E501
1217
+ else:
1218
+ (data) = self.describe_backup_policies_with_http_info(body, **kwargs) # noqa: E501
1219
+ return data
1220
+
1221
+ def describe_backup_policies_with_http_info(self, body, **kwargs): # noqa: E501
1222
+ """describe_backup_policies # noqa: E501
1223
+
1224
+ This method makes a synchronous HTTP request by default. To make an
1225
+ asynchronous HTTP request, please pass async_req=True
1226
+ >>> thread = api.describe_backup_policies_with_http_info(body, async_req=True)
1227
+ >>> result = thread.get()
1228
+
1229
+ :param async_req bool
1230
+ :param DescribeBackupPoliciesRequest body: (required)
1231
+ :return: DescribeBackupPoliciesResponse
1232
+ If the method is called asynchronously,
1233
+ returns the request thread.
1234
+ """
1235
+
1236
+ all_params = ['body'] # noqa: E501
1237
+ all_params.append('async_req')
1238
+ all_params.append('_return_http_data_only')
1239
+ all_params.append('_preload_content')
1240
+ all_params.append('_request_timeout')
1241
+
1242
+ params = locals()
1243
+ for key, val in six.iteritems(params['kwargs']):
1244
+ if key not in all_params:
1245
+ raise TypeError(
1246
+ "Got an unexpected keyword argument '%s'"
1247
+ " to method describe_backup_policies" % key
1248
+ )
1249
+ params[key] = val
1250
+ del params['kwargs']
1251
+ # verify the required parameter 'body' is set
1252
+ if self.api_client.client_side_validation and ('body' not in params or
1253
+ params['body'] is None): # noqa: E501
1254
+ raise ValueError("Missing the required parameter `body` when calling `describe_backup_policies`") # noqa: E501
1255
+
1256
+ collection_formats = {}
1257
+
1258
+ path_params = {}
1259
+
1260
+ query_params = []
1261
+
1262
+ header_params = {}
1263
+
1264
+ form_params = []
1265
+ local_var_files = {}
1266
+
1267
+ body_params = None
1268
+ if 'body' in params:
1269
+ body_params = params['body']
1270
+ # HTTP header `Accept`
1271
+ header_params['Accept'] = self.api_client.select_header_accept(
1272
+ ['application/json']) # noqa: E501
1273
+
1274
+ # HTTP header `Content-Type`
1275
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1276
+ ['application/json']) # noqa: E501
1277
+
1278
+ # Authentication setting
1279
+ auth_settings = ['volcengineSign'] # noqa: E501
1280
+
1281
+ return self.api_client.call_api(
1282
+ '/DescribeBackupPolicies/2024-03-01/cbr/post/application_json/', 'POST',
1283
+ path_params,
1284
+ query_params,
1285
+ header_params,
1286
+ body=body_params,
1287
+ post_params=form_params,
1288
+ files=local_var_files,
1289
+ response_type='DescribeBackupPoliciesResponse', # noqa: E501
1290
+ auth_settings=auth_settings,
1291
+ async_req=params.get('async_req'),
1292
+ _return_http_data_only=params.get('_return_http_data_only'),
1293
+ _preload_content=params.get('_preload_content', True),
1294
+ _request_timeout=params.get('_request_timeout'),
1295
+ collection_formats=collection_formats)
1296
+
1297
+ def describe_backup_resources(self, body, **kwargs): # noqa: E501
1298
+ """describe_backup_resources # noqa: E501
1299
+
1300
+ This method makes a synchronous HTTP request by default. To make an
1301
+ asynchronous HTTP request, please pass async_req=True
1302
+ >>> thread = api.describe_backup_resources(body, async_req=True)
1303
+ >>> result = thread.get()
1304
+
1305
+ :param async_req bool
1306
+ :param DescribeBackupResourcesRequest body: (required)
1307
+ :return: DescribeBackupResourcesResponse
1308
+ If the method is called asynchronously,
1309
+ returns the request thread.
1310
+ """
1311
+ kwargs['_return_http_data_only'] = True
1312
+ if kwargs.get('async_req'):
1313
+ return self.describe_backup_resources_with_http_info(body, **kwargs) # noqa: E501
1314
+ else:
1315
+ (data) = self.describe_backup_resources_with_http_info(body, **kwargs) # noqa: E501
1316
+ return data
1317
+
1318
+ def describe_backup_resources_with_http_info(self, body, **kwargs): # noqa: E501
1319
+ """describe_backup_resources # noqa: E501
1320
+
1321
+ This method makes a synchronous HTTP request by default. To make an
1322
+ asynchronous HTTP request, please pass async_req=True
1323
+ >>> thread = api.describe_backup_resources_with_http_info(body, async_req=True)
1324
+ >>> result = thread.get()
1325
+
1326
+ :param async_req bool
1327
+ :param DescribeBackupResourcesRequest body: (required)
1328
+ :return: DescribeBackupResourcesResponse
1329
+ If the method is called asynchronously,
1330
+ returns the request thread.
1331
+ """
1332
+
1333
+ all_params = ['body'] # noqa: E501
1334
+ all_params.append('async_req')
1335
+ all_params.append('_return_http_data_only')
1336
+ all_params.append('_preload_content')
1337
+ all_params.append('_request_timeout')
1338
+
1339
+ params = locals()
1340
+ for key, val in six.iteritems(params['kwargs']):
1341
+ if key not in all_params:
1342
+ raise TypeError(
1343
+ "Got an unexpected keyword argument '%s'"
1344
+ " to method describe_backup_resources" % key
1345
+ )
1346
+ params[key] = val
1347
+ del params['kwargs']
1348
+ # verify the required parameter 'body' is set
1349
+ if self.api_client.client_side_validation and ('body' not in params or
1350
+ params['body'] is None): # noqa: E501
1351
+ raise ValueError("Missing the required parameter `body` when calling `describe_backup_resources`") # noqa: E501
1352
+
1353
+ collection_formats = {}
1354
+
1355
+ path_params = {}
1356
+
1357
+ query_params = []
1358
+
1359
+ header_params = {}
1360
+
1361
+ form_params = []
1362
+ local_var_files = {}
1363
+
1364
+ body_params = None
1365
+ if 'body' in params:
1366
+ body_params = params['body']
1367
+ # HTTP header `Accept`
1368
+ header_params['Accept'] = self.api_client.select_header_accept(
1369
+ ['application/json']) # noqa: E501
1370
+
1371
+ # HTTP header `Content-Type`
1372
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1373
+ ['application/json']) # noqa: E501
1374
+
1375
+ # Authentication setting
1376
+ auth_settings = ['volcengineSign'] # noqa: E501
1377
+
1378
+ return self.api_client.call_api(
1379
+ '/DescribeBackupResources/2024-03-01/cbr/post/application_json/', 'POST',
1380
+ path_params,
1381
+ query_params,
1382
+ header_params,
1383
+ body=body_params,
1384
+ post_params=form_params,
1385
+ files=local_var_files,
1386
+ response_type='DescribeBackupResourcesResponse', # noqa: E501
1387
+ auth_settings=auth_settings,
1388
+ async_req=params.get('async_req'),
1389
+ _return_http_data_only=params.get('_return_http_data_only'),
1390
+ _preload_content=params.get('_preload_content', True),
1391
+ _request_timeout=params.get('_request_timeout'),
1392
+ collection_formats=collection_formats)
1393
+
1394
+ def describe_recovery_points(self, body, **kwargs): # noqa: E501
1395
+ """describe_recovery_points # noqa: E501
1396
+
1397
+ This method makes a synchronous HTTP request by default. To make an
1398
+ asynchronous HTTP request, please pass async_req=True
1399
+ >>> thread = api.describe_recovery_points(body, async_req=True)
1400
+ >>> result = thread.get()
1401
+
1402
+ :param async_req bool
1403
+ :param DescribeRecoveryPointsRequest body: (required)
1404
+ :return: DescribeRecoveryPointsResponse
1405
+ If the method is called asynchronously,
1406
+ returns the request thread.
1407
+ """
1408
+ kwargs['_return_http_data_only'] = True
1409
+ if kwargs.get('async_req'):
1410
+ return self.describe_recovery_points_with_http_info(body, **kwargs) # noqa: E501
1411
+ else:
1412
+ (data) = self.describe_recovery_points_with_http_info(body, **kwargs) # noqa: E501
1413
+ return data
1414
+
1415
+ def describe_recovery_points_with_http_info(self, body, **kwargs): # noqa: E501
1416
+ """describe_recovery_points # noqa: E501
1417
+
1418
+ This method makes a synchronous HTTP request by default. To make an
1419
+ asynchronous HTTP request, please pass async_req=True
1420
+ >>> thread = api.describe_recovery_points_with_http_info(body, async_req=True)
1421
+ >>> result = thread.get()
1422
+
1423
+ :param async_req bool
1424
+ :param DescribeRecoveryPointsRequest body: (required)
1425
+ :return: DescribeRecoveryPointsResponse
1426
+ If the method is called asynchronously,
1427
+ returns the request thread.
1428
+ """
1429
+
1430
+ all_params = ['body'] # noqa: E501
1431
+ all_params.append('async_req')
1432
+ all_params.append('_return_http_data_only')
1433
+ all_params.append('_preload_content')
1434
+ all_params.append('_request_timeout')
1435
+
1436
+ params = locals()
1437
+ for key, val in six.iteritems(params['kwargs']):
1438
+ if key not in all_params:
1439
+ raise TypeError(
1440
+ "Got an unexpected keyword argument '%s'"
1441
+ " to method describe_recovery_points" % key
1442
+ )
1443
+ params[key] = val
1444
+ del params['kwargs']
1445
+ # verify the required parameter 'body' is set
1446
+ if self.api_client.client_side_validation and ('body' not in params or
1447
+ params['body'] is None): # noqa: E501
1448
+ raise ValueError("Missing the required parameter `body` when calling `describe_recovery_points`") # noqa: E501
1449
+
1450
+ collection_formats = {}
1451
+
1452
+ path_params = {}
1453
+
1454
+ query_params = []
1455
+
1456
+ header_params = {}
1457
+
1458
+ form_params = []
1459
+ local_var_files = {}
1460
+
1461
+ body_params = None
1462
+ if 'body' in params:
1463
+ body_params = params['body']
1464
+ # HTTP header `Accept`
1465
+ header_params['Accept'] = self.api_client.select_header_accept(
1466
+ ['application/json']) # noqa: E501
1467
+
1468
+ # HTTP header `Content-Type`
1469
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1470
+ ['application/json']) # noqa: E501
1471
+
1472
+ # Authentication setting
1473
+ auth_settings = ['volcengineSign'] # noqa: E501
1474
+
1475
+ return self.api_client.call_api(
1476
+ '/DescribeRecoveryPoints/2024-03-01/cbr/post/application_json/', 'POST',
1477
+ path_params,
1478
+ query_params,
1479
+ header_params,
1480
+ body=body_params,
1481
+ post_params=form_params,
1482
+ files=local_var_files,
1483
+ response_type='DescribeRecoveryPointsResponse', # noqa: E501
1484
+ auth_settings=auth_settings,
1485
+ async_req=params.get('async_req'),
1486
+ _return_http_data_only=params.get('_return_http_data_only'),
1487
+ _preload_content=params.get('_preload_content', True),
1488
+ _request_timeout=params.get('_request_timeout'),
1489
+ collection_formats=collection_formats)
1490
+
1491
+ def describe_regions(self, body, **kwargs): # noqa: E501
1492
+ """describe_regions # noqa: E501
1493
+
1494
+ This method makes a synchronous HTTP request by default. To make an
1495
+ asynchronous HTTP request, please pass async_req=True
1496
+ >>> thread = api.describe_regions(body, async_req=True)
1497
+ >>> result = thread.get()
1498
+
1499
+ :param async_req bool
1500
+ :param DescribeRegionsRequest body: (required)
1501
+ :return: DescribeRegionsResponse
1502
+ If the method is called asynchronously,
1503
+ returns the request thread.
1504
+ """
1505
+ kwargs['_return_http_data_only'] = True
1506
+ if kwargs.get('async_req'):
1507
+ return self.describe_regions_with_http_info(body, **kwargs) # noqa: E501
1508
+ else:
1509
+ (data) = self.describe_regions_with_http_info(body, **kwargs) # noqa: E501
1510
+ return data
1511
+
1512
+ def describe_regions_with_http_info(self, body, **kwargs): # noqa: E501
1513
+ """describe_regions # noqa: E501
1514
+
1515
+ This method makes a synchronous HTTP request by default. To make an
1516
+ asynchronous HTTP request, please pass async_req=True
1517
+ >>> thread = api.describe_regions_with_http_info(body, async_req=True)
1518
+ >>> result = thread.get()
1519
+
1520
+ :param async_req bool
1521
+ :param DescribeRegionsRequest body: (required)
1522
+ :return: DescribeRegionsResponse
1523
+ If the method is called asynchronously,
1524
+ returns the request thread.
1525
+ """
1526
+
1527
+ all_params = ['body'] # noqa: E501
1528
+ all_params.append('async_req')
1529
+ all_params.append('_return_http_data_only')
1530
+ all_params.append('_preload_content')
1531
+ all_params.append('_request_timeout')
1532
+
1533
+ params = locals()
1534
+ for key, val in six.iteritems(params['kwargs']):
1535
+ if key not in all_params:
1536
+ raise TypeError(
1537
+ "Got an unexpected keyword argument '%s'"
1538
+ " to method describe_regions" % key
1539
+ )
1540
+ params[key] = val
1541
+ del params['kwargs']
1542
+ # verify the required parameter 'body' is set
1543
+ if self.api_client.client_side_validation and ('body' not in params or
1544
+ params['body'] is None): # noqa: E501
1545
+ raise ValueError("Missing the required parameter `body` when calling `describe_regions`") # noqa: E501
1546
+
1547
+ collection_formats = {}
1548
+
1549
+ path_params = {}
1550
+
1551
+ query_params = []
1552
+
1553
+ header_params = {}
1554
+
1555
+ form_params = []
1556
+ local_var_files = {}
1557
+
1558
+ body_params = None
1559
+ if 'body' in params:
1560
+ body_params = params['body']
1561
+ # HTTP header `Accept`
1562
+ header_params['Accept'] = self.api_client.select_header_accept(
1563
+ ['application/json']) # noqa: E501
1564
+
1565
+ # HTTP header `Content-Type`
1566
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1567
+ ['application/json']) # noqa: E501
1568
+
1569
+ # Authentication setting
1570
+ auth_settings = ['volcengineSign'] # noqa: E501
1571
+
1572
+ return self.api_client.call_api(
1573
+ '/DescribeRegions/2024-03-01/cbr/post/application_json/', 'POST',
1574
+ path_params,
1575
+ query_params,
1576
+ header_params,
1577
+ body=body_params,
1578
+ post_params=form_params,
1579
+ files=local_var_files,
1580
+ response_type='DescribeRegionsResponse', # noqa: E501
1581
+ auth_settings=auth_settings,
1582
+ async_req=params.get('async_req'),
1583
+ _return_http_data_only=params.get('_return_http_data_only'),
1584
+ _preload_content=params.get('_preload_content', True),
1585
+ _request_timeout=params.get('_request_timeout'),
1586
+ collection_formats=collection_formats)
1587
+
1588
+ def describe_restore_jobs(self, body, **kwargs): # noqa: E501
1589
+ """describe_restore_jobs # noqa: E501
1590
+
1591
+ This method makes a synchronous HTTP request by default. To make an
1592
+ asynchronous HTTP request, please pass async_req=True
1593
+ >>> thread = api.describe_restore_jobs(body, async_req=True)
1594
+ >>> result = thread.get()
1595
+
1596
+ :param async_req bool
1597
+ :param DescribeRestoreJobsRequest body: (required)
1598
+ :return: DescribeRestoreJobsResponse
1599
+ If the method is called asynchronously,
1600
+ returns the request thread.
1601
+ """
1602
+ kwargs['_return_http_data_only'] = True
1603
+ if kwargs.get('async_req'):
1604
+ return self.describe_restore_jobs_with_http_info(body, **kwargs) # noqa: E501
1605
+ else:
1606
+ (data) = self.describe_restore_jobs_with_http_info(body, **kwargs) # noqa: E501
1607
+ return data
1608
+
1609
+ def describe_restore_jobs_with_http_info(self, body, **kwargs): # noqa: E501
1610
+ """describe_restore_jobs # noqa: E501
1611
+
1612
+ This method makes a synchronous HTTP request by default. To make an
1613
+ asynchronous HTTP request, please pass async_req=True
1614
+ >>> thread = api.describe_restore_jobs_with_http_info(body, async_req=True)
1615
+ >>> result = thread.get()
1616
+
1617
+ :param async_req bool
1618
+ :param DescribeRestoreJobsRequest body: (required)
1619
+ :return: DescribeRestoreJobsResponse
1620
+ If the method is called asynchronously,
1621
+ returns the request thread.
1622
+ """
1623
+
1624
+ all_params = ['body'] # noqa: E501
1625
+ all_params.append('async_req')
1626
+ all_params.append('_return_http_data_only')
1627
+ all_params.append('_preload_content')
1628
+ all_params.append('_request_timeout')
1629
+
1630
+ params = locals()
1631
+ for key, val in six.iteritems(params['kwargs']):
1632
+ if key not in all_params:
1633
+ raise TypeError(
1634
+ "Got an unexpected keyword argument '%s'"
1635
+ " to method describe_restore_jobs" % key
1636
+ )
1637
+ params[key] = val
1638
+ del params['kwargs']
1639
+ # verify the required parameter 'body' is set
1640
+ if self.api_client.client_side_validation and ('body' not in params or
1641
+ params['body'] is None): # noqa: E501
1642
+ raise ValueError("Missing the required parameter `body` when calling `describe_restore_jobs`") # noqa: E501
1643
+
1644
+ collection_formats = {}
1645
+
1646
+ path_params = {}
1647
+
1648
+ query_params = []
1649
+
1650
+ header_params = {}
1651
+
1652
+ form_params = []
1653
+ local_var_files = {}
1654
+
1655
+ body_params = None
1656
+ if 'body' in params:
1657
+ body_params = params['body']
1658
+ # HTTP header `Accept`
1659
+ header_params['Accept'] = self.api_client.select_header_accept(
1660
+ ['application/json']) # noqa: E501
1661
+
1662
+ # HTTP header `Content-Type`
1663
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1664
+ ['application/json']) # noqa: E501
1665
+
1666
+ # Authentication setting
1667
+ auth_settings = ['volcengineSign'] # noqa: E501
1668
+
1669
+ return self.api_client.call_api(
1670
+ '/DescribeRestoreJobs/2024-03-01/cbr/post/application_json/', 'POST',
1671
+ path_params,
1672
+ query_params,
1673
+ header_params,
1674
+ body=body_params,
1675
+ post_params=form_params,
1676
+ files=local_var_files,
1677
+ response_type='DescribeRestoreJobsResponse', # noqa: E501
1678
+ auth_settings=auth_settings,
1679
+ async_req=params.get('async_req'),
1680
+ _return_http_data_only=params.get('_return_http_data_only'),
1681
+ _preload_content=params.get('_preload_content', True),
1682
+ _request_timeout=params.get('_request_timeout'),
1683
+ collection_formats=collection_formats)
1684
+
1685
+ def describe_vaults(self, body, **kwargs): # noqa: E501
1686
+ """describe_vaults # noqa: E501
1687
+
1688
+ This method makes a synchronous HTTP request by default. To make an
1689
+ asynchronous HTTP request, please pass async_req=True
1690
+ >>> thread = api.describe_vaults(body, async_req=True)
1691
+ >>> result = thread.get()
1692
+
1693
+ :param async_req bool
1694
+ :param DescribeVaultsRequest body: (required)
1695
+ :return: DescribeVaultsResponse
1696
+ If the method is called asynchronously,
1697
+ returns the request thread.
1698
+ """
1699
+ kwargs['_return_http_data_only'] = True
1700
+ if kwargs.get('async_req'):
1701
+ return self.describe_vaults_with_http_info(body, **kwargs) # noqa: E501
1702
+ else:
1703
+ (data) = self.describe_vaults_with_http_info(body, **kwargs) # noqa: E501
1704
+ return data
1705
+
1706
+ def describe_vaults_with_http_info(self, body, **kwargs): # noqa: E501
1707
+ """describe_vaults # noqa: E501
1708
+
1709
+ This method makes a synchronous HTTP request by default. To make an
1710
+ asynchronous HTTP request, please pass async_req=True
1711
+ >>> thread = api.describe_vaults_with_http_info(body, async_req=True)
1712
+ >>> result = thread.get()
1713
+
1714
+ :param async_req bool
1715
+ :param DescribeVaultsRequest body: (required)
1716
+ :return: DescribeVaultsResponse
1717
+ If the method is called asynchronously,
1718
+ returns the request thread.
1719
+ """
1720
+
1721
+ all_params = ['body'] # noqa: E501
1722
+ all_params.append('async_req')
1723
+ all_params.append('_return_http_data_only')
1724
+ all_params.append('_preload_content')
1725
+ all_params.append('_request_timeout')
1726
+
1727
+ params = locals()
1728
+ for key, val in six.iteritems(params['kwargs']):
1729
+ if key not in all_params:
1730
+ raise TypeError(
1731
+ "Got an unexpected keyword argument '%s'"
1732
+ " to method describe_vaults" % key
1733
+ )
1734
+ params[key] = val
1735
+ del params['kwargs']
1736
+ # verify the required parameter 'body' is set
1737
+ if self.api_client.client_side_validation and ('body' not in params or
1738
+ params['body'] is None): # noqa: E501
1739
+ raise ValueError("Missing the required parameter `body` when calling `describe_vaults`") # noqa: E501
1740
+
1741
+ collection_formats = {}
1742
+
1743
+ path_params = {}
1744
+
1745
+ query_params = []
1746
+
1747
+ header_params = {}
1748
+
1749
+ form_params = []
1750
+ local_var_files = {}
1751
+
1752
+ body_params = None
1753
+ if 'body' in params:
1754
+ body_params = params['body']
1755
+ # HTTP header `Accept`
1756
+ header_params['Accept'] = self.api_client.select_header_accept(
1757
+ ['application/json']) # noqa: E501
1758
+
1759
+ # HTTP header `Content-Type`
1760
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1761
+ ['application/json']) # noqa: E501
1762
+
1763
+ # Authentication setting
1764
+ auth_settings = ['volcengineSign'] # noqa: E501
1765
+
1766
+ return self.api_client.call_api(
1767
+ '/DescribeVaults/2024-03-01/cbr/post/application_json/', 'POST',
1768
+ path_params,
1769
+ query_params,
1770
+ header_params,
1771
+ body=body_params,
1772
+ post_params=form_params,
1773
+ files=local_var_files,
1774
+ response_type='DescribeVaultsResponse', # noqa: E501
1775
+ auth_settings=auth_settings,
1776
+ async_req=params.get('async_req'),
1777
+ _return_http_data_only=params.get('_return_http_data_only'),
1778
+ _preload_content=params.get('_preload_content', True),
1779
+ _request_timeout=params.get('_request_timeout'),
1780
+ collection_formats=collection_formats)
1781
+
1782
+ def disable_backup_policy(self, body, **kwargs): # noqa: E501
1783
+ """disable_backup_policy # noqa: E501
1784
+
1785
+ This method makes a synchronous HTTP request by default. To make an
1786
+ asynchronous HTTP request, please pass async_req=True
1787
+ >>> thread = api.disable_backup_policy(body, async_req=True)
1788
+ >>> result = thread.get()
1789
+
1790
+ :param async_req bool
1791
+ :param DisableBackupPolicyRequest body: (required)
1792
+ :return: DisableBackupPolicyResponse
1793
+ If the method is called asynchronously,
1794
+ returns the request thread.
1795
+ """
1796
+ kwargs['_return_http_data_only'] = True
1797
+ if kwargs.get('async_req'):
1798
+ return self.disable_backup_policy_with_http_info(body, **kwargs) # noqa: E501
1799
+ else:
1800
+ (data) = self.disable_backup_policy_with_http_info(body, **kwargs) # noqa: E501
1801
+ return data
1802
+
1803
+ def disable_backup_policy_with_http_info(self, body, **kwargs): # noqa: E501
1804
+ """disable_backup_policy # noqa: E501
1805
+
1806
+ This method makes a synchronous HTTP request by default. To make an
1807
+ asynchronous HTTP request, please pass async_req=True
1808
+ >>> thread = api.disable_backup_policy_with_http_info(body, async_req=True)
1809
+ >>> result = thread.get()
1810
+
1811
+ :param async_req bool
1812
+ :param DisableBackupPolicyRequest body: (required)
1813
+ :return: DisableBackupPolicyResponse
1814
+ If the method is called asynchronously,
1815
+ returns the request thread.
1816
+ """
1817
+
1818
+ all_params = ['body'] # noqa: E501
1819
+ all_params.append('async_req')
1820
+ all_params.append('_return_http_data_only')
1821
+ all_params.append('_preload_content')
1822
+ all_params.append('_request_timeout')
1823
+
1824
+ params = locals()
1825
+ for key, val in six.iteritems(params['kwargs']):
1826
+ if key not in all_params:
1827
+ raise TypeError(
1828
+ "Got an unexpected keyword argument '%s'"
1829
+ " to method disable_backup_policy" % key
1830
+ )
1831
+ params[key] = val
1832
+ del params['kwargs']
1833
+ # verify the required parameter 'body' is set
1834
+ if self.api_client.client_side_validation and ('body' not in params or
1835
+ params['body'] is None): # noqa: E501
1836
+ raise ValueError("Missing the required parameter `body` when calling `disable_backup_policy`") # noqa: E501
1837
+
1838
+ collection_formats = {}
1839
+
1840
+ path_params = {}
1841
+
1842
+ query_params = []
1843
+
1844
+ header_params = {}
1845
+
1846
+ form_params = []
1847
+ local_var_files = {}
1848
+
1849
+ body_params = None
1850
+ if 'body' in params:
1851
+ body_params = params['body']
1852
+ # HTTP header `Accept`
1853
+ header_params['Accept'] = self.api_client.select_header_accept(
1854
+ ['application/json']) # noqa: E501
1855
+
1856
+ # HTTP header `Content-Type`
1857
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1858
+ ['application/json']) # noqa: E501
1859
+
1860
+ # Authentication setting
1861
+ auth_settings = ['volcengineSign'] # noqa: E501
1862
+
1863
+ return self.api_client.call_api(
1864
+ '/DisableBackupPolicy/2024-03-01/cbr/post/application_json/', 'POST',
1865
+ path_params,
1866
+ query_params,
1867
+ header_params,
1868
+ body=body_params,
1869
+ post_params=form_params,
1870
+ files=local_var_files,
1871
+ response_type='DisableBackupPolicyResponse', # noqa: E501
1872
+ auth_settings=auth_settings,
1873
+ async_req=params.get('async_req'),
1874
+ _return_http_data_only=params.get('_return_http_data_only'),
1875
+ _preload_content=params.get('_preload_content', True),
1876
+ _request_timeout=params.get('_request_timeout'),
1877
+ collection_formats=collection_formats)
1878
+
1879
+ def enable_backup_policy(self, body, **kwargs): # noqa: E501
1880
+ """enable_backup_policy # noqa: E501
1881
+
1882
+ This method makes a synchronous HTTP request by default. To make an
1883
+ asynchronous HTTP request, please pass async_req=True
1884
+ >>> thread = api.enable_backup_policy(body, async_req=True)
1885
+ >>> result = thread.get()
1886
+
1887
+ :param async_req bool
1888
+ :param EnableBackupPolicyRequest body: (required)
1889
+ :return: EnableBackupPolicyResponse
1890
+ If the method is called asynchronously,
1891
+ returns the request thread.
1892
+ """
1893
+ kwargs['_return_http_data_only'] = True
1894
+ if kwargs.get('async_req'):
1895
+ return self.enable_backup_policy_with_http_info(body, **kwargs) # noqa: E501
1896
+ else:
1897
+ (data) = self.enable_backup_policy_with_http_info(body, **kwargs) # noqa: E501
1898
+ return data
1899
+
1900
+ def enable_backup_policy_with_http_info(self, body, **kwargs): # noqa: E501
1901
+ """enable_backup_policy # noqa: E501
1902
+
1903
+ This method makes a synchronous HTTP request by default. To make an
1904
+ asynchronous HTTP request, please pass async_req=True
1905
+ >>> thread = api.enable_backup_policy_with_http_info(body, async_req=True)
1906
+ >>> result = thread.get()
1907
+
1908
+ :param async_req bool
1909
+ :param EnableBackupPolicyRequest body: (required)
1910
+ :return: EnableBackupPolicyResponse
1911
+ If the method is called asynchronously,
1912
+ returns the request thread.
1913
+ """
1914
+
1915
+ all_params = ['body'] # noqa: E501
1916
+ all_params.append('async_req')
1917
+ all_params.append('_return_http_data_only')
1918
+ all_params.append('_preload_content')
1919
+ all_params.append('_request_timeout')
1920
+
1921
+ params = locals()
1922
+ for key, val in six.iteritems(params['kwargs']):
1923
+ if key not in all_params:
1924
+ raise TypeError(
1925
+ "Got an unexpected keyword argument '%s'"
1926
+ " to method enable_backup_policy" % key
1927
+ )
1928
+ params[key] = val
1929
+ del params['kwargs']
1930
+ # verify the required parameter 'body' is set
1931
+ if self.api_client.client_side_validation and ('body' not in params or
1932
+ params['body'] is None): # noqa: E501
1933
+ raise ValueError("Missing the required parameter `body` when calling `enable_backup_policy`") # noqa: E501
1934
+
1935
+ collection_formats = {}
1936
+
1937
+ path_params = {}
1938
+
1939
+ query_params = []
1940
+
1941
+ header_params = {}
1942
+
1943
+ form_params = []
1944
+ local_var_files = {}
1945
+
1946
+ body_params = None
1947
+ if 'body' in params:
1948
+ body_params = params['body']
1949
+ # HTTP header `Accept`
1950
+ header_params['Accept'] = self.api_client.select_header_accept(
1951
+ ['application/json']) # noqa: E501
1952
+
1953
+ # HTTP header `Content-Type`
1954
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1955
+ ['application/json']) # noqa: E501
1956
+
1957
+ # Authentication setting
1958
+ auth_settings = ['volcengineSign'] # noqa: E501
1959
+
1960
+ return self.api_client.call_api(
1961
+ '/EnableBackupPolicy/2024-03-01/cbr/post/application_json/', 'POST',
1962
+ path_params,
1963
+ query_params,
1964
+ header_params,
1965
+ body=body_params,
1966
+ post_params=form_params,
1967
+ files=local_var_files,
1968
+ response_type='EnableBackupPolicyResponse', # noqa: E501
1969
+ auth_settings=auth_settings,
1970
+ async_req=params.get('async_req'),
1971
+ _return_http_data_only=params.get('_return_http_data_only'),
1972
+ _preload_content=params.get('_preload_content', True),
1973
+ _request_timeout=params.get('_request_timeout'),
1974
+ collection_formats=collection_formats)
1975
+
1976
+ def update_backup_plan(self, body, **kwargs): # noqa: E501
1977
+ """update_backup_plan # noqa: E501
1978
+
1979
+ This method makes a synchronous HTTP request by default. To make an
1980
+ asynchronous HTTP request, please pass async_req=True
1981
+ >>> thread = api.update_backup_plan(body, async_req=True)
1982
+ >>> result = thread.get()
1983
+
1984
+ :param async_req bool
1985
+ :param UpdateBackupPlanRequest body: (required)
1986
+ :return: UpdateBackupPlanResponse
1987
+ If the method is called asynchronously,
1988
+ returns the request thread.
1989
+ """
1990
+ kwargs['_return_http_data_only'] = True
1991
+ if kwargs.get('async_req'):
1992
+ return self.update_backup_plan_with_http_info(body, **kwargs) # noqa: E501
1993
+ else:
1994
+ (data) = self.update_backup_plan_with_http_info(body, **kwargs) # noqa: E501
1995
+ return data
1996
+
1997
+ def update_backup_plan_with_http_info(self, body, **kwargs): # noqa: E501
1998
+ """update_backup_plan # noqa: E501
1999
+
2000
+ This method makes a synchronous HTTP request by default. To make an
2001
+ asynchronous HTTP request, please pass async_req=True
2002
+ >>> thread = api.update_backup_plan_with_http_info(body, async_req=True)
2003
+ >>> result = thread.get()
2004
+
2005
+ :param async_req bool
2006
+ :param UpdateBackupPlanRequest body: (required)
2007
+ :return: UpdateBackupPlanResponse
2008
+ If the method is called asynchronously,
2009
+ returns the request thread.
2010
+ """
2011
+
2012
+ all_params = ['body'] # noqa: E501
2013
+ all_params.append('async_req')
2014
+ all_params.append('_return_http_data_only')
2015
+ all_params.append('_preload_content')
2016
+ all_params.append('_request_timeout')
2017
+
2018
+ params = locals()
2019
+ for key, val in six.iteritems(params['kwargs']):
2020
+ if key not in all_params:
2021
+ raise TypeError(
2022
+ "Got an unexpected keyword argument '%s'"
2023
+ " to method update_backup_plan" % key
2024
+ )
2025
+ params[key] = val
2026
+ del params['kwargs']
2027
+ # verify the required parameter 'body' is set
2028
+ if self.api_client.client_side_validation and ('body' not in params or
2029
+ params['body'] is None): # noqa: E501
2030
+ raise ValueError("Missing the required parameter `body` when calling `update_backup_plan`") # noqa: E501
2031
+
2032
+ collection_formats = {}
2033
+
2034
+ path_params = {}
2035
+
2036
+ query_params = []
2037
+
2038
+ header_params = {}
2039
+
2040
+ form_params = []
2041
+ local_var_files = {}
2042
+
2043
+ body_params = None
2044
+ if 'body' in params:
2045
+ body_params = params['body']
2046
+ # HTTP header `Accept`
2047
+ header_params['Accept'] = self.api_client.select_header_accept(
2048
+ ['application/json']) # noqa: E501
2049
+
2050
+ # HTTP header `Content-Type`
2051
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2052
+ ['application/json']) # noqa: E501
2053
+
2054
+ # Authentication setting
2055
+ auth_settings = ['volcengineSign'] # noqa: E501
2056
+
2057
+ return self.api_client.call_api(
2058
+ '/UpdateBackupPlan/2024-03-01/cbr/post/application_json/', 'POST',
2059
+ path_params,
2060
+ query_params,
2061
+ header_params,
2062
+ body=body_params,
2063
+ post_params=form_params,
2064
+ files=local_var_files,
2065
+ response_type='UpdateBackupPlanResponse', # noqa: E501
2066
+ auth_settings=auth_settings,
2067
+ async_req=params.get('async_req'),
2068
+ _return_http_data_only=params.get('_return_http_data_only'),
2069
+ _preload_content=params.get('_preload_content', True),
2070
+ _request_timeout=params.get('_request_timeout'),
2071
+ collection_formats=collection_formats)
2072
+
2073
+ def update_backup_policy(self, body, **kwargs): # noqa: E501
2074
+ """update_backup_policy # noqa: E501
2075
+
2076
+ This method makes a synchronous HTTP request by default. To make an
2077
+ asynchronous HTTP request, please pass async_req=True
2078
+ >>> thread = api.update_backup_policy(body, async_req=True)
2079
+ >>> result = thread.get()
2080
+
2081
+ :param async_req bool
2082
+ :param UpdateBackupPolicyRequest body: (required)
2083
+ :return: UpdateBackupPolicyResponse
2084
+ If the method is called asynchronously,
2085
+ returns the request thread.
2086
+ """
2087
+ kwargs['_return_http_data_only'] = True
2088
+ if kwargs.get('async_req'):
2089
+ return self.update_backup_policy_with_http_info(body, **kwargs) # noqa: E501
2090
+ else:
2091
+ (data) = self.update_backup_policy_with_http_info(body, **kwargs) # noqa: E501
2092
+ return data
2093
+
2094
+ def update_backup_policy_with_http_info(self, body, **kwargs): # noqa: E501
2095
+ """update_backup_policy # noqa: E501
2096
+
2097
+ This method makes a synchronous HTTP request by default. To make an
2098
+ asynchronous HTTP request, please pass async_req=True
2099
+ >>> thread = api.update_backup_policy_with_http_info(body, async_req=True)
2100
+ >>> result = thread.get()
2101
+
2102
+ :param async_req bool
2103
+ :param UpdateBackupPolicyRequest body: (required)
2104
+ :return: UpdateBackupPolicyResponse
2105
+ If the method is called asynchronously,
2106
+ returns the request thread.
2107
+ """
2108
+
2109
+ all_params = ['body'] # noqa: E501
2110
+ all_params.append('async_req')
2111
+ all_params.append('_return_http_data_only')
2112
+ all_params.append('_preload_content')
2113
+ all_params.append('_request_timeout')
2114
+
2115
+ params = locals()
2116
+ for key, val in six.iteritems(params['kwargs']):
2117
+ if key not in all_params:
2118
+ raise TypeError(
2119
+ "Got an unexpected keyword argument '%s'"
2120
+ " to method update_backup_policy" % key
2121
+ )
2122
+ params[key] = val
2123
+ del params['kwargs']
2124
+ # verify the required parameter 'body' is set
2125
+ if self.api_client.client_side_validation and ('body' not in params or
2126
+ params['body'] is None): # noqa: E501
2127
+ raise ValueError("Missing the required parameter `body` when calling `update_backup_policy`") # noqa: E501
2128
+
2129
+ collection_formats = {}
2130
+
2131
+ path_params = {}
2132
+
2133
+ query_params = []
2134
+
2135
+ header_params = {}
2136
+
2137
+ form_params = []
2138
+ local_var_files = {}
2139
+
2140
+ body_params = None
2141
+ if 'body' in params:
2142
+ body_params = params['body']
2143
+ # HTTP header `Accept`
2144
+ header_params['Accept'] = self.api_client.select_header_accept(
2145
+ ['application/json']) # noqa: E501
2146
+
2147
+ # HTTP header `Content-Type`
2148
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2149
+ ['application/json']) # noqa: E501
2150
+
2151
+ # Authentication setting
2152
+ auth_settings = ['volcengineSign'] # noqa: E501
2153
+
2154
+ return self.api_client.call_api(
2155
+ '/UpdateBackupPolicy/2024-03-01/cbr/post/application_json/', 'POST',
2156
+ path_params,
2157
+ query_params,
2158
+ header_params,
2159
+ body=body_params,
2160
+ post_params=form_params,
2161
+ files=local_var_files,
2162
+ response_type='UpdateBackupPolicyResponse', # noqa: E501
2163
+ auth_settings=auth_settings,
2164
+ async_req=params.get('async_req'),
2165
+ _return_http_data_only=params.get('_return_http_data_only'),
2166
+ _preload_content=params.get('_preload_content', True),
2167
+ _request_timeout=params.get('_request_timeout'),
2168
+ collection_formats=collection_formats)
2169
+
2170
+ def update_recovery_point(self, body, **kwargs): # noqa: E501
2171
+ """update_recovery_point # noqa: E501
2172
+
2173
+ This method makes a synchronous HTTP request by default. To make an
2174
+ asynchronous HTTP request, please pass async_req=True
2175
+ >>> thread = api.update_recovery_point(body, async_req=True)
2176
+ >>> result = thread.get()
2177
+
2178
+ :param async_req bool
2179
+ :param UpdateRecoveryPointRequest body: (required)
2180
+ :return: UpdateRecoveryPointResponse
2181
+ If the method is called asynchronously,
2182
+ returns the request thread.
2183
+ """
2184
+ kwargs['_return_http_data_only'] = True
2185
+ if kwargs.get('async_req'):
2186
+ return self.update_recovery_point_with_http_info(body, **kwargs) # noqa: E501
2187
+ else:
2188
+ (data) = self.update_recovery_point_with_http_info(body, **kwargs) # noqa: E501
2189
+ return data
2190
+
2191
+ def update_recovery_point_with_http_info(self, body, **kwargs): # noqa: E501
2192
+ """update_recovery_point # noqa: E501
2193
+
2194
+ This method makes a synchronous HTTP request by default. To make an
2195
+ asynchronous HTTP request, please pass async_req=True
2196
+ >>> thread = api.update_recovery_point_with_http_info(body, async_req=True)
2197
+ >>> result = thread.get()
2198
+
2199
+ :param async_req bool
2200
+ :param UpdateRecoveryPointRequest body: (required)
2201
+ :return: UpdateRecoveryPointResponse
2202
+ If the method is called asynchronously,
2203
+ returns the request thread.
2204
+ """
2205
+
2206
+ all_params = ['body'] # noqa: E501
2207
+ all_params.append('async_req')
2208
+ all_params.append('_return_http_data_only')
2209
+ all_params.append('_preload_content')
2210
+ all_params.append('_request_timeout')
2211
+
2212
+ params = locals()
2213
+ for key, val in six.iteritems(params['kwargs']):
2214
+ if key not in all_params:
2215
+ raise TypeError(
2216
+ "Got an unexpected keyword argument '%s'"
2217
+ " to method update_recovery_point" % key
2218
+ )
2219
+ params[key] = val
2220
+ del params['kwargs']
2221
+ # verify the required parameter 'body' is set
2222
+ if self.api_client.client_side_validation and ('body' not in params or
2223
+ params['body'] is None): # noqa: E501
2224
+ raise ValueError("Missing the required parameter `body` when calling `update_recovery_point`") # noqa: E501
2225
+
2226
+ collection_formats = {}
2227
+
2228
+ path_params = {}
2229
+
2230
+ query_params = []
2231
+
2232
+ header_params = {}
2233
+
2234
+ form_params = []
2235
+ local_var_files = {}
2236
+
2237
+ body_params = None
2238
+ if 'body' in params:
2239
+ body_params = params['body']
2240
+ # HTTP header `Accept`
2241
+ header_params['Accept'] = self.api_client.select_header_accept(
2242
+ ['application/json']) # noqa: E501
2243
+
2244
+ # HTTP header `Content-Type`
2245
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2246
+ ['application/json']) # noqa: E501
2247
+
2248
+ # Authentication setting
2249
+ auth_settings = ['volcengineSign'] # noqa: E501
2250
+
2251
+ return self.api_client.call_api(
2252
+ '/UpdateRecoveryPoint/2024-03-01/cbr/post/application_json/', 'POST',
2253
+ path_params,
2254
+ query_params,
2255
+ header_params,
2256
+ body=body_params,
2257
+ post_params=form_params,
2258
+ files=local_var_files,
2259
+ response_type='UpdateRecoveryPointResponse', # noqa: E501
2260
+ auth_settings=auth_settings,
2261
+ async_req=params.get('async_req'),
2262
+ _return_http_data_only=params.get('_return_http_data_only'),
2263
+ _preload_content=params.get('_preload_content', True),
2264
+ _request_timeout=params.get('_request_timeout'),
2265
+ collection_formats=collection_formats)
2266
+
2267
+ def update_restore_job(self, body, **kwargs): # noqa: E501
2268
+ """update_restore_job # noqa: E501
2269
+
2270
+ This method makes a synchronous HTTP request by default. To make an
2271
+ asynchronous HTTP request, please pass async_req=True
2272
+ >>> thread = api.update_restore_job(body, async_req=True)
2273
+ >>> result = thread.get()
2274
+
2275
+ :param async_req bool
2276
+ :param UpdateRestoreJobRequest body: (required)
2277
+ :return: UpdateRestoreJobResponse
2278
+ If the method is called asynchronously,
2279
+ returns the request thread.
2280
+ """
2281
+ kwargs['_return_http_data_only'] = True
2282
+ if kwargs.get('async_req'):
2283
+ return self.update_restore_job_with_http_info(body, **kwargs) # noqa: E501
2284
+ else:
2285
+ (data) = self.update_restore_job_with_http_info(body, **kwargs) # noqa: E501
2286
+ return data
2287
+
2288
+ def update_restore_job_with_http_info(self, body, **kwargs): # noqa: E501
2289
+ """update_restore_job # noqa: E501
2290
+
2291
+ This method makes a synchronous HTTP request by default. To make an
2292
+ asynchronous HTTP request, please pass async_req=True
2293
+ >>> thread = api.update_restore_job_with_http_info(body, async_req=True)
2294
+ >>> result = thread.get()
2295
+
2296
+ :param async_req bool
2297
+ :param UpdateRestoreJobRequest body: (required)
2298
+ :return: UpdateRestoreJobResponse
2299
+ If the method is called asynchronously,
2300
+ returns the request thread.
2301
+ """
2302
+
2303
+ all_params = ['body'] # noqa: E501
2304
+ all_params.append('async_req')
2305
+ all_params.append('_return_http_data_only')
2306
+ all_params.append('_preload_content')
2307
+ all_params.append('_request_timeout')
2308
+
2309
+ params = locals()
2310
+ for key, val in six.iteritems(params['kwargs']):
2311
+ if key not in all_params:
2312
+ raise TypeError(
2313
+ "Got an unexpected keyword argument '%s'"
2314
+ " to method update_restore_job" % key
2315
+ )
2316
+ params[key] = val
2317
+ del params['kwargs']
2318
+ # verify the required parameter 'body' is set
2319
+ if self.api_client.client_side_validation and ('body' not in params or
2320
+ params['body'] is None): # noqa: E501
2321
+ raise ValueError("Missing the required parameter `body` when calling `update_restore_job`") # noqa: E501
2322
+
2323
+ collection_formats = {}
2324
+
2325
+ path_params = {}
2326
+
2327
+ query_params = []
2328
+
2329
+ header_params = {}
2330
+
2331
+ form_params = []
2332
+ local_var_files = {}
2333
+
2334
+ body_params = None
2335
+ if 'body' in params:
2336
+ body_params = params['body']
2337
+ # HTTP header `Accept`
2338
+ header_params['Accept'] = self.api_client.select_header_accept(
2339
+ ['application/json']) # noqa: E501
2340
+
2341
+ # HTTP header `Content-Type`
2342
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2343
+ ['application/json']) # noqa: E501
2344
+
2345
+ # Authentication setting
2346
+ auth_settings = ['volcengineSign'] # noqa: E501
2347
+
2348
+ return self.api_client.call_api(
2349
+ '/UpdateRestoreJob/2024-03-01/cbr/post/application_json/', 'POST',
2350
+ path_params,
2351
+ query_params,
2352
+ header_params,
2353
+ body=body_params,
2354
+ post_params=form_params,
2355
+ files=local_var_files,
2356
+ response_type='UpdateRestoreJobResponse', # noqa: E501
2357
+ auth_settings=auth_settings,
2358
+ async_req=params.get('async_req'),
2359
+ _return_http_data_only=params.get('_return_http_data_only'),
2360
+ _preload_content=params.get('_preload_content', True),
2361
+ _request_timeout=params.get('_request_timeout'),
2362
+ collection_formats=collection_formats)