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.
- huaweicloudsdkcae/__init__.py +0 -0
- huaweicloudsdkcae/v1/__init__.py +256 -0
- huaweicloudsdkcae/v1/cae_async_client.py +3941 -0
- huaweicloudsdkcae/v1/cae_client.py +3938 -0
- huaweicloudsdkcae/v1/model/__init__.py +253 -0
- huaweicloudsdkcae/v1/model/access.py +137 -0
- huaweicloudsdkcae/v1/model/access_configuration_data_items.py +361 -0
- huaweicloudsdkcae/v1/model/access_configuration_http_path.py +166 -0
- huaweicloudsdkcae/v1/model/access_configuration_metadata.py +108 -0
- huaweicloudsdkcae/v1/model/access_configuration_port.py +365 -0
- huaweicloudsdkcae/v1/model/access_control.py +137 -0
- huaweicloudsdkcae/v1/model/action_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/action_on_component_build.py +133 -0
- huaweicloudsdkcae/v1/model/action_on_component_source.py +191 -0
- huaweicloudsdkcae/v1/model/action_on_component_spec.py +212 -0
- huaweicloudsdkcae/v1/model/agency.py +151 -0
- huaweicloudsdkcae/v1/model/agency_item.py +108 -0
- huaweicloudsdkcae/v1/model/agency_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/agency_metadata.py +132 -0
- huaweicloudsdkcae/v1/model/api_version_obj.py +80 -0
- huaweicloudsdkcae/v1/model/app_info.py +137 -0
- huaweicloudsdkcae/v1/model/application_item.py +195 -0
- huaweicloudsdkcae/v1/model/application_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/application_metadata.py +195 -0
- huaweicloudsdkcae/v1/model/archive.py +108 -0
- huaweicloudsdkcae/v1/model/build.py +131 -0
- huaweicloudsdkcae/v1/model/cert_item.py +129 -0
- huaweicloudsdkcae/v1/model/cert_req.py +175 -0
- huaweicloudsdkcae/v1/model/certificate_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +137 -0
- huaweicloudsdkcae/v1/model/component_configuration_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/component_execution_result.py +195 -0
- huaweicloudsdkcae/v1/model/component_info.py +137 -0
- huaweicloudsdkcae/v1/model/component_item.py +249 -0
- huaweicloudsdkcae/v1/model/component_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/component_snapshot_context.py +717 -0
- huaweicloudsdkcae/v1/model/component_snapshot_item.py +220 -0
- huaweicloudsdkcae/v1/model/component_snapshot_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/component_spec.py +473 -0
- huaweicloudsdkcae/v1/model/configuration.py +249 -0
- huaweicloudsdkcae/v1/model/configuration_data.py +129 -0
- huaweicloudsdkcae/v1/model/configuration_data_metadata.py +108 -0
- huaweicloudsdkcae/v1/model/configuration_item.py +131 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +896 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec_post_start.py +104 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec_pre_stop.py +104 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +1186 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec_post_start.py +104 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec_pre_stop.py +104 -0
- huaweicloudsdkcae/v1/model/create_agency_request.py +104 -0
- huaweicloudsdkcae/v1/model/create_agency_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_application_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_application_request_body.py +151 -0
- huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +107 -0
- huaweicloudsdkcae/v1/model/create_application_response.py +158 -0
- huaweicloudsdkcae/v1/model/create_certificate_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_certificate_response.py +162 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request.py +217 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +155 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_component_request.py +189 -0
- huaweicloudsdkcae/v1/model/create_component_request_body.py +175 -0
- huaweicloudsdkcae/v1/model/create_component_response.py +183 -0
- huaweicloudsdkcae/v1/model/create_component_spec.py +299 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +189 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +206 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_metadata.py +135 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_spec.py +237 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +237 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +108 -0
- huaweicloudsdkcae/v1/model/create_domain_req.py +151 -0
- huaweicloudsdkcae/v1/model/create_domain_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_domain_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_environment_request.py +133 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body.py +151 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +136 -0
- huaweicloudsdkcae/v1/model/create_environment_response.py +112 -0
- huaweicloudsdkcae/v1/model/create_meta_cert.py +107 -0
- huaweicloudsdkcae/v1/model/create_meta_domain.py +107 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_item.py +237 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_req.py +159 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_request.py +133 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +270 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +135 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +159 -0
- huaweicloudsdkcae/v1/model/create_secret_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_secret_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_spec_cert.py +135 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_req.py +154 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_response.py +158 -0
- huaweicloudsdkcae/v1/model/create_volume_req.py +151 -0
- huaweicloudsdkcae/v1/model/create_volume_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_volume_response.py +81 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +161 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_response.py +158 -0
- huaweicloudsdkcae/v1/model/cron_trigger_scheduler.py +137 -0
- huaweicloudsdkcae/v1/model/delete_application_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_application_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_certificate_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_certificate_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +192 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_component_request.py +192 -0
- huaweicloudsdkcae/v1/model/delete_component_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_domain_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_domain_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_environment_request.py +136 -0
- huaweicloudsdkcae/v1/model/delete_environment_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +132 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +108 -0
- huaweicloudsdkcae/v1/model/delete_secret_request.py +136 -0
- huaweicloudsdkcae/v1/model/delete_secret_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +81 -0
- huaweicloudsdkcae/v1/model/delete_volume_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_volume_response.py +162 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +164 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +81 -0
- huaweicloudsdkcae/v1/model/domain_item.py +104 -0
- huaweicloudsdkcae/v1/model/domain_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/egress_cidr.py +164 -0
- huaweicloudsdkcae/v1/model/eip_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/environment_item.py +282 -0
- huaweicloudsdkcae/v1/model/environment_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/execute_action_request.py +217 -0
- huaweicloudsdkcae/v1/model/execute_action_request_body.py +177 -0
- huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +136 -0
- huaweicloudsdkcae/v1/model/execute_action_response.py +112 -0
- huaweicloudsdkcae/v1/model/execution_details.py +137 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_exec.py +108 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +166 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_liveness_probe.py +299 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_readiness_probe.py +299 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_startup_probe.py +299 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +108 -0
- huaweicloudsdkcae/v1/model/instance.py +166 -0
- huaweicloudsdkcae/v1/model/job_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/job_spec.py +166 -0
- huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py +108 -0
- huaweicloudsdkcae/v1/model/list_agencies_request.py +77 -0
- huaweicloudsdkcae/v1/model/list_agencies_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_applications_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_applications_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_certificates_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_certificates_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +221 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_response_data.py +129 -0
- huaweicloudsdkcae/v1/model/list_component_instances_request.py +192 -0
- huaweicloudsdkcae/v1/model/list_component_instances_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +192 -0
- huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_components_request.py +280 -0
- huaweicloudsdkcae/v1/model/list_components_response.py +191 -0
- huaweicloudsdkcae/v1/model/list_domains_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_domains_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_effective_components_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_effective_components_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec.py +129 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +166 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +166 -0
- huaweicloudsdkcae/v1/model/list_eips_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_eips_response.py +158 -0
- huaweicloudsdkcae/v1/model/list_environments_request.py +108 -0
- huaweicloudsdkcae/v1/model/list_environments_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +108 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_secrets_request.py +108 -0
- huaweicloudsdkcae/v1/model/list_secrets_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_timer_rules_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_timer_rules_response.py +158 -0
- huaweicloudsdkcae/v1/model/list_volumes_request.py +164 -0
- huaweicloudsdkcae/v1/model/list_volumes_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +136 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +158 -0
- huaweicloudsdkcae/v1/model/meta_cert.py +137 -0
- huaweicloudsdkcae/v1/model/meta_domain.py +166 -0
- huaweicloudsdkcae/v1/model/metadata_response.py +224 -0
- huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body.py +154 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +306 -0
- huaweicloudsdkcae/v1/model/mount_component.py +253 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +164 -0
- huaweicloudsdkcae/v1/model/notice_rule_scope.py +194 -0
- huaweicloudsdkcae/v1/model/repo.py +166 -0
- huaweicloudsdkcae/v1/model/resource_limit.py +135 -0
- huaweicloudsdkcae/v1/model/resource_limit_for_upgrade.py +137 -0
- huaweicloudsdkcae/v1/model/resources_credential.py +137 -0
- huaweicloudsdkcae/v1/model/retry_job_request.py +164 -0
- huaweicloudsdkcae/v1/model/retry_job_response.py +81 -0
- huaweicloudsdkcae/v1/model/scale_configuration_data_advanced.py +224 -0
- huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py +133 -0
- huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +195 -0
- huaweicloudsdkcae/v1/model/secret_detail.py +276 -0
- huaweicloudsdkcae/v1/model/show_application_request.py +164 -0
- huaweicloudsdkcae/v1/model/show_application_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_component_request.py +192 -0
- huaweicloudsdkcae/v1/model/show_component_response.py +183 -0
- huaweicloudsdkcae/v1/model/show_execution_result_request.py +164 -0
- huaweicloudsdkcae/v1/model/show_execution_result_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_job_request.py +164 -0
- huaweicloudsdkcae/v1/model/show_job_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_request.py +136 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response.py +158 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +427 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_request.py +132 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_response.py +166 -0
- huaweicloudsdkcae/v1/model/source.py +189 -0
- huaweicloudsdkcae/v1/model/spec_cert.py +166 -0
- huaweicloudsdkcae/v1/model/task.py +253 -0
- huaweicloudsdkcae/v1/model/time_rule_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/timer_rule_details.py +427 -0
- huaweicloudsdkcae/v1/model/trigger_policy.py +194 -0
- huaweicloudsdkcae/v1/model/update_cert_req.py +151 -0
- huaweicloudsdkcae/v1/model/update_certificate_request.py +189 -0
- huaweicloudsdkcae/v1/model/update_certificate_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_component_request.py +217 -0
- huaweicloudsdkcae/v1/model/update_component_request_body.py +175 -0
- huaweicloudsdkcae/v1/model/update_component_request_metadata.py +136 -0
- huaweicloudsdkcae/v1/model/update_component_request_spec.py +211 -0
- huaweicloudsdkcae/v1/model/update_component_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_eip_request.py +161 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body.py +154 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec.py +129 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +137 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +137 -0
- huaweicloudsdkcae/v1/model/update_eip_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_request.py +189 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_response.py +81 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_item.py +185 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_req.py +159 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_request.py +157 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_response.py +166 -0
- huaweicloudsdkcae/v1/model/update_secret_request.py +161 -0
- huaweicloudsdkcae/v1/model/update_secret_response.py +166 -0
- huaweicloudsdkcae/v1/model/update_spec_cert.py +135 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_details.py +305 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_req.py +151 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_request.py +189 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_response.py +81 -0
- huaweicloudsdkcae/v1/model/volume.py +282 -0
- huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py +249 -0
- huaweicloudsdkcae/v1/model/volume_configuration_mount_info.py +166 -0
- huaweicloudsdkcae/v1/model/volume_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/volume_spec.py +192 -0
- huaweicloudsdkcae/v1/model/vpc_egress_kind_obj.py +80 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +154 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +107 -0
- huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +166 -0
- huaweicloudsdkcae/v1/region/__init__.py +0 -0
- huaweicloudsdkcae/v1/region/cae_region.py +60 -0
- huaweicloudsdkcae-3.1.179.dist-info/METADATA +25 -0
- huaweicloudsdkcae-3.1.179.dist-info/RECORD +259 -0
- huaweicloudsdkcae-3.1.179.dist-info/WHEEL +4 -0
- 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 HealthCheckConfigurationReadinessProbe:
|
|
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
|
+
'period_seconds': 'int',
|
|
19
|
+
'initial_delay_seconds': 'int',
|
|
20
|
+
'timeout_seconds': 'int',
|
|
21
|
+
'success_threshold': 'int',
|
|
22
|
+
'failure_threshold': 'int',
|
|
23
|
+
'http_get': 'HealthCheckConfigurationHttpGet',
|
|
24
|
+
'tcp_socket': 'HealthCheckConfigurationTcpSocket',
|
|
25
|
+
'_exec': 'HealthCheckConfigurationExec'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'period_seconds': 'periodSeconds',
|
|
30
|
+
'initial_delay_seconds': 'initialDelaySeconds',
|
|
31
|
+
'timeout_seconds': 'timeoutSeconds',
|
|
32
|
+
'success_threshold': 'successThreshold',
|
|
33
|
+
'failure_threshold': 'failureThreshold',
|
|
34
|
+
'http_get': 'httpGet',
|
|
35
|
+
'tcp_socket': 'tcpSocket',
|
|
36
|
+
'_exec': 'exec'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
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):
|
|
40
|
+
r"""HealthCheckConfigurationReadinessProbe
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param period_seconds: 检测周期,单位为s。
|
|
45
|
+
:type period_seconds: int
|
|
46
|
+
:param initial_delay_seconds: 延迟时间,单位为s。
|
|
47
|
+
:type initial_delay_seconds: int
|
|
48
|
+
:param timeout_seconds: 超时时间,单位为s。
|
|
49
|
+
:type timeout_seconds: int
|
|
50
|
+
:param success_threshold: 成功阈值。
|
|
51
|
+
:type success_threshold: int
|
|
52
|
+
:param failure_threshold: 最大失败次数。
|
|
53
|
+
:type failure_threshold: int
|
|
54
|
+
:param http_get:
|
|
55
|
+
:type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
|
|
56
|
+
:param tcp_socket:
|
|
57
|
+
:type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
|
|
58
|
+
:param _exec:
|
|
59
|
+
:type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
self._period_seconds = None
|
|
65
|
+
self._initial_delay_seconds = None
|
|
66
|
+
self._timeout_seconds = None
|
|
67
|
+
self._success_threshold = None
|
|
68
|
+
self._failure_threshold = None
|
|
69
|
+
self._http_get = None
|
|
70
|
+
self._tcp_socket = None
|
|
71
|
+
self.__exec = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
|
|
74
|
+
if period_seconds is not None:
|
|
75
|
+
self.period_seconds = period_seconds
|
|
76
|
+
if initial_delay_seconds is not None:
|
|
77
|
+
self.initial_delay_seconds = initial_delay_seconds
|
|
78
|
+
if timeout_seconds is not None:
|
|
79
|
+
self.timeout_seconds = timeout_seconds
|
|
80
|
+
if success_threshold is not None:
|
|
81
|
+
self.success_threshold = success_threshold
|
|
82
|
+
if failure_threshold is not None:
|
|
83
|
+
self.failure_threshold = failure_threshold
|
|
84
|
+
if http_get is not None:
|
|
85
|
+
self.http_get = http_get
|
|
86
|
+
if tcp_socket is not None:
|
|
87
|
+
self.tcp_socket = tcp_socket
|
|
88
|
+
if _exec is not None:
|
|
89
|
+
self._exec = _exec
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def period_seconds(self):
|
|
93
|
+
r"""Gets the period_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
94
|
+
|
|
95
|
+
检测周期,单位为s。
|
|
96
|
+
|
|
97
|
+
:return: The period_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
98
|
+
:rtype: int
|
|
99
|
+
"""
|
|
100
|
+
return self._period_seconds
|
|
101
|
+
|
|
102
|
+
@period_seconds.setter
|
|
103
|
+
def period_seconds(self, period_seconds):
|
|
104
|
+
r"""Sets the period_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
105
|
+
|
|
106
|
+
检测周期,单位为s。
|
|
107
|
+
|
|
108
|
+
:param period_seconds: The period_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
109
|
+
:type period_seconds: int
|
|
110
|
+
"""
|
|
111
|
+
self._period_seconds = period_seconds
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def initial_delay_seconds(self):
|
|
115
|
+
r"""Gets the initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
116
|
+
|
|
117
|
+
延迟时间,单位为s。
|
|
118
|
+
|
|
119
|
+
:return: The initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
120
|
+
:rtype: int
|
|
121
|
+
"""
|
|
122
|
+
return self._initial_delay_seconds
|
|
123
|
+
|
|
124
|
+
@initial_delay_seconds.setter
|
|
125
|
+
def initial_delay_seconds(self, initial_delay_seconds):
|
|
126
|
+
r"""Sets the initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
127
|
+
|
|
128
|
+
延迟时间,单位为s。
|
|
129
|
+
|
|
130
|
+
:param initial_delay_seconds: The initial_delay_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
131
|
+
:type initial_delay_seconds: int
|
|
132
|
+
"""
|
|
133
|
+
self._initial_delay_seconds = initial_delay_seconds
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def timeout_seconds(self):
|
|
137
|
+
r"""Gets the timeout_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
138
|
+
|
|
139
|
+
超时时间,单位为s。
|
|
140
|
+
|
|
141
|
+
:return: The timeout_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
142
|
+
:rtype: int
|
|
143
|
+
"""
|
|
144
|
+
return self._timeout_seconds
|
|
145
|
+
|
|
146
|
+
@timeout_seconds.setter
|
|
147
|
+
def timeout_seconds(self, timeout_seconds):
|
|
148
|
+
r"""Sets the timeout_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
149
|
+
|
|
150
|
+
超时时间,单位为s。
|
|
151
|
+
|
|
152
|
+
:param timeout_seconds: The timeout_seconds of this HealthCheckConfigurationReadinessProbe.
|
|
153
|
+
:type timeout_seconds: int
|
|
154
|
+
"""
|
|
155
|
+
self._timeout_seconds = timeout_seconds
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def success_threshold(self):
|
|
159
|
+
r"""Gets the success_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
160
|
+
|
|
161
|
+
成功阈值。
|
|
162
|
+
|
|
163
|
+
:return: The success_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
164
|
+
:rtype: int
|
|
165
|
+
"""
|
|
166
|
+
return self._success_threshold
|
|
167
|
+
|
|
168
|
+
@success_threshold.setter
|
|
169
|
+
def success_threshold(self, success_threshold):
|
|
170
|
+
r"""Sets the success_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
171
|
+
|
|
172
|
+
成功阈值。
|
|
173
|
+
|
|
174
|
+
:param success_threshold: The success_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
175
|
+
:type success_threshold: int
|
|
176
|
+
"""
|
|
177
|
+
self._success_threshold = success_threshold
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def failure_threshold(self):
|
|
181
|
+
r"""Gets the failure_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
182
|
+
|
|
183
|
+
最大失败次数。
|
|
184
|
+
|
|
185
|
+
:return: The failure_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
186
|
+
:rtype: int
|
|
187
|
+
"""
|
|
188
|
+
return self._failure_threshold
|
|
189
|
+
|
|
190
|
+
@failure_threshold.setter
|
|
191
|
+
def failure_threshold(self, failure_threshold):
|
|
192
|
+
r"""Sets the failure_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
193
|
+
|
|
194
|
+
最大失败次数。
|
|
195
|
+
|
|
196
|
+
:param failure_threshold: The failure_threshold of this HealthCheckConfigurationReadinessProbe.
|
|
197
|
+
:type failure_threshold: int
|
|
198
|
+
"""
|
|
199
|
+
self._failure_threshold = failure_threshold
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def http_get(self):
|
|
203
|
+
r"""Gets the http_get of this HealthCheckConfigurationReadinessProbe.
|
|
204
|
+
|
|
205
|
+
:return: The http_get of this HealthCheckConfigurationReadinessProbe.
|
|
206
|
+
:rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
|
|
207
|
+
"""
|
|
208
|
+
return self._http_get
|
|
209
|
+
|
|
210
|
+
@http_get.setter
|
|
211
|
+
def http_get(self, http_get):
|
|
212
|
+
r"""Sets the http_get of this HealthCheckConfigurationReadinessProbe.
|
|
213
|
+
|
|
214
|
+
:param http_get: The http_get of this HealthCheckConfigurationReadinessProbe.
|
|
215
|
+
:type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
|
|
216
|
+
"""
|
|
217
|
+
self._http_get = http_get
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def tcp_socket(self):
|
|
221
|
+
r"""Gets the tcp_socket of this HealthCheckConfigurationReadinessProbe.
|
|
222
|
+
|
|
223
|
+
:return: The tcp_socket of this HealthCheckConfigurationReadinessProbe.
|
|
224
|
+
:rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
|
|
225
|
+
"""
|
|
226
|
+
return self._tcp_socket
|
|
227
|
+
|
|
228
|
+
@tcp_socket.setter
|
|
229
|
+
def tcp_socket(self, tcp_socket):
|
|
230
|
+
r"""Sets the tcp_socket of this HealthCheckConfigurationReadinessProbe.
|
|
231
|
+
|
|
232
|
+
:param tcp_socket: The tcp_socket of this HealthCheckConfigurationReadinessProbe.
|
|
233
|
+
:type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
|
|
234
|
+
"""
|
|
235
|
+
self._tcp_socket = tcp_socket
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def _exec(self):
|
|
239
|
+
r"""Gets the _exec of this HealthCheckConfigurationReadinessProbe.
|
|
240
|
+
|
|
241
|
+
:return: The _exec of this HealthCheckConfigurationReadinessProbe.
|
|
242
|
+
:rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
|
|
243
|
+
"""
|
|
244
|
+
return self.__exec
|
|
245
|
+
|
|
246
|
+
@_exec.setter
|
|
247
|
+
def _exec(self, _exec):
|
|
248
|
+
r"""Sets the _exec of this HealthCheckConfigurationReadinessProbe.
|
|
249
|
+
|
|
250
|
+
:param _exec: The _exec of this HealthCheckConfigurationReadinessProbe.
|
|
251
|
+
:type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
|
|
252
|
+
"""
|
|
253
|
+
self.__exec = _exec
|
|
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, HealthCheckConfigurationReadinessProbe):
|
|
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,299 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class HealthCheckConfigurationStartupProbe:
|
|
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
|
+
'period_seconds': 'int',
|
|
19
|
+
'initial_delay_seconds': 'int',
|
|
20
|
+
'timeout_seconds': 'int',
|
|
21
|
+
'success_threshold': 'int',
|
|
22
|
+
'failure_threshold': 'int',
|
|
23
|
+
'http_get': 'HealthCheckConfigurationHttpGet',
|
|
24
|
+
'tcp_socket': 'HealthCheckConfigurationTcpSocket',
|
|
25
|
+
'_exec': 'HealthCheckConfigurationExec'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'period_seconds': 'periodSeconds',
|
|
30
|
+
'initial_delay_seconds': 'initialDelaySeconds',
|
|
31
|
+
'timeout_seconds': 'timeoutSeconds',
|
|
32
|
+
'success_threshold': 'successThreshold',
|
|
33
|
+
'failure_threshold': 'failureThreshold',
|
|
34
|
+
'http_get': 'httpGet',
|
|
35
|
+
'tcp_socket': 'tcpSocket',
|
|
36
|
+
'_exec': 'exec'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
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):
|
|
40
|
+
r"""HealthCheckConfigurationStartupProbe
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param period_seconds: 检测周期,单位为s。
|
|
45
|
+
:type period_seconds: int
|
|
46
|
+
:param initial_delay_seconds: 延迟时间,单位为s。
|
|
47
|
+
:type initial_delay_seconds: int
|
|
48
|
+
:param timeout_seconds: 超时时间,单位为s。
|
|
49
|
+
:type timeout_seconds: int
|
|
50
|
+
:param success_threshold: 成功阈值。
|
|
51
|
+
:type success_threshold: int
|
|
52
|
+
:param failure_threshold: 最大失败次数。
|
|
53
|
+
:type failure_threshold: int
|
|
54
|
+
:param http_get:
|
|
55
|
+
:type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
|
|
56
|
+
:param tcp_socket:
|
|
57
|
+
:type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
|
|
58
|
+
:param _exec:
|
|
59
|
+
:type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
self._period_seconds = None
|
|
65
|
+
self._initial_delay_seconds = None
|
|
66
|
+
self._timeout_seconds = None
|
|
67
|
+
self._success_threshold = None
|
|
68
|
+
self._failure_threshold = None
|
|
69
|
+
self._http_get = None
|
|
70
|
+
self._tcp_socket = None
|
|
71
|
+
self.__exec = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
|
|
74
|
+
if period_seconds is not None:
|
|
75
|
+
self.period_seconds = period_seconds
|
|
76
|
+
if initial_delay_seconds is not None:
|
|
77
|
+
self.initial_delay_seconds = initial_delay_seconds
|
|
78
|
+
if timeout_seconds is not None:
|
|
79
|
+
self.timeout_seconds = timeout_seconds
|
|
80
|
+
if success_threshold is not None:
|
|
81
|
+
self.success_threshold = success_threshold
|
|
82
|
+
if failure_threshold is not None:
|
|
83
|
+
self.failure_threshold = failure_threshold
|
|
84
|
+
if http_get is not None:
|
|
85
|
+
self.http_get = http_get
|
|
86
|
+
if tcp_socket is not None:
|
|
87
|
+
self.tcp_socket = tcp_socket
|
|
88
|
+
if _exec is not None:
|
|
89
|
+
self._exec = _exec
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def period_seconds(self):
|
|
93
|
+
r"""Gets the period_seconds of this HealthCheckConfigurationStartupProbe.
|
|
94
|
+
|
|
95
|
+
检测周期,单位为s。
|
|
96
|
+
|
|
97
|
+
:return: The period_seconds of this HealthCheckConfigurationStartupProbe.
|
|
98
|
+
:rtype: int
|
|
99
|
+
"""
|
|
100
|
+
return self._period_seconds
|
|
101
|
+
|
|
102
|
+
@period_seconds.setter
|
|
103
|
+
def period_seconds(self, period_seconds):
|
|
104
|
+
r"""Sets the period_seconds of this HealthCheckConfigurationStartupProbe.
|
|
105
|
+
|
|
106
|
+
检测周期,单位为s。
|
|
107
|
+
|
|
108
|
+
:param period_seconds: The period_seconds of this HealthCheckConfigurationStartupProbe.
|
|
109
|
+
:type period_seconds: int
|
|
110
|
+
"""
|
|
111
|
+
self._period_seconds = period_seconds
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def initial_delay_seconds(self):
|
|
115
|
+
r"""Gets the initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
|
|
116
|
+
|
|
117
|
+
延迟时间,单位为s。
|
|
118
|
+
|
|
119
|
+
:return: The initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
|
|
120
|
+
:rtype: int
|
|
121
|
+
"""
|
|
122
|
+
return self._initial_delay_seconds
|
|
123
|
+
|
|
124
|
+
@initial_delay_seconds.setter
|
|
125
|
+
def initial_delay_seconds(self, initial_delay_seconds):
|
|
126
|
+
r"""Sets the initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
|
|
127
|
+
|
|
128
|
+
延迟时间,单位为s。
|
|
129
|
+
|
|
130
|
+
:param initial_delay_seconds: The initial_delay_seconds of this HealthCheckConfigurationStartupProbe.
|
|
131
|
+
:type initial_delay_seconds: int
|
|
132
|
+
"""
|
|
133
|
+
self._initial_delay_seconds = initial_delay_seconds
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def timeout_seconds(self):
|
|
137
|
+
r"""Gets the timeout_seconds of this HealthCheckConfigurationStartupProbe.
|
|
138
|
+
|
|
139
|
+
超时时间,单位为s。
|
|
140
|
+
|
|
141
|
+
:return: The timeout_seconds of this HealthCheckConfigurationStartupProbe.
|
|
142
|
+
:rtype: int
|
|
143
|
+
"""
|
|
144
|
+
return self._timeout_seconds
|
|
145
|
+
|
|
146
|
+
@timeout_seconds.setter
|
|
147
|
+
def timeout_seconds(self, timeout_seconds):
|
|
148
|
+
r"""Sets the timeout_seconds of this HealthCheckConfigurationStartupProbe.
|
|
149
|
+
|
|
150
|
+
超时时间,单位为s。
|
|
151
|
+
|
|
152
|
+
:param timeout_seconds: The timeout_seconds of this HealthCheckConfigurationStartupProbe.
|
|
153
|
+
:type timeout_seconds: int
|
|
154
|
+
"""
|
|
155
|
+
self._timeout_seconds = timeout_seconds
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def success_threshold(self):
|
|
159
|
+
r"""Gets the success_threshold of this HealthCheckConfigurationStartupProbe.
|
|
160
|
+
|
|
161
|
+
成功阈值。
|
|
162
|
+
|
|
163
|
+
:return: The success_threshold of this HealthCheckConfigurationStartupProbe.
|
|
164
|
+
:rtype: int
|
|
165
|
+
"""
|
|
166
|
+
return self._success_threshold
|
|
167
|
+
|
|
168
|
+
@success_threshold.setter
|
|
169
|
+
def success_threshold(self, success_threshold):
|
|
170
|
+
r"""Sets the success_threshold of this HealthCheckConfigurationStartupProbe.
|
|
171
|
+
|
|
172
|
+
成功阈值。
|
|
173
|
+
|
|
174
|
+
:param success_threshold: The success_threshold of this HealthCheckConfigurationStartupProbe.
|
|
175
|
+
:type success_threshold: int
|
|
176
|
+
"""
|
|
177
|
+
self._success_threshold = success_threshold
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def failure_threshold(self):
|
|
181
|
+
r"""Gets the failure_threshold of this HealthCheckConfigurationStartupProbe.
|
|
182
|
+
|
|
183
|
+
最大失败次数。
|
|
184
|
+
|
|
185
|
+
:return: The failure_threshold of this HealthCheckConfigurationStartupProbe.
|
|
186
|
+
:rtype: int
|
|
187
|
+
"""
|
|
188
|
+
return self._failure_threshold
|
|
189
|
+
|
|
190
|
+
@failure_threshold.setter
|
|
191
|
+
def failure_threshold(self, failure_threshold):
|
|
192
|
+
r"""Sets the failure_threshold of this HealthCheckConfigurationStartupProbe.
|
|
193
|
+
|
|
194
|
+
最大失败次数。
|
|
195
|
+
|
|
196
|
+
:param failure_threshold: The failure_threshold of this HealthCheckConfigurationStartupProbe.
|
|
197
|
+
:type failure_threshold: int
|
|
198
|
+
"""
|
|
199
|
+
self._failure_threshold = failure_threshold
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def http_get(self):
|
|
203
|
+
r"""Gets the http_get of this HealthCheckConfigurationStartupProbe.
|
|
204
|
+
|
|
205
|
+
:return: The http_get of this HealthCheckConfigurationStartupProbe.
|
|
206
|
+
:rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
|
|
207
|
+
"""
|
|
208
|
+
return self._http_get
|
|
209
|
+
|
|
210
|
+
@http_get.setter
|
|
211
|
+
def http_get(self, http_get):
|
|
212
|
+
r"""Sets the http_get of this HealthCheckConfigurationStartupProbe.
|
|
213
|
+
|
|
214
|
+
:param http_get: The http_get of this HealthCheckConfigurationStartupProbe.
|
|
215
|
+
:type http_get: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationHttpGet`
|
|
216
|
+
"""
|
|
217
|
+
self._http_get = http_get
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def tcp_socket(self):
|
|
221
|
+
r"""Gets the tcp_socket of this HealthCheckConfigurationStartupProbe.
|
|
222
|
+
|
|
223
|
+
:return: The tcp_socket of this HealthCheckConfigurationStartupProbe.
|
|
224
|
+
:rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
|
|
225
|
+
"""
|
|
226
|
+
return self._tcp_socket
|
|
227
|
+
|
|
228
|
+
@tcp_socket.setter
|
|
229
|
+
def tcp_socket(self, tcp_socket):
|
|
230
|
+
r"""Sets the tcp_socket of this HealthCheckConfigurationStartupProbe.
|
|
231
|
+
|
|
232
|
+
:param tcp_socket: The tcp_socket of this HealthCheckConfigurationStartupProbe.
|
|
233
|
+
:type tcp_socket: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationTcpSocket`
|
|
234
|
+
"""
|
|
235
|
+
self._tcp_socket = tcp_socket
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def _exec(self):
|
|
239
|
+
r"""Gets the _exec of this HealthCheckConfigurationStartupProbe.
|
|
240
|
+
|
|
241
|
+
:return: The _exec of this HealthCheckConfigurationStartupProbe.
|
|
242
|
+
:rtype: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
|
|
243
|
+
"""
|
|
244
|
+
return self.__exec
|
|
245
|
+
|
|
246
|
+
@_exec.setter
|
|
247
|
+
def _exec(self, _exec):
|
|
248
|
+
r"""Sets the _exec of this HealthCheckConfigurationStartupProbe.
|
|
249
|
+
|
|
250
|
+
:param _exec: The _exec of this HealthCheckConfigurationStartupProbe.
|
|
251
|
+
:type _exec: :class:`huaweicloudsdkcae.v1.HealthCheckConfigurationExec`
|
|
252
|
+
"""
|
|
253
|
+
self.__exec = _exec
|
|
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, HealthCheckConfigurationStartupProbe):
|
|
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,108 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class HealthCheckConfigurationTcpSocket:
|
|
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
|
+
'port': 'int'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'port': 'port'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, port=None):
|
|
26
|
+
r"""HealthCheckConfigurationTcpSocket
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param port: 端口。
|
|
31
|
+
:type port: int
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._port = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
if port is not None:
|
|
40
|
+
self.port = port
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def port(self):
|
|
44
|
+
r"""Gets the port of this HealthCheckConfigurationTcpSocket.
|
|
45
|
+
|
|
46
|
+
端口。
|
|
47
|
+
|
|
48
|
+
:return: The port of this HealthCheckConfigurationTcpSocket.
|
|
49
|
+
:rtype: int
|
|
50
|
+
"""
|
|
51
|
+
return self._port
|
|
52
|
+
|
|
53
|
+
@port.setter
|
|
54
|
+
def port(self, port):
|
|
55
|
+
r"""Sets the port of this HealthCheckConfigurationTcpSocket.
|
|
56
|
+
|
|
57
|
+
端口。
|
|
58
|
+
|
|
59
|
+
:param port: The port of this HealthCheckConfigurationTcpSocket.
|
|
60
|
+
:type port: int
|
|
61
|
+
"""
|
|
62
|
+
self._port = port
|
|
63
|
+
|
|
64
|
+
def to_dict(self):
|
|
65
|
+
result = {}
|
|
66
|
+
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
68
|
+
value = getattr(self, attr)
|
|
69
|
+
if isinstance(value, list):
|
|
70
|
+
result[attr] = list(map(
|
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
72
|
+
value
|
|
73
|
+
))
|
|
74
|
+
elif hasattr(value, "to_dict"):
|
|
75
|
+
result[attr] = value.to_dict()
|
|
76
|
+
elif isinstance(value, dict):
|
|
77
|
+
result[attr] = dict(map(
|
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
|
80
|
+
value.items()
|
|
81
|
+
))
|
|
82
|
+
else:
|
|
83
|
+
if attr in self.sensitive_list:
|
|
84
|
+
result[attr] = "****"
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def to_str(self):
|
|
91
|
+
"""Returns the string representation of the model"""
|
|
92
|
+
import simplejson as json
|
|
93
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
|
+
|
|
95
|
+
def __repr__(self):
|
|
96
|
+
"""For `print`"""
|
|
97
|
+
return self.to_str()
|
|
98
|
+
|
|
99
|
+
def __eq__(self, other):
|
|
100
|
+
"""Returns true if both objects are equal"""
|
|
101
|
+
if not isinstance(other, HealthCheckConfigurationTcpSocket):
|
|
102
|
+
return False
|
|
103
|
+
|
|
104
|
+
return self.__dict__ == other.__dict__
|
|
105
|
+
|
|
106
|
+
def __ne__(self, other):
|
|
107
|
+
"""Returns true if both objects are not equal"""
|
|
108
|
+
return not self == other
|