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,256 @@
|
|
|
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 ModifyCenServiceRouteEntryAttributesRequest(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
|
+
'description': 'str',
|
|
38
|
+
'destination_cidr_block': 'str',
|
|
39
|
+
'publish_mode': 'str',
|
|
40
|
+
'publish_to_instances': 'list[PublishToInstanceForModifyCenServiceRouteEntryAttributesInput]',
|
|
41
|
+
'service_region_id': 'str'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
'cen_id': 'CenId',
|
|
46
|
+
'description': 'Description',
|
|
47
|
+
'destination_cidr_block': 'DestinationCidrBlock',
|
|
48
|
+
'publish_mode': 'PublishMode',
|
|
49
|
+
'publish_to_instances': 'PublishToInstances',
|
|
50
|
+
'service_region_id': 'ServiceRegionId'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, cen_id=None, description=None, destination_cidr_block=None, publish_mode=None, publish_to_instances=None, service_region_id=None, _configuration=None): # noqa: E501
|
|
54
|
+
"""ModifyCenServiceRouteEntryAttributesRequest - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
if _configuration is None:
|
|
56
|
+
_configuration = Configuration()
|
|
57
|
+
self._configuration = _configuration
|
|
58
|
+
|
|
59
|
+
self._cen_id = None
|
|
60
|
+
self._description = None
|
|
61
|
+
self._destination_cidr_block = None
|
|
62
|
+
self._publish_mode = None
|
|
63
|
+
self._publish_to_instances = None
|
|
64
|
+
self._service_region_id = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
self.cen_id = cen_id
|
|
68
|
+
if description is not None:
|
|
69
|
+
self.description = description
|
|
70
|
+
self.destination_cidr_block = destination_cidr_block
|
|
71
|
+
if publish_mode is not None:
|
|
72
|
+
self.publish_mode = publish_mode
|
|
73
|
+
if publish_to_instances is not None:
|
|
74
|
+
self.publish_to_instances = publish_to_instances
|
|
75
|
+
self.service_region_id = service_region_id
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def cen_id(self):
|
|
79
|
+
"""Gets the cen_id of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
:return: The cen_id of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
83
|
+
:rtype: str
|
|
84
|
+
"""
|
|
85
|
+
return self._cen_id
|
|
86
|
+
|
|
87
|
+
@cen_id.setter
|
|
88
|
+
def cen_id(self, cen_id):
|
|
89
|
+
"""Sets the cen_id of this ModifyCenServiceRouteEntryAttributesRequest.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
:param cen_id: The cen_id of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
93
|
+
:type: str
|
|
94
|
+
"""
|
|
95
|
+
if self._configuration.client_side_validation and cen_id is None:
|
|
96
|
+
raise ValueError("Invalid value for `cen_id`, must not be `None`") # noqa: E501
|
|
97
|
+
|
|
98
|
+
self._cen_id = cen_id
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def description(self):
|
|
102
|
+
"""Gets the description of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:return: The description of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._description
|
|
109
|
+
|
|
110
|
+
@description.setter
|
|
111
|
+
def description(self, description):
|
|
112
|
+
"""Sets the description of this ModifyCenServiceRouteEntryAttributesRequest.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:param description: The description of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
116
|
+
:type: str
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
self._description = description
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def destination_cidr_block(self):
|
|
123
|
+
"""Gets the destination_cidr_block of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:return: The destination_cidr_block of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
127
|
+
:rtype: str
|
|
128
|
+
"""
|
|
129
|
+
return self._destination_cidr_block
|
|
130
|
+
|
|
131
|
+
@destination_cidr_block.setter
|
|
132
|
+
def destination_cidr_block(self, destination_cidr_block):
|
|
133
|
+
"""Sets the destination_cidr_block of this ModifyCenServiceRouteEntryAttributesRequest.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
:param destination_cidr_block: The destination_cidr_block of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
137
|
+
:type: str
|
|
138
|
+
"""
|
|
139
|
+
if self._configuration.client_side_validation and destination_cidr_block is None:
|
|
140
|
+
raise ValueError("Invalid value for `destination_cidr_block`, must not be `None`") # noqa: E501
|
|
141
|
+
|
|
142
|
+
self._destination_cidr_block = destination_cidr_block
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
def publish_mode(self):
|
|
146
|
+
"""Gets the publish_mode of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:return: The publish_mode of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
150
|
+
:rtype: str
|
|
151
|
+
"""
|
|
152
|
+
return self._publish_mode
|
|
153
|
+
|
|
154
|
+
@publish_mode.setter
|
|
155
|
+
def publish_mode(self, publish_mode):
|
|
156
|
+
"""Sets the publish_mode of this ModifyCenServiceRouteEntryAttributesRequest.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:param publish_mode: The publish_mode of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
160
|
+
:type: str
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
self._publish_mode = publish_mode
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
def publish_to_instances(self):
|
|
167
|
+
"""Gets the publish_to_instances of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:return: The publish_to_instances of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
171
|
+
:rtype: list[PublishToInstanceForModifyCenServiceRouteEntryAttributesInput]
|
|
172
|
+
"""
|
|
173
|
+
return self._publish_to_instances
|
|
174
|
+
|
|
175
|
+
@publish_to_instances.setter
|
|
176
|
+
def publish_to_instances(self, publish_to_instances):
|
|
177
|
+
"""Sets the publish_to_instances of this ModifyCenServiceRouteEntryAttributesRequest.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
:param publish_to_instances: The publish_to_instances of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
181
|
+
:type: list[PublishToInstanceForModifyCenServiceRouteEntryAttributesInput]
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
self._publish_to_instances = publish_to_instances
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def service_region_id(self):
|
|
188
|
+
"""Gets the service_region_id of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:return: The service_region_id of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._service_region_id
|
|
195
|
+
|
|
196
|
+
@service_region_id.setter
|
|
197
|
+
def service_region_id(self, service_region_id):
|
|
198
|
+
"""Sets the service_region_id of this ModifyCenServiceRouteEntryAttributesRequest.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
:param service_region_id: The service_region_id of this ModifyCenServiceRouteEntryAttributesRequest. # noqa: E501
|
|
202
|
+
:type: str
|
|
203
|
+
"""
|
|
204
|
+
if self._configuration.client_side_validation and service_region_id is None:
|
|
205
|
+
raise ValueError("Invalid value for `service_region_id`, must not be `None`") # noqa: E501
|
|
206
|
+
|
|
207
|
+
self._service_region_id = service_region_id
|
|
208
|
+
|
|
209
|
+
def to_dict(self):
|
|
210
|
+
"""Returns the model properties as a dict"""
|
|
211
|
+
result = {}
|
|
212
|
+
|
|
213
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
214
|
+
value = getattr(self, attr)
|
|
215
|
+
if isinstance(value, list):
|
|
216
|
+
result[attr] = list(map(
|
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
218
|
+
value
|
|
219
|
+
))
|
|
220
|
+
elif hasattr(value, "to_dict"):
|
|
221
|
+
result[attr] = value.to_dict()
|
|
222
|
+
elif isinstance(value, dict):
|
|
223
|
+
result[attr] = dict(map(
|
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
|
226
|
+
value.items()
|
|
227
|
+
))
|
|
228
|
+
else:
|
|
229
|
+
result[attr] = value
|
|
230
|
+
if issubclass(ModifyCenServiceRouteEntryAttributesRequest, dict):
|
|
231
|
+
for key, value in self.items():
|
|
232
|
+
result[key] = value
|
|
233
|
+
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
def to_str(self):
|
|
237
|
+
"""Returns the string representation of the model"""
|
|
238
|
+
return pprint.pformat(self.to_dict())
|
|
239
|
+
|
|
240
|
+
def __repr__(self):
|
|
241
|
+
"""For `print` and `pprint`"""
|
|
242
|
+
return self.to_str()
|
|
243
|
+
|
|
244
|
+
def __eq__(self, other):
|
|
245
|
+
"""Returns true if both objects are equal"""
|
|
246
|
+
if not isinstance(other, ModifyCenServiceRouteEntryAttributesRequest):
|
|
247
|
+
return False
|
|
248
|
+
|
|
249
|
+
return self.to_dict() == other.to_dict()
|
|
250
|
+
|
|
251
|
+
def __ne__(self, other):
|
|
252
|
+
"""Returns true if both objects are not equal"""
|
|
253
|
+
if not isinstance(other, ModifyCenServiceRouteEntryAttributesRequest):
|
|
254
|
+
return True
|
|
255
|
+
|
|
256
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,95 @@
|
|
|
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 ModifyCenServiceRouteEntryAttributesResponse(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
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, _configuration=None): # noqa: E501
|
|
42
|
+
"""ModifyCenServiceRouteEntryAttributesResponse - a model defined in Swagger""" # noqa: E501
|
|
43
|
+
if _configuration is None:
|
|
44
|
+
_configuration = Configuration()
|
|
45
|
+
self._configuration = _configuration
|
|
46
|
+
self.discriminator = None
|
|
47
|
+
|
|
48
|
+
def to_dict(self):
|
|
49
|
+
"""Returns the model properties as a dict"""
|
|
50
|
+
result = {}
|
|
51
|
+
|
|
52
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
53
|
+
value = getattr(self, attr)
|
|
54
|
+
if isinstance(value, list):
|
|
55
|
+
result[attr] = list(map(
|
|
56
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
57
|
+
value
|
|
58
|
+
))
|
|
59
|
+
elif hasattr(value, "to_dict"):
|
|
60
|
+
result[attr] = value.to_dict()
|
|
61
|
+
elif isinstance(value, dict):
|
|
62
|
+
result[attr] = dict(map(
|
|
63
|
+
lambda item: (item[0], item[1].to_dict())
|
|
64
|
+
if hasattr(item[1], "to_dict") else item,
|
|
65
|
+
value.items()
|
|
66
|
+
))
|
|
67
|
+
else:
|
|
68
|
+
result[attr] = value
|
|
69
|
+
if issubclass(ModifyCenServiceRouteEntryAttributesResponse, dict):
|
|
70
|
+
for key, value in self.items():
|
|
71
|
+
result[key] = value
|
|
72
|
+
|
|
73
|
+
return result
|
|
74
|
+
|
|
75
|
+
def to_str(self):
|
|
76
|
+
"""Returns the string representation of the model"""
|
|
77
|
+
return pprint.pformat(self.to_dict())
|
|
78
|
+
|
|
79
|
+
def __repr__(self):
|
|
80
|
+
"""For `print` and `pprint`"""
|
|
81
|
+
return self.to_str()
|
|
82
|
+
|
|
83
|
+
def __eq__(self, other):
|
|
84
|
+
"""Returns true if both objects are equal"""
|
|
85
|
+
if not isinstance(other, ModifyCenServiceRouteEntryAttributesResponse):
|
|
86
|
+
return False
|
|
87
|
+
|
|
88
|
+
return self.to_dict() == other.to_dict()
|
|
89
|
+
|
|
90
|
+
def __ne__(self, other):
|
|
91
|
+
"""Returns true if both objects are not equal"""
|
|
92
|
+
if not isinstance(other, ModifyCenServiceRouteEntryAttributesResponse):
|
|
93
|
+
return True
|
|
94
|
+
|
|
95
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,232 @@
|
|
|
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 PublishCenRouteEntryRequest(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
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'cen_id': 'CenId',
|
|
45
|
+
'destination_cidr_block': 'DestinationCidrBlock',
|
|
46
|
+
'instance_id': 'InstanceId',
|
|
47
|
+
'instance_region_id': 'InstanceRegionId',
|
|
48
|
+
'instance_type': 'InstanceType'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, cen_id=None, destination_cidr_block=None, instance_id=None, instance_region_id=None, instance_type=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""PublishCenRouteEntryRequest - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._cen_id = None
|
|
58
|
+
self._destination_cidr_block = None
|
|
59
|
+
self._instance_id = None
|
|
60
|
+
self._instance_region_id = None
|
|
61
|
+
self._instance_type = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.cen_id = cen_id
|
|
65
|
+
self.destination_cidr_block = destination_cidr_block
|
|
66
|
+
self.instance_id = instance_id
|
|
67
|
+
self.instance_region_id = instance_region_id
|
|
68
|
+
self.instance_type = instance_type
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def cen_id(self):
|
|
72
|
+
"""Gets the cen_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The cen_id of this PublishCenRouteEntryRequest. # 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 PublishCenRouteEntryRequest.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param cen_id: The cen_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
if self._configuration.client_side_validation and cen_id is None:
|
|
89
|
+
raise ValueError("Invalid value for `cen_id`, must not be `None`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
self._cen_id = cen_id
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def destination_cidr_block(self):
|
|
95
|
+
"""Gets the destination_cidr_block of this PublishCenRouteEntryRequest. # noqa: E501
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:return: The destination_cidr_block of this PublishCenRouteEntryRequest. # noqa: E501
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._destination_cidr_block
|
|
102
|
+
|
|
103
|
+
@destination_cidr_block.setter
|
|
104
|
+
def destination_cidr_block(self, destination_cidr_block):
|
|
105
|
+
"""Sets the destination_cidr_block of this PublishCenRouteEntryRequest.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:param destination_cidr_block: The destination_cidr_block of this PublishCenRouteEntryRequest. # noqa: E501
|
|
109
|
+
:type: str
|
|
110
|
+
"""
|
|
111
|
+
if self._configuration.client_side_validation and destination_cidr_block is None:
|
|
112
|
+
raise ValueError("Invalid value for `destination_cidr_block`, must not be `None`") # noqa: E501
|
|
113
|
+
|
|
114
|
+
self._destination_cidr_block = destination_cidr_block
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def instance_id(self):
|
|
118
|
+
"""Gets the instance_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:return: The instance_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
122
|
+
:rtype: str
|
|
123
|
+
"""
|
|
124
|
+
return self._instance_id
|
|
125
|
+
|
|
126
|
+
@instance_id.setter
|
|
127
|
+
def instance_id(self, instance_id):
|
|
128
|
+
"""Sets the instance_id of this PublishCenRouteEntryRequest.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param instance_id: The instance_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
132
|
+
:type: str
|
|
133
|
+
"""
|
|
134
|
+
if self._configuration.client_side_validation and instance_id is None:
|
|
135
|
+
raise ValueError("Invalid value for `instance_id`, must not be `None`") # noqa: E501
|
|
136
|
+
|
|
137
|
+
self._instance_id = instance_id
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def instance_region_id(self):
|
|
141
|
+
"""Gets the instance_region_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:return: The instance_region_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
145
|
+
:rtype: str
|
|
146
|
+
"""
|
|
147
|
+
return self._instance_region_id
|
|
148
|
+
|
|
149
|
+
@instance_region_id.setter
|
|
150
|
+
def instance_region_id(self, instance_region_id):
|
|
151
|
+
"""Sets the instance_region_id of this PublishCenRouteEntryRequest.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:param instance_region_id: The instance_region_id of this PublishCenRouteEntryRequest. # noqa: E501
|
|
155
|
+
:type: str
|
|
156
|
+
"""
|
|
157
|
+
if self._configuration.client_side_validation and instance_region_id is None:
|
|
158
|
+
raise ValueError("Invalid value for `instance_region_id`, must not be `None`") # noqa: E501
|
|
159
|
+
|
|
160
|
+
self._instance_region_id = instance_region_id
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def instance_type(self):
|
|
164
|
+
"""Gets the instance_type of this PublishCenRouteEntryRequest. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The instance_type of this PublishCenRouteEntryRequest. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._instance_type
|
|
171
|
+
|
|
172
|
+
@instance_type.setter
|
|
173
|
+
def instance_type(self, instance_type):
|
|
174
|
+
"""Sets the instance_type of this PublishCenRouteEntryRequest.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param instance_type: The instance_type of this PublishCenRouteEntryRequest. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
if self._configuration.client_side_validation and instance_type is None:
|
|
181
|
+
raise ValueError("Invalid value for `instance_type`, must not be `None`") # noqa: E501
|
|
182
|
+
|
|
183
|
+
self._instance_type = instance_type
|
|
184
|
+
|
|
185
|
+
def to_dict(self):
|
|
186
|
+
"""Returns the model properties as a dict"""
|
|
187
|
+
result = {}
|
|
188
|
+
|
|
189
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
190
|
+
value = getattr(self, attr)
|
|
191
|
+
if isinstance(value, list):
|
|
192
|
+
result[attr] = list(map(
|
|
193
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
194
|
+
value
|
|
195
|
+
))
|
|
196
|
+
elif hasattr(value, "to_dict"):
|
|
197
|
+
result[attr] = value.to_dict()
|
|
198
|
+
elif isinstance(value, dict):
|
|
199
|
+
result[attr] = dict(map(
|
|
200
|
+
lambda item: (item[0], item[1].to_dict())
|
|
201
|
+
if hasattr(item[1], "to_dict") else item,
|
|
202
|
+
value.items()
|
|
203
|
+
))
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
if issubclass(PublishCenRouteEntryRequest, dict):
|
|
207
|
+
for key, value in self.items():
|
|
208
|
+
result[key] = value
|
|
209
|
+
|
|
210
|
+
return result
|
|
211
|
+
|
|
212
|
+
def to_str(self):
|
|
213
|
+
"""Returns the string representation of the model"""
|
|
214
|
+
return pprint.pformat(self.to_dict())
|
|
215
|
+
|
|
216
|
+
def __repr__(self):
|
|
217
|
+
"""For `print` and `pprint`"""
|
|
218
|
+
return self.to_str()
|
|
219
|
+
|
|
220
|
+
def __eq__(self, other):
|
|
221
|
+
"""Returns true if both objects are equal"""
|
|
222
|
+
if not isinstance(other, PublishCenRouteEntryRequest):
|
|
223
|
+
return False
|
|
224
|
+
|
|
225
|
+
return self.to_dict() == other.to_dict()
|
|
226
|
+
|
|
227
|
+
def __ne__(self, other):
|
|
228
|
+
"""Returns true if both objects are not equal"""
|
|
229
|
+
if not isinstance(other, PublishCenRouteEntryRequest):
|
|
230
|
+
return True
|
|
231
|
+
|
|
232
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,95 @@
|
|
|
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 PublishCenRouteEntryResponse(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
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, _configuration=None): # noqa: E501
|
|
42
|
+
"""PublishCenRouteEntryResponse - a model defined in Swagger""" # noqa: E501
|
|
43
|
+
if _configuration is None:
|
|
44
|
+
_configuration = Configuration()
|
|
45
|
+
self._configuration = _configuration
|
|
46
|
+
self.discriminator = None
|
|
47
|
+
|
|
48
|
+
def to_dict(self):
|
|
49
|
+
"""Returns the model properties as a dict"""
|
|
50
|
+
result = {}
|
|
51
|
+
|
|
52
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
53
|
+
value = getattr(self, attr)
|
|
54
|
+
if isinstance(value, list):
|
|
55
|
+
result[attr] = list(map(
|
|
56
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
57
|
+
value
|
|
58
|
+
))
|
|
59
|
+
elif hasattr(value, "to_dict"):
|
|
60
|
+
result[attr] = value.to_dict()
|
|
61
|
+
elif isinstance(value, dict):
|
|
62
|
+
result[attr] = dict(map(
|
|
63
|
+
lambda item: (item[0], item[1].to_dict())
|
|
64
|
+
if hasattr(item[1], "to_dict") else item,
|
|
65
|
+
value.items()
|
|
66
|
+
))
|
|
67
|
+
else:
|
|
68
|
+
result[attr] = value
|
|
69
|
+
if issubclass(PublishCenRouteEntryResponse, dict):
|
|
70
|
+
for key, value in self.items():
|
|
71
|
+
result[key] = value
|
|
72
|
+
|
|
73
|
+
return result
|
|
74
|
+
|
|
75
|
+
def to_str(self):
|
|
76
|
+
"""Returns the string representation of the model"""
|
|
77
|
+
return pprint.pformat(self.to_dict())
|
|
78
|
+
|
|
79
|
+
def __repr__(self):
|
|
80
|
+
"""For `print` and `pprint`"""
|
|
81
|
+
return self.to_str()
|
|
82
|
+
|
|
83
|
+
def __eq__(self, other):
|
|
84
|
+
"""Returns true if both objects are equal"""
|
|
85
|
+
if not isinstance(other, PublishCenRouteEntryResponse):
|
|
86
|
+
return False
|
|
87
|
+
|
|
88
|
+
return self.to_dict() == other.to_dict()
|
|
89
|
+
|
|
90
|
+
def __ne__(self, other):
|
|
91
|
+
"""Returns true if both objects are not equal"""
|
|
92
|
+
if not isinstance(other, PublishCenRouteEntryResponse):
|
|
93
|
+
return True
|
|
94
|
+
|
|
95
|
+
return self.to_dict() != other.to_dict()
|