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,724 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ComponentSnapshotContext:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'app_id': 'str',
21
+ 'available_replica': 'int',
22
+ 'build': 'str',
23
+ 'build_id': 'str',
24
+ 'build_log_id': 'str',
25
+ 'env_id': 'str',
26
+ 'id': 'str',
27
+ 'image_url': 'str',
28
+ 'job_id': 'str',
29
+ 'log_group_id': 'str',
30
+ 'log_stream_id': 'str',
31
+ 'name': 'str',
32
+ 'operation': 'str',
33
+ 'operation_status': 'str',
34
+ 'replica': 'int',
35
+ 'resource_limit': 'str',
36
+ 'runtime': 'str',
37
+ 'source': 'str',
38
+ 'status': 'str',
39
+ 'version': 'str',
40
+ 'created_at': 'str',
41
+ 'updated_at': 'str'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'app_id': 'app_id',
46
+ 'available_replica': 'available_replica',
47
+ 'build': 'build',
48
+ 'build_id': 'build_id',
49
+ 'build_log_id': 'build_log_id',
50
+ 'env_id': 'env_id',
51
+ 'id': 'id',
52
+ 'image_url': 'image_url',
53
+ 'job_id': 'job_id',
54
+ 'log_group_id': 'log_group_id',
55
+ 'log_stream_id': 'log_stream_id',
56
+ 'name': 'name',
57
+ 'operation': 'operation',
58
+ 'operation_status': 'operation_status',
59
+ 'replica': 'replica',
60
+ 'resource_limit': 'resource_limit',
61
+ 'runtime': 'runtime',
62
+ 'source': 'source',
63
+ 'status': 'status',
64
+ 'version': 'version',
65
+ 'created_at': 'created_at',
66
+ 'updated_at': 'updated_at'
67
+ }
68
+
69
+ def __init__(self, app_id=None, available_replica=None, build=None, build_id=None, build_log_id=None, env_id=None, id=None, image_url=None, job_id=None, log_group_id=None, log_stream_id=None, name=None, operation=None, operation_status=None, replica=None, resource_limit=None, runtime=None, source=None, status=None, version=None, created_at=None, updated_at=None):
70
+ r"""ComponentSnapshotContext
71
+
72
+ The model defined in huaweicloud sdk
73
+
74
+ :param app_id: 应用ID。
75
+ :type app_id: str
76
+ :param available_replica: 可用实例个数。
77
+ :type available_replica: int
78
+ :param build: 组件构建信息。
79
+ :type build: str
80
+ :param build_id: 构建任务ID。
81
+ :type build_id: str
82
+ :param build_log_id: 构建日志ID。
83
+ :type build_log_id: str
84
+ :param env_id: 环境ID。
85
+ :type env_id: str
86
+ :param id: 组件ID。
87
+ :type id: str
88
+ :param image_url: 镜像地址。
89
+ :type image_url: str
90
+ :param job_id: 任务ID。
91
+ :type job_id: str
92
+ :param log_group_id: LTS日志组的ID。
93
+ :type log_group_id: str
94
+ :param log_stream_id: LTS日志流的ID
95
+ :type log_stream_id: str
96
+ :param name: 组件名称。
97
+ :type name: str
98
+ :param operation: 组件操作。
99
+ :type operation: str
100
+ :param operation_status: 组件操作状态。
101
+ :type operation_status: str
102
+ :param replica: 实例个数。
103
+ :type replica: int
104
+ :param resource_limit: 组件规格。
105
+ :type resource_limit: str
106
+ :param runtime: 语言/运行时。
107
+ :type runtime: str
108
+ :param source: 组件源信息。
109
+ :type source: str
110
+ :param status: 组件状态。
111
+ :type status: str
112
+ :param version: 组件版本。
113
+ :type version: str
114
+ :param created_at: 创建时间。
115
+ :type created_at: str
116
+ :param updated_at: 更新时间。
117
+ :type updated_at: str
118
+ """
119
+
120
+
121
+
122
+ self._app_id = None
123
+ self._available_replica = None
124
+ self._build = None
125
+ self._build_id = None
126
+ self._build_log_id = None
127
+ self._env_id = None
128
+ self._id = None
129
+ self._image_url = None
130
+ self._job_id = None
131
+ self._log_group_id = None
132
+ self._log_stream_id = None
133
+ self._name = None
134
+ self._operation = None
135
+ self._operation_status = None
136
+ self._replica = None
137
+ self._resource_limit = None
138
+ self._runtime = None
139
+ self._source = None
140
+ self._status = None
141
+ self._version = None
142
+ self._created_at = None
143
+ self._updated_at = None
144
+ self.discriminator = None
145
+
146
+ if app_id is not None:
147
+ self.app_id = app_id
148
+ if available_replica is not None:
149
+ self.available_replica = available_replica
150
+ if build is not None:
151
+ self.build = build
152
+ if build_id is not None:
153
+ self.build_id = build_id
154
+ if build_log_id is not None:
155
+ self.build_log_id = build_log_id
156
+ if env_id is not None:
157
+ self.env_id = env_id
158
+ if id is not None:
159
+ self.id = id
160
+ if image_url is not None:
161
+ self.image_url = image_url
162
+ if job_id is not None:
163
+ self.job_id = job_id
164
+ if log_group_id is not None:
165
+ self.log_group_id = log_group_id
166
+ if log_stream_id is not None:
167
+ self.log_stream_id = log_stream_id
168
+ if name is not None:
169
+ self.name = name
170
+ if operation is not None:
171
+ self.operation = operation
172
+ if operation_status is not None:
173
+ self.operation_status = operation_status
174
+ if replica is not None:
175
+ self.replica = replica
176
+ if resource_limit is not None:
177
+ self.resource_limit = resource_limit
178
+ if runtime is not None:
179
+ self.runtime = runtime
180
+ if source is not None:
181
+ self.source = source
182
+ if status is not None:
183
+ self.status = status
184
+ if version is not None:
185
+ self.version = version
186
+ if created_at is not None:
187
+ self.created_at = created_at
188
+ if updated_at is not None:
189
+ self.updated_at = updated_at
190
+
191
+ @property
192
+ def app_id(self):
193
+ r"""Gets the app_id of this ComponentSnapshotContext.
194
+
195
+ 应用ID。
196
+
197
+ :return: The app_id of this ComponentSnapshotContext.
198
+ :rtype: str
199
+ """
200
+ return self._app_id
201
+
202
+ @app_id.setter
203
+ def app_id(self, app_id):
204
+ r"""Sets the app_id of this ComponentSnapshotContext.
205
+
206
+ 应用ID。
207
+
208
+ :param app_id: The app_id of this ComponentSnapshotContext.
209
+ :type app_id: str
210
+ """
211
+ self._app_id = app_id
212
+
213
+ @property
214
+ def available_replica(self):
215
+ r"""Gets the available_replica of this ComponentSnapshotContext.
216
+
217
+ 可用实例个数。
218
+
219
+ :return: The available_replica of this ComponentSnapshotContext.
220
+ :rtype: int
221
+ """
222
+ return self._available_replica
223
+
224
+ @available_replica.setter
225
+ def available_replica(self, available_replica):
226
+ r"""Sets the available_replica of this ComponentSnapshotContext.
227
+
228
+ 可用实例个数。
229
+
230
+ :param available_replica: The available_replica of this ComponentSnapshotContext.
231
+ :type available_replica: int
232
+ """
233
+ self._available_replica = available_replica
234
+
235
+ @property
236
+ def build(self):
237
+ r"""Gets the build of this ComponentSnapshotContext.
238
+
239
+ 组件构建信息。
240
+
241
+ :return: The build of this ComponentSnapshotContext.
242
+ :rtype: str
243
+ """
244
+ return self._build
245
+
246
+ @build.setter
247
+ def build(self, build):
248
+ r"""Sets the build of this ComponentSnapshotContext.
249
+
250
+ 组件构建信息。
251
+
252
+ :param build: The build of this ComponentSnapshotContext.
253
+ :type build: str
254
+ """
255
+ self._build = build
256
+
257
+ @property
258
+ def build_id(self):
259
+ r"""Gets the build_id of this ComponentSnapshotContext.
260
+
261
+ 构建任务ID。
262
+
263
+ :return: The build_id of this ComponentSnapshotContext.
264
+ :rtype: str
265
+ """
266
+ return self._build_id
267
+
268
+ @build_id.setter
269
+ def build_id(self, build_id):
270
+ r"""Sets the build_id of this ComponentSnapshotContext.
271
+
272
+ 构建任务ID。
273
+
274
+ :param build_id: The build_id of this ComponentSnapshotContext.
275
+ :type build_id: str
276
+ """
277
+ self._build_id = build_id
278
+
279
+ @property
280
+ def build_log_id(self):
281
+ r"""Gets the build_log_id of this ComponentSnapshotContext.
282
+
283
+ 构建日志ID。
284
+
285
+ :return: The build_log_id of this ComponentSnapshotContext.
286
+ :rtype: str
287
+ """
288
+ return self._build_log_id
289
+
290
+ @build_log_id.setter
291
+ def build_log_id(self, build_log_id):
292
+ r"""Sets the build_log_id of this ComponentSnapshotContext.
293
+
294
+ 构建日志ID。
295
+
296
+ :param build_log_id: The build_log_id of this ComponentSnapshotContext.
297
+ :type build_log_id: str
298
+ """
299
+ self._build_log_id = build_log_id
300
+
301
+ @property
302
+ def env_id(self):
303
+ r"""Gets the env_id of this ComponentSnapshotContext.
304
+
305
+ 环境ID。
306
+
307
+ :return: The env_id of this ComponentSnapshotContext.
308
+ :rtype: str
309
+ """
310
+ return self._env_id
311
+
312
+ @env_id.setter
313
+ def env_id(self, env_id):
314
+ r"""Sets the env_id of this ComponentSnapshotContext.
315
+
316
+ 环境ID。
317
+
318
+ :param env_id: The env_id of this ComponentSnapshotContext.
319
+ :type env_id: str
320
+ """
321
+ self._env_id = env_id
322
+
323
+ @property
324
+ def id(self):
325
+ r"""Gets the id of this ComponentSnapshotContext.
326
+
327
+ 组件ID。
328
+
329
+ :return: The id of this ComponentSnapshotContext.
330
+ :rtype: str
331
+ """
332
+ return self._id
333
+
334
+ @id.setter
335
+ def id(self, id):
336
+ r"""Sets the id of this ComponentSnapshotContext.
337
+
338
+ 组件ID。
339
+
340
+ :param id: The id of this ComponentSnapshotContext.
341
+ :type id: str
342
+ """
343
+ self._id = id
344
+
345
+ @property
346
+ def image_url(self):
347
+ r"""Gets the image_url of this ComponentSnapshotContext.
348
+
349
+ 镜像地址。
350
+
351
+ :return: The image_url of this ComponentSnapshotContext.
352
+ :rtype: str
353
+ """
354
+ return self._image_url
355
+
356
+ @image_url.setter
357
+ def image_url(self, image_url):
358
+ r"""Sets the image_url of this ComponentSnapshotContext.
359
+
360
+ 镜像地址。
361
+
362
+ :param image_url: The image_url of this ComponentSnapshotContext.
363
+ :type image_url: str
364
+ """
365
+ self._image_url = image_url
366
+
367
+ @property
368
+ def job_id(self):
369
+ r"""Gets the job_id of this ComponentSnapshotContext.
370
+
371
+ 任务ID。
372
+
373
+ :return: The job_id of this ComponentSnapshotContext.
374
+ :rtype: str
375
+ """
376
+ return self._job_id
377
+
378
+ @job_id.setter
379
+ def job_id(self, job_id):
380
+ r"""Sets the job_id of this ComponentSnapshotContext.
381
+
382
+ 任务ID。
383
+
384
+ :param job_id: The job_id of this ComponentSnapshotContext.
385
+ :type job_id: str
386
+ """
387
+ self._job_id = job_id
388
+
389
+ @property
390
+ def log_group_id(self):
391
+ r"""Gets the log_group_id of this ComponentSnapshotContext.
392
+
393
+ LTS日志组的ID。
394
+
395
+ :return: The log_group_id of this ComponentSnapshotContext.
396
+ :rtype: str
397
+ """
398
+ return self._log_group_id
399
+
400
+ @log_group_id.setter
401
+ def log_group_id(self, log_group_id):
402
+ r"""Sets the log_group_id of this ComponentSnapshotContext.
403
+
404
+ LTS日志组的ID。
405
+
406
+ :param log_group_id: The log_group_id of this ComponentSnapshotContext.
407
+ :type log_group_id: str
408
+ """
409
+ self._log_group_id = log_group_id
410
+
411
+ @property
412
+ def log_stream_id(self):
413
+ r"""Gets the log_stream_id of this ComponentSnapshotContext.
414
+
415
+ LTS日志流的ID
416
+
417
+ :return: The log_stream_id of this ComponentSnapshotContext.
418
+ :rtype: str
419
+ """
420
+ return self._log_stream_id
421
+
422
+ @log_stream_id.setter
423
+ def log_stream_id(self, log_stream_id):
424
+ r"""Sets the log_stream_id of this ComponentSnapshotContext.
425
+
426
+ LTS日志流的ID
427
+
428
+ :param log_stream_id: The log_stream_id of this ComponentSnapshotContext.
429
+ :type log_stream_id: str
430
+ """
431
+ self._log_stream_id = log_stream_id
432
+
433
+ @property
434
+ def name(self):
435
+ r"""Gets the name of this ComponentSnapshotContext.
436
+
437
+ 组件名称。
438
+
439
+ :return: The name of this ComponentSnapshotContext.
440
+ :rtype: str
441
+ """
442
+ return self._name
443
+
444
+ @name.setter
445
+ def name(self, name):
446
+ r"""Sets the name of this ComponentSnapshotContext.
447
+
448
+ 组件名称。
449
+
450
+ :param name: The name of this ComponentSnapshotContext.
451
+ :type name: str
452
+ """
453
+ self._name = name
454
+
455
+ @property
456
+ def operation(self):
457
+ r"""Gets the operation of this ComponentSnapshotContext.
458
+
459
+ 组件操作。
460
+
461
+ :return: The operation of this ComponentSnapshotContext.
462
+ :rtype: str
463
+ """
464
+ return self._operation
465
+
466
+ @operation.setter
467
+ def operation(self, operation):
468
+ r"""Sets the operation of this ComponentSnapshotContext.
469
+
470
+ 组件操作。
471
+
472
+ :param operation: The operation of this ComponentSnapshotContext.
473
+ :type operation: str
474
+ """
475
+ self._operation = operation
476
+
477
+ @property
478
+ def operation_status(self):
479
+ r"""Gets the operation_status of this ComponentSnapshotContext.
480
+
481
+ 组件操作状态。
482
+
483
+ :return: The operation_status of this ComponentSnapshotContext.
484
+ :rtype: str
485
+ """
486
+ return self._operation_status
487
+
488
+ @operation_status.setter
489
+ def operation_status(self, operation_status):
490
+ r"""Sets the operation_status of this ComponentSnapshotContext.
491
+
492
+ 组件操作状态。
493
+
494
+ :param operation_status: The operation_status of this ComponentSnapshotContext.
495
+ :type operation_status: str
496
+ """
497
+ self._operation_status = operation_status
498
+
499
+ @property
500
+ def replica(self):
501
+ r"""Gets the replica of this ComponentSnapshotContext.
502
+
503
+ 实例个数。
504
+
505
+ :return: The replica of this ComponentSnapshotContext.
506
+ :rtype: int
507
+ """
508
+ return self._replica
509
+
510
+ @replica.setter
511
+ def replica(self, replica):
512
+ r"""Sets the replica of this ComponentSnapshotContext.
513
+
514
+ 实例个数。
515
+
516
+ :param replica: The replica of this ComponentSnapshotContext.
517
+ :type replica: int
518
+ """
519
+ self._replica = replica
520
+
521
+ @property
522
+ def resource_limit(self):
523
+ r"""Gets the resource_limit of this ComponentSnapshotContext.
524
+
525
+ 组件规格。
526
+
527
+ :return: The resource_limit of this ComponentSnapshotContext.
528
+ :rtype: str
529
+ """
530
+ return self._resource_limit
531
+
532
+ @resource_limit.setter
533
+ def resource_limit(self, resource_limit):
534
+ r"""Sets the resource_limit of this ComponentSnapshotContext.
535
+
536
+ 组件规格。
537
+
538
+ :param resource_limit: The resource_limit of this ComponentSnapshotContext.
539
+ :type resource_limit: str
540
+ """
541
+ self._resource_limit = resource_limit
542
+
543
+ @property
544
+ def runtime(self):
545
+ r"""Gets the runtime of this ComponentSnapshotContext.
546
+
547
+ 语言/运行时。
548
+
549
+ :return: The runtime of this ComponentSnapshotContext.
550
+ :rtype: str
551
+ """
552
+ return self._runtime
553
+
554
+ @runtime.setter
555
+ def runtime(self, runtime):
556
+ r"""Sets the runtime of this ComponentSnapshotContext.
557
+
558
+ 语言/运行时。
559
+
560
+ :param runtime: The runtime of this ComponentSnapshotContext.
561
+ :type runtime: str
562
+ """
563
+ self._runtime = runtime
564
+
565
+ @property
566
+ def source(self):
567
+ r"""Gets the source of this ComponentSnapshotContext.
568
+
569
+ 组件源信息。
570
+
571
+ :return: The source of this ComponentSnapshotContext.
572
+ :rtype: str
573
+ """
574
+ return self._source
575
+
576
+ @source.setter
577
+ def source(self, source):
578
+ r"""Sets the source of this ComponentSnapshotContext.
579
+
580
+ 组件源信息。
581
+
582
+ :param source: The source of this ComponentSnapshotContext.
583
+ :type source: str
584
+ """
585
+ self._source = source
586
+
587
+ @property
588
+ def status(self):
589
+ r"""Gets the status of this ComponentSnapshotContext.
590
+
591
+ 组件状态。
592
+
593
+ :return: The status of this ComponentSnapshotContext.
594
+ :rtype: str
595
+ """
596
+ return self._status
597
+
598
+ @status.setter
599
+ def status(self, status):
600
+ r"""Sets the status of this ComponentSnapshotContext.
601
+
602
+ 组件状态。
603
+
604
+ :param status: The status of this ComponentSnapshotContext.
605
+ :type status: str
606
+ """
607
+ self._status = status
608
+
609
+ @property
610
+ def version(self):
611
+ r"""Gets the version of this ComponentSnapshotContext.
612
+
613
+ 组件版本。
614
+
615
+ :return: The version of this ComponentSnapshotContext.
616
+ :rtype: str
617
+ """
618
+ return self._version
619
+
620
+ @version.setter
621
+ def version(self, version):
622
+ r"""Sets the version of this ComponentSnapshotContext.
623
+
624
+ 组件版本。
625
+
626
+ :param version: The version of this ComponentSnapshotContext.
627
+ :type version: str
628
+ """
629
+ self._version = version
630
+
631
+ @property
632
+ def created_at(self):
633
+ r"""Gets the created_at of this ComponentSnapshotContext.
634
+
635
+ 创建时间。
636
+
637
+ :return: The created_at of this ComponentSnapshotContext.
638
+ :rtype: str
639
+ """
640
+ return self._created_at
641
+
642
+ @created_at.setter
643
+ def created_at(self, created_at):
644
+ r"""Sets the created_at of this ComponentSnapshotContext.
645
+
646
+ 创建时间。
647
+
648
+ :param created_at: The created_at of this ComponentSnapshotContext.
649
+ :type created_at: str
650
+ """
651
+ self._created_at = created_at
652
+
653
+ @property
654
+ def updated_at(self):
655
+ r"""Gets the updated_at of this ComponentSnapshotContext.
656
+
657
+ 更新时间。
658
+
659
+ :return: The updated_at of this ComponentSnapshotContext.
660
+ :rtype: str
661
+ """
662
+ return self._updated_at
663
+
664
+ @updated_at.setter
665
+ def updated_at(self, updated_at):
666
+ r"""Sets the updated_at of this ComponentSnapshotContext.
667
+
668
+ 更新时间。
669
+
670
+ :param updated_at: The updated_at of this ComponentSnapshotContext.
671
+ :type updated_at: str
672
+ """
673
+ self._updated_at = updated_at
674
+
675
+ def to_dict(self):
676
+ """Returns the model properties as a dict"""
677
+ result = {}
678
+
679
+ for attr, _ in six.iteritems(self.openapi_types):
680
+ value = getattr(self, attr)
681
+ if isinstance(value, list):
682
+ result[attr] = list(map(
683
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
684
+ value
685
+ ))
686
+ elif hasattr(value, "to_dict"):
687
+ result[attr] = value.to_dict()
688
+ elif isinstance(value, dict):
689
+ result[attr] = dict(map(
690
+ lambda item: (item[0], item[1].to_dict())
691
+ if hasattr(item[1], "to_dict") else item,
692
+ value.items()
693
+ ))
694
+ else:
695
+ if attr in self.sensitive_list:
696
+ result[attr] = "****"
697
+ else:
698
+ result[attr] = value
699
+
700
+ return result
701
+
702
+ def to_str(self):
703
+ """Returns the string representation of the model"""
704
+ import simplejson as json
705
+ if six.PY2:
706
+ import sys
707
+ reload(sys)
708
+ sys.setdefaultencoding("utf-8")
709
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
710
+
711
+ def __repr__(self):
712
+ """For `print`"""
713
+ return self.to_str()
714
+
715
+ def __eq__(self, other):
716
+ """Returns true if both objects are equal"""
717
+ if not isinstance(other, ComponentSnapshotContext):
718
+ return False
719
+
720
+ return self.__dict__ == other.__dict__
721
+
722
+ def __ne__(self, other):
723
+ """Returns true if both objects are not equal"""
724
+ return not self == other