huaweicloudsdkgeip 3.1.177__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.
- huaweicloudsdkgeip/__init__.py +0 -0
- huaweicloudsdkgeip/v3/__init__.py +224 -0
- huaweicloudsdkgeip/v3/geip_async_client.py +4984 -0
- huaweicloudsdkgeip/v3/geip_client.py +4981 -0
- huaweicloudsdkgeip/v3/model/__init__.py +221 -0
- huaweicloudsdkgeip/v3/model/add_geip_segment_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/add_geip_segment_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/add_global_eip_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/add_global_eip_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/add_internet_bandwidth_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/add_internet_bandwidth_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/allowed_bandwidth_types.py +166 -0
- huaweicloudsdkgeip/v3/model/associate_geip_segment_instance_request.py +128 -0
- huaweicloudsdkgeip/v3/model/associate_geip_segment_instance_response.py +162 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body.py +128 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip.py +129 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_associate_instance_info.py +253 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_gc_bandwidth_info.py +398 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_segment_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_segment_request_body_global_eip_segment.py +249 -0
- huaweicloudsdkgeip/v3/model/associate_instance_request.py +157 -0
- huaweicloudsdkgeip/v3/model/associate_instance_response.py +162 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth.py +135 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip.py +734 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip_request_body.py +128 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip_request_body_global_eip.py +107 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_request.py +128 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_response.py +162 -0
- huaweicloudsdkgeip/v3/model/batch_attach_geip_segment_internet_bandwidth_request.py +104 -0
- huaweicloudsdkgeip/v3/model/batch_attach_geip_segment_internet_bandwidth_response.py +137 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidth_request.py +104 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidth_response.py +133 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidths_global_eip_request_body.py +107 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidths_global_eip_segment_request_body.py +107 -0
- huaweicloudsdkgeip/v3/model/batch_create_geip_segment_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_create_geip_segment_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_job.py +166 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request.py +104 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body_global_eip.py +304 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body_global_eip_internet_bandwidth_info.py +282 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_response.py +166 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth.py +598 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request.py +104 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request_body_internet_bandwidth.py +395 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/batch_create_v2_request_body.py +136 -0
- huaweicloudsdkgeip/v3/model/batch_delete_geip_segment_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_delete_geip_segment_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/batch_delete_global_eip_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_delete_global_eip_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/batch_delete_internet_bandwidth_tags_request.py +128 -0
- huaweicloudsdkgeip/v3/model/batch_delete_internet_bandwidth_tags_response.py +108 -0
- huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body.py +136 -0
- huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body_tags.py +136 -0
- huaweicloudsdkgeip/v3/model/batch_detach_geip_segment_internet_bandwidth_request.py +104 -0
- huaweicloudsdkgeip/v3/model/batch_detach_geip_segment_internet_bandwidth_response.py +137 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidth_request.py +104 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidth_response.py +133 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidths_global_eip_request_body.py +107 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidths_global_eip_segment_request_body.py +107 -0
- huaweicloudsdkgeip/v3/model/batch_internet_bandwidths_global_eip_response_body.py +107 -0
- huaweicloudsdkgeip/v3/model/count_geip_segments.py +107 -0
- huaweicloudsdkgeip/v3/model/count_global_eip_segment_request.py +745 -0
- huaweicloudsdkgeip/v3/model/count_global_eip_segment_response.py +162 -0
- huaweicloudsdkgeip/v3/model/count_global_eips.py +107 -0
- huaweicloudsdkgeip/v3/model/count_global_eips_request.py +654 -0
- huaweicloudsdkgeip/v3/model/count_global_eips_response.py +162 -0
- huaweicloudsdkgeip/v3/model/count_internet_bandwidth_request.py +279 -0
- huaweicloudsdkgeip/v3/model/count_internet_bandwidth_response.py +162 -0
- huaweicloudsdkgeip/v3/model/count_internet_bandwidths.py +107 -0
- huaweicloudsdkgeip/v3/model/create_global_eip.py +135 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request.py +104 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request_body.py +128 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request_body_global_eip.py +280 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request_body_global_eip_tags.py +135 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_response.py +162 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request.py +104 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body_global_eip_segment.py +304 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body_global_eip_segment_internet_bandwidth.py +282 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_response.py +162 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth.py +684 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request.py +104 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request_body_internet_bandwidth.py +365 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_response.py +162 -0
- huaweicloudsdkgeip/v3/model/create_tag.py +136 -0
- huaweicloudsdkgeip/v3/model/create_user_disclaimer_record.py +166 -0
- huaweicloudsdkgeip/v3/model/create_user_disclaimer_request.py +77 -0
- huaweicloudsdkgeip/v3/model/create_user_disclaimer_response.py +162 -0
- huaweicloudsdkgeip/v3/model/create_v2_tag_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/create_v2_tag_request_body_tag.py +135 -0
- huaweicloudsdkgeip/v3/model/delete_geip_segment_tag_request.py +127 -0
- huaweicloudsdkgeip/v3/model/delete_geip_segment_tag_response.py +108 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_request.py +103 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_response.py +108 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_segment_request.py +103 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_segment_response.py +108 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_tag_request.py +127 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_tag_response.py +108 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_request.py +103 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_response.py +108 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_tag_request.py +127 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_tag_response.py +108 -0
- huaweicloudsdkgeip/v3/model/delete_user_disclaimer_request.py +77 -0
- huaweicloudsdkgeip/v3/model/delete_user_disclaimer_response.py +108 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth.py +107 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_global_eips.py +734 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_request.py +128 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_response.py +162 -0
- huaweicloudsdkgeip/v3/model/disassociate_geip_segment_instance_request.py +103 -0
- huaweicloudsdkgeip/v3/model/disassociate_geip_segment_instance_response.py +162 -0
- huaweicloudsdkgeip/v3/model/disassociate_instance_request.py +131 -0
- huaweicloudsdkgeip/v3/model/disassociate_instance_response.py +162 -0
- huaweicloudsdkgeip/v3/model/ext_limit_pojo.py +166 -0
- huaweicloudsdkgeip/v3/model/geip_resource.py +191 -0
- huaweicloudsdkgeip/v3/model/geip_tags.py +135 -0
- huaweicloudsdkgeip/v3/model/get_account_tags_v2.py +135 -0
- huaweicloudsdkgeip/v3/model/global_connection_bandwidth_info.py +253 -0
- huaweicloudsdkgeip/v3/model/instance_info.py +340 -0
- huaweicloudsdkgeip/v3/model/internet_bandwidth_info.py +137 -0
- huaweicloudsdkgeip/v3/model/list_access_sites.py +311 -0
- huaweicloudsdkgeip/v3/model/list_access_sites_request.py +378 -0
- huaweicloudsdkgeip/v3/model/list_access_sites_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_geip_pools.py +427 -0
- huaweicloudsdkgeip/v3/model/list_geip_pools_request.py +453 -0
- huaweicloudsdkgeip/v3/model/list_geip_pools_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_geip_resource_quotas_request.py +245 -0
- huaweicloudsdkgeip/v3/model/list_geip_resource_quotas_response.py +162 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_count_filter_tags_request.py +104 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_count_filter_tags_response.py +166 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_domain_tags_request.py +77 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_domain_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_filter_tags_request.py +162 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_filter_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_count_filter_tags_request.py +104 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_count_filter_tags_response.py +166 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_domain_tags_request.py +77 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_domain_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_filter_tags_request.py +154 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_filter_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_segments.py +680 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_segments_request.py +853 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_segments_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_global_eips.py +734 -0
- huaweicloudsdkgeip/v3/model/list_global_eips_request.py +903 -0
- huaweicloudsdkgeip/v3/model/list_global_eips_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_global_eips_response_body_page_info.py +166 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_count_filter_tags_request.py +104 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_count_filter_tags_response.py +166 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_domain_tags_request.py +77 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_domain_tags_response.py +137 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_filter_tags_request.py +154 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_filter_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits.py +249 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits_request.py +212 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits_response.py +166 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidths.py +746 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidths_request.py +528 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidths_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_jobs.py +311 -0
- huaweicloudsdkgeip/v3/model/list_jobs_request.py +353 -0
- huaweicloudsdkgeip/v3/model/list_jobs_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_quotas.py +107 -0
- huaweicloudsdkgeip/v3/model/list_resources_by_tags_request_body.py +107 -0
- huaweicloudsdkgeip/v3/model/list_support_instances_support_regions.py +311 -0
- huaweicloudsdkgeip/v3/model/list_support_masks.py +224 -0
- huaweicloudsdkgeip/v3/model/list_support_masks_request.py +353 -0
- huaweicloudsdkgeip/v3/model/list_support_masks_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_support_regions.py +340 -0
- huaweicloudsdkgeip/v3/model/list_support_regions_request.py +453 -0
- huaweicloudsdkgeip/v3/model/list_support_regions_response.py +191 -0
- huaweicloudsdkgeip/v3/model/list_tenant_geip_support_instances_request.py +128 -0
- huaweicloudsdkgeip/v3/model/list_tenant_geip_support_instances_response.py +166 -0
- huaweicloudsdkgeip/v3/model/lock_info.py +369 -0
- huaweicloudsdkgeip/v3/model/native_uuid.py +77 -0
- huaweicloudsdkgeip/v3/model/resources_info.py +195 -0
- huaweicloudsdkgeip/v3/model/short_global_eip_segment.py +137 -0
- huaweicloudsdkgeip/v3/model/show_geip_segment_tags_request.py +103 -0
- huaweicloudsdkgeip/v3/model/show_geip_segment_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/show_global_eip.py +734 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_request.py +128 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_response.py +162 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_segment.py +680 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_segment_request.py +128 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_segment_response.py +162 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_tags_request.py +103 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth.py +688 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_request.py +128 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_response.py +162 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_tags_request.py +103 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_tags_response.py +195 -0
- huaweicloudsdkgeip/v3/model/show_job.py +311 -0
- huaweicloudsdkgeip/v3/model/show_jobs_request.py +132 -0
- huaweicloudsdkgeip/v3/model/show_jobs_response.py +162 -0
- huaweicloudsdkgeip/v3/model/show_user_disclaimer_record.py +166 -0
- huaweicloudsdkgeip/v3/model/show_user_disclaimer_request.py +104 -0
- huaweicloudsdkgeip/v3/model/show_user_disclaimer_response.py +162 -0
- huaweicloudsdkgeip/v3/model/sys_tag.py +135 -0
- huaweicloudsdkgeip/v3/model/tag.py +137 -0
- huaweicloudsdkgeip/v3/model/update_global_eip.py +137 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_request.py +128 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_request_body.py +128 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_request_body_global_eip.py +137 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_response.py +162 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_request.py +128 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_request_body_global_eip_segment.py +137 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_response.py +162 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth.py +630 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request.py +128 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request_body.py +103 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request_body_internet_bandwidth.py +224 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_response.py +162 -0
- huaweicloudsdkgeip/v3/region/__init__.py +0 -0
- huaweicloudsdkgeip/v3/region/geip_region.py +31 -0
- huaweicloudsdkgeip-3.1.177.dist-info/METADATA +25 -0
- huaweicloudsdkgeip-3.1.177.dist-info/RECORD +227 -0
- huaweicloudsdkgeip-3.1.177.dist-info/WHEEL +4 -0
- huaweicloudsdkgeip-3.1.177.dist-info/licenses/LICENSE +13 -0
|
@@ -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 ListAccessSitesResponse(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
|
+
'request_id': 'str',
|
|
20
|
+
'access_sites': 'list[ListAccessSites]',
|
|
21
|
+
'page_info': 'ListGlobalEipsResponseBodyPageInfo',
|
|
22
|
+
'x_request_id': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'request_id': 'request_id',
|
|
27
|
+
'access_sites': 'access_sites',
|
|
28
|
+
'page_info': 'page_info',
|
|
29
|
+
'x_request_id': 'X-Request-Id'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, request_id=None, access_sites=None, page_info=None, x_request_id=None):
|
|
33
|
+
r"""ListAccessSitesResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param request_id: 本次请求的编号
|
|
38
|
+
:type request_id: str
|
|
39
|
+
:param access_sites: 接入点列表
|
|
40
|
+
:type access_sites: list[:class:`huaweicloudsdkgeip.v3.ListAccessSites`]
|
|
41
|
+
:param page_info:
|
|
42
|
+
:type page_info: :class:`huaweicloudsdkgeip.v3.ListGlobalEipsResponseBodyPageInfo`
|
|
43
|
+
:param x_request_id:
|
|
44
|
+
:type x_request_id: str
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
super().__init__()
|
|
48
|
+
|
|
49
|
+
self._request_id = None
|
|
50
|
+
self._access_sites = None
|
|
51
|
+
self._page_info = None
|
|
52
|
+
self._x_request_id = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if request_id is not None:
|
|
56
|
+
self.request_id = request_id
|
|
57
|
+
if access_sites is not None:
|
|
58
|
+
self.access_sites = access_sites
|
|
59
|
+
if page_info is not None:
|
|
60
|
+
self.page_info = page_info
|
|
61
|
+
if x_request_id is not None:
|
|
62
|
+
self.x_request_id = x_request_id
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def request_id(self):
|
|
66
|
+
r"""Gets the request_id of this ListAccessSitesResponse.
|
|
67
|
+
|
|
68
|
+
本次请求的编号
|
|
69
|
+
|
|
70
|
+
:return: The request_id of this ListAccessSitesResponse.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._request_id
|
|
74
|
+
|
|
75
|
+
@request_id.setter
|
|
76
|
+
def request_id(self, request_id):
|
|
77
|
+
r"""Sets the request_id of this ListAccessSitesResponse.
|
|
78
|
+
|
|
79
|
+
本次请求的编号
|
|
80
|
+
|
|
81
|
+
:param request_id: The request_id of this ListAccessSitesResponse.
|
|
82
|
+
:type request_id: str
|
|
83
|
+
"""
|
|
84
|
+
self._request_id = request_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def access_sites(self):
|
|
88
|
+
r"""Gets the access_sites of this ListAccessSitesResponse.
|
|
89
|
+
|
|
90
|
+
接入点列表
|
|
91
|
+
|
|
92
|
+
:return: The access_sites of this ListAccessSitesResponse.
|
|
93
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.ListAccessSites`]
|
|
94
|
+
"""
|
|
95
|
+
return self._access_sites
|
|
96
|
+
|
|
97
|
+
@access_sites.setter
|
|
98
|
+
def access_sites(self, access_sites):
|
|
99
|
+
r"""Sets the access_sites of this ListAccessSitesResponse.
|
|
100
|
+
|
|
101
|
+
接入点列表
|
|
102
|
+
|
|
103
|
+
:param access_sites: The access_sites of this ListAccessSitesResponse.
|
|
104
|
+
:type access_sites: list[:class:`huaweicloudsdkgeip.v3.ListAccessSites`]
|
|
105
|
+
"""
|
|
106
|
+
self._access_sites = access_sites
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def page_info(self):
|
|
110
|
+
r"""Gets the page_info of this ListAccessSitesResponse.
|
|
111
|
+
|
|
112
|
+
:return: The page_info of this ListAccessSitesResponse.
|
|
113
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.ListGlobalEipsResponseBodyPageInfo`
|
|
114
|
+
"""
|
|
115
|
+
return self._page_info
|
|
116
|
+
|
|
117
|
+
@page_info.setter
|
|
118
|
+
def page_info(self, page_info):
|
|
119
|
+
r"""Sets the page_info of this ListAccessSitesResponse.
|
|
120
|
+
|
|
121
|
+
:param page_info: The page_info of this ListAccessSitesResponse.
|
|
122
|
+
:type page_info: :class:`huaweicloudsdkgeip.v3.ListGlobalEipsResponseBodyPageInfo`
|
|
123
|
+
"""
|
|
124
|
+
self._page_info = page_info
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def x_request_id(self):
|
|
128
|
+
r"""Gets the x_request_id of this ListAccessSitesResponse.
|
|
129
|
+
|
|
130
|
+
:return: The x_request_id of this ListAccessSitesResponse.
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._x_request_id
|
|
134
|
+
|
|
135
|
+
@x_request_id.setter
|
|
136
|
+
def x_request_id(self, x_request_id):
|
|
137
|
+
r"""Sets the x_request_id of this ListAccessSitesResponse.
|
|
138
|
+
|
|
139
|
+
:param x_request_id: The x_request_id of this ListAccessSitesResponse.
|
|
140
|
+
:type x_request_id: str
|
|
141
|
+
"""
|
|
142
|
+
self._x_request_id = x_request_id
|
|
143
|
+
|
|
144
|
+
def to_dict(self):
|
|
145
|
+
import warnings
|
|
146
|
+
warnings.warn("ListAccessSitesResponse.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, ListAccessSitesResponse):
|
|
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
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListGeipPools:
|
|
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
|
+
'id': 'str',
|
|
19
|
+
'name': 'str',
|
|
20
|
+
'en_name': 'str',
|
|
21
|
+
'cn_name': 'str',
|
|
22
|
+
'status': 'str',
|
|
23
|
+
'isp': 'str',
|
|
24
|
+
'ip_version': 'int',
|
|
25
|
+
'access_site': 'str',
|
|
26
|
+
'type': 'str',
|
|
27
|
+
'created_at': 'datetime',
|
|
28
|
+
'updated_at': 'datetime',
|
|
29
|
+
'allowed_bandwidth_types': 'list[AllowedBandwidthTypes]'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
attribute_map = {
|
|
33
|
+
'id': 'id',
|
|
34
|
+
'name': 'name',
|
|
35
|
+
'en_name': 'en_name',
|
|
36
|
+
'cn_name': 'cn_name',
|
|
37
|
+
'status': 'status',
|
|
38
|
+
'isp': 'isp',
|
|
39
|
+
'ip_version': 'ip_version',
|
|
40
|
+
'access_site': 'access_site',
|
|
41
|
+
'type': 'type',
|
|
42
|
+
'created_at': 'created_at',
|
|
43
|
+
'updated_at': 'updated_at',
|
|
44
|
+
'allowed_bandwidth_types': 'allowed_bandwidth_types'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, id=None, name=None, en_name=None, cn_name=None, status=None, isp=None, ip_version=None, access_site=None, type=None, created_at=None, updated_at=None, allowed_bandwidth_types=None):
|
|
48
|
+
r"""ListGeipPools
|
|
49
|
+
|
|
50
|
+
The model defined in huaweicloud sdk
|
|
51
|
+
|
|
52
|
+
:param id: 全域弹性公网IP池的ID
|
|
53
|
+
:type id: str
|
|
54
|
+
:param name: - 功能说明:全域弹性公网IP池名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
55
|
+
:type name: str
|
|
56
|
+
:param en_name: 英文名称
|
|
57
|
+
:type en_name: str
|
|
58
|
+
:param cn_name: 中文名称
|
|
59
|
+
:type cn_name: str
|
|
60
|
+
:param status: 状态
|
|
61
|
+
:type status: str
|
|
62
|
+
:param isp: 全域弹性公网IP所属线路
|
|
63
|
+
:type isp: str
|
|
64
|
+
:param ip_version: - 功能说明:全域弹性公网IP池的版本 - 取值范围:4、6
|
|
65
|
+
:type ip_version: int
|
|
66
|
+
:param access_site: 接入点信息
|
|
67
|
+
:type access_site: str
|
|
68
|
+
:param type: 类型
|
|
69
|
+
:type type: str
|
|
70
|
+
:param created_at: 创建时间
|
|
71
|
+
:type created_at: datetime
|
|
72
|
+
:param updated_at: 更新时间
|
|
73
|
+
:type updated_at: datetime
|
|
74
|
+
:param allowed_bandwidth_types: 地址池支持的全域公网带宽类型资源
|
|
75
|
+
:type allowed_bandwidth_types: list[:class:`huaweicloudsdkgeip.v3.AllowedBandwidthTypes`]
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
self._id = None
|
|
81
|
+
self._name = None
|
|
82
|
+
self._en_name = None
|
|
83
|
+
self._cn_name = None
|
|
84
|
+
self._status = None
|
|
85
|
+
self._isp = None
|
|
86
|
+
self._ip_version = None
|
|
87
|
+
self._access_site = None
|
|
88
|
+
self._type = None
|
|
89
|
+
self._created_at = None
|
|
90
|
+
self._updated_at = None
|
|
91
|
+
self._allowed_bandwidth_types = None
|
|
92
|
+
self.discriminator = None
|
|
93
|
+
|
|
94
|
+
if id is not None:
|
|
95
|
+
self.id = id
|
|
96
|
+
if name is not None:
|
|
97
|
+
self.name = name
|
|
98
|
+
if en_name is not None:
|
|
99
|
+
self.en_name = en_name
|
|
100
|
+
if cn_name is not None:
|
|
101
|
+
self.cn_name = cn_name
|
|
102
|
+
if status is not None:
|
|
103
|
+
self.status = status
|
|
104
|
+
if isp is not None:
|
|
105
|
+
self.isp = isp
|
|
106
|
+
if ip_version is not None:
|
|
107
|
+
self.ip_version = ip_version
|
|
108
|
+
if access_site is not None:
|
|
109
|
+
self.access_site = access_site
|
|
110
|
+
if type is not None:
|
|
111
|
+
self.type = type
|
|
112
|
+
if created_at is not None:
|
|
113
|
+
self.created_at = created_at
|
|
114
|
+
if updated_at is not None:
|
|
115
|
+
self.updated_at = updated_at
|
|
116
|
+
if allowed_bandwidth_types is not None:
|
|
117
|
+
self.allowed_bandwidth_types = allowed_bandwidth_types
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def id(self):
|
|
121
|
+
r"""Gets the id of this ListGeipPools.
|
|
122
|
+
|
|
123
|
+
全域弹性公网IP池的ID
|
|
124
|
+
|
|
125
|
+
:return: The id of this ListGeipPools.
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._id
|
|
129
|
+
|
|
130
|
+
@id.setter
|
|
131
|
+
def id(self, id):
|
|
132
|
+
r"""Sets the id of this ListGeipPools.
|
|
133
|
+
|
|
134
|
+
全域弹性公网IP池的ID
|
|
135
|
+
|
|
136
|
+
:param id: The id of this ListGeipPools.
|
|
137
|
+
:type id: str
|
|
138
|
+
"""
|
|
139
|
+
self._id = id
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def name(self):
|
|
143
|
+
r"""Gets the name of this ListGeipPools.
|
|
144
|
+
|
|
145
|
+
- 功能说明:全域弹性公网IP池名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
146
|
+
|
|
147
|
+
:return: The name of this ListGeipPools.
|
|
148
|
+
:rtype: str
|
|
149
|
+
"""
|
|
150
|
+
return self._name
|
|
151
|
+
|
|
152
|
+
@name.setter
|
|
153
|
+
def name(self, name):
|
|
154
|
+
r"""Sets the name of this ListGeipPools.
|
|
155
|
+
|
|
156
|
+
- 功能说明:全域弹性公网IP池名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
157
|
+
|
|
158
|
+
:param name: The name of this ListGeipPools.
|
|
159
|
+
:type name: str
|
|
160
|
+
"""
|
|
161
|
+
self._name = name
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
def en_name(self):
|
|
165
|
+
r"""Gets the en_name of this ListGeipPools.
|
|
166
|
+
|
|
167
|
+
英文名称
|
|
168
|
+
|
|
169
|
+
:return: The en_name of this ListGeipPools.
|
|
170
|
+
:rtype: str
|
|
171
|
+
"""
|
|
172
|
+
return self._en_name
|
|
173
|
+
|
|
174
|
+
@en_name.setter
|
|
175
|
+
def en_name(self, en_name):
|
|
176
|
+
r"""Sets the en_name of this ListGeipPools.
|
|
177
|
+
|
|
178
|
+
英文名称
|
|
179
|
+
|
|
180
|
+
:param en_name: The en_name of this ListGeipPools.
|
|
181
|
+
:type en_name: str
|
|
182
|
+
"""
|
|
183
|
+
self._en_name = en_name
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def cn_name(self):
|
|
187
|
+
r"""Gets the cn_name of this ListGeipPools.
|
|
188
|
+
|
|
189
|
+
中文名称
|
|
190
|
+
|
|
191
|
+
:return: The cn_name of this ListGeipPools.
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._cn_name
|
|
195
|
+
|
|
196
|
+
@cn_name.setter
|
|
197
|
+
def cn_name(self, cn_name):
|
|
198
|
+
r"""Sets the cn_name of this ListGeipPools.
|
|
199
|
+
|
|
200
|
+
中文名称
|
|
201
|
+
|
|
202
|
+
:param cn_name: The cn_name of this ListGeipPools.
|
|
203
|
+
:type cn_name: str
|
|
204
|
+
"""
|
|
205
|
+
self._cn_name = cn_name
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def status(self):
|
|
209
|
+
r"""Gets the status of this ListGeipPools.
|
|
210
|
+
|
|
211
|
+
状态
|
|
212
|
+
|
|
213
|
+
:return: The status of this ListGeipPools.
|
|
214
|
+
:rtype: str
|
|
215
|
+
"""
|
|
216
|
+
return self._status
|
|
217
|
+
|
|
218
|
+
@status.setter
|
|
219
|
+
def status(self, status):
|
|
220
|
+
r"""Sets the status of this ListGeipPools.
|
|
221
|
+
|
|
222
|
+
状态
|
|
223
|
+
|
|
224
|
+
:param status: The status of this ListGeipPools.
|
|
225
|
+
:type status: str
|
|
226
|
+
"""
|
|
227
|
+
self._status = status
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def isp(self):
|
|
231
|
+
r"""Gets the isp of this ListGeipPools.
|
|
232
|
+
|
|
233
|
+
全域弹性公网IP所属线路
|
|
234
|
+
|
|
235
|
+
:return: The isp of this ListGeipPools.
|
|
236
|
+
:rtype: str
|
|
237
|
+
"""
|
|
238
|
+
return self._isp
|
|
239
|
+
|
|
240
|
+
@isp.setter
|
|
241
|
+
def isp(self, isp):
|
|
242
|
+
r"""Sets the isp of this ListGeipPools.
|
|
243
|
+
|
|
244
|
+
全域弹性公网IP所属线路
|
|
245
|
+
|
|
246
|
+
:param isp: The isp of this ListGeipPools.
|
|
247
|
+
:type isp: str
|
|
248
|
+
"""
|
|
249
|
+
self._isp = isp
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def ip_version(self):
|
|
253
|
+
r"""Gets the ip_version of this ListGeipPools.
|
|
254
|
+
|
|
255
|
+
- 功能说明:全域弹性公网IP池的版本 - 取值范围:4、6
|
|
256
|
+
|
|
257
|
+
:return: The ip_version of this ListGeipPools.
|
|
258
|
+
:rtype: int
|
|
259
|
+
"""
|
|
260
|
+
return self._ip_version
|
|
261
|
+
|
|
262
|
+
@ip_version.setter
|
|
263
|
+
def ip_version(self, ip_version):
|
|
264
|
+
r"""Sets the ip_version of this ListGeipPools.
|
|
265
|
+
|
|
266
|
+
- 功能说明:全域弹性公网IP池的版本 - 取值范围:4、6
|
|
267
|
+
|
|
268
|
+
:param ip_version: The ip_version of this ListGeipPools.
|
|
269
|
+
:type ip_version: int
|
|
270
|
+
"""
|
|
271
|
+
self._ip_version = ip_version
|
|
272
|
+
|
|
273
|
+
@property
|
|
274
|
+
def access_site(self):
|
|
275
|
+
r"""Gets the access_site of this ListGeipPools.
|
|
276
|
+
|
|
277
|
+
接入点信息
|
|
278
|
+
|
|
279
|
+
:return: The access_site of this ListGeipPools.
|
|
280
|
+
:rtype: str
|
|
281
|
+
"""
|
|
282
|
+
return self._access_site
|
|
283
|
+
|
|
284
|
+
@access_site.setter
|
|
285
|
+
def access_site(self, access_site):
|
|
286
|
+
r"""Sets the access_site of this ListGeipPools.
|
|
287
|
+
|
|
288
|
+
接入点信息
|
|
289
|
+
|
|
290
|
+
:param access_site: The access_site of this ListGeipPools.
|
|
291
|
+
:type access_site: str
|
|
292
|
+
"""
|
|
293
|
+
self._access_site = access_site
|
|
294
|
+
|
|
295
|
+
@property
|
|
296
|
+
def type(self):
|
|
297
|
+
r"""Gets the type of this ListGeipPools.
|
|
298
|
+
|
|
299
|
+
类型
|
|
300
|
+
|
|
301
|
+
:return: The type of this ListGeipPools.
|
|
302
|
+
:rtype: str
|
|
303
|
+
"""
|
|
304
|
+
return self._type
|
|
305
|
+
|
|
306
|
+
@type.setter
|
|
307
|
+
def type(self, type):
|
|
308
|
+
r"""Sets the type of this ListGeipPools.
|
|
309
|
+
|
|
310
|
+
类型
|
|
311
|
+
|
|
312
|
+
:param type: The type of this ListGeipPools.
|
|
313
|
+
:type type: str
|
|
314
|
+
"""
|
|
315
|
+
self._type = type
|
|
316
|
+
|
|
317
|
+
@property
|
|
318
|
+
def created_at(self):
|
|
319
|
+
r"""Gets the created_at of this ListGeipPools.
|
|
320
|
+
|
|
321
|
+
创建时间
|
|
322
|
+
|
|
323
|
+
:return: The created_at of this ListGeipPools.
|
|
324
|
+
:rtype: datetime
|
|
325
|
+
"""
|
|
326
|
+
return self._created_at
|
|
327
|
+
|
|
328
|
+
@created_at.setter
|
|
329
|
+
def created_at(self, created_at):
|
|
330
|
+
r"""Sets the created_at of this ListGeipPools.
|
|
331
|
+
|
|
332
|
+
创建时间
|
|
333
|
+
|
|
334
|
+
:param created_at: The created_at of this ListGeipPools.
|
|
335
|
+
:type created_at: datetime
|
|
336
|
+
"""
|
|
337
|
+
self._created_at = created_at
|
|
338
|
+
|
|
339
|
+
@property
|
|
340
|
+
def updated_at(self):
|
|
341
|
+
r"""Gets the updated_at of this ListGeipPools.
|
|
342
|
+
|
|
343
|
+
更新时间
|
|
344
|
+
|
|
345
|
+
:return: The updated_at of this ListGeipPools.
|
|
346
|
+
:rtype: datetime
|
|
347
|
+
"""
|
|
348
|
+
return self._updated_at
|
|
349
|
+
|
|
350
|
+
@updated_at.setter
|
|
351
|
+
def updated_at(self, updated_at):
|
|
352
|
+
r"""Sets the updated_at of this ListGeipPools.
|
|
353
|
+
|
|
354
|
+
更新时间
|
|
355
|
+
|
|
356
|
+
:param updated_at: The updated_at of this ListGeipPools.
|
|
357
|
+
:type updated_at: datetime
|
|
358
|
+
"""
|
|
359
|
+
self._updated_at = updated_at
|
|
360
|
+
|
|
361
|
+
@property
|
|
362
|
+
def allowed_bandwidth_types(self):
|
|
363
|
+
r"""Gets the allowed_bandwidth_types of this ListGeipPools.
|
|
364
|
+
|
|
365
|
+
地址池支持的全域公网带宽类型资源
|
|
366
|
+
|
|
367
|
+
:return: The allowed_bandwidth_types of this ListGeipPools.
|
|
368
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.AllowedBandwidthTypes`]
|
|
369
|
+
"""
|
|
370
|
+
return self._allowed_bandwidth_types
|
|
371
|
+
|
|
372
|
+
@allowed_bandwidth_types.setter
|
|
373
|
+
def allowed_bandwidth_types(self, allowed_bandwidth_types):
|
|
374
|
+
r"""Sets the allowed_bandwidth_types of this ListGeipPools.
|
|
375
|
+
|
|
376
|
+
地址池支持的全域公网带宽类型资源
|
|
377
|
+
|
|
378
|
+
:param allowed_bandwidth_types: The allowed_bandwidth_types of this ListGeipPools.
|
|
379
|
+
:type allowed_bandwidth_types: list[:class:`huaweicloudsdkgeip.v3.AllowedBandwidthTypes`]
|
|
380
|
+
"""
|
|
381
|
+
self._allowed_bandwidth_types = allowed_bandwidth_types
|
|
382
|
+
|
|
383
|
+
def to_dict(self):
|
|
384
|
+
result = {}
|
|
385
|
+
|
|
386
|
+
for attr, _ in self.openapi_types.items():
|
|
387
|
+
value = getattr(self, attr)
|
|
388
|
+
if isinstance(value, list):
|
|
389
|
+
result[attr] = list(map(
|
|
390
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
391
|
+
value
|
|
392
|
+
))
|
|
393
|
+
elif hasattr(value, "to_dict"):
|
|
394
|
+
result[attr] = value.to_dict()
|
|
395
|
+
elif isinstance(value, dict):
|
|
396
|
+
result[attr] = dict(map(
|
|
397
|
+
lambda item: (item[0], item[1].to_dict())
|
|
398
|
+
if hasattr(item[1], "to_dict") else item,
|
|
399
|
+
value.items()
|
|
400
|
+
))
|
|
401
|
+
else:
|
|
402
|
+
if attr in self.sensitive_list:
|
|
403
|
+
result[attr] = "****"
|
|
404
|
+
else:
|
|
405
|
+
result[attr] = value
|
|
406
|
+
|
|
407
|
+
return result
|
|
408
|
+
|
|
409
|
+
def to_str(self):
|
|
410
|
+
"""Returns the string representation of the model"""
|
|
411
|
+
import simplejson as json
|
|
412
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
413
|
+
|
|
414
|
+
def __repr__(self):
|
|
415
|
+
"""For `print`"""
|
|
416
|
+
return self.to_str()
|
|
417
|
+
|
|
418
|
+
def __eq__(self, other):
|
|
419
|
+
"""Returns true if both objects are equal"""
|
|
420
|
+
if not isinstance(other, ListGeipPools):
|
|
421
|
+
return False
|
|
422
|
+
|
|
423
|
+
return self.__dict__ == other.__dict__
|
|
424
|
+
|
|
425
|
+
def __ne__(self, other):
|
|
426
|
+
"""Returns true if both objects are not equal"""
|
|
427
|
+
return not self == other
|