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,77 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class NativeUUID:
|
|
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
|
+
}
|
|
19
|
+
|
|
20
|
+
attribute_map = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
def __init__(self):
|
|
24
|
+
r"""NativeUUID
|
|
25
|
+
|
|
26
|
+
The model defined in huaweicloud sdk
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
self.discriminator = None
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
result = {}
|
|
35
|
+
|
|
36
|
+
for attr, _ in self.openapi_types.items():
|
|
37
|
+
value = getattr(self, attr)
|
|
38
|
+
if isinstance(value, list):
|
|
39
|
+
result[attr] = list(map(
|
|
40
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
41
|
+
value
|
|
42
|
+
))
|
|
43
|
+
elif hasattr(value, "to_dict"):
|
|
44
|
+
result[attr] = value.to_dict()
|
|
45
|
+
elif isinstance(value, dict):
|
|
46
|
+
result[attr] = dict(map(
|
|
47
|
+
lambda item: (item[0], item[1].to_dict())
|
|
48
|
+
if hasattr(item[1], "to_dict") else item,
|
|
49
|
+
value.items()
|
|
50
|
+
))
|
|
51
|
+
else:
|
|
52
|
+
if attr in self.sensitive_list:
|
|
53
|
+
result[attr] = "****"
|
|
54
|
+
else:
|
|
55
|
+
result[attr] = value
|
|
56
|
+
|
|
57
|
+
return result
|
|
58
|
+
|
|
59
|
+
def to_str(self):
|
|
60
|
+
"""Returns the string representation of the model"""
|
|
61
|
+
import simplejson as json
|
|
62
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
63
|
+
|
|
64
|
+
def __repr__(self):
|
|
65
|
+
"""For `print`"""
|
|
66
|
+
return self.to_str()
|
|
67
|
+
|
|
68
|
+
def __eq__(self, other):
|
|
69
|
+
"""Returns true if both objects are equal"""
|
|
70
|
+
if not isinstance(other, NativeUUID):
|
|
71
|
+
return False
|
|
72
|
+
|
|
73
|
+
return self.__dict__ == other.__dict__
|
|
74
|
+
|
|
75
|
+
def __ne__(self, other):
|
|
76
|
+
"""Returns true if both objects are not equal"""
|
|
77
|
+
return not self == other
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ResourcesInfo:
|
|
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
|
+
'type': 'str',
|
|
19
|
+
'used': 'int',
|
|
20
|
+
'quota': 'int',
|
|
21
|
+
'min': 'int'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'type': 'type',
|
|
26
|
+
'used': 'used',
|
|
27
|
+
'quota': 'quota',
|
|
28
|
+
'min': 'min'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, type=None, used=None, quota=None, min=None):
|
|
32
|
+
r"""ResourcesInfo
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param type: 配额类型
|
|
37
|
+
:type type: str
|
|
38
|
+
:param used: 已使用配额
|
|
39
|
+
:type used: int
|
|
40
|
+
:param quota: 总配额数
|
|
41
|
+
:type quota: int
|
|
42
|
+
:param min: 最小配额值
|
|
43
|
+
:type min: int
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._type = None
|
|
49
|
+
self._used = None
|
|
50
|
+
self._quota = None
|
|
51
|
+
self._min = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if type is not None:
|
|
55
|
+
self.type = type
|
|
56
|
+
if used is not None:
|
|
57
|
+
self.used = used
|
|
58
|
+
if quota is not None:
|
|
59
|
+
self.quota = quota
|
|
60
|
+
if min is not None:
|
|
61
|
+
self.min = min
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def type(self):
|
|
65
|
+
r"""Gets the type of this ResourcesInfo.
|
|
66
|
+
|
|
67
|
+
配额类型
|
|
68
|
+
|
|
69
|
+
:return: The type of this ResourcesInfo.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._type
|
|
73
|
+
|
|
74
|
+
@type.setter
|
|
75
|
+
def type(self, type):
|
|
76
|
+
r"""Sets the type of this ResourcesInfo.
|
|
77
|
+
|
|
78
|
+
配额类型
|
|
79
|
+
|
|
80
|
+
:param type: The type of this ResourcesInfo.
|
|
81
|
+
:type type: str
|
|
82
|
+
"""
|
|
83
|
+
self._type = type
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def used(self):
|
|
87
|
+
r"""Gets the used of this ResourcesInfo.
|
|
88
|
+
|
|
89
|
+
已使用配额
|
|
90
|
+
|
|
91
|
+
:return: The used of this ResourcesInfo.
|
|
92
|
+
:rtype: int
|
|
93
|
+
"""
|
|
94
|
+
return self._used
|
|
95
|
+
|
|
96
|
+
@used.setter
|
|
97
|
+
def used(self, used):
|
|
98
|
+
r"""Sets the used of this ResourcesInfo.
|
|
99
|
+
|
|
100
|
+
已使用配额
|
|
101
|
+
|
|
102
|
+
:param used: The used of this ResourcesInfo.
|
|
103
|
+
:type used: int
|
|
104
|
+
"""
|
|
105
|
+
self._used = used
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def quota(self):
|
|
109
|
+
r"""Gets the quota of this ResourcesInfo.
|
|
110
|
+
|
|
111
|
+
总配额数
|
|
112
|
+
|
|
113
|
+
:return: The quota of this ResourcesInfo.
|
|
114
|
+
:rtype: int
|
|
115
|
+
"""
|
|
116
|
+
return self._quota
|
|
117
|
+
|
|
118
|
+
@quota.setter
|
|
119
|
+
def quota(self, quota):
|
|
120
|
+
r"""Sets the quota of this ResourcesInfo.
|
|
121
|
+
|
|
122
|
+
总配额数
|
|
123
|
+
|
|
124
|
+
:param quota: The quota of this ResourcesInfo.
|
|
125
|
+
:type quota: int
|
|
126
|
+
"""
|
|
127
|
+
self._quota = quota
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def min(self):
|
|
131
|
+
r"""Gets the min of this ResourcesInfo.
|
|
132
|
+
|
|
133
|
+
最小配额值
|
|
134
|
+
|
|
135
|
+
:return: The min of this ResourcesInfo.
|
|
136
|
+
:rtype: int
|
|
137
|
+
"""
|
|
138
|
+
return self._min
|
|
139
|
+
|
|
140
|
+
@min.setter
|
|
141
|
+
def min(self, min):
|
|
142
|
+
r"""Sets the min of this ResourcesInfo.
|
|
143
|
+
|
|
144
|
+
最小配额值
|
|
145
|
+
|
|
146
|
+
:param min: The min of this ResourcesInfo.
|
|
147
|
+
:type min: int
|
|
148
|
+
"""
|
|
149
|
+
self._min = min
|
|
150
|
+
|
|
151
|
+
def to_dict(self):
|
|
152
|
+
result = {}
|
|
153
|
+
|
|
154
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
181
|
+
|
|
182
|
+
def __repr__(self):
|
|
183
|
+
"""For `print`"""
|
|
184
|
+
return self.to_str()
|
|
185
|
+
|
|
186
|
+
def __eq__(self, other):
|
|
187
|
+
"""Returns true if both objects are equal"""
|
|
188
|
+
if not isinstance(other, ResourcesInfo):
|
|
189
|
+
return False
|
|
190
|
+
|
|
191
|
+
return self.__dict__ == other.__dict__
|
|
192
|
+
|
|
193
|
+
def __ne__(self, other):
|
|
194
|
+
"""Returns true if both objects are not equal"""
|
|
195
|
+
return not self == other
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ShortGlobalEipSegment:
|
|
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
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'id': 'id',
|
|
24
|
+
'name': 'name'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, id=None, name=None):
|
|
28
|
+
r"""ShortGlobalEipSegment
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param id: 全域弹性公网IP段的ID
|
|
33
|
+
:type id: str
|
|
34
|
+
:param name: - 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
35
|
+
:type name: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._id = None
|
|
41
|
+
self._name = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
if id is not None:
|
|
45
|
+
self.id = id
|
|
46
|
+
if name is not None:
|
|
47
|
+
self.name = name
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def id(self):
|
|
51
|
+
r"""Gets the id of this ShortGlobalEipSegment.
|
|
52
|
+
|
|
53
|
+
全域弹性公网IP段的ID
|
|
54
|
+
|
|
55
|
+
:return: The id of this ShortGlobalEipSegment.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._id
|
|
59
|
+
|
|
60
|
+
@id.setter
|
|
61
|
+
def id(self, id):
|
|
62
|
+
r"""Sets the id of this ShortGlobalEipSegment.
|
|
63
|
+
|
|
64
|
+
全域弹性公网IP段的ID
|
|
65
|
+
|
|
66
|
+
:param id: The id of this ShortGlobalEipSegment.
|
|
67
|
+
:type id: str
|
|
68
|
+
"""
|
|
69
|
+
self._id = id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def name(self):
|
|
73
|
+
r"""Gets the name of this ShortGlobalEipSegment.
|
|
74
|
+
|
|
75
|
+
- 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
76
|
+
|
|
77
|
+
:return: The name of this ShortGlobalEipSegment.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._name
|
|
81
|
+
|
|
82
|
+
@name.setter
|
|
83
|
+
def name(self, name):
|
|
84
|
+
r"""Sets the name of this ShortGlobalEipSegment.
|
|
85
|
+
|
|
86
|
+
- 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
87
|
+
|
|
88
|
+
:param name: The name of this ShortGlobalEipSegment.
|
|
89
|
+
:type name: str
|
|
90
|
+
"""
|
|
91
|
+
self._name = name
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
123
|
+
|
|
124
|
+
def __repr__(self):
|
|
125
|
+
"""For `print`"""
|
|
126
|
+
return self.to_str()
|
|
127
|
+
|
|
128
|
+
def __eq__(self, other):
|
|
129
|
+
"""Returns true if both objects are equal"""
|
|
130
|
+
if not isinstance(other, ShortGlobalEipSegment):
|
|
131
|
+
return False
|
|
132
|
+
|
|
133
|
+
return self.__dict__ == other.__dict__
|
|
134
|
+
|
|
135
|
+
def __ne__(self, other):
|
|
136
|
+
"""Returns true if both objects are not equal"""
|
|
137
|
+
return not self == other
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ShowGeipSegmentTagsRequest:
|
|
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
|
+
'resource_id': 'str'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'resource_id': 'resource_id'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, resource_id=None):
|
|
26
|
+
r"""ShowGeipSegmentTagsRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param resource_id:
|
|
31
|
+
:type resource_id: str
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._resource_id = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
self.resource_id = resource_id
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def resource_id(self):
|
|
43
|
+
r"""Gets the resource_id of this ShowGeipSegmentTagsRequest.
|
|
44
|
+
|
|
45
|
+
:return: The resource_id of this ShowGeipSegmentTagsRequest.
|
|
46
|
+
:rtype: str
|
|
47
|
+
"""
|
|
48
|
+
return self._resource_id
|
|
49
|
+
|
|
50
|
+
@resource_id.setter
|
|
51
|
+
def resource_id(self, resource_id):
|
|
52
|
+
r"""Sets the resource_id of this ShowGeipSegmentTagsRequest.
|
|
53
|
+
|
|
54
|
+
:param resource_id: The resource_id of this ShowGeipSegmentTagsRequest.
|
|
55
|
+
:type resource_id: str
|
|
56
|
+
"""
|
|
57
|
+
self._resource_id = resource_id
|
|
58
|
+
|
|
59
|
+
def to_dict(self):
|
|
60
|
+
result = {}
|
|
61
|
+
|
|
62
|
+
for attr, _ in self.openapi_types.items():
|
|
63
|
+
value = getattr(self, attr)
|
|
64
|
+
if isinstance(value, list):
|
|
65
|
+
result[attr] = list(map(
|
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
67
|
+
value
|
|
68
|
+
))
|
|
69
|
+
elif hasattr(value, "to_dict"):
|
|
70
|
+
result[attr] = value.to_dict()
|
|
71
|
+
elif isinstance(value, dict):
|
|
72
|
+
result[attr] = dict(map(
|
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
|
75
|
+
value.items()
|
|
76
|
+
))
|
|
77
|
+
else:
|
|
78
|
+
if attr in self.sensitive_list:
|
|
79
|
+
result[attr] = "****"
|
|
80
|
+
else:
|
|
81
|
+
result[attr] = value
|
|
82
|
+
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
def to_str(self):
|
|
86
|
+
"""Returns the string representation of the model"""
|
|
87
|
+
import simplejson as json
|
|
88
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
89
|
+
|
|
90
|
+
def __repr__(self):
|
|
91
|
+
"""For `print`"""
|
|
92
|
+
return self.to_str()
|
|
93
|
+
|
|
94
|
+
def __eq__(self, other):
|
|
95
|
+
"""Returns true if both objects are equal"""
|
|
96
|
+
if not isinstance(other, ShowGeipSegmentTagsRequest):
|
|
97
|
+
return False
|
|
98
|
+
|
|
99
|
+
return self.__dict__ == other.__dict__
|
|
100
|
+
|
|
101
|
+
def __ne__(self, other):
|
|
102
|
+
"""Returns true if both objects are not equal"""
|
|
103
|
+
return not self == other
|
|
@@ -0,0 +1,195 @@
|
|
|
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 ShowGeipSegmentTagsResponse(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
|
+
'tags': 'list[CreateTag]',
|
|
21
|
+
'sys_tags': 'list[SysTag]',
|
|
22
|
+
'x_request_id': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'request_id': 'request_id',
|
|
27
|
+
'tags': 'tags',
|
|
28
|
+
'sys_tags': 'sys_tags',
|
|
29
|
+
'x_request_id': 'X-Request-Id'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, request_id=None, tags=None, sys_tags=None, x_request_id=None):
|
|
33
|
+
r"""ShowGeipSegmentTagsResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param request_id: 本次请求的编号
|
|
38
|
+
:type request_id: str
|
|
39
|
+
:param tags: 单个资源的租户标签列表。
|
|
40
|
+
:type tags: list[:class:`huaweicloudsdkgeip.v3.CreateTag`]
|
|
41
|
+
:param sys_tags: 单个资源的系统标签列表。
|
|
42
|
+
:type sys_tags: list[:class:`huaweicloudsdkgeip.v3.SysTag`]
|
|
43
|
+
:param x_request_id:
|
|
44
|
+
:type x_request_id: str
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
super().__init__()
|
|
48
|
+
|
|
49
|
+
self._request_id = None
|
|
50
|
+
self._tags = None
|
|
51
|
+
self._sys_tags = 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 tags is not None:
|
|
58
|
+
self.tags = tags
|
|
59
|
+
if sys_tags is not None:
|
|
60
|
+
self.sys_tags = sys_tags
|
|
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 ShowGeipSegmentTagsResponse.
|
|
67
|
+
|
|
68
|
+
本次请求的编号
|
|
69
|
+
|
|
70
|
+
:return: The request_id of this ShowGeipSegmentTagsResponse.
|
|
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 ShowGeipSegmentTagsResponse.
|
|
78
|
+
|
|
79
|
+
本次请求的编号
|
|
80
|
+
|
|
81
|
+
:param request_id: The request_id of this ShowGeipSegmentTagsResponse.
|
|
82
|
+
:type request_id: str
|
|
83
|
+
"""
|
|
84
|
+
self._request_id = request_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def tags(self):
|
|
88
|
+
r"""Gets the tags of this ShowGeipSegmentTagsResponse.
|
|
89
|
+
|
|
90
|
+
单个资源的租户标签列表。
|
|
91
|
+
|
|
92
|
+
:return: The tags of this ShowGeipSegmentTagsResponse.
|
|
93
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.CreateTag`]
|
|
94
|
+
"""
|
|
95
|
+
return self._tags
|
|
96
|
+
|
|
97
|
+
@tags.setter
|
|
98
|
+
def tags(self, tags):
|
|
99
|
+
r"""Sets the tags of this ShowGeipSegmentTagsResponse.
|
|
100
|
+
|
|
101
|
+
单个资源的租户标签列表。
|
|
102
|
+
|
|
103
|
+
:param tags: The tags of this ShowGeipSegmentTagsResponse.
|
|
104
|
+
:type tags: list[:class:`huaweicloudsdkgeip.v3.CreateTag`]
|
|
105
|
+
"""
|
|
106
|
+
self._tags = tags
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def sys_tags(self):
|
|
110
|
+
r"""Gets the sys_tags of this ShowGeipSegmentTagsResponse.
|
|
111
|
+
|
|
112
|
+
单个资源的系统标签列表。
|
|
113
|
+
|
|
114
|
+
:return: The sys_tags of this ShowGeipSegmentTagsResponse.
|
|
115
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.SysTag`]
|
|
116
|
+
"""
|
|
117
|
+
return self._sys_tags
|
|
118
|
+
|
|
119
|
+
@sys_tags.setter
|
|
120
|
+
def sys_tags(self, sys_tags):
|
|
121
|
+
r"""Sets the sys_tags of this ShowGeipSegmentTagsResponse.
|
|
122
|
+
|
|
123
|
+
单个资源的系统标签列表。
|
|
124
|
+
|
|
125
|
+
:param sys_tags: The sys_tags of this ShowGeipSegmentTagsResponse.
|
|
126
|
+
:type sys_tags: list[:class:`huaweicloudsdkgeip.v3.SysTag`]
|
|
127
|
+
"""
|
|
128
|
+
self._sys_tags = sys_tags
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def x_request_id(self):
|
|
132
|
+
r"""Gets the x_request_id of this ShowGeipSegmentTagsResponse.
|
|
133
|
+
|
|
134
|
+
:return: The x_request_id of this ShowGeipSegmentTagsResponse.
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._x_request_id
|
|
138
|
+
|
|
139
|
+
@x_request_id.setter
|
|
140
|
+
def x_request_id(self, x_request_id):
|
|
141
|
+
r"""Sets the x_request_id of this ShowGeipSegmentTagsResponse.
|
|
142
|
+
|
|
143
|
+
:param x_request_id: The x_request_id of this ShowGeipSegmentTagsResponse.
|
|
144
|
+
:type x_request_id: str
|
|
145
|
+
"""
|
|
146
|
+
self._x_request_id = x_request_id
|
|
147
|
+
|
|
148
|
+
def to_dict(self):
|
|
149
|
+
import warnings
|
|
150
|
+
warnings.warn("ShowGeipSegmentTagsResponse.to_dict() is deprecated and no longer maintained, "
|
|
151
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
152
|
+
result = {}
|
|
153
|
+
|
|
154
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
181
|
+
|
|
182
|
+
def __repr__(self):
|
|
183
|
+
"""For `print`"""
|
|
184
|
+
return self.to_str()
|
|
185
|
+
|
|
186
|
+
def __eq__(self, other):
|
|
187
|
+
"""Returns true if both objects are equal"""
|
|
188
|
+
if not isinstance(other, ShowGeipSegmentTagsResponse):
|
|
189
|
+
return False
|
|
190
|
+
|
|
191
|
+
return self.__dict__ == other.__dict__
|
|
192
|
+
|
|
193
|
+
def __ne__(self, other):
|
|
194
|
+
"""Returns true if both objects are not equal"""
|
|
195
|
+
return not self == other
|