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,306 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class HealthCheckConfigurationReadinessProbe:
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
+ 'period_seconds': 'int',
21
+ 'initial_delay_seconds': 'int',
22
+ 'timeout_seconds': 'int',
23
+ 'success_threshold': 'int',
24
+ 'failure_threshold': 'int',
25
+ 'http_get': 'HealthCheckConfigurationHttpGet',
26
+ 'tcp_socket': 'HealthCheckConfigurationTcpSocket',
27
+ '_exec': 'HealthCheckConfigurationExec'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'period_seconds': 'periodSeconds',
32
+ 'initial_delay_seconds': 'initialDelaySeconds',
33
+ 'timeout_seconds': 'timeoutSeconds',
34
+ 'success_threshold': 'successThreshold',
35
+ 'failure_threshold': 'failureThreshold',
36
+ 'http_get': 'httpGet',
37
+ 'tcp_socket': 'tcpSocket',
38
+ '_exec': 'exec'
39
+ }
40
+
41
+ def __init__(self, period_seconds=None, initial_delay_seconds=None, timeout_seconds=None, success_threshold=None, failure_threshold=None, http_get=None, tcp_socket=None, _exec=None):
42
+ r"""HealthCheckConfigurationReadinessProbe
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param period_seconds: 检测周期,单位为s。
47
+ :type period_seconds: int
48
+ :param initial_delay_seconds: 延迟时间,单位为s。
49
+ :type initial_delay_seconds: int
50
+ :param timeout_seconds: 超时时间,单位为s。
51
+ :type timeout_seconds: int
52
+ :param success_threshold: 成功阈值。
53
+ :type success_threshold: int
54
+ :param failure_threshold: 最大失败次数。
55
+ :type failure_threshold: int
56
+ :param http_get:
57
+ :type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
58
+ :param tcp_socket:
59
+ :type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
60
+ :param _exec:
61
+ :type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
62
+ """
63
+
64
+
65
+
66
+ self._period_seconds = None
67
+ self._initial_delay_seconds = None
68
+ self._timeout_seconds = None
69
+ self._success_threshold = None
70
+ self._failure_threshold = None
71
+ self._http_get = None
72
+ self._tcp_socket = None
73
+ self.__exec = None
74
+ self.discriminator = None
75
+
76
+ if period_seconds is not None:
77
+ self.period_seconds = period_seconds
78
+ if initial_delay_seconds is not None:
79
+ self.initial_delay_seconds = initial_delay_seconds
80
+ if timeout_seconds is not None:
81
+ self.timeout_seconds = timeout_seconds
82
+ if success_threshold is not None:
83
+ self.success_threshold = success_threshold
84
+ if failure_threshold is not None:
85
+ self.failure_threshold = failure_threshold
86
+ if http_get is not None:
87
+ self.http_get = http_get
88
+ if tcp_socket is not None:
89
+ self.tcp_socket = tcp_socket
90
+ if _exec is not None:
91
+ self._exec = _exec
92
+
93
+ @property
94
+ def period_seconds(self):
95
+ r"""Gets the period_seconds of this HealthCheckConfigurationReadinessProbe.
96
+
97
+ 检测周期,单位为s。
98
+
99
+ :return: The period_seconds of this HealthCheckConfigurationReadinessProbe.
100
+ :rtype: int
101
+ """
102
+ return self._period_seconds
103
+
104
+ @period_seconds.setter
105
+ def period_seconds(self, period_seconds):
106
+ r"""Sets the period_seconds of this HealthCheckConfigurationReadinessProbe.
107
+
108
+ 检测周期,单位为s。
109
+
110
+ :param period_seconds: The period_seconds of this HealthCheckConfigurationReadinessProbe.
111
+ :type period_seconds: int
112
+ """
113
+ self._period_seconds = period_seconds
114
+
115
+ @property
116
+ def initial_delay_seconds(self):
117
+ r"""Gets the initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
118
+
119
+ 延迟时间,单位为s。
120
+
121
+ :return: The initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
122
+ :rtype: int
123
+ """
124
+ return self._initial_delay_seconds
125
+
126
+ @initial_delay_seconds.setter
127
+ def initial_delay_seconds(self, initial_delay_seconds):
128
+ r"""Sets the initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
129
+
130
+ 延迟时间,单位为s。
131
+
132
+ :param initial_delay_seconds: The initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
133
+ :type initial_delay_seconds: int
134
+ """
135
+ self._initial_delay_seconds = initial_delay_seconds
136
+
137
+ @property
138
+ def timeout_seconds(self):
139
+ r"""Gets the timeout_seconds of this HealthCheckConfigurationReadinessProbe.
140
+
141
+ 超时时间,单位为s。
142
+
143
+ :return: The timeout_seconds of this HealthCheckConfigurationReadinessProbe.
144
+ :rtype: int
145
+ """
146
+ return self._timeout_seconds
147
+
148
+ @timeout_seconds.setter
149
+ def timeout_seconds(self, timeout_seconds):
150
+ r"""Sets the timeout_seconds of this HealthCheckConfigurationReadinessProbe.
151
+
152
+ 超时时间,单位为s。
153
+
154
+ :param timeout_seconds: The timeout_seconds of this HealthCheckConfigurationReadinessProbe.
155
+ :type timeout_seconds: int
156
+ """
157
+ self._timeout_seconds = timeout_seconds
158
+
159
+ @property
160
+ def success_threshold(self):
161
+ r"""Gets the success_threshold of this HealthCheckConfigurationReadinessProbe.
162
+
163
+ 成功阈值。
164
+
165
+ :return: The success_threshold of this HealthCheckConfigurationReadinessProbe.
166
+ :rtype: int
167
+ """
168
+ return self._success_threshold
169
+
170
+ @success_threshold.setter
171
+ def success_threshold(self, success_threshold):
172
+ r"""Sets the success_threshold of this HealthCheckConfigurationReadinessProbe.
173
+
174
+ 成功阈值。
175
+
176
+ :param success_threshold: The success_threshold of this HealthCheckConfigurationReadinessProbe.
177
+ :type success_threshold: int
178
+ """
179
+ self._success_threshold = success_threshold
180
+
181
+ @property
182
+ def failure_threshold(self):
183
+ r"""Gets the failure_threshold of this HealthCheckConfigurationReadinessProbe.
184
+
185
+ 最大失败次数。
186
+
187
+ :return: The failure_threshold of this HealthCheckConfigurationReadinessProbe.
188
+ :rtype: int
189
+ """
190
+ return self._failure_threshold
191
+
192
+ @failure_threshold.setter
193
+ def failure_threshold(self, failure_threshold):
194
+ r"""Sets the failure_threshold of this HealthCheckConfigurationReadinessProbe.
195
+
196
+ 最大失败次数。
197
+
198
+ :param failure_threshold: The failure_threshold of this HealthCheckConfigurationReadinessProbe.
199
+ :type failure_threshold: int
200
+ """
201
+ self._failure_threshold = failure_threshold
202
+
203
+ @property
204
+ def http_get(self):
205
+ r"""Gets the http_get of this HealthCheckConfigurationReadinessProbe.
206
+
207
+ :return: The http_get of this HealthCheckConfigurationReadinessProbe.
208
+ :rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
209
+ """
210
+ return self._http_get
211
+
212
+ @http_get.setter
213
+ def http_get(self, http_get):
214
+ r"""Sets the http_get of this HealthCheckConfigurationReadinessProbe.
215
+
216
+ :param http_get: The http_get of this HealthCheckConfigurationReadinessProbe.
217
+ :type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
218
+ """
219
+ self._http_get = http_get
220
+
221
+ @property
222
+ def tcp_socket(self):
223
+ r"""Gets the tcp_socket of this HealthCheckConfigurationReadinessProbe.
224
+
225
+ :return: The tcp_socket of this HealthCheckConfigurationReadinessProbe.
226
+ :rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
227
+ """
228
+ return self._tcp_socket
229
+
230
+ @tcp_socket.setter
231
+ def tcp_socket(self, tcp_socket):
232
+ r"""Sets the tcp_socket of this HealthCheckConfigurationReadinessProbe.
233
+
234
+ :param tcp_socket: The tcp_socket of this HealthCheckConfigurationReadinessProbe.
235
+ :type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
236
+ """
237
+ self._tcp_socket = tcp_socket
238
+
239
+ @property
240
+ def _exec(self):
241
+ r"""Gets the _exec of this HealthCheckConfigurationReadinessProbe.
242
+
243
+ :return: The _exec of this HealthCheckConfigurationReadinessProbe.
244
+ :rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
245
+ """
246
+ return self.__exec
247
+
248
+ @_exec.setter
249
+ def _exec(self, _exec):
250
+ r"""Sets the _exec of this HealthCheckConfigurationReadinessProbe.
251
+
252
+ :param _exec: The _exec of this HealthCheckConfigurationReadinessProbe.
253
+ :type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
254
+ """
255
+ self.__exec = _exec
256
+
257
+ def to_dict(self):
258
+ """Returns the model properties as a dict"""
259
+ result = {}
260
+
261
+ for attr, _ in six.iteritems(self.openapi_types):
262
+ value = getattr(self, attr)
263
+ if isinstance(value, list):
264
+ result[attr] = list(map(
265
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
266
+ value
267
+ ))
268
+ elif hasattr(value, "to_dict"):
269
+ result[attr] = value.to_dict()
270
+ elif isinstance(value, dict):
271
+ result[attr] = dict(map(
272
+ lambda item: (item[0], item[1].to_dict())
273
+ if hasattr(item[1], "to_dict") else item,
274
+ value.items()
275
+ ))
276
+ else:
277
+ if attr in self.sensitive_list:
278
+ result[attr] = "****"
279
+ else:
280
+ result[attr] = value
281
+
282
+ return result
283
+
284
+ def to_str(self):
285
+ """Returns the string representation of the model"""
286
+ import simplejson as json
287
+ if six.PY2:
288
+ import sys
289
+ reload(sys)
290
+ sys.setdefaultencoding("utf-8")
291
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
292
+
293
+ def __repr__(self):
294
+ """For `print`"""
295
+ return self.to_str()
296
+
297
+ def __eq__(self, other):
298
+ """Returns true if both objects are equal"""
299
+ if not isinstance(other, HealthCheckConfigurationReadinessProbe):
300
+ return False
301
+
302
+ return self.__dict__ == other.__dict__
303
+
304
+ def __ne__(self, other):
305
+ """Returns true if both objects are not equal"""
306
+ return not self == other
@@ -0,0 +1,306 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class HealthCheckConfigurationStartupProbe:
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
+ 'period_seconds': 'int',
21
+ 'initial_delay_seconds': 'int',
22
+ 'timeout_seconds': 'int',
23
+ 'success_threshold': 'int',
24
+ 'failure_threshold': 'int',
25
+ 'http_get': 'HealthCheckConfigurationHttpGet',
26
+ 'tcp_socket': 'HealthCheckConfigurationTcpSocket',
27
+ '_exec': 'HealthCheckConfigurationExec'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'period_seconds': 'periodSeconds',
32
+ 'initial_delay_seconds': 'initialDelaySeconds',
33
+ 'timeout_seconds': 'timeoutSeconds',
34
+ 'success_threshold': 'successThreshold',
35
+ 'failure_threshold': 'failureThreshold',
36
+ 'http_get': 'httpGet',
37
+ 'tcp_socket': 'tcpSocket',
38
+ '_exec': 'exec'
39
+ }
40
+
41
+ def __init__(self, period_seconds=None, initial_delay_seconds=None, timeout_seconds=None, success_threshold=None, failure_threshold=None, http_get=None, tcp_socket=None, _exec=None):
42
+ r"""HealthCheckConfigurationStartupProbe
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param period_seconds: 检测周期,单位为s。
47
+ :type period_seconds: int
48
+ :param initial_delay_seconds: 延迟时间,单位为s。
49
+ :type initial_delay_seconds: int
50
+ :param timeout_seconds: 超时时间,单位为s。
51
+ :type timeout_seconds: int
52
+ :param success_threshold: 成功阈值。
53
+ :type success_threshold: int
54
+ :param failure_threshold: 最大失败次数。
55
+ :type failure_threshold: int
56
+ :param http_get:
57
+ :type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
58
+ :param tcp_socket:
59
+ :type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
60
+ :param _exec:
61
+ :type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
62
+ """
63
+
64
+
65
+
66
+ self._period_seconds = None
67
+ self._initial_delay_seconds = None
68
+ self._timeout_seconds = None
69
+ self._success_threshold = None
70
+ self._failure_threshold = None
71
+ self._http_get = None
72
+ self._tcp_socket = None
73
+ self.__exec = None
74
+ self.discriminator = None
75
+
76
+ if period_seconds is not None:
77
+ self.period_seconds = period_seconds
78
+ if initial_delay_seconds is not None:
79
+ self.initial_delay_seconds = initial_delay_seconds
80
+ if timeout_seconds is not None:
81
+ self.timeout_seconds = timeout_seconds
82
+ if success_threshold is not None:
83
+ self.success_threshold = success_threshold
84
+ if failure_threshold is not None:
85
+ self.failure_threshold = failure_threshold
86
+ if http_get is not None:
87
+ self.http_get = http_get
88
+ if tcp_socket is not None:
89
+ self.tcp_socket = tcp_socket
90
+ if _exec is not None:
91
+ self._exec = _exec
92
+
93
+ @property
94
+ def period_seconds(self):
95
+ r"""Gets the period_seconds of this HealthCheckConfigurationStartupProbe.
96
+
97
+ 检测周期,单位为s。
98
+
99
+ :return: The period_seconds of this HealthCheckConfigurationStartupProbe.
100
+ :rtype: int
101
+ """
102
+ return self._period_seconds
103
+
104
+ @period_seconds.setter
105
+ def period_seconds(self, period_seconds):
106
+ r"""Sets the period_seconds of this HealthCheckConfigurationStartupProbe.
107
+
108
+ 检测周期,单位为s。
109
+
110
+ :param period_seconds: The period_seconds of this HealthCheckConfigurationStartupProbe.
111
+ :type period_seconds: int
112
+ """
113
+ self._period_seconds = period_seconds
114
+
115
+ @property
116
+ def initial_delay_seconds(self):
117
+ r"""Gets the initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
118
+
119
+ 延迟时间,单位为s。
120
+
121
+ :return: The initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
122
+ :rtype: int
123
+ """
124
+ return self._initial_delay_seconds
125
+
126
+ @initial_delay_seconds.setter
127
+ def initial_delay_seconds(self, initial_delay_seconds):
128
+ r"""Sets the initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
129
+
130
+ 延迟时间,单位为s。
131
+
132
+ :param initial_delay_seconds: The initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
133
+ :type initial_delay_seconds: int
134
+ """
135
+ self._initial_delay_seconds = initial_delay_seconds
136
+
137
+ @property
138
+ def timeout_seconds(self):
139
+ r"""Gets the timeout_seconds of this HealthCheckConfigurationStartupProbe.
140
+
141
+ 超时时间,单位为s。
142
+
143
+ :return: The timeout_seconds of this HealthCheckConfigurationStartupProbe.
144
+ :rtype: int
145
+ """
146
+ return self._timeout_seconds
147
+
148
+ @timeout_seconds.setter
149
+ def timeout_seconds(self, timeout_seconds):
150
+ r"""Sets the timeout_seconds of this HealthCheckConfigurationStartupProbe.
151
+
152
+ 超时时间,单位为s。
153
+
154
+ :param timeout_seconds: The timeout_seconds of this HealthCheckConfigurationStartupProbe.
155
+ :type timeout_seconds: int
156
+ """
157
+ self._timeout_seconds = timeout_seconds
158
+
159
+ @property
160
+ def success_threshold(self):
161
+ r"""Gets the success_threshold of this HealthCheckConfigurationStartupProbe.
162
+
163
+ 成功阈值。
164
+
165
+ :return: The success_threshold of this HealthCheckConfigurationStartupProbe.
166
+ :rtype: int
167
+ """
168
+ return self._success_threshold
169
+
170
+ @success_threshold.setter
171
+ def success_threshold(self, success_threshold):
172
+ r"""Sets the success_threshold of this HealthCheckConfigurationStartupProbe.
173
+
174
+ 成功阈值。
175
+
176
+ :param success_threshold: The success_threshold of this HealthCheckConfigurationStartupProbe.
177
+ :type success_threshold: int
178
+ """
179
+ self._success_threshold = success_threshold
180
+
181
+ @property
182
+ def failure_threshold(self):
183
+ r"""Gets the failure_threshold of this HealthCheckConfigurationStartupProbe.
184
+
185
+ 最大失败次数。
186
+
187
+ :return: The failure_threshold of this HealthCheckConfigurationStartupProbe.
188
+ :rtype: int
189
+ """
190
+ return self._failure_threshold
191
+
192
+ @failure_threshold.setter
193
+ def failure_threshold(self, failure_threshold):
194
+ r"""Sets the failure_threshold of this HealthCheckConfigurationStartupProbe.
195
+
196
+ 最大失败次数。
197
+
198
+ :param failure_threshold: The failure_threshold of this HealthCheckConfigurationStartupProbe.
199
+ :type failure_threshold: int
200
+ """
201
+ self._failure_threshold = failure_threshold
202
+
203
+ @property
204
+ def http_get(self):
205
+ r"""Gets the http_get of this HealthCheckConfigurationStartupProbe.
206
+
207
+ :return: The http_get of this HealthCheckConfigurationStartupProbe.
208
+ :rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
209
+ """
210
+ return self._http_get
211
+
212
+ @http_get.setter
213
+ def http_get(self, http_get):
214
+ r"""Sets the http_get of this HealthCheckConfigurationStartupProbe.
215
+
216
+ :param http_get: The http_get of this HealthCheckConfigurationStartupProbe.
217
+ :type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
218
+ """
219
+ self._http_get = http_get
220
+
221
+ @property
222
+ def tcp_socket(self):
223
+ r"""Gets the tcp_socket of this HealthCheckConfigurationStartupProbe.
224
+
225
+ :return: The tcp_socket of this HealthCheckConfigurationStartupProbe.
226
+ :rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
227
+ """
228
+ return self._tcp_socket
229
+
230
+ @tcp_socket.setter
231
+ def tcp_socket(self, tcp_socket):
232
+ r"""Sets the tcp_socket of this HealthCheckConfigurationStartupProbe.
233
+
234
+ :param tcp_socket: The tcp_socket of this HealthCheckConfigurationStartupProbe.
235
+ :type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
236
+ """
237
+ self._tcp_socket = tcp_socket
238
+
239
+ @property
240
+ def _exec(self):
241
+ r"""Gets the _exec of this HealthCheckConfigurationStartupProbe.
242
+
243
+ :return: The _exec of this HealthCheckConfigurationStartupProbe.
244
+ :rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
245
+ """
246
+ return self.__exec
247
+
248
+ @_exec.setter
249
+ def _exec(self, _exec):
250
+ r"""Sets the _exec of this HealthCheckConfigurationStartupProbe.
251
+
252
+ :param _exec: The _exec of this HealthCheckConfigurationStartupProbe.
253
+ :type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
254
+ """
255
+ self.__exec = _exec
256
+
257
+ def to_dict(self):
258
+ """Returns the model properties as a dict"""
259
+ result = {}
260
+
261
+ for attr, _ in six.iteritems(self.openapi_types):
262
+ value = getattr(self, attr)
263
+ if isinstance(value, list):
264
+ result[attr] = list(map(
265
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
266
+ value
267
+ ))
268
+ elif hasattr(value, "to_dict"):
269
+ result[attr] = value.to_dict()
270
+ elif isinstance(value, dict):
271
+ result[attr] = dict(map(
272
+ lambda item: (item[0], item[1].to_dict())
273
+ if hasattr(item[1], "to_dict") else item,
274
+ value.items()
275
+ ))
276
+ else:
277
+ if attr in self.sensitive_list:
278
+ result[attr] = "****"
279
+ else:
280
+ result[attr] = value
281
+
282
+ return result
283
+
284
+ def to_str(self):
285
+ """Returns the string representation of the model"""
286
+ import simplejson as json
287
+ if six.PY2:
288
+ import sys
289
+ reload(sys)
290
+ sys.setdefaultencoding("utf-8")
291
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
292
+
293
+ def __repr__(self):
294
+ """For `print`"""
295
+ return self.to_str()
296
+
297
+ def __eq__(self, other):
298
+ """Returns true if both objects are equal"""
299
+ if not isinstance(other, HealthCheckConfigurationStartupProbe):
300
+ return False
301
+
302
+ return self.__dict__ == other.__dict__
303
+
304
+ def __ne__(self, other):
305
+ """Returns true if both objects are not equal"""
306
+ return not self == other