huaweicloudsdkcae 3.1.160__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkcae might be problematic. Click here for more details.

Files changed (260) hide show
  1. huaweicloudsdkcae/__init__.py +0 -0
  2. huaweicloudsdkcae/v1/__init__.py +256 -0
  3. huaweicloudsdkcae/v1/cae_async_client.py +3941 -0
  4. huaweicloudsdkcae/v1/cae_client.py +3938 -0
  5. huaweicloudsdkcae/v1/model/__init__.py +253 -0
  6. huaweicloudsdkcae/v1/model/access.py +144 -0
  7. huaweicloudsdkcae/v1/model/access_configuration_data_items.py +368 -0
  8. huaweicloudsdkcae/v1/model/access_configuration_http_path.py +173 -0
  9. huaweicloudsdkcae/v1/model/access_configuration_metadata.py +115 -0
  10. huaweicloudsdkcae/v1/model/access_configuration_port.py +372 -0
  11. huaweicloudsdkcae/v1/model/access_control.py +144 -0
  12. huaweicloudsdkcae/v1/model/action_kind_obj.py +87 -0
  13. huaweicloudsdkcae/v1/model/action_on_component_build.py +140 -0
  14. huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
  15. huaweicloudsdkcae/v1/model/action_on_component_spec.py +219 -0
  16. huaweicloudsdkcae/v1/model/agency.py +158 -0
  17. huaweicloudsdkcae/v1/model/agency_item.py +115 -0
  18. huaweicloudsdkcae/v1/model/agency_kind_obj.py +87 -0
  19. huaweicloudsdkcae/v1/model/agency_metadata.py +139 -0
  20. huaweicloudsdkcae/v1/model/api_version_obj.py +87 -0
  21. huaweicloudsdkcae/v1/model/app_info.py +144 -0
  22. huaweicloudsdkcae/v1/model/application_item.py +202 -0
  23. huaweicloudsdkcae/v1/model/application_kind_obj.py +87 -0
  24. huaweicloudsdkcae/v1/model/application_metadata.py +202 -0
  25. huaweicloudsdkcae/v1/model/archive.py +115 -0
  26. huaweicloudsdkcae/v1/model/build.py +138 -0
  27. huaweicloudsdkcae/v1/model/cert_item.py +136 -0
  28. huaweicloudsdkcae/v1/model/cert_req.py +182 -0
  29. huaweicloudsdkcae/v1/model/certificate_kind_obj.py +87 -0
  30. huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +144 -0
  31. huaweicloudsdkcae/v1/model/component_configuration_kind_obj.py +87 -0
  32. huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
  33. huaweicloudsdkcae/v1/model/component_info.py +144 -0
  34. huaweicloudsdkcae/v1/model/component_item.py +256 -0
  35. huaweicloudsdkcae/v1/model/component_kind_obj.py +87 -0
  36. huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
  37. huaweicloudsdkcae/v1/model/component_snapshot_item.py +227 -0
  38. huaweicloudsdkcae/v1/model/component_snapshot_kind_obj.py +87 -0
  39. huaweicloudsdkcae/v1/model/component_spec.py +480 -0
  40. huaweicloudsdkcae/v1/model/configuration.py +256 -0
  41. huaweicloudsdkcae/v1/model/configuration_data.py +136 -0
  42. huaweicloudsdkcae/v1/model/configuration_data_metadata.py +115 -0
  43. huaweicloudsdkcae/v1/model/configuration_item.py +138 -0
  44. huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +903 -0
  45. huaweicloudsdkcae/v1/model/configuration_request_data_spec_post_start.py +111 -0
  46. huaweicloudsdkcae/v1/model/configuration_request_data_spec_pre_stop.py +111 -0
  47. huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +1193 -0
  48. huaweicloudsdkcae/v1/model/configuration_response_data_spec_post_start.py +111 -0
  49. huaweicloudsdkcae/v1/model/configuration_response_data_spec_pre_stop.py +111 -0
  50. huaweicloudsdkcae/v1/model/create_agency_request.py +111 -0
  51. huaweicloudsdkcae/v1/model/create_agency_response.py +85 -0
  52. huaweicloudsdkcae/v1/model/create_application_request.py +168 -0
  53. huaweicloudsdkcae/v1/model/create_application_request_body.py +158 -0
  54. huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +114 -0
  55. huaweicloudsdkcae/v1/model/create_application_response.py +162 -0
  56. huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
  57. huaweicloudsdkcae/v1/model/create_certificate_response.py +166 -0
  58. huaweicloudsdkcae/v1/model/create_component_configuration_request.py +224 -0
  59. huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +162 -0
  60. huaweicloudsdkcae/v1/model/create_component_configuration_response.py +85 -0
  61. huaweicloudsdkcae/v1/model/create_component_request.py +196 -0
  62. huaweicloudsdkcae/v1/model/create_component_request_body.py +182 -0
  63. huaweicloudsdkcae/v1/model/create_component_response.py +187 -0
  64. huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
  65. huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +196 -0
  66. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +213 -0
  67. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_metadata.py +142 -0
  68. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_spec.py +244 -0
  69. huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +241 -0
  70. huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +115 -0
  71. huaweicloudsdkcae/v1/model/create_domain_req.py +158 -0
  72. huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
  73. huaweicloudsdkcae/v1/model/create_domain_response.py +170 -0
  74. huaweicloudsdkcae/v1/model/create_environment_request.py +140 -0
  75. huaweicloudsdkcae/v1/model/create_environment_request_body.py +158 -0
  76. huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +143 -0
  77. huaweicloudsdkcae/v1/model/create_environment_response.py +116 -0
  78. huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
  79. huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
  80. huaweicloudsdkcae/v1/model/create_monitor_system_request.py +168 -0
  81. huaweicloudsdkcae/v1/model/create_monitor_system_response.py +85 -0
  82. huaweicloudsdkcae/v1/model/create_notice_rule_item.py +244 -0
  83. huaweicloudsdkcae/v1/model/create_notice_rule_req.py +166 -0
  84. huaweicloudsdkcae/v1/model/create_notice_rule_request.py +140 -0
  85. huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +277 -0
  86. huaweicloudsdkcae/v1/model/create_notice_rule_response.py +170 -0
  87. huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +142 -0
  88. huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +166 -0
  89. huaweicloudsdkcae/v1/model/create_secret_request.py +168 -0
  90. huaweicloudsdkcae/v1/model/create_secret_response.py +170 -0
  91. huaweicloudsdkcae/v1/model/create_spec_cert.py +142 -0
  92. huaweicloudsdkcae/v1/model/create_timer_rule_req.py +161 -0
  93. huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
  94. huaweicloudsdkcae/v1/model/create_timer_rule_response.py +162 -0
  95. huaweicloudsdkcae/v1/model/create_volume_req.py +158 -0
  96. huaweicloudsdkcae/v1/model/create_volume_request.py +168 -0
  97. huaweicloudsdkcae/v1/model/create_volume_response.py +85 -0
  98. huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +168 -0
  99. huaweicloudsdkcae/v1/model/create_vpc_egress_response.py +162 -0
  100. huaweicloudsdkcae/v1/model/cron_trigger_scheduler.py +144 -0
  101. huaweicloudsdkcae/v1/model/delete_application_request.py +171 -0
  102. huaweicloudsdkcae/v1/model/delete_application_response.py +85 -0
  103. huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
  104. huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
  105. huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +199 -0
  106. huaweicloudsdkcae/v1/model/delete_component_configuration_response.py +85 -0
  107. huaweicloudsdkcae/v1/model/delete_component_request.py +199 -0
  108. huaweicloudsdkcae/v1/model/delete_component_response.py +116 -0
  109. huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
  110. huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
  111. huaweicloudsdkcae/v1/model/delete_environment_request.py +143 -0
  112. huaweicloudsdkcae/v1/model/delete_environment_response.py +116 -0
  113. huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +139 -0
  114. huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
  115. huaweicloudsdkcae/v1/model/delete_secret_request.py +143 -0
  116. huaweicloudsdkcae/v1/model/delete_secret_response.py +85 -0
  117. huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
  118. huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
  119. huaweicloudsdkcae/v1/model/delete_volume_request.py +171 -0
  120. huaweicloudsdkcae/v1/model/delete_volume_response.py +166 -0
  121. huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +171 -0
  122. huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +85 -0
  123. huaweicloudsdkcae/v1/model/domain_item.py +111 -0
  124. huaweicloudsdkcae/v1/model/domain_kind_obj.py +87 -0
  125. huaweicloudsdkcae/v1/model/egress_cidr.py +171 -0
  126. huaweicloudsdkcae/v1/model/eip_kind_obj.py +87 -0
  127. huaweicloudsdkcae/v1/model/environment_item.py +289 -0
  128. huaweicloudsdkcae/v1/model/environment_kind_obj.py +87 -0
  129. huaweicloudsdkcae/v1/model/execute_action_request.py +224 -0
  130. huaweicloudsdkcae/v1/model/execute_action_request_body.py +184 -0
  131. huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +143 -0
  132. huaweicloudsdkcae/v1/model/execute_action_response.py +116 -0
  133. huaweicloudsdkcae/v1/model/execution_details.py +144 -0
  134. huaweicloudsdkcae/v1/model/health_check_configuration_exec.py +115 -0
  135. huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +173 -0
  136. huaweicloudsdkcae/v1/model/health_check_configuration_liveness_probe.py +306 -0
  137. huaweicloudsdkcae/v1/model/health_check_configuration_readiness_probe.py +306 -0
  138. huaweicloudsdkcae/v1/model/health_check_configuration_startup_probe.py +306 -0
  139. huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +115 -0
  140. huaweicloudsdkcae/v1/model/instance.py +173 -0
  141. huaweicloudsdkcae/v1/model/job_kind_obj.py +87 -0
  142. huaweicloudsdkcae/v1/model/job_spec.py +173 -0
  143. huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py +115 -0
  144. huaweicloudsdkcae/v1/model/list_agencies_request.py +84 -0
  145. huaweicloudsdkcae/v1/model/list_agencies_response.py +166 -0
  146. huaweicloudsdkcae/v1/model/list_applications_request.py +143 -0
  147. huaweicloudsdkcae/v1/model/list_applications_response.py +166 -0
  148. huaweicloudsdkcae/v1/model/list_certificates_request.py +143 -0
  149. huaweicloudsdkcae/v1/model/list_certificates_response.py +166 -0
  150. huaweicloudsdkcae/v1/model/list_component_configurations_request.py +228 -0
  151. huaweicloudsdkcae/v1/model/list_component_configurations_response.py +174 -0
  152. huaweicloudsdkcae/v1/model/list_component_configurations_response_data.py +136 -0
  153. huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
  154. huaweicloudsdkcae/v1/model/list_component_instances_response.py +166 -0
  155. huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +199 -0
  156. huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +166 -0
  157. huaweicloudsdkcae/v1/model/list_components_request.py +287 -0
  158. huaweicloudsdkcae/v1/model/list_components_response.py +195 -0
  159. huaweicloudsdkcae/v1/model/list_domains_request.py +143 -0
  160. huaweicloudsdkcae/v1/model/list_domains_response.py +170 -0
  161. huaweicloudsdkcae/v1/model/list_effective_components_request.py +143 -0
  162. huaweicloudsdkcae/v1/model/list_effective_components_response.py +174 -0
  163. huaweicloudsdkcae/v1/model/list_eip_response_body_spec.py +136 -0
  164. huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +173 -0
  165. huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +173 -0
  166. huaweicloudsdkcae/v1/model/list_eips_request.py +143 -0
  167. huaweicloudsdkcae/v1/model/list_eips_response.py +162 -0
  168. huaweicloudsdkcae/v1/model/list_environments_request.py +115 -0
  169. huaweicloudsdkcae/v1/model/list_environments_response.py +166 -0
  170. huaweicloudsdkcae/v1/model/list_notice_rules_request.py +115 -0
  171. huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
  172. huaweicloudsdkcae/v1/model/list_secrets_request.py +115 -0
  173. huaweicloudsdkcae/v1/model/list_secrets_response.py +174 -0
  174. huaweicloudsdkcae/v1/model/list_timer_rules_request.py +143 -0
  175. huaweicloudsdkcae/v1/model/list_timer_rules_response.py +162 -0
  176. huaweicloudsdkcae/v1/model/list_volumes_request.py +171 -0
  177. huaweicloudsdkcae/v1/model/list_volumes_response.py +166 -0
  178. huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +143 -0
  179. huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +162 -0
  180. huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
  181. huaweicloudsdkcae/v1/model/meta_domain.py +173 -0
  182. huaweicloudsdkcae/v1/model/metadata_response.py +231 -0
  183. huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +87 -0
  184. huaweicloudsdkcae/v1/model/monitor_system_request_body.py +161 -0
  185. huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +313 -0
  186. huaweicloudsdkcae/v1/model/mount_component.py +260 -0
  187. huaweicloudsdkcae/v1/model/notice_rule_notification.py +171 -0
  188. huaweicloudsdkcae/v1/model/notice_rule_scope.py +201 -0
  189. huaweicloudsdkcae/v1/model/repo.py +173 -0
  190. huaweicloudsdkcae/v1/model/resource_limit.py +142 -0
  191. huaweicloudsdkcae/v1/model/resource_limit_for_upgrade.py +144 -0
  192. huaweicloudsdkcae/v1/model/resources_credential.py +144 -0
  193. huaweicloudsdkcae/v1/model/retry_job_request.py +171 -0
  194. huaweicloudsdkcae/v1/model/retry_job_response.py +85 -0
  195. huaweicloudsdkcae/v1/model/scale_configuration_data_advanced.py +231 -0
  196. huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py +140 -0
  197. huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +202 -0
  198. huaweicloudsdkcae/v1/model/secret_detail.py +283 -0
  199. huaweicloudsdkcae/v1/model/show_application_request.py +171 -0
  200. huaweicloudsdkcae/v1/model/show_application_response.py +162 -0
  201. huaweicloudsdkcae/v1/model/show_component_request.py +199 -0
  202. huaweicloudsdkcae/v1/model/show_component_response.py +187 -0
  203. huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
  204. huaweicloudsdkcae/v1/model/show_execution_result_response.py +162 -0
  205. huaweicloudsdkcae/v1/model/show_job_request.py +171 -0
  206. huaweicloudsdkcae/v1/model/show_job_response.py +162 -0
  207. huaweicloudsdkcae/v1/model/show_monitor_system_request.py +143 -0
  208. huaweicloudsdkcae/v1/model/show_monitor_system_response.py +162 -0
  209. huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +434 -0
  210. huaweicloudsdkcae/v1/model/show_notice_rule_request.py +139 -0
  211. huaweicloudsdkcae/v1/model/show_notice_rule_response.py +170 -0
  212. huaweicloudsdkcae/v1/model/source.py +196 -0
  213. huaweicloudsdkcae/v1/model/spec_cert.py +173 -0
  214. huaweicloudsdkcae/v1/model/task.py +260 -0
  215. huaweicloudsdkcae/v1/model/time_rule_kind_obj.py +87 -0
  216. huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
  217. huaweicloudsdkcae/v1/model/trigger_policy.py +201 -0
  218. huaweicloudsdkcae/v1/model/update_cert_req.py +158 -0
  219. huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
  220. huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
  221. huaweicloudsdkcae/v1/model/update_component_request.py +224 -0
  222. huaweicloudsdkcae/v1/model/update_component_request_body.py +182 -0
  223. huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
  224. huaweicloudsdkcae/v1/model/update_component_request_spec.py +218 -0
  225. huaweicloudsdkcae/v1/model/update_component_response.py +85 -0
  226. huaweicloudsdkcae/v1/model/update_eip_request.py +168 -0
  227. huaweicloudsdkcae/v1/model/update_eip_request_body.py +161 -0
  228. huaweicloudsdkcae/v1/model/update_eip_request_body_spec.py +136 -0
  229. huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +144 -0
  230. huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +144 -0
  231. huaweicloudsdkcae/v1/model/update_eip_response.py +85 -0
  232. huaweicloudsdkcae/v1/model/update_monitor_system_request.py +196 -0
  233. huaweicloudsdkcae/v1/model/update_monitor_system_response.py +85 -0
  234. huaweicloudsdkcae/v1/model/update_notice_rule_item.py +192 -0
  235. huaweicloudsdkcae/v1/model/update_notice_rule_req.py +166 -0
  236. huaweicloudsdkcae/v1/model/update_notice_rule_request.py +164 -0
  237. huaweicloudsdkcae/v1/model/update_notice_rule_response.py +170 -0
  238. huaweicloudsdkcae/v1/model/update_secret_request.py +168 -0
  239. huaweicloudsdkcae/v1/model/update_secret_response.py +170 -0
  240. huaweicloudsdkcae/v1/model/update_spec_cert.py +142 -0
  241. huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
  242. huaweicloudsdkcae/v1/model/update_timer_rule_req.py +158 -0
  243. huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
  244. huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
  245. huaweicloudsdkcae/v1/model/volume.py +289 -0
  246. huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py +256 -0
  247. huaweicloudsdkcae/v1/model/volume_configuration_mount_info.py +173 -0
  248. huaweicloudsdkcae/v1/model/volume_kind_obj.py +87 -0
  249. huaweicloudsdkcae/v1/model/volume_spec.py +199 -0
  250. huaweicloudsdkcae/v1/model/vpc_egress_kind_obj.py +87 -0
  251. huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +161 -0
  252. huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +114 -0
  253. huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +173 -0
  254. huaweicloudsdkcae/v1/region/__init__.py +0 -0
  255. huaweicloudsdkcae/v1/region/cae_region.py +60 -0
  256. huaweicloudsdkcae-3.1.160.dist-info/LICENSE +13 -0
  257. huaweicloudsdkcae-3.1.160.dist-info/METADATA +26 -0
  258. huaweicloudsdkcae-3.1.160.dist-info/RECORD +260 -0
  259. huaweicloudsdkcae-3.1.160.dist-info/WHEEL +5 -0
  260. huaweicloudsdkcae-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,3941 @@
1
+ # coding: utf-8
2
+
3
+ from __future__ import absolute_import
4
+
5
+ import importlib
6
+ import warnings
7
+
8
+ from huaweicloudsdkcore.client import Client, ClientBuilder
9
+ from huaweicloudsdkcore.utils import http_utils
10
+ from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
11
+
12
+ try:
13
+ from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
14
+ except ImportError as e:
15
+ warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkcae'")
16
+
17
+
18
+ class CaeAsyncClient(Client):
19
+ def __init__(self):
20
+ super(CaeAsyncClient, self).__init__()
21
+ self.model_package = importlib.import_module("huaweicloudsdkcae.v1.model")
22
+
23
+ @classmethod
24
+ def new_builder(cls, clazz=None):
25
+ if not clazz:
26
+ client_builder = ClientBuilder(cls)
27
+ else:
28
+ if clazz.__name__ != "CaeAsyncClient":
29
+ raise TypeError("client type error, support client type is CaeAsyncClient")
30
+ client_builder = ClientBuilder(clazz)
31
+
32
+
33
+
34
+ return client_builder
35
+
36
+ def create_agency_async(self, request):
37
+ r"""创建委托
38
+
39
+ 创建委托。
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+
44
+ :param request: Request instance for CreateAgency
45
+ :type request: :class:`huaweicloudsdkcae.v1.CreateAgencyRequest`
46
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateAgencyResponse`
47
+ """
48
+ http_info = self._create_agency_http_info(request)
49
+ return self._call_api(**http_info)
50
+
51
+ def create_agency_async_invoker(self, request):
52
+ http_info = self._create_agency_http_info(request)
53
+ return AsyncInvoker(self, http_info)
54
+
55
+ def _create_agency_http_info(self, request):
56
+ http_info = {
57
+ "method": "POST",
58
+ "resource_path": "/v1/{project_id}/cae/agencies",
59
+ "request_type": request.__class__.__name__,
60
+ "response_type": "CreateAgencyResponse"
61
+ }
62
+
63
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
+
65
+ cname = None
66
+
67
+ collection_formats = {}
68
+
69
+ path_params = {}
70
+
71
+ query_params = []
72
+
73
+ header_params = {}
74
+
75
+ form_params = {}
76
+
77
+ body = None
78
+ if 'body' in local_var_params:
79
+ body = local_var_params['body']
80
+ if isinstance(request, SdkStreamRequest):
81
+ body = request.get_file_stream()
82
+
83
+ response_headers = []
84
+
85
+ header_params['Content-Type'] = http_utils.select_header_content_type(
86
+ ['application/json'])
87
+
88
+ auth_settings = []
89
+
90
+ http_info["cname"] = cname
91
+ http_info["collection_formats"] = collection_formats
92
+ http_info["path_params"] = path_params
93
+ http_info["query_params"] = query_params
94
+ http_info["header_params"] = header_params
95
+ http_info["post_params"] = form_params
96
+ http_info["body"] = body
97
+ http_info["response_headers"] = response_headers
98
+
99
+ return http_info
100
+
101
+ def list_agencies_async(self, request):
102
+ r"""获取委托列表
103
+
104
+ 获取委托列表。
105
+
106
+ Please refer to HUAWEI cloud API Explorer for details.
107
+
108
+
109
+ :param request: Request instance for ListAgencies
110
+ :type request: :class:`huaweicloudsdkcae.v1.ListAgenciesRequest`
111
+ :rtype: :class:`huaweicloudsdkcae.v1.ListAgenciesResponse`
112
+ """
113
+ http_info = self._list_agencies_http_info(request)
114
+ return self._call_api(**http_info)
115
+
116
+ def list_agencies_async_invoker(self, request):
117
+ http_info = self._list_agencies_http_info(request)
118
+ return AsyncInvoker(self, http_info)
119
+
120
+ def _list_agencies_http_info(self, request):
121
+ http_info = {
122
+ "method": "GET",
123
+ "resource_path": "/v1/{project_id}/cae/agencies",
124
+ "request_type": request.__class__.__name__,
125
+ "response_type": "ListAgenciesResponse"
126
+ }
127
+
128
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
129
+
130
+ cname = None
131
+
132
+ collection_formats = {}
133
+
134
+ path_params = {}
135
+
136
+ query_params = []
137
+
138
+ header_params = {}
139
+
140
+ form_params = {}
141
+
142
+ body = None
143
+ if isinstance(request, SdkStreamRequest):
144
+ body = request.get_file_stream()
145
+
146
+ response_headers = []
147
+
148
+ header_params['Content-Type'] = http_utils.select_header_content_type(
149
+ ['application/json'])
150
+
151
+ auth_settings = []
152
+
153
+ http_info["cname"] = cname
154
+ http_info["collection_formats"] = collection_formats
155
+ http_info["path_params"] = path_params
156
+ http_info["query_params"] = query_params
157
+ http_info["header_params"] = header_params
158
+ http_info["post_params"] = form_params
159
+ http_info["body"] = body
160
+ http_info["response_headers"] = response_headers
161
+
162
+ return http_info
163
+
164
+ def create_application_async(self, request):
165
+ r"""创建应用
166
+
167
+ 创建应用。
168
+
169
+ Please refer to HUAWEI cloud API Explorer for details.
170
+
171
+
172
+ :param request: Request instance for CreateApplication
173
+ :type request: :class:`huaweicloudsdkcae.v1.CreateApplicationRequest`
174
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateApplicationResponse`
175
+ """
176
+ http_info = self._create_application_http_info(request)
177
+ return self._call_api(**http_info)
178
+
179
+ def create_application_async_invoker(self, request):
180
+ http_info = self._create_application_http_info(request)
181
+ return AsyncInvoker(self, http_info)
182
+
183
+ def _create_application_http_info(self, request):
184
+ http_info = {
185
+ "method": "POST",
186
+ "resource_path": "/v1/{project_id}/cae/applications",
187
+ "request_type": request.__class__.__name__,
188
+ "response_type": "CreateApplicationResponse"
189
+ }
190
+
191
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
192
+
193
+ cname = None
194
+
195
+ collection_formats = {}
196
+
197
+ path_params = {}
198
+
199
+ query_params = []
200
+
201
+ header_params = {}
202
+ if 'x_enterprise_project_id' in local_var_params:
203
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
204
+ if 'x_environment_id' in local_var_params:
205
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
206
+
207
+ form_params = {}
208
+
209
+ body = None
210
+ if 'body' in local_var_params:
211
+ body = local_var_params['body']
212
+ if isinstance(request, SdkStreamRequest):
213
+ body = request.get_file_stream()
214
+
215
+ response_headers = []
216
+
217
+ header_params['Content-Type'] = http_utils.select_header_content_type(
218
+ ['application/json'])
219
+
220
+ auth_settings = []
221
+
222
+ http_info["cname"] = cname
223
+ http_info["collection_formats"] = collection_formats
224
+ http_info["path_params"] = path_params
225
+ http_info["query_params"] = query_params
226
+ http_info["header_params"] = header_params
227
+ http_info["post_params"] = form_params
228
+ http_info["body"] = body
229
+ http_info["response_headers"] = response_headers
230
+
231
+ return http_info
232
+
233
+ def delete_application_async(self, request):
234
+ r"""删除应用
235
+
236
+ 删除应用。
237
+
238
+ Please refer to HUAWEI cloud API Explorer for details.
239
+
240
+
241
+ :param request: Request instance for DeleteApplication
242
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteApplicationRequest`
243
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteApplicationResponse`
244
+ """
245
+ http_info = self._delete_application_http_info(request)
246
+ return self._call_api(**http_info)
247
+
248
+ def delete_application_async_invoker(self, request):
249
+ http_info = self._delete_application_http_info(request)
250
+ return AsyncInvoker(self, http_info)
251
+
252
+ def _delete_application_http_info(self, request):
253
+ http_info = {
254
+ "method": "DELETE",
255
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}",
256
+ "request_type": request.__class__.__name__,
257
+ "response_type": "DeleteApplicationResponse"
258
+ }
259
+
260
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
261
+
262
+ cname = None
263
+
264
+ collection_formats = {}
265
+
266
+ path_params = {}
267
+ if 'application_id' in local_var_params:
268
+ path_params['application_id'] = local_var_params['application_id']
269
+
270
+ query_params = []
271
+
272
+ header_params = {}
273
+ if 'x_enterprise_project_id' in local_var_params:
274
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
275
+ if 'x_environment_id' in local_var_params:
276
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
277
+
278
+ form_params = {}
279
+
280
+ body = None
281
+ if isinstance(request, SdkStreamRequest):
282
+ body = request.get_file_stream()
283
+
284
+ response_headers = []
285
+
286
+ header_params['Content-Type'] = http_utils.select_header_content_type(
287
+ ['application/json'])
288
+
289
+ auth_settings = []
290
+
291
+ http_info["cname"] = cname
292
+ http_info["collection_formats"] = collection_formats
293
+ http_info["path_params"] = path_params
294
+ http_info["query_params"] = query_params
295
+ http_info["header_params"] = header_params
296
+ http_info["post_params"] = form_params
297
+ http_info["body"] = body
298
+ http_info["response_headers"] = response_headers
299
+
300
+ return http_info
301
+
302
+ def list_applications_async(self, request):
303
+ r"""获取应用列表
304
+
305
+ 获取应用列表。
306
+
307
+ Please refer to HUAWEI cloud API Explorer for details.
308
+
309
+
310
+ :param request: Request instance for ListApplications
311
+ :type request: :class:`huaweicloudsdkcae.v1.ListApplicationsRequest`
312
+ :rtype: :class:`huaweicloudsdkcae.v1.ListApplicationsResponse`
313
+ """
314
+ http_info = self._list_applications_http_info(request)
315
+ return self._call_api(**http_info)
316
+
317
+ def list_applications_async_invoker(self, request):
318
+ http_info = self._list_applications_http_info(request)
319
+ return AsyncInvoker(self, http_info)
320
+
321
+ def _list_applications_http_info(self, request):
322
+ http_info = {
323
+ "method": "GET",
324
+ "resource_path": "/v1/{project_id}/cae/applications",
325
+ "request_type": request.__class__.__name__,
326
+ "response_type": "ListApplicationsResponse"
327
+ }
328
+
329
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
330
+
331
+ cname = None
332
+
333
+ collection_formats = {}
334
+
335
+ path_params = {}
336
+
337
+ query_params = []
338
+
339
+ header_params = {}
340
+ if 'x_enterprise_project_id' in local_var_params:
341
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
342
+ if 'x_environment_id' in local_var_params:
343
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
344
+
345
+ form_params = {}
346
+
347
+ body = None
348
+ if isinstance(request, SdkStreamRequest):
349
+ body = request.get_file_stream()
350
+
351
+ response_headers = []
352
+
353
+ header_params['Content-Type'] = http_utils.select_header_content_type(
354
+ ['application/json'])
355
+
356
+ auth_settings = []
357
+
358
+ http_info["cname"] = cname
359
+ http_info["collection_formats"] = collection_formats
360
+ http_info["path_params"] = path_params
361
+ http_info["query_params"] = query_params
362
+ http_info["header_params"] = header_params
363
+ http_info["post_params"] = form_params
364
+ http_info["body"] = body
365
+ http_info["response_headers"] = response_headers
366
+
367
+ return http_info
368
+
369
+ def show_application_async(self, request):
370
+ r"""获取应用详情
371
+
372
+ 获取应用详情。
373
+
374
+ Please refer to HUAWEI cloud API Explorer for details.
375
+
376
+
377
+ :param request: Request instance for ShowApplication
378
+ :type request: :class:`huaweicloudsdkcae.v1.ShowApplicationRequest`
379
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowApplicationResponse`
380
+ """
381
+ http_info = self._show_application_http_info(request)
382
+ return self._call_api(**http_info)
383
+
384
+ def show_application_async_invoker(self, request):
385
+ http_info = self._show_application_http_info(request)
386
+ return AsyncInvoker(self, http_info)
387
+
388
+ def _show_application_http_info(self, request):
389
+ http_info = {
390
+ "method": "GET",
391
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}",
392
+ "request_type": request.__class__.__name__,
393
+ "response_type": "ShowApplicationResponse"
394
+ }
395
+
396
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
397
+
398
+ cname = None
399
+
400
+ collection_formats = {}
401
+
402
+ path_params = {}
403
+ if 'application_id' in local_var_params:
404
+ path_params['application_id'] = local_var_params['application_id']
405
+
406
+ query_params = []
407
+
408
+ header_params = {}
409
+ if 'x_enterprise_project_id' in local_var_params:
410
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
411
+ if 'x_environment_id' in local_var_params:
412
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
413
+
414
+ form_params = {}
415
+
416
+ body = None
417
+ if isinstance(request, SdkStreamRequest):
418
+ body = request.get_file_stream()
419
+
420
+ response_headers = []
421
+
422
+ header_params['Content-Type'] = http_utils.select_header_content_type(
423
+ ['application/json'])
424
+
425
+ auth_settings = []
426
+
427
+ http_info["cname"] = cname
428
+ http_info["collection_formats"] = collection_formats
429
+ http_info["path_params"] = path_params
430
+ http_info["query_params"] = query_params
431
+ http_info["header_params"] = header_params
432
+ http_info["post_params"] = form_params
433
+ http_info["body"] = body
434
+ http_info["response_headers"] = response_headers
435
+
436
+ return http_info
437
+
438
+ def create_certificate_async(self, request):
439
+ r"""创建证书
440
+
441
+ 创建证书。
442
+
443
+ Please refer to HUAWEI cloud API Explorer for details.
444
+
445
+
446
+ :param request: Request instance for CreateCertificate
447
+ :type request: :class:`huaweicloudsdkcae.v1.CreateCertificateRequest`
448
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateCertificateResponse`
449
+ """
450
+ http_info = self._create_certificate_http_info(request)
451
+ return self._call_api(**http_info)
452
+
453
+ def create_certificate_async_invoker(self, request):
454
+ http_info = self._create_certificate_http_info(request)
455
+ return AsyncInvoker(self, http_info)
456
+
457
+ def _create_certificate_http_info(self, request):
458
+ http_info = {
459
+ "method": "POST",
460
+ "resource_path": "/v1/{project_id}/cae/certificates",
461
+ "request_type": request.__class__.__name__,
462
+ "response_type": "CreateCertificateResponse"
463
+ }
464
+
465
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
466
+
467
+ cname = None
468
+
469
+ collection_formats = {}
470
+
471
+ path_params = {}
472
+
473
+ query_params = []
474
+
475
+ header_params = {}
476
+ if 'x_enterprise_project_id' in local_var_params:
477
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
478
+ if 'x_environment_id' in local_var_params:
479
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
480
+
481
+ form_params = {}
482
+
483
+ body = None
484
+ if 'body' in local_var_params:
485
+ body = local_var_params['body']
486
+ if isinstance(request, SdkStreamRequest):
487
+ body = request.get_file_stream()
488
+
489
+ response_headers = []
490
+
491
+ header_params['Content-Type'] = http_utils.select_header_content_type(
492
+ ['application/json'])
493
+
494
+ auth_settings = []
495
+
496
+ http_info["cname"] = cname
497
+ http_info["collection_formats"] = collection_formats
498
+ http_info["path_params"] = path_params
499
+ http_info["query_params"] = query_params
500
+ http_info["header_params"] = header_params
501
+ http_info["post_params"] = form_params
502
+ http_info["body"] = body
503
+ http_info["response_headers"] = response_headers
504
+
505
+ return http_info
506
+
507
+ def delete_certificate_async(self, request):
508
+ r"""删除证书
509
+
510
+ 删除证书。
511
+
512
+ Please refer to HUAWEI cloud API Explorer for details.
513
+
514
+
515
+ :param request: Request instance for DeleteCertificate
516
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteCertificateRequest`
517
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteCertificateResponse`
518
+ """
519
+ http_info = self._delete_certificate_http_info(request)
520
+ return self._call_api(**http_info)
521
+
522
+ def delete_certificate_async_invoker(self, request):
523
+ http_info = self._delete_certificate_http_info(request)
524
+ return AsyncInvoker(self, http_info)
525
+
526
+ def _delete_certificate_http_info(self, request):
527
+ http_info = {
528
+ "method": "DELETE",
529
+ "resource_path": "/v1/{project_id}/cae/certificates/{certificate_id}",
530
+ "request_type": request.__class__.__name__,
531
+ "response_type": "DeleteCertificateResponse"
532
+ }
533
+
534
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
535
+
536
+ cname = None
537
+
538
+ collection_formats = {}
539
+
540
+ path_params = {}
541
+ if 'certificate_id' in local_var_params:
542
+ path_params['certificate_id'] = local_var_params['certificate_id']
543
+
544
+ query_params = []
545
+
546
+ header_params = {}
547
+ if 'x_enterprise_project_id' in local_var_params:
548
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
549
+ if 'x_environment_id' in local_var_params:
550
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
551
+
552
+ form_params = {}
553
+
554
+ body = None
555
+ if isinstance(request, SdkStreamRequest):
556
+ body = request.get_file_stream()
557
+
558
+ response_headers = []
559
+
560
+ header_params['Content-Type'] = http_utils.select_header_content_type(
561
+ ['application/json'])
562
+
563
+ auth_settings = []
564
+
565
+ http_info["cname"] = cname
566
+ http_info["collection_formats"] = collection_formats
567
+ http_info["path_params"] = path_params
568
+ http_info["query_params"] = query_params
569
+ http_info["header_params"] = header_params
570
+ http_info["post_params"] = form_params
571
+ http_info["body"] = body
572
+ http_info["response_headers"] = response_headers
573
+
574
+ return http_info
575
+
576
+ def list_certificates_async(self, request):
577
+ r"""获取证书列表
578
+
579
+ 获取证书列表。
580
+
581
+ Please refer to HUAWEI cloud API Explorer for details.
582
+
583
+
584
+ :param request: Request instance for ListCertificates
585
+ :type request: :class:`huaweicloudsdkcae.v1.ListCertificatesRequest`
586
+ :rtype: :class:`huaweicloudsdkcae.v1.ListCertificatesResponse`
587
+ """
588
+ http_info = self._list_certificates_http_info(request)
589
+ return self._call_api(**http_info)
590
+
591
+ def list_certificates_async_invoker(self, request):
592
+ http_info = self._list_certificates_http_info(request)
593
+ return AsyncInvoker(self, http_info)
594
+
595
+ def _list_certificates_http_info(self, request):
596
+ http_info = {
597
+ "method": "GET",
598
+ "resource_path": "/v1/{project_id}/cae/certificates",
599
+ "request_type": request.__class__.__name__,
600
+ "response_type": "ListCertificatesResponse"
601
+ }
602
+
603
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
604
+
605
+ cname = None
606
+
607
+ collection_formats = {}
608
+
609
+ path_params = {}
610
+
611
+ query_params = []
612
+
613
+ header_params = {}
614
+ if 'x_enterprise_project_id' in local_var_params:
615
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
616
+ if 'x_environment_id' in local_var_params:
617
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
618
+
619
+ form_params = {}
620
+
621
+ body = None
622
+ if isinstance(request, SdkStreamRequest):
623
+ body = request.get_file_stream()
624
+
625
+ response_headers = []
626
+
627
+ header_params['Content-Type'] = http_utils.select_header_content_type(
628
+ ['application/json'])
629
+
630
+ auth_settings = []
631
+
632
+ http_info["cname"] = cname
633
+ http_info["collection_formats"] = collection_formats
634
+ http_info["path_params"] = path_params
635
+ http_info["query_params"] = query_params
636
+ http_info["header_params"] = header_params
637
+ http_info["post_params"] = form_params
638
+ http_info["body"] = body
639
+ http_info["response_headers"] = response_headers
640
+
641
+ return http_info
642
+
643
+ def update_certificate_async(self, request):
644
+ r"""修改证书
645
+
646
+ 修改证书。
647
+
648
+ Please refer to HUAWEI cloud API Explorer for details.
649
+
650
+
651
+ :param request: Request instance for UpdateCertificate
652
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateCertificateRequest`
653
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateCertificateResponse`
654
+ """
655
+ http_info = self._update_certificate_http_info(request)
656
+ return self._call_api(**http_info)
657
+
658
+ def update_certificate_async_invoker(self, request):
659
+ http_info = self._update_certificate_http_info(request)
660
+ return AsyncInvoker(self, http_info)
661
+
662
+ def _update_certificate_http_info(self, request):
663
+ http_info = {
664
+ "method": "PUT",
665
+ "resource_path": "/v1/{project_id}/cae/certificates/{certificate_id}",
666
+ "request_type": request.__class__.__name__,
667
+ "response_type": "UpdateCertificateResponse"
668
+ }
669
+
670
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
671
+
672
+ cname = None
673
+
674
+ collection_formats = {}
675
+
676
+ path_params = {}
677
+ if 'certificate_id' in local_var_params:
678
+ path_params['certificate_id'] = local_var_params['certificate_id']
679
+
680
+ query_params = []
681
+
682
+ header_params = {}
683
+ if 'x_enterprise_project_id' in local_var_params:
684
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
685
+ if 'x_environment_id' in local_var_params:
686
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
687
+
688
+ form_params = {}
689
+
690
+ body = None
691
+ if 'body' in local_var_params:
692
+ body = local_var_params['body']
693
+ if isinstance(request, SdkStreamRequest):
694
+ body = request.get_file_stream()
695
+
696
+ response_headers = []
697
+
698
+ header_params['Content-Type'] = http_utils.select_header_content_type(
699
+ ['application/json'])
700
+
701
+ auth_settings = []
702
+
703
+ http_info["cname"] = cname
704
+ http_info["collection_formats"] = collection_formats
705
+ http_info["path_params"] = path_params
706
+ http_info["query_params"] = query_params
707
+ http_info["header_params"] = header_params
708
+ http_info["post_params"] = form_params
709
+ http_info["body"] = body
710
+ http_info["response_headers"] = response_headers
711
+
712
+ return http_info
713
+
714
+ def create_component_async(self, request):
715
+ r"""创建组件
716
+
717
+ 创建组件。
718
+
719
+ Please refer to HUAWEI cloud API Explorer for details.
720
+
721
+
722
+ :param request: Request instance for CreateComponent
723
+ :type request: :class:`huaweicloudsdkcae.v1.CreateComponentRequest`
724
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentResponse`
725
+ """
726
+ http_info = self._create_component_http_info(request)
727
+ return self._call_api(**http_info)
728
+
729
+ def create_component_async_invoker(self, request):
730
+ http_info = self._create_component_http_info(request)
731
+ return AsyncInvoker(self, http_info)
732
+
733
+ def _create_component_http_info(self, request):
734
+ http_info = {
735
+ "method": "POST",
736
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components",
737
+ "request_type": request.__class__.__name__,
738
+ "response_type": "CreateComponentResponse"
739
+ }
740
+
741
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
742
+
743
+ cname = None
744
+
745
+ collection_formats = {}
746
+
747
+ path_params = {}
748
+ if 'application_id' in local_var_params:
749
+ path_params['application_id'] = local_var_params['application_id']
750
+
751
+ query_params = []
752
+
753
+ header_params = {}
754
+ if 'x_enterprise_project_id' in local_var_params:
755
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
756
+ if 'x_environment_id' in local_var_params:
757
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
758
+
759
+ form_params = {}
760
+
761
+ body = None
762
+ if 'body' in local_var_params:
763
+ body = local_var_params['body']
764
+ if isinstance(request, SdkStreamRequest):
765
+ body = request.get_file_stream()
766
+
767
+ response_headers = []
768
+
769
+ header_params['Content-Type'] = http_utils.select_header_content_type(
770
+ ['application/json'])
771
+
772
+ auth_settings = []
773
+
774
+ http_info["cname"] = cname
775
+ http_info["collection_formats"] = collection_formats
776
+ http_info["path_params"] = path_params
777
+ http_info["query_params"] = query_params
778
+ http_info["header_params"] = header_params
779
+ http_info["post_params"] = form_params
780
+ http_info["body"] = body
781
+ http_info["response_headers"] = response_headers
782
+
783
+ return http_info
784
+
785
+ def create_component_with_configuration_async(self, request):
786
+ r"""创建、生效配置并部署组件
787
+
788
+ 创建、生效配置并部署组件。
789
+
790
+ Please refer to HUAWEI cloud API Explorer for details.
791
+
792
+
793
+ :param request: Request instance for CreateComponentWithConfiguration
794
+ :type request: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequest`
795
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationResponse`
796
+ """
797
+ http_info = self._create_component_with_configuration_http_info(request)
798
+ return self._call_api(**http_info)
799
+
800
+ def create_component_with_configuration_async_invoker(self, request):
801
+ http_info = self._create_component_with_configuration_http_info(request)
802
+ return AsyncInvoker(self, http_info)
803
+
804
+ def _create_component_with_configuration_http_info(self, request):
805
+ http_info = {
806
+ "method": "POST",
807
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/component-with-configurations",
808
+ "request_type": request.__class__.__name__,
809
+ "response_type": "CreateComponentWithConfigurationResponse"
810
+ }
811
+
812
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
813
+
814
+ cname = None
815
+
816
+ collection_formats = {}
817
+
818
+ path_params = {}
819
+ if 'application_id' in local_var_params:
820
+ path_params['application_id'] = local_var_params['application_id']
821
+
822
+ query_params = []
823
+
824
+ header_params = {}
825
+ if 'x_enterprise_project_id' in local_var_params:
826
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
827
+ if 'x_environment_id' in local_var_params:
828
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
829
+
830
+ form_params = {}
831
+
832
+ body = None
833
+ if 'body' in local_var_params:
834
+ body = local_var_params['body']
835
+ if isinstance(request, SdkStreamRequest):
836
+ body = request.get_file_stream()
837
+
838
+ response_headers = []
839
+
840
+ header_params['Content-Type'] = http_utils.select_header_content_type(
841
+ ['application/json'])
842
+
843
+ auth_settings = []
844
+
845
+ http_info["cname"] = cname
846
+ http_info["collection_formats"] = collection_formats
847
+ http_info["path_params"] = path_params
848
+ http_info["query_params"] = query_params
849
+ http_info["header_params"] = header_params
850
+ http_info["post_params"] = form_params
851
+ http_info["body"] = body
852
+ http_info["response_headers"] = response_headers
853
+
854
+ return http_info
855
+
856
+ def delete_component_async(self, request):
857
+ r"""删除组件
858
+
859
+ 删除组件。
860
+
861
+ Please refer to HUAWEI cloud API Explorer for details.
862
+
863
+
864
+ :param request: Request instance for DeleteComponent
865
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteComponentRequest`
866
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentResponse`
867
+ """
868
+ http_info = self._delete_component_http_info(request)
869
+ return self._call_api(**http_info)
870
+
871
+ def delete_component_async_invoker(self, request):
872
+ http_info = self._delete_component_http_info(request)
873
+ return AsyncInvoker(self, http_info)
874
+
875
+ def _delete_component_http_info(self, request):
876
+ http_info = {
877
+ "method": "DELETE",
878
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}",
879
+ "request_type": request.__class__.__name__,
880
+ "response_type": "DeleteComponentResponse"
881
+ }
882
+
883
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
884
+
885
+ cname = None
886
+
887
+ collection_formats = {}
888
+
889
+ path_params = {}
890
+ if 'application_id' in local_var_params:
891
+ path_params['application_id'] = local_var_params['application_id']
892
+ if 'component_id' in local_var_params:
893
+ path_params['component_id'] = local_var_params['component_id']
894
+
895
+ query_params = []
896
+
897
+ header_params = {}
898
+ if 'x_enterprise_project_id' in local_var_params:
899
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
900
+ if 'x_environment_id' in local_var_params:
901
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
902
+
903
+ form_params = {}
904
+
905
+ body = None
906
+ if isinstance(request, SdkStreamRequest):
907
+ body = request.get_file_stream()
908
+
909
+ response_headers = []
910
+
911
+ header_params['Content-Type'] = http_utils.select_header_content_type(
912
+ ['application/json'])
913
+
914
+ auth_settings = []
915
+
916
+ http_info["cname"] = cname
917
+ http_info["collection_formats"] = collection_formats
918
+ http_info["path_params"] = path_params
919
+ http_info["query_params"] = query_params
920
+ http_info["header_params"] = header_params
921
+ http_info["post_params"] = form_params
922
+ http_info["body"] = body
923
+ http_info["response_headers"] = response_headers
924
+
925
+ return http_info
926
+
927
+ def execute_action_async(self, request):
928
+ r"""操作组件
929
+
930
+ 对组件执行指定操作,如部署、升级、重启、停止、启动、伸缩、配置、回滚。
931
+
932
+ Please refer to HUAWEI cloud API Explorer for details.
933
+
934
+
935
+ :param request: Request instance for ExecuteAction
936
+ :type request: :class:`huaweicloudsdkcae.v1.ExecuteActionRequest`
937
+ :rtype: :class:`huaweicloudsdkcae.v1.ExecuteActionResponse`
938
+ """
939
+ http_info = self._execute_action_http_info(request)
940
+ return self._call_api(**http_info)
941
+
942
+ def execute_action_async_invoker(self, request):
943
+ http_info = self._execute_action_http_info(request)
944
+ return AsyncInvoker(self, http_info)
945
+
946
+ def _execute_action_http_info(self, request):
947
+ http_info = {
948
+ "method": "POST",
949
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/action",
950
+ "request_type": request.__class__.__name__,
951
+ "response_type": "ExecuteActionResponse"
952
+ }
953
+
954
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
955
+
956
+ cname = None
957
+
958
+ collection_formats = {}
959
+
960
+ path_params = {}
961
+ if 'application_id' in local_var_params:
962
+ path_params['application_id'] = local_var_params['application_id']
963
+ if 'component_id' in local_var_params:
964
+ path_params['component_id'] = local_var_params['component_id']
965
+
966
+ query_params = []
967
+
968
+ header_params = {}
969
+ if 'x_enterprise_project_id' in local_var_params:
970
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
971
+ if 'x_environment_id' in local_var_params:
972
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
973
+
974
+ form_params = {}
975
+
976
+ body = None
977
+ if 'body' in local_var_params:
978
+ body = local_var_params['body']
979
+ if isinstance(request, SdkStreamRequest):
980
+ body = request.get_file_stream()
981
+
982
+ response_headers = []
983
+
984
+ header_params['Content-Type'] = http_utils.select_header_content_type(
985
+ ['application/json'])
986
+
987
+ auth_settings = []
988
+
989
+ http_info["cname"] = cname
990
+ http_info["collection_formats"] = collection_formats
991
+ http_info["path_params"] = path_params
992
+ http_info["query_params"] = query_params
993
+ http_info["header_params"] = header_params
994
+ http_info["post_params"] = form_params
995
+ http_info["body"] = body
996
+ http_info["response_headers"] = response_headers
997
+
998
+ return http_info
999
+
1000
+ def list_component_instances_async(self, request):
1001
+ r"""获取组件实例列表
1002
+
1003
+ 获取组件实例列表。
1004
+
1005
+ Please refer to HUAWEI cloud API Explorer for details.
1006
+
1007
+
1008
+ :param request: Request instance for ListComponentInstances
1009
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentInstancesRequest`
1010
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentInstancesResponse`
1011
+ """
1012
+ http_info = self._list_component_instances_http_info(request)
1013
+ return self._call_api(**http_info)
1014
+
1015
+ def list_component_instances_async_invoker(self, request):
1016
+ http_info = self._list_component_instances_http_info(request)
1017
+ return AsyncInvoker(self, http_info)
1018
+
1019
+ def _list_component_instances_http_info(self, request):
1020
+ http_info = {
1021
+ "method": "GET",
1022
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/instances",
1023
+ "request_type": request.__class__.__name__,
1024
+ "response_type": "ListComponentInstancesResponse"
1025
+ }
1026
+
1027
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1028
+
1029
+ cname = None
1030
+
1031
+ collection_formats = {}
1032
+
1033
+ path_params = {}
1034
+ if 'application_id' in local_var_params:
1035
+ path_params['application_id'] = local_var_params['application_id']
1036
+ if 'component_id' in local_var_params:
1037
+ path_params['component_id'] = local_var_params['component_id']
1038
+
1039
+ query_params = []
1040
+
1041
+ header_params = {}
1042
+ if 'x_enterprise_project_id' in local_var_params:
1043
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1044
+ if 'x_environment_id' in local_var_params:
1045
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1046
+
1047
+ form_params = {}
1048
+
1049
+ body = None
1050
+ if isinstance(request, SdkStreamRequest):
1051
+ body = request.get_file_stream()
1052
+
1053
+ response_headers = []
1054
+
1055
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1056
+ ['application/json'])
1057
+
1058
+ auth_settings = []
1059
+
1060
+ http_info["cname"] = cname
1061
+ http_info["collection_formats"] = collection_formats
1062
+ http_info["path_params"] = path_params
1063
+ http_info["query_params"] = query_params
1064
+ http_info["header_params"] = header_params
1065
+ http_info["post_params"] = form_params
1066
+ http_info["body"] = body
1067
+ http_info["response_headers"] = response_headers
1068
+
1069
+ return http_info
1070
+
1071
+ def list_component_snapshots_async(self, request):
1072
+ r"""获取组件快照列表
1073
+
1074
+ 获取组件快照列表。
1075
+
1076
+ Please refer to HUAWEI cloud API Explorer for details.
1077
+
1078
+
1079
+ :param request: Request instance for ListComponentSnapshots
1080
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentSnapshotsRequest`
1081
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentSnapshotsResponse`
1082
+ """
1083
+ http_info = self._list_component_snapshots_http_info(request)
1084
+ return self._call_api(**http_info)
1085
+
1086
+ def list_component_snapshots_async_invoker(self, request):
1087
+ http_info = self._list_component_snapshots_http_info(request)
1088
+ return AsyncInvoker(self, http_info)
1089
+
1090
+ def _list_component_snapshots_http_info(self, request):
1091
+ http_info = {
1092
+ "method": "GET",
1093
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/snapshots",
1094
+ "request_type": request.__class__.__name__,
1095
+ "response_type": "ListComponentSnapshotsResponse"
1096
+ }
1097
+
1098
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1099
+
1100
+ cname = None
1101
+
1102
+ collection_formats = {}
1103
+
1104
+ path_params = {}
1105
+ if 'application_id' in local_var_params:
1106
+ path_params['application_id'] = local_var_params['application_id']
1107
+ if 'component_id' in local_var_params:
1108
+ path_params['component_id'] = local_var_params['component_id']
1109
+
1110
+ query_params = []
1111
+
1112
+ header_params = {}
1113
+ if 'x_enterprise_project_id' in local_var_params:
1114
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1115
+ if 'x_environment_id' in local_var_params:
1116
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1117
+
1118
+ form_params = {}
1119
+
1120
+ body = None
1121
+ if isinstance(request, SdkStreamRequest):
1122
+ body = request.get_file_stream()
1123
+
1124
+ response_headers = []
1125
+
1126
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1127
+ ['application/json'])
1128
+
1129
+ auth_settings = []
1130
+
1131
+ http_info["cname"] = cname
1132
+ http_info["collection_formats"] = collection_formats
1133
+ http_info["path_params"] = path_params
1134
+ http_info["query_params"] = query_params
1135
+ http_info["header_params"] = header_params
1136
+ http_info["post_params"] = form_params
1137
+ http_info["body"] = body
1138
+ http_info["response_headers"] = response_headers
1139
+
1140
+ return http_info
1141
+
1142
+ def list_components_async(self, request):
1143
+ r"""获取组件列表
1144
+
1145
+ 获取组件列表。
1146
+
1147
+ Please refer to HUAWEI cloud API Explorer for details.
1148
+
1149
+
1150
+ :param request: Request instance for ListComponents
1151
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentsRequest`
1152
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentsResponse`
1153
+ """
1154
+ http_info = self._list_components_http_info(request)
1155
+ return self._call_api(**http_info)
1156
+
1157
+ def list_components_async_invoker(self, request):
1158
+ http_info = self._list_components_http_info(request)
1159
+ return AsyncInvoker(self, http_info)
1160
+
1161
+ def _list_components_http_info(self, request):
1162
+ http_info = {
1163
+ "method": "GET",
1164
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components",
1165
+ "request_type": request.__class__.__name__,
1166
+ "response_type": "ListComponentsResponse"
1167
+ }
1168
+
1169
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1170
+
1171
+ cname = None
1172
+
1173
+ collection_formats = {}
1174
+
1175
+ path_params = {}
1176
+ if 'application_id' in local_var_params:
1177
+ path_params['application_id'] = local_var_params['application_id']
1178
+
1179
+ query_params = []
1180
+ if 'limit' in local_var_params:
1181
+ query_params.append(('limit', local_var_params['limit']))
1182
+ if 'offset' in local_var_params:
1183
+ query_params.append(('offset', local_var_params['offset']))
1184
+ if 'sort_key' in local_var_params:
1185
+ query_params.append(('sort_key', local_var_params['sort_key']))
1186
+ if 'sort' in local_var_params:
1187
+ query_params.append(('sort', local_var_params['sort']))
1188
+
1189
+ header_params = {}
1190
+ if 'x_enterprise_project_id' in local_var_params:
1191
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1192
+ if 'x_environment_id' in local_var_params:
1193
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1194
+
1195
+ form_params = {}
1196
+
1197
+ body = None
1198
+ if isinstance(request, SdkStreamRequest):
1199
+ body = request.get_file_stream()
1200
+
1201
+ response_headers = []
1202
+
1203
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1204
+ ['application/json'])
1205
+
1206
+ auth_settings = []
1207
+
1208
+ http_info["cname"] = cname
1209
+ http_info["collection_formats"] = collection_formats
1210
+ http_info["path_params"] = path_params
1211
+ http_info["query_params"] = query_params
1212
+ http_info["header_params"] = header_params
1213
+ http_info["post_params"] = form_params
1214
+ http_info["body"] = body
1215
+ http_info["response_headers"] = response_headers
1216
+
1217
+ return http_info
1218
+
1219
+ def show_component_async(self, request):
1220
+ r"""获取组件详情
1221
+
1222
+ 获取组件详情。
1223
+
1224
+ Please refer to HUAWEI cloud API Explorer for details.
1225
+
1226
+
1227
+ :param request: Request instance for ShowComponent
1228
+ :type request: :class:`huaweicloudsdkcae.v1.ShowComponentRequest`
1229
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowComponentResponse`
1230
+ """
1231
+ http_info = self._show_component_http_info(request)
1232
+ return self._call_api(**http_info)
1233
+
1234
+ def show_component_async_invoker(self, request):
1235
+ http_info = self._show_component_http_info(request)
1236
+ return AsyncInvoker(self, http_info)
1237
+
1238
+ def _show_component_http_info(self, request):
1239
+ http_info = {
1240
+ "method": "GET",
1241
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}",
1242
+ "request_type": request.__class__.__name__,
1243
+ "response_type": "ShowComponentResponse"
1244
+ }
1245
+
1246
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1247
+
1248
+ cname = None
1249
+
1250
+ collection_formats = {}
1251
+
1252
+ path_params = {}
1253
+ if 'application_id' in local_var_params:
1254
+ path_params['application_id'] = local_var_params['application_id']
1255
+ if 'component_id' in local_var_params:
1256
+ path_params['component_id'] = local_var_params['component_id']
1257
+
1258
+ query_params = []
1259
+
1260
+ header_params = {}
1261
+ if 'x_enterprise_project_id' in local_var_params:
1262
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1263
+ if 'x_environment_id' in local_var_params:
1264
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1265
+
1266
+ form_params = {}
1267
+
1268
+ body = None
1269
+ if isinstance(request, SdkStreamRequest):
1270
+ body = request.get_file_stream()
1271
+
1272
+ response_headers = []
1273
+
1274
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1275
+ ['application/json'])
1276
+
1277
+ auth_settings = []
1278
+
1279
+ http_info["cname"] = cname
1280
+ http_info["collection_formats"] = collection_formats
1281
+ http_info["path_params"] = path_params
1282
+ http_info["query_params"] = query_params
1283
+ http_info["header_params"] = header_params
1284
+ http_info["post_params"] = form_params
1285
+ http_info["body"] = body
1286
+ http_info["response_headers"] = response_headers
1287
+
1288
+ return http_info
1289
+
1290
+ def update_component_async(self, request):
1291
+ r"""更新组件
1292
+
1293
+ 更新组件。
1294
+
1295
+ Please refer to HUAWEI cloud API Explorer for details.
1296
+
1297
+
1298
+ :param request: Request instance for UpdateComponent
1299
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateComponentRequest`
1300
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateComponentResponse`
1301
+ """
1302
+ http_info = self._update_component_http_info(request)
1303
+ return self._call_api(**http_info)
1304
+
1305
+ def update_component_async_invoker(self, request):
1306
+ http_info = self._update_component_http_info(request)
1307
+ return AsyncInvoker(self, http_info)
1308
+
1309
+ def _update_component_http_info(self, request):
1310
+ http_info = {
1311
+ "method": "PUT",
1312
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}",
1313
+ "request_type": request.__class__.__name__,
1314
+ "response_type": "UpdateComponentResponse"
1315
+ }
1316
+
1317
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1318
+
1319
+ cname = None
1320
+
1321
+ collection_formats = {}
1322
+
1323
+ path_params = {}
1324
+ if 'application_id' in local_var_params:
1325
+ path_params['application_id'] = local_var_params['application_id']
1326
+ if 'component_id' in local_var_params:
1327
+ path_params['component_id'] = local_var_params['component_id']
1328
+
1329
+ query_params = []
1330
+
1331
+ header_params = {}
1332
+ if 'x_enterprise_project_id' in local_var_params:
1333
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1334
+ if 'x_environment_id' in local_var_params:
1335
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1336
+
1337
+ form_params = {}
1338
+
1339
+ body = None
1340
+ if 'body' in local_var_params:
1341
+ body = local_var_params['body']
1342
+ if isinstance(request, SdkStreamRequest):
1343
+ body = request.get_file_stream()
1344
+
1345
+ response_headers = []
1346
+
1347
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1348
+ ['application/json'])
1349
+
1350
+ auth_settings = []
1351
+
1352
+ http_info["cname"] = cname
1353
+ http_info["collection_formats"] = collection_formats
1354
+ http_info["path_params"] = path_params
1355
+ http_info["query_params"] = query_params
1356
+ http_info["header_params"] = header_params
1357
+ http_info["post_params"] = form_params
1358
+ http_info["body"] = body
1359
+ http_info["response_headers"] = response_headers
1360
+
1361
+ return http_info
1362
+
1363
+ def create_component_configuration_async(self, request):
1364
+ r"""创建组件配置
1365
+
1366
+ 创建组件配置。
1367
+
1368
+ Please refer to HUAWEI cloud API Explorer for details.
1369
+
1370
+
1371
+ :param request: Request instance for CreateComponentConfiguration
1372
+ :type request: :class:`huaweicloudsdkcae.v1.CreateComponentConfigurationRequest`
1373
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentConfigurationResponse`
1374
+ """
1375
+ http_info = self._create_component_configuration_http_info(request)
1376
+ return self._call_api(**http_info)
1377
+
1378
+ def create_component_configuration_async_invoker(self, request):
1379
+ http_info = self._create_component_configuration_http_info(request)
1380
+ return AsyncInvoker(self, http_info)
1381
+
1382
+ def _create_component_configuration_http_info(self, request):
1383
+ http_info = {
1384
+ "method": "POST",
1385
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations",
1386
+ "request_type": request.__class__.__name__,
1387
+ "response_type": "CreateComponentConfigurationResponse"
1388
+ }
1389
+
1390
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1391
+
1392
+ cname = None
1393
+
1394
+ collection_formats = {}
1395
+
1396
+ path_params = {}
1397
+ if 'application_id' in local_var_params:
1398
+ path_params['application_id'] = local_var_params['application_id']
1399
+ if 'component_id' in local_var_params:
1400
+ path_params['component_id'] = local_var_params['component_id']
1401
+
1402
+ query_params = []
1403
+
1404
+ header_params = {}
1405
+ if 'x_enterprise_project_id' in local_var_params:
1406
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1407
+ if 'x_environment_id' in local_var_params:
1408
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1409
+
1410
+ form_params = {}
1411
+
1412
+ body = None
1413
+ if 'body' in local_var_params:
1414
+ body = local_var_params['body']
1415
+ if isinstance(request, SdkStreamRequest):
1416
+ body = request.get_file_stream()
1417
+
1418
+ response_headers = []
1419
+
1420
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1421
+ ['application/json'])
1422
+
1423
+ auth_settings = []
1424
+
1425
+ http_info["cname"] = cname
1426
+ http_info["collection_formats"] = collection_formats
1427
+ http_info["path_params"] = path_params
1428
+ http_info["query_params"] = query_params
1429
+ http_info["header_params"] = header_params
1430
+ http_info["post_params"] = form_params
1431
+ http_info["body"] = body
1432
+ http_info["response_headers"] = response_headers
1433
+
1434
+ return http_info
1435
+
1436
+ def delete_component_configuration_async(self, request):
1437
+ r"""删除组件配置
1438
+
1439
+ 删除组件配置。
1440
+
1441
+ Please refer to HUAWEI cloud API Explorer for details.
1442
+
1443
+
1444
+ :param request: Request instance for DeleteComponentConfiguration
1445
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteComponentConfigurationRequest`
1446
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteComponentConfigurationResponse`
1447
+ """
1448
+ http_info = self._delete_component_configuration_http_info(request)
1449
+ return self._call_api(**http_info)
1450
+
1451
+ def delete_component_configuration_async_invoker(self, request):
1452
+ http_info = self._delete_component_configuration_http_info(request)
1453
+ return AsyncInvoker(self, http_info)
1454
+
1455
+ def _delete_component_configuration_http_info(self, request):
1456
+ http_info = {
1457
+ "method": "DELETE",
1458
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations",
1459
+ "request_type": request.__class__.__name__,
1460
+ "response_type": "DeleteComponentConfigurationResponse"
1461
+ }
1462
+
1463
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1464
+
1465
+ cname = None
1466
+
1467
+ collection_formats = {}
1468
+
1469
+ path_params = {}
1470
+ if 'application_id' in local_var_params:
1471
+ path_params['application_id'] = local_var_params['application_id']
1472
+ if 'component_id' in local_var_params:
1473
+ path_params['component_id'] = local_var_params['component_id']
1474
+
1475
+ query_params = []
1476
+
1477
+ header_params = {}
1478
+ if 'x_enterprise_project_id' in local_var_params:
1479
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1480
+ if 'x_environment_id' in local_var_params:
1481
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1482
+
1483
+ form_params = {}
1484
+
1485
+ body = None
1486
+ if isinstance(request, SdkStreamRequest):
1487
+ body = request.get_file_stream()
1488
+
1489
+ response_headers = []
1490
+
1491
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1492
+ ['application/json'])
1493
+
1494
+ auth_settings = []
1495
+
1496
+ http_info["cname"] = cname
1497
+ http_info["collection_formats"] = collection_formats
1498
+ http_info["path_params"] = path_params
1499
+ http_info["query_params"] = query_params
1500
+ http_info["header_params"] = header_params
1501
+ http_info["post_params"] = form_params
1502
+ http_info["body"] = body
1503
+ http_info["response_headers"] = response_headers
1504
+
1505
+ return http_info
1506
+
1507
+ def list_component_configurations_async(self, request):
1508
+ r"""获取组件配置列表
1509
+
1510
+ 获取组件配置列表。
1511
+
1512
+ Please refer to HUAWEI cloud API Explorer for details.
1513
+
1514
+
1515
+ :param request: Request instance for ListComponentConfigurations
1516
+ :type request: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsRequest`
1517
+ :rtype: :class:`huaweicloudsdkcae.v1.ListComponentConfigurationsResponse`
1518
+ """
1519
+ http_info = self._list_component_configurations_http_info(request)
1520
+ return self._call_api(**http_info)
1521
+
1522
+ def list_component_configurations_async_invoker(self, request):
1523
+ http_info = self._list_component_configurations_http_info(request)
1524
+ return AsyncInvoker(self, http_info)
1525
+
1526
+ def _list_component_configurations_http_info(self, request):
1527
+ http_info = {
1528
+ "method": "GET",
1529
+ "resource_path": "/v1/{project_id}/cae/applications/{application_id}/components/{component_id}/configurations",
1530
+ "request_type": request.__class__.__name__,
1531
+ "response_type": "ListComponentConfigurationsResponse"
1532
+ }
1533
+
1534
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1535
+
1536
+ cname = None
1537
+
1538
+ collection_formats = {}
1539
+
1540
+ path_params = {}
1541
+ if 'application_id' in local_var_params:
1542
+ path_params['application_id'] = local_var_params['application_id']
1543
+ if 'component_id' in local_var_params:
1544
+ path_params['component_id'] = local_var_params['component_id']
1545
+
1546
+ query_params = []
1547
+ if 'display_mode' in local_var_params:
1548
+ query_params.append(('displayMode', local_var_params['display_mode']))
1549
+
1550
+ header_params = {}
1551
+ if 'x_enterprise_project_id' in local_var_params:
1552
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1553
+ if 'x_environment_id' in local_var_params:
1554
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1555
+
1556
+ form_params = {}
1557
+
1558
+ body = None
1559
+ if isinstance(request, SdkStreamRequest):
1560
+ body = request.get_file_stream()
1561
+
1562
+ response_headers = []
1563
+
1564
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1565
+ ['application/json'])
1566
+
1567
+ auth_settings = []
1568
+
1569
+ http_info["cname"] = cname
1570
+ http_info["collection_formats"] = collection_formats
1571
+ http_info["path_params"] = path_params
1572
+ http_info["query_params"] = query_params
1573
+ http_info["header_params"] = header_params
1574
+ http_info["post_params"] = form_params
1575
+ http_info["body"] = body
1576
+ http_info["response_headers"] = response_headers
1577
+
1578
+ return http_info
1579
+
1580
+ def create_domain_async(self, request):
1581
+ r"""创建域名
1582
+
1583
+ 创建域名。
1584
+
1585
+ Please refer to HUAWEI cloud API Explorer for details.
1586
+
1587
+
1588
+ :param request: Request instance for CreateDomain
1589
+ :type request: :class:`huaweicloudsdkcae.v1.CreateDomainRequest`
1590
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateDomainResponse`
1591
+ """
1592
+ http_info = self._create_domain_http_info(request)
1593
+ return self._call_api(**http_info)
1594
+
1595
+ def create_domain_async_invoker(self, request):
1596
+ http_info = self._create_domain_http_info(request)
1597
+ return AsyncInvoker(self, http_info)
1598
+
1599
+ def _create_domain_http_info(self, request):
1600
+ http_info = {
1601
+ "method": "POST",
1602
+ "resource_path": "/v1/{project_id}/cae/domains",
1603
+ "request_type": request.__class__.__name__,
1604
+ "response_type": "CreateDomainResponse"
1605
+ }
1606
+
1607
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1608
+
1609
+ cname = None
1610
+
1611
+ collection_formats = {}
1612
+
1613
+ path_params = {}
1614
+
1615
+ query_params = []
1616
+
1617
+ header_params = {}
1618
+ if 'x_enterprise_project_id' in local_var_params:
1619
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1620
+ if 'x_environment_id' in local_var_params:
1621
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1622
+
1623
+ form_params = {}
1624
+
1625
+ body = None
1626
+ if 'body' in local_var_params:
1627
+ body = local_var_params['body']
1628
+ if isinstance(request, SdkStreamRequest):
1629
+ body = request.get_file_stream()
1630
+
1631
+ response_headers = []
1632
+
1633
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1634
+ ['application/json'])
1635
+
1636
+ auth_settings = []
1637
+
1638
+ http_info["cname"] = cname
1639
+ http_info["collection_formats"] = collection_formats
1640
+ http_info["path_params"] = path_params
1641
+ http_info["query_params"] = query_params
1642
+ http_info["header_params"] = header_params
1643
+ http_info["post_params"] = form_params
1644
+ http_info["body"] = body
1645
+ http_info["response_headers"] = response_headers
1646
+
1647
+ return http_info
1648
+
1649
+ def delete_domain_async(self, request):
1650
+ r"""删除域名
1651
+
1652
+ 删除域名。
1653
+
1654
+ Please refer to HUAWEI cloud API Explorer for details.
1655
+
1656
+
1657
+ :param request: Request instance for DeleteDomain
1658
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteDomainRequest`
1659
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteDomainResponse`
1660
+ """
1661
+ http_info = self._delete_domain_http_info(request)
1662
+ return self._call_api(**http_info)
1663
+
1664
+ def delete_domain_async_invoker(self, request):
1665
+ http_info = self._delete_domain_http_info(request)
1666
+ return AsyncInvoker(self, http_info)
1667
+
1668
+ def _delete_domain_http_info(self, request):
1669
+ http_info = {
1670
+ "method": "DELETE",
1671
+ "resource_path": "/v1/{project_id}/cae/domains/{domain_id}",
1672
+ "request_type": request.__class__.__name__,
1673
+ "response_type": "DeleteDomainResponse"
1674
+ }
1675
+
1676
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1677
+
1678
+ cname = None
1679
+
1680
+ collection_formats = {}
1681
+
1682
+ path_params = {}
1683
+ if 'domain_id' in local_var_params:
1684
+ path_params['domain_id'] = local_var_params['domain_id']
1685
+
1686
+ query_params = []
1687
+
1688
+ header_params = {}
1689
+ if 'x_enterprise_project_id' in local_var_params:
1690
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1691
+ if 'x_environment_id' in local_var_params:
1692
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1693
+
1694
+ form_params = {}
1695
+
1696
+ body = None
1697
+ if isinstance(request, SdkStreamRequest):
1698
+ body = request.get_file_stream()
1699
+
1700
+ response_headers = []
1701
+
1702
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1703
+ ['application/json'])
1704
+
1705
+ auth_settings = []
1706
+
1707
+ http_info["cname"] = cname
1708
+ http_info["collection_formats"] = collection_formats
1709
+ http_info["path_params"] = path_params
1710
+ http_info["query_params"] = query_params
1711
+ http_info["header_params"] = header_params
1712
+ http_info["post_params"] = form_params
1713
+ http_info["body"] = body
1714
+ http_info["response_headers"] = response_headers
1715
+
1716
+ return http_info
1717
+
1718
+ def list_domains_async(self, request):
1719
+ r"""获取域名列表
1720
+
1721
+ 获取域名列表。
1722
+
1723
+ Please refer to HUAWEI cloud API Explorer for details.
1724
+
1725
+
1726
+ :param request: Request instance for ListDomains
1727
+ :type request: :class:`huaweicloudsdkcae.v1.ListDomainsRequest`
1728
+ :rtype: :class:`huaweicloudsdkcae.v1.ListDomainsResponse`
1729
+ """
1730
+ http_info = self._list_domains_http_info(request)
1731
+ return self._call_api(**http_info)
1732
+
1733
+ def list_domains_async_invoker(self, request):
1734
+ http_info = self._list_domains_http_info(request)
1735
+ return AsyncInvoker(self, http_info)
1736
+
1737
+ def _list_domains_http_info(self, request):
1738
+ http_info = {
1739
+ "method": "GET",
1740
+ "resource_path": "/v1/{project_id}/cae/domains",
1741
+ "request_type": request.__class__.__name__,
1742
+ "response_type": "ListDomainsResponse"
1743
+ }
1744
+
1745
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1746
+
1747
+ cname = None
1748
+
1749
+ collection_formats = {}
1750
+
1751
+ path_params = {}
1752
+
1753
+ query_params = []
1754
+
1755
+ header_params = {}
1756
+ if 'x_enterprise_project_id' in local_var_params:
1757
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1758
+ if 'x_environment_id' in local_var_params:
1759
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1760
+
1761
+ form_params = {}
1762
+
1763
+ body = None
1764
+ if isinstance(request, SdkStreamRequest):
1765
+ body = request.get_file_stream()
1766
+
1767
+ response_headers = []
1768
+
1769
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1770
+ ['application/json'])
1771
+
1772
+ auth_settings = []
1773
+
1774
+ http_info["cname"] = cname
1775
+ http_info["collection_formats"] = collection_formats
1776
+ http_info["path_params"] = path_params
1777
+ http_info["query_params"] = query_params
1778
+ http_info["header_params"] = header_params
1779
+ http_info["post_params"] = form_params
1780
+ http_info["body"] = body
1781
+ http_info["response_headers"] = response_headers
1782
+
1783
+ return http_info
1784
+
1785
+ def list_eips_async(self, request):
1786
+ r"""获取集群节点弹性公网IP列表
1787
+
1788
+ 获取集群节点弹性公网IP列表。
1789
+
1790
+ Please refer to HUAWEI cloud API Explorer for details.
1791
+
1792
+
1793
+ :param request: Request instance for ListEips
1794
+ :type request: :class:`huaweicloudsdkcae.v1.ListEipsRequest`
1795
+ :rtype: :class:`huaweicloudsdkcae.v1.ListEipsResponse`
1796
+ """
1797
+ http_info = self._list_eips_http_info(request)
1798
+ return self._call_api(**http_info)
1799
+
1800
+ def list_eips_async_invoker(self, request):
1801
+ http_info = self._list_eips_http_info(request)
1802
+ return AsyncInvoker(self, http_info)
1803
+
1804
+ def _list_eips_http_info(self, request):
1805
+ http_info = {
1806
+ "method": "GET",
1807
+ "resource_path": "/v1/{project_id}/cae/eips",
1808
+ "request_type": request.__class__.__name__,
1809
+ "response_type": "ListEipsResponse"
1810
+ }
1811
+
1812
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1813
+
1814
+ cname = None
1815
+
1816
+ collection_formats = {}
1817
+
1818
+ path_params = {}
1819
+
1820
+ query_params = []
1821
+
1822
+ header_params = {}
1823
+ if 'x_enterprise_project_id' in local_var_params:
1824
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1825
+ if 'x_environment_id' in local_var_params:
1826
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1827
+
1828
+ form_params = {}
1829
+
1830
+ body = None
1831
+ if isinstance(request, SdkStreamRequest):
1832
+ body = request.get_file_stream()
1833
+
1834
+ response_headers = []
1835
+
1836
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1837
+ ['application/json'])
1838
+
1839
+ auth_settings = []
1840
+
1841
+ http_info["cname"] = cname
1842
+ http_info["collection_formats"] = collection_formats
1843
+ http_info["path_params"] = path_params
1844
+ http_info["query_params"] = query_params
1845
+ http_info["header_params"] = header_params
1846
+ http_info["post_params"] = form_params
1847
+ http_info["body"] = body
1848
+ http_info["response_headers"] = response_headers
1849
+
1850
+ return http_info
1851
+
1852
+ def update_eip_async(self, request):
1853
+ r"""修改出入网带宽以及开闭状态
1854
+
1855
+ 修改出入网带宽以及开闭状态。
1856
+
1857
+ Please refer to HUAWEI cloud API Explorer for details.
1858
+
1859
+
1860
+ :param request: Request instance for UpdateEip
1861
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateEipRequest`
1862
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateEipResponse`
1863
+ """
1864
+ http_info = self._update_eip_http_info(request)
1865
+ return self._call_api(**http_info)
1866
+
1867
+ def update_eip_async_invoker(self, request):
1868
+ http_info = self._update_eip_http_info(request)
1869
+ return AsyncInvoker(self, http_info)
1870
+
1871
+ def _update_eip_http_info(self, request):
1872
+ http_info = {
1873
+ "method": "PUT",
1874
+ "resource_path": "/v1/{project_id}/cae/eips",
1875
+ "request_type": request.__class__.__name__,
1876
+ "response_type": "UpdateEipResponse"
1877
+ }
1878
+
1879
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1880
+
1881
+ cname = None
1882
+
1883
+ collection_formats = {}
1884
+
1885
+ path_params = {}
1886
+
1887
+ query_params = []
1888
+
1889
+ header_params = {}
1890
+ if 'x_enterprise_project_id' in local_var_params:
1891
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1892
+ if 'x_environment_id' in local_var_params:
1893
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
1894
+
1895
+ form_params = {}
1896
+
1897
+ body = None
1898
+ if 'body' in local_var_params:
1899
+ body = local_var_params['body']
1900
+ if isinstance(request, SdkStreamRequest):
1901
+ body = request.get_file_stream()
1902
+
1903
+ response_headers = []
1904
+
1905
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1906
+ ['application/json'])
1907
+
1908
+ auth_settings = []
1909
+
1910
+ http_info["cname"] = cname
1911
+ http_info["collection_formats"] = collection_formats
1912
+ http_info["path_params"] = path_params
1913
+ http_info["query_params"] = query_params
1914
+ http_info["header_params"] = header_params
1915
+ http_info["post_params"] = form_params
1916
+ http_info["body"] = body
1917
+ http_info["response_headers"] = response_headers
1918
+
1919
+ return http_info
1920
+
1921
+ def create_environment_async(self, request):
1922
+ r"""创建环境
1923
+
1924
+ 创建环境。
1925
+
1926
+ Please refer to HUAWEI cloud API Explorer for details.
1927
+
1928
+
1929
+ :param request: Request instance for CreateEnvironment
1930
+ :type request: :class:`huaweicloudsdkcae.v1.CreateEnvironmentRequest`
1931
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateEnvironmentResponse`
1932
+ """
1933
+ http_info = self._create_environment_http_info(request)
1934
+ return self._call_api(**http_info)
1935
+
1936
+ def create_environment_async_invoker(self, request):
1937
+ http_info = self._create_environment_http_info(request)
1938
+ return AsyncInvoker(self, http_info)
1939
+
1940
+ def _create_environment_http_info(self, request):
1941
+ http_info = {
1942
+ "method": "POST",
1943
+ "resource_path": "/v1/{project_id}/cae/environments",
1944
+ "request_type": request.__class__.__name__,
1945
+ "response_type": "CreateEnvironmentResponse"
1946
+ }
1947
+
1948
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1949
+
1950
+ cname = None
1951
+
1952
+ collection_formats = {}
1953
+
1954
+ path_params = {}
1955
+
1956
+ query_params = []
1957
+
1958
+ header_params = {}
1959
+ if 'x_enterprise_project_id' in local_var_params:
1960
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
1961
+
1962
+ form_params = {}
1963
+
1964
+ body = None
1965
+ if 'body' in local_var_params:
1966
+ body = local_var_params['body']
1967
+ if isinstance(request, SdkStreamRequest):
1968
+ body = request.get_file_stream()
1969
+
1970
+ response_headers = []
1971
+
1972
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1973
+ ['application/json'])
1974
+
1975
+ auth_settings = []
1976
+
1977
+ http_info["cname"] = cname
1978
+ http_info["collection_formats"] = collection_formats
1979
+ http_info["path_params"] = path_params
1980
+ http_info["query_params"] = query_params
1981
+ http_info["header_params"] = header_params
1982
+ http_info["post_params"] = form_params
1983
+ http_info["body"] = body
1984
+ http_info["response_headers"] = response_headers
1985
+
1986
+ return http_info
1987
+
1988
+ def delete_environment_async(self, request):
1989
+ r"""删除环境
1990
+
1991
+ 删除环境。
1992
+
1993
+ Please refer to HUAWEI cloud API Explorer for details.
1994
+
1995
+
1996
+ :param request: Request instance for DeleteEnvironment
1997
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteEnvironmentRequest`
1998
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteEnvironmentResponse`
1999
+ """
2000
+ http_info = self._delete_environment_http_info(request)
2001
+ return self._call_api(**http_info)
2002
+
2003
+ def delete_environment_async_invoker(self, request):
2004
+ http_info = self._delete_environment_http_info(request)
2005
+ return AsyncInvoker(self, http_info)
2006
+
2007
+ def _delete_environment_http_info(self, request):
2008
+ http_info = {
2009
+ "method": "DELETE",
2010
+ "resource_path": "/v1/{project_id}/cae/environments/{environment_id}",
2011
+ "request_type": request.__class__.__name__,
2012
+ "response_type": "DeleteEnvironmentResponse"
2013
+ }
2014
+
2015
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2016
+
2017
+ cname = None
2018
+
2019
+ collection_formats = {}
2020
+
2021
+ path_params = {}
2022
+ if 'environment_id' in local_var_params:
2023
+ path_params['environment_id'] = local_var_params['environment_id']
2024
+
2025
+ query_params = []
2026
+
2027
+ header_params = {}
2028
+ if 'x_enterprise_project_id' in local_var_params:
2029
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2030
+
2031
+ form_params = {}
2032
+
2033
+ body = None
2034
+ if isinstance(request, SdkStreamRequest):
2035
+ body = request.get_file_stream()
2036
+
2037
+ response_headers = []
2038
+
2039
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2040
+ ['application/json'])
2041
+
2042
+ auth_settings = []
2043
+
2044
+ http_info["cname"] = cname
2045
+ http_info["collection_formats"] = collection_formats
2046
+ http_info["path_params"] = path_params
2047
+ http_info["query_params"] = query_params
2048
+ http_info["header_params"] = header_params
2049
+ http_info["post_params"] = form_params
2050
+ http_info["body"] = body
2051
+ http_info["response_headers"] = response_headers
2052
+
2053
+ return http_info
2054
+
2055
+ def list_environments_async(self, request):
2056
+ r"""获取环境列表
2057
+
2058
+ 获取环境列表。
2059
+
2060
+ Please refer to HUAWEI cloud API Explorer for details.
2061
+
2062
+
2063
+ :param request: Request instance for ListEnvironments
2064
+ :type request: :class:`huaweicloudsdkcae.v1.ListEnvironmentsRequest`
2065
+ :rtype: :class:`huaweicloudsdkcae.v1.ListEnvironmentsResponse`
2066
+ """
2067
+ http_info = self._list_environments_http_info(request)
2068
+ return self._call_api(**http_info)
2069
+
2070
+ def list_environments_async_invoker(self, request):
2071
+ http_info = self._list_environments_http_info(request)
2072
+ return AsyncInvoker(self, http_info)
2073
+
2074
+ def _list_environments_http_info(self, request):
2075
+ http_info = {
2076
+ "method": "GET",
2077
+ "resource_path": "/v1/{project_id}/cae/environments",
2078
+ "request_type": request.__class__.__name__,
2079
+ "response_type": "ListEnvironmentsResponse"
2080
+ }
2081
+
2082
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2083
+
2084
+ cname = None
2085
+
2086
+ collection_formats = {}
2087
+
2088
+ path_params = {}
2089
+
2090
+ query_params = []
2091
+
2092
+ header_params = {}
2093
+ if 'x_enterprise_project_id' in local_var_params:
2094
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2095
+
2096
+ form_params = {}
2097
+
2098
+ body = None
2099
+ if isinstance(request, SdkStreamRequest):
2100
+ body = request.get_file_stream()
2101
+
2102
+ response_headers = []
2103
+
2104
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2105
+ ['application/json'])
2106
+
2107
+ auth_settings = []
2108
+
2109
+ http_info["cname"] = cname
2110
+ http_info["collection_formats"] = collection_formats
2111
+ http_info["path_params"] = path_params
2112
+ http_info["query_params"] = query_params
2113
+ http_info["header_params"] = header_params
2114
+ http_info["post_params"] = form_params
2115
+ http_info["body"] = body
2116
+ http_info["response_headers"] = response_headers
2117
+
2118
+ return http_info
2119
+
2120
+ def retry_job_async(self, request):
2121
+ r"""重试任务
2122
+
2123
+ 重试任务。
2124
+
2125
+ Please refer to HUAWEI cloud API Explorer for details.
2126
+
2127
+
2128
+ :param request: Request instance for RetryJob
2129
+ :type request: :class:`huaweicloudsdkcae.v1.RetryJobRequest`
2130
+ :rtype: :class:`huaweicloudsdkcae.v1.RetryJobResponse`
2131
+ """
2132
+ http_info = self._retry_job_http_info(request)
2133
+ return self._call_api(**http_info)
2134
+
2135
+ def retry_job_async_invoker(self, request):
2136
+ http_info = self._retry_job_http_info(request)
2137
+ return AsyncInvoker(self, http_info)
2138
+
2139
+ def _retry_job_http_info(self, request):
2140
+ http_info = {
2141
+ "method": "POST",
2142
+ "resource_path": "/v1/{project_id}/cae/jobs/{job_id}",
2143
+ "request_type": request.__class__.__name__,
2144
+ "response_type": "RetryJobResponse"
2145
+ }
2146
+
2147
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2148
+
2149
+ cname = None
2150
+
2151
+ collection_formats = {}
2152
+
2153
+ path_params = {}
2154
+ if 'job_id' in local_var_params:
2155
+ path_params['job_id'] = local_var_params['job_id']
2156
+
2157
+ query_params = []
2158
+
2159
+ header_params = {}
2160
+ if 'x_enterprise_project_id' in local_var_params:
2161
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2162
+ if 'x_environment_id' in local_var_params:
2163
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2164
+
2165
+ form_params = {}
2166
+
2167
+ body = None
2168
+ if isinstance(request, SdkStreamRequest):
2169
+ body = request.get_file_stream()
2170
+
2171
+ response_headers = []
2172
+
2173
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2174
+ ['application/json'])
2175
+
2176
+ auth_settings = []
2177
+
2178
+ http_info["cname"] = cname
2179
+ http_info["collection_formats"] = collection_formats
2180
+ http_info["path_params"] = path_params
2181
+ http_info["query_params"] = query_params
2182
+ http_info["header_params"] = header_params
2183
+ http_info["post_params"] = form_params
2184
+ http_info["body"] = body
2185
+ http_info["response_headers"] = response_headers
2186
+
2187
+ return http_info
2188
+
2189
+ def show_job_async(self, request):
2190
+ r"""获取任务详情
2191
+
2192
+ 获取任务详情。
2193
+
2194
+ Please refer to HUAWEI cloud API Explorer for details.
2195
+
2196
+
2197
+ :param request: Request instance for ShowJob
2198
+ :type request: :class:`huaweicloudsdkcae.v1.ShowJobRequest`
2199
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowJobResponse`
2200
+ """
2201
+ http_info = self._show_job_http_info(request)
2202
+ return self._call_api(**http_info)
2203
+
2204
+ def show_job_async_invoker(self, request):
2205
+ http_info = self._show_job_http_info(request)
2206
+ return AsyncInvoker(self, http_info)
2207
+
2208
+ def _show_job_http_info(self, request):
2209
+ http_info = {
2210
+ "method": "GET",
2211
+ "resource_path": "/v1/{project_id}/cae/jobs/{job_id}",
2212
+ "request_type": request.__class__.__name__,
2213
+ "response_type": "ShowJobResponse"
2214
+ }
2215
+
2216
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2217
+
2218
+ cname = None
2219
+
2220
+ collection_formats = {}
2221
+
2222
+ path_params = {}
2223
+ if 'job_id' in local_var_params:
2224
+ path_params['job_id'] = local_var_params['job_id']
2225
+
2226
+ query_params = []
2227
+
2228
+ header_params = {}
2229
+ if 'x_enterprise_project_id' in local_var_params:
2230
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2231
+ if 'x_environment_id' in local_var_params:
2232
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2233
+
2234
+ form_params = {}
2235
+
2236
+ body = None
2237
+ if isinstance(request, SdkStreamRequest):
2238
+ body = request.get_file_stream()
2239
+
2240
+ response_headers = []
2241
+
2242
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2243
+ ['application/json'])
2244
+
2245
+ auth_settings = []
2246
+
2247
+ http_info["cname"] = cname
2248
+ http_info["collection_formats"] = collection_formats
2249
+ http_info["path_params"] = path_params
2250
+ http_info["query_params"] = query_params
2251
+ http_info["header_params"] = header_params
2252
+ http_info["post_params"] = form_params
2253
+ http_info["body"] = body
2254
+ http_info["response_headers"] = response_headers
2255
+
2256
+ return http_info
2257
+
2258
+ def create_monitor_system_async(self, request):
2259
+ r"""创建监控系统配置
2260
+
2261
+ 创建监控系统配置。
2262
+
2263
+ Please refer to HUAWEI cloud API Explorer for details.
2264
+
2265
+
2266
+ :param request: Request instance for CreateMonitorSystem
2267
+ :type request: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemRequest`
2268
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateMonitorSystemResponse`
2269
+ """
2270
+ http_info = self._create_monitor_system_http_info(request)
2271
+ return self._call_api(**http_info)
2272
+
2273
+ def create_monitor_system_async_invoker(self, request):
2274
+ http_info = self._create_monitor_system_http_info(request)
2275
+ return AsyncInvoker(self, http_info)
2276
+
2277
+ def _create_monitor_system_http_info(self, request):
2278
+ http_info = {
2279
+ "method": "POST",
2280
+ "resource_path": "/v1/{project_id}/cae/monitor-system",
2281
+ "request_type": request.__class__.__name__,
2282
+ "response_type": "CreateMonitorSystemResponse"
2283
+ }
2284
+
2285
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2286
+
2287
+ cname = None
2288
+
2289
+ collection_formats = {}
2290
+
2291
+ path_params = {}
2292
+
2293
+ query_params = []
2294
+
2295
+ header_params = {}
2296
+ if 'x_enterprise_project_id' in local_var_params:
2297
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2298
+ if 'x_environment_id' in local_var_params:
2299
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2300
+
2301
+ form_params = {}
2302
+
2303
+ body = None
2304
+ if 'body' in local_var_params:
2305
+ body = local_var_params['body']
2306
+ if isinstance(request, SdkStreamRequest):
2307
+ body = request.get_file_stream()
2308
+
2309
+ response_headers = []
2310
+
2311
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2312
+ ['application/json'])
2313
+
2314
+ auth_settings = []
2315
+
2316
+ http_info["cname"] = cname
2317
+ http_info["collection_formats"] = collection_formats
2318
+ http_info["path_params"] = path_params
2319
+ http_info["query_params"] = query_params
2320
+ http_info["header_params"] = header_params
2321
+ http_info["post_params"] = form_params
2322
+ http_info["body"] = body
2323
+ http_info["response_headers"] = response_headers
2324
+
2325
+ return http_info
2326
+
2327
+ def show_monitor_system_async(self, request):
2328
+ r"""获取监控系统配置
2329
+
2330
+ 获取监控系统配置。
2331
+
2332
+ Please refer to HUAWEI cloud API Explorer for details.
2333
+
2334
+
2335
+ :param request: Request instance for ShowMonitorSystem
2336
+ :type request: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemRequest`
2337
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponse`
2338
+ """
2339
+ http_info = self._show_monitor_system_http_info(request)
2340
+ return self._call_api(**http_info)
2341
+
2342
+ def show_monitor_system_async_invoker(self, request):
2343
+ http_info = self._show_monitor_system_http_info(request)
2344
+ return AsyncInvoker(self, http_info)
2345
+
2346
+ def _show_monitor_system_http_info(self, request):
2347
+ http_info = {
2348
+ "method": "GET",
2349
+ "resource_path": "/v1/{project_id}/cae/monitor-system",
2350
+ "request_type": request.__class__.__name__,
2351
+ "response_type": "ShowMonitorSystemResponse"
2352
+ }
2353
+
2354
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2355
+
2356
+ cname = None
2357
+
2358
+ collection_formats = {}
2359
+
2360
+ path_params = {}
2361
+
2362
+ query_params = []
2363
+
2364
+ header_params = {}
2365
+ if 'x_enterprise_project_id' in local_var_params:
2366
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2367
+ if 'x_environment_id' in local_var_params:
2368
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2369
+
2370
+ form_params = {}
2371
+
2372
+ body = None
2373
+ if isinstance(request, SdkStreamRequest):
2374
+ body = request.get_file_stream()
2375
+
2376
+ response_headers = []
2377
+
2378
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2379
+ ['application/json'])
2380
+
2381
+ auth_settings = []
2382
+
2383
+ http_info["cname"] = cname
2384
+ http_info["collection_formats"] = collection_formats
2385
+ http_info["path_params"] = path_params
2386
+ http_info["query_params"] = query_params
2387
+ http_info["header_params"] = header_params
2388
+ http_info["post_params"] = form_params
2389
+ http_info["body"] = body
2390
+ http_info["response_headers"] = response_headers
2391
+
2392
+ return http_info
2393
+
2394
+ def update_monitor_system_async(self, request):
2395
+ r"""更新监控系统配置
2396
+
2397
+ 更新监控系统配置。
2398
+
2399
+ Please refer to HUAWEI cloud API Explorer for details.
2400
+
2401
+
2402
+ :param request: Request instance for UpdateMonitorSystem
2403
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemRequest`
2404
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateMonitorSystemResponse`
2405
+ """
2406
+ http_info = self._update_monitor_system_http_info(request)
2407
+ return self._call_api(**http_info)
2408
+
2409
+ def update_monitor_system_async_invoker(self, request):
2410
+ http_info = self._update_monitor_system_http_info(request)
2411
+ return AsyncInvoker(self, http_info)
2412
+
2413
+ def _update_monitor_system_http_info(self, request):
2414
+ http_info = {
2415
+ "method": "PUT",
2416
+ "resource_path": "/v1/{project_id}/cae/monitor-system/{monitor_system_id}",
2417
+ "request_type": request.__class__.__name__,
2418
+ "response_type": "UpdateMonitorSystemResponse"
2419
+ }
2420
+
2421
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2422
+
2423
+ cname = None
2424
+
2425
+ collection_formats = {}
2426
+
2427
+ path_params = {}
2428
+ if 'monitor_system_id' in local_var_params:
2429
+ path_params['monitor_system_id'] = local_var_params['monitor_system_id']
2430
+
2431
+ query_params = []
2432
+
2433
+ header_params = {}
2434
+ if 'x_enterprise_project_id' in local_var_params:
2435
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2436
+ if 'x_environment_id' in local_var_params:
2437
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2438
+
2439
+ form_params = {}
2440
+
2441
+ body = None
2442
+ if 'body' in local_var_params:
2443
+ body = local_var_params['body']
2444
+ if isinstance(request, SdkStreamRequest):
2445
+ body = request.get_file_stream()
2446
+
2447
+ response_headers = []
2448
+
2449
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2450
+ ['application/json'])
2451
+
2452
+ auth_settings = []
2453
+
2454
+ http_info["cname"] = cname
2455
+ http_info["collection_formats"] = collection_formats
2456
+ http_info["path_params"] = path_params
2457
+ http_info["query_params"] = query_params
2458
+ http_info["header_params"] = header_params
2459
+ http_info["post_params"] = form_params
2460
+ http_info["body"] = body
2461
+ http_info["response_headers"] = response_headers
2462
+
2463
+ return http_info
2464
+
2465
+ def create_notice_rule_async(self, request):
2466
+ r"""创建事件通知规则。
2467
+
2468
+ 创建事件通知规则。
2469
+
2470
+ Please refer to HUAWEI cloud API Explorer for details.
2471
+
2472
+
2473
+ :param request: Request instance for CreateNoticeRule
2474
+ :type request: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleRequest`
2475
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateNoticeRuleResponse`
2476
+ """
2477
+ http_info = self._create_notice_rule_http_info(request)
2478
+ return self._call_api(**http_info)
2479
+
2480
+ def create_notice_rule_async_invoker(self, request):
2481
+ http_info = self._create_notice_rule_http_info(request)
2482
+ return AsyncInvoker(self, http_info)
2483
+
2484
+ def _create_notice_rule_http_info(self, request):
2485
+ http_info = {
2486
+ "method": "POST",
2487
+ "resource_path": "/v1/{project_id}/cae/notice-rules",
2488
+ "request_type": request.__class__.__name__,
2489
+ "response_type": "CreateNoticeRuleResponse"
2490
+ }
2491
+
2492
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2493
+
2494
+ cname = None
2495
+
2496
+ collection_formats = {}
2497
+
2498
+ path_params = {}
2499
+
2500
+ query_params = []
2501
+
2502
+ header_params = {}
2503
+ if 'x_enterprise_project_id' in local_var_params:
2504
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2505
+
2506
+ form_params = {}
2507
+
2508
+ body = None
2509
+ if 'body' in local_var_params:
2510
+ body = local_var_params['body']
2511
+ if isinstance(request, SdkStreamRequest):
2512
+ body = request.get_file_stream()
2513
+
2514
+ response_headers = []
2515
+
2516
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2517
+ ['application/json'])
2518
+
2519
+ auth_settings = []
2520
+
2521
+ http_info["cname"] = cname
2522
+ http_info["collection_formats"] = collection_formats
2523
+ http_info["path_params"] = path_params
2524
+ http_info["query_params"] = query_params
2525
+ http_info["header_params"] = header_params
2526
+ http_info["post_params"] = form_params
2527
+ http_info["body"] = body
2528
+ http_info["response_headers"] = response_headers
2529
+
2530
+ return http_info
2531
+
2532
+ def delete_notice_rule_async(self, request):
2533
+ r"""删除事件通知规则。
2534
+
2535
+ 删除事件通知规则。
2536
+
2537
+ Please refer to HUAWEI cloud API Explorer for details.
2538
+
2539
+
2540
+ :param request: Request instance for DeleteNoticeRule
2541
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteNoticeRuleRequest`
2542
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteNoticeRuleResponse`
2543
+ """
2544
+ http_info = self._delete_notice_rule_http_info(request)
2545
+ return self._call_api(**http_info)
2546
+
2547
+ def delete_notice_rule_async_invoker(self, request):
2548
+ http_info = self._delete_notice_rule_http_info(request)
2549
+ return AsyncInvoker(self, http_info)
2550
+
2551
+ def _delete_notice_rule_http_info(self, request):
2552
+ http_info = {
2553
+ "method": "DELETE",
2554
+ "resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
2555
+ "request_type": request.__class__.__name__,
2556
+ "response_type": "DeleteNoticeRuleResponse"
2557
+ }
2558
+
2559
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2560
+
2561
+ cname = None
2562
+
2563
+ collection_formats = {}
2564
+
2565
+ path_params = {}
2566
+ if 'rule_id' in local_var_params:
2567
+ path_params['rule_id'] = local_var_params['rule_id']
2568
+
2569
+ query_params = []
2570
+
2571
+ header_params = {}
2572
+ if 'x_enterprise_project_id' in local_var_params:
2573
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2574
+
2575
+ form_params = {}
2576
+
2577
+ body = None
2578
+ if isinstance(request, SdkStreamRequest):
2579
+ body = request.get_file_stream()
2580
+
2581
+ response_headers = []
2582
+
2583
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2584
+ ['application/json'])
2585
+
2586
+ auth_settings = []
2587
+
2588
+ http_info["cname"] = cname
2589
+ http_info["collection_formats"] = collection_formats
2590
+ http_info["path_params"] = path_params
2591
+ http_info["query_params"] = query_params
2592
+ http_info["header_params"] = header_params
2593
+ http_info["post_params"] = form_params
2594
+ http_info["body"] = body
2595
+ http_info["response_headers"] = response_headers
2596
+
2597
+ return http_info
2598
+
2599
+ def list_notice_rules_async(self, request):
2600
+ r"""查询事件通知规则列表。
2601
+
2602
+ 查询事件通知规则列表。
2603
+
2604
+ Please refer to HUAWEI cloud API Explorer for details.
2605
+
2606
+
2607
+ :param request: Request instance for ListNoticeRules
2608
+ :type request: :class:`huaweicloudsdkcae.v1.ListNoticeRulesRequest`
2609
+ :rtype: :class:`huaweicloudsdkcae.v1.ListNoticeRulesResponse`
2610
+ """
2611
+ http_info = self._list_notice_rules_http_info(request)
2612
+ return self._call_api(**http_info)
2613
+
2614
+ def list_notice_rules_async_invoker(self, request):
2615
+ http_info = self._list_notice_rules_http_info(request)
2616
+ return AsyncInvoker(self, http_info)
2617
+
2618
+ def _list_notice_rules_http_info(self, request):
2619
+ http_info = {
2620
+ "method": "GET",
2621
+ "resource_path": "/v1/{project_id}/cae/notice-rules",
2622
+ "request_type": request.__class__.__name__,
2623
+ "response_type": "ListNoticeRulesResponse"
2624
+ }
2625
+
2626
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2627
+
2628
+ cname = None
2629
+
2630
+ collection_formats = {}
2631
+
2632
+ path_params = {}
2633
+
2634
+ query_params = []
2635
+
2636
+ header_params = {}
2637
+ if 'x_enterprise_project_id' in local_var_params:
2638
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2639
+
2640
+ form_params = {}
2641
+
2642
+ body = None
2643
+ if isinstance(request, SdkStreamRequest):
2644
+ body = request.get_file_stream()
2645
+
2646
+ response_headers = []
2647
+
2648
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2649
+ ['application/json'])
2650
+
2651
+ auth_settings = []
2652
+
2653
+ http_info["cname"] = cname
2654
+ http_info["collection_formats"] = collection_formats
2655
+ http_info["path_params"] = path_params
2656
+ http_info["query_params"] = query_params
2657
+ http_info["header_params"] = header_params
2658
+ http_info["post_params"] = form_params
2659
+ http_info["body"] = body
2660
+ http_info["response_headers"] = response_headers
2661
+
2662
+ return http_info
2663
+
2664
+ def show_notice_rule_async(self, request):
2665
+ r"""查询事件通知规则。
2666
+
2667
+ 查询事件通知规则。
2668
+
2669
+ Please refer to HUAWEI cloud API Explorer for details.
2670
+
2671
+
2672
+ :param request: Request instance for ShowNoticeRule
2673
+ :type request: :class:`huaweicloudsdkcae.v1.ShowNoticeRuleRequest`
2674
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowNoticeRuleResponse`
2675
+ """
2676
+ http_info = self._show_notice_rule_http_info(request)
2677
+ return self._call_api(**http_info)
2678
+
2679
+ def show_notice_rule_async_invoker(self, request):
2680
+ http_info = self._show_notice_rule_http_info(request)
2681
+ return AsyncInvoker(self, http_info)
2682
+
2683
+ def _show_notice_rule_http_info(self, request):
2684
+ http_info = {
2685
+ "method": "GET",
2686
+ "resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
2687
+ "request_type": request.__class__.__name__,
2688
+ "response_type": "ShowNoticeRuleResponse"
2689
+ }
2690
+
2691
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2692
+
2693
+ cname = None
2694
+
2695
+ collection_formats = {}
2696
+
2697
+ path_params = {}
2698
+ if 'rule_id' in local_var_params:
2699
+ path_params['rule_id'] = local_var_params['rule_id']
2700
+
2701
+ query_params = []
2702
+
2703
+ header_params = {}
2704
+ if 'x_enterprise_project_id' in local_var_params:
2705
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2706
+
2707
+ form_params = {}
2708
+
2709
+ body = None
2710
+ if isinstance(request, SdkStreamRequest):
2711
+ body = request.get_file_stream()
2712
+
2713
+ response_headers = []
2714
+
2715
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2716
+ ['application/json'])
2717
+
2718
+ auth_settings = []
2719
+
2720
+ http_info["cname"] = cname
2721
+ http_info["collection_formats"] = collection_formats
2722
+ http_info["path_params"] = path_params
2723
+ http_info["query_params"] = query_params
2724
+ http_info["header_params"] = header_params
2725
+ http_info["post_params"] = form_params
2726
+ http_info["body"] = body
2727
+ http_info["response_headers"] = response_headers
2728
+
2729
+ return http_info
2730
+
2731
+ def update_notice_rule_async(self, request):
2732
+ r"""修改事件通知规则。
2733
+
2734
+ 修改事件通知规则。
2735
+
2736
+ Please refer to HUAWEI cloud API Explorer for details.
2737
+
2738
+
2739
+ :param request: Request instance for UpdateNoticeRule
2740
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleRequest`
2741
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateNoticeRuleResponse`
2742
+ """
2743
+ http_info = self._update_notice_rule_http_info(request)
2744
+ return self._call_api(**http_info)
2745
+
2746
+ def update_notice_rule_async_invoker(self, request):
2747
+ http_info = self._update_notice_rule_http_info(request)
2748
+ return AsyncInvoker(self, http_info)
2749
+
2750
+ def _update_notice_rule_http_info(self, request):
2751
+ http_info = {
2752
+ "method": "PUT",
2753
+ "resource_path": "/v1/{project_id}/cae/notice-rules/{rule_id}",
2754
+ "request_type": request.__class__.__name__,
2755
+ "response_type": "UpdateNoticeRuleResponse"
2756
+ }
2757
+
2758
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2759
+
2760
+ cname = None
2761
+
2762
+ collection_formats = {}
2763
+
2764
+ path_params = {}
2765
+ if 'rule_id' in local_var_params:
2766
+ path_params['rule_id'] = local_var_params['rule_id']
2767
+
2768
+ query_params = []
2769
+
2770
+ header_params = {}
2771
+ if 'x_enterprise_project_id' in local_var_params:
2772
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2773
+
2774
+ form_params = {}
2775
+
2776
+ body = None
2777
+ if 'body' in local_var_params:
2778
+ body = local_var_params['body']
2779
+ if isinstance(request, SdkStreamRequest):
2780
+ body = request.get_file_stream()
2781
+
2782
+ response_headers = []
2783
+
2784
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2785
+ ['application/json'])
2786
+
2787
+ auth_settings = []
2788
+
2789
+ http_info["cname"] = cname
2790
+ http_info["collection_formats"] = collection_formats
2791
+ http_info["path_params"] = path_params
2792
+ http_info["query_params"] = query_params
2793
+ http_info["header_params"] = header_params
2794
+ http_info["post_params"] = form_params
2795
+ http_info["body"] = body
2796
+ http_info["response_headers"] = response_headers
2797
+
2798
+ return http_info
2799
+
2800
+ def create_secret_async(self, request):
2801
+ r"""关联租户已注册的凭据。
2802
+
2803
+ 关联租户已注册的凭据。
2804
+
2805
+ Please refer to HUAWEI cloud API Explorer for details.
2806
+
2807
+
2808
+ :param request: Request instance for CreateSecret
2809
+ :type request: :class:`huaweicloudsdkcae.v1.CreateSecretRequest`
2810
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateSecretResponse`
2811
+ """
2812
+ http_info = self._create_secret_http_info(request)
2813
+ return self._call_api(**http_info)
2814
+
2815
+ def create_secret_async_invoker(self, request):
2816
+ http_info = self._create_secret_http_info(request)
2817
+ return AsyncInvoker(self, http_info)
2818
+
2819
+ def _create_secret_http_info(self, request):
2820
+ http_info = {
2821
+ "method": "POST",
2822
+ "resource_path": "/v1/{project_id}/cae/dew-secrets",
2823
+ "request_type": request.__class__.__name__,
2824
+ "response_type": "CreateSecretResponse"
2825
+ }
2826
+
2827
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2828
+
2829
+ cname = None
2830
+
2831
+ collection_formats = {}
2832
+
2833
+ path_params = {}
2834
+
2835
+ query_params = []
2836
+
2837
+ header_params = {}
2838
+ if 'x_enterprise_project_id' in local_var_params:
2839
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2840
+ if 'x_environment_id' in local_var_params:
2841
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
2842
+
2843
+ form_params = {}
2844
+
2845
+ body = None
2846
+ if 'body' in local_var_params:
2847
+ body = local_var_params['body']
2848
+ if isinstance(request, SdkStreamRequest):
2849
+ body = request.get_file_stream()
2850
+
2851
+ response_headers = []
2852
+
2853
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2854
+ ['application/json'])
2855
+
2856
+ auth_settings = []
2857
+
2858
+ http_info["cname"] = cname
2859
+ http_info["collection_formats"] = collection_formats
2860
+ http_info["path_params"] = path_params
2861
+ http_info["query_params"] = query_params
2862
+ http_info["header_params"] = header_params
2863
+ http_info["post_params"] = form_params
2864
+ http_info["body"] = body
2865
+ http_info["response_headers"] = response_headers
2866
+
2867
+ return http_info
2868
+
2869
+ def delete_secret_async(self, request):
2870
+ r"""删除用户已在DEW服务上注册的凭据。
2871
+
2872
+ 删除用户已在DEW服务上注册的凭据。
2873
+
2874
+ Please refer to HUAWEI cloud API Explorer for details.
2875
+
2876
+
2877
+ :param request: Request instance for DeleteSecret
2878
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteSecretRequest`
2879
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteSecretResponse`
2880
+ """
2881
+ http_info = self._delete_secret_http_info(request)
2882
+ return self._call_api(**http_info)
2883
+
2884
+ def delete_secret_async_invoker(self, request):
2885
+ http_info = self._delete_secret_http_info(request)
2886
+ return AsyncInvoker(self, http_info)
2887
+
2888
+ def _delete_secret_http_info(self, request):
2889
+ http_info = {
2890
+ "method": "DELETE",
2891
+ "resource_path": "/v1/{project_id}/cae/dew-secrets/{secret_id}",
2892
+ "request_type": request.__class__.__name__,
2893
+ "response_type": "DeleteSecretResponse"
2894
+ }
2895
+
2896
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2897
+
2898
+ cname = None
2899
+
2900
+ collection_formats = {}
2901
+
2902
+ path_params = {}
2903
+ if 'secret_id' in local_var_params:
2904
+ path_params['secret_id'] = local_var_params['secret_id']
2905
+
2906
+ query_params = []
2907
+
2908
+ header_params = {}
2909
+ if 'x_enterprise_project_id' in local_var_params:
2910
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2911
+
2912
+ form_params = {}
2913
+
2914
+ body = None
2915
+ if isinstance(request, SdkStreamRequest):
2916
+ body = request.get_file_stream()
2917
+
2918
+ response_headers = []
2919
+
2920
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2921
+ ['application/json'])
2922
+
2923
+ auth_settings = []
2924
+
2925
+ http_info["cname"] = cname
2926
+ http_info["collection_formats"] = collection_formats
2927
+ http_info["path_params"] = path_params
2928
+ http_info["query_params"] = query_params
2929
+ http_info["header_params"] = header_params
2930
+ http_info["post_params"] = form_params
2931
+ http_info["body"] = body
2932
+ http_info["response_headers"] = response_headers
2933
+
2934
+ return http_info
2935
+
2936
+ def list_effective_components_async(self, request):
2937
+ r"""获取当前正在使用对应凭据组件列表。
2938
+
2939
+ 获取当前正在使用的对应凭据组件列表。
2940
+
2941
+ Please refer to HUAWEI cloud API Explorer for details.
2942
+
2943
+
2944
+ :param request: Request instance for ListEffectiveComponents
2945
+ :type request: :class:`huaweicloudsdkcae.v1.ListEffectiveComponentsRequest`
2946
+ :rtype: :class:`huaweicloudsdkcae.v1.ListEffectiveComponentsResponse`
2947
+ """
2948
+ http_info = self._list_effective_components_http_info(request)
2949
+ return self._call_api(**http_info)
2950
+
2951
+ def list_effective_components_async_invoker(self, request):
2952
+ http_info = self._list_effective_components_http_info(request)
2953
+ return AsyncInvoker(self, http_info)
2954
+
2955
+ def _list_effective_components_http_info(self, request):
2956
+ http_info = {
2957
+ "method": "GET",
2958
+ "resource_path": "/v1/{project_id}/cae/dew-secrets/{secret_id}/effective-components",
2959
+ "request_type": request.__class__.__name__,
2960
+ "response_type": "ListEffectiveComponentsResponse"
2961
+ }
2962
+
2963
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2964
+
2965
+ cname = None
2966
+
2967
+ collection_formats = {}
2968
+
2969
+ path_params = {}
2970
+ if 'secret_id' in local_var_params:
2971
+ path_params['secret_id'] = local_var_params['secret_id']
2972
+
2973
+ query_params = []
2974
+
2975
+ header_params = {}
2976
+ if 'x_enterprise_project_id' in local_var_params:
2977
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
2978
+
2979
+ form_params = {}
2980
+
2981
+ body = None
2982
+ if isinstance(request, SdkStreamRequest):
2983
+ body = request.get_file_stream()
2984
+
2985
+ response_headers = []
2986
+
2987
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2988
+ ['application/json'])
2989
+
2990
+ auth_settings = []
2991
+
2992
+ http_info["cname"] = cname
2993
+ http_info["collection_formats"] = collection_formats
2994
+ http_info["path_params"] = path_params
2995
+ http_info["query_params"] = query_params
2996
+ http_info["header_params"] = header_params
2997
+ http_info["post_params"] = form_params
2998
+ http_info["body"] = body
2999
+ http_info["response_headers"] = response_headers
3000
+
3001
+ return http_info
3002
+
3003
+ def list_secrets_async(self, request):
3004
+ r"""获取用户现有的凭据。
3005
+
3006
+ 获取用户现有的凭据。
3007
+
3008
+ Please refer to HUAWEI cloud API Explorer for details.
3009
+
3010
+
3011
+ :param request: Request instance for ListSecrets
3012
+ :type request: :class:`huaweicloudsdkcae.v1.ListSecretsRequest`
3013
+ :rtype: :class:`huaweicloudsdkcae.v1.ListSecretsResponse`
3014
+ """
3015
+ http_info = self._list_secrets_http_info(request)
3016
+ return self._call_api(**http_info)
3017
+
3018
+ def list_secrets_async_invoker(self, request):
3019
+ http_info = self._list_secrets_http_info(request)
3020
+ return AsyncInvoker(self, http_info)
3021
+
3022
+ def _list_secrets_http_info(self, request):
3023
+ http_info = {
3024
+ "method": "GET",
3025
+ "resource_path": "/v1/{project_id}/cae/dew-secrets",
3026
+ "request_type": request.__class__.__name__,
3027
+ "response_type": "ListSecretsResponse"
3028
+ }
3029
+
3030
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3031
+
3032
+ cname = None
3033
+
3034
+ collection_formats = {}
3035
+
3036
+ path_params = {}
3037
+
3038
+ query_params = []
3039
+
3040
+ header_params = {}
3041
+ if 'x_enterprise_project_id' in local_var_params:
3042
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3043
+
3044
+ form_params = {}
3045
+
3046
+ body = None
3047
+ if isinstance(request, SdkStreamRequest):
3048
+ body = request.get_file_stream()
3049
+
3050
+ response_headers = []
3051
+
3052
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3053
+ ['application/json'])
3054
+
3055
+ auth_settings = []
3056
+
3057
+ http_info["cname"] = cname
3058
+ http_info["collection_formats"] = collection_formats
3059
+ http_info["path_params"] = path_params
3060
+ http_info["query_params"] = query_params
3061
+ http_info["header_params"] = header_params
3062
+ http_info["post_params"] = form_params
3063
+ http_info["body"] = body
3064
+ http_info["response_headers"] = response_headers
3065
+
3066
+ return http_info
3067
+
3068
+ def update_secret_async(self, request):
3069
+ r"""修改用户已在DEW服务上注册的凭据版本。
3070
+
3071
+ 修改用户已在DEW服务上注册的凭据版本。
3072
+
3073
+ Please refer to HUAWEI cloud API Explorer for details.
3074
+
3075
+
3076
+ :param request: Request instance for UpdateSecret
3077
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateSecretRequest`
3078
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateSecretResponse`
3079
+ """
3080
+ http_info = self._update_secret_http_info(request)
3081
+ return self._call_api(**http_info)
3082
+
3083
+ def update_secret_async_invoker(self, request):
3084
+ http_info = self._update_secret_http_info(request)
3085
+ return AsyncInvoker(self, http_info)
3086
+
3087
+ def _update_secret_http_info(self, request):
3088
+ http_info = {
3089
+ "method": "PUT",
3090
+ "resource_path": "/v1/{project_id}/cae/dew-secrets/{secret_id}",
3091
+ "request_type": request.__class__.__name__,
3092
+ "response_type": "UpdateSecretResponse"
3093
+ }
3094
+
3095
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3096
+
3097
+ cname = None
3098
+
3099
+ collection_formats = {}
3100
+
3101
+ path_params = {}
3102
+ if 'secret_id' in local_var_params:
3103
+ path_params['secret_id'] = local_var_params['secret_id']
3104
+
3105
+ query_params = []
3106
+
3107
+ header_params = {}
3108
+ if 'x_enterprise_project_id' in local_var_params:
3109
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3110
+
3111
+ form_params = {}
3112
+
3113
+ body = None
3114
+ if 'body' in local_var_params:
3115
+ body = local_var_params['body']
3116
+ if isinstance(request, SdkStreamRequest):
3117
+ body = request.get_file_stream()
3118
+
3119
+ response_headers = []
3120
+
3121
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3122
+ ['application/json'])
3123
+
3124
+ auth_settings = []
3125
+
3126
+ http_info["cname"] = cname
3127
+ http_info["collection_formats"] = collection_formats
3128
+ http_info["path_params"] = path_params
3129
+ http_info["query_params"] = query_params
3130
+ http_info["header_params"] = header_params
3131
+ http_info["post_params"] = form_params
3132
+ http_info["body"] = body
3133
+ http_info["response_headers"] = response_headers
3134
+
3135
+ return http_info
3136
+
3137
+ def create_volume_async(self, request):
3138
+ r"""授权云存储
3139
+
3140
+ 授权云存储。
3141
+
3142
+ Please refer to HUAWEI cloud API Explorer for details.
3143
+
3144
+
3145
+ :param request: Request instance for CreateVolume
3146
+ :type request: :class:`huaweicloudsdkcae.v1.CreateVolumeRequest`
3147
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateVolumeResponse`
3148
+ """
3149
+ http_info = self._create_volume_http_info(request)
3150
+ return self._call_api(**http_info)
3151
+
3152
+ def create_volume_async_invoker(self, request):
3153
+ http_info = self._create_volume_http_info(request)
3154
+ return AsyncInvoker(self, http_info)
3155
+
3156
+ def _create_volume_http_info(self, request):
3157
+ http_info = {
3158
+ "method": "POST",
3159
+ "resource_path": "/v1/{project_id}/cae/volumes",
3160
+ "request_type": request.__class__.__name__,
3161
+ "response_type": "CreateVolumeResponse"
3162
+ }
3163
+
3164
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3165
+
3166
+ cname = None
3167
+
3168
+ collection_formats = {}
3169
+
3170
+ path_params = {}
3171
+
3172
+ query_params = []
3173
+
3174
+ header_params = {}
3175
+ if 'x_enterprise_project_id' in local_var_params:
3176
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3177
+ if 'x_environment_id' in local_var_params:
3178
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3179
+
3180
+ form_params = {}
3181
+
3182
+ body = None
3183
+ if 'body' in local_var_params:
3184
+ body = local_var_params['body']
3185
+ if isinstance(request, SdkStreamRequest):
3186
+ body = request.get_file_stream()
3187
+
3188
+ response_headers = []
3189
+
3190
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3191
+ ['application/json'])
3192
+
3193
+ auth_settings = []
3194
+
3195
+ http_info["cname"] = cname
3196
+ http_info["collection_formats"] = collection_formats
3197
+ http_info["path_params"] = path_params
3198
+ http_info["query_params"] = query_params
3199
+ http_info["header_params"] = header_params
3200
+ http_info["post_params"] = form_params
3201
+ http_info["body"] = body
3202
+ http_info["response_headers"] = response_headers
3203
+
3204
+ return http_info
3205
+
3206
+ def delete_volume_async(self, request):
3207
+ r"""解绑云存储
3208
+
3209
+ 解绑云存储。
3210
+
3211
+ Please refer to HUAWEI cloud API Explorer for details.
3212
+
3213
+
3214
+ :param request: Request instance for DeleteVolume
3215
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteVolumeRequest`
3216
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteVolumeResponse`
3217
+ """
3218
+ http_info = self._delete_volume_http_info(request)
3219
+ return self._call_api(**http_info)
3220
+
3221
+ def delete_volume_async_invoker(self, request):
3222
+ http_info = self._delete_volume_http_info(request)
3223
+ return AsyncInvoker(self, http_info)
3224
+
3225
+ def _delete_volume_http_info(self, request):
3226
+ http_info = {
3227
+ "method": "DELETE",
3228
+ "resource_path": "/v1/{project_id}/cae/volumes/{id}",
3229
+ "request_type": request.__class__.__name__,
3230
+ "response_type": "DeleteVolumeResponse"
3231
+ }
3232
+
3233
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3234
+
3235
+ cname = None
3236
+
3237
+ collection_formats = {}
3238
+
3239
+ path_params = {}
3240
+ if 'id' in local_var_params:
3241
+ path_params['id'] = local_var_params['id']
3242
+
3243
+ query_params = []
3244
+
3245
+ header_params = {}
3246
+ if 'x_enterprise_project_id' in local_var_params:
3247
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3248
+ if 'x_environment_id' in local_var_params:
3249
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3250
+
3251
+ form_params = {}
3252
+
3253
+ body = None
3254
+ if isinstance(request, SdkStreamRequest):
3255
+ body = request.get_file_stream()
3256
+
3257
+ response_headers = []
3258
+
3259
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3260
+ ['application/json'])
3261
+
3262
+ auth_settings = []
3263
+
3264
+ http_info["cname"] = cname
3265
+ http_info["collection_formats"] = collection_formats
3266
+ http_info["path_params"] = path_params
3267
+ http_info["query_params"] = query_params
3268
+ http_info["header_params"] = header_params
3269
+ http_info["post_params"] = form_params
3270
+ http_info["body"] = body
3271
+ http_info["response_headers"] = response_headers
3272
+
3273
+ return http_info
3274
+
3275
+ def list_volumes_async(self, request):
3276
+ r"""获取云存储列表
3277
+
3278
+ 获取云存储列表。
3279
+
3280
+ Please refer to HUAWEI cloud API Explorer for details.
3281
+
3282
+
3283
+ :param request: Request instance for ListVolumes
3284
+ :type request: :class:`huaweicloudsdkcae.v1.ListVolumesRequest`
3285
+ :rtype: :class:`huaweicloudsdkcae.v1.ListVolumesResponse`
3286
+ """
3287
+ http_info = self._list_volumes_http_info(request)
3288
+ return self._call_api(**http_info)
3289
+
3290
+ def list_volumes_async_invoker(self, request):
3291
+ http_info = self._list_volumes_http_info(request)
3292
+ return AsyncInvoker(self, http_info)
3293
+
3294
+ def _list_volumes_http_info(self, request):
3295
+ http_info = {
3296
+ "method": "GET",
3297
+ "resource_path": "/v1/{project_id}/cae/volumes",
3298
+ "request_type": request.__class__.__name__,
3299
+ "response_type": "ListVolumesResponse"
3300
+ }
3301
+
3302
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3303
+
3304
+ cname = None
3305
+
3306
+ collection_formats = {}
3307
+
3308
+ path_params = {}
3309
+
3310
+ query_params = []
3311
+ if 'resource_type' in local_var_params:
3312
+ query_params.append(('resource_type', local_var_params['resource_type']))
3313
+
3314
+ header_params = {}
3315
+ if 'x_enterprise_project_id' in local_var_params:
3316
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3317
+ if 'x_environment_id' in local_var_params:
3318
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3319
+
3320
+ form_params = {}
3321
+
3322
+ body = None
3323
+ if isinstance(request, SdkStreamRequest):
3324
+ body = request.get_file_stream()
3325
+
3326
+ response_headers = []
3327
+
3328
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3329
+ ['application/json'])
3330
+
3331
+ auth_settings = []
3332
+
3333
+ http_info["cname"] = cname
3334
+ http_info["collection_formats"] = collection_formats
3335
+ http_info["path_params"] = path_params
3336
+ http_info["query_params"] = query_params
3337
+ http_info["header_params"] = header_params
3338
+ http_info["post_params"] = form_params
3339
+ http_info["body"] = body
3340
+ http_info["response_headers"] = response_headers
3341
+
3342
+ return http_info
3343
+
3344
+ def create_vpc_egress_async(self, request):
3345
+ r"""创建CAE环境访问VPC配置
3346
+
3347
+ 创建CAE环境访问VPC配置。
3348
+
3349
+ Please refer to HUAWEI cloud API Explorer for details.
3350
+
3351
+
3352
+ :param request: Request instance for CreateVpcEgress
3353
+ :type request: :class:`huaweicloudsdkcae.v1.CreateVpcEgressRequest`
3354
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateVpcEgressResponse`
3355
+ """
3356
+ http_info = self._create_vpc_egress_http_info(request)
3357
+ return self._call_api(**http_info)
3358
+
3359
+ def create_vpc_egress_async_invoker(self, request):
3360
+ http_info = self._create_vpc_egress_http_info(request)
3361
+ return AsyncInvoker(self, http_info)
3362
+
3363
+ def _create_vpc_egress_http_info(self, request):
3364
+ http_info = {
3365
+ "method": "POST",
3366
+ "resource_path": "/v1/{project_id}/cae/vpc-egress",
3367
+ "request_type": request.__class__.__name__,
3368
+ "response_type": "CreateVpcEgressResponse"
3369
+ }
3370
+
3371
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3372
+
3373
+ cname = None
3374
+
3375
+ collection_formats = {}
3376
+
3377
+ path_params = {}
3378
+
3379
+ query_params = []
3380
+
3381
+ header_params = {}
3382
+ if 'x_enterprise_project_id' in local_var_params:
3383
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3384
+ if 'x_environment_id' in local_var_params:
3385
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3386
+
3387
+ form_params = {}
3388
+
3389
+ body = None
3390
+ if 'body' in local_var_params:
3391
+ body = local_var_params['body']
3392
+ if isinstance(request, SdkStreamRequest):
3393
+ body = request.get_file_stream()
3394
+
3395
+ response_headers = []
3396
+
3397
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3398
+ ['application/json'])
3399
+
3400
+ auth_settings = []
3401
+
3402
+ http_info["cname"] = cname
3403
+ http_info["collection_formats"] = collection_formats
3404
+ http_info["path_params"] = path_params
3405
+ http_info["query_params"] = query_params
3406
+ http_info["header_params"] = header_params
3407
+ http_info["post_params"] = form_params
3408
+ http_info["body"] = body
3409
+ http_info["response_headers"] = response_headers
3410
+
3411
+ return http_info
3412
+
3413
+ def delete_vpc_egress_async(self, request):
3414
+ r"""删除CAE环境访问VPC配置
3415
+
3416
+ 删除CAE环境访问VPC配置。
3417
+
3418
+ Please refer to HUAWEI cloud API Explorer for details.
3419
+
3420
+
3421
+ :param request: Request instance for DeleteVpcEgress
3422
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteVpcEgressRequest`
3423
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteVpcEgressResponse`
3424
+ """
3425
+ http_info = self._delete_vpc_egress_http_info(request)
3426
+ return self._call_api(**http_info)
3427
+
3428
+ def delete_vpc_egress_async_invoker(self, request):
3429
+ http_info = self._delete_vpc_egress_http_info(request)
3430
+ return AsyncInvoker(self, http_info)
3431
+
3432
+ def _delete_vpc_egress_http_info(self, request):
3433
+ http_info = {
3434
+ "method": "DELETE",
3435
+ "resource_path": "/v1/{project_id}/cae/vpc-egress/{vpc_egress_id}",
3436
+ "request_type": request.__class__.__name__,
3437
+ "response_type": "DeleteVpcEgressResponse"
3438
+ }
3439
+
3440
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3441
+
3442
+ cname = None
3443
+
3444
+ collection_formats = {}
3445
+
3446
+ path_params = {}
3447
+ if 'vpc_egress_id' in local_var_params:
3448
+ path_params['vpc_egress_id'] = local_var_params['vpc_egress_id']
3449
+
3450
+ query_params = []
3451
+
3452
+ header_params = {}
3453
+ if 'x_enterprise_project_id' in local_var_params:
3454
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3455
+ if 'x_environment_id' in local_var_params:
3456
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3457
+
3458
+ form_params = {}
3459
+
3460
+ body = None
3461
+ if isinstance(request, SdkStreamRequest):
3462
+ body = request.get_file_stream()
3463
+
3464
+ response_headers = []
3465
+
3466
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3467
+ ['application/json'])
3468
+
3469
+ auth_settings = []
3470
+
3471
+ http_info["cname"] = cname
3472
+ http_info["collection_formats"] = collection_formats
3473
+ http_info["path_params"] = path_params
3474
+ http_info["query_params"] = query_params
3475
+ http_info["header_params"] = header_params
3476
+ http_info["post_params"] = form_params
3477
+ http_info["body"] = body
3478
+ http_info["response_headers"] = response_headers
3479
+
3480
+ return http_info
3481
+
3482
+ def list_vpc_egress_async(self, request):
3483
+ r"""获取CAE环境访问VPC配置
3484
+
3485
+ 获取CAE环境访问VPC配置。
3486
+
3487
+ Please refer to HUAWEI cloud API Explorer for details.
3488
+
3489
+
3490
+ :param request: Request instance for ListVpcEgress
3491
+ :type request: :class:`huaweicloudsdkcae.v1.ListVpcEgressRequest`
3492
+ :rtype: :class:`huaweicloudsdkcae.v1.ListVpcEgressResponse`
3493
+ """
3494
+ http_info = self._list_vpc_egress_http_info(request)
3495
+ return self._call_api(**http_info)
3496
+
3497
+ def list_vpc_egress_async_invoker(self, request):
3498
+ http_info = self._list_vpc_egress_http_info(request)
3499
+ return AsyncInvoker(self, http_info)
3500
+
3501
+ def _list_vpc_egress_http_info(self, request):
3502
+ http_info = {
3503
+ "method": "GET",
3504
+ "resource_path": "/v1/{project_id}/cae/vpc-egress",
3505
+ "request_type": request.__class__.__name__,
3506
+ "response_type": "ListVpcEgressResponse"
3507
+ }
3508
+
3509
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3510
+
3511
+ cname = None
3512
+
3513
+ collection_formats = {}
3514
+
3515
+ path_params = {}
3516
+
3517
+ query_params = []
3518
+
3519
+ header_params = {}
3520
+ if 'x_enterprise_project_id' in local_var_params:
3521
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3522
+ if 'x_environment_id' in local_var_params:
3523
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3524
+
3525
+ form_params = {}
3526
+
3527
+ body = None
3528
+ if isinstance(request, SdkStreamRequest):
3529
+ body = request.get_file_stream()
3530
+
3531
+ response_headers = []
3532
+
3533
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3534
+ ['application/json'])
3535
+
3536
+ auth_settings = []
3537
+
3538
+ http_info["cname"] = cname
3539
+ http_info["collection_formats"] = collection_formats
3540
+ http_info["path_params"] = path_params
3541
+ http_info["query_params"] = query_params
3542
+ http_info["header_params"] = header_params
3543
+ http_info["post_params"] = form_params
3544
+ http_info["body"] = body
3545
+ http_info["response_headers"] = response_headers
3546
+
3547
+ return http_info
3548
+
3549
+ def create_timer_rule_async(self, request):
3550
+ r"""创建定时启停规则
3551
+
3552
+ 创建定时启停规则。
3553
+
3554
+ Please refer to HUAWEI cloud API Explorer for details.
3555
+
3556
+
3557
+ :param request: Request instance for CreateTimerRule
3558
+ :type request: :class:`huaweicloudsdkcae.v1.CreateTimerRuleRequest`
3559
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateTimerRuleResponse`
3560
+ """
3561
+ http_info = self._create_timer_rule_http_info(request)
3562
+ return self._call_api(**http_info)
3563
+
3564
+ def create_timer_rule_async_invoker(self, request):
3565
+ http_info = self._create_timer_rule_http_info(request)
3566
+ return AsyncInvoker(self, http_info)
3567
+
3568
+ def _create_timer_rule_http_info(self, request):
3569
+ http_info = {
3570
+ "method": "POST",
3571
+ "resource_path": "/v1/{project_id}/cae/timer-rules",
3572
+ "request_type": request.__class__.__name__,
3573
+ "response_type": "CreateTimerRuleResponse"
3574
+ }
3575
+
3576
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3577
+
3578
+ cname = None
3579
+
3580
+ collection_formats = {}
3581
+
3582
+ path_params = {}
3583
+
3584
+ query_params = []
3585
+
3586
+ header_params = {}
3587
+ if 'x_enterprise_project_id' in local_var_params:
3588
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3589
+ if 'x_environment_id' in local_var_params:
3590
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3591
+
3592
+ form_params = {}
3593
+
3594
+ body = None
3595
+ if 'body' in local_var_params:
3596
+ body = local_var_params['body']
3597
+ if isinstance(request, SdkStreamRequest):
3598
+ body = request.get_file_stream()
3599
+
3600
+ response_headers = []
3601
+
3602
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3603
+ ['application/json'])
3604
+
3605
+ auth_settings = []
3606
+
3607
+ http_info["cname"] = cname
3608
+ http_info["collection_formats"] = collection_formats
3609
+ http_info["path_params"] = path_params
3610
+ http_info["query_params"] = query_params
3611
+ http_info["header_params"] = header_params
3612
+ http_info["post_params"] = form_params
3613
+ http_info["body"] = body
3614
+ http_info["response_headers"] = response_headers
3615
+
3616
+ return http_info
3617
+
3618
+ def delete_timer_rule_async(self, request):
3619
+ r"""删除定时启停规则
3620
+
3621
+ 删除定时启停规则。
3622
+
3623
+ Please refer to HUAWEI cloud API Explorer for details.
3624
+
3625
+
3626
+ :param request: Request instance for DeleteTimerRule
3627
+ :type request: :class:`huaweicloudsdkcae.v1.DeleteTimerRuleRequest`
3628
+ :rtype: :class:`huaweicloudsdkcae.v1.DeleteTimerRuleResponse`
3629
+ """
3630
+ http_info = self._delete_timer_rule_http_info(request)
3631
+ return self._call_api(**http_info)
3632
+
3633
+ def delete_timer_rule_async_invoker(self, request):
3634
+ http_info = self._delete_timer_rule_http_info(request)
3635
+ return AsyncInvoker(self, http_info)
3636
+
3637
+ def _delete_timer_rule_http_info(self, request):
3638
+ http_info = {
3639
+ "method": "DELETE",
3640
+ "resource_path": "/v1/{project_id}/cae/timer-rules/{timer_rule_id}",
3641
+ "request_type": request.__class__.__name__,
3642
+ "response_type": "DeleteTimerRuleResponse"
3643
+ }
3644
+
3645
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3646
+
3647
+ cname = None
3648
+
3649
+ collection_formats = {}
3650
+
3651
+ path_params = {}
3652
+ if 'timer_rule_id' in local_var_params:
3653
+ path_params['timer_rule_id'] = local_var_params['timer_rule_id']
3654
+
3655
+ query_params = []
3656
+
3657
+ header_params = {}
3658
+ if 'x_enterprise_project_id' in local_var_params:
3659
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3660
+ if 'x_environment_id' in local_var_params:
3661
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3662
+
3663
+ form_params = {}
3664
+
3665
+ body = None
3666
+ if isinstance(request, SdkStreamRequest):
3667
+ body = request.get_file_stream()
3668
+
3669
+ response_headers = []
3670
+
3671
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3672
+ ['application/json'])
3673
+
3674
+ auth_settings = []
3675
+
3676
+ http_info["cname"] = cname
3677
+ http_info["collection_formats"] = collection_formats
3678
+ http_info["path_params"] = path_params
3679
+ http_info["query_params"] = query_params
3680
+ http_info["header_params"] = header_params
3681
+ http_info["post_params"] = form_params
3682
+ http_info["body"] = body
3683
+ http_info["response_headers"] = response_headers
3684
+
3685
+ return http_info
3686
+
3687
+ def list_timer_rules_async(self, request):
3688
+ r"""获取定时启停规则列表
3689
+
3690
+ 获取定时启停规则列表。
3691
+
3692
+ Please refer to HUAWEI cloud API Explorer for details.
3693
+
3694
+
3695
+ :param request: Request instance for ListTimerRules
3696
+ :type request: :class:`huaweicloudsdkcae.v1.ListTimerRulesRequest`
3697
+ :rtype: :class:`huaweicloudsdkcae.v1.ListTimerRulesResponse`
3698
+ """
3699
+ http_info = self._list_timer_rules_http_info(request)
3700
+ return self._call_api(**http_info)
3701
+
3702
+ def list_timer_rules_async_invoker(self, request):
3703
+ http_info = self._list_timer_rules_http_info(request)
3704
+ return AsyncInvoker(self, http_info)
3705
+
3706
+ def _list_timer_rules_http_info(self, request):
3707
+ http_info = {
3708
+ "method": "GET",
3709
+ "resource_path": "/v1/{project_id}/cae/timer-rules",
3710
+ "request_type": request.__class__.__name__,
3711
+ "response_type": "ListTimerRulesResponse"
3712
+ }
3713
+
3714
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3715
+
3716
+ cname = None
3717
+
3718
+ collection_formats = {}
3719
+
3720
+ path_params = {}
3721
+
3722
+ query_params = []
3723
+
3724
+ header_params = {}
3725
+ if 'x_enterprise_project_id' in local_var_params:
3726
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3727
+ if 'x_environment_id' in local_var_params:
3728
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3729
+
3730
+ form_params = {}
3731
+
3732
+ body = None
3733
+ if isinstance(request, SdkStreamRequest):
3734
+ body = request.get_file_stream()
3735
+
3736
+ response_headers = []
3737
+
3738
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3739
+ ['application/json'])
3740
+
3741
+ auth_settings = []
3742
+
3743
+ http_info["cname"] = cname
3744
+ http_info["collection_formats"] = collection_formats
3745
+ http_info["path_params"] = path_params
3746
+ http_info["query_params"] = query_params
3747
+ http_info["header_params"] = header_params
3748
+ http_info["post_params"] = form_params
3749
+ http_info["body"] = body
3750
+ http_info["response_headers"] = response_headers
3751
+
3752
+ return http_info
3753
+
3754
+ def show_execution_result_async(self, request):
3755
+ r"""获取上次定时启停规则的执行情况
3756
+
3757
+ 获取上次定时启停规则的执行情况。
3758
+
3759
+ Please refer to HUAWEI cloud API Explorer for details.
3760
+
3761
+
3762
+ :param request: Request instance for ShowExecutionResult
3763
+ :type request: :class:`huaweicloudsdkcae.v1.ShowExecutionResultRequest`
3764
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowExecutionResultResponse`
3765
+ """
3766
+ http_info = self._show_execution_result_http_info(request)
3767
+ return self._call_api(**http_info)
3768
+
3769
+ def show_execution_result_async_invoker(self, request):
3770
+ http_info = self._show_execution_result_http_info(request)
3771
+ return AsyncInvoker(self, http_info)
3772
+
3773
+ def _show_execution_result_http_info(self, request):
3774
+ http_info = {
3775
+ "method": "GET",
3776
+ "resource_path": "/v1/{project_id}/cae/timer-rules/{timer_rule_id}/execution-results",
3777
+ "request_type": request.__class__.__name__,
3778
+ "response_type": "ShowExecutionResultResponse"
3779
+ }
3780
+
3781
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3782
+
3783
+ cname = None
3784
+
3785
+ collection_formats = {}
3786
+
3787
+ path_params = {}
3788
+ if 'timer_rule_id' in local_var_params:
3789
+ path_params['timer_rule_id'] = local_var_params['timer_rule_id']
3790
+
3791
+ query_params = []
3792
+
3793
+ header_params = {}
3794
+ if 'x_enterprise_project_id' in local_var_params:
3795
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3796
+ if 'x_environment_id' in local_var_params:
3797
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3798
+
3799
+ form_params = {}
3800
+
3801
+ body = None
3802
+ if isinstance(request, SdkStreamRequest):
3803
+ body = request.get_file_stream()
3804
+
3805
+ response_headers = []
3806
+
3807
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3808
+ ['application/json'])
3809
+
3810
+ auth_settings = []
3811
+
3812
+ http_info["cname"] = cname
3813
+ http_info["collection_formats"] = collection_formats
3814
+ http_info["path_params"] = path_params
3815
+ http_info["query_params"] = query_params
3816
+ http_info["header_params"] = header_params
3817
+ http_info["post_params"] = form_params
3818
+ http_info["body"] = body
3819
+ http_info["response_headers"] = response_headers
3820
+
3821
+ return http_info
3822
+
3823
+ def update_timer_rule_async(self, request):
3824
+ r"""修改定时启停规则
3825
+
3826
+ 修改定时启停规则。
3827
+
3828
+ Please refer to HUAWEI cloud API Explorer for details.
3829
+
3830
+
3831
+ :param request: Request instance for UpdateTimerRule
3832
+ :type request: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleRequest`
3833
+ :rtype: :class:`huaweicloudsdkcae.v1.UpdateTimerRuleResponse`
3834
+ """
3835
+ http_info = self._update_timer_rule_http_info(request)
3836
+ return self._call_api(**http_info)
3837
+
3838
+ def update_timer_rule_async_invoker(self, request):
3839
+ http_info = self._update_timer_rule_http_info(request)
3840
+ return AsyncInvoker(self, http_info)
3841
+
3842
+ def _update_timer_rule_http_info(self, request):
3843
+ http_info = {
3844
+ "method": "PUT",
3845
+ "resource_path": "/v1/{project_id}/cae/timer-rules/{timer_rule_id}",
3846
+ "request_type": request.__class__.__name__,
3847
+ "response_type": "UpdateTimerRuleResponse"
3848
+ }
3849
+
3850
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3851
+
3852
+ cname = None
3853
+
3854
+ collection_formats = {}
3855
+
3856
+ path_params = {}
3857
+ if 'timer_rule_id' in local_var_params:
3858
+ path_params['timer_rule_id'] = local_var_params['timer_rule_id']
3859
+
3860
+ query_params = []
3861
+
3862
+ header_params = {}
3863
+ if 'x_enterprise_project_id' in local_var_params:
3864
+ header_params['X-Enterprise-Project-ID'] = local_var_params['x_enterprise_project_id']
3865
+ if 'x_environment_id' in local_var_params:
3866
+ header_params['X-Environment-ID'] = local_var_params['x_environment_id']
3867
+
3868
+ form_params = {}
3869
+
3870
+ body = None
3871
+ if 'body' in local_var_params:
3872
+ body = local_var_params['body']
3873
+ if isinstance(request, SdkStreamRequest):
3874
+ body = request.get_file_stream()
3875
+
3876
+ response_headers = []
3877
+
3878
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3879
+ ['application/json'])
3880
+
3881
+ auth_settings = []
3882
+
3883
+ http_info["cname"] = cname
3884
+ http_info["collection_formats"] = collection_formats
3885
+ http_info["path_params"] = path_params
3886
+ http_info["query_params"] = query_params
3887
+ http_info["header_params"] = header_params
3888
+ http_info["post_params"] = form_params
3889
+ http_info["body"] = body
3890
+ http_info["response_headers"] = response_headers
3891
+
3892
+ return http_info
3893
+
3894
+ def _call_api(self, **kwargs):
3895
+ try:
3896
+ kwargs["async_request"] = True
3897
+ return self.do_http_request(**kwargs)
3898
+ except TypeError:
3899
+ import inspect
3900
+ params = inspect.signature(self.do_http_request).parameters
3901
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
3902
+ return self.do_http_request(**http_info)
3903
+
3904
+ def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
3905
+ post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
3906
+ collection_formats=None, request_type=None):
3907
+ """Makes the HTTP request and returns deserialized data.
3908
+
3909
+ :param resource_path: Path to method endpoint.
3910
+ :param method: Method to call.
3911
+ :param path_params: Path parameters in the url.
3912
+ :param query_params: Query parameters in the url.
3913
+ :param header_params: Header parameters to be
3914
+ placed in the request header.
3915
+ :param body: Request body.
3916
+ :param post_params: Request post form parameters,
3917
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
3918
+ :param cname: Used for obs endpoint.
3919
+ :param auth_settings: Auth Settings names for the request.
3920
+ :param response_type: Response data type.
3921
+ :param response_headers: Header should be added to response data.
3922
+ :param collection_formats: dict of collection formats for path, query,
3923
+ header, and post parameters.
3924
+ :param request_type: Request data type.
3925
+ :return:
3926
+ Return the response directly.
3927
+ """
3928
+ return self.do_http_request(
3929
+ method=method,
3930
+ resource_path=resource_path,
3931
+ path_params=path_params,
3932
+ query_params=query_params,
3933
+ header_params=header_params,
3934
+ body=body,
3935
+ post_params=post_params,
3936
+ cname=cname,
3937
+ response_type=response_type,
3938
+ response_headers=response_headers,
3939
+ collection_formats=collection_formats,
3940
+ request_type=request_type,
3941
+ async_request=True)