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,202 @@
|
|
|
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 DescribeTransitRouterGrantRulesRequest(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
|
+
'grant_account_id': 'str',
|
|
37
|
+
'page_number': 'int',
|
|
38
|
+
'page_size': 'int',
|
|
39
|
+
'transit_router_id': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'grant_account_id': 'GrantAccountId',
|
|
44
|
+
'page_number': 'PageNumber',
|
|
45
|
+
'page_size': 'PageSize',
|
|
46
|
+
'transit_router_id': 'TransitRouterId'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, grant_account_id=None, page_number=None, page_size=None, transit_router_id=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""DescribeTransitRouterGrantRulesRequest - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._grant_account_id = None
|
|
56
|
+
self._page_number = None
|
|
57
|
+
self._page_size = None
|
|
58
|
+
self._transit_router_id = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if grant_account_id is not None:
|
|
62
|
+
self.grant_account_id = grant_account_id
|
|
63
|
+
if page_number is not None:
|
|
64
|
+
self.page_number = page_number
|
|
65
|
+
if page_size is not None:
|
|
66
|
+
self.page_size = page_size
|
|
67
|
+
self.transit_router_id = transit_router_id
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def grant_account_id(self):
|
|
71
|
+
"""Gets the grant_account_id of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:return: The grant_account_id of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
75
|
+
:rtype: str
|
|
76
|
+
"""
|
|
77
|
+
return self._grant_account_id
|
|
78
|
+
|
|
79
|
+
@grant_account_id.setter
|
|
80
|
+
def grant_account_id(self, grant_account_id):
|
|
81
|
+
"""Sets the grant_account_id of this DescribeTransitRouterGrantRulesRequest.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:param grant_account_id: The grant_account_id of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
85
|
+
:type: str
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
self._grant_account_id = grant_account_id
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def page_number(self):
|
|
92
|
+
"""Gets the page_number of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
:return: The page_number of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
96
|
+
:rtype: int
|
|
97
|
+
"""
|
|
98
|
+
return self._page_number
|
|
99
|
+
|
|
100
|
+
@page_number.setter
|
|
101
|
+
def page_number(self, page_number):
|
|
102
|
+
"""Sets the page_number of this DescribeTransitRouterGrantRulesRequest.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:param page_number: The page_number of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
106
|
+
:type: int
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._page_number = page_number
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def page_size(self):
|
|
113
|
+
"""Gets the page_size of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:return: The page_size of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
117
|
+
:rtype: int
|
|
118
|
+
"""
|
|
119
|
+
return self._page_size
|
|
120
|
+
|
|
121
|
+
@page_size.setter
|
|
122
|
+
def page_size(self, page_size):
|
|
123
|
+
"""Sets the page_size of this DescribeTransitRouterGrantRulesRequest.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:param page_size: The page_size of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
127
|
+
:type: int
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._page_size = page_size
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def transit_router_id(self):
|
|
134
|
+
"""Gets the transit_router_id of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:return: The transit_router_id of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._transit_router_id
|
|
141
|
+
|
|
142
|
+
@transit_router_id.setter
|
|
143
|
+
def transit_router_id(self, transit_router_id):
|
|
144
|
+
"""Sets the transit_router_id of this DescribeTransitRouterGrantRulesRequest.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
:param transit_router_id: The transit_router_id of this DescribeTransitRouterGrantRulesRequest. # noqa: E501
|
|
148
|
+
:type: str
|
|
149
|
+
"""
|
|
150
|
+
if self._configuration.client_side_validation and transit_router_id is None:
|
|
151
|
+
raise ValueError("Invalid value for `transit_router_id`, must not be `None`") # noqa: E501
|
|
152
|
+
|
|
153
|
+
self._transit_router_id = transit_router_id
|
|
154
|
+
|
|
155
|
+
def to_dict(self):
|
|
156
|
+
"""Returns the model properties as a dict"""
|
|
157
|
+
result = {}
|
|
158
|
+
|
|
159
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
160
|
+
value = getattr(self, attr)
|
|
161
|
+
if isinstance(value, list):
|
|
162
|
+
result[attr] = list(map(
|
|
163
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
164
|
+
value
|
|
165
|
+
))
|
|
166
|
+
elif hasattr(value, "to_dict"):
|
|
167
|
+
result[attr] = value.to_dict()
|
|
168
|
+
elif isinstance(value, dict):
|
|
169
|
+
result[attr] = dict(map(
|
|
170
|
+
lambda item: (item[0], item[1].to_dict())
|
|
171
|
+
if hasattr(item[1], "to_dict") else item,
|
|
172
|
+
value.items()
|
|
173
|
+
))
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
if issubclass(DescribeTransitRouterGrantRulesRequest, dict):
|
|
177
|
+
for key, value in self.items():
|
|
178
|
+
result[key] = value
|
|
179
|
+
|
|
180
|
+
return result
|
|
181
|
+
|
|
182
|
+
def to_str(self):
|
|
183
|
+
"""Returns the string representation of the model"""
|
|
184
|
+
return pprint.pformat(self.to_dict())
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print` and `pprint`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, DescribeTransitRouterGrantRulesRequest):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.to_dict() == other.to_dict()
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
if not isinstance(other, DescribeTransitRouterGrantRulesRequest):
|
|
200
|
+
return True
|
|
201
|
+
|
|
202
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
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 DescribeTransitRouterGrantRulesResponse(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
|
+
'page_number': 'int',
|
|
37
|
+
'page_size': 'int',
|
|
38
|
+
'total_count': 'int',
|
|
39
|
+
'transit_router_grant_rules': 'list[TransitRouterGrantRuleForDescribeTransitRouterGrantRulesOutput]'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'page_number': 'PageNumber',
|
|
44
|
+
'page_size': 'PageSize',
|
|
45
|
+
'total_count': 'TotalCount',
|
|
46
|
+
'transit_router_grant_rules': 'TransitRouterGrantRules'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, page_number=None, page_size=None, total_count=None, transit_router_grant_rules=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""DescribeTransitRouterGrantRulesResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._page_number = None
|
|
56
|
+
self._page_size = None
|
|
57
|
+
self._total_count = None
|
|
58
|
+
self._transit_router_grant_rules = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if page_number is not None:
|
|
62
|
+
self.page_number = page_number
|
|
63
|
+
if page_size is not None:
|
|
64
|
+
self.page_size = page_size
|
|
65
|
+
if total_count is not None:
|
|
66
|
+
self.total_count = total_count
|
|
67
|
+
if transit_router_grant_rules is not None:
|
|
68
|
+
self.transit_router_grant_rules = transit_router_grant_rules
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def page_number(self):
|
|
72
|
+
"""Gets the page_number of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The page_number of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
return self._page_number
|
|
79
|
+
|
|
80
|
+
@page_number.setter
|
|
81
|
+
def page_number(self, page_number):
|
|
82
|
+
"""Sets the page_number of this DescribeTransitRouterGrantRulesResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param page_number: The page_number of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
86
|
+
:type: int
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._page_number = page_number
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def page_size(self):
|
|
93
|
+
"""Gets the page_size of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The page_size of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._page_size
|
|
100
|
+
|
|
101
|
+
@page_size.setter
|
|
102
|
+
def page_size(self, page_size):
|
|
103
|
+
"""Sets the page_size of this DescribeTransitRouterGrantRulesResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param page_size: The page_size of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._page_size = page_size
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def total_count(self):
|
|
114
|
+
"""Gets the total_count of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The total_count of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._total_count
|
|
121
|
+
|
|
122
|
+
@total_count.setter
|
|
123
|
+
def total_count(self, total_count):
|
|
124
|
+
"""Sets the total_count of this DescribeTransitRouterGrantRulesResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param total_count: The total_count of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._total_count = total_count
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def transit_router_grant_rules(self):
|
|
135
|
+
"""Gets the transit_router_grant_rules of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The transit_router_grant_rules of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
139
|
+
:rtype: list[TransitRouterGrantRuleForDescribeTransitRouterGrantRulesOutput]
|
|
140
|
+
"""
|
|
141
|
+
return self._transit_router_grant_rules
|
|
142
|
+
|
|
143
|
+
@transit_router_grant_rules.setter
|
|
144
|
+
def transit_router_grant_rules(self, transit_router_grant_rules):
|
|
145
|
+
"""Sets the transit_router_grant_rules of this DescribeTransitRouterGrantRulesResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param transit_router_grant_rules: The transit_router_grant_rules of this DescribeTransitRouterGrantRulesResponse. # noqa: E501
|
|
149
|
+
:type: list[TransitRouterGrantRuleForDescribeTransitRouterGrantRulesOutput]
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._transit_router_grant_rules = transit_router_grant_rules
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(DescribeTransitRouterGrantRulesResponse, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, DescribeTransitRouterGrantRulesResponse):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, DescribeTransitRouterGrantRulesResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -36,7 +36,7 @@ class DescribeTransitRouterMulticastDomainsResponse(object):
|
|
|
36
36
|
'page_number': 'int',
|
|
37
37
|
'page_size': 'int',
|
|
38
38
|
'total_count': 'int',
|
|
39
|
-
'transit_router_multicast_domains': '
|
|
39
|
+
'transit_router_multicast_domains': 'list[TransitRouterMulticastDomainForDescribeTransitRouterMulticastDomainsOutput]'
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
attribute_map = {
|
|
@@ -136,7 +136,7 @@ class DescribeTransitRouterMulticastDomainsResponse(object):
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
:return: The transit_router_multicast_domains of this DescribeTransitRouterMulticastDomainsResponse. # noqa: E501
|
|
139
|
-
:rtype:
|
|
139
|
+
:rtype: list[TransitRouterMulticastDomainForDescribeTransitRouterMulticastDomainsOutput]
|
|
140
140
|
"""
|
|
141
141
|
return self._transit_router_multicast_domains
|
|
142
142
|
|
|
@@ -146,7 +146,7 @@ class DescribeTransitRouterMulticastDomainsResponse(object):
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
:param transit_router_multicast_domains: The transit_router_multicast_domains of this DescribeTransitRouterMulticastDomainsResponse. # noqa: E501
|
|
149
|
-
:type:
|
|
149
|
+
:type: list[TransitRouterMulticastDomainForDescribeTransitRouterMulticastDomainsOutput]
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
self._transit_router_multicast_domains = transit_router_multicast_domains
|
|
@@ -161,6 +161,9 @@ class DescribeTransitRouterRouteEntriesRequest(object):
|
|
|
161
161
|
:param page_size: The page_size of this DescribeTransitRouterRouteEntriesRequest. # noqa: E501
|
|
162
162
|
:type: int
|
|
163
163
|
"""
|
|
164
|
+
if (self._configuration.client_side_validation and
|
|
165
|
+
page_size is not None and page_size > 100): # noqa: E501
|
|
166
|
+
raise ValueError("Invalid value for `page_size`, must be a value less than or equal to `100`") # noqa: E501
|
|
164
167
|
|
|
165
168
|
self._page_size = page_size
|
|
166
169
|
|
|
@@ -131,6 +131,9 @@ class DescribeTransitRouterRoutePolicyEntriesRequest(object):
|
|
|
131
131
|
:param page_size: The page_size of this DescribeTransitRouterRoutePolicyEntriesRequest. # noqa: E501
|
|
132
132
|
:type: int
|
|
133
133
|
"""
|
|
134
|
+
if (self._configuration.client_side_validation and
|
|
135
|
+
page_size is not None and page_size > 100): # noqa: E501
|
|
136
|
+
raise ValueError("Invalid value for `page_size`, must be a value less than or equal to `100`") # noqa: E501
|
|
134
137
|
|
|
135
138
|
self._page_size = page_size
|
|
136
139
|
|
byteplussdktransitrouter/models/describe_transit_router_traffic_qos_queue_entries_request.py
CHANGED
|
@@ -110,6 +110,9 @@ class DescribeTransitRouterTrafficQosQueueEntriesRequest(object):
|
|
|
110
110
|
:param page_size: The page_size of this DescribeTransitRouterTrafficQosQueueEntriesRequest. # noqa: E501
|
|
111
111
|
:type: int
|
|
112
112
|
"""
|
|
113
|
+
if (self._configuration.client_side_validation and
|
|
114
|
+
page_size is not None and page_size > 100): # noqa: E501
|
|
115
|
+
raise ValueError("Invalid value for `page_size`, must be a value less than or equal to `100`") # noqa: E501
|
|
113
116
|
|
|
114
117
|
self._page_size = page_size
|
|
115
118
|
|
|
@@ -115,6 +115,9 @@ class DescribeTransitRouterVpnAttachmentsRequest(object):
|
|
|
115
115
|
:param page_size: The page_size of this DescribeTransitRouterVpnAttachmentsRequest. # noqa: E501
|
|
116
116
|
:type: int
|
|
117
117
|
"""
|
|
118
|
+
if (self._configuration.client_side_validation and
|
|
119
|
+
page_size is not None and page_size > 100): # noqa: E501
|
|
120
|
+
raise ValueError("Invalid value for `page_size`, must be a value less than or equal to `100`") # noqa: E501
|
|
118
121
|
|
|
119
122
|
self._page_size = page_size
|
|
120
123
|
|
|
@@ -116,6 +116,9 @@ class DescribeTransitRoutersRequest(object):
|
|
|
116
116
|
:param page_size: The page_size of this DescribeTransitRoutersRequest. # noqa: E501
|
|
117
117
|
:type: int
|
|
118
118
|
"""
|
|
119
|
+
if (self._configuration.client_side_validation and
|
|
120
|
+
page_size is not None and page_size > 100): # noqa: E501
|
|
121
|
+
raise ValueError("Invalid value for `page_size`, must be a value less than or equal to `100`") # noqa: E501
|
|
119
122
|
|
|
120
123
|
self._page_size = page_size
|
|
121
124
|
|
|
@@ -33,28 +33,54 @@ class EnableTransitRouterRouteTablePropagationRequest(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
|
+
'propagation_granularity': 'str',
|
|
36
37
|
'transit_router_attachment_id': 'str',
|
|
37
38
|
'transit_router_route_table_id': 'str'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
attribute_map = {
|
|
42
|
+
'propagation_granularity': 'PropagationGranularity',
|
|
41
43
|
'transit_router_attachment_id': 'TransitRouterAttachmentId',
|
|
42
44
|
'transit_router_route_table_id': 'TransitRouterRouteTableId'
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
def __init__(self, transit_router_attachment_id=None, transit_router_route_table_id=None, _configuration=None): # noqa: E501
|
|
47
|
+
def __init__(self, propagation_granularity=None, transit_router_attachment_id=None, transit_router_route_table_id=None, _configuration=None): # noqa: E501
|
|
46
48
|
"""EnableTransitRouterRouteTablePropagationRequest - a model defined in Swagger""" # noqa: E501
|
|
47
49
|
if _configuration is None:
|
|
48
50
|
_configuration = Configuration()
|
|
49
51
|
self._configuration = _configuration
|
|
50
52
|
|
|
53
|
+
self._propagation_granularity = None
|
|
51
54
|
self._transit_router_attachment_id = None
|
|
52
55
|
self._transit_router_route_table_id = None
|
|
53
56
|
self.discriminator = None
|
|
54
57
|
|
|
58
|
+
if propagation_granularity is not None:
|
|
59
|
+
self.propagation_granularity = propagation_granularity
|
|
55
60
|
self.transit_router_attachment_id = transit_router_attachment_id
|
|
56
61
|
self.transit_router_route_table_id = transit_router_route_table_id
|
|
57
62
|
|
|
63
|
+
@property
|
|
64
|
+
def propagation_granularity(self):
|
|
65
|
+
"""Gets the propagation_granularity of this EnableTransitRouterRouteTablePropagationRequest. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The propagation_granularity of this EnableTransitRouterRouteTablePropagationRequest. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._propagation_granularity
|
|
72
|
+
|
|
73
|
+
@propagation_granularity.setter
|
|
74
|
+
def propagation_granularity(self, propagation_granularity):
|
|
75
|
+
"""Sets the propagation_granularity of this EnableTransitRouterRouteTablePropagationRequest.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param propagation_granularity: The propagation_granularity of this EnableTransitRouterRouteTablePropagationRequest. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._propagation_granularity = propagation_granularity
|
|
83
|
+
|
|
58
84
|
@property
|
|
59
85
|
def transit_router_attachment_id(self):
|
|
60
86
|
"""Gets the transit_router_attachment_id of this EnableTransitRouterRouteTablePropagationRequest. # noqa: E501
|