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,289 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EnvironmentItem:
|
|
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
|
+
'id': 'str',
|
|
21
|
+
'name': 'str',
|
|
22
|
+
'job_id': 'str',
|
|
23
|
+
'status': 'str',
|
|
24
|
+
'annotations': 'dict(str, str)',
|
|
25
|
+
'created_at': 'str',
|
|
26
|
+
'updated_at': 'str'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
attribute_map = {
|
|
30
|
+
'id': 'id',
|
|
31
|
+
'name': 'name',
|
|
32
|
+
'job_id': 'job_id',
|
|
33
|
+
'status': 'status',
|
|
34
|
+
'annotations': 'annotations',
|
|
35
|
+
'created_at': 'created_at',
|
|
36
|
+
'updated_at': 'updated_at'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def __init__(self, id=None, name=None, job_id=None, status=None, annotations=None, created_at=None, updated_at=None):
|
|
40
|
+
r"""EnvironmentItem
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param id: 环境ID。
|
|
45
|
+
:type id: str
|
|
46
|
+
:param name: 环境名称。
|
|
47
|
+
:type name: str
|
|
48
|
+
:param job_id: 任务ID。
|
|
49
|
+
:type job_id: str
|
|
50
|
+
:param status: 环境状态。
|
|
51
|
+
:type status: str
|
|
52
|
+
:param annotations: 环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - env_category: 环境种类,当前支持v1、v2,在授权云存储时,v1、v2种类环境有所不同。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
|
|
53
|
+
:type annotations: dict(str, str)
|
|
54
|
+
:param created_at: 创建时间。
|
|
55
|
+
:type created_at: str
|
|
56
|
+
:param updated_at: 更新时间。
|
|
57
|
+
:type updated_at: str
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
self._id = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._job_id = None
|
|
65
|
+
self._status = None
|
|
66
|
+
self._annotations = None
|
|
67
|
+
self._created_at = None
|
|
68
|
+
self._updated_at = None
|
|
69
|
+
self.discriminator = None
|
|
70
|
+
|
|
71
|
+
if id is not None:
|
|
72
|
+
self.id = id
|
|
73
|
+
if name is not None:
|
|
74
|
+
self.name = name
|
|
75
|
+
if job_id is not None:
|
|
76
|
+
self.job_id = job_id
|
|
77
|
+
if status is not None:
|
|
78
|
+
self.status = status
|
|
79
|
+
if annotations is not None:
|
|
80
|
+
self.annotations = annotations
|
|
81
|
+
if created_at is not None:
|
|
82
|
+
self.created_at = created_at
|
|
83
|
+
if updated_at is not None:
|
|
84
|
+
self.updated_at = updated_at
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def id(self):
|
|
88
|
+
r"""Gets the id of this EnvironmentItem.
|
|
89
|
+
|
|
90
|
+
环境ID。
|
|
91
|
+
|
|
92
|
+
:return: The id of this EnvironmentItem.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._id
|
|
96
|
+
|
|
97
|
+
@id.setter
|
|
98
|
+
def id(self, id):
|
|
99
|
+
r"""Sets the id of this EnvironmentItem.
|
|
100
|
+
|
|
101
|
+
环境ID。
|
|
102
|
+
|
|
103
|
+
:param id: The id of this EnvironmentItem.
|
|
104
|
+
:type id: str
|
|
105
|
+
"""
|
|
106
|
+
self._id = id
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def name(self):
|
|
110
|
+
r"""Gets the name of this EnvironmentItem.
|
|
111
|
+
|
|
112
|
+
环境名称。
|
|
113
|
+
|
|
114
|
+
:return: The name of this EnvironmentItem.
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._name
|
|
118
|
+
|
|
119
|
+
@name.setter
|
|
120
|
+
def name(self, name):
|
|
121
|
+
r"""Sets the name of this EnvironmentItem.
|
|
122
|
+
|
|
123
|
+
环境名称。
|
|
124
|
+
|
|
125
|
+
:param name: The name of this EnvironmentItem.
|
|
126
|
+
:type name: str
|
|
127
|
+
"""
|
|
128
|
+
self._name = name
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def job_id(self):
|
|
132
|
+
r"""Gets the job_id of this EnvironmentItem.
|
|
133
|
+
|
|
134
|
+
任务ID。
|
|
135
|
+
|
|
136
|
+
:return: The job_id of this EnvironmentItem.
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._job_id
|
|
140
|
+
|
|
141
|
+
@job_id.setter
|
|
142
|
+
def job_id(self, job_id):
|
|
143
|
+
r"""Sets the job_id of this EnvironmentItem.
|
|
144
|
+
|
|
145
|
+
任务ID。
|
|
146
|
+
|
|
147
|
+
:param job_id: The job_id of this EnvironmentItem.
|
|
148
|
+
:type job_id: str
|
|
149
|
+
"""
|
|
150
|
+
self._job_id = job_id
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def status(self):
|
|
154
|
+
r"""Gets the status of this EnvironmentItem.
|
|
155
|
+
|
|
156
|
+
环境状态。
|
|
157
|
+
|
|
158
|
+
:return: The status of this EnvironmentItem.
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._status
|
|
162
|
+
|
|
163
|
+
@status.setter
|
|
164
|
+
def status(self, status):
|
|
165
|
+
r"""Sets the status of this EnvironmentItem.
|
|
166
|
+
|
|
167
|
+
环境状态。
|
|
168
|
+
|
|
169
|
+
:param status: The status of this EnvironmentItem.
|
|
170
|
+
:type status: str
|
|
171
|
+
"""
|
|
172
|
+
self._status = status
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def annotations(self):
|
|
176
|
+
r"""Gets the annotations of this EnvironmentItem.
|
|
177
|
+
|
|
178
|
+
环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - env_category: 环境种类,当前支持v1、v2,在授权云存储时,v1、v2种类环境有所不同。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
|
|
179
|
+
|
|
180
|
+
:return: The annotations of this EnvironmentItem.
|
|
181
|
+
:rtype: dict(str, str)
|
|
182
|
+
"""
|
|
183
|
+
return self._annotations
|
|
184
|
+
|
|
185
|
+
@annotations.setter
|
|
186
|
+
def annotations(self, annotations):
|
|
187
|
+
r"""Sets the annotations of this EnvironmentItem.
|
|
188
|
+
|
|
189
|
+
环境附加属性。 - cluster_id:CCE集群ID。 - enterprise_project_id:企业项目ID。 - env_category: 环境种类,当前支持v1、v2,在授权云存储时,v1、v2种类环境有所不同。 - group_name:主环境绑定的SWR组织名称。 - inbound_eip_addr:负载均衡绑定EIP地址。 - namespace:CCE集群命名空间。 - public_elb_id:ELB ID,主环境绑定的负载均衡ID。 - type:环境类型,当前仅支持exclusive类型。 - vpc_id:主环境绑定的VPC ID。
|
|
190
|
+
|
|
191
|
+
:param annotations: The annotations of this EnvironmentItem.
|
|
192
|
+
:type annotations: dict(str, str)
|
|
193
|
+
"""
|
|
194
|
+
self._annotations = annotations
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def created_at(self):
|
|
198
|
+
r"""Gets the created_at of this EnvironmentItem.
|
|
199
|
+
|
|
200
|
+
创建时间。
|
|
201
|
+
|
|
202
|
+
:return: The created_at of this EnvironmentItem.
|
|
203
|
+
:rtype: str
|
|
204
|
+
"""
|
|
205
|
+
return self._created_at
|
|
206
|
+
|
|
207
|
+
@created_at.setter
|
|
208
|
+
def created_at(self, created_at):
|
|
209
|
+
r"""Sets the created_at of this EnvironmentItem.
|
|
210
|
+
|
|
211
|
+
创建时间。
|
|
212
|
+
|
|
213
|
+
:param created_at: The created_at of this EnvironmentItem.
|
|
214
|
+
:type created_at: str
|
|
215
|
+
"""
|
|
216
|
+
self._created_at = created_at
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def updated_at(self):
|
|
220
|
+
r"""Gets the updated_at of this EnvironmentItem.
|
|
221
|
+
|
|
222
|
+
更新时间。
|
|
223
|
+
|
|
224
|
+
:return: The updated_at of this EnvironmentItem.
|
|
225
|
+
:rtype: str
|
|
226
|
+
"""
|
|
227
|
+
return self._updated_at
|
|
228
|
+
|
|
229
|
+
@updated_at.setter
|
|
230
|
+
def updated_at(self, updated_at):
|
|
231
|
+
r"""Sets the updated_at of this EnvironmentItem.
|
|
232
|
+
|
|
233
|
+
更新时间。
|
|
234
|
+
|
|
235
|
+
:param updated_at: The updated_at of this EnvironmentItem.
|
|
236
|
+
:type updated_at: str
|
|
237
|
+
"""
|
|
238
|
+
self._updated_at = updated_at
|
|
239
|
+
|
|
240
|
+
def to_dict(self):
|
|
241
|
+
"""Returns the model properties as a dict"""
|
|
242
|
+
result = {}
|
|
243
|
+
|
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
245
|
+
value = getattr(self, attr)
|
|
246
|
+
if isinstance(value, list):
|
|
247
|
+
result[attr] = list(map(
|
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
249
|
+
value
|
|
250
|
+
))
|
|
251
|
+
elif hasattr(value, "to_dict"):
|
|
252
|
+
result[attr] = value.to_dict()
|
|
253
|
+
elif isinstance(value, dict):
|
|
254
|
+
result[attr] = dict(map(
|
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
|
257
|
+
value.items()
|
|
258
|
+
))
|
|
259
|
+
else:
|
|
260
|
+
if attr in self.sensitive_list:
|
|
261
|
+
result[attr] = "****"
|
|
262
|
+
else:
|
|
263
|
+
result[attr] = value
|
|
264
|
+
|
|
265
|
+
return result
|
|
266
|
+
|
|
267
|
+
def to_str(self):
|
|
268
|
+
"""Returns the string representation of the model"""
|
|
269
|
+
import simplejson as json
|
|
270
|
+
if six.PY2:
|
|
271
|
+
import sys
|
|
272
|
+
reload(sys)
|
|
273
|
+
sys.setdefaultencoding("utf-8")
|
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
275
|
+
|
|
276
|
+
def __repr__(self):
|
|
277
|
+
"""For `print`"""
|
|
278
|
+
return self.to_str()
|
|
279
|
+
|
|
280
|
+
def __eq__(self, other):
|
|
281
|
+
"""Returns true if both objects are equal"""
|
|
282
|
+
if not isinstance(other, EnvironmentItem):
|
|
283
|
+
return False
|
|
284
|
+
|
|
285
|
+
return self.__dict__ == other.__dict__
|
|
286
|
+
|
|
287
|
+
def __ne__(self, other):
|
|
288
|
+
"""Returns true if both objects are not equal"""
|
|
289
|
+
return not self == other
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EnvironmentKindObj:
|
|
9
|
+
"""
|
|
10
|
+
allowed enum values
|
|
11
|
+
"""
|
|
12
|
+
ENVIRONMENT = "Environment"
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
openapi_types (dict): The key is attribute name
|
|
16
|
+
and the value is attribute type.
|
|
17
|
+
attribute_map (dict): The key is attribute name
|
|
18
|
+
and the value is json key in definition.
|
|
19
|
+
"""
|
|
20
|
+
sensitive_list = []
|
|
21
|
+
|
|
22
|
+
openapi_types = {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self):
|
|
29
|
+
r"""EnvironmentKindObj
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self.discriminator = None
|
|
37
|
+
|
|
38
|
+
def to_dict(self):
|
|
39
|
+
"""Returns the model properties as a dict"""
|
|
40
|
+
result = {}
|
|
41
|
+
|
|
42
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
43
|
+
value = getattr(self, attr)
|
|
44
|
+
if isinstance(value, list):
|
|
45
|
+
result[attr] = list(map(
|
|
46
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
47
|
+
value
|
|
48
|
+
))
|
|
49
|
+
elif hasattr(value, "to_dict"):
|
|
50
|
+
result[attr] = value.to_dict()
|
|
51
|
+
elif isinstance(value, dict):
|
|
52
|
+
result[attr] = dict(map(
|
|
53
|
+
lambda item: (item[0], item[1].to_dict())
|
|
54
|
+
if hasattr(item[1], "to_dict") else item,
|
|
55
|
+
value.items()
|
|
56
|
+
))
|
|
57
|
+
else:
|
|
58
|
+
if attr in self.sensitive_list:
|
|
59
|
+
result[attr] = "****"
|
|
60
|
+
else:
|
|
61
|
+
result[attr] = value
|
|
62
|
+
|
|
63
|
+
return result
|
|
64
|
+
|
|
65
|
+
def to_str(self):
|
|
66
|
+
"""Returns the string representation of the model"""
|
|
67
|
+
import simplejson as json
|
|
68
|
+
if six.PY2:
|
|
69
|
+
import sys
|
|
70
|
+
reload(sys)
|
|
71
|
+
sys.setdefaultencoding("utf-8")
|
|
72
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
73
|
+
|
|
74
|
+
def __repr__(self):
|
|
75
|
+
"""For `print`"""
|
|
76
|
+
return self.to_str()
|
|
77
|
+
|
|
78
|
+
def __eq__(self, other):
|
|
79
|
+
"""Returns true if both objects are equal"""
|
|
80
|
+
if not isinstance(other, EnvironmentKindObj):
|
|
81
|
+
return False
|
|
82
|
+
|
|
83
|
+
return self.__dict__ == other.__dict__
|
|
84
|
+
|
|
85
|
+
def __ne__(self, other):
|
|
86
|
+
"""Returns true if both objects are not equal"""
|
|
87
|
+
return not self == other
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ExecuteActionRequest:
|
|
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
|
+
'application_id': 'str',
|
|
21
|
+
'component_id': 'str',
|
|
22
|
+
'x_enterprise_project_id': 'str',
|
|
23
|
+
'x_environment_id': 'str',
|
|
24
|
+
'body': 'ExecuteActionRequestBody'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'application_id': 'application_id',
|
|
29
|
+
'component_id': 'component_id',
|
|
30
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
31
|
+
'x_environment_id': 'X-Environment-ID',
|
|
32
|
+
'body': 'body'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, application_id=None, component_id=None, x_enterprise_project_id=None, x_environment_id=None, body=None):
|
|
36
|
+
r"""ExecuteActionRequest
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param application_id: 应用ID。
|
|
41
|
+
:type application_id: str
|
|
42
|
+
:param component_id: 组件ID。
|
|
43
|
+
:type component_id: str
|
|
44
|
+
:param x_enterprise_project_id: 企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
45
|
+
:type x_enterprise_project_id: str
|
|
46
|
+
:param x_environment_id: 环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
47
|
+
:type x_environment_id: str
|
|
48
|
+
:param body: Body of the ExecuteActionRequest
|
|
49
|
+
:type body: :class:`huaweicloudsdkcae.v1.ExecuteActionRequestBody`
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._application_id = None
|
|
55
|
+
self._component_id = None
|
|
56
|
+
self._x_enterprise_project_id = None
|
|
57
|
+
self._x_environment_id = None
|
|
58
|
+
self._body = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
self.application_id = application_id
|
|
62
|
+
self.component_id = component_id
|
|
63
|
+
if x_enterprise_project_id is not None:
|
|
64
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
65
|
+
self.x_environment_id = x_environment_id
|
|
66
|
+
if body is not None:
|
|
67
|
+
self.body = body
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def application_id(self):
|
|
71
|
+
r"""Gets the application_id of this ExecuteActionRequest.
|
|
72
|
+
|
|
73
|
+
应用ID。
|
|
74
|
+
|
|
75
|
+
:return: The application_id of this ExecuteActionRequest.
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._application_id
|
|
79
|
+
|
|
80
|
+
@application_id.setter
|
|
81
|
+
def application_id(self, application_id):
|
|
82
|
+
r"""Sets the application_id of this ExecuteActionRequest.
|
|
83
|
+
|
|
84
|
+
应用ID。
|
|
85
|
+
|
|
86
|
+
:param application_id: The application_id of this ExecuteActionRequest.
|
|
87
|
+
:type application_id: str
|
|
88
|
+
"""
|
|
89
|
+
self._application_id = application_id
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def component_id(self):
|
|
93
|
+
r"""Gets the component_id of this ExecuteActionRequest.
|
|
94
|
+
|
|
95
|
+
组件ID。
|
|
96
|
+
|
|
97
|
+
:return: The component_id of this ExecuteActionRequest.
|
|
98
|
+
:rtype: str
|
|
99
|
+
"""
|
|
100
|
+
return self._component_id
|
|
101
|
+
|
|
102
|
+
@component_id.setter
|
|
103
|
+
def component_id(self, component_id):
|
|
104
|
+
r"""Sets the component_id of this ExecuteActionRequest.
|
|
105
|
+
|
|
106
|
+
组件ID。
|
|
107
|
+
|
|
108
|
+
:param component_id: The component_id of this ExecuteActionRequest.
|
|
109
|
+
:type component_id: str
|
|
110
|
+
"""
|
|
111
|
+
self._component_id = component_id
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def x_enterprise_project_id(self):
|
|
115
|
+
r"""Gets the x_enterprise_project_id of this ExecuteActionRequest.
|
|
116
|
+
|
|
117
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
118
|
+
|
|
119
|
+
:return: The x_enterprise_project_id of this ExecuteActionRequest.
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._x_enterprise_project_id
|
|
123
|
+
|
|
124
|
+
@x_enterprise_project_id.setter
|
|
125
|
+
def x_enterprise_project_id(self, x_enterprise_project_id):
|
|
126
|
+
r"""Sets the x_enterprise_project_id of this ExecuteActionRequest.
|
|
127
|
+
|
|
128
|
+
企业项目ID。 - 创建环境时,环境会绑定企业项目ID。 - 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 该字段不传(或传为字符串“0”)时,则查询默认企业项目下的资源。 > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。
|
|
129
|
+
|
|
130
|
+
:param x_enterprise_project_id: The x_enterprise_project_id of this ExecuteActionRequest.
|
|
131
|
+
:type x_enterprise_project_id: str
|
|
132
|
+
"""
|
|
133
|
+
self._x_enterprise_project_id = x_enterprise_project_id
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def x_environment_id(self):
|
|
137
|
+
r"""Gets the x_environment_id of this ExecuteActionRequest.
|
|
138
|
+
|
|
139
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
140
|
+
|
|
141
|
+
:return: The x_environment_id of this ExecuteActionRequest.
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._x_environment_id
|
|
145
|
+
|
|
146
|
+
@x_environment_id.setter
|
|
147
|
+
def x_environment_id(self, x_environment_id):
|
|
148
|
+
r"""Sets the x_environment_id of this ExecuteActionRequest.
|
|
149
|
+
|
|
150
|
+
环境ID。 - 获取环境ID,通过《[云应用引擎API参考](https://support.huaweicloud.com/api-cae/ListEnvironments.html)》的“获取环境列表”章节获取环境信息。 - 请求响应成功后在响应体的items数组中的一个元素即为一个环境的信息,其中id字段即是环境ID。
|
|
151
|
+
|
|
152
|
+
:param x_environment_id: The x_environment_id of this ExecuteActionRequest.
|
|
153
|
+
:type x_environment_id: str
|
|
154
|
+
"""
|
|
155
|
+
self._x_environment_id = x_environment_id
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def body(self):
|
|
159
|
+
r"""Gets the body of this ExecuteActionRequest.
|
|
160
|
+
|
|
161
|
+
:return: The body of this ExecuteActionRequest.
|
|
162
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ExecuteActionRequestBody`
|
|
163
|
+
"""
|
|
164
|
+
return self._body
|
|
165
|
+
|
|
166
|
+
@body.setter
|
|
167
|
+
def body(self, body):
|
|
168
|
+
r"""Sets the body of this ExecuteActionRequest.
|
|
169
|
+
|
|
170
|
+
:param body: The body of this ExecuteActionRequest.
|
|
171
|
+
:type body: :class:`huaweicloudsdkcae.v1.ExecuteActionRequestBody`
|
|
172
|
+
"""
|
|
173
|
+
self._body = body
|
|
174
|
+
|
|
175
|
+
def to_dict(self):
|
|
176
|
+
"""Returns the model properties as a dict"""
|
|
177
|
+
result = {}
|
|
178
|
+
|
|
179
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
180
|
+
value = getattr(self, attr)
|
|
181
|
+
if isinstance(value, list):
|
|
182
|
+
result[attr] = list(map(
|
|
183
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
184
|
+
value
|
|
185
|
+
))
|
|
186
|
+
elif hasattr(value, "to_dict"):
|
|
187
|
+
result[attr] = value.to_dict()
|
|
188
|
+
elif isinstance(value, dict):
|
|
189
|
+
result[attr] = dict(map(
|
|
190
|
+
lambda item: (item[0], item[1].to_dict())
|
|
191
|
+
if hasattr(item[1], "to_dict") else item,
|
|
192
|
+
value.items()
|
|
193
|
+
))
|
|
194
|
+
else:
|
|
195
|
+
if attr in self.sensitive_list:
|
|
196
|
+
result[attr] = "****"
|
|
197
|
+
else:
|
|
198
|
+
result[attr] = value
|
|
199
|
+
|
|
200
|
+
return result
|
|
201
|
+
|
|
202
|
+
def to_str(self):
|
|
203
|
+
"""Returns the string representation of the model"""
|
|
204
|
+
import simplejson as json
|
|
205
|
+
if six.PY2:
|
|
206
|
+
import sys
|
|
207
|
+
reload(sys)
|
|
208
|
+
sys.setdefaultencoding("utf-8")
|
|
209
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
210
|
+
|
|
211
|
+
def __repr__(self):
|
|
212
|
+
"""For `print`"""
|
|
213
|
+
return self.to_str()
|
|
214
|
+
|
|
215
|
+
def __eq__(self, other):
|
|
216
|
+
"""Returns true if both objects are equal"""
|
|
217
|
+
if not isinstance(other, ExecuteActionRequest):
|
|
218
|
+
return False
|
|
219
|
+
|
|
220
|
+
return self.__dict__ == other.__dict__
|
|
221
|
+
|
|
222
|
+
def __ne__(self, other):
|
|
223
|
+
"""Returns true if both objects are not equal"""
|
|
224
|
+
return not self == other
|