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,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateGlobalEipSegmentRequest:
|
|
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
|
+
'body': 'CreateGlobalEipSegmentRequestBody'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
r"""CreateGlobalEipSegmentRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the CreateGlobalEipSegmentRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBody`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._body = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if body is not None:
|
|
42
|
+
self.body = body
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def body(self):
|
|
46
|
+
r"""Gets the body of this CreateGlobalEipSegmentRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this CreateGlobalEipSegmentRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBody`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
r"""Sets the body of this CreateGlobalEipSegmentRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this CreateGlobalEipSegmentRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBody`
|
|
59
|
+
"""
|
|
60
|
+
self._body = body
|
|
61
|
+
|
|
62
|
+
def to_dict(self):
|
|
63
|
+
"""Returns the model properties as a dict"""
|
|
64
|
+
result = {}
|
|
65
|
+
|
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
67
|
+
value = getattr(self, attr)
|
|
68
|
+
if isinstance(value, list):
|
|
69
|
+
result[attr] = list(map(
|
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
71
|
+
value
|
|
72
|
+
))
|
|
73
|
+
elif hasattr(value, "to_dict"):
|
|
74
|
+
result[attr] = value.to_dict()
|
|
75
|
+
elif isinstance(value, dict):
|
|
76
|
+
result[attr] = dict(map(
|
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
|
79
|
+
value.items()
|
|
80
|
+
))
|
|
81
|
+
else:
|
|
82
|
+
if attr in self.sensitive_list:
|
|
83
|
+
result[attr] = "****"
|
|
84
|
+
else:
|
|
85
|
+
result[attr] = value
|
|
86
|
+
|
|
87
|
+
return result
|
|
88
|
+
|
|
89
|
+
def to_str(self):
|
|
90
|
+
"""Returns the string representation of the model"""
|
|
91
|
+
import simplejson as json
|
|
92
|
+
if six.PY2:
|
|
93
|
+
import sys
|
|
94
|
+
reload(sys)
|
|
95
|
+
sys.setdefaultencoding("utf-8")
|
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
97
|
+
|
|
98
|
+
def __repr__(self):
|
|
99
|
+
"""For `print`"""
|
|
100
|
+
return self.to_str()
|
|
101
|
+
|
|
102
|
+
def __eq__(self, other):
|
|
103
|
+
"""Returns true if both objects are equal"""
|
|
104
|
+
if not isinstance(other, CreateGlobalEipSegmentRequest):
|
|
105
|
+
return False
|
|
106
|
+
|
|
107
|
+
return self.__dict__ == other.__dict__
|
|
108
|
+
|
|
109
|
+
def __ne__(self, other):
|
|
110
|
+
"""Returns true if both objects are not equal"""
|
|
111
|
+
return not self == other
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateGlobalEipSegmentRequestBody:
|
|
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
|
+
'global_eip_segment': 'CreateGlobalEipSegmentRequestBodyGlobalEipSegment'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'global_eip_segment': 'global_eip_segment'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, global_eip_segment=None):
|
|
28
|
+
r"""CreateGlobalEipSegmentRequestBody
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param global_eip_segment:
|
|
33
|
+
:type global_eip_segment: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBodyGlobalEipSegment`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._global_eip_segment = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.global_eip_segment = global_eip_segment
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def global_eip_segment(self):
|
|
45
|
+
r"""Gets the global_eip_segment of this CreateGlobalEipSegmentRequestBody.
|
|
46
|
+
|
|
47
|
+
:return: The global_eip_segment of this CreateGlobalEipSegmentRequestBody.
|
|
48
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBodyGlobalEipSegment`
|
|
49
|
+
"""
|
|
50
|
+
return self._global_eip_segment
|
|
51
|
+
|
|
52
|
+
@global_eip_segment.setter
|
|
53
|
+
def global_eip_segment(self, global_eip_segment):
|
|
54
|
+
r"""Sets the global_eip_segment of this CreateGlobalEipSegmentRequestBody.
|
|
55
|
+
|
|
56
|
+
:param global_eip_segment: The global_eip_segment of this CreateGlobalEipSegmentRequestBody.
|
|
57
|
+
:type global_eip_segment: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBodyGlobalEipSegment`
|
|
58
|
+
"""
|
|
59
|
+
self._global_eip_segment = global_eip_segment
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
"""Returns the model properties as a dict"""
|
|
63
|
+
result = {}
|
|
64
|
+
|
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
66
|
+
value = getattr(self, attr)
|
|
67
|
+
if isinstance(value, list):
|
|
68
|
+
result[attr] = list(map(
|
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
70
|
+
value
|
|
71
|
+
))
|
|
72
|
+
elif hasattr(value, "to_dict"):
|
|
73
|
+
result[attr] = value.to_dict()
|
|
74
|
+
elif isinstance(value, dict):
|
|
75
|
+
result[attr] = dict(map(
|
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
|
78
|
+
value.items()
|
|
79
|
+
))
|
|
80
|
+
else:
|
|
81
|
+
if attr in self.sensitive_list:
|
|
82
|
+
result[attr] = "****"
|
|
83
|
+
else:
|
|
84
|
+
result[attr] = value
|
|
85
|
+
|
|
86
|
+
return result
|
|
87
|
+
|
|
88
|
+
def to_str(self):
|
|
89
|
+
"""Returns the string representation of the model"""
|
|
90
|
+
import simplejson as json
|
|
91
|
+
if six.PY2:
|
|
92
|
+
import sys
|
|
93
|
+
reload(sys)
|
|
94
|
+
sys.setdefaultencoding("utf-8")
|
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
96
|
+
|
|
97
|
+
def __repr__(self):
|
|
98
|
+
"""For `print`"""
|
|
99
|
+
return self.to_str()
|
|
100
|
+
|
|
101
|
+
def __eq__(self, other):
|
|
102
|
+
"""Returns true if both objects are equal"""
|
|
103
|
+
if not isinstance(other, CreateGlobalEipSegmentRequestBody):
|
|
104
|
+
return False
|
|
105
|
+
|
|
106
|
+
return self.__dict__ == other.__dict__
|
|
107
|
+
|
|
108
|
+
def __ne__(self, other):
|
|
109
|
+
"""Returns true if both objects are not equal"""
|
|
110
|
+
return not self == other
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateGlobalEipSegmentRequestBodyGlobalEipSegment:
|
|
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
|
+
'name': 'str',
|
|
21
|
+
'description': 'str',
|
|
22
|
+
'geip_pool_name': 'str',
|
|
23
|
+
'access_site': 'str',
|
|
24
|
+
'mask': 'int',
|
|
25
|
+
'internet_bandwidth': 'CreateGlobalEipSegmentRequestBodyGlobalEipSegmentInternetBandwidth',
|
|
26
|
+
'tags': 'list[CreateGlobalEipRequestBodyGlobalEipTags]',
|
|
27
|
+
'enterprise_project_id': 'str'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'name': 'name',
|
|
32
|
+
'description': 'description',
|
|
33
|
+
'geip_pool_name': 'geip_pool_name',
|
|
34
|
+
'access_site': 'access_site',
|
|
35
|
+
'mask': 'mask',
|
|
36
|
+
'internet_bandwidth': 'internet_bandwidth',
|
|
37
|
+
'tags': 'tags',
|
|
38
|
+
'enterprise_project_id': 'enterprise_project_id'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, name=None, description=None, geip_pool_name=None, access_site=None, mask=None, internet_bandwidth=None, tags=None, enterprise_project_id=None):
|
|
42
|
+
r"""CreateGlobalEipSegmentRequestBodyGlobalEipSegment
|
|
43
|
+
|
|
44
|
+
The model defined in huaweicloud sdk
|
|
45
|
+
|
|
46
|
+
:param name: - 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
47
|
+
:type name: str
|
|
48
|
+
:param description: - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
|
|
49
|
+
:type description: str
|
|
50
|
+
:param geip_pool_name: 全域弹性公网IP池子名称
|
|
51
|
+
:type geip_pool_name: str
|
|
52
|
+
:param access_site: 接入点信息
|
|
53
|
+
:type access_site: str
|
|
54
|
+
:param mask: 掩码长度。取值范围由GET /v3/{domain_id}/global-eip-segments/support-masks接口提供
|
|
55
|
+
:type mask: int
|
|
56
|
+
:param internet_bandwidth:
|
|
57
|
+
:type internet_bandwidth: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBodyGlobalEipSegmentInternetBandwidth`
|
|
58
|
+
:param tags: 全域弹性公网IP段标签
|
|
59
|
+
:type tags: list[:class:`huaweicloudsdkgeip.v3.CreateGlobalEipRequestBodyGlobalEipTags`]
|
|
60
|
+
:param enterprise_project_id: - 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
|
|
61
|
+
:type enterprise_project_id: str
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
self._name = None
|
|
67
|
+
self._description = None
|
|
68
|
+
self._geip_pool_name = None
|
|
69
|
+
self._access_site = None
|
|
70
|
+
self._mask = None
|
|
71
|
+
self._internet_bandwidth = None
|
|
72
|
+
self._tags = None
|
|
73
|
+
self._enterprise_project_id = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
if name is not None:
|
|
77
|
+
self.name = name
|
|
78
|
+
if description is not None:
|
|
79
|
+
self.description = description
|
|
80
|
+
self.geip_pool_name = geip_pool_name
|
|
81
|
+
self.access_site = access_site
|
|
82
|
+
self.mask = mask
|
|
83
|
+
if internet_bandwidth is not None:
|
|
84
|
+
self.internet_bandwidth = internet_bandwidth
|
|
85
|
+
if tags is not None:
|
|
86
|
+
self.tags = tags
|
|
87
|
+
if enterprise_project_id is not None:
|
|
88
|
+
self.enterprise_project_id = enterprise_project_id
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def name(self):
|
|
92
|
+
r"""Gets the name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
93
|
+
|
|
94
|
+
- 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
95
|
+
|
|
96
|
+
:return: The name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
97
|
+
:rtype: str
|
|
98
|
+
"""
|
|
99
|
+
return self._name
|
|
100
|
+
|
|
101
|
+
@name.setter
|
|
102
|
+
def name(self, name):
|
|
103
|
+
r"""Sets the name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
104
|
+
|
|
105
|
+
- 功能说明:全域弹性公网IP段名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
106
|
+
|
|
107
|
+
:param name: The name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
108
|
+
:type name: str
|
|
109
|
+
"""
|
|
110
|
+
self._name = name
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def description(self):
|
|
114
|
+
r"""Gets the description of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
115
|
+
|
|
116
|
+
- 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
|
|
117
|
+
|
|
118
|
+
:return: The description of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._description
|
|
122
|
+
|
|
123
|
+
@description.setter
|
|
124
|
+
def description(self, description):
|
|
125
|
+
r"""Sets the description of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
126
|
+
|
|
127
|
+
- 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
|
|
128
|
+
|
|
129
|
+
:param description: The description of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
130
|
+
:type description: str
|
|
131
|
+
"""
|
|
132
|
+
self._description = description
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def geip_pool_name(self):
|
|
136
|
+
r"""Gets the geip_pool_name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
137
|
+
|
|
138
|
+
全域弹性公网IP池子名称
|
|
139
|
+
|
|
140
|
+
:return: The geip_pool_name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._geip_pool_name
|
|
144
|
+
|
|
145
|
+
@geip_pool_name.setter
|
|
146
|
+
def geip_pool_name(self, geip_pool_name):
|
|
147
|
+
r"""Sets the geip_pool_name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
148
|
+
|
|
149
|
+
全域弹性公网IP池子名称
|
|
150
|
+
|
|
151
|
+
:param geip_pool_name: The geip_pool_name of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
152
|
+
:type geip_pool_name: str
|
|
153
|
+
"""
|
|
154
|
+
self._geip_pool_name = geip_pool_name
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def access_site(self):
|
|
158
|
+
r"""Gets the access_site of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
159
|
+
|
|
160
|
+
接入点信息
|
|
161
|
+
|
|
162
|
+
:return: The access_site of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
163
|
+
:rtype: str
|
|
164
|
+
"""
|
|
165
|
+
return self._access_site
|
|
166
|
+
|
|
167
|
+
@access_site.setter
|
|
168
|
+
def access_site(self, access_site):
|
|
169
|
+
r"""Sets the access_site of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
170
|
+
|
|
171
|
+
接入点信息
|
|
172
|
+
|
|
173
|
+
:param access_site: The access_site of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
174
|
+
:type access_site: str
|
|
175
|
+
"""
|
|
176
|
+
self._access_site = access_site
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
def mask(self):
|
|
180
|
+
r"""Gets the mask of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
181
|
+
|
|
182
|
+
掩码长度。取值范围由GET /v3/{domain_id}/global-eip-segments/support-masks接口提供
|
|
183
|
+
|
|
184
|
+
:return: The mask of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
185
|
+
:rtype: int
|
|
186
|
+
"""
|
|
187
|
+
return self._mask
|
|
188
|
+
|
|
189
|
+
@mask.setter
|
|
190
|
+
def mask(self, mask):
|
|
191
|
+
r"""Sets the mask of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
192
|
+
|
|
193
|
+
掩码长度。取值范围由GET /v3/{domain_id}/global-eip-segments/support-masks接口提供
|
|
194
|
+
|
|
195
|
+
:param mask: The mask of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
196
|
+
:type mask: int
|
|
197
|
+
"""
|
|
198
|
+
self._mask = mask
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def internet_bandwidth(self):
|
|
202
|
+
r"""Gets the internet_bandwidth of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
203
|
+
|
|
204
|
+
:return: The internet_bandwidth of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
205
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBodyGlobalEipSegmentInternetBandwidth`
|
|
206
|
+
"""
|
|
207
|
+
return self._internet_bandwidth
|
|
208
|
+
|
|
209
|
+
@internet_bandwidth.setter
|
|
210
|
+
def internet_bandwidth(self, internet_bandwidth):
|
|
211
|
+
r"""Sets the internet_bandwidth of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
212
|
+
|
|
213
|
+
:param internet_bandwidth: The internet_bandwidth of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
214
|
+
:type internet_bandwidth: :class:`huaweicloudsdkgeip.v3.CreateGlobalEipSegmentRequestBodyGlobalEipSegmentInternetBandwidth`
|
|
215
|
+
"""
|
|
216
|
+
self._internet_bandwidth = internet_bandwidth
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def tags(self):
|
|
220
|
+
r"""Gets the tags of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
221
|
+
|
|
222
|
+
全域弹性公网IP段标签
|
|
223
|
+
|
|
224
|
+
:return: The tags of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
225
|
+
:rtype: list[:class:`huaweicloudsdkgeip.v3.CreateGlobalEipRequestBodyGlobalEipTags`]
|
|
226
|
+
"""
|
|
227
|
+
return self._tags
|
|
228
|
+
|
|
229
|
+
@tags.setter
|
|
230
|
+
def tags(self, tags):
|
|
231
|
+
r"""Sets the tags of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
232
|
+
|
|
233
|
+
全域弹性公网IP段标签
|
|
234
|
+
|
|
235
|
+
:param tags: The tags of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
236
|
+
:type tags: list[:class:`huaweicloudsdkgeip.v3.CreateGlobalEipRequestBodyGlobalEipTags`]
|
|
237
|
+
"""
|
|
238
|
+
self._tags = tags
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def enterprise_project_id(self):
|
|
242
|
+
r"""Gets the enterprise_project_id of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
243
|
+
|
|
244
|
+
- 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
|
|
245
|
+
|
|
246
|
+
:return: The enterprise_project_id of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
247
|
+
:rtype: str
|
|
248
|
+
"""
|
|
249
|
+
return self._enterprise_project_id
|
|
250
|
+
|
|
251
|
+
@enterprise_project_id.setter
|
|
252
|
+
def enterprise_project_id(self, enterprise_project_id):
|
|
253
|
+
r"""Sets the enterprise_project_id of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
254
|
+
|
|
255
|
+
- 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
|
|
256
|
+
|
|
257
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
258
|
+
:type enterprise_project_id: str
|
|
259
|
+
"""
|
|
260
|
+
self._enterprise_project_id = enterprise_project_id
|
|
261
|
+
|
|
262
|
+
def to_dict(self):
|
|
263
|
+
"""Returns the model properties as a dict"""
|
|
264
|
+
result = {}
|
|
265
|
+
|
|
266
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
267
|
+
value = getattr(self, attr)
|
|
268
|
+
if isinstance(value, list):
|
|
269
|
+
result[attr] = list(map(
|
|
270
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
271
|
+
value
|
|
272
|
+
))
|
|
273
|
+
elif hasattr(value, "to_dict"):
|
|
274
|
+
result[attr] = value.to_dict()
|
|
275
|
+
elif isinstance(value, dict):
|
|
276
|
+
result[attr] = dict(map(
|
|
277
|
+
lambda item: (item[0], item[1].to_dict())
|
|
278
|
+
if hasattr(item[1], "to_dict") else item,
|
|
279
|
+
value.items()
|
|
280
|
+
))
|
|
281
|
+
else:
|
|
282
|
+
if attr in self.sensitive_list:
|
|
283
|
+
result[attr] = "****"
|
|
284
|
+
else:
|
|
285
|
+
result[attr] = value
|
|
286
|
+
|
|
287
|
+
return result
|
|
288
|
+
|
|
289
|
+
def to_str(self):
|
|
290
|
+
"""Returns the string representation of the model"""
|
|
291
|
+
import simplejson as json
|
|
292
|
+
if six.PY2:
|
|
293
|
+
import sys
|
|
294
|
+
reload(sys)
|
|
295
|
+
sys.setdefaultencoding("utf-8")
|
|
296
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
297
|
+
|
|
298
|
+
def __repr__(self):
|
|
299
|
+
"""For `print`"""
|
|
300
|
+
return self.to_str()
|
|
301
|
+
|
|
302
|
+
def __eq__(self, other):
|
|
303
|
+
"""Returns true if both objects are equal"""
|
|
304
|
+
if not isinstance(other, CreateGlobalEipSegmentRequestBodyGlobalEipSegment):
|
|
305
|
+
return False
|
|
306
|
+
|
|
307
|
+
return self.__dict__ == other.__dict__
|
|
308
|
+
|
|
309
|
+
def __ne__(self, other):
|
|
310
|
+
"""Returns true if both objects are not equal"""
|
|
311
|
+
return not self == other
|