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,108 @@
|
|
|
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 AddGlobalEipTagsResponse(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
|
+
'x_request_id': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'x_request_id': 'X-Request-Id'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self, x_request_id=None):
|
|
27
|
+
r"""AddGlobalEipTagsResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
:param x_request_id:
|
|
32
|
+
:type x_request_id: str
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
super().__init__()
|
|
36
|
+
|
|
37
|
+
self._x_request_id = None
|
|
38
|
+
self.discriminator = None
|
|
39
|
+
|
|
40
|
+
if x_request_id is not None:
|
|
41
|
+
self.x_request_id = x_request_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def x_request_id(self):
|
|
45
|
+
r"""Gets the x_request_id of this AddGlobalEipTagsResponse.
|
|
46
|
+
|
|
47
|
+
:return: The x_request_id of this AddGlobalEipTagsResponse.
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._x_request_id
|
|
51
|
+
|
|
52
|
+
@x_request_id.setter
|
|
53
|
+
def x_request_id(self, x_request_id):
|
|
54
|
+
r"""Sets the x_request_id of this AddGlobalEipTagsResponse.
|
|
55
|
+
|
|
56
|
+
:param x_request_id: The x_request_id of this AddGlobalEipTagsResponse.
|
|
57
|
+
:type x_request_id: str
|
|
58
|
+
"""
|
|
59
|
+
self._x_request_id = x_request_id
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
import warnings
|
|
63
|
+
warnings.warn("AddGlobalEipTagsResponse.to_dict() is deprecated and no longer maintained, "
|
|
64
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
65
|
+
result = {}
|
|
66
|
+
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
68
|
+
value = getattr(self, attr)
|
|
69
|
+
if isinstance(value, list):
|
|
70
|
+
result[attr] = list(map(
|
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
72
|
+
value
|
|
73
|
+
))
|
|
74
|
+
elif hasattr(value, "to_dict"):
|
|
75
|
+
result[attr] = value.to_dict()
|
|
76
|
+
elif isinstance(value, dict):
|
|
77
|
+
result[attr] = dict(map(
|
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
|
80
|
+
value.items()
|
|
81
|
+
))
|
|
82
|
+
else:
|
|
83
|
+
if attr in self.sensitive_list:
|
|
84
|
+
result[attr] = "****"
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def to_str(self):
|
|
91
|
+
"""Returns the string representation of the model"""
|
|
92
|
+
import simplejson as json
|
|
93
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
|
+
|
|
95
|
+
def __repr__(self):
|
|
96
|
+
"""For `print`"""
|
|
97
|
+
return self.to_str()
|
|
98
|
+
|
|
99
|
+
def __eq__(self, other):
|
|
100
|
+
"""Returns true if both objects are equal"""
|
|
101
|
+
if not isinstance(other, AddGlobalEipTagsResponse):
|
|
102
|
+
return False
|
|
103
|
+
|
|
104
|
+
return self.__dict__ == other.__dict__
|
|
105
|
+
|
|
106
|
+
def __ne__(self, other):
|
|
107
|
+
"""Returns true if both objects are not equal"""
|
|
108
|
+
return not self == other
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AddInternetBandwidthTagsRequest:
|
|
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
|
+
'body': 'CreateV2TagRequestBody'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'resource_id': 'resource_id',
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, resource_id=None, body=None):
|
|
28
|
+
r"""AddInternetBandwidthTagsRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param resource_id:
|
|
33
|
+
:type resource_id: str
|
|
34
|
+
:param body: Body of the AddInternetBandwidthTagsRequest
|
|
35
|
+
:type body: :class:`huaweicloudsdkgeip.v3.CreateV2TagRequestBody`
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._resource_id = None
|
|
41
|
+
self._body = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.resource_id = resource_id
|
|
45
|
+
if body is not None:
|
|
46
|
+
self.body = body
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def resource_id(self):
|
|
50
|
+
r"""Gets the resource_id of this AddInternetBandwidthTagsRequest.
|
|
51
|
+
|
|
52
|
+
:return: The resource_id of this AddInternetBandwidthTagsRequest.
|
|
53
|
+
:rtype: str
|
|
54
|
+
"""
|
|
55
|
+
return self._resource_id
|
|
56
|
+
|
|
57
|
+
@resource_id.setter
|
|
58
|
+
def resource_id(self, resource_id):
|
|
59
|
+
r"""Sets the resource_id of this AddInternetBandwidthTagsRequest.
|
|
60
|
+
|
|
61
|
+
:param resource_id: The resource_id of this AddInternetBandwidthTagsRequest.
|
|
62
|
+
:type resource_id: str
|
|
63
|
+
"""
|
|
64
|
+
self._resource_id = resource_id
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def body(self):
|
|
68
|
+
r"""Gets the body of this AddInternetBandwidthTagsRequest.
|
|
69
|
+
|
|
70
|
+
:return: The body of this AddInternetBandwidthTagsRequest.
|
|
71
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.CreateV2TagRequestBody`
|
|
72
|
+
"""
|
|
73
|
+
return self._body
|
|
74
|
+
|
|
75
|
+
@body.setter
|
|
76
|
+
def body(self, body):
|
|
77
|
+
r"""Sets the body of this AddInternetBandwidthTagsRequest.
|
|
78
|
+
|
|
79
|
+
:param body: The body of this AddInternetBandwidthTagsRequest.
|
|
80
|
+
:type body: :class:`huaweicloudsdkgeip.v3.CreateV2TagRequestBody`
|
|
81
|
+
"""
|
|
82
|
+
self._body = body
|
|
83
|
+
|
|
84
|
+
def to_dict(self):
|
|
85
|
+
result = {}
|
|
86
|
+
|
|
87
|
+
for attr, _ in self.openapi_types.items():
|
|
88
|
+
value = getattr(self, attr)
|
|
89
|
+
if isinstance(value, list):
|
|
90
|
+
result[attr] = list(map(
|
|
91
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
92
|
+
value
|
|
93
|
+
))
|
|
94
|
+
elif hasattr(value, "to_dict"):
|
|
95
|
+
result[attr] = value.to_dict()
|
|
96
|
+
elif isinstance(value, dict):
|
|
97
|
+
result[attr] = dict(map(
|
|
98
|
+
lambda item: (item[0], item[1].to_dict())
|
|
99
|
+
if hasattr(item[1], "to_dict") else item,
|
|
100
|
+
value.items()
|
|
101
|
+
))
|
|
102
|
+
else:
|
|
103
|
+
if attr in self.sensitive_list:
|
|
104
|
+
result[attr] = "****"
|
|
105
|
+
else:
|
|
106
|
+
result[attr] = value
|
|
107
|
+
|
|
108
|
+
return result
|
|
109
|
+
|
|
110
|
+
def to_str(self):
|
|
111
|
+
"""Returns the string representation of the model"""
|
|
112
|
+
import simplejson as json
|
|
113
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
114
|
+
|
|
115
|
+
def __repr__(self):
|
|
116
|
+
"""For `print`"""
|
|
117
|
+
return self.to_str()
|
|
118
|
+
|
|
119
|
+
def __eq__(self, other):
|
|
120
|
+
"""Returns true if both objects are equal"""
|
|
121
|
+
if not isinstance(other, AddInternetBandwidthTagsRequest):
|
|
122
|
+
return False
|
|
123
|
+
|
|
124
|
+
return self.__dict__ == other.__dict__
|
|
125
|
+
|
|
126
|
+
def __ne__(self, other):
|
|
127
|
+
"""Returns true if both objects are not equal"""
|
|
128
|
+
return not self == other
|
|
@@ -0,0 +1,108 @@
|
|
|
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 AddInternetBandwidthTagsResponse(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
|
+
'x_request_id': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'x_request_id': 'X-Request-Id'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self, x_request_id=None):
|
|
27
|
+
r"""AddInternetBandwidthTagsResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
:param x_request_id:
|
|
32
|
+
:type x_request_id: str
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
super().__init__()
|
|
36
|
+
|
|
37
|
+
self._x_request_id = None
|
|
38
|
+
self.discriminator = None
|
|
39
|
+
|
|
40
|
+
if x_request_id is not None:
|
|
41
|
+
self.x_request_id = x_request_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def x_request_id(self):
|
|
45
|
+
r"""Gets the x_request_id of this AddInternetBandwidthTagsResponse.
|
|
46
|
+
|
|
47
|
+
:return: The x_request_id of this AddInternetBandwidthTagsResponse.
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._x_request_id
|
|
51
|
+
|
|
52
|
+
@x_request_id.setter
|
|
53
|
+
def x_request_id(self, x_request_id):
|
|
54
|
+
r"""Sets the x_request_id of this AddInternetBandwidthTagsResponse.
|
|
55
|
+
|
|
56
|
+
:param x_request_id: The x_request_id of this AddInternetBandwidthTagsResponse.
|
|
57
|
+
:type x_request_id: str
|
|
58
|
+
"""
|
|
59
|
+
self._x_request_id = x_request_id
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
import warnings
|
|
63
|
+
warnings.warn("AddInternetBandwidthTagsResponse.to_dict() is deprecated and no longer maintained, "
|
|
64
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
65
|
+
result = {}
|
|
66
|
+
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
68
|
+
value = getattr(self, attr)
|
|
69
|
+
if isinstance(value, list):
|
|
70
|
+
result[attr] = list(map(
|
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
72
|
+
value
|
|
73
|
+
))
|
|
74
|
+
elif hasattr(value, "to_dict"):
|
|
75
|
+
result[attr] = value.to_dict()
|
|
76
|
+
elif isinstance(value, dict):
|
|
77
|
+
result[attr] = dict(map(
|
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
|
80
|
+
value.items()
|
|
81
|
+
))
|
|
82
|
+
else:
|
|
83
|
+
if attr in self.sensitive_list:
|
|
84
|
+
result[attr] = "****"
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def to_str(self):
|
|
91
|
+
"""Returns the string representation of the model"""
|
|
92
|
+
import simplejson as json
|
|
93
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
|
+
|
|
95
|
+
def __repr__(self):
|
|
96
|
+
"""For `print`"""
|
|
97
|
+
return self.to_str()
|
|
98
|
+
|
|
99
|
+
def __eq__(self, other):
|
|
100
|
+
"""Returns true if both objects are equal"""
|
|
101
|
+
if not isinstance(other, AddInternetBandwidthTagsResponse):
|
|
102
|
+
return False
|
|
103
|
+
|
|
104
|
+
return self.__dict__ == other.__dict__
|
|
105
|
+
|
|
106
|
+
def __ne__(self, other):
|
|
107
|
+
"""Returns true if both objects are not equal"""
|
|
108
|
+
return not self == other
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AllowedBandwidthTypes:
|
|
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
|
+
'cn_name': 'str',
|
|
20
|
+
'en_name': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'type': 'type',
|
|
25
|
+
'cn_name': 'cn_name',
|
|
26
|
+
'en_name': 'en_name'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, type=None, cn_name=None, en_name=None):
|
|
30
|
+
r"""AllowedBandwidthTypes
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param type: 全域公网带宽类型名称
|
|
35
|
+
:type type: str
|
|
36
|
+
:param cn_name: 中文名称
|
|
37
|
+
:type cn_name: str
|
|
38
|
+
:param en_name: 英文名称
|
|
39
|
+
:type en_name: str
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._type = None
|
|
45
|
+
self._cn_name = None
|
|
46
|
+
self._en_name = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if type is not None:
|
|
50
|
+
self.type = type
|
|
51
|
+
if cn_name is not None:
|
|
52
|
+
self.cn_name = cn_name
|
|
53
|
+
if en_name is not None:
|
|
54
|
+
self.en_name = en_name
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def type(self):
|
|
58
|
+
r"""Gets the type of this AllowedBandwidthTypes.
|
|
59
|
+
|
|
60
|
+
全域公网带宽类型名称
|
|
61
|
+
|
|
62
|
+
:return: The type of this AllowedBandwidthTypes.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._type
|
|
66
|
+
|
|
67
|
+
@type.setter
|
|
68
|
+
def type(self, type):
|
|
69
|
+
r"""Sets the type of this AllowedBandwidthTypes.
|
|
70
|
+
|
|
71
|
+
全域公网带宽类型名称
|
|
72
|
+
|
|
73
|
+
:param type: The type of this AllowedBandwidthTypes.
|
|
74
|
+
:type type: str
|
|
75
|
+
"""
|
|
76
|
+
self._type = type
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def cn_name(self):
|
|
80
|
+
r"""Gets the cn_name of this AllowedBandwidthTypes.
|
|
81
|
+
|
|
82
|
+
中文名称
|
|
83
|
+
|
|
84
|
+
:return: The cn_name of this AllowedBandwidthTypes.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._cn_name
|
|
88
|
+
|
|
89
|
+
@cn_name.setter
|
|
90
|
+
def cn_name(self, cn_name):
|
|
91
|
+
r"""Sets the cn_name of this AllowedBandwidthTypes.
|
|
92
|
+
|
|
93
|
+
中文名称
|
|
94
|
+
|
|
95
|
+
:param cn_name: The cn_name of this AllowedBandwidthTypes.
|
|
96
|
+
:type cn_name: str
|
|
97
|
+
"""
|
|
98
|
+
self._cn_name = cn_name
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def en_name(self):
|
|
102
|
+
r"""Gets the en_name of this AllowedBandwidthTypes.
|
|
103
|
+
|
|
104
|
+
英文名称
|
|
105
|
+
|
|
106
|
+
:return: The en_name of this AllowedBandwidthTypes.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._en_name
|
|
110
|
+
|
|
111
|
+
@en_name.setter
|
|
112
|
+
def en_name(self, en_name):
|
|
113
|
+
r"""Sets the en_name of this AllowedBandwidthTypes.
|
|
114
|
+
|
|
115
|
+
英文名称
|
|
116
|
+
|
|
117
|
+
:param en_name: The en_name of this AllowedBandwidthTypes.
|
|
118
|
+
:type en_name: str
|
|
119
|
+
"""
|
|
120
|
+
self._en_name = en_name
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in self.openapi_types.items():
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, AllowedBandwidthTypes):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AssociateGeipSegmentInstanceRequest:
|
|
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
|
+
'global_eip_segment_id': 'str',
|
|
19
|
+
'body': 'AssociateInstanceGlobalEipSegmentRequestBody'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'global_eip_segment_id': 'global_eip_segment_id',
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, global_eip_segment_id=None, body=None):
|
|
28
|
+
r"""AssociateGeipSegmentInstanceRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param global_eip_segment_id:
|
|
33
|
+
:type global_eip_segment_id: str
|
|
34
|
+
:param body: Body of the AssociateGeipSegmentInstanceRequest
|
|
35
|
+
:type body: :class:`huaweicloudsdkgeip.v3.AssociateInstanceGlobalEipSegmentRequestBody`
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._global_eip_segment_id = None
|
|
41
|
+
self._body = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.global_eip_segment_id = global_eip_segment_id
|
|
45
|
+
if body is not None:
|
|
46
|
+
self.body = body
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def global_eip_segment_id(self):
|
|
50
|
+
r"""Gets the global_eip_segment_id of this AssociateGeipSegmentInstanceRequest.
|
|
51
|
+
|
|
52
|
+
:return: The global_eip_segment_id of this AssociateGeipSegmentInstanceRequest.
|
|
53
|
+
:rtype: str
|
|
54
|
+
"""
|
|
55
|
+
return self._global_eip_segment_id
|
|
56
|
+
|
|
57
|
+
@global_eip_segment_id.setter
|
|
58
|
+
def global_eip_segment_id(self, global_eip_segment_id):
|
|
59
|
+
r"""Sets the global_eip_segment_id of this AssociateGeipSegmentInstanceRequest.
|
|
60
|
+
|
|
61
|
+
:param global_eip_segment_id: The global_eip_segment_id of this AssociateGeipSegmentInstanceRequest.
|
|
62
|
+
:type global_eip_segment_id: str
|
|
63
|
+
"""
|
|
64
|
+
self._global_eip_segment_id = global_eip_segment_id
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def body(self):
|
|
68
|
+
r"""Gets the body of this AssociateGeipSegmentInstanceRequest.
|
|
69
|
+
|
|
70
|
+
:return: The body of this AssociateGeipSegmentInstanceRequest.
|
|
71
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.AssociateInstanceGlobalEipSegmentRequestBody`
|
|
72
|
+
"""
|
|
73
|
+
return self._body
|
|
74
|
+
|
|
75
|
+
@body.setter
|
|
76
|
+
def body(self, body):
|
|
77
|
+
r"""Sets the body of this AssociateGeipSegmentInstanceRequest.
|
|
78
|
+
|
|
79
|
+
:param body: The body of this AssociateGeipSegmentInstanceRequest.
|
|
80
|
+
:type body: :class:`huaweicloudsdkgeip.v3.AssociateInstanceGlobalEipSegmentRequestBody`
|
|
81
|
+
"""
|
|
82
|
+
self._body = body
|
|
83
|
+
|
|
84
|
+
def to_dict(self):
|
|
85
|
+
result = {}
|
|
86
|
+
|
|
87
|
+
for attr, _ in self.openapi_types.items():
|
|
88
|
+
value = getattr(self, attr)
|
|
89
|
+
if isinstance(value, list):
|
|
90
|
+
result[attr] = list(map(
|
|
91
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
92
|
+
value
|
|
93
|
+
))
|
|
94
|
+
elif hasattr(value, "to_dict"):
|
|
95
|
+
result[attr] = value.to_dict()
|
|
96
|
+
elif isinstance(value, dict):
|
|
97
|
+
result[attr] = dict(map(
|
|
98
|
+
lambda item: (item[0], item[1].to_dict())
|
|
99
|
+
if hasattr(item[1], "to_dict") else item,
|
|
100
|
+
value.items()
|
|
101
|
+
))
|
|
102
|
+
else:
|
|
103
|
+
if attr in self.sensitive_list:
|
|
104
|
+
result[attr] = "****"
|
|
105
|
+
else:
|
|
106
|
+
result[attr] = value
|
|
107
|
+
|
|
108
|
+
return result
|
|
109
|
+
|
|
110
|
+
def to_str(self):
|
|
111
|
+
"""Returns the string representation of the model"""
|
|
112
|
+
import simplejson as json
|
|
113
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
114
|
+
|
|
115
|
+
def __repr__(self):
|
|
116
|
+
"""For `print`"""
|
|
117
|
+
return self.to_str()
|
|
118
|
+
|
|
119
|
+
def __eq__(self, other):
|
|
120
|
+
"""Returns true if both objects are equal"""
|
|
121
|
+
if not isinstance(other, AssociateGeipSegmentInstanceRequest):
|
|
122
|
+
return False
|
|
123
|
+
|
|
124
|
+
return self.__dict__ == other.__dict__
|
|
125
|
+
|
|
126
|
+
def __ne__(self, other):
|
|
127
|
+
"""Returns true if both objects are not equal"""
|
|
128
|
+
return not self == other
|