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,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 ListComponentSnapshotsResponse(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': 'ComponentSnapshotKindObj',
|
|
21
|
+
'items': 'list[ComponentSnapshotItem]'
|
|
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"""ListComponentSnapshotsResponse
|
|
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.ComponentSnapshotKindObj`
|
|
39
|
+
:param items: 快照列表。
|
|
40
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.ComponentSnapshotItem`]
|
|
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 ListComponentSnapshotsResponse.
|
|
60
|
+
|
|
61
|
+
:return: The api_version of this ListComponentSnapshotsResponse.
|
|
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 ListComponentSnapshotsResponse.
|
|
69
|
+
|
|
70
|
+
:param api_version: The api_version of this ListComponentSnapshotsResponse.
|
|
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 ListComponentSnapshotsResponse.
|
|
78
|
+
|
|
79
|
+
:return: The kind of this ListComponentSnapshotsResponse.
|
|
80
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ComponentSnapshotKindObj`
|
|
81
|
+
"""
|
|
82
|
+
return self._kind
|
|
83
|
+
|
|
84
|
+
@kind.setter
|
|
85
|
+
def kind(self, kind):
|
|
86
|
+
r"""Sets the kind of this ListComponentSnapshotsResponse.
|
|
87
|
+
|
|
88
|
+
:param kind: The kind of this ListComponentSnapshotsResponse.
|
|
89
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentSnapshotKindObj`
|
|
90
|
+
"""
|
|
91
|
+
self._kind = kind
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def items(self):
|
|
95
|
+
r"""Gets the items of this ListComponentSnapshotsResponse.
|
|
96
|
+
|
|
97
|
+
快照列表。
|
|
98
|
+
|
|
99
|
+
:return: The items of this ListComponentSnapshotsResponse.
|
|
100
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.ComponentSnapshotItem`]
|
|
101
|
+
"""
|
|
102
|
+
return self._items
|
|
103
|
+
|
|
104
|
+
@items.setter
|
|
105
|
+
def items(self, items):
|
|
106
|
+
r"""Sets the items of this ListComponentSnapshotsResponse.
|
|
107
|
+
|
|
108
|
+
快照列表。
|
|
109
|
+
|
|
110
|
+
:param items: The items of this ListComponentSnapshotsResponse.
|
|
111
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.ComponentSnapshotItem`]
|
|
112
|
+
"""
|
|
113
|
+
self._items = items
|
|
114
|
+
|
|
115
|
+
def to_dict(self):
|
|
116
|
+
import warnings
|
|
117
|
+
warnings.warn("ListComponentSnapshotsResponse.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, ListComponentSnapshotsResponse):
|
|
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,280 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListComponentsRequest:
|
|
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
|
+
'x_enterprise_project_id': 'str',
|
|
20
|
+
'x_environment_id': 'str',
|
|
21
|
+
'limit': 'str',
|
|
22
|
+
'offset': 'str',
|
|
23
|
+
'sort_key': 'str',
|
|
24
|
+
'sort': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'application_id': 'application_id',
|
|
29
|
+
'x_enterprise_project_id': 'X-Enterprise-Project-ID',
|
|
30
|
+
'x_environment_id': 'X-Environment-ID',
|
|
31
|
+
'limit': 'limit',
|
|
32
|
+
'offset': 'offset',
|
|
33
|
+
'sort_key': 'sort_key',
|
|
34
|
+
'sort': 'sort'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
def __init__(self, application_id=None, x_enterprise_project_id=None, x_environment_id=None, limit=None, offset=None, sort_key=None, sort=None):
|
|
38
|
+
r"""ListComponentsRequest
|
|
39
|
+
|
|
40
|
+
The model defined in huaweicloud sdk
|
|
41
|
+
|
|
42
|
+
:param application_id: 应用ID。
|
|
43
|
+
:type application_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 limit: 限制本次返回结果的条数。
|
|
49
|
+
:type limit: str
|
|
50
|
+
:param offset: 分页偏移位,查询起始位置。
|
|
51
|
+
:type offset: str
|
|
52
|
+
:param sort_key: 排序字段。
|
|
53
|
+
:type sort_key: str
|
|
54
|
+
:param sort: 升降序规则。
|
|
55
|
+
:type sort: str
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
self._application_id = None
|
|
61
|
+
self._x_enterprise_project_id = None
|
|
62
|
+
self._x_environment_id = None
|
|
63
|
+
self._limit = None
|
|
64
|
+
self._offset = None
|
|
65
|
+
self._sort_key = None
|
|
66
|
+
self._sort = None
|
|
67
|
+
self.discriminator = None
|
|
68
|
+
|
|
69
|
+
self.application_id = application_id
|
|
70
|
+
if x_enterprise_project_id is not None:
|
|
71
|
+
self.x_enterprise_project_id = x_enterprise_project_id
|
|
72
|
+
self.x_environment_id = x_environment_id
|
|
73
|
+
if limit is not None:
|
|
74
|
+
self.limit = limit
|
|
75
|
+
if offset is not None:
|
|
76
|
+
self.offset = offset
|
|
77
|
+
if sort_key is not None:
|
|
78
|
+
self.sort_key = sort_key
|
|
79
|
+
if sort is not None:
|
|
80
|
+
self.sort = sort
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def application_id(self):
|
|
84
|
+
r"""Gets the application_id of this ListComponentsRequest.
|
|
85
|
+
|
|
86
|
+
应用ID。
|
|
87
|
+
|
|
88
|
+
:return: The application_id of this ListComponentsRequest.
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._application_id
|
|
92
|
+
|
|
93
|
+
@application_id.setter
|
|
94
|
+
def application_id(self, application_id):
|
|
95
|
+
r"""Sets the application_id of this ListComponentsRequest.
|
|
96
|
+
|
|
97
|
+
应用ID。
|
|
98
|
+
|
|
99
|
+
:param application_id: The application_id of this ListComponentsRequest.
|
|
100
|
+
:type application_id: str
|
|
101
|
+
"""
|
|
102
|
+
self._application_id = application_id
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def x_enterprise_project_id(self):
|
|
106
|
+
r"""Gets the x_enterprise_project_id of this ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
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 ListComponentsRequest.
|
|
144
|
+
:type x_environment_id: str
|
|
145
|
+
"""
|
|
146
|
+
self._x_environment_id = x_environment_id
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def limit(self):
|
|
150
|
+
r"""Gets the limit of this ListComponentsRequest.
|
|
151
|
+
|
|
152
|
+
限制本次返回结果的条数。
|
|
153
|
+
|
|
154
|
+
:return: The limit of this ListComponentsRequest.
|
|
155
|
+
:rtype: str
|
|
156
|
+
"""
|
|
157
|
+
return self._limit
|
|
158
|
+
|
|
159
|
+
@limit.setter
|
|
160
|
+
def limit(self, limit):
|
|
161
|
+
r"""Sets the limit of this ListComponentsRequest.
|
|
162
|
+
|
|
163
|
+
限制本次返回结果的条数。
|
|
164
|
+
|
|
165
|
+
:param limit: The limit of this ListComponentsRequest.
|
|
166
|
+
:type limit: str
|
|
167
|
+
"""
|
|
168
|
+
self._limit = limit
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def offset(self):
|
|
172
|
+
r"""Gets the offset of this ListComponentsRequest.
|
|
173
|
+
|
|
174
|
+
分页偏移位,查询起始位置。
|
|
175
|
+
|
|
176
|
+
:return: The offset of this ListComponentsRequest.
|
|
177
|
+
:rtype: str
|
|
178
|
+
"""
|
|
179
|
+
return self._offset
|
|
180
|
+
|
|
181
|
+
@offset.setter
|
|
182
|
+
def offset(self, offset):
|
|
183
|
+
r"""Sets the offset of this ListComponentsRequest.
|
|
184
|
+
|
|
185
|
+
分页偏移位,查询起始位置。
|
|
186
|
+
|
|
187
|
+
:param offset: The offset of this ListComponentsRequest.
|
|
188
|
+
:type offset: str
|
|
189
|
+
"""
|
|
190
|
+
self._offset = offset
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
def sort_key(self):
|
|
194
|
+
r"""Gets the sort_key of this ListComponentsRequest.
|
|
195
|
+
|
|
196
|
+
排序字段。
|
|
197
|
+
|
|
198
|
+
:return: The sort_key of this ListComponentsRequest.
|
|
199
|
+
:rtype: str
|
|
200
|
+
"""
|
|
201
|
+
return self._sort_key
|
|
202
|
+
|
|
203
|
+
@sort_key.setter
|
|
204
|
+
def sort_key(self, sort_key):
|
|
205
|
+
r"""Sets the sort_key of this ListComponentsRequest.
|
|
206
|
+
|
|
207
|
+
排序字段。
|
|
208
|
+
|
|
209
|
+
:param sort_key: The sort_key of this ListComponentsRequest.
|
|
210
|
+
:type sort_key: str
|
|
211
|
+
"""
|
|
212
|
+
self._sort_key = sort_key
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def sort(self):
|
|
216
|
+
r"""Gets the sort of this ListComponentsRequest.
|
|
217
|
+
|
|
218
|
+
升降序规则。
|
|
219
|
+
|
|
220
|
+
:return: The sort of this ListComponentsRequest.
|
|
221
|
+
:rtype: str
|
|
222
|
+
"""
|
|
223
|
+
return self._sort
|
|
224
|
+
|
|
225
|
+
@sort.setter
|
|
226
|
+
def sort(self, sort):
|
|
227
|
+
r"""Sets the sort of this ListComponentsRequest.
|
|
228
|
+
|
|
229
|
+
升降序规则。
|
|
230
|
+
|
|
231
|
+
:param sort: The sort of this ListComponentsRequest.
|
|
232
|
+
:type sort: str
|
|
233
|
+
"""
|
|
234
|
+
self._sort = sort
|
|
235
|
+
|
|
236
|
+
def to_dict(self):
|
|
237
|
+
result = {}
|
|
238
|
+
|
|
239
|
+
for attr, _ in self.openapi_types.items():
|
|
240
|
+
value = getattr(self, attr)
|
|
241
|
+
if isinstance(value, list):
|
|
242
|
+
result[attr] = list(map(
|
|
243
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
244
|
+
value
|
|
245
|
+
))
|
|
246
|
+
elif hasattr(value, "to_dict"):
|
|
247
|
+
result[attr] = value.to_dict()
|
|
248
|
+
elif isinstance(value, dict):
|
|
249
|
+
result[attr] = dict(map(
|
|
250
|
+
lambda item: (item[0], item[1].to_dict())
|
|
251
|
+
if hasattr(item[1], "to_dict") else item,
|
|
252
|
+
value.items()
|
|
253
|
+
))
|
|
254
|
+
else:
|
|
255
|
+
if attr in self.sensitive_list:
|
|
256
|
+
result[attr] = "****"
|
|
257
|
+
else:
|
|
258
|
+
result[attr] = value
|
|
259
|
+
|
|
260
|
+
return result
|
|
261
|
+
|
|
262
|
+
def to_str(self):
|
|
263
|
+
"""Returns the string representation of the model"""
|
|
264
|
+
import simplejson as json
|
|
265
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
266
|
+
|
|
267
|
+
def __repr__(self):
|
|
268
|
+
"""For `print`"""
|
|
269
|
+
return self.to_str()
|
|
270
|
+
|
|
271
|
+
def __eq__(self, other):
|
|
272
|
+
"""Returns true if both objects are equal"""
|
|
273
|
+
if not isinstance(other, ListComponentsRequest):
|
|
274
|
+
return False
|
|
275
|
+
|
|
276
|
+
return self.__dict__ == other.__dict__
|
|
277
|
+
|
|
278
|
+
def __ne__(self, other):
|
|
279
|
+
"""Returns true if both objects are not equal"""
|
|
280
|
+
return not self == other
|
|
@@ -0,0 +1,191 @@
|
|
|
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 ListComponentsResponse(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': 'ComponentKindObj',
|
|
21
|
+
'items': 'list[ComponentItem]',
|
|
22
|
+
'total_count': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'api_version': 'api_version',
|
|
27
|
+
'kind': 'kind',
|
|
28
|
+
'items': 'items',
|
|
29
|
+
'total_count': 'total_count'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, api_version=None, kind=None, items=None, total_count=None):
|
|
33
|
+
r"""ListComponentsResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param api_version:
|
|
38
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
39
|
+
:param kind:
|
|
40
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
41
|
+
:param items: 组件列表。
|
|
42
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.ComponentItem`]
|
|
43
|
+
:param total_count: 分页总数。
|
|
44
|
+
:type total_count: int
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
super().__init__()
|
|
48
|
+
|
|
49
|
+
self._api_version = None
|
|
50
|
+
self._kind = None
|
|
51
|
+
self._items = None
|
|
52
|
+
self._total_count = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if api_version is not None:
|
|
56
|
+
self.api_version = api_version
|
|
57
|
+
if kind is not None:
|
|
58
|
+
self.kind = kind
|
|
59
|
+
if items is not None:
|
|
60
|
+
self.items = items
|
|
61
|
+
if total_count is not None:
|
|
62
|
+
self.total_count = total_count
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def api_version(self):
|
|
66
|
+
r"""Gets the api_version of this ListComponentsResponse.
|
|
67
|
+
|
|
68
|
+
:return: The api_version of this ListComponentsResponse.
|
|
69
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
70
|
+
"""
|
|
71
|
+
return self._api_version
|
|
72
|
+
|
|
73
|
+
@api_version.setter
|
|
74
|
+
def api_version(self, api_version):
|
|
75
|
+
r"""Sets the api_version of this ListComponentsResponse.
|
|
76
|
+
|
|
77
|
+
:param api_version: The api_version of this ListComponentsResponse.
|
|
78
|
+
:type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
|
|
79
|
+
"""
|
|
80
|
+
self._api_version = api_version
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def kind(self):
|
|
84
|
+
r"""Gets the kind of this ListComponentsResponse.
|
|
85
|
+
|
|
86
|
+
:return: The kind of this ListComponentsResponse.
|
|
87
|
+
:rtype: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
88
|
+
"""
|
|
89
|
+
return self._kind
|
|
90
|
+
|
|
91
|
+
@kind.setter
|
|
92
|
+
def kind(self, kind):
|
|
93
|
+
r"""Sets the kind of this ListComponentsResponse.
|
|
94
|
+
|
|
95
|
+
:param kind: The kind of this ListComponentsResponse.
|
|
96
|
+
:type kind: :class:`huaweicloudsdkcae.v1.ComponentKindObj`
|
|
97
|
+
"""
|
|
98
|
+
self._kind = kind
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def items(self):
|
|
102
|
+
r"""Gets the items of this ListComponentsResponse.
|
|
103
|
+
|
|
104
|
+
组件列表。
|
|
105
|
+
|
|
106
|
+
:return: The items of this ListComponentsResponse.
|
|
107
|
+
:rtype: list[:class:`huaweicloudsdkcae.v1.ComponentItem`]
|
|
108
|
+
"""
|
|
109
|
+
return self._items
|
|
110
|
+
|
|
111
|
+
@items.setter
|
|
112
|
+
def items(self, items):
|
|
113
|
+
r"""Sets the items of this ListComponentsResponse.
|
|
114
|
+
|
|
115
|
+
组件列表。
|
|
116
|
+
|
|
117
|
+
:param items: The items of this ListComponentsResponse.
|
|
118
|
+
:type items: list[:class:`huaweicloudsdkcae.v1.ComponentItem`]
|
|
119
|
+
"""
|
|
120
|
+
self._items = items
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def total_count(self):
|
|
124
|
+
r"""Gets the total_count of this ListComponentsResponse.
|
|
125
|
+
|
|
126
|
+
分页总数。
|
|
127
|
+
|
|
128
|
+
:return: The total_count of this ListComponentsResponse.
|
|
129
|
+
:rtype: int
|
|
130
|
+
"""
|
|
131
|
+
return self._total_count
|
|
132
|
+
|
|
133
|
+
@total_count.setter
|
|
134
|
+
def total_count(self, total_count):
|
|
135
|
+
r"""Sets the total_count of this ListComponentsResponse.
|
|
136
|
+
|
|
137
|
+
分页总数。
|
|
138
|
+
|
|
139
|
+
:param total_count: The total_count of this ListComponentsResponse.
|
|
140
|
+
:type total_count: int
|
|
141
|
+
"""
|
|
142
|
+
self._total_count = total_count
|
|
143
|
+
|
|
144
|
+
def to_dict(self):
|
|
145
|
+
import warnings
|
|
146
|
+
warnings.warn("ListComponentsResponse.to_dict() is deprecated and no longer maintained, "
|
|
147
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
148
|
+
result = {}
|
|
149
|
+
|
|
150
|
+
for attr, _ in self.openapi_types.items():
|
|
151
|
+
value = getattr(self, attr)
|
|
152
|
+
if isinstance(value, list):
|
|
153
|
+
result[attr] = list(map(
|
|
154
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
155
|
+
value
|
|
156
|
+
))
|
|
157
|
+
elif hasattr(value, "to_dict"):
|
|
158
|
+
result[attr] = value.to_dict()
|
|
159
|
+
elif isinstance(value, dict):
|
|
160
|
+
result[attr] = dict(map(
|
|
161
|
+
lambda item: (item[0], item[1].to_dict())
|
|
162
|
+
if hasattr(item[1], "to_dict") else item,
|
|
163
|
+
value.items()
|
|
164
|
+
))
|
|
165
|
+
else:
|
|
166
|
+
if attr in self.sensitive_list:
|
|
167
|
+
result[attr] = "****"
|
|
168
|
+
else:
|
|
169
|
+
result[attr] = value
|
|
170
|
+
|
|
171
|
+
return result
|
|
172
|
+
|
|
173
|
+
def to_str(self):
|
|
174
|
+
"""Returns the string representation of the model"""
|
|
175
|
+
import simplejson as json
|
|
176
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
177
|
+
|
|
178
|
+
def __repr__(self):
|
|
179
|
+
"""For `print`"""
|
|
180
|
+
return self.to_str()
|
|
181
|
+
|
|
182
|
+
def __eq__(self, other):
|
|
183
|
+
"""Returns true if both objects are equal"""
|
|
184
|
+
if not isinstance(other, ListComponentsResponse):
|
|
185
|
+
return False
|
|
186
|
+
|
|
187
|
+
return self.__dict__ == other.__dict__
|
|
188
|
+
|
|
189
|
+
def __ne__(self, other):
|
|
190
|
+
"""Returns true if both objects are not equal"""
|
|
191
|
+
return not self == other
|