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.
- 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 +144 -0
- huaweicloudsdkcae/v1/model/access_configuration_data_items.py +368 -0
- huaweicloudsdkcae/v1/model/access_configuration_http_path.py +173 -0
- huaweicloudsdkcae/v1/model/access_configuration_metadata.py +115 -0
- huaweicloudsdkcae/v1/model/access_configuration_port.py +372 -0
- huaweicloudsdkcae/v1/model/access_control.py +144 -0
- huaweicloudsdkcae/v1/model/action_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/action_on_component_build.py +140 -0
- huaweicloudsdkcae/v1/model/action_on_component_source.py +198 -0
- huaweicloudsdkcae/v1/model/action_on_component_spec.py +219 -0
- huaweicloudsdkcae/v1/model/agency.py +158 -0
- huaweicloudsdkcae/v1/model/agency_item.py +115 -0
- huaweicloudsdkcae/v1/model/agency_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/agency_metadata.py +139 -0
- huaweicloudsdkcae/v1/model/api_version_obj.py +87 -0
- huaweicloudsdkcae/v1/model/app_info.py +144 -0
- huaweicloudsdkcae/v1/model/application_item.py +202 -0
- huaweicloudsdkcae/v1/model/application_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/application_metadata.py +202 -0
- huaweicloudsdkcae/v1/model/archive.py +115 -0
- huaweicloudsdkcae/v1/model/build.py +138 -0
- huaweicloudsdkcae/v1/model/cert_item.py +136 -0
- huaweicloudsdkcae/v1/model/cert_req.py +182 -0
- huaweicloudsdkcae/v1/model/certificate_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/cloud_storage_log_path_info.py +144 -0
- huaweicloudsdkcae/v1/model/component_configuration_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/component_execution_result.py +202 -0
- huaweicloudsdkcae/v1/model/component_info.py +144 -0
- huaweicloudsdkcae/v1/model/component_item.py +256 -0
- huaweicloudsdkcae/v1/model/component_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/component_snapshot_context.py +724 -0
- huaweicloudsdkcae/v1/model/component_snapshot_item.py +227 -0
- huaweicloudsdkcae/v1/model/component_snapshot_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/component_spec.py +480 -0
- huaweicloudsdkcae/v1/model/configuration.py +256 -0
- huaweicloudsdkcae/v1/model/configuration_data.py +136 -0
- huaweicloudsdkcae/v1/model/configuration_data_metadata.py +115 -0
- huaweicloudsdkcae/v1/model/configuration_item.py +138 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec.py +903 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec_post_start.py +111 -0
- huaweicloudsdkcae/v1/model/configuration_request_data_spec_pre_stop.py +111 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec.py +1193 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec_post_start.py +111 -0
- huaweicloudsdkcae/v1/model/configuration_response_data_spec_pre_stop.py +111 -0
- huaweicloudsdkcae/v1/model/create_agency_request.py +111 -0
- huaweicloudsdkcae/v1/model/create_agency_response.py +85 -0
- huaweicloudsdkcae/v1/model/create_application_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_application_request_body.py +158 -0
- huaweicloudsdkcae/v1/model/create_application_request_body_metadata.py +114 -0
- huaweicloudsdkcae/v1/model/create_application_response.py +162 -0
- huaweicloudsdkcae/v1/model/create_certificate_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_certificate_response.py +166 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request.py +224 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_request_body.py +162 -0
- huaweicloudsdkcae/v1/model/create_component_configuration_response.py +85 -0
- huaweicloudsdkcae/v1/model/create_component_request.py +196 -0
- huaweicloudsdkcae/v1/model/create_component_request_body.py +182 -0
- huaweicloudsdkcae/v1/model/create_component_response.py +187 -0
- huaweicloudsdkcae/v1/model/create_component_spec.py +306 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request.py +196 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body.py +213 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_metadata.py +142 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_request_body_spec.py +244 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response.py +241 -0
- huaweicloudsdkcae/v1/model/create_component_with_configuration_response_body_status.py +115 -0
- huaweicloudsdkcae/v1/model/create_domain_req.py +158 -0
- huaweicloudsdkcae/v1/model/create_domain_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_domain_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_environment_request.py +140 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body.py +158 -0
- huaweicloudsdkcae/v1/model/create_environment_request_body_metadata.py +143 -0
- huaweicloudsdkcae/v1/model/create_environment_response.py +116 -0
- huaweicloudsdkcae/v1/model/create_meta_cert.py +114 -0
- huaweicloudsdkcae/v1/model/create_meta_domain.py +114 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_monitor_system_response.py +85 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_item.py +244 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_request.py +140 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_resp_item.py +277 -0
- huaweicloudsdkcae/v1/model/create_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_detail.py +142 -0
- huaweicloudsdkcae/v1/model/create_or_update_secret_req.py +166 -0
- huaweicloudsdkcae/v1/model/create_secret_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_secret_response.py +170 -0
- huaweicloudsdkcae/v1/model/create_spec_cert.py +142 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_req.py +161 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_timer_rule_response.py +162 -0
- huaweicloudsdkcae/v1/model/create_volume_req.py +158 -0
- huaweicloudsdkcae/v1/model/create_volume_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_volume_response.py +85 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_request.py +168 -0
- huaweicloudsdkcae/v1/model/create_vpc_egress_response.py +162 -0
- huaweicloudsdkcae/v1/model/cron_trigger_scheduler.py +144 -0
- huaweicloudsdkcae/v1/model/delete_application_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_application_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_certificate_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_request.py +199 -0
- huaweicloudsdkcae/v1/model/delete_component_configuration_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_component_request.py +199 -0
- huaweicloudsdkcae/v1/model/delete_component_response.py +116 -0
- huaweicloudsdkcae/v1/model/delete_domain_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_domain_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_environment_request.py +143 -0
- huaweicloudsdkcae/v1/model/delete_environment_response.py +116 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_request.py +139 -0
- huaweicloudsdkcae/v1/model/delete_notice_rule_response.py +112 -0
- huaweicloudsdkcae/v1/model/delete_secret_request.py +143 -0
- huaweicloudsdkcae/v1/model/delete_secret_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/delete_volume_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_volume_response.py +166 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_request.py +171 -0
- huaweicloudsdkcae/v1/model/delete_vpc_egress_response.py +85 -0
- huaweicloudsdkcae/v1/model/domain_item.py +111 -0
- huaweicloudsdkcae/v1/model/domain_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/egress_cidr.py +171 -0
- huaweicloudsdkcae/v1/model/eip_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/environment_item.py +289 -0
- huaweicloudsdkcae/v1/model/environment_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/execute_action_request.py +224 -0
- huaweicloudsdkcae/v1/model/execute_action_request_body.py +184 -0
- huaweicloudsdkcae/v1/model/execute_action_request_body_metadata.py +143 -0
- huaweicloudsdkcae/v1/model/execute_action_response.py +116 -0
- huaweicloudsdkcae/v1/model/execution_details.py +144 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_exec.py +115 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_http_get.py +173 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_liveness_probe.py +306 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_readiness_probe.py +306 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_startup_probe.py +306 -0
- huaweicloudsdkcae/v1/model/health_check_configuration_tcp_socket.py +115 -0
- huaweicloudsdkcae/v1/model/instance.py +173 -0
- huaweicloudsdkcae/v1/model/job_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/job_spec.py +173 -0
- huaweicloudsdkcae/v1/model/life_cycle_configuration_exec.py +115 -0
- huaweicloudsdkcae/v1/model/list_agencies_request.py +84 -0
- huaweicloudsdkcae/v1/model/list_agencies_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_applications_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_applications_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_certificates_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_certificates_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_request.py +228 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_component_configurations_response_data.py +136 -0
- huaweicloudsdkcae/v1/model/list_component_instances_request.py +199 -0
- huaweicloudsdkcae/v1/model/list_component_instances_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_component_snapshots_request.py +199 -0
- huaweicloudsdkcae/v1/model/list_component_snapshots_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_components_request.py +287 -0
- huaweicloudsdkcae/v1/model/list_components_response.py +195 -0
- huaweicloudsdkcae/v1/model/list_domains_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_domains_response.py +170 -0
- huaweicloudsdkcae/v1/model/list_effective_components_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_effective_components_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec.py +136 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_egress.py +173 -0
- huaweicloudsdkcae/v1/model/list_eip_response_body_spec_ingress.py +173 -0
- huaweicloudsdkcae/v1/model/list_eips_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_eips_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_environments_request.py +115 -0
- huaweicloudsdkcae/v1/model/list_environments_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_request.py +115 -0
- huaweicloudsdkcae/v1/model/list_notice_rules_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_secrets_request.py +115 -0
- huaweicloudsdkcae/v1/model/list_secrets_response.py +174 -0
- huaweicloudsdkcae/v1/model/list_timer_rules_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_timer_rules_response.py +162 -0
- huaweicloudsdkcae/v1/model/list_volumes_request.py +171 -0
- huaweicloudsdkcae/v1/model/list_volumes_response.py +166 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_request.py +143 -0
- huaweicloudsdkcae/v1/model/list_vpc_egress_response.py +162 -0
- huaweicloudsdkcae/v1/model/meta_cert.py +144 -0
- huaweicloudsdkcae/v1/model/meta_domain.py +173 -0
- huaweicloudsdkcae/v1/model/metadata_response.py +231 -0
- huaweicloudsdkcae/v1/model/monitor_system_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/monitor_system_request_body_spec.py +313 -0
- huaweicloudsdkcae/v1/model/mount_component.py +260 -0
- huaweicloudsdkcae/v1/model/notice_rule_notification.py +171 -0
- huaweicloudsdkcae/v1/model/notice_rule_scope.py +201 -0
- huaweicloudsdkcae/v1/model/repo.py +173 -0
- huaweicloudsdkcae/v1/model/resource_limit.py +142 -0
- huaweicloudsdkcae/v1/model/resource_limit_for_upgrade.py +144 -0
- huaweicloudsdkcae/v1/model/resources_credential.py +144 -0
- huaweicloudsdkcae/v1/model/retry_job_request.py +171 -0
- huaweicloudsdkcae/v1/model/retry_job_response.py +85 -0
- huaweicloudsdkcae/v1/model/scale_configuration_data_advanced.py +231 -0
- huaweicloudsdkcae/v1/model/scale_configuration_data_trigger.py +140 -0
- huaweicloudsdkcae/v1/model/scaling_trigger_meta.py +202 -0
- huaweicloudsdkcae/v1/model/secret_detail.py +283 -0
- huaweicloudsdkcae/v1/model/show_application_request.py +171 -0
- huaweicloudsdkcae/v1/model/show_application_response.py +162 -0
- huaweicloudsdkcae/v1/model/show_component_request.py +199 -0
- huaweicloudsdkcae/v1/model/show_component_response.py +187 -0
- huaweicloudsdkcae/v1/model/show_execution_result_request.py +171 -0
- huaweicloudsdkcae/v1/model/show_execution_result_response.py +162 -0
- huaweicloudsdkcae/v1/model/show_job_request.py +171 -0
- huaweicloudsdkcae/v1/model/show_job_response.py +162 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_request.py +143 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response.py +162 -0
- huaweicloudsdkcae/v1/model/show_monitor_system_response_body_spec.py +434 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_request.py +139 -0
- huaweicloudsdkcae/v1/model/show_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/source.py +196 -0
- huaweicloudsdkcae/v1/model/spec_cert.py +173 -0
- huaweicloudsdkcae/v1/model/task.py +260 -0
- huaweicloudsdkcae/v1/model/time_rule_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/timer_rule_details.py +434 -0
- huaweicloudsdkcae/v1/model/trigger_policy.py +201 -0
- huaweicloudsdkcae/v1/model/update_cert_req.py +158 -0
- huaweicloudsdkcae/v1/model/update_certificate_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_certificate_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_component_request.py +224 -0
- huaweicloudsdkcae/v1/model/update_component_request_body.py +182 -0
- huaweicloudsdkcae/v1/model/update_component_request_metadata.py +143 -0
- huaweicloudsdkcae/v1/model/update_component_request_spec.py +218 -0
- huaweicloudsdkcae/v1/model/update_component_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_eip_request.py +168 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec.py +136 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_egress.py +144 -0
- huaweicloudsdkcae/v1/model/update_eip_request_body_spec_ingress.py +144 -0
- huaweicloudsdkcae/v1/model/update_eip_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_monitor_system_response.py +85 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_item.py +192 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_req.py +166 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_request.py +164 -0
- huaweicloudsdkcae/v1/model/update_notice_rule_response.py +170 -0
- huaweicloudsdkcae/v1/model/update_secret_request.py +168 -0
- huaweicloudsdkcae/v1/model/update_secret_response.py +170 -0
- huaweicloudsdkcae/v1/model/update_spec_cert.py +142 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_details.py +312 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_req.py +158 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_request.py +196 -0
- huaweicloudsdkcae/v1/model/update_timer_rule_response.py +85 -0
- huaweicloudsdkcae/v1/model/volume.py +289 -0
- huaweicloudsdkcae/v1/model/volume_configuration_data_volume.py +256 -0
- huaweicloudsdkcae/v1/model/volume_configuration_mount_info.py +173 -0
- huaweicloudsdkcae/v1/model/volume_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/volume_spec.py +199 -0
- huaweicloudsdkcae/v1/model/vpc_egress_kind_obj.py +87 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body.py +161 -0
- huaweicloudsdkcae/v1/model/vpc_egress_request_body_spec.py +114 -0
- huaweicloudsdkcae/v1/model/vpc_egress_response_body_spec.py +173 -0
- huaweicloudsdkcae/v1/region/__init__.py +0 -0
- huaweicloudsdkcae/v1/region/cae_region.py +60 -0
- huaweicloudsdkcae-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkcae-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkcae-3.1.160.dist-info/RECORD +260 -0
- huaweicloudsdkcae-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkcae-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NoticeRuleNotification:
|
|
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
|
+
'protocol': 'str',
|
|
21
|
+
'endpoint': 'str',
|
|
22
|
+
'template': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'protocol': 'protocol',
|
|
27
|
+
'endpoint': 'endpoint',
|
|
28
|
+
'template': 'template'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, protocol=None, endpoint=None, template=None):
|
|
32
|
+
r"""NoticeRuleNotification
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param protocol: 通知的协议类型,包括短信,邮件,企业微信群消息等。
|
|
37
|
+
:type protocol: str
|
|
38
|
+
:param endpoint: 通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
|
|
39
|
+
:type endpoint: str
|
|
40
|
+
:param template: 通知的模板语言。 ZH,中文。 EN,英文。
|
|
41
|
+
:type template: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._protocol = None
|
|
47
|
+
self._endpoint = None
|
|
48
|
+
self._template = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.protocol = protocol
|
|
52
|
+
self.endpoint = endpoint
|
|
53
|
+
if template is not None:
|
|
54
|
+
self.template = template
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def protocol(self):
|
|
58
|
+
r"""Gets the protocol of this NoticeRuleNotification.
|
|
59
|
+
|
|
60
|
+
通知的协议类型,包括短信,邮件,企业微信群消息等。
|
|
61
|
+
|
|
62
|
+
:return: The protocol of this NoticeRuleNotification.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._protocol
|
|
66
|
+
|
|
67
|
+
@protocol.setter
|
|
68
|
+
def protocol(self, protocol):
|
|
69
|
+
r"""Sets the protocol of this NoticeRuleNotification.
|
|
70
|
+
|
|
71
|
+
通知的协议类型,包括短信,邮件,企业微信群消息等。
|
|
72
|
+
|
|
73
|
+
:param protocol: The protocol of this NoticeRuleNotification.
|
|
74
|
+
:type protocol: str
|
|
75
|
+
"""
|
|
76
|
+
self._protocol = protocol
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def endpoint(self):
|
|
80
|
+
r"""Gets the endpoint of this NoticeRuleNotification.
|
|
81
|
+
|
|
82
|
+
通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
|
|
83
|
+
|
|
84
|
+
:return: The endpoint of this NoticeRuleNotification.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._endpoint
|
|
88
|
+
|
|
89
|
+
@endpoint.setter
|
|
90
|
+
def endpoint(self, endpoint):
|
|
91
|
+
r"""Sets the endpoint of this NoticeRuleNotification.
|
|
92
|
+
|
|
93
|
+
通知的终端地址。 email协议,接入点必须是邮件地址。 sms协议,接入点必须是一个电话号码。 wechat协议,参考https://support.huaweicloud.com/smn_faq/smn_faq_0027.html获取订阅终端, 企业微信群消息为SMN服务公测功能,需提交工单申请开通。
|
|
94
|
+
|
|
95
|
+
:param endpoint: The endpoint of this NoticeRuleNotification.
|
|
96
|
+
:type endpoint: str
|
|
97
|
+
"""
|
|
98
|
+
self._endpoint = endpoint
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def template(self):
|
|
102
|
+
r"""Gets the template of this NoticeRuleNotification.
|
|
103
|
+
|
|
104
|
+
通知的模板语言。 ZH,中文。 EN,英文。
|
|
105
|
+
|
|
106
|
+
:return: The template of this NoticeRuleNotification.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._template
|
|
110
|
+
|
|
111
|
+
@template.setter
|
|
112
|
+
def template(self, template):
|
|
113
|
+
r"""Sets the template of this NoticeRuleNotification.
|
|
114
|
+
|
|
115
|
+
通知的模板语言。 ZH,中文。 EN,英文。
|
|
116
|
+
|
|
117
|
+
:param template: The template of this NoticeRuleNotification.
|
|
118
|
+
:type template: str
|
|
119
|
+
"""
|
|
120
|
+
self._template = template
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
"""Returns the model properties as a dict"""
|
|
124
|
+
result = {}
|
|
125
|
+
|
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
127
|
+
value = getattr(self, attr)
|
|
128
|
+
if isinstance(value, list):
|
|
129
|
+
result[attr] = list(map(
|
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
131
|
+
value
|
|
132
|
+
))
|
|
133
|
+
elif hasattr(value, "to_dict"):
|
|
134
|
+
result[attr] = value.to_dict()
|
|
135
|
+
elif isinstance(value, dict):
|
|
136
|
+
result[attr] = dict(map(
|
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
|
139
|
+
value.items()
|
|
140
|
+
))
|
|
141
|
+
else:
|
|
142
|
+
if attr in self.sensitive_list:
|
|
143
|
+
result[attr] = "****"
|
|
144
|
+
else:
|
|
145
|
+
result[attr] = value
|
|
146
|
+
|
|
147
|
+
return result
|
|
148
|
+
|
|
149
|
+
def to_str(self):
|
|
150
|
+
"""Returns the string representation of the model"""
|
|
151
|
+
import simplejson as json
|
|
152
|
+
if six.PY2:
|
|
153
|
+
import sys
|
|
154
|
+
reload(sys)
|
|
155
|
+
sys.setdefaultencoding("utf-8")
|
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
157
|
+
|
|
158
|
+
def __repr__(self):
|
|
159
|
+
"""For `print`"""
|
|
160
|
+
return self.to_str()
|
|
161
|
+
|
|
162
|
+
def __eq__(self, other):
|
|
163
|
+
"""Returns true if both objects are equal"""
|
|
164
|
+
if not isinstance(other, NoticeRuleNotification):
|
|
165
|
+
return False
|
|
166
|
+
|
|
167
|
+
return self.__dict__ == other.__dict__
|
|
168
|
+
|
|
169
|
+
def __ne__(self, other):
|
|
170
|
+
"""Returns true if both objects are not equal"""
|
|
171
|
+
return not self == other
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class NoticeRuleScope:
|
|
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
|
+
'type': 'str',
|
|
21
|
+
'environments': 'list[str]',
|
|
22
|
+
'applications': 'list[str]',
|
|
23
|
+
'components': 'list[str]'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'type': 'type',
|
|
28
|
+
'environments': 'environments',
|
|
29
|
+
'applications': 'applications',
|
|
30
|
+
'components': 'components'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, type=None, environments=None, applications=None, components=None):
|
|
34
|
+
r"""NoticeRuleScope
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param type: 生效范围的类型。包括environments(对指定环境下所有组件生效),applications(对指定应用下所有组件生效),components(对指定的组件生效)。
|
|
39
|
+
:type type: str
|
|
40
|
+
:param environments: 生效的环境id列表。
|
|
41
|
+
:type environments: list[str]
|
|
42
|
+
:param applications: 生效的应用id列表。
|
|
43
|
+
:type applications: list[str]
|
|
44
|
+
:param components: 生效的组件id列表。
|
|
45
|
+
:type components: list[str]
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
self._type = None
|
|
51
|
+
self._environments = None
|
|
52
|
+
self._applications = None
|
|
53
|
+
self._components = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.type = type
|
|
57
|
+
if environments is not None:
|
|
58
|
+
self.environments = environments
|
|
59
|
+
if applications is not None:
|
|
60
|
+
self.applications = applications
|
|
61
|
+
if components is not None:
|
|
62
|
+
self.components = components
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def type(self):
|
|
66
|
+
r"""Gets the type of this NoticeRuleScope.
|
|
67
|
+
|
|
68
|
+
生效范围的类型。包括environments(对指定环境下所有组件生效),applications(对指定应用下所有组件生效),components(对指定的组件生效)。
|
|
69
|
+
|
|
70
|
+
:return: The type of this NoticeRuleScope.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._type
|
|
74
|
+
|
|
75
|
+
@type.setter
|
|
76
|
+
def type(self, type):
|
|
77
|
+
r"""Sets the type of this NoticeRuleScope.
|
|
78
|
+
|
|
79
|
+
生效范围的类型。包括environments(对指定环境下所有组件生效),applications(对指定应用下所有组件生效),components(对指定的组件生效)。
|
|
80
|
+
|
|
81
|
+
:param type: The type of this NoticeRuleScope.
|
|
82
|
+
:type type: str
|
|
83
|
+
"""
|
|
84
|
+
self._type = type
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def environments(self):
|
|
88
|
+
r"""Gets the environments of this NoticeRuleScope.
|
|
89
|
+
|
|
90
|
+
生效的环境id列表。
|
|
91
|
+
|
|
92
|
+
:return: The environments of this NoticeRuleScope.
|
|
93
|
+
:rtype: list[str]
|
|
94
|
+
"""
|
|
95
|
+
return self._environments
|
|
96
|
+
|
|
97
|
+
@environments.setter
|
|
98
|
+
def environments(self, environments):
|
|
99
|
+
r"""Sets the environments of this NoticeRuleScope.
|
|
100
|
+
|
|
101
|
+
生效的环境id列表。
|
|
102
|
+
|
|
103
|
+
:param environments: The environments of this NoticeRuleScope.
|
|
104
|
+
:type environments: list[str]
|
|
105
|
+
"""
|
|
106
|
+
self._environments = environments
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def applications(self):
|
|
110
|
+
r"""Gets the applications of this NoticeRuleScope.
|
|
111
|
+
|
|
112
|
+
生效的应用id列表。
|
|
113
|
+
|
|
114
|
+
:return: The applications of this NoticeRuleScope.
|
|
115
|
+
:rtype: list[str]
|
|
116
|
+
"""
|
|
117
|
+
return self._applications
|
|
118
|
+
|
|
119
|
+
@applications.setter
|
|
120
|
+
def applications(self, applications):
|
|
121
|
+
r"""Sets the applications of this NoticeRuleScope.
|
|
122
|
+
|
|
123
|
+
生效的应用id列表。
|
|
124
|
+
|
|
125
|
+
:param applications: The applications of this NoticeRuleScope.
|
|
126
|
+
:type applications: list[str]
|
|
127
|
+
"""
|
|
128
|
+
self._applications = applications
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def components(self):
|
|
132
|
+
r"""Gets the components of this NoticeRuleScope.
|
|
133
|
+
|
|
134
|
+
生效的组件id列表。
|
|
135
|
+
|
|
136
|
+
:return: The components of this NoticeRuleScope.
|
|
137
|
+
:rtype: list[str]
|
|
138
|
+
"""
|
|
139
|
+
return self._components
|
|
140
|
+
|
|
141
|
+
@components.setter
|
|
142
|
+
def components(self, components):
|
|
143
|
+
r"""Sets the components of this NoticeRuleScope.
|
|
144
|
+
|
|
145
|
+
生效的组件id列表。
|
|
146
|
+
|
|
147
|
+
:param components: The components of this NoticeRuleScope.
|
|
148
|
+
:type components: list[str]
|
|
149
|
+
"""
|
|
150
|
+
self._components = components
|
|
151
|
+
|
|
152
|
+
def to_dict(self):
|
|
153
|
+
"""Returns the model properties as a dict"""
|
|
154
|
+
result = {}
|
|
155
|
+
|
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
157
|
+
value = getattr(self, attr)
|
|
158
|
+
if isinstance(value, list):
|
|
159
|
+
result[attr] = list(map(
|
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
161
|
+
value
|
|
162
|
+
))
|
|
163
|
+
elif hasattr(value, "to_dict"):
|
|
164
|
+
result[attr] = value.to_dict()
|
|
165
|
+
elif isinstance(value, dict):
|
|
166
|
+
result[attr] = dict(map(
|
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
|
169
|
+
value.items()
|
|
170
|
+
))
|
|
171
|
+
else:
|
|
172
|
+
if attr in self.sensitive_list:
|
|
173
|
+
result[attr] = "****"
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
|
|
177
|
+
return result
|
|
178
|
+
|
|
179
|
+
def to_str(self):
|
|
180
|
+
"""Returns the string representation of the model"""
|
|
181
|
+
import simplejson as json
|
|
182
|
+
if six.PY2:
|
|
183
|
+
import sys
|
|
184
|
+
reload(sys)
|
|
185
|
+
sys.setdefaultencoding("utf-8")
|
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
187
|
+
|
|
188
|
+
def __repr__(self):
|
|
189
|
+
"""For `print`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other):
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, NoticeRuleScope):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.__dict__ == other.__dict__
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other):
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
return not self == other
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Repo:
|
|
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
|
+
'auth_name': 'str',
|
|
21
|
+
'branch': 'str',
|
|
22
|
+
'namespace': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'auth_name': 'auth_name',
|
|
27
|
+
'branch': 'branch',
|
|
28
|
+
'namespace': 'namespace'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, auth_name=None, branch=None, namespace=None):
|
|
32
|
+
r"""Repo
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param auth_name: 授权名称。
|
|
37
|
+
:type auth_name: str
|
|
38
|
+
:param branch: 分支。
|
|
39
|
+
:type branch: str
|
|
40
|
+
:param namespace: 命名空间,需填写命名空间的Base64编码。
|
|
41
|
+
:type namespace: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._auth_name = None
|
|
47
|
+
self._branch = None
|
|
48
|
+
self._namespace = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if auth_name is not None:
|
|
52
|
+
self.auth_name = auth_name
|
|
53
|
+
if branch is not None:
|
|
54
|
+
self.branch = branch
|
|
55
|
+
if namespace is not None:
|
|
56
|
+
self.namespace = namespace
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def auth_name(self):
|
|
60
|
+
r"""Gets the auth_name of this Repo.
|
|
61
|
+
|
|
62
|
+
授权名称。
|
|
63
|
+
|
|
64
|
+
:return: The auth_name of this Repo.
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._auth_name
|
|
68
|
+
|
|
69
|
+
@auth_name.setter
|
|
70
|
+
def auth_name(self, auth_name):
|
|
71
|
+
r"""Sets the auth_name of this Repo.
|
|
72
|
+
|
|
73
|
+
授权名称。
|
|
74
|
+
|
|
75
|
+
:param auth_name: The auth_name of this Repo.
|
|
76
|
+
:type auth_name: str
|
|
77
|
+
"""
|
|
78
|
+
self._auth_name = auth_name
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def branch(self):
|
|
82
|
+
r"""Gets the branch of this Repo.
|
|
83
|
+
|
|
84
|
+
分支。
|
|
85
|
+
|
|
86
|
+
:return: The branch of this Repo.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._branch
|
|
90
|
+
|
|
91
|
+
@branch.setter
|
|
92
|
+
def branch(self, branch):
|
|
93
|
+
r"""Sets the branch of this Repo.
|
|
94
|
+
|
|
95
|
+
分支。
|
|
96
|
+
|
|
97
|
+
:param branch: The branch of this Repo.
|
|
98
|
+
:type branch: str
|
|
99
|
+
"""
|
|
100
|
+
self._branch = branch
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def namespace(self):
|
|
104
|
+
r"""Gets the namespace of this Repo.
|
|
105
|
+
|
|
106
|
+
命名空间,需填写命名空间的Base64编码。
|
|
107
|
+
|
|
108
|
+
:return: The namespace of this Repo.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._namespace
|
|
112
|
+
|
|
113
|
+
@namespace.setter
|
|
114
|
+
def namespace(self, namespace):
|
|
115
|
+
r"""Sets the namespace of this Repo.
|
|
116
|
+
|
|
117
|
+
命名空间,需填写命名空间的Base64编码。
|
|
118
|
+
|
|
119
|
+
:param namespace: The namespace of this Repo.
|
|
120
|
+
:type namespace: str
|
|
121
|
+
"""
|
|
122
|
+
self._namespace = namespace
|
|
123
|
+
|
|
124
|
+
def to_dict(self):
|
|
125
|
+
"""Returns the model properties as a dict"""
|
|
126
|
+
result = {}
|
|
127
|
+
|
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
129
|
+
value = getattr(self, attr)
|
|
130
|
+
if isinstance(value, list):
|
|
131
|
+
result[attr] = list(map(
|
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
133
|
+
value
|
|
134
|
+
))
|
|
135
|
+
elif hasattr(value, "to_dict"):
|
|
136
|
+
result[attr] = value.to_dict()
|
|
137
|
+
elif isinstance(value, dict):
|
|
138
|
+
result[attr] = dict(map(
|
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
|
141
|
+
value.items()
|
|
142
|
+
))
|
|
143
|
+
else:
|
|
144
|
+
if attr in self.sensitive_list:
|
|
145
|
+
result[attr] = "****"
|
|
146
|
+
else:
|
|
147
|
+
result[attr] = value
|
|
148
|
+
|
|
149
|
+
return result
|
|
150
|
+
|
|
151
|
+
def to_str(self):
|
|
152
|
+
"""Returns the string representation of the model"""
|
|
153
|
+
import simplejson as json
|
|
154
|
+
if six.PY2:
|
|
155
|
+
import sys
|
|
156
|
+
reload(sys)
|
|
157
|
+
sys.setdefaultencoding("utf-8")
|
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
159
|
+
|
|
160
|
+
def __repr__(self):
|
|
161
|
+
"""For `print`"""
|
|
162
|
+
return self.to_str()
|
|
163
|
+
|
|
164
|
+
def __eq__(self, other):
|
|
165
|
+
"""Returns true if both objects are equal"""
|
|
166
|
+
if not isinstance(other, Repo):
|
|
167
|
+
return False
|
|
168
|
+
|
|
169
|
+
return self.__dict__ == other.__dict__
|
|
170
|
+
|
|
171
|
+
def __ne__(self, other):
|
|
172
|
+
"""Returns true if both objects are not equal"""
|
|
173
|
+
return not self == other
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ResourceLimit:
|
|
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
|
+
'cpu_limit': 'str',
|
|
21
|
+
'memory_limit': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'cpu_limit': 'cpu_limit',
|
|
26
|
+
'memory_limit': 'memory_limit'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, cpu_limit=None, memory_limit=None):
|
|
30
|
+
r"""ResourceLimit
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param cpu_limit: cpu限额。
|
|
35
|
+
:type cpu_limit: str
|
|
36
|
+
:param memory_limit: 内存限额。
|
|
37
|
+
:type memory_limit: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._cpu_limit = None
|
|
43
|
+
self._memory_limit = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.cpu_limit = cpu_limit
|
|
47
|
+
self.memory_limit = memory_limit
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def cpu_limit(self):
|
|
51
|
+
r"""Gets the cpu_limit of this ResourceLimit.
|
|
52
|
+
|
|
53
|
+
cpu限额。
|
|
54
|
+
|
|
55
|
+
:return: The cpu_limit of this ResourceLimit.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._cpu_limit
|
|
59
|
+
|
|
60
|
+
@cpu_limit.setter
|
|
61
|
+
def cpu_limit(self, cpu_limit):
|
|
62
|
+
r"""Sets the cpu_limit of this ResourceLimit.
|
|
63
|
+
|
|
64
|
+
cpu限额。
|
|
65
|
+
|
|
66
|
+
:param cpu_limit: The cpu_limit of this ResourceLimit.
|
|
67
|
+
:type cpu_limit: str
|
|
68
|
+
"""
|
|
69
|
+
self._cpu_limit = cpu_limit
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def memory_limit(self):
|
|
73
|
+
r"""Gets the memory_limit of this ResourceLimit.
|
|
74
|
+
|
|
75
|
+
内存限额。
|
|
76
|
+
|
|
77
|
+
:return: The memory_limit of this ResourceLimit.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._memory_limit
|
|
81
|
+
|
|
82
|
+
@memory_limit.setter
|
|
83
|
+
def memory_limit(self, memory_limit):
|
|
84
|
+
r"""Sets the memory_limit of this ResourceLimit.
|
|
85
|
+
|
|
86
|
+
内存限额。
|
|
87
|
+
|
|
88
|
+
:param memory_limit: The memory_limit of this ResourceLimit.
|
|
89
|
+
:type memory_limit: str
|
|
90
|
+
"""
|
|
91
|
+
self._memory_limit = memory_limit
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
"""Returns the model properties as a dict"""
|
|
95
|
+
result = {}
|
|
96
|
+
|
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
98
|
+
value = getattr(self, attr)
|
|
99
|
+
if isinstance(value, list):
|
|
100
|
+
result[attr] = list(map(
|
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
102
|
+
value
|
|
103
|
+
))
|
|
104
|
+
elif hasattr(value, "to_dict"):
|
|
105
|
+
result[attr] = value.to_dict()
|
|
106
|
+
elif isinstance(value, dict):
|
|
107
|
+
result[attr] = dict(map(
|
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
|
110
|
+
value.items()
|
|
111
|
+
))
|
|
112
|
+
else:
|
|
113
|
+
if attr in self.sensitive_list:
|
|
114
|
+
result[attr] = "****"
|
|
115
|
+
else:
|
|
116
|
+
result[attr] = value
|
|
117
|
+
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
def to_str(self):
|
|
121
|
+
"""Returns the string representation of the model"""
|
|
122
|
+
import simplejson as json
|
|
123
|
+
if six.PY2:
|
|
124
|
+
import sys
|
|
125
|
+
reload(sys)
|
|
126
|
+
sys.setdefaultencoding("utf-8")
|
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, ResourceLimit):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|