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,137 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateEipRequestBodySpecIngress:
|
|
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
|
+
'bandwidth_size': 'int',
|
|
19
|
+
'enabled': 'bool'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'bandwidth_size': 'bandwidth_size',
|
|
24
|
+
'enabled': 'enabled'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, bandwidth_size=None, enabled=None):
|
|
28
|
+
r"""UpdateEipRequestBodySpecIngress
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param bandwidth_size: 入网IP带宽。
|
|
33
|
+
:type bandwidth_size: int
|
|
34
|
+
:param enabled: 是否关闭入网IP。
|
|
35
|
+
:type enabled: bool
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._bandwidth_size = None
|
|
41
|
+
self._enabled = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
if bandwidth_size is not None:
|
|
45
|
+
self.bandwidth_size = bandwidth_size
|
|
46
|
+
if enabled is not None:
|
|
47
|
+
self.enabled = enabled
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def bandwidth_size(self):
|
|
51
|
+
r"""Gets the bandwidth_size of this UpdateEipRequestBodySpecIngress.
|
|
52
|
+
|
|
53
|
+
入网IP带宽。
|
|
54
|
+
|
|
55
|
+
:return: The bandwidth_size of this UpdateEipRequestBodySpecIngress.
|
|
56
|
+
:rtype: int
|
|
57
|
+
"""
|
|
58
|
+
return self._bandwidth_size
|
|
59
|
+
|
|
60
|
+
@bandwidth_size.setter
|
|
61
|
+
def bandwidth_size(self, bandwidth_size):
|
|
62
|
+
r"""Sets the bandwidth_size of this UpdateEipRequestBodySpecIngress.
|
|
63
|
+
|
|
64
|
+
入网IP带宽。
|
|
65
|
+
|
|
66
|
+
:param bandwidth_size: The bandwidth_size of this UpdateEipRequestBodySpecIngress.
|
|
67
|
+
:type bandwidth_size: int
|
|
68
|
+
"""
|
|
69
|
+
self._bandwidth_size = bandwidth_size
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def enabled(self):
|
|
73
|
+
r"""Gets the enabled of this UpdateEipRequestBodySpecIngress.
|
|
74
|
+
|
|
75
|
+
是否关闭入网IP。
|
|
76
|
+
|
|
77
|
+
:return: The enabled of this UpdateEipRequestBodySpecIngress.
|
|
78
|
+
:rtype: bool
|
|
79
|
+
"""
|
|
80
|
+
return self._enabled
|
|
81
|
+
|
|
82
|
+
@enabled.setter
|
|
83
|
+
def enabled(self, enabled):
|
|
84
|
+
r"""Sets the enabled of this UpdateEipRequestBodySpecIngress.
|
|
85
|
+
|
|
86
|
+
是否关闭入网IP。
|
|
87
|
+
|
|
88
|
+
:param enabled: The enabled of this UpdateEipRequestBodySpecIngress.
|
|
89
|
+
:type enabled: bool
|
|
90
|
+
"""
|
|
91
|
+
self._enabled = enabled
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in self.openapi_types.items():
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
if attr in self.sensitive_list:
|
|
113
|
+
result[attr] = "****"
|
|
114
|
+
else:
|
|
115
|
+
result[attr] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
import simplejson as json
|
|
122
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
123
|
+
|
|
124
|
+
def __repr__(self):
|
|
125
|
+
"""For `print`"""
|
|
126
|
+
return self.to_str()
|
|
127
|
+
|
|
128
|
+
def __eq__(self, other):
|
|
129
|
+
"""Returns true if both objects are equal"""
|
|
130
|
+
if not isinstance(other, UpdateEipRequestBodySpecIngress):
|
|
131
|
+
return False
|
|
132
|
+
|
|
133
|
+
return self.__dict__ == other.__dict__
|
|
134
|
+
|
|
135
|
+
def __ne__(self, other):
|
|
136
|
+
"""Returns true if both objects are not equal"""
|
|
137
|
+
return not self == other
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UpdateEipResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
def __init__(self):
|
|
25
|
+
r"""UpdateEipResponse
|
|
26
|
+
|
|
27
|
+
The model defined in huaweicloud sdk
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.discriminator = None
|
|
33
|
+
|
|
34
|
+
def to_dict(self):
|
|
35
|
+
import warnings
|
|
36
|
+
warnings.warn("UpdateEipResponse.to_dict() is deprecated and no longer maintained, "
|
|
37
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in self.openapi_types.items():
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
67
|
+
|
|
68
|
+
def __repr__(self):
|
|
69
|
+
"""For `print`"""
|
|
70
|
+
return self.to_str()
|
|
71
|
+
|
|
72
|
+
def __eq__(self, other):
|
|
73
|
+
"""Returns true if both objects are equal"""
|
|
74
|
+
if not isinstance(other, UpdateEipResponse):
|
|
75
|
+
return False
|
|
76
|
+
|
|
77
|
+
return self.__dict__ == other.__dict__
|
|
78
|
+
|
|
79
|
+
def __ne__(self, other):
|
|
80
|
+
"""Returns true if both objects are not equal"""
|
|
81
|
+
return not self == other
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateMonitorSystemRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
19
|
+
'x_environment_id': 'str',
|
|
20
|
+
'monitor_system_id': 'str',
|
|
21
|
+
'body': 'MonitorSystemRequestBody'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
26
|
+
'x_environment_id': 'X-Environment-ID',
|
|
27
|
+
'monitor_system_id': 'monitor_system_id',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, x_enterprise_project_id=None, x_environment_id=None, monitor_system_id=None, body=None):
|
|
32
|
+
r"""UpdateMonitorSystemRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
37
|
+
:type x_enterprise_project_id: str
|
|
38
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
39
|
+
:type x_environment_id: str
|
|
40
|
+
:param monitor_system_id: 监控系统配置ID。
|
|
41
|
+
:type monitor_system_id: str
|
|
42
|
+
:param body: Body of the UpdateMonitorSystemRequest
|
|
43
|
+
:type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody`
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._x_enterprise_project_id = None
|
|
49
|
+
self._x_environment_id = None
|
|
50
|
+
self._monitor_system_id = None
|
|
51
|
+
self._body = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if x_enterprise_project_id is not None:
|
|
55
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
56
|
+
self.x_environment_id = x_environment_id
|
|
57
|
+
self.monitor_system_id = monitor_system_id
|
|
58
|
+
if body is not None:
|
|
59
|
+
self.body = body
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def x_enterprise_project_id(self):
|
|
63
|
+
r"""Gets the x_enterprise_project_id of this UpdateMonitorSystemRequest.
|
|
64
|
+
|
|
65
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
66
|
+
|
|
67
|
+
:return: The x_enterprise_project_id of this UpdateMonitorSystemRequest.
|
|
68
|
+
:rtype: str
|
|
69
|
+
"""
|
|
70
|
+
return self._x_enterprise_project_id
|
|
71
|
+
|
|
72
|
+
@x_enterprise_project_id.setter
|
|
73
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
74
|
+
r"""Sets the x_enterprise_project_id of this UpdateMonitorSystemRequest.
|
|
75
|
+
|
|
76
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
77
|
+
|
|
78
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this UpdateMonitorSystemRequest.
|
|
79
|
+
:type x_enterprise_project_id: str
|
|
80
|
+
"""
|
|
81
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def x_environment_id(self):
|
|
85
|
+
r"""Gets the x_environment_id of this UpdateMonitorSystemRequest.
|
|
86
|
+
|
|
87
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
88
|
+
|
|
89
|
+
:return: The x_environment_id of this UpdateMonitorSystemRequest.
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._x_environment_id
|
|
93
|
+
|
|
94
|
+
@x_environment_id.setter
|
|
95
|
+
def x_environment_id(self, x_environment_id):
|
|
96
|
+
r"""Sets the x_environment_id of this UpdateMonitorSystemRequest.
|
|
97
|
+
|
|
98
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
99
|
+
|
|
100
|
+
:param x_environment_id: The x_environment_id of this UpdateMonitorSystemRequest.
|
|
101
|
+
:type x_environment_id: str
|
|
102
|
+
"""
|
|
103
|
+
self._x_environment_id = x_environment_id
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def monitor_system_id(self):
|
|
107
|
+
r"""Gets the monitor_system_id of this UpdateMonitorSystemRequest.
|
|
108
|
+
|
|
109
|
+
监控系统配置ID。
|
|
110
|
+
|
|
111
|
+
:return: The monitor_system_id of this UpdateMonitorSystemRequest.
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._monitor_system_id
|
|
115
|
+
|
|
116
|
+
@monitor_system_id.setter
|
|
117
|
+
def monitor_system_id(self, monitor_system_id):
|
|
118
|
+
r"""Sets the monitor_system_id of this UpdateMonitorSystemRequest.
|
|
119
|
+
|
|
120
|
+
监控系统配置ID。
|
|
121
|
+
|
|
122
|
+
:param monitor_system_id: The monitor_system_id of this UpdateMonitorSystemRequest.
|
|
123
|
+
:type monitor_system_id: str
|
|
124
|
+
"""
|
|
125
|
+
self._monitor_system_id = monitor_system_id
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def body(self):
|
|
129
|
+
r"""Gets the body of this UpdateMonitorSystemRequest.
|
|
130
|
+
|
|
131
|
+
:return: The body of this UpdateMonitorSystemRequest.
|
|
132
|
+
:rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody`
|
|
133
|
+
"""
|
|
134
|
+
return self._body
|
|
135
|
+
|
|
136
|
+
@body.setter
|
|
137
|
+
def body(self, body):
|
|
138
|
+
r"""Sets the body of this UpdateMonitorSystemRequest.
|
|
139
|
+
|
|
140
|
+
:param body: The body of this UpdateMonitorSystemRequest.
|
|
141
|
+
:type body: :class:`huaweicloudsdkcae.v1.MonitorSystemRequestBody`
|
|
142
|
+
"""
|
|
143
|
+
self._body = body
|
|
144
|
+
|
|
145
|
+
def to_dict(self):
|
|
146
|
+
result = {}
|
|
147
|
+
|
|
148
|
+
for attr, _ in self.openapi_types.items():
|
|
149
|
+
value = getattr(self, attr)
|
|
150
|
+
if isinstance(value, list):
|
|
151
|
+
result[attr] = list(map(
|
|
152
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
153
|
+
value
|
|
154
|
+
))
|
|
155
|
+
elif hasattr(value, "to_dict"):
|
|
156
|
+
result[attr] = value.to_dict()
|
|
157
|
+
elif isinstance(value, dict):
|
|
158
|
+
result[attr] = dict(map(
|
|
159
|
+
lambda item: (item[0], item[1].to_dict())
|
|
160
|
+
if hasattr(item[1], "to_dict") else item,
|
|
161
|
+
value.items()
|
|
162
|
+
))
|
|
163
|
+
else:
|
|
164
|
+
if attr in self.sensitive_list:
|
|
165
|
+
result[attr] = "****"
|
|
166
|
+
else:
|
|
167
|
+
result[attr] = value
|
|
168
|
+
|
|
169
|
+
return result
|
|
170
|
+
|
|
171
|
+
def to_str(self):
|
|
172
|
+
"""Returns the string representation of the model"""
|
|
173
|
+
import simplejson as json
|
|
174
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
175
|
+
|
|
176
|
+
def __repr__(self):
|
|
177
|
+
"""For `print`"""
|
|
178
|
+
return self.to_str()
|
|
179
|
+
|
|
180
|
+
def __eq__(self, other):
|
|
181
|
+
"""Returns true if both objects are equal"""
|
|
182
|
+
if not isinstance(other, UpdateMonitorSystemRequest):
|
|
183
|
+
return False
|
|
184
|
+
|
|
185
|
+
return self.__dict__ == other.__dict__
|
|
186
|
+
|
|
187
|
+
def __ne__(self, other):
|
|
188
|
+
"""Returns true if both objects are not equal"""
|
|
189
|
+
return not self == other
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UpdateMonitorSystemResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
def __init__(self):
|
|
25
|
+
r"""UpdateMonitorSystemResponse
|
|
26
|
+
|
|
27
|
+
The model defined in huaweicloud sdk
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.discriminator = None
|
|
33
|
+
|
|
34
|
+
def to_dict(self):
|
|
35
|
+
import warnings
|
|
36
|
+
warnings.warn("UpdateMonitorSystemResponse.to_dict() is deprecated and no longer maintained, "
|
|
37
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in self.openapi_types.items():
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
67
|
+
|
|
68
|
+
def __repr__(self):
|
|
69
|
+
"""For `print`"""
|
|
70
|
+
return self.to_str()
|
|
71
|
+
|
|
72
|
+
def __eq__(self, other):
|
|
73
|
+
"""Returns true if both objects are equal"""
|
|
74
|
+
if not isinstance(other, UpdateMonitorSystemResponse):
|
|
75
|
+
return False
|
|
76
|
+
|
|
77
|
+
return self.__dict__ == other.__dict__
|
|
78
|
+
|
|
79
|
+
def __ne__(self, other):
|
|
80
|
+
"""Returns true if both objects are not equal"""
|
|
81
|
+
return not self == other
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateNoticeRuleItem:
|
|
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
|
+
'event_name': 'str',
|
|
19
|
+
'scope': 'NoticeRuleScope',
|
|
20
|
+
'trigger_policy': 'TriggerPolicy',
|
|
21
|
+
'enable': 'bool'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'event_name': 'event_name',
|
|
26
|
+
'scope': 'scope',
|
|
27
|
+
'trigger_policy': 'trigger_policy',
|
|
28
|
+
'enable': 'enable'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, event_name=None, scope=None, trigger_policy=None, enable=None):
|
|
32
|
+
r"""UpdateNoticeRuleItem
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param event_name: 触发事件名称,支持实例调度成功、实例调度失败、健康检查成功、健康检查失败、镜像拉取成功、镜像拉取失败、容器启动成功、容器启动失败、卷挂载成功、卷挂载失败。
|
|
37
|
+
:type event_name: str
|
|
38
|
+
:param scope:
|
|
39
|
+
:type scope: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
|
|
40
|
+
:param trigger_policy:
|
|
41
|
+
:type trigger_policy: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
|
|
42
|
+
:param enable: 是否启用。
|
|
43
|
+
:type enable: bool
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._event_name = None
|
|
49
|
+
self._scope = None
|
|
50
|
+
self._trigger_policy = None
|
|
51
|
+
self._enable = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if event_name is not None:
|
|
55
|
+
self.event_name = event_name
|
|
56
|
+
self.scope = scope
|
|
57
|
+
self.trigger_policy = trigger_policy
|
|
58
|
+
if enable is not None:
|
|
59
|
+
self.enable = enable
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def event_name(self):
|
|
63
|
+
r"""Gets the event_name of this UpdateNoticeRuleItem.
|
|
64
|
+
|
|
65
|
+
触发事件名称,支持实例调度成功、实例调度失败、健康检查成功、健康检查失败、镜像拉取成功、镜像拉取失败、容器启动成功、容器启动失败、卷挂载成功、卷挂载失败。
|
|
66
|
+
|
|
67
|
+
:return: The event_name of this UpdateNoticeRuleItem.
|
|
68
|
+
:rtype: str
|
|
69
|
+
"""
|
|
70
|
+
return self._event_name
|
|
71
|
+
|
|
72
|
+
@event_name.setter
|
|
73
|
+
def event_name(self, event_name):
|
|
74
|
+
r"""Sets the event_name of this UpdateNoticeRuleItem.
|
|
75
|
+
|
|
76
|
+
触发事件名称,支持实例调度成功、实例调度失败、健康检查成功、健康检查失败、镜像拉取成功、镜像拉取失败、容器启动成功、容器启动失败、卷挂载成功、卷挂载失败。
|
|
77
|
+
|
|
78
|
+
:param event_name: The event_name of this UpdateNoticeRuleItem.
|
|
79
|
+
:type event_name: str
|
|
80
|
+
"""
|
|
81
|
+
self._event_name = event_name
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def scope(self):
|
|
85
|
+
r"""Gets the scope of this UpdateNoticeRuleItem.
|
|
86
|
+
|
|
87
|
+
:return: The scope of this UpdateNoticeRuleItem.
|
|
88
|
+
:rtype: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
|
|
89
|
+
"""
|
|
90
|
+
return self._scope
|
|
91
|
+
|
|
92
|
+
@scope.setter
|
|
93
|
+
def scope(self, scope):
|
|
94
|
+
r"""Sets the scope of this UpdateNoticeRuleItem.
|
|
95
|
+
|
|
96
|
+
:param scope: The scope of this UpdateNoticeRuleItem.
|
|
97
|
+
:type scope: :class:`huaweicloudsdkcae.v1.NoticeRuleScope`
|
|
98
|
+
"""
|
|
99
|
+
self._scope = scope
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def trigger_policy(self):
|
|
103
|
+
r"""Gets the trigger_policy of this UpdateNoticeRuleItem.
|
|
104
|
+
|
|
105
|
+
:return: The trigger_policy of this UpdateNoticeRuleItem.
|
|
106
|
+
:rtype: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
|
|
107
|
+
"""
|
|
108
|
+
return self._trigger_policy
|
|
109
|
+
|
|
110
|
+
@trigger_policy.setter
|
|
111
|
+
def trigger_policy(self, trigger_policy):
|
|
112
|
+
r"""Sets the trigger_policy of this UpdateNoticeRuleItem.
|
|
113
|
+
|
|
114
|
+
:param trigger_policy: The trigger_policy of this UpdateNoticeRuleItem.
|
|
115
|
+
:type trigger_policy: :class:`huaweicloudsdkcae.v1.TriggerPolicy`
|
|
116
|
+
"""
|
|
117
|
+
self._trigger_policy = trigger_policy
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def enable(self):
|
|
121
|
+
r"""Gets the enable of this UpdateNoticeRuleItem.
|
|
122
|
+
|
|
123
|
+
是否启用。
|
|
124
|
+
|
|
125
|
+
:return: The enable of this UpdateNoticeRuleItem.
|
|
126
|
+
:rtype: bool
|
|
127
|
+
"""
|
|
128
|
+
return self._enable
|
|
129
|
+
|
|
130
|
+
@enable.setter
|
|
131
|
+
def enable(self, enable):
|
|
132
|
+
r"""Sets the enable of this UpdateNoticeRuleItem.
|
|
133
|
+
|
|
134
|
+
是否启用。
|
|
135
|
+
|
|
136
|
+
:param enable: The enable of this UpdateNoticeRuleItem.
|
|
137
|
+
:type enable: bool
|
|
138
|
+
"""
|
|
139
|
+
self._enable = enable
|
|
140
|
+
|
|
141
|
+
def to_dict(self):
|
|
142
|
+
result = {}
|
|
143
|
+
|
|
144
|
+
for attr, _ in self.openapi_types.items():
|
|
145
|
+
value = getattr(self, attr)
|
|
146
|
+
if isinstance(value, list):
|
|
147
|
+
result[attr] = list(map(
|
|
148
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
149
|
+
value
|
|
150
|
+
))
|
|
151
|
+
elif hasattr(value, "to_dict"):
|
|
152
|
+
result[attr] = value.to_dict()
|
|
153
|
+
elif isinstance(value, dict):
|
|
154
|
+
result[attr] = dict(map(
|
|
155
|
+
lambda item: (item[0], item[1].to_dict())
|
|
156
|
+
if hasattr(item[1], "to_dict") else item,
|
|
157
|
+
value.items()
|
|
158
|
+
))
|
|
159
|
+
else:
|
|
160
|
+
if attr in self.sensitive_list:
|
|
161
|
+
result[attr] = "****"
|
|
162
|
+
else:
|
|
163
|
+
result[attr] = value
|
|
164
|
+
|
|
165
|
+
return result
|
|
166
|
+
|
|
167
|
+
def to_str(self):
|
|
168
|
+
"""Returns the string representation of the model"""
|
|
169
|
+
import simplejson as json
|
|
170
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
171
|
+
|
|
172
|
+
def __repr__(self):
|
|
173
|
+
"""For `print`"""
|
|
174
|
+
return self.to_str()
|
|
175
|
+
|
|
176
|
+
def __eq__(self, other):
|
|
177
|
+
"""Returns true if both objects are equal"""
|
|
178
|
+
if not isinstance(other, UpdateNoticeRuleItem):
|
|
179
|
+
return False
|
|
180
|
+
|
|
181
|
+
return self.__dict__ == other.__dict__
|
|
182
|
+
|
|
183
|
+
def __ne__(self, other):
|
|
184
|
+
"""Returns true if both objects are not equal"""
|
|
185
|
+
return not self == other
|