huaweicloudsdkgeip 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkgeip might be problematic. Click here for more details.
- 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 +135 -0
- huaweicloudsdkgeip/v3/model/add_geip_segment_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/add_global_eip_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/add_global_eip_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/add_internet_bandwidth_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/add_internet_bandwidth_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/allowed_bandwidth_types.py +173 -0
- huaweicloudsdkgeip/v3/model/associate_geip_segment_instance_request.py +135 -0
- huaweicloudsdkgeip/v3/model/associate_geip_segment_instance_response.py +166 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body.py +135 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip.py +136 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_associate_instance_info.py +260 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_request_body_global_eip_gc_bandwidth_info.py +405 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_segment_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/associate_instance_global_eip_segment_request_body_global_eip_segment.py +256 -0
- huaweicloudsdkgeip/v3/model/associate_instance_request.py +164 -0
- huaweicloudsdkgeip/v3/model/associate_instance_response.py +166 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth.py +142 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip.py +741 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip_request_body.py +135 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_global_eip_request_body_global_eip.py +114 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_request.py +135 -0
- huaweicloudsdkgeip/v3/model/attach_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/model/batch_attach_geip_segment_internet_bandwidth_request.py +111 -0
- huaweicloudsdkgeip/v3/model/batch_attach_geip_segment_internet_bandwidth_response.py +141 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidth_request.py +111 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidth_response.py +137 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidths_global_eip_request_body.py +114 -0
- huaweicloudsdkgeip/v3/model/batch_attach_internet_bandwidths_global_eip_segment_request_body.py +114 -0
- huaweicloudsdkgeip/v3/model/batch_create_geip_segment_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_create_geip_segment_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_job.py +173 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request.py +111 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body_global_eip.py +311 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_request_body_global_eip_internet_bandwidth_info.py +289 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_response.py +170 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_create_global_eip_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth.py +605 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request.py +111 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_request_body_internet_bandwidth.py +402 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_response.py +170 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_create_internet_bandwidth_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/batch_create_v2_request_body.py +143 -0
- huaweicloudsdkgeip/v3/model/batch_delete_geip_segment_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_delete_geip_segment_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/batch_delete_global_eip_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_delete_global_eip_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/batch_delete_internet_bandwidth_tags_request.py +135 -0
- huaweicloudsdkgeip/v3/model/batch_delete_internet_bandwidth_tags_response.py +112 -0
- huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body.py +143 -0
- huaweicloudsdkgeip/v3/model/batch_delete_v2_request_body_tags.py +143 -0
- huaweicloudsdkgeip/v3/model/batch_detach_geip_segment_internet_bandwidth_request.py +111 -0
- huaweicloudsdkgeip/v3/model/batch_detach_geip_segment_internet_bandwidth_response.py +141 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidth_request.py +111 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidth_response.py +137 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidths_global_eip_request_body.py +114 -0
- huaweicloudsdkgeip/v3/model/batch_detach_internet_bandwidths_global_eip_segment_request_body.py +114 -0
- huaweicloudsdkgeip/v3/model/batch_internet_bandwidths_global_eip_response_body.py +114 -0
- huaweicloudsdkgeip/v3/model/count_geip_segments.py +114 -0
- huaweicloudsdkgeip/v3/model/count_global_eip_segment_request.py +752 -0
- huaweicloudsdkgeip/v3/model/count_global_eip_segment_response.py +166 -0
- huaweicloudsdkgeip/v3/model/count_global_eips.py +114 -0
- huaweicloudsdkgeip/v3/model/count_global_eips_request.py +661 -0
- huaweicloudsdkgeip/v3/model/count_global_eips_response.py +166 -0
- huaweicloudsdkgeip/v3/model/count_internet_bandwidth_request.py +286 -0
- huaweicloudsdkgeip/v3/model/count_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/model/count_internet_bandwidths.py +114 -0
- huaweicloudsdkgeip/v3/model/create_global_eip.py +142 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request.py +111 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request_body.py +135 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request_body_global_eip.py +287 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_request_body_global_eip_tags.py +142 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_response.py +166 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request.py +111 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body_global_eip_segment.py +311 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_request_body_global_eip_segment_internet_bandwidth.py +289 -0
- huaweicloudsdkgeip/v3/model/create_global_eip_segment_response.py +166 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth.py +691 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request.py +111 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_request_body_internet_bandwidth.py +372 -0
- huaweicloudsdkgeip/v3/model/create_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/model/create_tag.py +143 -0
- huaweicloudsdkgeip/v3/model/create_user_disclaimer_record.py +173 -0
- huaweicloudsdkgeip/v3/model/create_user_disclaimer_request.py +84 -0
- huaweicloudsdkgeip/v3/model/create_user_disclaimer_response.py +166 -0
- huaweicloudsdkgeip/v3/model/create_v2_tag_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/create_v2_tag_request_body_tag.py +142 -0
- huaweicloudsdkgeip/v3/model/delete_geip_segment_tag_request.py +134 -0
- huaweicloudsdkgeip/v3/model/delete_geip_segment_tag_response.py +112 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_request.py +110 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_response.py +112 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_segment_request.py +110 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_segment_response.py +112 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_tag_request.py +134 -0
- huaweicloudsdkgeip/v3/model/delete_global_eip_tag_response.py +112 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_request.py +110 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_response.py +112 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_tag_request.py +134 -0
- huaweicloudsdkgeip/v3/model/delete_internet_bandwidth_tag_response.py +112 -0
- huaweicloudsdkgeip/v3/model/delete_user_disclaimer_request.py +84 -0
- huaweicloudsdkgeip/v3/model/delete_user_disclaimer_response.py +112 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth.py +114 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_global_eips.py +741 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_request.py +135 -0
- huaweicloudsdkgeip/v3/model/detach_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/model/disassociate_geip_segment_instance_request.py +110 -0
- huaweicloudsdkgeip/v3/model/disassociate_geip_segment_instance_response.py +166 -0
- huaweicloudsdkgeip/v3/model/disassociate_instance_request.py +138 -0
- huaweicloudsdkgeip/v3/model/disassociate_instance_response.py +166 -0
- huaweicloudsdkgeip/v3/model/ext_limit_pojo.py +173 -0
- huaweicloudsdkgeip/v3/model/geip_resource.py +198 -0
- huaweicloudsdkgeip/v3/model/geip_tags.py +142 -0
- huaweicloudsdkgeip/v3/model/get_account_tags_v2.py +142 -0
- huaweicloudsdkgeip/v3/model/global_connection_bandwidth_info.py +260 -0
- huaweicloudsdkgeip/v3/model/instance_info.py +347 -0
- huaweicloudsdkgeip/v3/model/internet_bandwidth_info.py +144 -0
- huaweicloudsdkgeip/v3/model/list_access_sites.py +318 -0
- huaweicloudsdkgeip/v3/model/list_access_sites_request.py +385 -0
- huaweicloudsdkgeip/v3/model/list_access_sites_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_geip_pools.py +434 -0
- huaweicloudsdkgeip/v3/model/list_geip_pools_request.py +460 -0
- huaweicloudsdkgeip/v3/model/list_geip_pools_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_geip_resource_quotas_request.py +252 -0
- huaweicloudsdkgeip/v3/model/list_geip_resource_quotas_response.py +166 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_count_filter_tags_request.py +111 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_count_filter_tags_response.py +170 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_domain_tags_request.py +84 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_domain_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_filter_tags_request.py +169 -0
- huaweicloudsdkgeip/v3/model/list_geip_segment_filter_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_count_filter_tags_request.py +111 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_count_filter_tags_response.py +170 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_domain_tags_request.py +84 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_domain_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_filter_tags_request.py +161 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_filter_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_segments.py +687 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_segments_request.py +860 -0
- huaweicloudsdkgeip/v3/model/list_global_eip_segments_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_global_eips.py +741 -0
- huaweicloudsdkgeip/v3/model/list_global_eips_request.py +910 -0
- huaweicloudsdkgeip/v3/model/list_global_eips_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_global_eips_response_body_page_info.py +173 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_count_filter_tags_request.py +111 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_count_filter_tags_response.py +170 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_domain_tags_request.py +84 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_domain_tags_response.py +141 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_filter_tags_request.py +161 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_filter_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits.py +256 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits_request.py +219 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidth_limits_response.py +170 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidths.py +753 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidths_request.py +535 -0
- huaweicloudsdkgeip/v3/model/list_internet_bandwidths_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_jobs.py +318 -0
- huaweicloudsdkgeip/v3/model/list_jobs_request.py +360 -0
- huaweicloudsdkgeip/v3/model/list_jobs_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_quotas.py +114 -0
- huaweicloudsdkgeip/v3/model/list_resources_by_tags_request_body.py +114 -0
- huaweicloudsdkgeip/v3/model/list_support_instances_support_regions.py +318 -0
- huaweicloudsdkgeip/v3/model/list_support_masks.py +231 -0
- huaweicloudsdkgeip/v3/model/list_support_masks_request.py +360 -0
- huaweicloudsdkgeip/v3/model/list_support_masks_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_support_regions.py +347 -0
- huaweicloudsdkgeip/v3/model/list_support_regions_request.py +460 -0
- huaweicloudsdkgeip/v3/model/list_support_regions_response.py +195 -0
- huaweicloudsdkgeip/v3/model/list_tenant_geip_support_instances_request.py +135 -0
- huaweicloudsdkgeip/v3/model/list_tenant_geip_support_instances_response.py +170 -0
- huaweicloudsdkgeip/v3/model/lock_info.py +376 -0
- huaweicloudsdkgeip/v3/model/native_uuid.py +84 -0
- huaweicloudsdkgeip/v3/model/resources_info.py +202 -0
- huaweicloudsdkgeip/v3/model/short_global_eip_segment.py +144 -0
- huaweicloudsdkgeip/v3/model/show_geip_segment_tags_request.py +110 -0
- huaweicloudsdkgeip/v3/model/show_geip_segment_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/show_global_eip.py +741 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_request.py +135 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_response.py +166 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_segment.py +687 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_segment_request.py +135 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_segment_response.py +166 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_tags_request.py +110 -0
- huaweicloudsdkgeip/v3/model/show_global_eip_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth.py +695 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_request.py +135 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_tags_request.py +110 -0
- huaweicloudsdkgeip/v3/model/show_internet_bandwidth_tags_response.py +199 -0
- huaweicloudsdkgeip/v3/model/show_job.py +318 -0
- huaweicloudsdkgeip/v3/model/show_jobs_request.py +139 -0
- huaweicloudsdkgeip/v3/model/show_jobs_response.py +166 -0
- huaweicloudsdkgeip/v3/model/show_user_disclaimer_record.py +173 -0
- huaweicloudsdkgeip/v3/model/show_user_disclaimer_request.py +111 -0
- huaweicloudsdkgeip/v3/model/show_user_disclaimer_response.py +166 -0
- huaweicloudsdkgeip/v3/model/sys_tag.py +142 -0
- huaweicloudsdkgeip/v3/model/tag.py +144 -0
- huaweicloudsdkgeip/v3/model/update_global_eip.py +144 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_request.py +135 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_request_body.py +135 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_request_body_global_eip.py +144 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_response.py +166 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_request.py +135 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_request_body_global_eip_segment.py +144 -0
- huaweicloudsdkgeip/v3/model/update_global_eip_segment_response.py +166 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth.py +637 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request.py +135 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request_body.py +110 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_request_body_internet_bandwidth.py +231 -0
- huaweicloudsdkgeip/v3/model/update_internet_bandwidth_response.py +166 -0
- huaweicloudsdkgeip/v3/region/__init__.py +0 -0
- huaweicloudsdkgeip/v3/region/geip_region.py +31 -0
- huaweicloudsdkgeip-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkgeip-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkgeip-3.1.160.dist-info/RECORD +228 -0
- huaweicloudsdkgeip-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkgeip-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListInternetBandwidthDomainTagsRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self):
|
|
26
|
+
r"""ListInternetBandwidthDomainTagsRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
self.discriminator = None
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""Returns the model properties as a dict"""
|
|
37
|
+
result = {}
|
|
38
|
+
|
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
40
|
+
value = getattr(self, attr)
|
|
41
|
+
if isinstance(value, list):
|
|
42
|
+
result[attr] = list(map(
|
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
44
|
+
value
|
|
45
|
+
))
|
|
46
|
+
elif hasattr(value, "to_dict"):
|
|
47
|
+
result[attr] = value.to_dict()
|
|
48
|
+
elif isinstance(value, dict):
|
|
49
|
+
result[attr] = dict(map(
|
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
|
52
|
+
value.items()
|
|
53
|
+
))
|
|
54
|
+
else:
|
|
55
|
+
if attr in self.sensitive_list:
|
|
56
|
+
result[attr] = "****"
|
|
57
|
+
else:
|
|
58
|
+
result[attr] = value
|
|
59
|
+
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def to_str(self):
|
|
63
|
+
"""Returns the string representation of the model"""
|
|
64
|
+
import simplejson as json
|
|
65
|
+
if six.PY2:
|
|
66
|
+
import sys
|
|
67
|
+
reload(sys)
|
|
68
|
+
sys.setdefaultencoding("utf-8")
|
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
70
|
+
|
|
71
|
+
def __repr__(self):
|
|
72
|
+
"""For `print`"""
|
|
73
|
+
return self.to_str()
|
|
74
|
+
|
|
75
|
+
def __eq__(self, other):
|
|
76
|
+
"""Returns true if both objects are equal"""
|
|
77
|
+
if not isinstance(other, ListInternetBandwidthDomainTagsRequest):
|
|
78
|
+
return False
|
|
79
|
+
|
|
80
|
+
return self.__dict__ == other.__dict__
|
|
81
|
+
|
|
82
|
+
def __ne__(self, other):
|
|
83
|
+
"""Returns true if both objects are not equal"""
|
|
84
|
+
return not self == other
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListInternetBandwidthDomainTagsResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'tags': 'list[CreateTag]',
|
|
22
|
+
'x_request_id': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'tags': 'tags',
|
|
27
|
+
'x_request_id': 'X-Request-Id'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, tags=None, x_request_id=None):
|
|
31
|
+
r"""ListInternetBandwidthDomainTagsResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param tags: 所有标签。
|
|
36
|
+
:type tags: list[:class:`huaweicloudsdkgeip.v3.CreateTag`]
|
|
37
|
+
:param x_request_id:
|
|
38
|
+
:type x_request_id: str
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(ListInternetBandwidthDomainTagsResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._tags = None
|
|
44
|
+
self._x_request_id = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if tags is not None:
|
|
48
|
+
self.tags = tags
|
|
49
|
+
if x_request_id is not None:
|
|
50
|
+
self.x_request_id = x_request_id
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def tags(self):
|
|
54
|
+
r"""Gets the tags of this ListInternetBandwidthDomainTagsResponse.
|
|
55
|
+
|
|
56
|
+
所有标签。
|
|
57
|
+
|
|
58
|
+
:return: The tags of this ListInternetBandwidthDomainTagsResponse.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.CreateTag`]
|
|
60
|
+
"""
|
|
61
|
+
return self._tags
|
|
62
|
+
|
|
63
|
+
@tags.setter
|
|
64
|
+
def tags(self, tags):
|
|
65
|
+
r"""Sets the tags of this ListInternetBandwidthDomainTagsResponse.
|
|
66
|
+
|
|
67
|
+
所有标签。
|
|
68
|
+
|
|
69
|
+
:param tags: The tags of this ListInternetBandwidthDomainTagsResponse.
|
|
70
|
+
:type tags: list[:class:`huaweicloudsdkgeip.v3.CreateTag`]
|
|
71
|
+
"""
|
|
72
|
+
self._tags = tags
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def x_request_id(self):
|
|
76
|
+
r"""Gets the x_request_id of this ListInternetBandwidthDomainTagsResponse.
|
|
77
|
+
|
|
78
|
+
:return: The x_request_id of this ListInternetBandwidthDomainTagsResponse.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._x_request_id
|
|
82
|
+
|
|
83
|
+
@x_request_id.setter
|
|
84
|
+
def x_request_id(self, x_request_id):
|
|
85
|
+
r"""Sets the x_request_id of this ListInternetBandwidthDomainTagsResponse.
|
|
86
|
+
|
|
87
|
+
:param x_request_id: The x_request_id of this ListInternetBandwidthDomainTagsResponse.
|
|
88
|
+
:type x_request_id: str
|
|
89
|
+
"""
|
|
90
|
+
self._x_request_id = x_request_id
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
"""Returns the model properties as a dict"""
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
if attr in self.sensitive_list:
|
|
113
|
+
result[attr] = "****"
|
|
114
|
+
else:
|
|
115
|
+
result[attr] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
import simplejson as json
|
|
122
|
+
if six.PY2:
|
|
123
|
+
import sys
|
|
124
|
+
reload(sys)
|
|
125
|
+
sys.setdefaultencoding("utf-8")
|
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
127
|
+
|
|
128
|
+
def __repr__(self):
|
|
129
|
+
"""For `print`"""
|
|
130
|
+
return self.to_str()
|
|
131
|
+
|
|
132
|
+
def __eq__(self, other):
|
|
133
|
+
"""Returns true if both objects are equal"""
|
|
134
|
+
if not isinstance(other, ListInternetBandwidthDomainTagsResponse):
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
return self.__dict__ == other.__dict__
|
|
138
|
+
|
|
139
|
+
def __ne__(self, other):
|
|
140
|
+
"""Returns true if both objects are not equal"""
|
|
141
|
+
return not self == other
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListInternetBandwidthFilterTagsRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'limit': 'list[int]',
|
|
21
|
+
'offset': 'list[int]',
|
|
22
|
+
'body': 'ListResourcesByTagsRequestBody'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'limit': 'limit',
|
|
27
|
+
'offset': 'offset',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, limit=None, offset=None, body=None):
|
|
32
|
+
r"""ListInternetBandwidthFilterTagsRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param limit:
|
|
37
|
+
:type limit: list[int]
|
|
38
|
+
:param offset:
|
|
39
|
+
:type offset: list[int]
|
|
40
|
+
:param body: Body of the ListInternetBandwidthFilterTagsRequest
|
|
41
|
+
:type body: :class:`huaweicloudsdkgeip.v3.ListResourcesByTagsRequestBody`
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._limit = None
|
|
47
|
+
self._offset = None
|
|
48
|
+
self._body = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if limit is not None:
|
|
52
|
+
self.limit = limit
|
|
53
|
+
if offset is not None:
|
|
54
|
+
self.offset = offset
|
|
55
|
+
if body is not None:
|
|
56
|
+
self.body = body
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def limit(self):
|
|
60
|
+
r"""Gets the limit of this ListInternetBandwidthFilterTagsRequest.
|
|
61
|
+
|
|
62
|
+
:return: The limit of this ListInternetBandwidthFilterTagsRequest.
|
|
63
|
+
:rtype: list[int]
|
|
64
|
+
"""
|
|
65
|
+
return self._limit
|
|
66
|
+
|
|
67
|
+
@limit.setter
|
|
68
|
+
def limit(self, limit):
|
|
69
|
+
r"""Sets the limit of this ListInternetBandwidthFilterTagsRequest.
|
|
70
|
+
|
|
71
|
+
:param limit: The limit of this ListInternetBandwidthFilterTagsRequest.
|
|
72
|
+
:type limit: list[int]
|
|
73
|
+
"""
|
|
74
|
+
self._limit = limit
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def offset(self):
|
|
78
|
+
r"""Gets the offset of this ListInternetBandwidthFilterTagsRequest.
|
|
79
|
+
|
|
80
|
+
:return: The offset of this ListInternetBandwidthFilterTagsRequest.
|
|
81
|
+
:rtype: list[int]
|
|
82
|
+
"""
|
|
83
|
+
return self._offset
|
|
84
|
+
|
|
85
|
+
@offset.setter
|
|
86
|
+
def offset(self, offset):
|
|
87
|
+
r"""Sets the offset of this ListInternetBandwidthFilterTagsRequest.
|
|
88
|
+
|
|
89
|
+
:param offset: The offset of this ListInternetBandwidthFilterTagsRequest.
|
|
90
|
+
:type offset: list[int]
|
|
91
|
+
"""
|
|
92
|
+
self._offset = offset
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def body(self):
|
|
96
|
+
r"""Gets the body of this ListInternetBandwidthFilterTagsRequest.
|
|
97
|
+
|
|
98
|
+
:return: The body of this ListInternetBandwidthFilterTagsRequest.
|
|
99
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.ListResourcesByTagsRequestBody`
|
|
100
|
+
"""
|
|
101
|
+
return self._body
|
|
102
|
+
|
|
103
|
+
@body.setter
|
|
104
|
+
def body(self, body):
|
|
105
|
+
r"""Sets the body of this ListInternetBandwidthFilterTagsRequest.
|
|
106
|
+
|
|
107
|
+
:param body: The body of this ListInternetBandwidthFilterTagsRequest.
|
|
108
|
+
:type body: :class:`huaweicloudsdkgeip.v3.ListResourcesByTagsRequestBody`
|
|
109
|
+
"""
|
|
110
|
+
self._body = body
|
|
111
|
+
|
|
112
|
+
def to_dict(self):
|
|
113
|
+
"""Returns the model properties as a dict"""
|
|
114
|
+
result = {}
|
|
115
|
+
|
|
116
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
117
|
+
value = getattr(self, attr)
|
|
118
|
+
if isinstance(value, list):
|
|
119
|
+
result[attr] = list(map(
|
|
120
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
121
|
+
value
|
|
122
|
+
))
|
|
123
|
+
elif hasattr(value, "to_dict"):
|
|
124
|
+
result[attr] = value.to_dict()
|
|
125
|
+
elif isinstance(value, dict):
|
|
126
|
+
result[attr] = dict(map(
|
|
127
|
+
lambda item: (item[0], item[1].to_dict())
|
|
128
|
+
if hasattr(item[1], "to_dict") else item,
|
|
129
|
+
value.items()
|
|
130
|
+
))
|
|
131
|
+
else:
|
|
132
|
+
if attr in self.sensitive_list:
|
|
133
|
+
result[attr] = "****"
|
|
134
|
+
else:
|
|
135
|
+
result[attr] = value
|
|
136
|
+
|
|
137
|
+
return result
|
|
138
|
+
|
|
139
|
+
def to_str(self):
|
|
140
|
+
"""Returns the string representation of the model"""
|
|
141
|
+
import simplejson as json
|
|
142
|
+
if six.PY2:
|
|
143
|
+
import sys
|
|
144
|
+
reload(sys)
|
|
145
|
+
sys.setdefaultencoding("utf-8")
|
|
146
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
147
|
+
|
|
148
|
+
def __repr__(self):
|
|
149
|
+
"""For `print`"""
|
|
150
|
+
return self.to_str()
|
|
151
|
+
|
|
152
|
+
def __eq__(self, other):
|
|
153
|
+
"""Returns true if both objects are equal"""
|
|
154
|
+
if not isinstance(other, ListInternetBandwidthFilterTagsRequest):
|
|
155
|
+
return False
|
|
156
|
+
|
|
157
|
+
return self.__dict__ == other.__dict__
|
|
158
|
+
|
|
159
|
+
def __ne__(self, other):
|
|
160
|
+
"""Returns true if both objects are not equal"""
|
|
161
|
+
return not self == other
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListInternetBandwidthFilterTagsResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'resources': 'list[GeipResource]',
|
|
22
|
+
'total_count': 'int',
|
|
23
|
+
'request_id': 'str',
|
|
24
|
+
'x_request_id': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'resources': 'resources',
|
|
29
|
+
'total_count': 'total_count',
|
|
30
|
+
'request_id': 'request_id',
|
|
31
|
+
'x_request_id': 'X-Request-Id'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
def __init__(self, resources=None, total_count=None, request_id=None, x_request_id=None):
|
|
35
|
+
r"""ListInternetBandwidthFilterTagsResponse
|
|
36
|
+
|
|
37
|
+
The model defined in huaweicloud sdk
|
|
38
|
+
|
|
39
|
+
:param resources: 资源列表
|
|
40
|
+
:type resources: list[:class:`huaweicloudsdkgeip.v3.GeipResource`]
|
|
41
|
+
:param total_count: 当前列表中资源数量。
|
|
42
|
+
:type total_count: int
|
|
43
|
+
:param request_id: 本次请求的编号
|
|
44
|
+
:type request_id: str
|
|
45
|
+
:param x_request_id:
|
|
46
|
+
:type x_request_id: str
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
super(ListInternetBandwidthFilterTagsResponse, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._resources = None
|
|
52
|
+
self._total_count = None
|
|
53
|
+
self._request_id = None
|
|
54
|
+
self._x_request_id = None
|
|
55
|
+
self.discriminator = None
|
|
56
|
+
|
|
57
|
+
if resources is not None:
|
|
58
|
+
self.resources = resources
|
|
59
|
+
if total_count is not None:
|
|
60
|
+
self.total_count = total_count
|
|
61
|
+
if request_id is not None:
|
|
62
|
+
self.request_id = request_id
|
|
63
|
+
if x_request_id is not None:
|
|
64
|
+
self.x_request_id = x_request_id
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def resources(self):
|
|
68
|
+
r"""Gets the resources of this ListInternetBandwidthFilterTagsResponse.
|
|
69
|
+
|
|
70
|
+
资源列表
|
|
71
|
+
|
|
72
|
+
:return: The resources of this ListInternetBandwidthFilterTagsResponse.
|
|
73
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.GeipResource`]
|
|
74
|
+
"""
|
|
75
|
+
return self._resources
|
|
76
|
+
|
|
77
|
+
@resources.setter
|
|
78
|
+
def resources(self, resources):
|
|
79
|
+
r"""Sets the resources of this ListInternetBandwidthFilterTagsResponse.
|
|
80
|
+
|
|
81
|
+
资源列表
|
|
82
|
+
|
|
83
|
+
:param resources: The resources of this ListInternetBandwidthFilterTagsResponse.
|
|
84
|
+
:type resources: list[:class:`huaweicloudsdkgeip.v3.GeipResource`]
|
|
85
|
+
"""
|
|
86
|
+
self._resources = resources
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def total_count(self):
|
|
90
|
+
r"""Gets the total_count of this ListInternetBandwidthFilterTagsResponse.
|
|
91
|
+
|
|
92
|
+
当前列表中资源数量。
|
|
93
|
+
|
|
94
|
+
:return: The total_count of this ListInternetBandwidthFilterTagsResponse.
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._total_count
|
|
98
|
+
|
|
99
|
+
@total_count.setter
|
|
100
|
+
def total_count(self, total_count):
|
|
101
|
+
r"""Sets the total_count of this ListInternetBandwidthFilterTagsResponse.
|
|
102
|
+
|
|
103
|
+
当前列表中资源数量。
|
|
104
|
+
|
|
105
|
+
:param total_count: The total_count of this ListInternetBandwidthFilterTagsResponse.
|
|
106
|
+
:type total_count: int
|
|
107
|
+
"""
|
|
108
|
+
self._total_count = total_count
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def request_id(self):
|
|
112
|
+
r"""Gets the request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
113
|
+
|
|
114
|
+
本次请求的编号
|
|
115
|
+
|
|
116
|
+
:return: The request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._request_id
|
|
120
|
+
|
|
121
|
+
@request_id.setter
|
|
122
|
+
def request_id(self, request_id):
|
|
123
|
+
r"""Sets the request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
124
|
+
|
|
125
|
+
本次请求的编号
|
|
126
|
+
|
|
127
|
+
:param request_id: The request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
128
|
+
:type request_id: str
|
|
129
|
+
"""
|
|
130
|
+
self._request_id = request_id
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def x_request_id(self):
|
|
134
|
+
r"""Gets the x_request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
135
|
+
|
|
136
|
+
:return: The x_request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
137
|
+
:rtype: str
|
|
138
|
+
"""
|
|
139
|
+
return self._x_request_id
|
|
140
|
+
|
|
141
|
+
@x_request_id.setter
|
|
142
|
+
def x_request_id(self, x_request_id):
|
|
143
|
+
r"""Sets the x_request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
144
|
+
|
|
145
|
+
:param x_request_id: The x_request_id of this ListInternetBandwidthFilterTagsResponse.
|
|
146
|
+
:type x_request_id: str
|
|
147
|
+
"""
|
|
148
|
+
self._x_request_id = x_request_id
|
|
149
|
+
|
|
150
|
+
def to_dict(self):
|
|
151
|
+
"""Returns the model properties as a dict"""
|
|
152
|
+
result = {}
|
|
153
|
+
|
|
154
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
155
|
+
value = getattr(self, attr)
|
|
156
|
+
if isinstance(value, list):
|
|
157
|
+
result[attr] = list(map(
|
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
159
|
+
value
|
|
160
|
+
))
|
|
161
|
+
elif hasattr(value, "to_dict"):
|
|
162
|
+
result[attr] = value.to_dict()
|
|
163
|
+
elif isinstance(value, dict):
|
|
164
|
+
result[attr] = dict(map(
|
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
|
167
|
+
value.items()
|
|
168
|
+
))
|
|
169
|
+
else:
|
|
170
|
+
if attr in self.sensitive_list:
|
|
171
|
+
result[attr] = "****"
|
|
172
|
+
else:
|
|
173
|
+
result[attr] = value
|
|
174
|
+
|
|
175
|
+
return result
|
|
176
|
+
|
|
177
|
+
def to_str(self):
|
|
178
|
+
"""Returns the string representation of the model"""
|
|
179
|
+
import simplejson as json
|
|
180
|
+
if six.PY2:
|
|
181
|
+
import sys
|
|
182
|
+
reload(sys)
|
|
183
|
+
sys.setdefaultencoding("utf-8")
|
|
184
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, ListInternetBandwidthFilterTagsResponse):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.__dict__ == other.__dict__
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
return not self == other
|