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