byteplus-python-sdk-v2 3.0.51__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.51.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.51.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/RECORD +185 -44
- {byteplus_python_sdk_v2-3.0.51.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/WHEEL +1 -1
- {byteplus_python_sdk_v2-3.0.51.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
- byteplussdkvs/models/create_voice_task_request.py +3 -3
- {byteplus_python_sdk_v2-3.0.51.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.51.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
transitrouter
|
|
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 CreateTransitRouterGrantRuleRequest(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
|
+
'description': 'str',
|
|
37
|
+
'grant_account_id': 'str',
|
|
38
|
+
'transit_router_id': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'description': 'Description',
|
|
43
|
+
'grant_account_id': 'GrantAccountId',
|
|
44
|
+
'transit_router_id': 'TransitRouterId'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, description=None, grant_account_id=None, transit_router_id=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""CreateTransitRouterGrantRuleRequest - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._description = None
|
|
54
|
+
self._grant_account_id = None
|
|
55
|
+
self._transit_router_id = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if description is not None:
|
|
59
|
+
self.description = description
|
|
60
|
+
self.grant_account_id = grant_account_id
|
|
61
|
+
self.transit_router_id = transit_router_id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def description(self):
|
|
65
|
+
"""Gets the description of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The description of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._description
|
|
72
|
+
|
|
73
|
+
@description.setter
|
|
74
|
+
def description(self, description):
|
|
75
|
+
"""Sets the description of this CreateTransitRouterGrantRuleRequest.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param description: The description of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._description = description
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def grant_account_id(self):
|
|
86
|
+
"""Gets the grant_account_id of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The grant_account_id of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._grant_account_id
|
|
93
|
+
|
|
94
|
+
@grant_account_id.setter
|
|
95
|
+
def grant_account_id(self, grant_account_id):
|
|
96
|
+
"""Sets the grant_account_id of this CreateTransitRouterGrantRuleRequest.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param grant_account_id: The grant_account_id of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
if self._configuration.client_side_validation and grant_account_id is None:
|
|
103
|
+
raise ValueError("Invalid value for `grant_account_id`, must not be `None`") # noqa: E501
|
|
104
|
+
|
|
105
|
+
self._grant_account_id = grant_account_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def transit_router_id(self):
|
|
109
|
+
"""Gets the transit_router_id of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The transit_router_id of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._transit_router_id
|
|
116
|
+
|
|
117
|
+
@transit_router_id.setter
|
|
118
|
+
def transit_router_id(self, transit_router_id):
|
|
119
|
+
"""Sets the transit_router_id of this CreateTransitRouterGrantRuleRequest.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param transit_router_id: The transit_router_id of this CreateTransitRouterGrantRuleRequest. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
if self._configuration.client_side_validation and transit_router_id is None:
|
|
126
|
+
raise ValueError("Invalid value for `transit_router_id`, must not be `None`") # noqa: E501
|
|
127
|
+
|
|
128
|
+
self._transit_router_id = transit_router_id
|
|
129
|
+
|
|
130
|
+
def to_dict(self):
|
|
131
|
+
"""Returns the model properties as a dict"""
|
|
132
|
+
result = {}
|
|
133
|
+
|
|
134
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
135
|
+
value = getattr(self, attr)
|
|
136
|
+
if isinstance(value, list):
|
|
137
|
+
result[attr] = list(map(
|
|
138
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
139
|
+
value
|
|
140
|
+
))
|
|
141
|
+
elif hasattr(value, "to_dict"):
|
|
142
|
+
result[attr] = value.to_dict()
|
|
143
|
+
elif isinstance(value, dict):
|
|
144
|
+
result[attr] = dict(map(
|
|
145
|
+
lambda item: (item[0], item[1].to_dict())
|
|
146
|
+
if hasattr(item[1], "to_dict") else item,
|
|
147
|
+
value.items()
|
|
148
|
+
))
|
|
149
|
+
else:
|
|
150
|
+
result[attr] = value
|
|
151
|
+
if issubclass(CreateTransitRouterGrantRuleRequest, dict):
|
|
152
|
+
for key, value in self.items():
|
|
153
|
+
result[key] = value
|
|
154
|
+
|
|
155
|
+
return result
|
|
156
|
+
|
|
157
|
+
def to_str(self):
|
|
158
|
+
"""Returns the string representation of the model"""
|
|
159
|
+
return pprint.pformat(self.to_dict())
|
|
160
|
+
|
|
161
|
+
def __repr__(self):
|
|
162
|
+
"""For `print` and `pprint`"""
|
|
163
|
+
return self.to_str()
|
|
164
|
+
|
|
165
|
+
def __eq__(self, other):
|
|
166
|
+
"""Returns true if both objects are equal"""
|
|
167
|
+
if not isinstance(other, CreateTransitRouterGrantRuleRequest):
|
|
168
|
+
return False
|
|
169
|
+
|
|
170
|
+
return self.to_dict() == other.to_dict()
|
|
171
|
+
|
|
172
|
+
def __ne__(self, other):
|
|
173
|
+
"""Returns true if both objects are not equal"""
|
|
174
|
+
if not isinstance(other, CreateTransitRouterGrantRuleRequest):
|
|
175
|
+
return True
|
|
176
|
+
|
|
177
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
transitrouter
|
|
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 CreateTransitRouterGrantRuleResponse(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
|
+
"""CreateTransitRouterGrantRuleResponse - 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(CreateTransitRouterGrantRuleResponse, 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, CreateTransitRouterGrantRuleResponse):
|
|
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, CreateTransitRouterGrantRuleResponse):
|
|
93
|
+
return True
|
|
94
|
+
|
|
95
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -34,9 +34,12 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'bandwidth': 'int',
|
|
37
|
+
'bandwidth_type': 'str',
|
|
37
38
|
'client_token': 'str',
|
|
38
39
|
'description': 'str',
|
|
40
|
+
'line_operator': 'str',
|
|
39
41
|
'peer_transit_router_id': 'str',
|
|
42
|
+
'peer_transit_router_owner_id': 'str',
|
|
40
43
|
'peer_transit_router_region_id': 'str',
|
|
41
44
|
'tags': 'list[TagForCreateTransitRouterPeerAttachmentInput]',
|
|
42
45
|
'transit_router_attachment_name': 'str',
|
|
@@ -46,9 +49,12 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
46
49
|
|
|
47
50
|
attribute_map = {
|
|
48
51
|
'bandwidth': 'Bandwidth',
|
|
52
|
+
'bandwidth_type': 'BandwidthType',
|
|
49
53
|
'client_token': 'ClientToken',
|
|
50
54
|
'description': 'Description',
|
|
55
|
+
'line_operator': 'LineOperator',
|
|
51
56
|
'peer_transit_router_id': 'PeerTransitRouterId',
|
|
57
|
+
'peer_transit_router_owner_id': 'PeerTransitRouterOwnerId',
|
|
52
58
|
'peer_transit_router_region_id': 'PeerTransitRouterRegionId',
|
|
53
59
|
'tags': 'Tags',
|
|
54
60
|
'transit_router_attachment_name': 'TransitRouterAttachmentName',
|
|
@@ -56,16 +62,19 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
56
62
|
'transit_router_id': 'TransitRouterId'
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
def __init__(self, bandwidth=None, client_token=None, description=None, peer_transit_router_id=None, peer_transit_router_region_id=None, tags=None, transit_router_attachment_name=None, transit_router_bandwidth_package_id=None, transit_router_id=None, _configuration=None): # noqa: E501
|
|
65
|
+
def __init__(self, bandwidth=None, bandwidth_type=None, client_token=None, description=None, line_operator=None, peer_transit_router_id=None, peer_transit_router_owner_id=None, peer_transit_router_region_id=None, tags=None, transit_router_attachment_name=None, transit_router_bandwidth_package_id=None, transit_router_id=None, _configuration=None): # noqa: E501
|
|
60
66
|
"""CreateTransitRouterPeerAttachmentRequest - a model defined in Swagger""" # noqa: E501
|
|
61
67
|
if _configuration is None:
|
|
62
68
|
_configuration = Configuration()
|
|
63
69
|
self._configuration = _configuration
|
|
64
70
|
|
|
65
71
|
self._bandwidth = None
|
|
72
|
+
self._bandwidth_type = None
|
|
66
73
|
self._client_token = None
|
|
67
74
|
self._description = None
|
|
75
|
+
self._line_operator = None
|
|
68
76
|
self._peer_transit_router_id = None
|
|
77
|
+
self._peer_transit_router_owner_id = None
|
|
69
78
|
self._peer_transit_router_region_id = None
|
|
70
79
|
self._tags = None
|
|
71
80
|
self._transit_router_attachment_name = None
|
|
@@ -75,11 +84,17 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
75
84
|
|
|
76
85
|
if bandwidth is not None:
|
|
77
86
|
self.bandwidth = bandwidth
|
|
87
|
+
if bandwidth_type is not None:
|
|
88
|
+
self.bandwidth_type = bandwidth_type
|
|
78
89
|
if client_token is not None:
|
|
79
90
|
self.client_token = client_token
|
|
80
91
|
if description is not None:
|
|
81
92
|
self.description = description
|
|
93
|
+
if line_operator is not None:
|
|
94
|
+
self.line_operator = line_operator
|
|
82
95
|
self.peer_transit_router_id = peer_transit_router_id
|
|
96
|
+
if peer_transit_router_owner_id is not None:
|
|
97
|
+
self.peer_transit_router_owner_id = peer_transit_router_owner_id
|
|
83
98
|
self.peer_transit_router_region_id = peer_transit_router_region_id
|
|
84
99
|
if tags is not None:
|
|
85
100
|
self.tags = tags
|
|
@@ -110,6 +125,27 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
110
125
|
|
|
111
126
|
self._bandwidth = bandwidth
|
|
112
127
|
|
|
128
|
+
@property
|
|
129
|
+
def bandwidth_type(self):
|
|
130
|
+
"""Gets the bandwidth_type of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:return: The bandwidth_type of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
134
|
+
:rtype: str
|
|
135
|
+
"""
|
|
136
|
+
return self._bandwidth_type
|
|
137
|
+
|
|
138
|
+
@bandwidth_type.setter
|
|
139
|
+
def bandwidth_type(self, bandwidth_type):
|
|
140
|
+
"""Sets the bandwidth_type of this CreateTransitRouterPeerAttachmentRequest.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:param bandwidth_type: The bandwidth_type of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
144
|
+
:type: str
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
self._bandwidth_type = bandwidth_type
|
|
148
|
+
|
|
113
149
|
@property
|
|
114
150
|
def client_token(self):
|
|
115
151
|
"""Gets the client_token of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
@@ -152,6 +188,27 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
152
188
|
|
|
153
189
|
self._description = description
|
|
154
190
|
|
|
191
|
+
@property
|
|
192
|
+
def line_operator(self):
|
|
193
|
+
"""Gets the line_operator of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
:return: The line_operator of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
197
|
+
:rtype: str
|
|
198
|
+
"""
|
|
199
|
+
return self._line_operator
|
|
200
|
+
|
|
201
|
+
@line_operator.setter
|
|
202
|
+
def line_operator(self, line_operator):
|
|
203
|
+
"""Sets the line_operator of this CreateTransitRouterPeerAttachmentRequest.
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
:param line_operator: The line_operator of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
207
|
+
:type: str
|
|
208
|
+
"""
|
|
209
|
+
|
|
210
|
+
self._line_operator = line_operator
|
|
211
|
+
|
|
155
212
|
@property
|
|
156
213
|
def peer_transit_router_id(self):
|
|
157
214
|
"""Gets the peer_transit_router_id of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
@@ -175,6 +232,27 @@ class CreateTransitRouterPeerAttachmentRequest(object):
|
|
|
175
232
|
|
|
176
233
|
self._peer_transit_router_id = peer_transit_router_id
|
|
177
234
|
|
|
235
|
+
@property
|
|
236
|
+
def peer_transit_router_owner_id(self):
|
|
237
|
+
"""Gets the peer_transit_router_owner_id of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
:return: The peer_transit_router_owner_id of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
241
|
+
:rtype: str
|
|
242
|
+
"""
|
|
243
|
+
return self._peer_transit_router_owner_id
|
|
244
|
+
|
|
245
|
+
@peer_transit_router_owner_id.setter
|
|
246
|
+
def peer_transit_router_owner_id(self, peer_transit_router_owner_id):
|
|
247
|
+
"""Sets the peer_transit_router_owner_id of this CreateTransitRouterPeerAttachmentRequest.
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
:param peer_transit_router_owner_id: The peer_transit_router_owner_id of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
251
|
+
:type: str
|
|
252
|
+
"""
|
|
253
|
+
|
|
254
|
+
self._peer_transit_router_owner_id = peer_transit_router_owner_id
|
|
255
|
+
|
|
178
256
|
@property
|
|
179
257
|
def peer_transit_router_region_id(self):
|
|
180
258
|
"""Gets the peer_transit_router_region_id of this CreateTransitRouterPeerAttachmentRequest. # noqa: E501
|
|
@@ -35,6 +35,7 @@ class CreateTransitRouterRouteEntryRequest(object):
|
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'description': 'str',
|
|
37
37
|
'destination_cidr_block': 'str',
|
|
38
|
+
'destination_prefix_list_id': 'str',
|
|
38
39
|
'transit_router_route_entry_name': 'str',
|
|
39
40
|
'transit_router_route_entry_next_hop_id': 'str',
|
|
40
41
|
'transit_router_route_entry_next_hop_type': 'str',
|
|
@@ -44,13 +45,14 @@ class CreateTransitRouterRouteEntryRequest(object):
|
|
|
44
45
|
attribute_map = {
|
|
45
46
|
'description': 'Description',
|
|
46
47
|
'destination_cidr_block': 'DestinationCidrBlock',
|
|
48
|
+
'destination_prefix_list_id': 'DestinationPrefixListId',
|
|
47
49
|
'transit_router_route_entry_name': 'TransitRouterRouteEntryName',
|
|
48
50
|
'transit_router_route_entry_next_hop_id': 'TransitRouterRouteEntryNextHopId',
|
|
49
51
|
'transit_router_route_entry_next_hop_type': 'TransitRouterRouteEntryNextHopType',
|
|
50
52
|
'transit_router_route_table_id': 'TransitRouterRouteTableId'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, description=None, destination_cidr_block=None, transit_router_route_entry_name=None, transit_router_route_entry_next_hop_id=None, transit_router_route_entry_next_hop_type=None, transit_router_route_table_id=None, _configuration=None): # noqa: E501
|
|
55
|
+
def __init__(self, description=None, destination_cidr_block=None, destination_prefix_list_id=None, transit_router_route_entry_name=None, transit_router_route_entry_next_hop_id=None, transit_router_route_entry_next_hop_type=None, transit_router_route_table_id=None, _configuration=None): # noqa: E501
|
|
54
56
|
"""CreateTransitRouterRouteEntryRequest - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
if _configuration is None:
|
|
56
58
|
_configuration = Configuration()
|
|
@@ -58,6 +60,7 @@ class CreateTransitRouterRouteEntryRequest(object):
|
|
|
58
60
|
|
|
59
61
|
self._description = None
|
|
60
62
|
self._destination_cidr_block = None
|
|
63
|
+
self._destination_prefix_list_id = None
|
|
61
64
|
self._transit_router_route_entry_name = None
|
|
62
65
|
self._transit_router_route_entry_next_hop_id = None
|
|
63
66
|
self._transit_router_route_entry_next_hop_type = None
|
|
@@ -66,7 +69,10 @@ class CreateTransitRouterRouteEntryRequest(object):
|
|
|
66
69
|
|
|
67
70
|
if description is not None:
|
|
68
71
|
self.description = description
|
|
69
|
-
|
|
72
|
+
if destination_cidr_block is not None:
|
|
73
|
+
self.destination_cidr_block = destination_cidr_block
|
|
74
|
+
if destination_prefix_list_id is not None:
|
|
75
|
+
self.destination_prefix_list_id = destination_prefix_list_id
|
|
70
76
|
if transit_router_route_entry_name is not None:
|
|
71
77
|
self.transit_router_route_entry_name = transit_router_route_entry_name
|
|
72
78
|
if transit_router_route_entry_next_hop_id is not None:
|
|
@@ -113,11 +119,30 @@ class CreateTransitRouterRouteEntryRequest(object):
|
|
|
113
119
|
:param destination_cidr_block: The destination_cidr_block of this CreateTransitRouterRouteEntryRequest. # noqa: E501
|
|
114
120
|
:type: str
|
|
115
121
|
"""
|
|
116
|
-
if self._configuration.client_side_validation and destination_cidr_block is None:
|
|
117
|
-
raise ValueError("Invalid value for `destination_cidr_block`, must not be `None`") # noqa: E501
|
|
118
122
|
|
|
119
123
|
self._destination_cidr_block = destination_cidr_block
|
|
120
124
|
|
|
125
|
+
@property
|
|
126
|
+
def destination_prefix_list_id(self):
|
|
127
|
+
"""Gets the destination_prefix_list_id of this CreateTransitRouterRouteEntryRequest. # noqa: E501
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:return: The destination_prefix_list_id of this CreateTransitRouterRouteEntryRequest. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._destination_prefix_list_id
|
|
134
|
+
|
|
135
|
+
@destination_prefix_list_id.setter
|
|
136
|
+
def destination_prefix_list_id(self, destination_prefix_list_id):
|
|
137
|
+
"""Sets the destination_prefix_list_id of this CreateTransitRouterRouteEntryRequest.
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:param destination_prefix_list_id: The destination_prefix_list_id of this CreateTransitRouterRouteEntryRequest. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
self._destination_prefix_list_id = destination_prefix_list_id
|
|
145
|
+
|
|
121
146
|
@property
|
|
122
147
|
def transit_router_route_entry_name(self):
|
|
123
148
|
"""Gets the transit_router_route_entry_name of this CreateTransitRouterRouteEntryRequest. # noqa: E501
|
|
@@ -42,6 +42,7 @@ class CreateTransitRouterRoutePolicyEntryRequest(object):
|
|
|
42
42
|
'destination_resource_types': 'list[str]',
|
|
43
43
|
'ip_prefix_match_mode': 'str',
|
|
44
44
|
'ip_prefixes': 'list[str]',
|
|
45
|
+
'prefix_list_id': 'str',
|
|
45
46
|
'priority': 'int',
|
|
46
47
|
'source_resource_ids': 'list[str]',
|
|
47
48
|
'source_resource_types': 'list[str]',
|
|
@@ -58,13 +59,14 @@ class CreateTransitRouterRoutePolicyEntryRequest(object):
|
|
|
58
59
|
'destination_resource_types': 'DestinationResourceTypes',
|
|
59
60
|
'ip_prefix_match_mode': 'IpPrefixMatchMode',
|
|
60
61
|
'ip_prefixes': 'IpPrefixes',
|
|
62
|
+
'prefix_list_id': 'PrefixListId',
|
|
61
63
|
'priority': 'Priority',
|
|
62
64
|
'source_resource_ids': 'SourceResourceIds',
|
|
63
65
|
'source_resource_types': 'SourceResourceTypes',
|
|
64
66
|
'transit_router_route_policy_table_id': 'TransitRouterRoutePolicyTableId'
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
def __init__(self, action_result=None, apply_as_path_values=None, as_path_operate_mode=None, client_token=None, description=None, destination_resource_ids=None, destination_resource_types=None, ip_prefix_match_mode=None, ip_prefixes=None, priority=None, source_resource_ids=None, source_resource_types=None, transit_router_route_policy_table_id=None, _configuration=None): # noqa: E501
|
|
69
|
+
def __init__(self, action_result=None, apply_as_path_values=None, as_path_operate_mode=None, client_token=None, description=None, destination_resource_ids=None, destination_resource_types=None, ip_prefix_match_mode=None, ip_prefixes=None, prefix_list_id=None, priority=None, source_resource_ids=None, source_resource_types=None, transit_router_route_policy_table_id=None, _configuration=None): # noqa: E501
|
|
68
70
|
"""CreateTransitRouterRoutePolicyEntryRequest - a model defined in Swagger""" # noqa: E501
|
|
69
71
|
if _configuration is None:
|
|
70
72
|
_configuration = Configuration()
|
|
@@ -79,6 +81,7 @@ class CreateTransitRouterRoutePolicyEntryRequest(object):
|
|
|
79
81
|
self._destination_resource_types = None
|
|
80
82
|
self._ip_prefix_match_mode = None
|
|
81
83
|
self._ip_prefixes = None
|
|
84
|
+
self._prefix_list_id = None
|
|
82
85
|
self._priority = None
|
|
83
86
|
self._source_resource_ids = None
|
|
84
87
|
self._source_resource_types = None
|
|
@@ -102,6 +105,8 @@ class CreateTransitRouterRoutePolicyEntryRequest(object):
|
|
|
102
105
|
self.ip_prefix_match_mode = ip_prefix_match_mode
|
|
103
106
|
if ip_prefixes is not None:
|
|
104
107
|
self.ip_prefixes = ip_prefixes
|
|
108
|
+
if prefix_list_id is not None:
|
|
109
|
+
self.prefix_list_id = prefix_list_id
|
|
105
110
|
self.priority = priority
|
|
106
111
|
if source_resource_ids is not None:
|
|
107
112
|
self.source_resource_ids = source_resource_ids
|
|
@@ -300,6 +305,27 @@ class CreateTransitRouterRoutePolicyEntryRequest(object):
|
|
|
300
305
|
|
|
301
306
|
self._ip_prefixes = ip_prefixes
|
|
302
307
|
|
|
308
|
+
@property
|
|
309
|
+
def prefix_list_id(self):
|
|
310
|
+
"""Gets the prefix_list_id of this CreateTransitRouterRoutePolicyEntryRequest. # noqa: E501
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
:return: The prefix_list_id of this CreateTransitRouterRoutePolicyEntryRequest. # noqa: E501
|
|
314
|
+
:rtype: str
|
|
315
|
+
"""
|
|
316
|
+
return self._prefix_list_id
|
|
317
|
+
|
|
318
|
+
@prefix_list_id.setter
|
|
319
|
+
def prefix_list_id(self, prefix_list_id):
|
|
320
|
+
"""Sets the prefix_list_id of this CreateTransitRouterRoutePolicyEntryRequest.
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
:param prefix_list_id: The prefix_list_id of this CreateTransitRouterRoutePolicyEntryRequest. # noqa: E501
|
|
324
|
+
:type: str
|
|
325
|
+
"""
|
|
326
|
+
|
|
327
|
+
self._prefix_list_id = prefix_list_id
|
|
328
|
+
|
|
303
329
|
@property
|
|
304
330
|
def priority(self):
|
|
305
331
|
"""Gets the priority of this CreateTransitRouterRoutePolicyEntryRequest. # noqa: E501
|
|
@@ -320,6 +346,12 @@ class CreateTransitRouterRoutePolicyEntryRequest(object):
|
|
|
320
346
|
"""
|
|
321
347
|
if self._configuration.client_side_validation and priority is None:
|
|
322
348
|
raise ValueError("Invalid value for `priority`, must not be `None`") # noqa: E501
|
|
349
|
+
if (self._configuration.client_side_validation and
|
|
350
|
+
priority is not None and priority > 10000): # noqa: E501
|
|
351
|
+
raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10000`") # noqa: E501
|
|
352
|
+
if (self._configuration.client_side_validation and
|
|
353
|
+
priority is not None and priority < 1): # noqa: E501
|
|
354
|
+
raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501
|
|
323
355
|
|
|
324
356
|
self._priority = priority
|
|
325
357
|
|
|
@@ -37,6 +37,7 @@ class CreateTransitRouterTrafficQosQueueEntryRequest(object):
|
|
|
37
37
|
'client_token': 'str',
|
|
38
38
|
'description': 'str',
|
|
39
39
|
'dscps': 'list[int]',
|
|
40
|
+
'priority': 'str',
|
|
40
41
|
'transit_router_traffic_qos_queue_entry_name': 'str',
|
|
41
42
|
'transit_router_traffic_qos_queue_policy_id': 'str'
|
|
42
43
|
}
|
|
@@ -46,11 +47,12 @@ class CreateTransitRouterTrafficQosQueueEntryRequest(object):
|
|
|
46
47
|
'client_token': 'ClientToken',
|
|
47
48
|
'description': 'Description',
|
|
48
49
|
'dscps': 'Dscps',
|
|
50
|
+
'priority': 'Priority',
|
|
49
51
|
'transit_router_traffic_qos_queue_entry_name': 'TransitRouterTrafficQosQueueEntryName',
|
|
50
52
|
'transit_router_traffic_qos_queue_policy_id': 'TransitRouterTrafficQosQueuePolicyId'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, bandwidth_percent=None, client_token=None, description=None, dscps=None, transit_router_traffic_qos_queue_entry_name=None, transit_router_traffic_qos_queue_policy_id=None, _configuration=None): # noqa: E501
|
|
55
|
+
def __init__(self, bandwidth_percent=None, client_token=None, description=None, dscps=None, priority=None, transit_router_traffic_qos_queue_entry_name=None, transit_router_traffic_qos_queue_policy_id=None, _configuration=None): # noqa: E501
|
|
54
56
|
"""CreateTransitRouterTrafficQosQueueEntryRequest - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
if _configuration is None:
|
|
56
58
|
_configuration = Configuration()
|
|
@@ -60,17 +62,21 @@ class CreateTransitRouterTrafficQosQueueEntryRequest(object):
|
|
|
60
62
|
self._client_token = None
|
|
61
63
|
self._description = None
|
|
62
64
|
self._dscps = None
|
|
65
|
+
self._priority = None
|
|
63
66
|
self._transit_router_traffic_qos_queue_entry_name = None
|
|
64
67
|
self._transit_router_traffic_qos_queue_policy_id = None
|
|
65
68
|
self.discriminator = None
|
|
66
69
|
|
|
67
|
-
|
|
70
|
+
if bandwidth_percent is not None:
|
|
71
|
+
self.bandwidth_percent = bandwidth_percent
|
|
68
72
|
if client_token is not None:
|
|
69
73
|
self.client_token = client_token
|
|
70
74
|
if description is not None:
|
|
71
75
|
self.description = description
|
|
72
76
|
if dscps is not None:
|
|
73
77
|
self.dscps = dscps
|
|
78
|
+
if priority is not None:
|
|
79
|
+
self.priority = priority
|
|
74
80
|
self.transit_router_traffic_qos_queue_entry_name = transit_router_traffic_qos_queue_entry_name
|
|
75
81
|
self.transit_router_traffic_qos_queue_policy_id = transit_router_traffic_qos_queue_policy_id
|
|
76
82
|
|
|
@@ -92,8 +98,9 @@ class CreateTransitRouterTrafficQosQueueEntryRequest(object):
|
|
|
92
98
|
:param bandwidth_percent: The bandwidth_percent of this CreateTransitRouterTrafficQosQueueEntryRequest. # noqa: E501
|
|
93
99
|
:type: int
|
|
94
100
|
"""
|
|
95
|
-
if self._configuration.client_side_validation and
|
|
96
|
-
|
|
101
|
+
if (self._configuration.client_side_validation and
|
|
102
|
+
bandwidth_percent is not None and bandwidth_percent > 100): # noqa: E501
|
|
103
|
+
raise ValueError("Invalid value for `bandwidth_percent`, must be a value less than or equal to `100`") # noqa: E501
|
|
97
104
|
|
|
98
105
|
self._bandwidth_percent = bandwidth_percent
|
|
99
106
|
|
|
@@ -160,6 +167,34 @@ class CreateTransitRouterTrafficQosQueueEntryRequest(object):
|
|
|
160
167
|
|
|
161
168
|
self._dscps = dscps
|
|
162
169
|
|
|
170
|
+
@property
|
|
171
|
+
def priority(self):
|
|
172
|
+
"""Gets the priority of this CreateTransitRouterTrafficQosQueueEntryRequest. # noqa: E501
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
:return: The priority of this CreateTransitRouterTrafficQosQueueEntryRequest. # noqa: E501
|
|
176
|
+
:rtype: str
|
|
177
|
+
"""
|
|
178
|
+
return self._priority
|
|
179
|
+
|
|
180
|
+
@priority.setter
|
|
181
|
+
def priority(self, priority):
|
|
182
|
+
"""Sets the priority of this CreateTransitRouterTrafficQosQueueEntryRequest.
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
:param priority: The priority of this CreateTransitRouterTrafficQosQueueEntryRequest. # noqa: E501
|
|
186
|
+
:type: str
|
|
187
|
+
"""
|
|
188
|
+
allowed_values = ["Normal", "High"] # noqa: E501
|
|
189
|
+
if (self._configuration.client_side_validation and
|
|
190
|
+
priority not in allowed_values):
|
|
191
|
+
raise ValueError(
|
|
192
|
+
"Invalid value for `priority` ({0}), must be one of {1}" # noqa: E501
|
|
193
|
+
.format(priority, allowed_values)
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
self._priority = priority
|
|
197
|
+
|
|
163
198
|
@property
|
|
164
199
|
def transit_router_traffic_qos_queue_entry_name(self):
|
|
165
200
|
"""Gets the transit_router_traffic_qos_queue_entry_name of this CreateTransitRouterTrafficQosQueueEntryRequest. # noqa: E501
|