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
huaweicloudsdkgeip/v3/model/associate_instance_global_eip_segment_request_body_global_eip_segment.py
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment:
|
|
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
|
+
'region': 'str',
|
|
19
|
+
'instance_type': 'str',
|
|
20
|
+
'instance_id': 'str',
|
|
21
|
+
'project_id': 'str',
|
|
22
|
+
'service_id': 'str',
|
|
23
|
+
'service_type': 'str'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'region': 'region',
|
|
28
|
+
'instance_type': 'instance_type',
|
|
29
|
+
'instance_id': 'instance_id',
|
|
30
|
+
'project_id': 'project_id',
|
|
31
|
+
'service_id': 'service_id',
|
|
32
|
+
'service_type': 'service_type'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, region=None, instance_type=None, instance_id=None, project_id=None, service_id=None, service_type=None):
|
|
36
|
+
r"""AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param region: region
|
|
41
|
+
:type region: str
|
|
42
|
+
:param instance_type: 支持绑定的实例类型
|
|
43
|
+
:type instance_type: str
|
|
44
|
+
:param instance_id: 实例ID
|
|
45
|
+
:type instance_id: str
|
|
46
|
+
:param project_id: 项目ID,获取项目ID请参见[获取项目ID](https://support.huaweicloud.com/api-vpc/vpc_api_0011.html)
|
|
47
|
+
:type project_id: str
|
|
48
|
+
:param service_id: 服务id
|
|
49
|
+
:type service_id: str
|
|
50
|
+
:param service_type: 服务类型
|
|
51
|
+
:type service_type: str
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
self._region = None
|
|
57
|
+
self._instance_type = None
|
|
58
|
+
self._instance_id = None
|
|
59
|
+
self._project_id = None
|
|
60
|
+
self._service_id = None
|
|
61
|
+
self._service_type = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.region = region
|
|
65
|
+
self.instance_type = instance_type
|
|
66
|
+
self.instance_id = instance_id
|
|
67
|
+
self.project_id = project_id
|
|
68
|
+
if service_id is not None:
|
|
69
|
+
self.service_id = service_id
|
|
70
|
+
if service_type is not None:
|
|
71
|
+
self.service_type = service_type
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def region(self):
|
|
75
|
+
r"""Gets the region of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
76
|
+
|
|
77
|
+
region
|
|
78
|
+
|
|
79
|
+
:return: The region of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._region
|
|
83
|
+
|
|
84
|
+
@region.setter
|
|
85
|
+
def region(self, region):
|
|
86
|
+
r"""Sets the region of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
87
|
+
|
|
88
|
+
region
|
|
89
|
+
|
|
90
|
+
:param region: The region of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
91
|
+
:type region: str
|
|
92
|
+
"""
|
|
93
|
+
self._region = region
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def instance_type(self):
|
|
97
|
+
r"""Gets the instance_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
98
|
+
|
|
99
|
+
支持绑定的实例类型
|
|
100
|
+
|
|
101
|
+
:return: The instance_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._instance_type
|
|
105
|
+
|
|
106
|
+
@instance_type.setter
|
|
107
|
+
def instance_type(self, instance_type):
|
|
108
|
+
r"""Sets the instance_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
109
|
+
|
|
110
|
+
支持绑定的实例类型
|
|
111
|
+
|
|
112
|
+
:param instance_type: The instance_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
113
|
+
:type instance_type: str
|
|
114
|
+
"""
|
|
115
|
+
self._instance_type = instance_type
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def instance_id(self):
|
|
119
|
+
r"""Gets the instance_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
120
|
+
|
|
121
|
+
实例ID
|
|
122
|
+
|
|
123
|
+
:return: The instance_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
124
|
+
:rtype: str
|
|
125
|
+
"""
|
|
126
|
+
return self._instance_id
|
|
127
|
+
|
|
128
|
+
@instance_id.setter
|
|
129
|
+
def instance_id(self, instance_id):
|
|
130
|
+
r"""Sets the instance_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
131
|
+
|
|
132
|
+
实例ID
|
|
133
|
+
|
|
134
|
+
:param instance_id: The instance_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
135
|
+
:type instance_id: str
|
|
136
|
+
"""
|
|
137
|
+
self._instance_id = instance_id
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def project_id(self):
|
|
141
|
+
r"""Gets the project_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
142
|
+
|
|
143
|
+
项目ID,获取项目ID请参见[获取项目ID](https://support.huaweicloud.com/api-vpc/vpc_api_0011.html)
|
|
144
|
+
|
|
145
|
+
:return: The project_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
146
|
+
:rtype: str
|
|
147
|
+
"""
|
|
148
|
+
return self._project_id
|
|
149
|
+
|
|
150
|
+
@project_id.setter
|
|
151
|
+
def project_id(self, project_id):
|
|
152
|
+
r"""Sets the project_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
153
|
+
|
|
154
|
+
项目ID,获取项目ID请参见[获取项目ID](https://support.huaweicloud.com/api-vpc/vpc_api_0011.html)
|
|
155
|
+
|
|
156
|
+
:param project_id: The project_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
157
|
+
:type project_id: str
|
|
158
|
+
"""
|
|
159
|
+
self._project_id = project_id
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def service_id(self):
|
|
163
|
+
r"""Gets the service_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
164
|
+
|
|
165
|
+
服务id
|
|
166
|
+
|
|
167
|
+
:return: The service_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._service_id
|
|
171
|
+
|
|
172
|
+
@service_id.setter
|
|
173
|
+
def service_id(self, service_id):
|
|
174
|
+
r"""Sets the service_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
175
|
+
|
|
176
|
+
服务id
|
|
177
|
+
|
|
178
|
+
:param service_id: The service_id of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
179
|
+
:type service_id: str
|
|
180
|
+
"""
|
|
181
|
+
self._service_id = service_id
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def service_type(self):
|
|
185
|
+
r"""Gets the service_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
186
|
+
|
|
187
|
+
服务类型
|
|
188
|
+
|
|
189
|
+
:return: The service_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
190
|
+
:rtype: str
|
|
191
|
+
"""
|
|
192
|
+
return self._service_type
|
|
193
|
+
|
|
194
|
+
@service_type.setter
|
|
195
|
+
def service_type(self, service_type):
|
|
196
|
+
r"""Sets the service_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
197
|
+
|
|
198
|
+
服务类型
|
|
199
|
+
|
|
200
|
+
:param service_type: The service_type of this AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment.
|
|
201
|
+
:type service_type: str
|
|
202
|
+
"""
|
|
203
|
+
self._service_type = service_type
|
|
204
|
+
|
|
205
|
+
def to_dict(self):
|
|
206
|
+
result = {}
|
|
207
|
+
|
|
208
|
+
for attr, _ in self.openapi_types.items():
|
|
209
|
+
value = getattr(self, attr)
|
|
210
|
+
if isinstance(value, list):
|
|
211
|
+
result[attr] = list(map(
|
|
212
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
213
|
+
value
|
|
214
|
+
))
|
|
215
|
+
elif hasattr(value, "to_dict"):
|
|
216
|
+
result[attr] = value.to_dict()
|
|
217
|
+
elif isinstance(value, dict):
|
|
218
|
+
result[attr] = dict(map(
|
|
219
|
+
lambda item: (item[0], item[1].to_dict())
|
|
220
|
+
if hasattr(item[1], "to_dict") else item,
|
|
221
|
+
value.items()
|
|
222
|
+
))
|
|
223
|
+
else:
|
|
224
|
+
if attr in self.sensitive_list:
|
|
225
|
+
result[attr] = "****"
|
|
226
|
+
else:
|
|
227
|
+
result[attr] = value
|
|
228
|
+
|
|
229
|
+
return result
|
|
230
|
+
|
|
231
|
+
def to_str(self):
|
|
232
|
+
"""Returns the string representation of the model"""
|
|
233
|
+
import simplejson as json
|
|
234
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
235
|
+
|
|
236
|
+
def __repr__(self):
|
|
237
|
+
"""For `print`"""
|
|
238
|
+
return self.to_str()
|
|
239
|
+
|
|
240
|
+
def __eq__(self, other):
|
|
241
|
+
"""Returns true if both objects are equal"""
|
|
242
|
+
if not isinstance(other, AssociateInstanceGlobalEipSegmentRequestBodyGlobalEipSegment):
|
|
243
|
+
return False
|
|
244
|
+
|
|
245
|
+
return self.__dict__ == other.__dict__
|
|
246
|
+
|
|
247
|
+
def __ne__(self, other):
|
|
248
|
+
"""Returns true if both objects are not equal"""
|
|
249
|
+
return not self == other
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AssociateInstanceRequest:
|
|
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
|
+
'binding_instance_service': 'str',
|
|
19
|
+
'global_eip_id': 'str',
|
|
20
|
+
'body': 'AssociateInstanceGlobalEipRequestBody'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'binding_instance_service': 'binding-instance-service',
|
|
25
|
+
'global_eip_id': 'global_eip_id',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, binding_instance_service=None, global_eip_id=None, body=None):
|
|
30
|
+
r"""AssociateInstanceRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param binding_instance_service: 绑定接口可以加,标识请求是从哪个服务调过来的
|
|
35
|
+
:type binding_instance_service: str
|
|
36
|
+
:param global_eip_id:
|
|
37
|
+
:type global_eip_id: str
|
|
38
|
+
:param body: Body of the AssociateInstanceRequest
|
|
39
|
+
:type body: :class:`huaweicloudsdkgeip.v3.AssociateInstanceGlobalEipRequestBody`
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._binding_instance_service = None
|
|
45
|
+
self._global_eip_id = None
|
|
46
|
+
self._body = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if binding_instance_service is not None:
|
|
50
|
+
self.binding_instance_service = binding_instance_service
|
|
51
|
+
self.global_eip_id = global_eip_id
|
|
52
|
+
if body is not None:
|
|
53
|
+
self.body = body
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def binding_instance_service(self):
|
|
57
|
+
r"""Gets the binding_instance_service of this AssociateInstanceRequest.
|
|
58
|
+
|
|
59
|
+
绑定接口可以加,标识请求是从哪个服务调过来的
|
|
60
|
+
|
|
61
|
+
:return: The binding_instance_service of this AssociateInstanceRequest.
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._binding_instance_service
|
|
65
|
+
|
|
66
|
+
@binding_instance_service.setter
|
|
67
|
+
def binding_instance_service(self, binding_instance_service):
|
|
68
|
+
r"""Sets the binding_instance_service of this AssociateInstanceRequest.
|
|
69
|
+
|
|
70
|
+
绑定接口可以加,标识请求是从哪个服务调过来的
|
|
71
|
+
|
|
72
|
+
:param binding_instance_service: The binding_instance_service of this AssociateInstanceRequest.
|
|
73
|
+
:type binding_instance_service: str
|
|
74
|
+
"""
|
|
75
|
+
self._binding_instance_service = binding_instance_service
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def global_eip_id(self):
|
|
79
|
+
r"""Gets the global_eip_id of this AssociateInstanceRequest.
|
|
80
|
+
|
|
81
|
+
:return: The global_eip_id of this AssociateInstanceRequest.
|
|
82
|
+
:rtype: str
|
|
83
|
+
"""
|
|
84
|
+
return self._global_eip_id
|
|
85
|
+
|
|
86
|
+
@global_eip_id.setter
|
|
87
|
+
def global_eip_id(self, global_eip_id):
|
|
88
|
+
r"""Sets the global_eip_id of this AssociateInstanceRequest.
|
|
89
|
+
|
|
90
|
+
:param global_eip_id: The global_eip_id of this AssociateInstanceRequest.
|
|
91
|
+
:type global_eip_id: str
|
|
92
|
+
"""
|
|
93
|
+
self._global_eip_id = global_eip_id
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def body(self):
|
|
97
|
+
r"""Gets the body of this AssociateInstanceRequest.
|
|
98
|
+
|
|
99
|
+
:return: The body of this AssociateInstanceRequest.
|
|
100
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.AssociateInstanceGlobalEipRequestBody`
|
|
101
|
+
"""
|
|
102
|
+
return self._body
|
|
103
|
+
|
|
104
|
+
@body.setter
|
|
105
|
+
def body(self, body):
|
|
106
|
+
r"""Sets the body of this AssociateInstanceRequest.
|
|
107
|
+
|
|
108
|
+
:param body: The body of this AssociateInstanceRequest.
|
|
109
|
+
:type body: :class:`huaweicloudsdkgeip.v3.AssociateInstanceGlobalEipRequestBody`
|
|
110
|
+
"""
|
|
111
|
+
self._body = body
|
|
112
|
+
|
|
113
|
+
def to_dict(self):
|
|
114
|
+
result = {}
|
|
115
|
+
|
|
116
|
+
for attr, _ in self.openapi_types.items():
|
|
117
|
+
value = getattr(self, attr)
|
|
118
|
+
if isinstance(value, list):
|
|
119
|
+
result[attr] = list(map(
|
|
120
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
121
|
+
value
|
|
122
|
+
))
|
|
123
|
+
elif hasattr(value, "to_dict"):
|
|
124
|
+
result[attr] = value.to_dict()
|
|
125
|
+
elif isinstance(value, dict):
|
|
126
|
+
result[attr] = dict(map(
|
|
127
|
+
lambda item: (item[0], item[1].to_dict())
|
|
128
|
+
if hasattr(item[1], "to_dict") else item,
|
|
129
|
+
value.items()
|
|
130
|
+
))
|
|
131
|
+
else:
|
|
132
|
+
if attr in self.sensitive_list:
|
|
133
|
+
result[attr] = "****"
|
|
134
|
+
else:
|
|
135
|
+
result[attr] = value
|
|
136
|
+
|
|
137
|
+
return result
|
|
138
|
+
|
|
139
|
+
def to_str(self):
|
|
140
|
+
"""Returns the string representation of the model"""
|
|
141
|
+
import simplejson as json
|
|
142
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
143
|
+
|
|
144
|
+
def __repr__(self):
|
|
145
|
+
"""For `print`"""
|
|
146
|
+
return self.to_str()
|
|
147
|
+
|
|
148
|
+
def __eq__(self, other):
|
|
149
|
+
"""Returns true if both objects are equal"""
|
|
150
|
+
if not isinstance(other, AssociateInstanceRequest):
|
|
151
|
+
return False
|
|
152
|
+
|
|
153
|
+
return self.__dict__ == other.__dict__
|
|
154
|
+
|
|
155
|
+
def __ne__(self, other):
|
|
156
|
+
"""Returns true if both objects are not equal"""
|
|
157
|
+
return not self == other
|
|
@@ -0,0 +1,162 @@
|
|
|
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 AssociateInstanceResponse(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
|
+
'global_eip': 'UpdateGlobalEip',
|
|
20
|
+
'job_id': 'str',
|
|
21
|
+
'x_request_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'global_eip': 'global_eip',
|
|
26
|
+
'job_id': 'job_id',
|
|
27
|
+
'x_request_id': 'X-Request-Id'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, global_eip=None, job_id=None, x_request_id=None):
|
|
31
|
+
r"""AssociateInstanceResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param global_eip:
|
|
36
|
+
:type global_eip: :class:`huaweicloudsdkgeip.v3.UpdateGlobalEip`
|
|
37
|
+
:param job_id: 本次请求的job id
|
|
38
|
+
:type job_id: str
|
|
39
|
+
:param x_request_id:
|
|
40
|
+
:type x_request_id: str
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
super().__init__()
|
|
44
|
+
|
|
45
|
+
self._global_eip = None
|
|
46
|
+
self._job_id = None
|
|
47
|
+
self._x_request_id = None
|
|
48
|
+
self.discriminator = None
|
|
49
|
+
|
|
50
|
+
if global_eip is not None:
|
|
51
|
+
self.global_eip = global_eip
|
|
52
|
+
if job_id is not None:
|
|
53
|
+
self.job_id = job_id
|
|
54
|
+
if x_request_id is not None:
|
|
55
|
+
self.x_request_id = x_request_id
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def global_eip(self):
|
|
59
|
+
r"""Gets the global_eip of this AssociateInstanceResponse.
|
|
60
|
+
|
|
61
|
+
:return: The global_eip of this AssociateInstanceResponse.
|
|
62
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.UpdateGlobalEip`
|
|
63
|
+
"""
|
|
64
|
+
return self._global_eip
|
|
65
|
+
|
|
66
|
+
@global_eip.setter
|
|
67
|
+
def global_eip(self, global_eip):
|
|
68
|
+
r"""Sets the global_eip of this AssociateInstanceResponse.
|
|
69
|
+
|
|
70
|
+
:param global_eip: The global_eip of this AssociateInstanceResponse.
|
|
71
|
+
:type global_eip: :class:`huaweicloudsdkgeip.v3.UpdateGlobalEip`
|
|
72
|
+
"""
|
|
73
|
+
self._global_eip = global_eip
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def job_id(self):
|
|
77
|
+
r"""Gets the job_id of this AssociateInstanceResponse.
|
|
78
|
+
|
|
79
|
+
本次请求的job id
|
|
80
|
+
|
|
81
|
+
:return: The job_id of this AssociateInstanceResponse.
|
|
82
|
+
:rtype: str
|
|
83
|
+
"""
|
|
84
|
+
return self._job_id
|
|
85
|
+
|
|
86
|
+
@job_id.setter
|
|
87
|
+
def job_id(self, job_id):
|
|
88
|
+
r"""Sets the job_id of this AssociateInstanceResponse.
|
|
89
|
+
|
|
90
|
+
本次请求的job id
|
|
91
|
+
|
|
92
|
+
:param job_id: The job_id of this AssociateInstanceResponse.
|
|
93
|
+
:type job_id: str
|
|
94
|
+
"""
|
|
95
|
+
self._job_id = job_id
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def x_request_id(self):
|
|
99
|
+
r"""Gets the x_request_id of this AssociateInstanceResponse.
|
|
100
|
+
|
|
101
|
+
:return: The x_request_id of this AssociateInstanceResponse.
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._x_request_id
|
|
105
|
+
|
|
106
|
+
@x_request_id.setter
|
|
107
|
+
def x_request_id(self, x_request_id):
|
|
108
|
+
r"""Sets the x_request_id of this AssociateInstanceResponse.
|
|
109
|
+
|
|
110
|
+
:param x_request_id: The x_request_id of this AssociateInstanceResponse.
|
|
111
|
+
:type x_request_id: str
|
|
112
|
+
"""
|
|
113
|
+
self._x_request_id = x_request_id
|
|
114
|
+
|
|
115
|
+
def to_dict(self):
|
|
116
|
+
import warnings
|
|
117
|
+
warnings.warn("AssociateInstanceResponse.to_dict() is deprecated and no longer maintained, "
|
|
118
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
119
|
+
result = {}
|
|
120
|
+
|
|
121
|
+
for attr, _ in self.openapi_types.items():
|
|
122
|
+
value = getattr(self, attr)
|
|
123
|
+
if isinstance(value, list):
|
|
124
|
+
result[attr] = list(map(
|
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
126
|
+
value
|
|
127
|
+
))
|
|
128
|
+
elif hasattr(value, "to_dict"):
|
|
129
|
+
result[attr] = value.to_dict()
|
|
130
|
+
elif isinstance(value, dict):
|
|
131
|
+
result[attr] = dict(map(
|
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
|
134
|
+
value.items()
|
|
135
|
+
))
|
|
136
|
+
else:
|
|
137
|
+
if attr in self.sensitive_list:
|
|
138
|
+
result[attr] = "****"
|
|
139
|
+
else:
|
|
140
|
+
result[attr] = value
|
|
141
|
+
|
|
142
|
+
return result
|
|
143
|
+
|
|
144
|
+
def to_str(self):
|
|
145
|
+
"""Returns the string representation of the model"""
|
|
146
|
+
import simplejson as json
|
|
147
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
148
|
+
|
|
149
|
+
def __repr__(self):
|
|
150
|
+
"""For `print`"""
|
|
151
|
+
return self.to_str()
|
|
152
|
+
|
|
153
|
+
def __eq__(self, other):
|
|
154
|
+
"""Returns true if both objects are equal"""
|
|
155
|
+
if not isinstance(other, AssociateInstanceResponse):
|
|
156
|
+
return False
|
|
157
|
+
|
|
158
|
+
return self.__dict__ == other.__dict__
|
|
159
|
+
|
|
160
|
+
def __ne__(self, other):
|
|
161
|
+
"""Returns true if both objects are not equal"""
|
|
162
|
+
return not self == other
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AttachInternetBandwidth:
|
|
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
|
+
'internet_bandwidth_id': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'global_eip_segment_id': 'global_eip_segment_id',
|
|
24
|
+
'internet_bandwidth_id': 'internet_bandwidth_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, global_eip_segment_id=None, internet_bandwidth_id=None):
|
|
28
|
+
r"""AttachInternetBandwidth
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param global_eip_segment_id: 全域弹性公网IP段的ID
|
|
33
|
+
:type global_eip_segment_id: str
|
|
34
|
+
:param internet_bandwidth_id: 全域公网带宽的ID
|
|
35
|
+
:type internet_bandwidth_id: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._global_eip_segment_id = None
|
|
41
|
+
self._internet_bandwidth_id = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.global_eip_segment_id = global_eip_segment_id
|
|
45
|
+
self.internet_bandwidth_id = internet_bandwidth_id
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def global_eip_segment_id(self):
|
|
49
|
+
r"""Gets the global_eip_segment_id of this AttachInternetBandwidth.
|
|
50
|
+
|
|
51
|
+
全域弹性公网IP段的ID
|
|
52
|
+
|
|
53
|
+
:return: The global_eip_segment_id of this AttachInternetBandwidth.
|
|
54
|
+
:rtype: str
|
|
55
|
+
"""
|
|
56
|
+
return self._global_eip_segment_id
|
|
57
|
+
|
|
58
|
+
@global_eip_segment_id.setter
|
|
59
|
+
def global_eip_segment_id(self, global_eip_segment_id):
|
|
60
|
+
r"""Sets the global_eip_segment_id of this AttachInternetBandwidth.
|
|
61
|
+
|
|
62
|
+
全域弹性公网IP段的ID
|
|
63
|
+
|
|
64
|
+
:param global_eip_segment_id: The global_eip_segment_id of this AttachInternetBandwidth.
|
|
65
|
+
:type global_eip_segment_id: str
|
|
66
|
+
"""
|
|
67
|
+
self._global_eip_segment_id = global_eip_segment_id
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def internet_bandwidth_id(self):
|
|
71
|
+
r"""Gets the internet_bandwidth_id of this AttachInternetBandwidth.
|
|
72
|
+
|
|
73
|
+
全域公网带宽的ID
|
|
74
|
+
|
|
75
|
+
:return: The internet_bandwidth_id of this AttachInternetBandwidth.
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._internet_bandwidth_id
|
|
79
|
+
|
|
80
|
+
@internet_bandwidth_id.setter
|
|
81
|
+
def internet_bandwidth_id(self, internet_bandwidth_id):
|
|
82
|
+
r"""Sets the internet_bandwidth_id of this AttachInternetBandwidth.
|
|
83
|
+
|
|
84
|
+
全域公网带宽的ID
|
|
85
|
+
|
|
86
|
+
:param internet_bandwidth_id: The internet_bandwidth_id of this AttachInternetBandwidth.
|
|
87
|
+
:type internet_bandwidth_id: str
|
|
88
|
+
"""
|
|
89
|
+
self._internet_bandwidth_id = internet_bandwidth_id
|
|
90
|
+
|
|
91
|
+
def to_dict(self):
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in self.openapi_types.items():
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
121
|
+
|
|
122
|
+
def __repr__(self):
|
|
123
|
+
"""For `print`"""
|
|
124
|
+
return self.to_str()
|
|
125
|
+
|
|
126
|
+
def __eq__(self, other):
|
|
127
|
+
"""Returns true if both objects are equal"""
|
|
128
|
+
if not isinstance(other, AttachInternetBandwidth):
|
|
129
|
+
return False
|
|
130
|
+
|
|
131
|
+
return self.__dict__ == other.__dict__
|
|
132
|
+
|
|
133
|
+
def __ne__(self, other):
|
|
134
|
+
"""Returns true if both objects are not equal"""
|
|
135
|
+
return not self == other
|