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,175 @@
|
|
|
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 PublishToInstanceForCreateCenServiceRouteEntryInput(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
|
+
'instance_id': 'str',
|
|
37
|
+
'instance_region_id': 'str',
|
|
38
|
+
'instance_type': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'instance_id': 'InstanceId',
|
|
43
|
+
'instance_region_id': 'InstanceRegionId',
|
|
44
|
+
'instance_type': 'InstanceType'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, instance_id=None, instance_region_id=None, instance_type=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""PublishToInstanceForCreateCenServiceRouteEntryInput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._instance_id = None
|
|
54
|
+
self._instance_region_id = None
|
|
55
|
+
self._instance_type = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if instance_id is not None:
|
|
59
|
+
self.instance_id = instance_id
|
|
60
|
+
if instance_region_id is not None:
|
|
61
|
+
self.instance_region_id = instance_region_id
|
|
62
|
+
if instance_type is not None:
|
|
63
|
+
self.instance_type = instance_type
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def instance_id(self):
|
|
67
|
+
"""Gets the instance_id of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The instance_id of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._instance_id
|
|
74
|
+
|
|
75
|
+
@instance_id.setter
|
|
76
|
+
def instance_id(self, instance_id):
|
|
77
|
+
"""Sets the instance_id of this PublishToInstanceForCreateCenServiceRouteEntryInput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param instance_id: The instance_id of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._instance_id = instance_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def instance_region_id(self):
|
|
88
|
+
"""Gets the instance_region_id of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The instance_region_id of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._instance_region_id
|
|
95
|
+
|
|
96
|
+
@instance_region_id.setter
|
|
97
|
+
def instance_region_id(self, instance_region_id):
|
|
98
|
+
"""Sets the instance_region_id of this PublishToInstanceForCreateCenServiceRouteEntryInput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param instance_region_id: The instance_region_id of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._instance_region_id = instance_region_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def instance_type(self):
|
|
109
|
+
"""Gets the instance_type of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The instance_type of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._instance_type
|
|
116
|
+
|
|
117
|
+
@instance_type.setter
|
|
118
|
+
def instance_type(self, instance_type):
|
|
119
|
+
"""Sets the instance_type of this PublishToInstanceForCreateCenServiceRouteEntryInput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param instance_type: The instance_type of this PublishToInstanceForCreateCenServiceRouteEntryInput. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._instance_type = instance_type
|
|
127
|
+
|
|
128
|
+
def to_dict(self):
|
|
129
|
+
"""Returns the model properties as a dict"""
|
|
130
|
+
result = {}
|
|
131
|
+
|
|
132
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
133
|
+
value = getattr(self, attr)
|
|
134
|
+
if isinstance(value, list):
|
|
135
|
+
result[attr] = list(map(
|
|
136
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
137
|
+
value
|
|
138
|
+
))
|
|
139
|
+
elif hasattr(value, "to_dict"):
|
|
140
|
+
result[attr] = value.to_dict()
|
|
141
|
+
elif isinstance(value, dict):
|
|
142
|
+
result[attr] = dict(map(
|
|
143
|
+
lambda item: (item[0], item[1].to_dict())
|
|
144
|
+
if hasattr(item[1], "to_dict") else item,
|
|
145
|
+
value.items()
|
|
146
|
+
))
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
if issubclass(PublishToInstanceForCreateCenServiceRouteEntryInput, dict):
|
|
150
|
+
for key, value in self.items():
|
|
151
|
+
result[key] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, PublishToInstanceForCreateCenServiceRouteEntryInput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.to_dict() == other.to_dict()
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
if not isinstance(other, PublishToInstanceForCreateCenServiceRouteEntryInput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,175 @@
|
|
|
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 PublishToInstanceForDescribeCenServiceRouteEntriesOutput(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
|
+
'instance_id': 'str',
|
|
37
|
+
'instance_region_id': 'str',
|
|
38
|
+
'instance_type': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'instance_id': 'InstanceId',
|
|
43
|
+
'instance_region_id': 'InstanceRegionId',
|
|
44
|
+
'instance_type': 'InstanceType'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, instance_id=None, instance_region_id=None, instance_type=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""PublishToInstanceForDescribeCenServiceRouteEntriesOutput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._instance_id = None
|
|
54
|
+
self._instance_region_id = None
|
|
55
|
+
self._instance_type = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if instance_id is not None:
|
|
59
|
+
self.instance_id = instance_id
|
|
60
|
+
if instance_region_id is not None:
|
|
61
|
+
self.instance_region_id = instance_region_id
|
|
62
|
+
if instance_type is not None:
|
|
63
|
+
self.instance_type = instance_type
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def instance_id(self):
|
|
67
|
+
"""Gets the instance_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The instance_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._instance_id
|
|
74
|
+
|
|
75
|
+
@instance_id.setter
|
|
76
|
+
def instance_id(self, instance_id):
|
|
77
|
+
"""Sets the instance_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param instance_id: The instance_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._instance_id = instance_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def instance_region_id(self):
|
|
88
|
+
"""Gets the instance_region_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The instance_region_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._instance_region_id
|
|
95
|
+
|
|
96
|
+
@instance_region_id.setter
|
|
97
|
+
def instance_region_id(self, instance_region_id):
|
|
98
|
+
"""Sets the instance_region_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param instance_region_id: The instance_region_id of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._instance_region_id = instance_region_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def instance_type(self):
|
|
109
|
+
"""Gets the instance_type of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The instance_type of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._instance_type
|
|
116
|
+
|
|
117
|
+
@instance_type.setter
|
|
118
|
+
def instance_type(self, instance_type):
|
|
119
|
+
"""Sets the instance_type of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param instance_type: The instance_type of this PublishToInstanceForDescribeCenServiceRouteEntriesOutput. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._instance_type = instance_type
|
|
127
|
+
|
|
128
|
+
def to_dict(self):
|
|
129
|
+
"""Returns the model properties as a dict"""
|
|
130
|
+
result = {}
|
|
131
|
+
|
|
132
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
133
|
+
value = getattr(self, attr)
|
|
134
|
+
if isinstance(value, list):
|
|
135
|
+
result[attr] = list(map(
|
|
136
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
137
|
+
value
|
|
138
|
+
))
|
|
139
|
+
elif hasattr(value, "to_dict"):
|
|
140
|
+
result[attr] = value.to_dict()
|
|
141
|
+
elif isinstance(value, dict):
|
|
142
|
+
result[attr] = dict(map(
|
|
143
|
+
lambda item: (item[0], item[1].to_dict())
|
|
144
|
+
if hasattr(item[1], "to_dict") else item,
|
|
145
|
+
value.items()
|
|
146
|
+
))
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
if issubclass(PublishToInstanceForDescribeCenServiceRouteEntriesOutput, dict):
|
|
150
|
+
for key, value in self.items():
|
|
151
|
+
result[key] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, PublishToInstanceForDescribeCenServiceRouteEntriesOutput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.to_dict() == other.to_dict()
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
if not isinstance(other, PublishToInstanceForDescribeCenServiceRouteEntriesOutput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|
byteplussdkcen/models/publish_to_instance_for_modify_cen_service_route_entry_attributes_input.py
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
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 PublishToInstanceForModifyCenServiceRouteEntryAttributesInput(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
|
+
'instance_id': 'str',
|
|
37
|
+
'instance_region_id': 'str',
|
|
38
|
+
'instance_type': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'instance_id': 'InstanceId',
|
|
43
|
+
'instance_region_id': 'InstanceRegionId',
|
|
44
|
+
'instance_type': 'InstanceType'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, instance_id=None, instance_region_id=None, instance_type=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""PublishToInstanceForModifyCenServiceRouteEntryAttributesInput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._instance_id = None
|
|
54
|
+
self._instance_region_id = None
|
|
55
|
+
self._instance_type = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if instance_id is not None:
|
|
59
|
+
self.instance_id = instance_id
|
|
60
|
+
if instance_region_id is not None:
|
|
61
|
+
self.instance_region_id = instance_region_id
|
|
62
|
+
if instance_type is not None:
|
|
63
|
+
self.instance_type = instance_type
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def instance_id(self):
|
|
67
|
+
"""Gets the instance_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The instance_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._instance_id
|
|
74
|
+
|
|
75
|
+
@instance_id.setter
|
|
76
|
+
def instance_id(self, instance_id):
|
|
77
|
+
"""Sets the instance_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param instance_id: The instance_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._instance_id = instance_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def instance_region_id(self):
|
|
88
|
+
"""Gets the instance_region_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The instance_region_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._instance_region_id
|
|
95
|
+
|
|
96
|
+
@instance_region_id.setter
|
|
97
|
+
def instance_region_id(self, instance_region_id):
|
|
98
|
+
"""Sets the instance_region_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param instance_region_id: The instance_region_id of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._instance_region_id = instance_region_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def instance_type(self):
|
|
109
|
+
"""Gets the instance_type of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The instance_type of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._instance_type
|
|
116
|
+
|
|
117
|
+
@instance_type.setter
|
|
118
|
+
def instance_type(self, instance_type):
|
|
119
|
+
"""Sets the instance_type of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param instance_type: The instance_type of this PublishToInstanceForModifyCenServiceRouteEntryAttributesInput. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._instance_type = instance_type
|
|
127
|
+
|
|
128
|
+
def to_dict(self):
|
|
129
|
+
"""Returns the model properties as a dict"""
|
|
130
|
+
result = {}
|
|
131
|
+
|
|
132
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
133
|
+
value = getattr(self, attr)
|
|
134
|
+
if isinstance(value, list):
|
|
135
|
+
result[attr] = list(map(
|
|
136
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
137
|
+
value
|
|
138
|
+
))
|
|
139
|
+
elif hasattr(value, "to_dict"):
|
|
140
|
+
result[attr] = value.to_dict()
|
|
141
|
+
elif isinstance(value, dict):
|
|
142
|
+
result[attr] = dict(map(
|
|
143
|
+
lambda item: (item[0], item[1].to_dict())
|
|
144
|
+
if hasattr(item[1], "to_dict") else item,
|
|
145
|
+
value.items()
|
|
146
|
+
))
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
if issubclass(PublishToInstanceForModifyCenServiceRouteEntryAttributesInput, dict):
|
|
150
|
+
for key, value in self.items():
|
|
151
|
+
result[key] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, PublishToInstanceForModifyCenServiceRouteEntryAttributesInput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.to_dict() == other.to_dict()
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
if not isinstance(other, PublishToInstanceForModifyCenServiceRouteEntryAttributesInput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,176 @@
|
|
|
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 RenewCenBandwidthPackageRequest(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_bandwidth_package_id': 'str',
|
|
37
|
+
'period': 'int',
|
|
38
|
+
'period_unit': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'cen_bandwidth_package_id': 'CenBandwidthPackageId',
|
|
43
|
+
'period': 'Period',
|
|
44
|
+
'period_unit': 'PeriodUnit'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, cen_bandwidth_package_id=None, period=None, period_unit=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""RenewCenBandwidthPackageRequest - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._cen_bandwidth_package_id = None
|
|
54
|
+
self._period = None
|
|
55
|
+
self._period_unit = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
self.cen_bandwidth_package_id = cen_bandwidth_package_id
|
|
59
|
+
if period is not None:
|
|
60
|
+
self.period = period
|
|
61
|
+
if period_unit is not None:
|
|
62
|
+
self.period_unit = period_unit
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def cen_bandwidth_package_id(self):
|
|
66
|
+
"""Gets the cen_bandwidth_package_id of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:return: The cen_bandwidth_package_id of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._cen_bandwidth_package_id
|
|
73
|
+
|
|
74
|
+
@cen_bandwidth_package_id.setter
|
|
75
|
+
def cen_bandwidth_package_id(self, cen_bandwidth_package_id):
|
|
76
|
+
"""Sets the cen_bandwidth_package_id of this RenewCenBandwidthPackageRequest.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
:param cen_bandwidth_package_id: The cen_bandwidth_package_id of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
80
|
+
:type: str
|
|
81
|
+
"""
|
|
82
|
+
if self._configuration.client_side_validation and cen_bandwidth_package_id is None:
|
|
83
|
+
raise ValueError("Invalid value for `cen_bandwidth_package_id`, must not be `None`") # noqa: E501
|
|
84
|
+
|
|
85
|
+
self._cen_bandwidth_package_id = cen_bandwidth_package_id
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def period(self):
|
|
89
|
+
"""Gets the period of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
:return: The period of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
93
|
+
:rtype: int
|
|
94
|
+
"""
|
|
95
|
+
return self._period
|
|
96
|
+
|
|
97
|
+
@period.setter
|
|
98
|
+
def period(self, period):
|
|
99
|
+
"""Sets the period of this RenewCenBandwidthPackageRequest.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
:param period: The period of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
103
|
+
:type: int
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
self._period = period
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def period_unit(self):
|
|
110
|
+
"""Gets the period_unit of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The period_unit of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._period_unit
|
|
117
|
+
|
|
118
|
+
@period_unit.setter
|
|
119
|
+
def period_unit(self, period_unit):
|
|
120
|
+
"""Sets the period_unit of this RenewCenBandwidthPackageRequest.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param period_unit: The period_unit of this RenewCenBandwidthPackageRequest. # noqa: E501
|
|
124
|
+
:type: str
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._period_unit = period_unit
|
|
128
|
+
|
|
129
|
+
def to_dict(self):
|
|
130
|
+
"""Returns the model properties as a dict"""
|
|
131
|
+
result = {}
|
|
132
|
+
|
|
133
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
134
|
+
value = getattr(self, attr)
|
|
135
|
+
if isinstance(value, list):
|
|
136
|
+
result[attr] = list(map(
|
|
137
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
138
|
+
value
|
|
139
|
+
))
|
|
140
|
+
elif hasattr(value, "to_dict"):
|
|
141
|
+
result[attr] = value.to_dict()
|
|
142
|
+
elif isinstance(value, dict):
|
|
143
|
+
result[attr] = dict(map(
|
|
144
|
+
lambda item: (item[0], item[1].to_dict())
|
|
145
|
+
if hasattr(item[1], "to_dict") else item,
|
|
146
|
+
value.items()
|
|
147
|
+
))
|
|
148
|
+
else:
|
|
149
|
+
result[attr] = value
|
|
150
|
+
if issubclass(RenewCenBandwidthPackageRequest, dict):
|
|
151
|
+
for key, value in self.items():
|
|
152
|
+
result[key] = value
|
|
153
|
+
|
|
154
|
+
return result
|
|
155
|
+
|
|
156
|
+
def to_str(self):
|
|
157
|
+
"""Returns the string representation of the model"""
|
|
158
|
+
return pprint.pformat(self.to_dict())
|
|
159
|
+
|
|
160
|
+
def __repr__(self):
|
|
161
|
+
"""For `print` and `pprint`"""
|
|
162
|
+
return self.to_str()
|
|
163
|
+
|
|
164
|
+
def __eq__(self, other):
|
|
165
|
+
"""Returns true if both objects are equal"""
|
|
166
|
+
if not isinstance(other, RenewCenBandwidthPackageRequest):
|
|
167
|
+
return False
|
|
168
|
+
|
|
169
|
+
return self.to_dict() == other.to_dict()
|
|
170
|
+
|
|
171
|
+
def __ne__(self, other):
|
|
172
|
+
"""Returns true if both objects are not equal"""
|
|
173
|
+
if not isinstance(other, RenewCenBandwidthPackageRequest):
|
|
174
|
+
return True
|
|
175
|
+
|
|
176
|
+
return self.to_dict() != other.to_dict()
|