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,462 @@
|
|
|
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 CreateCenBandwidthPackageRequest(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
|
+
'bandwidth': 'int',
|
|
37
|
+
'billing_type': 'int',
|
|
38
|
+
'cen_bandwidth_package_name': 'str',
|
|
39
|
+
'cen_id': 'str',
|
|
40
|
+
'client_token': 'str',
|
|
41
|
+
'description': 'str',
|
|
42
|
+
'line_operator': 'str',
|
|
43
|
+
'local_geographic_region_set_id': 'str',
|
|
44
|
+
'peer_geographic_region_set_id': 'str',
|
|
45
|
+
'period': 'int',
|
|
46
|
+
'period_unit': 'str',
|
|
47
|
+
'project_name': 'str',
|
|
48
|
+
'tags': 'list[TagForCreateCenBandwidthPackageInput]'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'bandwidth': 'Bandwidth',
|
|
53
|
+
'billing_type': 'BillingType',
|
|
54
|
+
'cen_bandwidth_package_name': 'CenBandwidthPackageName',
|
|
55
|
+
'cen_id': 'CenId',
|
|
56
|
+
'client_token': 'ClientToken',
|
|
57
|
+
'description': 'Description',
|
|
58
|
+
'line_operator': 'LineOperator',
|
|
59
|
+
'local_geographic_region_set_id': 'LocalGeographicRegionSetId',
|
|
60
|
+
'peer_geographic_region_set_id': 'PeerGeographicRegionSetId',
|
|
61
|
+
'period': 'Period',
|
|
62
|
+
'period_unit': 'PeriodUnit',
|
|
63
|
+
'project_name': 'ProjectName',
|
|
64
|
+
'tags': 'Tags'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
def __init__(self, bandwidth=None, billing_type=None, cen_bandwidth_package_name=None, cen_id=None, client_token=None, description=None, line_operator=None, local_geographic_region_set_id=None, peer_geographic_region_set_id=None, period=None, period_unit=None, project_name=None, tags=None, _configuration=None): # noqa: E501
|
|
68
|
+
"""CreateCenBandwidthPackageRequest - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
if _configuration is None:
|
|
70
|
+
_configuration = Configuration()
|
|
71
|
+
self._configuration = _configuration
|
|
72
|
+
|
|
73
|
+
self._bandwidth = None
|
|
74
|
+
self._billing_type = None
|
|
75
|
+
self._cen_bandwidth_package_name = None
|
|
76
|
+
self._cen_id = None
|
|
77
|
+
self._client_token = None
|
|
78
|
+
self._description = None
|
|
79
|
+
self._line_operator = None
|
|
80
|
+
self._local_geographic_region_set_id = None
|
|
81
|
+
self._peer_geographic_region_set_id = None
|
|
82
|
+
self._period = None
|
|
83
|
+
self._period_unit = None
|
|
84
|
+
self._project_name = None
|
|
85
|
+
self._tags = None
|
|
86
|
+
self.discriminator = None
|
|
87
|
+
|
|
88
|
+
if bandwidth is not None:
|
|
89
|
+
self.bandwidth = bandwidth
|
|
90
|
+
if billing_type is not None:
|
|
91
|
+
self.billing_type = billing_type
|
|
92
|
+
if cen_bandwidth_package_name is not None:
|
|
93
|
+
self.cen_bandwidth_package_name = cen_bandwidth_package_name
|
|
94
|
+
if cen_id is not None:
|
|
95
|
+
self.cen_id = cen_id
|
|
96
|
+
if client_token is not None:
|
|
97
|
+
self.client_token = client_token
|
|
98
|
+
if description is not None:
|
|
99
|
+
self.description = description
|
|
100
|
+
if line_operator is not None:
|
|
101
|
+
self.line_operator = line_operator
|
|
102
|
+
self.local_geographic_region_set_id = local_geographic_region_set_id
|
|
103
|
+
self.peer_geographic_region_set_id = peer_geographic_region_set_id
|
|
104
|
+
if period is not None:
|
|
105
|
+
self.period = period
|
|
106
|
+
if period_unit is not None:
|
|
107
|
+
self.period_unit = period_unit
|
|
108
|
+
if project_name is not None:
|
|
109
|
+
self.project_name = project_name
|
|
110
|
+
if tags is not None:
|
|
111
|
+
self.tags = tags
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def bandwidth(self):
|
|
115
|
+
"""Gets the bandwidth of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:return: The bandwidth of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
119
|
+
:rtype: int
|
|
120
|
+
"""
|
|
121
|
+
return self._bandwidth
|
|
122
|
+
|
|
123
|
+
@bandwidth.setter
|
|
124
|
+
def bandwidth(self, bandwidth):
|
|
125
|
+
"""Sets the bandwidth of this CreateCenBandwidthPackageRequest.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param bandwidth: The bandwidth of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
129
|
+
:type: int
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._bandwidth = bandwidth
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def billing_type(self):
|
|
136
|
+
"""Gets the billing_type of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:return: The billing_type of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
140
|
+
:rtype: int
|
|
141
|
+
"""
|
|
142
|
+
return self._billing_type
|
|
143
|
+
|
|
144
|
+
@billing_type.setter
|
|
145
|
+
def billing_type(self, billing_type):
|
|
146
|
+
"""Sets the billing_type of this CreateCenBandwidthPackageRequest.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:param billing_type: The billing_type of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
150
|
+
:type: int
|
|
151
|
+
"""
|
|
152
|
+
if (self._configuration.client_side_validation and
|
|
153
|
+
billing_type is not None and billing_type > 4): # noqa: E501
|
|
154
|
+
raise ValueError("Invalid value for `billing_type`, must be a value less than or equal to `4`") # noqa: E501
|
|
155
|
+
if (self._configuration.client_side_validation and
|
|
156
|
+
billing_type is not None and billing_type < 1): # noqa: E501
|
|
157
|
+
raise ValueError("Invalid value for `billing_type`, must be a value greater than or equal to `1`") # noqa: E501
|
|
158
|
+
|
|
159
|
+
self._billing_type = billing_type
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def cen_bandwidth_package_name(self):
|
|
163
|
+
"""Gets the cen_bandwidth_package_name of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:return: The cen_bandwidth_package_name of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._cen_bandwidth_package_name
|
|
170
|
+
|
|
171
|
+
@cen_bandwidth_package_name.setter
|
|
172
|
+
def cen_bandwidth_package_name(self, cen_bandwidth_package_name):
|
|
173
|
+
"""Sets the cen_bandwidth_package_name of this CreateCenBandwidthPackageRequest.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:param cen_bandwidth_package_name: The cen_bandwidth_package_name of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
177
|
+
:type: str
|
|
178
|
+
"""
|
|
179
|
+
if (self._configuration.client_side_validation and
|
|
180
|
+
cen_bandwidth_package_name is not None and len(cen_bandwidth_package_name) > 128):
|
|
181
|
+
raise ValueError("Invalid value for `cen_bandwidth_package_name`, length must be less than or equal to `128`") # noqa: E501
|
|
182
|
+
if (self._configuration.client_side_validation and
|
|
183
|
+
cen_bandwidth_package_name is not None and len(cen_bandwidth_package_name) < 1):
|
|
184
|
+
raise ValueError("Invalid value for `cen_bandwidth_package_name`, length must be greater than or equal to `1`") # noqa: E501
|
|
185
|
+
|
|
186
|
+
self._cen_bandwidth_package_name = cen_bandwidth_package_name
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def cen_id(self):
|
|
190
|
+
"""Gets the cen_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:return: The cen_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._cen_id
|
|
197
|
+
|
|
198
|
+
@cen_id.setter
|
|
199
|
+
def cen_id(self, cen_id):
|
|
200
|
+
"""Sets the cen_id of this CreateCenBandwidthPackageRequest.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:param cen_id: The cen_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
204
|
+
:type: str
|
|
205
|
+
"""
|
|
206
|
+
|
|
207
|
+
self._cen_id = cen_id
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
def client_token(self):
|
|
211
|
+
"""Gets the client_token of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
:return: The client_token of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
215
|
+
:rtype: str
|
|
216
|
+
"""
|
|
217
|
+
return self._client_token
|
|
218
|
+
|
|
219
|
+
@client_token.setter
|
|
220
|
+
def client_token(self, client_token):
|
|
221
|
+
"""Sets the client_token of this CreateCenBandwidthPackageRequest.
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:param client_token: The client_token of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
225
|
+
:type: str
|
|
226
|
+
"""
|
|
227
|
+
|
|
228
|
+
self._client_token = client_token
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def description(self):
|
|
232
|
+
"""Gets the description of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
:return: The description of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
236
|
+
:rtype: str
|
|
237
|
+
"""
|
|
238
|
+
return self._description
|
|
239
|
+
|
|
240
|
+
@description.setter
|
|
241
|
+
def description(self, description):
|
|
242
|
+
"""Sets the description of this CreateCenBandwidthPackageRequest.
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:param description: The description of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
246
|
+
:type: str
|
|
247
|
+
"""
|
|
248
|
+
if (self._configuration.client_side_validation and
|
|
249
|
+
description is not None and len(description) > 255):
|
|
250
|
+
raise ValueError("Invalid value for `description`, length must be less than or equal to `255`") # noqa: E501
|
|
251
|
+
if (self._configuration.client_side_validation and
|
|
252
|
+
description is not None and len(description) < 1):
|
|
253
|
+
raise ValueError("Invalid value for `description`, length must be greater than or equal to `1`") # noqa: E501
|
|
254
|
+
|
|
255
|
+
self._description = description
|
|
256
|
+
|
|
257
|
+
@property
|
|
258
|
+
def line_operator(self):
|
|
259
|
+
"""Gets the line_operator of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
:return: The line_operator of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
263
|
+
:rtype: str
|
|
264
|
+
"""
|
|
265
|
+
return self._line_operator
|
|
266
|
+
|
|
267
|
+
@line_operator.setter
|
|
268
|
+
def line_operator(self, line_operator):
|
|
269
|
+
"""Sets the line_operator of this CreateCenBandwidthPackageRequest.
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
:param line_operator: The line_operator of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
273
|
+
:type: str
|
|
274
|
+
"""
|
|
275
|
+
|
|
276
|
+
self._line_operator = line_operator
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
def local_geographic_region_set_id(self):
|
|
280
|
+
"""Gets the local_geographic_region_set_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
:return: The local_geographic_region_set_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
284
|
+
:rtype: str
|
|
285
|
+
"""
|
|
286
|
+
return self._local_geographic_region_set_id
|
|
287
|
+
|
|
288
|
+
@local_geographic_region_set_id.setter
|
|
289
|
+
def local_geographic_region_set_id(self, local_geographic_region_set_id):
|
|
290
|
+
"""Sets the local_geographic_region_set_id of this CreateCenBandwidthPackageRequest.
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
:param local_geographic_region_set_id: The local_geographic_region_set_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
294
|
+
:type: str
|
|
295
|
+
"""
|
|
296
|
+
if self._configuration.client_side_validation and local_geographic_region_set_id is None:
|
|
297
|
+
raise ValueError("Invalid value for `local_geographic_region_set_id`, must not be `None`") # noqa: E501
|
|
298
|
+
|
|
299
|
+
self._local_geographic_region_set_id = local_geographic_region_set_id
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def peer_geographic_region_set_id(self):
|
|
303
|
+
"""Gets the peer_geographic_region_set_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:return: The peer_geographic_region_set_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
307
|
+
:rtype: str
|
|
308
|
+
"""
|
|
309
|
+
return self._peer_geographic_region_set_id
|
|
310
|
+
|
|
311
|
+
@peer_geographic_region_set_id.setter
|
|
312
|
+
def peer_geographic_region_set_id(self, peer_geographic_region_set_id):
|
|
313
|
+
"""Sets the peer_geographic_region_set_id of this CreateCenBandwidthPackageRequest.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
:param peer_geographic_region_set_id: The peer_geographic_region_set_id of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
317
|
+
:type: str
|
|
318
|
+
"""
|
|
319
|
+
if self._configuration.client_side_validation and peer_geographic_region_set_id is None:
|
|
320
|
+
raise ValueError("Invalid value for `peer_geographic_region_set_id`, must not be `None`") # noqa: E501
|
|
321
|
+
|
|
322
|
+
self._peer_geographic_region_set_id = peer_geographic_region_set_id
|
|
323
|
+
|
|
324
|
+
@property
|
|
325
|
+
def period(self):
|
|
326
|
+
"""Gets the period of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
:return: The period of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
330
|
+
:rtype: int
|
|
331
|
+
"""
|
|
332
|
+
return self._period
|
|
333
|
+
|
|
334
|
+
@period.setter
|
|
335
|
+
def period(self, period):
|
|
336
|
+
"""Sets the period of this CreateCenBandwidthPackageRequest.
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
:param period: The period of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
340
|
+
:type: int
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
self._period = period
|
|
344
|
+
|
|
345
|
+
@property
|
|
346
|
+
def period_unit(self):
|
|
347
|
+
"""Gets the period_unit of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
:return: The period_unit of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
351
|
+
:rtype: str
|
|
352
|
+
"""
|
|
353
|
+
return self._period_unit
|
|
354
|
+
|
|
355
|
+
@period_unit.setter
|
|
356
|
+
def period_unit(self, period_unit):
|
|
357
|
+
"""Sets the period_unit of this CreateCenBandwidthPackageRequest.
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
:param period_unit: The period_unit of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
361
|
+
:type: str
|
|
362
|
+
"""
|
|
363
|
+
allowed_values = ["Month", "Year"] # noqa: E501
|
|
364
|
+
if (self._configuration.client_side_validation and
|
|
365
|
+
period_unit not in allowed_values):
|
|
366
|
+
raise ValueError(
|
|
367
|
+
"Invalid value for `period_unit` ({0}), must be one of {1}" # noqa: E501
|
|
368
|
+
.format(period_unit, allowed_values)
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
self._period_unit = period_unit
|
|
372
|
+
|
|
373
|
+
@property
|
|
374
|
+
def project_name(self):
|
|
375
|
+
"""Gets the project_name of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
:return: The project_name of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
379
|
+
:rtype: str
|
|
380
|
+
"""
|
|
381
|
+
return self._project_name
|
|
382
|
+
|
|
383
|
+
@project_name.setter
|
|
384
|
+
def project_name(self, project_name):
|
|
385
|
+
"""Sets the project_name of this CreateCenBandwidthPackageRequest.
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
:param project_name: The project_name of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
389
|
+
:type: str
|
|
390
|
+
"""
|
|
391
|
+
|
|
392
|
+
self._project_name = project_name
|
|
393
|
+
|
|
394
|
+
@property
|
|
395
|
+
def tags(self):
|
|
396
|
+
"""Gets the tags of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
:return: The tags of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
400
|
+
:rtype: list[TagForCreateCenBandwidthPackageInput]
|
|
401
|
+
"""
|
|
402
|
+
return self._tags
|
|
403
|
+
|
|
404
|
+
@tags.setter
|
|
405
|
+
def tags(self, tags):
|
|
406
|
+
"""Sets the tags of this CreateCenBandwidthPackageRequest.
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
:param tags: The tags of this CreateCenBandwidthPackageRequest. # noqa: E501
|
|
410
|
+
:type: list[TagForCreateCenBandwidthPackageInput]
|
|
411
|
+
"""
|
|
412
|
+
|
|
413
|
+
self._tags = tags
|
|
414
|
+
|
|
415
|
+
def to_dict(self):
|
|
416
|
+
"""Returns the model properties as a dict"""
|
|
417
|
+
result = {}
|
|
418
|
+
|
|
419
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
420
|
+
value = getattr(self, attr)
|
|
421
|
+
if isinstance(value, list):
|
|
422
|
+
result[attr] = list(map(
|
|
423
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
424
|
+
value
|
|
425
|
+
))
|
|
426
|
+
elif hasattr(value, "to_dict"):
|
|
427
|
+
result[attr] = value.to_dict()
|
|
428
|
+
elif isinstance(value, dict):
|
|
429
|
+
result[attr] = dict(map(
|
|
430
|
+
lambda item: (item[0], item[1].to_dict())
|
|
431
|
+
if hasattr(item[1], "to_dict") else item,
|
|
432
|
+
value.items()
|
|
433
|
+
))
|
|
434
|
+
else:
|
|
435
|
+
result[attr] = value
|
|
436
|
+
if issubclass(CreateCenBandwidthPackageRequest, dict):
|
|
437
|
+
for key, value in self.items():
|
|
438
|
+
result[key] = value
|
|
439
|
+
|
|
440
|
+
return result
|
|
441
|
+
|
|
442
|
+
def to_str(self):
|
|
443
|
+
"""Returns the string representation of the model"""
|
|
444
|
+
return pprint.pformat(self.to_dict())
|
|
445
|
+
|
|
446
|
+
def __repr__(self):
|
|
447
|
+
"""For `print` and `pprint`"""
|
|
448
|
+
return self.to_str()
|
|
449
|
+
|
|
450
|
+
def __eq__(self, other):
|
|
451
|
+
"""Returns true if both objects are equal"""
|
|
452
|
+
if not isinstance(other, CreateCenBandwidthPackageRequest):
|
|
453
|
+
return False
|
|
454
|
+
|
|
455
|
+
return self.to_dict() == other.to_dict()
|
|
456
|
+
|
|
457
|
+
def __ne__(self, other):
|
|
458
|
+
"""Returns true if both objects are not equal"""
|
|
459
|
+
if not isinstance(other, CreateCenBandwidthPackageRequest):
|
|
460
|
+
return True
|
|
461
|
+
|
|
462
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,123 @@
|
|
|
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 CreateCenBandwidthPackageResponse(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
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'cen_bandwidth_package_id': 'CenBandwidthPackageId'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, cen_bandwidth_package_id=None, _configuration=None): # noqa: E501
|
|
44
|
+
"""CreateCenBandwidthPackageResponse - a model defined in Swagger""" # noqa: E501
|
|
45
|
+
if _configuration is None:
|
|
46
|
+
_configuration = Configuration()
|
|
47
|
+
self._configuration = _configuration
|
|
48
|
+
|
|
49
|
+
self._cen_bandwidth_package_id = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if cen_bandwidth_package_id is not None:
|
|
53
|
+
self.cen_bandwidth_package_id = cen_bandwidth_package_id
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def cen_bandwidth_package_id(self):
|
|
57
|
+
"""Gets the cen_bandwidth_package_id of this CreateCenBandwidthPackageResponse. # noqa: E501
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:return: The cen_bandwidth_package_id of this CreateCenBandwidthPackageResponse. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._cen_bandwidth_package_id
|
|
64
|
+
|
|
65
|
+
@cen_bandwidth_package_id.setter
|
|
66
|
+
def cen_bandwidth_package_id(self, cen_bandwidth_package_id):
|
|
67
|
+
"""Sets the cen_bandwidth_package_id of this CreateCenBandwidthPackageResponse.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:param cen_bandwidth_package_id: The cen_bandwidth_package_id of this CreateCenBandwidthPackageResponse. # noqa: E501
|
|
71
|
+
:type: str
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
self._cen_bandwidth_package_id = cen_bandwidth_package_id
|
|
75
|
+
|
|
76
|
+
def to_dict(self):
|
|
77
|
+
"""Returns the model properties as a dict"""
|
|
78
|
+
result = {}
|
|
79
|
+
|
|
80
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
81
|
+
value = getattr(self, attr)
|
|
82
|
+
if isinstance(value, list):
|
|
83
|
+
result[attr] = list(map(
|
|
84
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
85
|
+
value
|
|
86
|
+
))
|
|
87
|
+
elif hasattr(value, "to_dict"):
|
|
88
|
+
result[attr] = value.to_dict()
|
|
89
|
+
elif isinstance(value, dict):
|
|
90
|
+
result[attr] = dict(map(
|
|
91
|
+
lambda item: (item[0], item[1].to_dict())
|
|
92
|
+
if hasattr(item[1], "to_dict") else item,
|
|
93
|
+
value.items()
|
|
94
|
+
))
|
|
95
|
+
else:
|
|
96
|
+
result[attr] = value
|
|
97
|
+
if issubclass(CreateCenBandwidthPackageResponse, dict):
|
|
98
|
+
for key, value in self.items():
|
|
99
|
+
result[key] = value
|
|
100
|
+
|
|
101
|
+
return result
|
|
102
|
+
|
|
103
|
+
def to_str(self):
|
|
104
|
+
"""Returns the string representation of the model"""
|
|
105
|
+
return pprint.pformat(self.to_dict())
|
|
106
|
+
|
|
107
|
+
def __repr__(self):
|
|
108
|
+
"""For `print` and `pprint`"""
|
|
109
|
+
return self.to_str()
|
|
110
|
+
|
|
111
|
+
def __eq__(self, other):
|
|
112
|
+
"""Returns true if both objects are equal"""
|
|
113
|
+
if not isinstance(other, CreateCenBandwidthPackageResponse):
|
|
114
|
+
return False
|
|
115
|
+
|
|
116
|
+
return self.to_dict() == other.to_dict()
|
|
117
|
+
|
|
118
|
+
def __ne__(self, other):
|
|
119
|
+
"""Returns true if both objects are not equal"""
|
|
120
|
+
if not isinstance(other, CreateCenBandwidthPackageResponse):
|
|
121
|
+
return True
|
|
122
|
+
|
|
123
|
+
return self.to_dict() != other.to_dict()
|