byteplus-python-sdk-v2 3.0.52__py2.py3-none-any.whl → 3.0.53__py2.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.
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/RECORD +184 -43
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/WHEEL +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/top_level.txt +1 -0
- byteplussdkarkruntime/resources/content_generation/tasks.py +4 -0
- byteplussdkarkruntime/types/content_generation/content_generation_task.py +3 -0
- byteplussdkarkruntime/types/content_generation/create_task_content_param.py +31 -1
- byteplussdkcen/__init__.py +133 -0
- byteplussdkcen/api/__init__.py +6 -0
- byteplussdkcen/api/cen_api.py +4205 -0
- byteplussdkcen/models/__init__.py +129 -0
- byteplussdkcen/models/associate_cen_bandwidth_package_request.py +151 -0
- byteplussdkcen/models/associate_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/attach_instance_to_cen_request.py +231 -0
- byteplussdkcen/models/attach_instance_to_cen_response.py +95 -0
- byteplussdkcen/models/attached_instance_for_describe_cen_attached_instances_output.py +279 -0
- byteplussdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_billing_output.py +279 -0
- byteplussdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_output.py +617 -0
- byteplussdkcen/models/cen_for_describe_cens_output.py +357 -0
- byteplussdkcen/models/cen_grant_rule_for_describe_grant_rules_to_cen_output.py +253 -0
- byteplussdkcen/models/cen_grant_rule_for_describe_instance_granted_rules_output.py +253 -0
- byteplussdkcen/models/cen_route_entry_for_describe_cen_route_entries_output.py +331 -0
- byteplussdkcen/models/cen_summary_route_entry_for_describe_cen_summary_route_entries_output.py +253 -0
- byteplussdkcen/models/create_cen_bandwidth_package_request.py +462 -0
- byteplussdkcen/models/create_cen_bandwidth_package_response.py +123 -0
- byteplussdkcen/models/create_cen_inter_region_bandwidth_request.py +231 -0
- byteplussdkcen/models/create_cen_inter_region_bandwidth_response.py +123 -0
- byteplussdkcen/models/create_cen_request.py +230 -0
- byteplussdkcen/models/create_cen_response.py +123 -0
- byteplussdkcen/models/create_cen_service_route_entry_request.py +283 -0
- byteplussdkcen/models/create_cen_service_route_entry_response.py +95 -0
- byteplussdkcen/models/create_cen_summary_route_entry_request.py +177 -0
- byteplussdkcen/models/create_cen_summary_route_entry_response.py +95 -0
- byteplussdkcen/models/delete_cen_bandwidth_package_request.py +124 -0
- byteplussdkcen/models/delete_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/delete_cen_inter_region_bandwidth_request.py +124 -0
- byteplussdkcen/models/delete_cen_inter_region_bandwidth_response.py +95 -0
- byteplussdkcen/models/delete_cen_request.py +124 -0
- byteplussdkcen/models/delete_cen_response.py +95 -0
- byteplussdkcen/models/delete_cen_service_route_entry_request.py +178 -0
- byteplussdkcen/models/delete_cen_service_route_entry_response.py +95 -0
- byteplussdkcen/models/delete_cen_summary_route_entry_request.py +151 -0
- byteplussdkcen/models/delete_cen_summary_route_entry_response.py +95 -0
- byteplussdkcen/models/describe95_traffic_request.py +178 -0
- byteplussdkcen/models/describe95_traffic_response.py +123 -0
- byteplussdkcen/models/describe_cen_attached_instance_attributes_request.py +205 -0
- byteplussdkcen/models/describe_cen_attached_instance_attributes_response.py +279 -0
- byteplussdkcen/models/describe_cen_attached_instances_request.py +253 -0
- byteplussdkcen/models/describe_cen_attached_instances_response.py +201 -0
- byteplussdkcen/models/describe_cen_attributes_request.py +124 -0
- byteplussdkcen/models/describe_cen_attributes_response.py +357 -0
- byteplussdkcen/models/describe_cen_bandwidth_package_attributes_request.py +124 -0
- byteplussdkcen/models/describe_cen_bandwidth_package_attributes_response.py +591 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_billing_request.py +175 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_billing_response.py +201 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_request.py +331 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_response.py +201 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidth_attributes_request.py +124 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidth_attributes_response.py +331 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidths_request.py +201 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidths_response.py +201 -0
- byteplussdkcen/models/describe_cen_route_entries_request.py +279 -0
- byteplussdkcen/models/describe_cen_route_entries_response.py +201 -0
- byteplussdkcen/models/describe_cen_service_route_entries_request.py +279 -0
- byteplussdkcen/models/describe_cen_service_route_entries_response.py +201 -0
- byteplussdkcen/models/describe_cen_summary_route_entries_request.py +202 -0
- byteplussdkcen/models/describe_cen_summary_route_entries_response.py +201 -0
- byteplussdkcen/models/describe_cens_request.py +253 -0
- byteplussdkcen/models/describe_cens_response.py +201 -0
- byteplussdkcen/models/describe_grant_rules_to_cen_request.py +260 -0
- byteplussdkcen/models/describe_grant_rules_to_cen_response.py +201 -0
- byteplussdkcen/models/describe_instance_granted_rules_request.py +234 -0
- byteplussdkcen/models/describe_instance_granted_rules_response.py +201 -0
- byteplussdkcen/models/detach_instance_from_cen_request.py +205 -0
- byteplussdkcen/models/detach_instance_from_cen_response.py +95 -0
- byteplussdkcen/models/disassociate_cen_bandwidth_package_request.py +151 -0
- byteplussdkcen/models/disassociate_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/grant_instance_to_cen_request.py +239 -0
- byteplussdkcen/models/grant_instance_to_cen_response.py +95 -0
- byteplussdkcen/models/inter_region_bandwidth_for_describe_cen_inter_region_bandwidths_output.py +331 -0
- byteplussdkcen/models/list_tags_for_resources_request.py +264 -0
- byteplussdkcen/models/list_tags_for_resources_response.py +149 -0
- byteplussdkcen/models/modify_cen_attributes_request.py +176 -0
- byteplussdkcen/models/modify_cen_attributes_response.py +95 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_association_request.py +151 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_association_response.py +95 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_attributes_request.py +214 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_attributes_response.py +95 -0
- byteplussdkcen/models/modify_cen_inter_region_bandwidth_attributes_request.py +176 -0
- byteplussdkcen/models/modify_cen_inter_region_bandwidth_attributes_response.py +95 -0
- byteplussdkcen/models/modify_cen_service_route_entry_attributes_request.py +256 -0
- byteplussdkcen/models/modify_cen_service_route_entry_attributes_response.py +95 -0
- byteplussdkcen/models/publish_cen_route_entry_request.py +232 -0
- byteplussdkcen/models/publish_cen_route_entry_response.py +95 -0
- byteplussdkcen/models/publish_to_instance_for_create_cen_service_route_entry_input.py +175 -0
- byteplussdkcen/models/publish_to_instance_for_describe_cen_service_route_entries_output.py +175 -0
- byteplussdkcen/models/publish_to_instance_for_modify_cen_service_route_entry_attributes_input.py +175 -0
- byteplussdkcen/models/renew_cen_bandwidth_package_request.py +176 -0
- byteplussdkcen/models/renew_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/resource_tag_for_list_tags_for_resources_output.py +201 -0
- byteplussdkcen/models/revoke_instance_from_cen_request.py +239 -0
- byteplussdkcen/models/revoke_instance_from_cen_response.py +95 -0
- byteplussdkcen/models/service_route_entry_for_describe_cen_service_route_entries_output.py +331 -0
- byteplussdkcen/models/set_cen_bandwidth_package_renewal_request.py +203 -0
- byteplussdkcen/models/set_cen_bandwidth_package_renewal_response.py +95 -0
- byteplussdkcen/models/tag_filter_for_describe_cen_bandwidth_packages_input.py +149 -0
- byteplussdkcen/models/tag_filter_for_describe_cens_input.py +149 -0
- byteplussdkcen/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
- byteplussdkcen/models/tag_for_create_cen_bandwidth_package_input.py +149 -0
- byteplussdkcen/models/tag_for_create_cen_input.py +149 -0
- byteplussdkcen/models/tag_for_describe_cen_attributes_output.py +149 -0
- byteplussdkcen/models/tag_for_describe_cen_bandwidth_package_attributes_output.py +149 -0
- byteplussdkcen/models/tag_for_describe_cen_bandwidth_packages_output.py +149 -0
- byteplussdkcen/models/tag_for_describe_cens_output.py +149 -0
- byteplussdkcen/models/tag_for_tag_resources_input.py +150 -0
- byteplussdkcen/models/tag_resources_request.py +183 -0
- byteplussdkcen/models/tag_resources_response.py +95 -0
- byteplussdkcen/models/traffic_data_for_describe95_traffic_output.py +201 -0
- byteplussdkcen/models/traffic_detail_data_for_describe95_traffic_output.py +175 -0
- byteplussdkcen/models/untag_resources_request.py +183 -0
- byteplussdkcen/models/untag_resources_response.py +95 -0
- byteplussdkcen/models/withdraw_cen_route_entry_request.py +232 -0
- byteplussdkcen/models/withdraw_cen_route_entry_response.py +95 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkcore/endpoint/providers/default_provider.py +14 -0
- byteplussdkexamples/byteplussdkarkruntime/content_generation_tasks.py +8 -0
- byteplussdktransitrouter/__init__.py +24 -1
- byteplussdktransitrouter/api/transitrouter_api.py +983 -13
- byteplussdktransitrouter/models/__init__.py +24 -1
- byteplussdktransitrouter/models/accept_shared_transit_router_request.py +124 -0
- byteplussdktransitrouter/models/accept_shared_transit_router_response.py +95 -0
- byteplussdktransitrouter/models/accept_transit_router_peer_attachment_request.py +124 -0
- byteplussdktransitrouter/models/accept_transit_router_peer_attachment_response.py +95 -0
- byteplussdktransitrouter/models/create_transit_router_grant_rule_request.py +177 -0
- byteplussdktransitrouter/models/create_transit_router_grant_rule_response.py +95 -0
- byteplussdktransitrouter/models/create_transit_router_peer_attachment_request.py +79 -1
- byteplussdktransitrouter/models/create_transit_router_route_entry_request.py +29 -4
- byteplussdktransitrouter/models/create_transit_router_route_policy_entry_request.py +33 -1
- byteplussdktransitrouter/models/create_transit_router_traffic_qos_queue_entry_request.py +39 -4
- byteplussdktransitrouter/models/create_transit_router_vpn_attachment_request.py +27 -1
- byteplussdktransitrouter/models/delete_transit_router_grant_rule_request.py +151 -0
- byteplussdktransitrouter/models/delete_transit_router_grant_rule_response.py +95 -0
- byteplussdktransitrouter/models/describe95_traffic_request.py +185 -0
- byteplussdktransitrouter/models/describe95_traffic_response.py +123 -0
- byteplussdktransitrouter/models/describe_transit_router_attachments_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_grant_rules_request.py +202 -0
- byteplussdktransitrouter/models/describe_transit_router_grant_rules_response.py +201 -0
- byteplussdktransitrouter/models/describe_transit_router_multicast_domains_response.py +3 -3
- byteplussdktransitrouter/models/describe_transit_router_route_entries_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_route_policy_entries_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_traffic_qos_queue_entries_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_vpn_attachments_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_routers_request.py +3 -0
- byteplussdktransitrouter/models/enable_transit_router_route_table_propagation_request.py +27 -1
- byteplussdktransitrouter/models/models.py +1522 -1447
- byteplussdktransitrouter/models/modify_transit_router_attributes_request.py +34 -1
- byteplussdktransitrouter/models/modify_transit_router_grant_rule_attributes_request.py +177 -0
- byteplussdktransitrouter/models/modify_transit_router_grant_rule_attributes_response.py +95 -0
- byteplussdktransitrouter/models/modify_transit_router_peer_attachment_attributes_request.py +53 -1
- byteplussdktransitrouter/models/modify_transit_router_route_policy_entry_attributes_request.py +33 -1
- byteplussdktransitrouter/models/modify_transit_router_traffic_qos_queue_entry_attributes_request.py +208 -0
- byteplussdktransitrouter/models/modify_transit_router_traffic_qos_queue_entry_attributes_response.py +95 -0
- byteplussdktransitrouter/models/reject_shared_transit_router_request.py +124 -0
- byteplussdktransitrouter/models/reject_shared_transit_router_response.py +95 -0
- byteplussdktransitrouter/models/reject_transit_router_peer_attachment_request.py +124 -0
- byteplussdktransitrouter/models/reject_transit_router_peer_attachment_response.py +95 -0
- byteplussdktransitrouter/models/traffic_data_for_describe95_traffic_output.py +201 -0
- byteplussdktransitrouter/models/traffic_detail_data_for_describe95_traffic_output.py +175 -0
- byteplussdktransitrouter/models/transit_router_attachment_for_describe_transit_router_attachments_output.py +27 -1
- byteplussdktransitrouter/models/transit_router_attachment_for_describe_transit_router_peer_attachments_output.py +105 -1
- byteplussdktransitrouter/models/transit_router_attachment_for_describe_transit_router_vpn_attachments_output.py +27 -1
- byteplussdktransitrouter/models/transit_router_for_describe_transit_routers_output.py +27 -1
- byteplussdktransitrouter/models/transit_router_grant_rule_for_describe_transit_router_grant_rules_output.py +253 -0
- byteplussdktransitrouter/models/{transit_router_multicast_domains_for_describe_transit_router_multicast_domains_output.py → transit_router_multicast_domain_for_describe_transit_router_multicast_domains_output.py} +33 -33
- byteplussdktransitrouter/models/transit_router_route_entry_for_describe_transit_router_route_entries_output.py +53 -1
- byteplussdkvke/__init__.py +2 -0
- byteplussdkvke/api/vke_api.py +97 -0
- byteplussdkvke/models/__init__.py +2 -0
- byteplussdkvke/models/item_for_list_scaling_policies_output.py +27 -1
- byteplussdkvke/models/scale_node_pool_request.py +204 -0
- byteplussdkvke/models/scale_node_pool_response.py +95 -0
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cen
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DescribeCenInterRegionBandwidthsRequest(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'cen_id': 'str',
|
|
37
|
+
'inter_region_bandwidth_ids': 'list[str]',
|
|
38
|
+
'page_number': 'int',
|
|
39
|
+
'page_size': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'cen_id': 'CenId',
|
|
44
|
+
'inter_region_bandwidth_ids': 'InterRegionBandwidthIds',
|
|
45
|
+
'page_number': 'PageNumber',
|
|
46
|
+
'page_size': 'PageSize'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, cen_id=None, inter_region_bandwidth_ids=None, page_number=None, page_size=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""DescribeCenInterRegionBandwidthsRequest - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._cen_id = None
|
|
56
|
+
self._inter_region_bandwidth_ids = None
|
|
57
|
+
self._page_number = None
|
|
58
|
+
self._page_size = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if cen_id is not None:
|
|
62
|
+
self.cen_id = cen_id
|
|
63
|
+
if inter_region_bandwidth_ids is not None:
|
|
64
|
+
self.inter_region_bandwidth_ids = inter_region_bandwidth_ids
|
|
65
|
+
if page_number is not None:
|
|
66
|
+
self.page_number = page_number
|
|
67
|
+
if page_size is not None:
|
|
68
|
+
self.page_size = page_size
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def cen_id(self):
|
|
72
|
+
"""Gets the cen_id of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The cen_id of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._cen_id
|
|
79
|
+
|
|
80
|
+
@cen_id.setter
|
|
81
|
+
def cen_id(self, cen_id):
|
|
82
|
+
"""Sets the cen_id of this DescribeCenInterRegionBandwidthsRequest.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param cen_id: The cen_id of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._cen_id = cen_id
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def inter_region_bandwidth_ids(self):
|
|
93
|
+
"""Gets the inter_region_bandwidth_ids of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The inter_region_bandwidth_ids of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
97
|
+
:rtype: list[str]
|
|
98
|
+
"""
|
|
99
|
+
return self._inter_region_bandwidth_ids
|
|
100
|
+
|
|
101
|
+
@inter_region_bandwidth_ids.setter
|
|
102
|
+
def inter_region_bandwidth_ids(self, inter_region_bandwidth_ids):
|
|
103
|
+
"""Sets the inter_region_bandwidth_ids of this DescribeCenInterRegionBandwidthsRequest.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param inter_region_bandwidth_ids: The inter_region_bandwidth_ids of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
107
|
+
:type: list[str]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._inter_region_bandwidth_ids = inter_region_bandwidth_ids
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def page_number(self):
|
|
114
|
+
"""Gets the page_number of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The page_number of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._page_number
|
|
121
|
+
|
|
122
|
+
@page_number.setter
|
|
123
|
+
def page_number(self, page_number):
|
|
124
|
+
"""Sets the page_number of this DescribeCenInterRegionBandwidthsRequest.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param page_number: The page_number of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._page_number = page_number
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def page_size(self):
|
|
135
|
+
"""Gets the page_size of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The page_size of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._page_size
|
|
142
|
+
|
|
143
|
+
@page_size.setter
|
|
144
|
+
def page_size(self, page_size):
|
|
145
|
+
"""Sets the page_size of this DescribeCenInterRegionBandwidthsRequest.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param page_size: The page_size of this DescribeCenInterRegionBandwidthsRequest. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._page_size = page_size
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(DescribeCenInterRegionBandwidthsRequest, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, DescribeCenInterRegionBandwidthsRequest):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, DescribeCenInterRegionBandwidthsRequest):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cen
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DescribeCenInterRegionBandwidthsResponse(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'inter_region_bandwidths': 'list[InterRegionBandwidthForDescribeCenInterRegionBandwidthsOutput]',
|
|
37
|
+
'page_number': 'int',
|
|
38
|
+
'page_size': 'int',
|
|
39
|
+
'total_count': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'inter_region_bandwidths': 'InterRegionBandwidths',
|
|
44
|
+
'page_number': 'PageNumber',
|
|
45
|
+
'page_size': 'PageSize',
|
|
46
|
+
'total_count': 'TotalCount'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, inter_region_bandwidths=None, page_number=None, page_size=None, total_count=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""DescribeCenInterRegionBandwidthsResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._inter_region_bandwidths = None
|
|
56
|
+
self._page_number = None
|
|
57
|
+
self._page_size = None
|
|
58
|
+
self._total_count = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if inter_region_bandwidths is not None:
|
|
62
|
+
self.inter_region_bandwidths = inter_region_bandwidths
|
|
63
|
+
if page_number is not None:
|
|
64
|
+
self.page_number = page_number
|
|
65
|
+
if page_size is not None:
|
|
66
|
+
self.page_size = page_size
|
|
67
|
+
if total_count is not None:
|
|
68
|
+
self.total_count = total_count
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def inter_region_bandwidths(self):
|
|
72
|
+
"""Gets the inter_region_bandwidths of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The inter_region_bandwidths of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
76
|
+
:rtype: list[InterRegionBandwidthForDescribeCenInterRegionBandwidthsOutput]
|
|
77
|
+
"""
|
|
78
|
+
return self._inter_region_bandwidths
|
|
79
|
+
|
|
80
|
+
@inter_region_bandwidths.setter
|
|
81
|
+
def inter_region_bandwidths(self, inter_region_bandwidths):
|
|
82
|
+
"""Sets the inter_region_bandwidths of this DescribeCenInterRegionBandwidthsResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param inter_region_bandwidths: The inter_region_bandwidths of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
86
|
+
:type: list[InterRegionBandwidthForDescribeCenInterRegionBandwidthsOutput]
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._inter_region_bandwidths = inter_region_bandwidths
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def page_number(self):
|
|
93
|
+
"""Gets the page_number of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The page_number of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._page_number
|
|
100
|
+
|
|
101
|
+
@page_number.setter
|
|
102
|
+
def page_number(self, page_number):
|
|
103
|
+
"""Sets the page_number of this DescribeCenInterRegionBandwidthsResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param page_number: The page_number of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._page_number = page_number
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def page_size(self):
|
|
114
|
+
"""Gets the page_size of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The page_size of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._page_size
|
|
121
|
+
|
|
122
|
+
@page_size.setter
|
|
123
|
+
def page_size(self, page_size):
|
|
124
|
+
"""Sets the page_size of this DescribeCenInterRegionBandwidthsResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param page_size: The page_size of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._page_size = page_size
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def total_count(self):
|
|
135
|
+
"""Gets the total_count of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The total_count of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._total_count
|
|
142
|
+
|
|
143
|
+
@total_count.setter
|
|
144
|
+
def total_count(self, total_count):
|
|
145
|
+
"""Sets the total_count of this DescribeCenInterRegionBandwidthsResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param total_count: The total_count of this DescribeCenInterRegionBandwidthsResponse. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._total_count = total_count
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(DescribeCenInterRegionBandwidthsResponse, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, DescribeCenInterRegionBandwidthsResponse):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, DescribeCenInterRegionBandwidthsResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cen
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DescribeCenRouteEntriesRequest(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'cen_id': 'str',
|
|
37
|
+
'destination_cidr_block': 'str',
|
|
38
|
+
'instance_id': 'str',
|
|
39
|
+
'instance_region_id': 'str',
|
|
40
|
+
'instance_type': 'str',
|
|
41
|
+
'page_number': 'int',
|
|
42
|
+
'page_size': 'int'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'cen_id': 'CenId',
|
|
47
|
+
'destination_cidr_block': 'DestinationCidrBlock',
|
|
48
|
+
'instance_id': 'InstanceId',
|
|
49
|
+
'instance_region_id': 'InstanceRegionId',
|
|
50
|
+
'instance_type': 'InstanceType',
|
|
51
|
+
'page_number': 'PageNumber',
|
|
52
|
+
'page_size': 'PageSize'
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, cen_id=None, destination_cidr_block=None, instance_id=None, instance_region_id=None, instance_type=None, page_number=None, page_size=None, _configuration=None): # noqa: E501
|
|
56
|
+
"""DescribeCenRouteEntriesRequest - a model defined in Swagger""" # noqa: E501
|
|
57
|
+
if _configuration is None:
|
|
58
|
+
_configuration = Configuration()
|
|
59
|
+
self._configuration = _configuration
|
|
60
|
+
|
|
61
|
+
self._cen_id = None
|
|
62
|
+
self._destination_cidr_block = None
|
|
63
|
+
self._instance_id = None
|
|
64
|
+
self._instance_region_id = None
|
|
65
|
+
self._instance_type = None
|
|
66
|
+
self._page_number = None
|
|
67
|
+
self._page_size = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
|
|
70
|
+
if cen_id is not None:
|
|
71
|
+
self.cen_id = cen_id
|
|
72
|
+
if destination_cidr_block is not None:
|
|
73
|
+
self.destination_cidr_block = destination_cidr_block
|
|
74
|
+
if instance_id is not None:
|
|
75
|
+
self.instance_id = instance_id
|
|
76
|
+
if instance_region_id is not None:
|
|
77
|
+
self.instance_region_id = instance_region_id
|
|
78
|
+
if instance_type is not None:
|
|
79
|
+
self.instance_type = instance_type
|
|
80
|
+
if page_number is not None:
|
|
81
|
+
self.page_number = page_number
|
|
82
|
+
if page_size is not None:
|
|
83
|
+
self.page_size = page_size
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def cen_id(self):
|
|
87
|
+
"""Gets the cen_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The cen_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._cen_id
|
|
94
|
+
|
|
95
|
+
@cen_id.setter
|
|
96
|
+
def cen_id(self, cen_id):
|
|
97
|
+
"""Sets the cen_id of this DescribeCenRouteEntriesRequest.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param cen_id: The cen_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
self._cen_id = cen_id
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def destination_cidr_block(self):
|
|
108
|
+
"""Gets the destination_cidr_block of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:return: The destination_cidr_block of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._destination_cidr_block
|
|
115
|
+
|
|
116
|
+
@destination_cidr_block.setter
|
|
117
|
+
def destination_cidr_block(self, destination_cidr_block):
|
|
118
|
+
"""Sets the destination_cidr_block of this DescribeCenRouteEntriesRequest.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param destination_cidr_block: The destination_cidr_block of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
122
|
+
:type: str
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
self._destination_cidr_block = destination_cidr_block
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def instance_id(self):
|
|
129
|
+
"""Gets the instance_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:return: The instance_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
133
|
+
:rtype: str
|
|
134
|
+
"""
|
|
135
|
+
return self._instance_id
|
|
136
|
+
|
|
137
|
+
@instance_id.setter
|
|
138
|
+
def instance_id(self, instance_id):
|
|
139
|
+
"""Sets the instance_id of this DescribeCenRouteEntriesRequest.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:param instance_id: The instance_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
143
|
+
:type: str
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
self._instance_id = instance_id
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def instance_region_id(self):
|
|
150
|
+
"""Gets the instance_region_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:return: The instance_region_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
154
|
+
:rtype: str
|
|
155
|
+
"""
|
|
156
|
+
return self._instance_region_id
|
|
157
|
+
|
|
158
|
+
@instance_region_id.setter
|
|
159
|
+
def instance_region_id(self, instance_region_id):
|
|
160
|
+
"""Sets the instance_region_id of this DescribeCenRouteEntriesRequest.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:param instance_region_id: The instance_region_id of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
164
|
+
:type: str
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
self._instance_region_id = instance_region_id
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def instance_type(self):
|
|
171
|
+
"""Gets the instance_type of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:return: The instance_type of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._instance_type
|
|
178
|
+
|
|
179
|
+
@instance_type.setter
|
|
180
|
+
def instance_type(self, instance_type):
|
|
181
|
+
"""Sets the instance_type of this DescribeCenRouteEntriesRequest.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param instance_type: The instance_type of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
185
|
+
:type: str
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
self._instance_type = instance_type
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def page_number(self):
|
|
192
|
+
"""Gets the page_number of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:return: The page_number of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
196
|
+
:rtype: int
|
|
197
|
+
"""
|
|
198
|
+
return self._page_number
|
|
199
|
+
|
|
200
|
+
@page_number.setter
|
|
201
|
+
def page_number(self, page_number):
|
|
202
|
+
"""Sets the page_number of this DescribeCenRouteEntriesRequest.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:param page_number: The page_number of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
206
|
+
:type: int
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._page_number = page_number
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def page_size(self):
|
|
213
|
+
"""Gets the page_size of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
:return: The page_size of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
217
|
+
:rtype: int
|
|
218
|
+
"""
|
|
219
|
+
return self._page_size
|
|
220
|
+
|
|
221
|
+
@page_size.setter
|
|
222
|
+
def page_size(self, page_size):
|
|
223
|
+
"""Sets the page_size of this DescribeCenRouteEntriesRequest.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:param page_size: The page_size of this DescribeCenRouteEntriesRequest. # noqa: E501
|
|
227
|
+
:type: int
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
self._page_size = page_size
|
|
231
|
+
|
|
232
|
+
def to_dict(self):
|
|
233
|
+
"""Returns the model properties as a dict"""
|
|
234
|
+
result = {}
|
|
235
|
+
|
|
236
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
237
|
+
value = getattr(self, attr)
|
|
238
|
+
if isinstance(value, list):
|
|
239
|
+
result[attr] = list(map(
|
|
240
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
241
|
+
value
|
|
242
|
+
))
|
|
243
|
+
elif hasattr(value, "to_dict"):
|
|
244
|
+
result[attr] = value.to_dict()
|
|
245
|
+
elif isinstance(value, dict):
|
|
246
|
+
result[attr] = dict(map(
|
|
247
|
+
lambda item: (item[0], item[1].to_dict())
|
|
248
|
+
if hasattr(item[1], "to_dict") else item,
|
|
249
|
+
value.items()
|
|
250
|
+
))
|
|
251
|
+
else:
|
|
252
|
+
result[attr] = value
|
|
253
|
+
if issubclass(DescribeCenRouteEntriesRequest, dict):
|
|
254
|
+
for key, value in self.items():
|
|
255
|
+
result[key] = value
|
|
256
|
+
|
|
257
|
+
return result
|
|
258
|
+
|
|
259
|
+
def to_str(self):
|
|
260
|
+
"""Returns the string representation of the model"""
|
|
261
|
+
return pprint.pformat(self.to_dict())
|
|
262
|
+
|
|
263
|
+
def __repr__(self):
|
|
264
|
+
"""For `print` and `pprint`"""
|
|
265
|
+
return self.to_str()
|
|
266
|
+
|
|
267
|
+
def __eq__(self, other):
|
|
268
|
+
"""Returns true if both objects are equal"""
|
|
269
|
+
if not isinstance(other, DescribeCenRouteEntriesRequest):
|
|
270
|
+
return False
|
|
271
|
+
|
|
272
|
+
return self.to_dict() == other.to_dict()
|
|
273
|
+
|
|
274
|
+
def __ne__(self, other):
|
|
275
|
+
"""Returns true if both objects are not equal"""
|
|
276
|
+
if not isinstance(other, DescribeCenRouteEntriesRequest):
|
|
277
|
+
return True
|
|
278
|
+
|
|
279
|
+
return self.to_dict() != other.to_dict()
|