huaweicloudsdkcae 3.1.179__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) 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 +137 -0
  7. huaweicloudsdkcae/v1/model/access_configuration_data_items.py +361 -0
  8. huaweicloudsdkcae/v1/model/access_configuration_http_path.py +166 -0
  9. huaweicloudsdkcae/v1/model/access_configuration_metadata.py +108 -0
  10. huaweicloudsdkcae/v1/model/access_configuration_port.py +365 -0
  11. huaweicloudsdkcae/v1/model/access_control.py +137 -0
  12. huaweicloudsdkcae/v1/model/action_kind_obj.py +80 -0
  13. huaweicloudsdkcae/v1/model/action_on_component_build.py +133 -0
  14. huaweicloudsdkcae/v1/model/action_on_component_source.py +191 -0
  15. huaweicloudsdkcae/v1/model/action_on_component_spec.py +212 -0
  16. huaweicloudsdkcae/v1/model/agency.py +151 -0
  17. huaweicloudsdkcae/v1/model/agency_item.py +108 -0
  18. huaweicloudsdkcae/v1/model/agency_kind_obj.py +80 -0
  19. huaweicloudsdkcae/v1/model/agency_metadata.py +132 -0
  20. huaweicloudsdkcae/v1/model/api_version_obj.py +80 -0
  21. huaweicloudsdkcae/v1/model/app_info.py +137 -0
  22. huaweicloudsdkcae/v1/model/application_item.py +195 -0
  23. huaweicloudsdkcae/v1/model/application_kind_obj.py +80 -0
  24. huaweicloudsdkcae/v1/model/application_metadata.py +195 -0
  25. huaweicloudsdkcae/v1/model/archive.py +108 -0
  26. huaweicloudsdkcae/v1/model/build.py +131 -0
  27. huaweicloudsdkcae/v1/model/cert_item.py +129 -0
  28. huaweicloudsdkcae/v1/model/cert_req.py +175 -0
  29. huaweicloudsdkcae/v1/model/certificate_kind_obj.py +80 -0
  30. huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +137 -0
  31. huaweicloudsdkcae/v1/model/component_configuration_kind_obj.py +80 -0
  32. huaweicloudsdkcae/v1/model/component_execution_result.py +195 -0
  33. huaweicloudsdkcae/v1/model/component_info.py +137 -0
  34. huaweicloudsdkcae/v1/model/component_item.py +249 -0
  35. huaweicloudsdkcae/v1/model/component_kind_obj.py +80 -0
  36. huaweicloudsdkcae/v1/model/component_snapshot_context.py +717 -0
  37. huaweicloudsdkcae/v1/model/component_snapshot_item.py +220 -0
  38. huaweicloudsdkcae/v1/model/component_snapshot_kind_obj.py +80 -0
  39. huaweicloudsdkcae/v1/model/component_spec.py +473 -0
  40. huaweicloudsdkcae/v1/model/configuration.py +249 -0
  41. huaweicloudsdkcae/v1/model/configuration_data.py +129 -0
  42. huaweicloudsdkcae/v1/model/configuration_data_metadata.py +108 -0
  43. huaweicloudsdkcae/v1/model/configuration_item.py +131 -0
  44. huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +896 -0
  45. huaweicloudsdkcae/v1/model/configuration_request_data_spec_post_start.py +104 -0
  46. huaweicloudsdkcae/v1/model/configuration_request_data_spec_pre_stop.py +104 -0
  47. huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +1186 -0
  48. huaweicloudsdkcae/v1/model/configuration_response_data_spec_post_start.py +104 -0
  49. huaweicloudsdkcae/v1/model/configuration_response_data_spec_pre_stop.py +104 -0
  50. huaweicloudsdkcae/v1/model/create_agency_request.py +104 -0
  51. huaweicloudsdkcae/v1/model/create_agency_response.py +81 -0
  52. huaweicloudsdkcae/v1/model/create_application_request.py +161 -0
  53. huaweicloudsdkcae/v1/model/create_application_request_body.py +151 -0
  54. huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +107 -0
  55. huaweicloudsdkcae/v1/model/create_application_response.py +158 -0
  56. huaweicloudsdkcae/v1/model/create_certificate_request.py +161 -0
  57. huaweicloudsdkcae/v1/model/create_certificate_response.py +162 -0
  58. huaweicloudsdkcae/v1/model/create_component_configuration_request.py +217 -0
  59. huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +155 -0
  60. huaweicloudsdkcae/v1/model/create_component_configuration_response.py +81 -0
  61. huaweicloudsdkcae/v1/model/create_component_request.py +189 -0
  62. huaweicloudsdkcae/v1/model/create_component_request_body.py +175 -0
  63. huaweicloudsdkcae/v1/model/create_component_response.py +183 -0
  64. huaweicloudsdkcae/v1/model/create_component_spec.py +299 -0
  65. huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +189 -0
  66. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +206 -0
  67. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_metadata.py +135 -0
  68. huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_spec.py +237 -0
  69. huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +237 -0
  70. huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +108 -0
  71. huaweicloudsdkcae/v1/model/create_domain_req.py +151 -0
  72. huaweicloudsdkcae/v1/model/create_domain_request.py +161 -0
  73. huaweicloudsdkcae/v1/model/create_domain_response.py +166 -0
  74. huaweicloudsdkcae/v1/model/create_environment_request.py +133 -0
  75. huaweicloudsdkcae/v1/model/create_environment_request_body.py +151 -0
  76. huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +136 -0
  77. huaweicloudsdkcae/v1/model/create_environment_response.py +112 -0
  78. huaweicloudsdkcae/v1/model/create_meta_cert.py +107 -0
  79. huaweicloudsdkcae/v1/model/create_meta_domain.py +107 -0
  80. huaweicloudsdkcae/v1/model/create_monitor_system_request.py +161 -0
  81. huaweicloudsdkcae/v1/model/create_monitor_system_response.py +81 -0
  82. huaweicloudsdkcae/v1/model/create_notice_rule_item.py +237 -0
  83. huaweicloudsdkcae/v1/model/create_notice_rule_req.py +159 -0
  84. huaweicloudsdkcae/v1/model/create_notice_rule_request.py +133 -0
  85. huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +270 -0
  86. huaweicloudsdkcae/v1/model/create_notice_rule_response.py +166 -0
  87. huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +135 -0
  88. huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +159 -0
  89. huaweicloudsdkcae/v1/model/create_secret_request.py +161 -0
  90. huaweicloudsdkcae/v1/model/create_secret_response.py +166 -0
  91. huaweicloudsdkcae/v1/model/create_spec_cert.py +135 -0
  92. huaweicloudsdkcae/v1/model/create_timer_rule_req.py +154 -0
  93. huaweicloudsdkcae/v1/model/create_timer_rule_request.py +161 -0
  94. huaweicloudsdkcae/v1/model/create_timer_rule_response.py +158 -0
  95. huaweicloudsdkcae/v1/model/create_volume_req.py +151 -0
  96. huaweicloudsdkcae/v1/model/create_volume_request.py +161 -0
  97. huaweicloudsdkcae/v1/model/create_volume_response.py +81 -0
  98. huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +161 -0
  99. huaweicloudsdkcae/v1/model/create_vpc_egress_response.py +158 -0
  100. huaweicloudsdkcae/v1/model/cron_trigger_scheduler.py +137 -0
  101. huaweicloudsdkcae/v1/model/delete_application_request.py +164 -0
  102. huaweicloudsdkcae/v1/model/delete_application_response.py +81 -0
  103. huaweicloudsdkcae/v1/model/delete_certificate_request.py +164 -0
  104. huaweicloudsdkcae/v1/model/delete_certificate_response.py +81 -0
  105. huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +192 -0
  106. huaweicloudsdkcae/v1/model/delete_component_configuration_response.py +81 -0
  107. huaweicloudsdkcae/v1/model/delete_component_request.py +192 -0
  108. huaweicloudsdkcae/v1/model/delete_component_response.py +112 -0
  109. huaweicloudsdkcae/v1/model/delete_domain_request.py +164 -0
  110. huaweicloudsdkcae/v1/model/delete_domain_response.py +81 -0
  111. huaweicloudsdkcae/v1/model/delete_environment_request.py +136 -0
  112. huaweicloudsdkcae/v1/model/delete_environment_response.py +112 -0
  113. huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +132 -0
  114. huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +108 -0
  115. huaweicloudsdkcae/v1/model/delete_secret_request.py +136 -0
  116. huaweicloudsdkcae/v1/model/delete_secret_response.py +81 -0
  117. huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +164 -0
  118. huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +81 -0
  119. huaweicloudsdkcae/v1/model/delete_volume_request.py +164 -0
  120. huaweicloudsdkcae/v1/model/delete_volume_response.py +162 -0
  121. huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +164 -0
  122. huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +81 -0
  123. huaweicloudsdkcae/v1/model/domain_item.py +104 -0
  124. huaweicloudsdkcae/v1/model/domain_kind_obj.py +80 -0
  125. huaweicloudsdkcae/v1/model/egress_cidr.py +164 -0
  126. huaweicloudsdkcae/v1/model/eip_kind_obj.py +80 -0
  127. huaweicloudsdkcae/v1/model/environment_item.py +282 -0
  128. huaweicloudsdkcae/v1/model/environment_kind_obj.py +80 -0
  129. huaweicloudsdkcae/v1/model/execute_action_request.py +217 -0
  130. huaweicloudsdkcae/v1/model/execute_action_request_body.py +177 -0
  131. huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +136 -0
  132. huaweicloudsdkcae/v1/model/execute_action_response.py +112 -0
  133. huaweicloudsdkcae/v1/model/execution_details.py +137 -0
  134. huaweicloudsdkcae/v1/model/health_check_configuration_exec.py +108 -0
  135. huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +166 -0
  136. huaweicloudsdkcae/v1/model/health_check_configuration_liveness_probe.py +299 -0
  137. huaweicloudsdkcae/v1/model/health_check_configuration_readiness_probe.py +299 -0
  138. huaweicloudsdkcae/v1/model/health_check_configuration_startup_probe.py +299 -0
  139. huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +108 -0
  140. huaweicloudsdkcae/v1/model/instance.py +166 -0
  141. huaweicloudsdkcae/v1/model/job_kind_obj.py +80 -0
  142. huaweicloudsdkcae/v1/model/job_spec.py +166 -0
  143. huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py +108 -0
  144. huaweicloudsdkcae/v1/model/list_agencies_request.py +77 -0
  145. huaweicloudsdkcae/v1/model/list_agencies_response.py +162 -0
  146. huaweicloudsdkcae/v1/model/list_applications_request.py +136 -0
  147. huaweicloudsdkcae/v1/model/list_applications_response.py +162 -0
  148. huaweicloudsdkcae/v1/model/list_certificates_request.py +136 -0
  149. huaweicloudsdkcae/v1/model/list_certificates_response.py +162 -0
  150. huaweicloudsdkcae/v1/model/list_component_configurations_request.py +221 -0
  151. huaweicloudsdkcae/v1/model/list_component_configurations_response.py +170 -0
  152. huaweicloudsdkcae/v1/model/list_component_configurations_response_data.py +129 -0
  153. huaweicloudsdkcae/v1/model/list_component_instances_request.py +192 -0
  154. huaweicloudsdkcae/v1/model/list_component_instances_response.py +162 -0
  155. huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +192 -0
  156. huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +162 -0
  157. huaweicloudsdkcae/v1/model/list_components_request.py +280 -0
  158. huaweicloudsdkcae/v1/model/list_components_response.py +191 -0
  159. huaweicloudsdkcae/v1/model/list_domains_request.py +136 -0
  160. huaweicloudsdkcae/v1/model/list_domains_response.py +166 -0
  161. huaweicloudsdkcae/v1/model/list_effective_components_request.py +136 -0
  162. huaweicloudsdkcae/v1/model/list_effective_components_response.py +170 -0
  163. huaweicloudsdkcae/v1/model/list_eip_response_body_spec.py +129 -0
  164. huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +166 -0
  165. huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +166 -0
  166. huaweicloudsdkcae/v1/model/list_eips_request.py +136 -0
  167. huaweicloudsdkcae/v1/model/list_eips_response.py +158 -0
  168. huaweicloudsdkcae/v1/model/list_environments_request.py +108 -0
  169. huaweicloudsdkcae/v1/model/list_environments_response.py +162 -0
  170. huaweicloudsdkcae/v1/model/list_notice_rules_request.py +108 -0
  171. huaweicloudsdkcae/v1/model/list_notice_rules_response.py +170 -0
  172. huaweicloudsdkcae/v1/model/list_secrets_request.py +108 -0
  173. huaweicloudsdkcae/v1/model/list_secrets_response.py +170 -0
  174. huaweicloudsdkcae/v1/model/list_timer_rules_request.py +136 -0
  175. huaweicloudsdkcae/v1/model/list_timer_rules_response.py +158 -0
  176. huaweicloudsdkcae/v1/model/list_volumes_request.py +164 -0
  177. huaweicloudsdkcae/v1/model/list_volumes_response.py +162 -0
  178. huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +136 -0
  179. huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +158 -0
  180. huaweicloudsdkcae/v1/model/meta_cert.py +137 -0
  181. huaweicloudsdkcae/v1/model/meta_domain.py +166 -0
  182. huaweicloudsdkcae/v1/model/metadata_response.py +224 -0
  183. huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +80 -0
  184. huaweicloudsdkcae/v1/model/monitor_system_request_body.py +154 -0
  185. huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +306 -0
  186. huaweicloudsdkcae/v1/model/mount_component.py +253 -0
  187. huaweicloudsdkcae/v1/model/notice_rule_notification.py +164 -0
  188. huaweicloudsdkcae/v1/model/notice_rule_scope.py +194 -0
  189. huaweicloudsdkcae/v1/model/repo.py +166 -0
  190. huaweicloudsdkcae/v1/model/resource_limit.py +135 -0
  191. huaweicloudsdkcae/v1/model/resource_limit_for_upgrade.py +137 -0
  192. huaweicloudsdkcae/v1/model/resources_credential.py +137 -0
  193. huaweicloudsdkcae/v1/model/retry_job_request.py +164 -0
  194. huaweicloudsdkcae/v1/model/retry_job_response.py +81 -0
  195. huaweicloudsdkcae/v1/model/scale_configuration_data_advanced.py +224 -0
  196. huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py +133 -0
  197. huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +195 -0
  198. huaweicloudsdkcae/v1/model/secret_detail.py +276 -0
  199. huaweicloudsdkcae/v1/model/show_application_request.py +164 -0
  200. huaweicloudsdkcae/v1/model/show_application_response.py +158 -0
  201. huaweicloudsdkcae/v1/model/show_component_request.py +192 -0
  202. huaweicloudsdkcae/v1/model/show_component_response.py +183 -0
  203. huaweicloudsdkcae/v1/model/show_execution_result_request.py +164 -0
  204. huaweicloudsdkcae/v1/model/show_execution_result_response.py +158 -0
  205. huaweicloudsdkcae/v1/model/show_job_request.py +164 -0
  206. huaweicloudsdkcae/v1/model/show_job_response.py +158 -0
  207. huaweicloudsdkcae/v1/model/show_monitor_system_request.py +136 -0
  208. huaweicloudsdkcae/v1/model/show_monitor_system_response.py +158 -0
  209. huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +427 -0
  210. huaweicloudsdkcae/v1/model/show_notice_rule_request.py +132 -0
  211. huaweicloudsdkcae/v1/model/show_notice_rule_response.py +166 -0
  212. huaweicloudsdkcae/v1/model/source.py +189 -0
  213. huaweicloudsdkcae/v1/model/spec_cert.py +166 -0
  214. huaweicloudsdkcae/v1/model/task.py +253 -0
  215. huaweicloudsdkcae/v1/model/time_rule_kind_obj.py +80 -0
  216. huaweicloudsdkcae/v1/model/timer_rule_details.py +427 -0
  217. huaweicloudsdkcae/v1/model/trigger_policy.py +194 -0
  218. huaweicloudsdkcae/v1/model/update_cert_req.py +151 -0
  219. huaweicloudsdkcae/v1/model/update_certificate_request.py +189 -0
  220. huaweicloudsdkcae/v1/model/update_certificate_response.py +81 -0
  221. huaweicloudsdkcae/v1/model/update_component_request.py +217 -0
  222. huaweicloudsdkcae/v1/model/update_component_request_body.py +175 -0
  223. huaweicloudsdkcae/v1/model/update_component_request_metadata.py +136 -0
  224. huaweicloudsdkcae/v1/model/update_component_request_spec.py +211 -0
  225. huaweicloudsdkcae/v1/model/update_component_response.py +81 -0
  226. huaweicloudsdkcae/v1/model/update_eip_request.py +161 -0
  227. huaweicloudsdkcae/v1/model/update_eip_request_body.py +154 -0
  228. huaweicloudsdkcae/v1/model/update_eip_request_body_spec.py +129 -0
  229. huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +137 -0
  230. huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +137 -0
  231. huaweicloudsdkcae/v1/model/update_eip_response.py +81 -0
  232. huaweicloudsdkcae/v1/model/update_monitor_system_request.py +189 -0
  233. huaweicloudsdkcae/v1/model/update_monitor_system_response.py +81 -0
  234. huaweicloudsdkcae/v1/model/update_notice_rule_item.py +185 -0
  235. huaweicloudsdkcae/v1/model/update_notice_rule_req.py +159 -0
  236. huaweicloudsdkcae/v1/model/update_notice_rule_request.py +157 -0
  237. huaweicloudsdkcae/v1/model/update_notice_rule_response.py +166 -0
  238. huaweicloudsdkcae/v1/model/update_secret_request.py +161 -0
  239. huaweicloudsdkcae/v1/model/update_secret_response.py +166 -0
  240. huaweicloudsdkcae/v1/model/update_spec_cert.py +135 -0
  241. huaweicloudsdkcae/v1/model/update_timer_rule_details.py +305 -0
  242. huaweicloudsdkcae/v1/model/update_timer_rule_req.py +151 -0
  243. huaweicloudsdkcae/v1/model/update_timer_rule_request.py +189 -0
  244. huaweicloudsdkcae/v1/model/update_timer_rule_response.py +81 -0
  245. huaweicloudsdkcae/v1/model/volume.py +282 -0
  246. huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py +249 -0
  247. huaweicloudsdkcae/v1/model/volume_configuration_mount_info.py +166 -0
  248. huaweicloudsdkcae/v1/model/volume_kind_obj.py +80 -0
  249. huaweicloudsdkcae/v1/model/volume_spec.py +192 -0
  250. huaweicloudsdkcae/v1/model/vpc_egress_kind_obj.py +80 -0
  251. huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +154 -0
  252. huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +107 -0
  253. huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +166 -0
  254. huaweicloudsdkcae/v1/region/__init__.py +0 -0
  255. huaweicloudsdkcae/v1/region/cae_region.py +60 -0
  256. huaweicloudsdkcae-3.1.179.dist-info/METADATA +25 -0
  257. huaweicloudsdkcae-3.1.179.dist-info/RECORD +259 -0
  258. huaweicloudsdkcae-3.1.179.dist-info/WHEEL +4 -0
  259. huaweicloudsdkcae-3.1.179.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,299 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class CreateComponentSpec:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'runtime': 'str',
19
+ 'env_id': 'str',
20
+ 'replica': 'int',
21
+ 'source': 'Source',
22
+ 'build': 'Build',
23
+ 'resource_limit': 'ResourceLimit',
24
+ 'available_replica': 'int',
25
+ 'status': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'runtime': 'runtime',
30
+ 'env_id': 'env_id',
31
+ 'replica': 'replica',
32
+ 'source': 'source',
33
+ 'build': 'build',
34
+ 'resource_limit': 'resource_limit',
35
+ 'available_replica': 'available_replica',
36
+ 'status': 'status'
37
+ }
38
+
39
+ def __init__(self, runtime=None, env_id=None, replica=None, source=None, build=None, resource_limit=None, available_replica=None, status=None):
40
+ r"""CreateComponentSpec
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param runtime: 语言/运行时。
45
+ :type runtime: str
46
+ :param env_id: 环境ID。
47
+ :type env_id: str
48
+ :param replica: 实例个数。
49
+ :type replica: int
50
+ :param source:
51
+ :type source: :class:`huaweicloudsdkcae.v1.Source`
52
+ :param build:
53
+ :type build: :class:`huaweicloudsdkcae.v1.Build`
54
+ :param resource_limit:
55
+ :type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
56
+ :param available_replica: 可用实例个数。
57
+ :type available_replica: int
58
+ :param status: 组件状态。
59
+ :type status: str
60
+ """
61
+
62
+
63
+
64
+ self._runtime = None
65
+ self._env_id = None
66
+ self._replica = None
67
+ self._source = None
68
+ self._build = None
69
+ self._resource_limit = None
70
+ self._available_replica = None
71
+ self._status = None
72
+ self.discriminator = None
73
+
74
+ if runtime is not None:
75
+ self.runtime = runtime
76
+ if env_id is not None:
77
+ self.env_id = env_id
78
+ if replica is not None:
79
+ self.replica = replica
80
+ if source is not None:
81
+ self.source = source
82
+ if build is not None:
83
+ self.build = build
84
+ if resource_limit is not None:
85
+ self.resource_limit = resource_limit
86
+ if available_replica is not None:
87
+ self.available_replica = available_replica
88
+ if status is not None:
89
+ self.status = status
90
+
91
+ @property
92
+ def runtime(self):
93
+ r"""Gets the runtime of this CreateComponentSpec.
94
+
95
+ 语言/运行时。
96
+
97
+ :return: The runtime of this CreateComponentSpec.
98
+ :rtype: str
99
+ """
100
+ return self._runtime
101
+
102
+ @runtime.setter
103
+ def runtime(self, runtime):
104
+ r"""Sets the runtime of this CreateComponentSpec.
105
+
106
+ 语言/运行时。
107
+
108
+ :param runtime: The runtime of this CreateComponentSpec.
109
+ :type runtime: str
110
+ """
111
+ self._runtime = runtime
112
+
113
+ @property
114
+ def env_id(self):
115
+ r"""Gets the env_id of this CreateComponentSpec.
116
+
117
+ 环境ID。
118
+
119
+ :return: The env_id of this CreateComponentSpec.
120
+ :rtype: str
121
+ """
122
+ return self._env_id
123
+
124
+ @env_id.setter
125
+ def env_id(self, env_id):
126
+ r"""Sets the env_id of this CreateComponentSpec.
127
+
128
+ 环境ID。
129
+
130
+ :param env_id: The env_id of this CreateComponentSpec.
131
+ :type env_id: str
132
+ """
133
+ self._env_id = env_id
134
+
135
+ @property
136
+ def replica(self):
137
+ r"""Gets the replica of this CreateComponentSpec.
138
+
139
+ 实例个数。
140
+
141
+ :return: The replica of this CreateComponentSpec.
142
+ :rtype: int
143
+ """
144
+ return self._replica
145
+
146
+ @replica.setter
147
+ def replica(self, replica):
148
+ r"""Sets the replica of this CreateComponentSpec.
149
+
150
+ 实例个数。
151
+
152
+ :param replica: The replica of this CreateComponentSpec.
153
+ :type replica: int
154
+ """
155
+ self._replica = replica
156
+
157
+ @property
158
+ def source(self):
159
+ r"""Gets the source of this CreateComponentSpec.
160
+
161
+ :return: The source of this CreateComponentSpec.
162
+ :rtype: :class:`huaweicloudsdkcae.v1.Source`
163
+ """
164
+ return self._source
165
+
166
+ @source.setter
167
+ def source(self, source):
168
+ r"""Sets the source of this CreateComponentSpec.
169
+
170
+ :param source: The source of this CreateComponentSpec.
171
+ :type source: :class:`huaweicloudsdkcae.v1.Source`
172
+ """
173
+ self._source = source
174
+
175
+ @property
176
+ def build(self):
177
+ r"""Gets the build of this CreateComponentSpec.
178
+
179
+ :return: The build of this CreateComponentSpec.
180
+ :rtype: :class:`huaweicloudsdkcae.v1.Build`
181
+ """
182
+ return self._build
183
+
184
+ @build.setter
185
+ def build(self, build):
186
+ r"""Sets the build of this CreateComponentSpec.
187
+
188
+ :param build: The build of this CreateComponentSpec.
189
+ :type build: :class:`huaweicloudsdkcae.v1.Build`
190
+ """
191
+ self._build = build
192
+
193
+ @property
194
+ def resource_limit(self):
195
+ r"""Gets the resource_limit of this CreateComponentSpec.
196
+
197
+ :return: The resource_limit of this CreateComponentSpec.
198
+ :rtype: :class:`huaweicloudsdkcae.v1.ResourceLimit`
199
+ """
200
+ return self._resource_limit
201
+
202
+ @resource_limit.setter
203
+ def resource_limit(self, resource_limit):
204
+ r"""Sets the resource_limit of this CreateComponentSpec.
205
+
206
+ :param resource_limit: The resource_limit of this CreateComponentSpec.
207
+ :type resource_limit: :class:`huaweicloudsdkcae.v1.ResourceLimit`
208
+ """
209
+ self._resource_limit = resource_limit
210
+
211
+ @property
212
+ def available_replica(self):
213
+ r"""Gets the available_replica of this CreateComponentSpec.
214
+
215
+ 可用实例个数。
216
+
217
+ :return: The available_replica of this CreateComponentSpec.
218
+ :rtype: int
219
+ """
220
+ return self._available_replica
221
+
222
+ @available_replica.setter
223
+ def available_replica(self, available_replica):
224
+ r"""Sets the available_replica of this CreateComponentSpec.
225
+
226
+ 可用实例个数。
227
+
228
+ :param available_replica: The available_replica of this CreateComponentSpec.
229
+ :type available_replica: int
230
+ """
231
+ self._available_replica = available_replica
232
+
233
+ @property
234
+ def status(self):
235
+ r"""Gets the status of this CreateComponentSpec.
236
+
237
+ 组件状态。
238
+
239
+ :return: The status of this CreateComponentSpec.
240
+ :rtype: str
241
+ """
242
+ return self._status
243
+
244
+ @status.setter
245
+ def status(self, status):
246
+ r"""Sets the status of this CreateComponentSpec.
247
+
248
+ 组件状态。
249
+
250
+ :param status: The status of this CreateComponentSpec.
251
+ :type status: str
252
+ """
253
+ self._status = status
254
+
255
+ def to_dict(self):
256
+ result = {}
257
+
258
+ for attr, _ in self.openapi_types.items():
259
+ value = getattr(self, attr)
260
+ if isinstance(value, list):
261
+ result[attr] = list(map(
262
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
263
+ value
264
+ ))
265
+ elif hasattr(value, "to_dict"):
266
+ result[attr] = value.to_dict()
267
+ elif isinstance(value, dict):
268
+ result[attr] = dict(map(
269
+ lambda item: (item[0], item[1].to_dict())
270
+ if hasattr(item[1], "to_dict") else item,
271
+ value.items()
272
+ ))
273
+ else:
274
+ if attr in self.sensitive_list:
275
+ result[attr] = "****"
276
+ else:
277
+ result[attr] = value
278
+
279
+ return result
280
+
281
+ def to_str(self):
282
+ """Returns the string representation of the model"""
283
+ import simplejson as json
284
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
285
+
286
+ def __repr__(self):
287
+ """For `print`"""
288
+ return self.to_str()
289
+
290
+ def __eq__(self, other):
291
+ """Returns true if both objects are equal"""
292
+ if not isinstance(other, CreateComponentSpec):
293
+ return False
294
+
295
+ return self.__dict__ == other.__dict__
296
+
297
+ def __ne__(self, other):
298
+ """Returns true if both objects are not equal"""
299
+ return not self == other
@@ -0,0 +1,189 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class CreateComponentWithConfigurationRequest:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'application_id': 'str',
19
+ 'x_enterprise_project_id': 'str',
20
+ 'x_environment_id': 'str',
21
+ 'body': 'CreateComponentWithConfigurationRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'application_id': 'application_id',
26
+ 'x_enterprise_project_id': 'X-Enterprise-Project-ID',
27
+ 'x_environment_id': 'X-Environment-ID',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, application_id=None, x_enterprise_project_id=None, x_environment_id=None, body=None):
32
+ r"""CreateComponentWithConfigurationRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param application_id: 应用ID。
37
+ :type application_id: str
38
+ :param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
39
+ :type x_enterprise_project_id: str
40
+ :param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
41
+ :type x_environment_id: str
42
+ :param body: Body of the CreateComponentWithConfigurationRequest
43
+ :type body: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBody`
44
+ """
45
+
46
+
47
+
48
+ self._application_id = None
49
+ self._x_enterprise_project_id = None
50
+ self._x_environment_id = None
51
+ self._body = None
52
+ self.discriminator = None
53
+
54
+ self.application_id = application_id
55
+ if x_enterprise_project_id is not None:
56
+ self.x_enterprise_project_id = x_enterprise_project_id
57
+ self.x_environment_id = x_environment_id
58
+ if body is not None:
59
+ self.body = body
60
+
61
+ @property
62
+ def application_id(self):
63
+ r"""Gets the application_id of this CreateComponentWithConfigurationRequest.
64
+
65
+ 应用ID。
66
+
67
+ :return: The application_id of this CreateComponentWithConfigurationRequest.
68
+ :rtype: str
69
+ """
70
+ return self._application_id
71
+
72
+ @application_id.setter
73
+ def application_id(self, application_id):
74
+ r"""Sets the application_id of this CreateComponentWithConfigurationRequest.
75
+
76
+ 应用ID。
77
+
78
+ :param application_id: The application_id of this CreateComponentWithConfigurationRequest.
79
+ :type application_id: str
80
+ """
81
+ self._application_id = application_id
82
+
83
+ @property
84
+ def x_enterprise_project_id(self):
85
+ r"""Gets the x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
86
+
87
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
88
+
89
+ :return: The x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
90
+ :rtype: str
91
+ """
92
+ return self._x_enterprise_project_id
93
+
94
+ @x_enterprise_project_id.setter
95
+ def x_enterprise_project_id(self, x_enterprise_project_id):
96
+ r"""Sets the x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
97
+
98
+ 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
99
+
100
+ :param x_enterprise_project_id: The x_enterprise_project_id of this CreateComponentWithConfigurationRequest.
101
+ :type x_enterprise_project_id: str
102
+ """
103
+ self._x_enterprise_project_id = x_enterprise_project_id
104
+
105
+ @property
106
+ def x_environment_id(self):
107
+ r"""Gets the x_environment_id of this CreateComponentWithConfigurationRequest.
108
+
109
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
110
+
111
+ :return: The x_environment_id of this CreateComponentWithConfigurationRequest.
112
+ :rtype: str
113
+ """
114
+ return self._x_environment_id
115
+
116
+ @x_environment_id.setter
117
+ def x_environment_id(self, x_environment_id):
118
+ r"""Sets the x_environment_id of this CreateComponentWithConfigurationRequest.
119
+
120
+ 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
121
+
122
+ :param x_environment_id: The x_environment_id of this CreateComponentWithConfigurationRequest.
123
+ :type x_environment_id: str
124
+ """
125
+ self._x_environment_id = x_environment_id
126
+
127
+ @property
128
+ def body(self):
129
+ r"""Gets the body of this CreateComponentWithConfigurationRequest.
130
+
131
+ :return: The body of this CreateComponentWithConfigurationRequest.
132
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBody`
133
+ """
134
+ return self._body
135
+
136
+ @body.setter
137
+ def body(self, body):
138
+ r"""Sets the body of this CreateComponentWithConfigurationRequest.
139
+
140
+ :param body: The body of this CreateComponentWithConfigurationRequest.
141
+ :type body: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBody`
142
+ """
143
+ self._body = body
144
+
145
+ def to_dict(self):
146
+ result = {}
147
+
148
+ for attr, _ in self.openapi_types.items():
149
+ value = getattr(self, attr)
150
+ if isinstance(value, list):
151
+ result[attr] = list(map(
152
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
153
+ value
154
+ ))
155
+ elif hasattr(value, "to_dict"):
156
+ result[attr] = value.to_dict()
157
+ elif isinstance(value, dict):
158
+ result[attr] = dict(map(
159
+ lambda item: (item[0], item[1].to_dict())
160
+ if hasattr(item[1], "to_dict") else item,
161
+ value.items()
162
+ ))
163
+ else:
164
+ if attr in self.sensitive_list:
165
+ result[attr] = "****"
166
+ else:
167
+ result[attr] = value
168
+
169
+ return result
170
+
171
+ def to_str(self):
172
+ """Returns the string representation of the model"""
173
+ import simplejson as json
174
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
175
+
176
+ def __repr__(self):
177
+ """For `print`"""
178
+ return self.to_str()
179
+
180
+ def __eq__(self, other):
181
+ """Returns true if both objects are equal"""
182
+ if not isinstance(other, CreateComponentWithConfigurationRequest):
183
+ return False
184
+
185
+ return self.__dict__ == other.__dict__
186
+
187
+ def __ne__(self, other):
188
+ """Returns true if both objects are not equal"""
189
+ return not self == other
@@ -0,0 +1,206 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class CreateComponentWithConfigurationRequestBody:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'api_version': 'ApiVersionObj',
19
+ 'kind': 'ComponentKindObj',
20
+ 'metadata': 'CreateComponentWithConfigurationRequestBodyMetadata',
21
+ 'spec': 'CreateComponentWithConfigurationRequestBodySpec',
22
+ 'configurations': 'list[ConfigurationItem]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'api_version': 'api_version',
27
+ 'kind': 'kind',
28
+ 'metadata': 'metadata',
29
+ 'spec': 'spec',
30
+ 'configurations': 'configurations'
31
+ }
32
+
33
+ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, configurations=None):
34
+ r"""CreateComponentWithConfigurationRequestBody
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param api_version:
39
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
40
+ :param kind:
41
+ :type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
42
+ :param metadata:
43
+ :type metadata: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
44
+ :param spec:
45
+ :type spec: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
46
+ :param configurations: 配置项列表。
47
+ :type configurations: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
48
+ """
49
+
50
+
51
+
52
+ self._api_version = None
53
+ self._kind = None
54
+ self._metadata = None
55
+ self._spec = None
56
+ self._configurations = None
57
+ self.discriminator = None
58
+
59
+ self.api_version = api_version
60
+ self.kind = kind
61
+ if metadata is not None:
62
+ self.metadata = metadata
63
+ if spec is not None:
64
+ self.spec = spec
65
+ if configurations is not None:
66
+ self.configurations = configurations
67
+
68
+ @property
69
+ def api_version(self):
70
+ r"""Gets the api_version of this CreateComponentWithConfigurationRequestBody.
71
+
72
+ :return: The api_version of this CreateComponentWithConfigurationRequestBody.
73
+ :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
74
+ """
75
+ return self._api_version
76
+
77
+ @api_version.setter
78
+ def api_version(self, api_version):
79
+ r"""Sets the api_version of this CreateComponentWithConfigurationRequestBody.
80
+
81
+ :param api_version: The api_version of this CreateComponentWithConfigurationRequestBody.
82
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
83
+ """
84
+ self._api_version = api_version
85
+
86
+ @property
87
+ def kind(self):
88
+ r"""Gets the kind of this CreateComponentWithConfigurationRequestBody.
89
+
90
+ :return: The kind of this CreateComponentWithConfigurationRequestBody.
91
+ :rtype: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
92
+ """
93
+ return self._kind
94
+
95
+ @kind.setter
96
+ def kind(self, kind):
97
+ r"""Sets the kind of this CreateComponentWithConfigurationRequestBody.
98
+
99
+ :param kind: The kind of this CreateComponentWithConfigurationRequestBody.
100
+ :type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
101
+ """
102
+ self._kind = kind
103
+
104
+ @property
105
+ def metadata(self):
106
+ r"""Gets the metadata of this CreateComponentWithConfigurationRequestBody.
107
+
108
+ :return: The metadata of this CreateComponentWithConfigurationRequestBody.
109
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
110
+ """
111
+ return self._metadata
112
+
113
+ @metadata.setter
114
+ def metadata(self, metadata):
115
+ r"""Sets the metadata of this CreateComponentWithConfigurationRequestBody.
116
+
117
+ :param metadata: The metadata of this CreateComponentWithConfigurationRequestBody.
118
+ :type metadata: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodyMetadata`
119
+ """
120
+ self._metadata = metadata
121
+
122
+ @property
123
+ def spec(self):
124
+ r"""Gets the spec of this CreateComponentWithConfigurationRequestBody.
125
+
126
+ :return: The spec of this CreateComponentWithConfigurationRequestBody.
127
+ :rtype: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
128
+ """
129
+ return self._spec
130
+
131
+ @spec.setter
132
+ def spec(self, spec):
133
+ r"""Sets the spec of this CreateComponentWithConfigurationRequestBody.
134
+
135
+ :param spec: The spec of this CreateComponentWithConfigurationRequestBody.
136
+ :type spec: :class:`huaweicloudsdkcae.v1.CreateComponentWithConfigurationRequestBodySpec`
137
+ """
138
+ self._spec = spec
139
+
140
+ @property
141
+ def configurations(self):
142
+ r"""Gets the configurations of this CreateComponentWithConfigurationRequestBody.
143
+
144
+ 配置项列表。
145
+
146
+ :return: The configurations of this CreateComponentWithConfigurationRequestBody.
147
+ :rtype: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
148
+ """
149
+ return self._configurations
150
+
151
+ @configurations.setter
152
+ def configurations(self, configurations):
153
+ r"""Sets the configurations of this CreateComponentWithConfigurationRequestBody.
154
+
155
+ 配置项列表。
156
+
157
+ :param configurations: The configurations of this CreateComponentWithConfigurationRequestBody.
158
+ :type configurations: list[:class:`huaweicloudsdkcae.v1.ConfigurationItem`]
159
+ """
160
+ self._configurations = configurations
161
+
162
+ def to_dict(self):
163
+ result = {}
164
+
165
+ for attr, _ in self.openapi_types.items():
166
+ value = getattr(self, attr)
167
+ if isinstance(value, list):
168
+ result[attr] = list(map(
169
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
170
+ value
171
+ ))
172
+ elif hasattr(value, "to_dict"):
173
+ result[attr] = value.to_dict()
174
+ elif isinstance(value, dict):
175
+ result[attr] = dict(map(
176
+ lambda item: (item[0], item[1].to_dict())
177
+ if hasattr(item[1], "to_dict") else item,
178
+ value.items()
179
+ ))
180
+ else:
181
+ if attr in self.sensitive_list:
182
+ result[attr] = "****"
183
+ else:
184
+ result[attr] = value
185
+
186
+ return result
187
+
188
+ def to_str(self):
189
+ """Returns the string representation of the model"""
190
+ import simplejson as json
191
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
192
+
193
+ def __repr__(self):
194
+ """For `print`"""
195
+ return self.to_str()
196
+
197
+ def __eq__(self, other):
198
+ """Returns true if both objects are equal"""
199
+ if not isinstance(other, CreateComponentWithConfigurationRequestBody):
200
+ return False
201
+
202
+ return self.__dict__ == other.__dict__
203
+
204
+ def __ne__(self, other):
205
+ """Returns true if both objects are not equal"""
206
+ return not self == other