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,128 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateInternetBandwidthRequest:
|
|
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
|
+
'internet_bandwidth_id': 'str',
|
|
19
|
+
'body': 'UpdateInternetBandwidthRequestBody'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'internet_bandwidth_id': 'internet_bandwidth_id',
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, internet_bandwidth_id=None, body=None):
|
|
28
|
+
r"""UpdateInternetBandwidthRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param internet_bandwidth_id:
|
|
33
|
+
:type internet_bandwidth_id: str
|
|
34
|
+
:param body: Body of the UpdateInternetBandwidthRequest
|
|
35
|
+
:type body: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidthRequestBody`
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._internet_bandwidth_id = None
|
|
41
|
+
self._body = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.internet_bandwidth_id = internet_bandwidth_id
|
|
45
|
+
if body is not None:
|
|
46
|
+
self.body = body
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def internet_bandwidth_id(self):
|
|
50
|
+
r"""Gets the internet_bandwidth_id of this UpdateInternetBandwidthRequest.
|
|
51
|
+
|
|
52
|
+
:return: The internet_bandwidth_id of this UpdateInternetBandwidthRequest.
|
|
53
|
+
:rtype: str
|
|
54
|
+
"""
|
|
55
|
+
return self._internet_bandwidth_id
|
|
56
|
+
|
|
57
|
+
@internet_bandwidth_id.setter
|
|
58
|
+
def internet_bandwidth_id(self, internet_bandwidth_id):
|
|
59
|
+
r"""Sets the internet_bandwidth_id of this UpdateInternetBandwidthRequest.
|
|
60
|
+
|
|
61
|
+
:param internet_bandwidth_id: The internet_bandwidth_id of this UpdateInternetBandwidthRequest.
|
|
62
|
+
:type internet_bandwidth_id: str
|
|
63
|
+
"""
|
|
64
|
+
self._internet_bandwidth_id = internet_bandwidth_id
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def body(self):
|
|
68
|
+
r"""Gets the body of this UpdateInternetBandwidthRequest.
|
|
69
|
+
|
|
70
|
+
:return: The body of this UpdateInternetBandwidthRequest.
|
|
71
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidthRequestBody`
|
|
72
|
+
"""
|
|
73
|
+
return self._body
|
|
74
|
+
|
|
75
|
+
@body.setter
|
|
76
|
+
def body(self, body):
|
|
77
|
+
r"""Sets the body of this UpdateInternetBandwidthRequest.
|
|
78
|
+
|
|
79
|
+
:param body: The body of this UpdateInternetBandwidthRequest.
|
|
80
|
+
:type body: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidthRequestBody`
|
|
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, UpdateInternetBandwidthRequest):
|
|
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,103 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateInternetBandwidthRequestBody:
|
|
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
|
+
'internet_bandwidth': 'UpdateInternetBandwidthRequestBodyInternetBandwidth'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'internet_bandwidth': 'internet_bandwidth'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, internet_bandwidth=None):
|
|
26
|
+
r"""UpdateInternetBandwidthRequestBody
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param internet_bandwidth:
|
|
31
|
+
:type internet_bandwidth: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidthRequestBodyInternetBandwidth`
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._internet_bandwidth = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
self.internet_bandwidth = internet_bandwidth
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def internet_bandwidth(self):
|
|
43
|
+
r"""Gets the internet_bandwidth of this UpdateInternetBandwidthRequestBody.
|
|
44
|
+
|
|
45
|
+
:return: The internet_bandwidth of this UpdateInternetBandwidthRequestBody.
|
|
46
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidthRequestBodyInternetBandwidth`
|
|
47
|
+
"""
|
|
48
|
+
return self._internet_bandwidth
|
|
49
|
+
|
|
50
|
+
@internet_bandwidth.setter
|
|
51
|
+
def internet_bandwidth(self, internet_bandwidth):
|
|
52
|
+
r"""Sets the internet_bandwidth of this UpdateInternetBandwidthRequestBody.
|
|
53
|
+
|
|
54
|
+
:param internet_bandwidth: The internet_bandwidth of this UpdateInternetBandwidthRequestBody.
|
|
55
|
+
:type internet_bandwidth: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidthRequestBodyInternetBandwidth`
|
|
56
|
+
"""
|
|
57
|
+
self._internet_bandwidth = internet_bandwidth
|
|
58
|
+
|
|
59
|
+
def to_dict(self):
|
|
60
|
+
result = {}
|
|
61
|
+
|
|
62
|
+
for attr, _ in self.openapi_types.items():
|
|
63
|
+
value = getattr(self, attr)
|
|
64
|
+
if isinstance(value, list):
|
|
65
|
+
result[attr] = list(map(
|
|
66
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
67
|
+
value
|
|
68
|
+
))
|
|
69
|
+
elif hasattr(value, "to_dict"):
|
|
70
|
+
result[attr] = value.to_dict()
|
|
71
|
+
elif isinstance(value, dict):
|
|
72
|
+
result[attr] = dict(map(
|
|
73
|
+
lambda item: (item[0], item[1].to_dict())
|
|
74
|
+
if hasattr(item[1], "to_dict") else item,
|
|
75
|
+
value.items()
|
|
76
|
+
))
|
|
77
|
+
else:
|
|
78
|
+
if attr in self.sensitive_list:
|
|
79
|
+
result[attr] = "****"
|
|
80
|
+
else:
|
|
81
|
+
result[attr] = value
|
|
82
|
+
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
def to_str(self):
|
|
86
|
+
"""Returns the string representation of the model"""
|
|
87
|
+
import simplejson as json
|
|
88
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
89
|
+
|
|
90
|
+
def __repr__(self):
|
|
91
|
+
"""For `print`"""
|
|
92
|
+
return self.to_str()
|
|
93
|
+
|
|
94
|
+
def __eq__(self, other):
|
|
95
|
+
"""Returns true if both objects are equal"""
|
|
96
|
+
if not isinstance(other, UpdateInternetBandwidthRequestBody):
|
|
97
|
+
return False
|
|
98
|
+
|
|
99
|
+
return self.__dict__ == other.__dict__
|
|
100
|
+
|
|
101
|
+
def __ne__(self, other):
|
|
102
|
+
"""Returns true if both objects are not equal"""
|
|
103
|
+
return not self == other
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateInternetBandwidthRequestBodyInternetBandwidth:
|
|
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
|
+
'name': 'str',
|
|
19
|
+
'description': 'str',
|
|
20
|
+
'size': 'int',
|
|
21
|
+
'charge_mode': 'str',
|
|
22
|
+
'ingress_size': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'name': 'name',
|
|
27
|
+
'description': 'description',
|
|
28
|
+
'size': 'size',
|
|
29
|
+
'charge_mode': 'charge_mode',
|
|
30
|
+
'ingress_size': 'ingress_size'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, name=None, description=None, size=None, charge_mode=None, ingress_size=None):
|
|
34
|
+
r"""UpdateInternetBandwidthRequestBodyInternetBandwidth
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param name: - 功能说明:全域公网带宽名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
39
|
+
:type name: str
|
|
40
|
+
:param description: - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
|
|
41
|
+
:type description: str
|
|
42
|
+
:param size: 全域公网带宽大小(出云方向)
|
|
43
|
+
:type size: int
|
|
44
|
+
:param charge_mode: 计费模式
|
|
45
|
+
:type charge_mode: str
|
|
46
|
+
:param ingress_size: 全域公网带宽大小(入云方向)
|
|
47
|
+
:type ingress_size: int
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
self._name = None
|
|
53
|
+
self._description = None
|
|
54
|
+
self._size = None
|
|
55
|
+
self._charge_mode = None
|
|
56
|
+
self._ingress_size = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
if name is not None:
|
|
60
|
+
self.name = name
|
|
61
|
+
if description is not None:
|
|
62
|
+
self.description = description
|
|
63
|
+
if size is not None:
|
|
64
|
+
self.size = size
|
|
65
|
+
if charge_mode is not None:
|
|
66
|
+
self.charge_mode = charge_mode
|
|
67
|
+
if ingress_size is not None:
|
|
68
|
+
self.ingress_size = ingress_size
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def name(self):
|
|
72
|
+
r"""Gets the name of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
73
|
+
|
|
74
|
+
- 功能说明:全域公网带宽名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
75
|
+
|
|
76
|
+
:return: The name of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._name
|
|
80
|
+
|
|
81
|
+
@name.setter
|
|
82
|
+
def name(self, name):
|
|
83
|
+
r"""Sets the name of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
84
|
+
|
|
85
|
+
- 功能说明:全域公网带宽名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
|
|
86
|
+
|
|
87
|
+
:param name: The name of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
88
|
+
:type name: str
|
|
89
|
+
"""
|
|
90
|
+
self._name = name
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def description(self):
|
|
94
|
+
r"""Gets the description of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
95
|
+
|
|
96
|
+
- 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
|
|
97
|
+
|
|
98
|
+
:return: The description of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._description
|
|
102
|
+
|
|
103
|
+
@description.setter
|
|
104
|
+
def description(self, description):
|
|
105
|
+
r"""Sets the description of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
106
|
+
|
|
107
|
+
- 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
|
|
108
|
+
|
|
109
|
+
:param description: The description of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
110
|
+
:type description: str
|
|
111
|
+
"""
|
|
112
|
+
self._description = description
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def size(self):
|
|
116
|
+
r"""Gets the size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
117
|
+
|
|
118
|
+
全域公网带宽大小(出云方向)
|
|
119
|
+
|
|
120
|
+
:return: The size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
121
|
+
:rtype: int
|
|
122
|
+
"""
|
|
123
|
+
return self._size
|
|
124
|
+
|
|
125
|
+
@size.setter
|
|
126
|
+
def size(self, size):
|
|
127
|
+
r"""Sets the size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
128
|
+
|
|
129
|
+
全域公网带宽大小(出云方向)
|
|
130
|
+
|
|
131
|
+
:param size: The size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
132
|
+
:type size: int
|
|
133
|
+
"""
|
|
134
|
+
self._size = size
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def charge_mode(self):
|
|
138
|
+
r"""Gets the charge_mode of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
139
|
+
|
|
140
|
+
计费模式
|
|
141
|
+
|
|
142
|
+
:return: The charge_mode of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
143
|
+
:rtype: str
|
|
144
|
+
"""
|
|
145
|
+
return self._charge_mode
|
|
146
|
+
|
|
147
|
+
@charge_mode.setter
|
|
148
|
+
def charge_mode(self, charge_mode):
|
|
149
|
+
r"""Sets the charge_mode of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
150
|
+
|
|
151
|
+
计费模式
|
|
152
|
+
|
|
153
|
+
:param charge_mode: The charge_mode of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
154
|
+
:type charge_mode: str
|
|
155
|
+
"""
|
|
156
|
+
self._charge_mode = charge_mode
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def ingress_size(self):
|
|
160
|
+
r"""Gets the ingress_size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
161
|
+
|
|
162
|
+
全域公网带宽大小(入云方向)
|
|
163
|
+
|
|
164
|
+
:return: The ingress_size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
165
|
+
:rtype: int
|
|
166
|
+
"""
|
|
167
|
+
return self._ingress_size
|
|
168
|
+
|
|
169
|
+
@ingress_size.setter
|
|
170
|
+
def ingress_size(self, ingress_size):
|
|
171
|
+
r"""Sets the ingress_size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
172
|
+
|
|
173
|
+
全域公网带宽大小(入云方向)
|
|
174
|
+
|
|
175
|
+
:param ingress_size: The ingress_size of this UpdateInternetBandwidthRequestBodyInternetBandwidth.
|
|
176
|
+
:type ingress_size: int
|
|
177
|
+
"""
|
|
178
|
+
self._ingress_size = ingress_size
|
|
179
|
+
|
|
180
|
+
def to_dict(self):
|
|
181
|
+
result = {}
|
|
182
|
+
|
|
183
|
+
for attr, _ in self.openapi_types.items():
|
|
184
|
+
value = getattr(self, attr)
|
|
185
|
+
if isinstance(value, list):
|
|
186
|
+
result[attr] = list(map(
|
|
187
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
188
|
+
value
|
|
189
|
+
))
|
|
190
|
+
elif hasattr(value, "to_dict"):
|
|
191
|
+
result[attr] = value.to_dict()
|
|
192
|
+
elif isinstance(value, dict):
|
|
193
|
+
result[attr] = dict(map(
|
|
194
|
+
lambda item: (item[0], item[1].to_dict())
|
|
195
|
+
if hasattr(item[1], "to_dict") else item,
|
|
196
|
+
value.items()
|
|
197
|
+
))
|
|
198
|
+
else:
|
|
199
|
+
if attr in self.sensitive_list:
|
|
200
|
+
result[attr] = "****"
|
|
201
|
+
else:
|
|
202
|
+
result[attr] = value
|
|
203
|
+
|
|
204
|
+
return result
|
|
205
|
+
|
|
206
|
+
def to_str(self):
|
|
207
|
+
"""Returns the string representation of the model"""
|
|
208
|
+
import simplejson as json
|
|
209
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
210
|
+
|
|
211
|
+
def __repr__(self):
|
|
212
|
+
"""For `print`"""
|
|
213
|
+
return self.to_str()
|
|
214
|
+
|
|
215
|
+
def __eq__(self, other):
|
|
216
|
+
"""Returns true if both objects are equal"""
|
|
217
|
+
if not isinstance(other, UpdateInternetBandwidthRequestBodyInternetBandwidth):
|
|
218
|
+
return False
|
|
219
|
+
|
|
220
|
+
return self.__dict__ == other.__dict__
|
|
221
|
+
|
|
222
|
+
def __ne__(self, other):
|
|
223
|
+
"""Returns true if both objects are not equal"""
|
|
224
|
+
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 UpdateInternetBandwidthResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'request_id': 'str',
|
|
20
|
+
'internet_bandwidth': 'UpdateInternetBandwidth',
|
|
21
|
+
'x_request_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'request_id': 'request_id',
|
|
26
|
+
'internet_bandwidth': 'internet_bandwidth',
|
|
27
|
+
'x_request_id': 'X-Request-Id'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, request_id=None, internet_bandwidth=None, x_request_id=None):
|
|
31
|
+
r"""UpdateInternetBandwidthResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param request_id: 本次请求的编号
|
|
36
|
+
:type request_id: str
|
|
37
|
+
:param internet_bandwidth:
|
|
38
|
+
:type internet_bandwidth: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidth`
|
|
39
|
+
:param x_request_id:
|
|
40
|
+
:type x_request_id: str
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
super().__init__()
|
|
44
|
+
|
|
45
|
+
self._request_id = None
|
|
46
|
+
self._internet_bandwidth = None
|
|
47
|
+
self._x_request_id = None
|
|
48
|
+
self.discriminator = None
|
|
49
|
+
|
|
50
|
+
if request_id is not None:
|
|
51
|
+
self.request_id = request_id
|
|
52
|
+
if internet_bandwidth is not None:
|
|
53
|
+
self.internet_bandwidth = internet_bandwidth
|
|
54
|
+
if x_request_id is not None:
|
|
55
|
+
self.x_request_id = x_request_id
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def request_id(self):
|
|
59
|
+
r"""Gets the request_id of this UpdateInternetBandwidthResponse.
|
|
60
|
+
|
|
61
|
+
本次请求的编号
|
|
62
|
+
|
|
63
|
+
:return: The request_id of this UpdateInternetBandwidthResponse.
|
|
64
|
+
:rtype: str
|
|
65
|
+
"""
|
|
66
|
+
return self._request_id
|
|
67
|
+
|
|
68
|
+
@request_id.setter
|
|
69
|
+
def request_id(self, request_id):
|
|
70
|
+
r"""Sets the request_id of this UpdateInternetBandwidthResponse.
|
|
71
|
+
|
|
72
|
+
本次请求的编号
|
|
73
|
+
|
|
74
|
+
:param request_id: The request_id of this UpdateInternetBandwidthResponse.
|
|
75
|
+
:type request_id: str
|
|
76
|
+
"""
|
|
77
|
+
self._request_id = request_id
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def internet_bandwidth(self):
|
|
81
|
+
r"""Gets the internet_bandwidth of this UpdateInternetBandwidthResponse.
|
|
82
|
+
|
|
83
|
+
:return: The internet_bandwidth of this UpdateInternetBandwidthResponse.
|
|
84
|
+
:rtype: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidth`
|
|
85
|
+
"""
|
|
86
|
+
return self._internet_bandwidth
|
|
87
|
+
|
|
88
|
+
@internet_bandwidth.setter
|
|
89
|
+
def internet_bandwidth(self, internet_bandwidth):
|
|
90
|
+
r"""Sets the internet_bandwidth of this UpdateInternetBandwidthResponse.
|
|
91
|
+
|
|
92
|
+
:param internet_bandwidth: The internet_bandwidth of this UpdateInternetBandwidthResponse.
|
|
93
|
+
:type internet_bandwidth: :class:`huaweicloudsdkgeip.v3.UpdateInternetBandwidth`
|
|
94
|
+
"""
|
|
95
|
+
self._internet_bandwidth = internet_bandwidth
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def x_request_id(self):
|
|
99
|
+
r"""Gets the x_request_id of this UpdateInternetBandwidthResponse.
|
|
100
|
+
|
|
101
|
+
:return: The x_request_id of this UpdateInternetBandwidthResponse.
|
|
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 UpdateInternetBandwidthResponse.
|
|
109
|
+
|
|
110
|
+
:param x_request_id: The x_request_id of this UpdateInternetBandwidthResponse.
|
|
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("UpdateInternetBandwidthResponse.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, UpdateInternetBandwidthResponse):
|
|
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
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.region.region import Region
|
|
4
|
+
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
|
5
|
+
|
|
6
|
+
class GeipRegion:
|
|
7
|
+
_PROVIDER = RegionProviderChain.get_default_region_provider_chain("GEIP")
|
|
8
|
+
|
|
9
|
+
CN_NORTH_4 = Region("cn-north-4",
|
|
10
|
+
"https://eip.myhuaweicloud.com")
|
|
11
|
+
|
|
12
|
+
static_fields = {
|
|
13
|
+
"cn-north-4": CN_NORTH_4,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@classmethod
|
|
17
|
+
def value_of(cls, region_id, static_fields=None):
|
|
18
|
+
if not region_id:
|
|
19
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
|
20
|
+
|
|
21
|
+
fields = static_fields or cls.static_fields
|
|
22
|
+
|
|
23
|
+
region = cls._PROVIDER.get_region(region_id)
|
|
24
|
+
if region:
|
|
25
|
+
return region
|
|
26
|
+
|
|
27
|
+
if region_id in fields:
|
|
28
|
+
return fields.get(region_id)
|
|
29
|
+
|
|
30
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Geip': [%s]" % (
|
|
31
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: huaweicloudsdkgeip
|
|
3
|
+
Version: 3.1.177
|
|
4
|
+
Summary: GEIP
|
|
5
|
+
Project-URL: Homepage, https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
|
+
Author-email: HuaweiCloud SDK <hwcloudsdk@huawei.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: GEIP,huaweicloud,sdk
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Software Development
|
|
21
|
+
Requires-Python: >=3.6
|
|
22
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.177
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|