byteplus-python-sdk-v2 3.0.52__py2.py3-none-any.whl → 3.0.54__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.54.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/RECORD +213 -61
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/WHEEL +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/top_level.txt +2 -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
- byteplussdkclawsentry/__init__.py +24 -0
- byteplussdkclawsentry/api/__init__.py +6 -0
- byteplussdkclawsentry/api/clawsentry_api.py +131 -0
- byteplussdkclawsentry/models/__init__.py +20 -0
- byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
- byteplussdkclawsentry/models/create_claw_request.py +251 -0
- byteplussdkclawsentry/models/create_claw_response.py +279 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkcore/endpoint/providers/default_provider.py +21 -0
- byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
- byteplussdkcpaas/__init__.py +4 -0
- byteplussdkcpaas/models/__init__.py +4 -0
- byteplussdkcpaas/models/create_template_v2_request.py +27 -1
- byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
- byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
- byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
- byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
- byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
- byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
- byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
- byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
- byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
- byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -1
- 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.54.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -33,6 +33,200 @@ class TRANSITROUTERApi(object):
|
|
|
33
33
|
api_client = byteplussdkcore.ApiClient()
|
|
34
34
|
self.api_client = api_client
|
|
35
35
|
|
|
36
|
+
def accept_shared_transit_router(self, body, **kwargs): # noqa: E501
|
|
37
|
+
"""accept_shared_transit_router # noqa: E501
|
|
38
|
+
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.accept_shared_transit_router(body, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param AcceptSharedTransitRouterRequest body: (required)
|
|
46
|
+
:return: AcceptSharedTransitRouterResponse
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.accept_shared_transit_router_with_http_info(body, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.accept_shared_transit_router_with_http_info(body, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def accept_shared_transit_router_with_http_info(self, body, **kwargs): # noqa: E501
|
|
58
|
+
"""accept_shared_transit_router # noqa: E501
|
|
59
|
+
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.accept_shared_transit_router_with_http_info(body, async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:param AcceptSharedTransitRouterRequest body: (required)
|
|
67
|
+
:return: AcceptSharedTransitRouterResponse
|
|
68
|
+
If the method is called asynchronously,
|
|
69
|
+
returns the request thread.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
all_params = ['body'] # noqa: E501
|
|
73
|
+
all_params.append('async_req')
|
|
74
|
+
all_params.append('_return_http_data_only')
|
|
75
|
+
all_params.append('_preload_content')
|
|
76
|
+
all_params.append('_request_timeout')
|
|
77
|
+
|
|
78
|
+
params = locals()
|
|
79
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
80
|
+
if key not in all_params:
|
|
81
|
+
raise TypeError(
|
|
82
|
+
"Got an unexpected keyword argument '%s'"
|
|
83
|
+
" to method accept_shared_transit_router" % key
|
|
84
|
+
)
|
|
85
|
+
params[key] = val
|
|
86
|
+
del params['kwargs']
|
|
87
|
+
# verify the required parameter 'body' is set
|
|
88
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
89
|
+
params['body'] is None): # noqa: E501
|
|
90
|
+
raise ValueError("Missing the required parameter `body` when calling `accept_shared_transit_router`") # noqa: E501
|
|
91
|
+
|
|
92
|
+
collection_formats = {}
|
|
93
|
+
|
|
94
|
+
path_params = {}
|
|
95
|
+
|
|
96
|
+
query_params = []
|
|
97
|
+
|
|
98
|
+
header_params = {}
|
|
99
|
+
|
|
100
|
+
form_params = []
|
|
101
|
+
local_var_files = {}
|
|
102
|
+
|
|
103
|
+
body_params = None
|
|
104
|
+
if 'body' in params:
|
|
105
|
+
body_params = params['body']
|
|
106
|
+
# HTTP header `Accept`
|
|
107
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
108
|
+
['application/json']) # noqa: E501
|
|
109
|
+
|
|
110
|
+
# HTTP header `Content-Type`
|
|
111
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
112
|
+
['text/plain']) # noqa: E501
|
|
113
|
+
|
|
114
|
+
# Authentication setting
|
|
115
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
116
|
+
|
|
117
|
+
return self.api_client.call_api(
|
|
118
|
+
'/AcceptSharedTransitRouter/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
119
|
+
path_params,
|
|
120
|
+
query_params,
|
|
121
|
+
header_params,
|
|
122
|
+
body=body_params,
|
|
123
|
+
post_params=form_params,
|
|
124
|
+
files=local_var_files,
|
|
125
|
+
response_type='AcceptSharedTransitRouterResponse', # noqa: E501
|
|
126
|
+
auth_settings=auth_settings,
|
|
127
|
+
async_req=params.get('async_req'),
|
|
128
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
129
|
+
_preload_content=params.get('_preload_content', True),
|
|
130
|
+
_request_timeout=params.get('_request_timeout'),
|
|
131
|
+
collection_formats=collection_formats)
|
|
132
|
+
|
|
133
|
+
def accept_transit_router_peer_attachment(self, body, **kwargs): # noqa: E501
|
|
134
|
+
"""accept_transit_router_peer_attachment # noqa: E501
|
|
135
|
+
|
|
136
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
137
|
+
asynchronous HTTP request, please pass async_req=True
|
|
138
|
+
>>> thread = api.accept_transit_router_peer_attachment(body, async_req=True)
|
|
139
|
+
>>> result = thread.get()
|
|
140
|
+
|
|
141
|
+
:param async_req bool
|
|
142
|
+
:param AcceptTransitRouterPeerAttachmentRequest body: (required)
|
|
143
|
+
:return: AcceptTransitRouterPeerAttachmentResponse
|
|
144
|
+
If the method is called asynchronously,
|
|
145
|
+
returns the request thread.
|
|
146
|
+
"""
|
|
147
|
+
kwargs['_return_http_data_only'] = True
|
|
148
|
+
if kwargs.get('async_req'):
|
|
149
|
+
return self.accept_transit_router_peer_attachment_with_http_info(body, **kwargs) # noqa: E501
|
|
150
|
+
else:
|
|
151
|
+
(data) = self.accept_transit_router_peer_attachment_with_http_info(body, **kwargs) # noqa: E501
|
|
152
|
+
return data
|
|
153
|
+
|
|
154
|
+
def accept_transit_router_peer_attachment_with_http_info(self, body, **kwargs): # noqa: E501
|
|
155
|
+
"""accept_transit_router_peer_attachment # noqa: E501
|
|
156
|
+
|
|
157
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
158
|
+
asynchronous HTTP request, please pass async_req=True
|
|
159
|
+
>>> thread = api.accept_transit_router_peer_attachment_with_http_info(body, async_req=True)
|
|
160
|
+
>>> result = thread.get()
|
|
161
|
+
|
|
162
|
+
:param async_req bool
|
|
163
|
+
:param AcceptTransitRouterPeerAttachmentRequest body: (required)
|
|
164
|
+
:return: AcceptTransitRouterPeerAttachmentResponse
|
|
165
|
+
If the method is called asynchronously,
|
|
166
|
+
returns the request thread.
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
all_params = ['body'] # noqa: E501
|
|
170
|
+
all_params.append('async_req')
|
|
171
|
+
all_params.append('_return_http_data_only')
|
|
172
|
+
all_params.append('_preload_content')
|
|
173
|
+
all_params.append('_request_timeout')
|
|
174
|
+
|
|
175
|
+
params = locals()
|
|
176
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
177
|
+
if key not in all_params:
|
|
178
|
+
raise TypeError(
|
|
179
|
+
"Got an unexpected keyword argument '%s'"
|
|
180
|
+
" to method accept_transit_router_peer_attachment" % key
|
|
181
|
+
)
|
|
182
|
+
params[key] = val
|
|
183
|
+
del params['kwargs']
|
|
184
|
+
# verify the required parameter 'body' is set
|
|
185
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
186
|
+
params['body'] is None): # noqa: E501
|
|
187
|
+
raise ValueError("Missing the required parameter `body` when calling `accept_transit_router_peer_attachment`") # noqa: E501
|
|
188
|
+
|
|
189
|
+
collection_formats = {}
|
|
190
|
+
|
|
191
|
+
path_params = {}
|
|
192
|
+
|
|
193
|
+
query_params = []
|
|
194
|
+
|
|
195
|
+
header_params = {}
|
|
196
|
+
|
|
197
|
+
form_params = []
|
|
198
|
+
local_var_files = {}
|
|
199
|
+
|
|
200
|
+
body_params = None
|
|
201
|
+
if 'body' in params:
|
|
202
|
+
body_params = params['body']
|
|
203
|
+
# HTTP header `Accept`
|
|
204
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
205
|
+
['application/json']) # noqa: E501
|
|
206
|
+
|
|
207
|
+
# HTTP header `Content-Type`
|
|
208
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
209
|
+
['text/plain']) # noqa: E501
|
|
210
|
+
|
|
211
|
+
# Authentication setting
|
|
212
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
213
|
+
|
|
214
|
+
return self.api_client.call_api(
|
|
215
|
+
'/AcceptTransitRouterPeerAttachment/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
216
|
+
path_params,
|
|
217
|
+
query_params,
|
|
218
|
+
header_params,
|
|
219
|
+
body=body_params,
|
|
220
|
+
post_params=form_params,
|
|
221
|
+
files=local_var_files,
|
|
222
|
+
response_type='AcceptTransitRouterPeerAttachmentResponse', # noqa: E501
|
|
223
|
+
auth_settings=auth_settings,
|
|
224
|
+
async_req=params.get('async_req'),
|
|
225
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
226
|
+
_preload_content=params.get('_preload_content', True),
|
|
227
|
+
_request_timeout=params.get('_request_timeout'),
|
|
228
|
+
collection_formats=collection_formats)
|
|
229
|
+
|
|
36
230
|
def associate_transit_router_attachment_to_route_table(self, body, **kwargs): # noqa: E501
|
|
37
231
|
"""associate_transit_router_attachment_to_route_table # noqa: E501
|
|
38
232
|
|
|
@@ -1197,6 +1391,103 @@ class TRANSITROUTERApi(object):
|
|
|
1197
1391
|
_request_timeout=params.get('_request_timeout'),
|
|
1198
1392
|
collection_formats=collection_formats)
|
|
1199
1393
|
|
|
1394
|
+
def create_transit_router_grant_rule(self, body, **kwargs): # noqa: E501
|
|
1395
|
+
"""create_transit_router_grant_rule # noqa: E501
|
|
1396
|
+
|
|
1397
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1398
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1399
|
+
>>> thread = api.create_transit_router_grant_rule(body, async_req=True)
|
|
1400
|
+
>>> result = thread.get()
|
|
1401
|
+
|
|
1402
|
+
:param async_req bool
|
|
1403
|
+
:param CreateTransitRouterGrantRuleRequest body: (required)
|
|
1404
|
+
:return: CreateTransitRouterGrantRuleResponse
|
|
1405
|
+
If the method is called asynchronously,
|
|
1406
|
+
returns the request thread.
|
|
1407
|
+
"""
|
|
1408
|
+
kwargs['_return_http_data_only'] = True
|
|
1409
|
+
if kwargs.get('async_req'):
|
|
1410
|
+
return self.create_transit_router_grant_rule_with_http_info(body, **kwargs) # noqa: E501
|
|
1411
|
+
else:
|
|
1412
|
+
(data) = self.create_transit_router_grant_rule_with_http_info(body, **kwargs) # noqa: E501
|
|
1413
|
+
return data
|
|
1414
|
+
|
|
1415
|
+
def create_transit_router_grant_rule_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1416
|
+
"""create_transit_router_grant_rule # noqa: E501
|
|
1417
|
+
|
|
1418
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1419
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1420
|
+
>>> thread = api.create_transit_router_grant_rule_with_http_info(body, async_req=True)
|
|
1421
|
+
>>> result = thread.get()
|
|
1422
|
+
|
|
1423
|
+
:param async_req bool
|
|
1424
|
+
:param CreateTransitRouterGrantRuleRequest body: (required)
|
|
1425
|
+
:return: CreateTransitRouterGrantRuleResponse
|
|
1426
|
+
If the method is called asynchronously,
|
|
1427
|
+
returns the request thread.
|
|
1428
|
+
"""
|
|
1429
|
+
|
|
1430
|
+
all_params = ['body'] # noqa: E501
|
|
1431
|
+
all_params.append('async_req')
|
|
1432
|
+
all_params.append('_return_http_data_only')
|
|
1433
|
+
all_params.append('_preload_content')
|
|
1434
|
+
all_params.append('_request_timeout')
|
|
1435
|
+
|
|
1436
|
+
params = locals()
|
|
1437
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1438
|
+
if key not in all_params:
|
|
1439
|
+
raise TypeError(
|
|
1440
|
+
"Got an unexpected keyword argument '%s'"
|
|
1441
|
+
" to method create_transit_router_grant_rule" % key
|
|
1442
|
+
)
|
|
1443
|
+
params[key] = val
|
|
1444
|
+
del params['kwargs']
|
|
1445
|
+
# verify the required parameter 'body' is set
|
|
1446
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
1447
|
+
params['body'] is None): # noqa: E501
|
|
1448
|
+
raise ValueError("Missing the required parameter `body` when calling `create_transit_router_grant_rule`") # noqa: E501
|
|
1449
|
+
|
|
1450
|
+
collection_formats = {}
|
|
1451
|
+
|
|
1452
|
+
path_params = {}
|
|
1453
|
+
|
|
1454
|
+
query_params = []
|
|
1455
|
+
|
|
1456
|
+
header_params = {}
|
|
1457
|
+
|
|
1458
|
+
form_params = []
|
|
1459
|
+
local_var_files = {}
|
|
1460
|
+
|
|
1461
|
+
body_params = None
|
|
1462
|
+
if 'body' in params:
|
|
1463
|
+
body_params = params['body']
|
|
1464
|
+
# HTTP header `Accept`
|
|
1465
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1466
|
+
['application/json']) # noqa: E501
|
|
1467
|
+
|
|
1468
|
+
# HTTP header `Content-Type`
|
|
1469
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1470
|
+
['text/plain']) # noqa: E501
|
|
1471
|
+
|
|
1472
|
+
# Authentication setting
|
|
1473
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
1474
|
+
|
|
1475
|
+
return self.api_client.call_api(
|
|
1476
|
+
'/CreateTransitRouterGrantRule/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
1477
|
+
path_params,
|
|
1478
|
+
query_params,
|
|
1479
|
+
header_params,
|
|
1480
|
+
body=body_params,
|
|
1481
|
+
post_params=form_params,
|
|
1482
|
+
files=local_var_files,
|
|
1483
|
+
response_type='CreateTransitRouterGrantRuleResponse', # noqa: E501
|
|
1484
|
+
auth_settings=auth_settings,
|
|
1485
|
+
async_req=params.get('async_req'),
|
|
1486
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1487
|
+
_preload_content=params.get('_preload_content', True),
|
|
1488
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1489
|
+
collection_formats=collection_formats)
|
|
1490
|
+
|
|
1200
1491
|
def create_transit_router_multicast_domain(self, body, **kwargs): # noqa: E501
|
|
1201
1492
|
"""create_transit_router_multicast_domain # noqa: E501
|
|
1202
1493
|
|
|
@@ -3137,38 +3428,38 @@ class TRANSITROUTERApi(object):
|
|
|
3137
3428
|
_request_timeout=params.get('_request_timeout'),
|
|
3138
3429
|
collection_formats=collection_formats)
|
|
3139
3430
|
|
|
3140
|
-
def
|
|
3141
|
-
"""
|
|
3431
|
+
def delete_transit_router_grant_rule(self, body, **kwargs): # noqa: E501
|
|
3432
|
+
"""delete_transit_router_grant_rule # noqa: E501
|
|
3142
3433
|
|
|
3143
3434
|
This method makes a synchronous HTTP request by default. To make an
|
|
3144
3435
|
asynchronous HTTP request, please pass async_req=True
|
|
3145
|
-
>>> thread = api.
|
|
3436
|
+
>>> thread = api.delete_transit_router_grant_rule(body, async_req=True)
|
|
3146
3437
|
>>> result = thread.get()
|
|
3147
3438
|
|
|
3148
3439
|
:param async_req bool
|
|
3149
|
-
:param
|
|
3150
|
-
:return:
|
|
3440
|
+
:param DeleteTransitRouterGrantRuleRequest body: (required)
|
|
3441
|
+
:return: DeleteTransitRouterGrantRuleResponse
|
|
3151
3442
|
If the method is called asynchronously,
|
|
3152
3443
|
returns the request thread.
|
|
3153
3444
|
"""
|
|
3154
3445
|
kwargs['_return_http_data_only'] = True
|
|
3155
3446
|
if kwargs.get('async_req'):
|
|
3156
|
-
return self.
|
|
3447
|
+
return self.delete_transit_router_grant_rule_with_http_info(body, **kwargs) # noqa: E501
|
|
3157
3448
|
else:
|
|
3158
|
-
(data) = self.
|
|
3449
|
+
(data) = self.delete_transit_router_grant_rule_with_http_info(body, **kwargs) # noqa: E501
|
|
3159
3450
|
return data
|
|
3160
3451
|
|
|
3161
|
-
def
|
|
3162
|
-
"""
|
|
3452
|
+
def delete_transit_router_grant_rule_with_http_info(self, body, **kwargs): # noqa: E501
|
|
3453
|
+
"""delete_transit_router_grant_rule # noqa: E501
|
|
3163
3454
|
|
|
3164
3455
|
This method makes a synchronous HTTP request by default. To make an
|
|
3165
3456
|
asynchronous HTTP request, please pass async_req=True
|
|
3166
|
-
>>> thread = api.
|
|
3457
|
+
>>> thread = api.delete_transit_router_grant_rule_with_http_info(body, async_req=True)
|
|
3167
3458
|
>>> result = thread.get()
|
|
3168
3459
|
|
|
3169
3460
|
:param async_req bool
|
|
3170
|
-
:param
|
|
3171
|
-
:return:
|
|
3461
|
+
:param DeleteTransitRouterGrantRuleRequest body: (required)
|
|
3462
|
+
:return: DeleteTransitRouterGrantRuleResponse
|
|
3172
3463
|
If the method is called asynchronously,
|
|
3173
3464
|
returns the request thread.
|
|
3174
3465
|
"""
|
|
@@ -3184,7 +3475,104 @@ class TRANSITROUTERApi(object):
|
|
|
3184
3475
|
if key not in all_params:
|
|
3185
3476
|
raise TypeError(
|
|
3186
3477
|
"Got an unexpected keyword argument '%s'"
|
|
3187
|
-
" to method
|
|
3478
|
+
" to method delete_transit_router_grant_rule" % key
|
|
3479
|
+
)
|
|
3480
|
+
params[key] = val
|
|
3481
|
+
del params['kwargs']
|
|
3482
|
+
# verify the required parameter 'body' is set
|
|
3483
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
3484
|
+
params['body'] is None): # noqa: E501
|
|
3485
|
+
raise ValueError("Missing the required parameter `body` when calling `delete_transit_router_grant_rule`") # noqa: E501
|
|
3486
|
+
|
|
3487
|
+
collection_formats = {}
|
|
3488
|
+
|
|
3489
|
+
path_params = {}
|
|
3490
|
+
|
|
3491
|
+
query_params = []
|
|
3492
|
+
|
|
3493
|
+
header_params = {}
|
|
3494
|
+
|
|
3495
|
+
form_params = []
|
|
3496
|
+
local_var_files = {}
|
|
3497
|
+
|
|
3498
|
+
body_params = None
|
|
3499
|
+
if 'body' in params:
|
|
3500
|
+
body_params = params['body']
|
|
3501
|
+
# HTTP header `Accept`
|
|
3502
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3503
|
+
['application/json']) # noqa: E501
|
|
3504
|
+
|
|
3505
|
+
# HTTP header `Content-Type`
|
|
3506
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3507
|
+
['text/plain']) # noqa: E501
|
|
3508
|
+
|
|
3509
|
+
# Authentication setting
|
|
3510
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
3511
|
+
|
|
3512
|
+
return self.api_client.call_api(
|
|
3513
|
+
'/DeleteTransitRouterGrantRule/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
3514
|
+
path_params,
|
|
3515
|
+
query_params,
|
|
3516
|
+
header_params,
|
|
3517
|
+
body=body_params,
|
|
3518
|
+
post_params=form_params,
|
|
3519
|
+
files=local_var_files,
|
|
3520
|
+
response_type='DeleteTransitRouterGrantRuleResponse', # noqa: E501
|
|
3521
|
+
auth_settings=auth_settings,
|
|
3522
|
+
async_req=params.get('async_req'),
|
|
3523
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
3524
|
+
_preload_content=params.get('_preload_content', True),
|
|
3525
|
+
_request_timeout=params.get('_request_timeout'),
|
|
3526
|
+
collection_formats=collection_formats)
|
|
3527
|
+
|
|
3528
|
+
def delete_transit_router_multicast_domain(self, body, **kwargs): # noqa: E501
|
|
3529
|
+
"""delete_transit_router_multicast_domain # noqa: E501
|
|
3530
|
+
|
|
3531
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3532
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3533
|
+
>>> thread = api.delete_transit_router_multicast_domain(body, async_req=True)
|
|
3534
|
+
>>> result = thread.get()
|
|
3535
|
+
|
|
3536
|
+
:param async_req bool
|
|
3537
|
+
:param DeleteTransitRouterMulticastDomainRequest body: (required)
|
|
3538
|
+
:return: DeleteTransitRouterMulticastDomainResponse
|
|
3539
|
+
If the method is called asynchronously,
|
|
3540
|
+
returns the request thread.
|
|
3541
|
+
"""
|
|
3542
|
+
kwargs['_return_http_data_only'] = True
|
|
3543
|
+
if kwargs.get('async_req'):
|
|
3544
|
+
return self.delete_transit_router_multicast_domain_with_http_info(body, **kwargs) # noqa: E501
|
|
3545
|
+
else:
|
|
3546
|
+
(data) = self.delete_transit_router_multicast_domain_with_http_info(body, **kwargs) # noqa: E501
|
|
3547
|
+
return data
|
|
3548
|
+
|
|
3549
|
+
def delete_transit_router_multicast_domain_with_http_info(self, body, **kwargs): # noqa: E501
|
|
3550
|
+
"""delete_transit_router_multicast_domain # noqa: E501
|
|
3551
|
+
|
|
3552
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3553
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3554
|
+
>>> thread = api.delete_transit_router_multicast_domain_with_http_info(body, async_req=True)
|
|
3555
|
+
>>> result = thread.get()
|
|
3556
|
+
|
|
3557
|
+
:param async_req bool
|
|
3558
|
+
:param DeleteTransitRouterMulticastDomainRequest body: (required)
|
|
3559
|
+
:return: DeleteTransitRouterMulticastDomainResponse
|
|
3560
|
+
If the method is called asynchronously,
|
|
3561
|
+
returns the request thread.
|
|
3562
|
+
"""
|
|
3563
|
+
|
|
3564
|
+
all_params = ['body'] # noqa: E501
|
|
3565
|
+
all_params.append('async_req')
|
|
3566
|
+
all_params.append('_return_http_data_only')
|
|
3567
|
+
all_params.append('_preload_content')
|
|
3568
|
+
all_params.append('_request_timeout')
|
|
3569
|
+
|
|
3570
|
+
params = locals()
|
|
3571
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
3572
|
+
if key not in all_params:
|
|
3573
|
+
raise TypeError(
|
|
3574
|
+
"Got an unexpected keyword argument '%s'"
|
|
3575
|
+
" to method delete_transit_router_multicast_domain" % key
|
|
3188
3576
|
)
|
|
3189
3577
|
params[key] = val
|
|
3190
3578
|
del params['kwargs']
|
|
@@ -4495,6 +4883,103 @@ class TRANSITROUTERApi(object):
|
|
|
4495
4883
|
_request_timeout=params.get('_request_timeout'),
|
|
4496
4884
|
collection_formats=collection_formats)
|
|
4497
4885
|
|
|
4886
|
+
def describe95_traffic(self, body, **kwargs): # noqa: E501
|
|
4887
|
+
"""describe95_traffic # noqa: E501
|
|
4888
|
+
|
|
4889
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4890
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4891
|
+
>>> thread = api.describe95_traffic(body, async_req=True)
|
|
4892
|
+
>>> result = thread.get()
|
|
4893
|
+
|
|
4894
|
+
:param async_req bool
|
|
4895
|
+
:param Describe95TrafficRequest body: (required)
|
|
4896
|
+
:return: Describe95TrafficResponse
|
|
4897
|
+
If the method is called asynchronously,
|
|
4898
|
+
returns the request thread.
|
|
4899
|
+
"""
|
|
4900
|
+
kwargs['_return_http_data_only'] = True
|
|
4901
|
+
if kwargs.get('async_req'):
|
|
4902
|
+
return self.describe95_traffic_with_http_info(body, **kwargs) # noqa: E501
|
|
4903
|
+
else:
|
|
4904
|
+
(data) = self.describe95_traffic_with_http_info(body, **kwargs) # noqa: E501
|
|
4905
|
+
return data
|
|
4906
|
+
|
|
4907
|
+
def describe95_traffic_with_http_info(self, body, **kwargs): # noqa: E501
|
|
4908
|
+
"""describe95_traffic # noqa: E501
|
|
4909
|
+
|
|
4910
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4911
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4912
|
+
>>> thread = api.describe95_traffic_with_http_info(body, async_req=True)
|
|
4913
|
+
>>> result = thread.get()
|
|
4914
|
+
|
|
4915
|
+
:param async_req bool
|
|
4916
|
+
:param Describe95TrafficRequest body: (required)
|
|
4917
|
+
:return: Describe95TrafficResponse
|
|
4918
|
+
If the method is called asynchronously,
|
|
4919
|
+
returns the request thread.
|
|
4920
|
+
"""
|
|
4921
|
+
|
|
4922
|
+
all_params = ['body'] # noqa: E501
|
|
4923
|
+
all_params.append('async_req')
|
|
4924
|
+
all_params.append('_return_http_data_only')
|
|
4925
|
+
all_params.append('_preload_content')
|
|
4926
|
+
all_params.append('_request_timeout')
|
|
4927
|
+
|
|
4928
|
+
params = locals()
|
|
4929
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
4930
|
+
if key not in all_params:
|
|
4931
|
+
raise TypeError(
|
|
4932
|
+
"Got an unexpected keyword argument '%s'"
|
|
4933
|
+
" to method describe95_traffic" % key
|
|
4934
|
+
)
|
|
4935
|
+
params[key] = val
|
|
4936
|
+
del params['kwargs']
|
|
4937
|
+
# verify the required parameter 'body' is set
|
|
4938
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
4939
|
+
params['body'] is None): # noqa: E501
|
|
4940
|
+
raise ValueError("Missing the required parameter `body` when calling `describe95_traffic`") # noqa: E501
|
|
4941
|
+
|
|
4942
|
+
collection_formats = {}
|
|
4943
|
+
|
|
4944
|
+
path_params = {}
|
|
4945
|
+
|
|
4946
|
+
query_params = []
|
|
4947
|
+
|
|
4948
|
+
header_params = {}
|
|
4949
|
+
|
|
4950
|
+
form_params = []
|
|
4951
|
+
local_var_files = {}
|
|
4952
|
+
|
|
4953
|
+
body_params = None
|
|
4954
|
+
if 'body' in params:
|
|
4955
|
+
body_params = params['body']
|
|
4956
|
+
# HTTP header `Accept`
|
|
4957
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
4958
|
+
['application/json']) # noqa: E501
|
|
4959
|
+
|
|
4960
|
+
# HTTP header `Content-Type`
|
|
4961
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
4962
|
+
['text/plain']) # noqa: E501
|
|
4963
|
+
|
|
4964
|
+
# Authentication setting
|
|
4965
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
4966
|
+
|
|
4967
|
+
return self.api_client.call_api(
|
|
4968
|
+
'/Describe95Traffic/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
4969
|
+
path_params,
|
|
4970
|
+
query_params,
|
|
4971
|
+
header_params,
|
|
4972
|
+
body=body_params,
|
|
4973
|
+
post_params=form_params,
|
|
4974
|
+
files=local_var_files,
|
|
4975
|
+
response_type='Describe95TrafficResponse', # noqa: E501
|
|
4976
|
+
auth_settings=auth_settings,
|
|
4977
|
+
async_req=params.get('async_req'),
|
|
4978
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
4979
|
+
_preload_content=params.get('_preload_content', True),
|
|
4980
|
+
_request_timeout=params.get('_request_timeout'),
|
|
4981
|
+
collection_formats=collection_formats)
|
|
4982
|
+
|
|
4498
4983
|
def describe_transit_router_attachments(self, body, **kwargs): # noqa: E501
|
|
4499
4984
|
"""describe_transit_router_attachments # noqa: E501
|
|
4500
4985
|
|
|
@@ -5174,6 +5659,103 @@ class TRANSITROUTERApi(object):
|
|
|
5174
5659
|
_request_timeout=params.get('_request_timeout'),
|
|
5175
5660
|
collection_formats=collection_formats)
|
|
5176
5661
|
|
|
5662
|
+
def describe_transit_router_grant_rules(self, body, **kwargs): # noqa: E501
|
|
5663
|
+
"""describe_transit_router_grant_rules # noqa: E501
|
|
5664
|
+
|
|
5665
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5666
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5667
|
+
>>> thread = api.describe_transit_router_grant_rules(body, async_req=True)
|
|
5668
|
+
>>> result = thread.get()
|
|
5669
|
+
|
|
5670
|
+
:param async_req bool
|
|
5671
|
+
:param DescribeTransitRouterGrantRulesRequest body: (required)
|
|
5672
|
+
:return: DescribeTransitRouterGrantRulesResponse
|
|
5673
|
+
If the method is called asynchronously,
|
|
5674
|
+
returns the request thread.
|
|
5675
|
+
"""
|
|
5676
|
+
kwargs['_return_http_data_only'] = True
|
|
5677
|
+
if kwargs.get('async_req'):
|
|
5678
|
+
return self.describe_transit_router_grant_rules_with_http_info(body, **kwargs) # noqa: E501
|
|
5679
|
+
else:
|
|
5680
|
+
(data) = self.describe_transit_router_grant_rules_with_http_info(body, **kwargs) # noqa: E501
|
|
5681
|
+
return data
|
|
5682
|
+
|
|
5683
|
+
def describe_transit_router_grant_rules_with_http_info(self, body, **kwargs): # noqa: E501
|
|
5684
|
+
"""describe_transit_router_grant_rules # noqa: E501
|
|
5685
|
+
|
|
5686
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5687
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5688
|
+
>>> thread = api.describe_transit_router_grant_rules_with_http_info(body, async_req=True)
|
|
5689
|
+
>>> result = thread.get()
|
|
5690
|
+
|
|
5691
|
+
:param async_req bool
|
|
5692
|
+
:param DescribeTransitRouterGrantRulesRequest body: (required)
|
|
5693
|
+
:return: DescribeTransitRouterGrantRulesResponse
|
|
5694
|
+
If the method is called asynchronously,
|
|
5695
|
+
returns the request thread.
|
|
5696
|
+
"""
|
|
5697
|
+
|
|
5698
|
+
all_params = ['body'] # noqa: E501
|
|
5699
|
+
all_params.append('async_req')
|
|
5700
|
+
all_params.append('_return_http_data_only')
|
|
5701
|
+
all_params.append('_preload_content')
|
|
5702
|
+
all_params.append('_request_timeout')
|
|
5703
|
+
|
|
5704
|
+
params = locals()
|
|
5705
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
5706
|
+
if key not in all_params:
|
|
5707
|
+
raise TypeError(
|
|
5708
|
+
"Got an unexpected keyword argument '%s'"
|
|
5709
|
+
" to method describe_transit_router_grant_rules" % key
|
|
5710
|
+
)
|
|
5711
|
+
params[key] = val
|
|
5712
|
+
del params['kwargs']
|
|
5713
|
+
# verify the required parameter 'body' is set
|
|
5714
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
5715
|
+
params['body'] is None): # noqa: E501
|
|
5716
|
+
raise ValueError("Missing the required parameter `body` when calling `describe_transit_router_grant_rules`") # noqa: E501
|
|
5717
|
+
|
|
5718
|
+
collection_formats = {}
|
|
5719
|
+
|
|
5720
|
+
path_params = {}
|
|
5721
|
+
|
|
5722
|
+
query_params = []
|
|
5723
|
+
|
|
5724
|
+
header_params = {}
|
|
5725
|
+
|
|
5726
|
+
form_params = []
|
|
5727
|
+
local_var_files = {}
|
|
5728
|
+
|
|
5729
|
+
body_params = None
|
|
5730
|
+
if 'body' in params:
|
|
5731
|
+
body_params = params['body']
|
|
5732
|
+
# HTTP header `Accept`
|
|
5733
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
5734
|
+
['application/json']) # noqa: E501
|
|
5735
|
+
|
|
5736
|
+
# HTTP header `Content-Type`
|
|
5737
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
5738
|
+
['text/plain']) # noqa: E501
|
|
5739
|
+
|
|
5740
|
+
# Authentication setting
|
|
5741
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
5742
|
+
|
|
5743
|
+
return self.api_client.call_api(
|
|
5744
|
+
'/DescribeTransitRouterGrantRules/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
5745
|
+
path_params,
|
|
5746
|
+
query_params,
|
|
5747
|
+
header_params,
|
|
5748
|
+
body=body_params,
|
|
5749
|
+
post_params=form_params,
|
|
5750
|
+
files=local_var_files,
|
|
5751
|
+
response_type='DescribeTransitRouterGrantRulesResponse', # noqa: E501
|
|
5752
|
+
auth_settings=auth_settings,
|
|
5753
|
+
async_req=params.get('async_req'),
|
|
5754
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
5755
|
+
_preload_content=params.get('_preload_content', True),
|
|
5756
|
+
_request_timeout=params.get('_request_timeout'),
|
|
5757
|
+
collection_formats=collection_formats)
|
|
5758
|
+
|
|
5177
5759
|
def describe_transit_router_multicast_domain_associations(self, body, **kwargs): # noqa: E501
|
|
5178
5760
|
"""describe_transit_router_multicast_domain_associations # noqa: E501
|
|
5179
5761
|
|
|
@@ -8472,6 +9054,103 @@ class TRANSITROUTERApi(object):
|
|
|
8472
9054
|
_request_timeout=params.get('_request_timeout'),
|
|
8473
9055
|
collection_formats=collection_formats)
|
|
8474
9056
|
|
|
9057
|
+
def modify_transit_router_grant_rule_attributes(self, body, **kwargs): # noqa: E501
|
|
9058
|
+
"""modify_transit_router_grant_rule_attributes # noqa: E501
|
|
9059
|
+
|
|
9060
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9061
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9062
|
+
>>> thread = api.modify_transit_router_grant_rule_attributes(body, async_req=True)
|
|
9063
|
+
>>> result = thread.get()
|
|
9064
|
+
|
|
9065
|
+
:param async_req bool
|
|
9066
|
+
:param ModifyTransitRouterGrantRuleAttributesRequest body: (required)
|
|
9067
|
+
:return: ModifyTransitRouterGrantRuleAttributesResponse
|
|
9068
|
+
If the method is called asynchronously,
|
|
9069
|
+
returns the request thread.
|
|
9070
|
+
"""
|
|
9071
|
+
kwargs['_return_http_data_only'] = True
|
|
9072
|
+
if kwargs.get('async_req'):
|
|
9073
|
+
return self.modify_transit_router_grant_rule_attributes_with_http_info(body, **kwargs) # noqa: E501
|
|
9074
|
+
else:
|
|
9075
|
+
(data) = self.modify_transit_router_grant_rule_attributes_with_http_info(body, **kwargs) # noqa: E501
|
|
9076
|
+
return data
|
|
9077
|
+
|
|
9078
|
+
def modify_transit_router_grant_rule_attributes_with_http_info(self, body, **kwargs): # noqa: E501
|
|
9079
|
+
"""modify_transit_router_grant_rule_attributes # noqa: E501
|
|
9080
|
+
|
|
9081
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9082
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9083
|
+
>>> thread = api.modify_transit_router_grant_rule_attributes_with_http_info(body, async_req=True)
|
|
9084
|
+
>>> result = thread.get()
|
|
9085
|
+
|
|
9086
|
+
:param async_req bool
|
|
9087
|
+
:param ModifyTransitRouterGrantRuleAttributesRequest body: (required)
|
|
9088
|
+
:return: ModifyTransitRouterGrantRuleAttributesResponse
|
|
9089
|
+
If the method is called asynchronously,
|
|
9090
|
+
returns the request thread.
|
|
9091
|
+
"""
|
|
9092
|
+
|
|
9093
|
+
all_params = ['body'] # noqa: E501
|
|
9094
|
+
all_params.append('async_req')
|
|
9095
|
+
all_params.append('_return_http_data_only')
|
|
9096
|
+
all_params.append('_preload_content')
|
|
9097
|
+
all_params.append('_request_timeout')
|
|
9098
|
+
|
|
9099
|
+
params = locals()
|
|
9100
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
9101
|
+
if key not in all_params:
|
|
9102
|
+
raise TypeError(
|
|
9103
|
+
"Got an unexpected keyword argument '%s'"
|
|
9104
|
+
" to method modify_transit_router_grant_rule_attributes" % key
|
|
9105
|
+
)
|
|
9106
|
+
params[key] = val
|
|
9107
|
+
del params['kwargs']
|
|
9108
|
+
# verify the required parameter 'body' is set
|
|
9109
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
9110
|
+
params['body'] is None): # noqa: E501
|
|
9111
|
+
raise ValueError("Missing the required parameter `body` when calling `modify_transit_router_grant_rule_attributes`") # noqa: E501
|
|
9112
|
+
|
|
9113
|
+
collection_formats = {}
|
|
9114
|
+
|
|
9115
|
+
path_params = {}
|
|
9116
|
+
|
|
9117
|
+
query_params = []
|
|
9118
|
+
|
|
9119
|
+
header_params = {}
|
|
9120
|
+
|
|
9121
|
+
form_params = []
|
|
9122
|
+
local_var_files = {}
|
|
9123
|
+
|
|
9124
|
+
body_params = None
|
|
9125
|
+
if 'body' in params:
|
|
9126
|
+
body_params = params['body']
|
|
9127
|
+
# HTTP header `Accept`
|
|
9128
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
9129
|
+
['application/json']) # noqa: E501
|
|
9130
|
+
|
|
9131
|
+
# HTTP header `Content-Type`
|
|
9132
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
9133
|
+
['text/plain']) # noqa: E501
|
|
9134
|
+
|
|
9135
|
+
# Authentication setting
|
|
9136
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
9137
|
+
|
|
9138
|
+
return self.api_client.call_api(
|
|
9139
|
+
'/ModifyTransitRouterGrantRuleAttributes/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
9140
|
+
path_params,
|
|
9141
|
+
query_params,
|
|
9142
|
+
header_params,
|
|
9143
|
+
body=body_params,
|
|
9144
|
+
post_params=form_params,
|
|
9145
|
+
files=local_var_files,
|
|
9146
|
+
response_type='ModifyTransitRouterGrantRuleAttributesResponse', # noqa: E501
|
|
9147
|
+
auth_settings=auth_settings,
|
|
9148
|
+
async_req=params.get('async_req'),
|
|
9149
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
9150
|
+
_preload_content=params.get('_preload_content', True),
|
|
9151
|
+
_request_timeout=params.get('_request_timeout'),
|
|
9152
|
+
collection_formats=collection_formats)
|
|
9153
|
+
|
|
8475
9154
|
def modify_transit_router_multicast_domain_attributes(self, body, **kwargs): # noqa: E501
|
|
8476
9155
|
"""modify_transit_router_multicast_domain_attributes # noqa: E501
|
|
8477
9156
|
|
|
@@ -9442,6 +10121,103 @@ class TRANSITROUTERApi(object):
|
|
|
9442
10121
|
_request_timeout=params.get('_request_timeout'),
|
|
9443
10122
|
collection_formats=collection_formats)
|
|
9444
10123
|
|
|
10124
|
+
def modify_transit_router_traffic_qos_queue_entry_attributes(self, body, **kwargs): # noqa: E501
|
|
10125
|
+
"""modify_transit_router_traffic_qos_queue_entry_attributes # noqa: E501
|
|
10126
|
+
|
|
10127
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
10128
|
+
asynchronous HTTP request, please pass async_req=True
|
|
10129
|
+
>>> thread = api.modify_transit_router_traffic_qos_queue_entry_attributes(body, async_req=True)
|
|
10130
|
+
>>> result = thread.get()
|
|
10131
|
+
|
|
10132
|
+
:param async_req bool
|
|
10133
|
+
:param ModifyTransitRouterTrafficQosQueueEntryAttributesRequest body: (required)
|
|
10134
|
+
:return: ModifyTransitRouterTrafficQosQueueEntryAttributesResponse
|
|
10135
|
+
If the method is called asynchronously,
|
|
10136
|
+
returns the request thread.
|
|
10137
|
+
"""
|
|
10138
|
+
kwargs['_return_http_data_only'] = True
|
|
10139
|
+
if kwargs.get('async_req'):
|
|
10140
|
+
return self.modify_transit_router_traffic_qos_queue_entry_attributes_with_http_info(body, **kwargs) # noqa: E501
|
|
10141
|
+
else:
|
|
10142
|
+
(data) = self.modify_transit_router_traffic_qos_queue_entry_attributes_with_http_info(body, **kwargs) # noqa: E501
|
|
10143
|
+
return data
|
|
10144
|
+
|
|
10145
|
+
def modify_transit_router_traffic_qos_queue_entry_attributes_with_http_info(self, body, **kwargs): # noqa: E501
|
|
10146
|
+
"""modify_transit_router_traffic_qos_queue_entry_attributes # noqa: E501
|
|
10147
|
+
|
|
10148
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
10149
|
+
asynchronous HTTP request, please pass async_req=True
|
|
10150
|
+
>>> thread = api.modify_transit_router_traffic_qos_queue_entry_attributes_with_http_info(body, async_req=True)
|
|
10151
|
+
>>> result = thread.get()
|
|
10152
|
+
|
|
10153
|
+
:param async_req bool
|
|
10154
|
+
:param ModifyTransitRouterTrafficQosQueueEntryAttributesRequest body: (required)
|
|
10155
|
+
:return: ModifyTransitRouterTrafficQosQueueEntryAttributesResponse
|
|
10156
|
+
If the method is called asynchronously,
|
|
10157
|
+
returns the request thread.
|
|
10158
|
+
"""
|
|
10159
|
+
|
|
10160
|
+
all_params = ['body'] # noqa: E501
|
|
10161
|
+
all_params.append('async_req')
|
|
10162
|
+
all_params.append('_return_http_data_only')
|
|
10163
|
+
all_params.append('_preload_content')
|
|
10164
|
+
all_params.append('_request_timeout')
|
|
10165
|
+
|
|
10166
|
+
params = locals()
|
|
10167
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
10168
|
+
if key not in all_params:
|
|
10169
|
+
raise TypeError(
|
|
10170
|
+
"Got an unexpected keyword argument '%s'"
|
|
10171
|
+
" to method modify_transit_router_traffic_qos_queue_entry_attributes" % key
|
|
10172
|
+
)
|
|
10173
|
+
params[key] = val
|
|
10174
|
+
del params['kwargs']
|
|
10175
|
+
# verify the required parameter 'body' is set
|
|
10176
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
10177
|
+
params['body'] is None): # noqa: E501
|
|
10178
|
+
raise ValueError("Missing the required parameter `body` when calling `modify_transit_router_traffic_qos_queue_entry_attributes`") # noqa: E501
|
|
10179
|
+
|
|
10180
|
+
collection_formats = {}
|
|
10181
|
+
|
|
10182
|
+
path_params = {}
|
|
10183
|
+
|
|
10184
|
+
query_params = []
|
|
10185
|
+
|
|
10186
|
+
header_params = {}
|
|
10187
|
+
|
|
10188
|
+
form_params = []
|
|
10189
|
+
local_var_files = {}
|
|
10190
|
+
|
|
10191
|
+
body_params = None
|
|
10192
|
+
if 'body' in params:
|
|
10193
|
+
body_params = params['body']
|
|
10194
|
+
# HTTP header `Accept`
|
|
10195
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
10196
|
+
['application/json']) # noqa: E501
|
|
10197
|
+
|
|
10198
|
+
# HTTP header `Content-Type`
|
|
10199
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
10200
|
+
['text/plain']) # noqa: E501
|
|
10201
|
+
|
|
10202
|
+
# Authentication setting
|
|
10203
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
10204
|
+
|
|
10205
|
+
return self.api_client.call_api(
|
|
10206
|
+
'/ModifyTransitRouterTrafficQosQueueEntryAttributes/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
10207
|
+
path_params,
|
|
10208
|
+
query_params,
|
|
10209
|
+
header_params,
|
|
10210
|
+
body=body_params,
|
|
10211
|
+
post_params=form_params,
|
|
10212
|
+
files=local_var_files,
|
|
10213
|
+
response_type='ModifyTransitRouterTrafficQosQueueEntryAttributesResponse', # noqa: E501
|
|
10214
|
+
auth_settings=auth_settings,
|
|
10215
|
+
async_req=params.get('async_req'),
|
|
10216
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
10217
|
+
_preload_content=params.get('_preload_content', True),
|
|
10218
|
+
_request_timeout=params.get('_request_timeout'),
|
|
10219
|
+
collection_formats=collection_formats)
|
|
10220
|
+
|
|
9445
10221
|
def modify_transit_router_traffic_qos_queue_policy_association(self, body, **kwargs): # noqa: E501
|
|
9446
10222
|
"""modify_transit_router_traffic_qos_queue_policy_association # noqa: E501
|
|
9447
10223
|
|
|
@@ -9830,6 +10606,200 @@ class TRANSITROUTERApi(object):
|
|
|
9830
10606
|
_request_timeout=params.get('_request_timeout'),
|
|
9831
10607
|
collection_formats=collection_formats)
|
|
9832
10608
|
|
|
10609
|
+
def reject_shared_transit_router(self, body, **kwargs): # noqa: E501
|
|
10610
|
+
"""reject_shared_transit_router # noqa: E501
|
|
10611
|
+
|
|
10612
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
10613
|
+
asynchronous HTTP request, please pass async_req=True
|
|
10614
|
+
>>> thread = api.reject_shared_transit_router(body, async_req=True)
|
|
10615
|
+
>>> result = thread.get()
|
|
10616
|
+
|
|
10617
|
+
:param async_req bool
|
|
10618
|
+
:param RejectSharedTransitRouterRequest body: (required)
|
|
10619
|
+
:return: RejectSharedTransitRouterResponse
|
|
10620
|
+
If the method is called asynchronously,
|
|
10621
|
+
returns the request thread.
|
|
10622
|
+
"""
|
|
10623
|
+
kwargs['_return_http_data_only'] = True
|
|
10624
|
+
if kwargs.get('async_req'):
|
|
10625
|
+
return self.reject_shared_transit_router_with_http_info(body, **kwargs) # noqa: E501
|
|
10626
|
+
else:
|
|
10627
|
+
(data) = self.reject_shared_transit_router_with_http_info(body, **kwargs) # noqa: E501
|
|
10628
|
+
return data
|
|
10629
|
+
|
|
10630
|
+
def reject_shared_transit_router_with_http_info(self, body, **kwargs): # noqa: E501
|
|
10631
|
+
"""reject_shared_transit_router # noqa: E501
|
|
10632
|
+
|
|
10633
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
10634
|
+
asynchronous HTTP request, please pass async_req=True
|
|
10635
|
+
>>> thread = api.reject_shared_transit_router_with_http_info(body, async_req=True)
|
|
10636
|
+
>>> result = thread.get()
|
|
10637
|
+
|
|
10638
|
+
:param async_req bool
|
|
10639
|
+
:param RejectSharedTransitRouterRequest body: (required)
|
|
10640
|
+
:return: RejectSharedTransitRouterResponse
|
|
10641
|
+
If the method is called asynchronously,
|
|
10642
|
+
returns the request thread.
|
|
10643
|
+
"""
|
|
10644
|
+
|
|
10645
|
+
all_params = ['body'] # noqa: E501
|
|
10646
|
+
all_params.append('async_req')
|
|
10647
|
+
all_params.append('_return_http_data_only')
|
|
10648
|
+
all_params.append('_preload_content')
|
|
10649
|
+
all_params.append('_request_timeout')
|
|
10650
|
+
|
|
10651
|
+
params = locals()
|
|
10652
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
10653
|
+
if key not in all_params:
|
|
10654
|
+
raise TypeError(
|
|
10655
|
+
"Got an unexpected keyword argument '%s'"
|
|
10656
|
+
" to method reject_shared_transit_router" % key
|
|
10657
|
+
)
|
|
10658
|
+
params[key] = val
|
|
10659
|
+
del params['kwargs']
|
|
10660
|
+
# verify the required parameter 'body' is set
|
|
10661
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
10662
|
+
params['body'] is None): # noqa: E501
|
|
10663
|
+
raise ValueError("Missing the required parameter `body` when calling `reject_shared_transit_router`") # noqa: E501
|
|
10664
|
+
|
|
10665
|
+
collection_formats = {}
|
|
10666
|
+
|
|
10667
|
+
path_params = {}
|
|
10668
|
+
|
|
10669
|
+
query_params = []
|
|
10670
|
+
|
|
10671
|
+
header_params = {}
|
|
10672
|
+
|
|
10673
|
+
form_params = []
|
|
10674
|
+
local_var_files = {}
|
|
10675
|
+
|
|
10676
|
+
body_params = None
|
|
10677
|
+
if 'body' in params:
|
|
10678
|
+
body_params = params['body']
|
|
10679
|
+
# HTTP header `Accept`
|
|
10680
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
10681
|
+
['application/json']) # noqa: E501
|
|
10682
|
+
|
|
10683
|
+
# HTTP header `Content-Type`
|
|
10684
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
10685
|
+
['text/plain']) # noqa: E501
|
|
10686
|
+
|
|
10687
|
+
# Authentication setting
|
|
10688
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
10689
|
+
|
|
10690
|
+
return self.api_client.call_api(
|
|
10691
|
+
'/RejectSharedTransitRouter/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
10692
|
+
path_params,
|
|
10693
|
+
query_params,
|
|
10694
|
+
header_params,
|
|
10695
|
+
body=body_params,
|
|
10696
|
+
post_params=form_params,
|
|
10697
|
+
files=local_var_files,
|
|
10698
|
+
response_type='RejectSharedTransitRouterResponse', # noqa: E501
|
|
10699
|
+
auth_settings=auth_settings,
|
|
10700
|
+
async_req=params.get('async_req'),
|
|
10701
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
10702
|
+
_preload_content=params.get('_preload_content', True),
|
|
10703
|
+
_request_timeout=params.get('_request_timeout'),
|
|
10704
|
+
collection_formats=collection_formats)
|
|
10705
|
+
|
|
10706
|
+
def reject_transit_router_peer_attachment(self, body, **kwargs): # noqa: E501
|
|
10707
|
+
"""reject_transit_router_peer_attachment # noqa: E501
|
|
10708
|
+
|
|
10709
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
10710
|
+
asynchronous HTTP request, please pass async_req=True
|
|
10711
|
+
>>> thread = api.reject_transit_router_peer_attachment(body, async_req=True)
|
|
10712
|
+
>>> result = thread.get()
|
|
10713
|
+
|
|
10714
|
+
:param async_req bool
|
|
10715
|
+
:param RejectTransitRouterPeerAttachmentRequest body: (required)
|
|
10716
|
+
:return: RejectTransitRouterPeerAttachmentResponse
|
|
10717
|
+
If the method is called asynchronously,
|
|
10718
|
+
returns the request thread.
|
|
10719
|
+
"""
|
|
10720
|
+
kwargs['_return_http_data_only'] = True
|
|
10721
|
+
if kwargs.get('async_req'):
|
|
10722
|
+
return self.reject_transit_router_peer_attachment_with_http_info(body, **kwargs) # noqa: E501
|
|
10723
|
+
else:
|
|
10724
|
+
(data) = self.reject_transit_router_peer_attachment_with_http_info(body, **kwargs) # noqa: E501
|
|
10725
|
+
return data
|
|
10726
|
+
|
|
10727
|
+
def reject_transit_router_peer_attachment_with_http_info(self, body, **kwargs): # noqa: E501
|
|
10728
|
+
"""reject_transit_router_peer_attachment # noqa: E501
|
|
10729
|
+
|
|
10730
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
10731
|
+
asynchronous HTTP request, please pass async_req=True
|
|
10732
|
+
>>> thread = api.reject_transit_router_peer_attachment_with_http_info(body, async_req=True)
|
|
10733
|
+
>>> result = thread.get()
|
|
10734
|
+
|
|
10735
|
+
:param async_req bool
|
|
10736
|
+
:param RejectTransitRouterPeerAttachmentRequest body: (required)
|
|
10737
|
+
:return: RejectTransitRouterPeerAttachmentResponse
|
|
10738
|
+
If the method is called asynchronously,
|
|
10739
|
+
returns the request thread.
|
|
10740
|
+
"""
|
|
10741
|
+
|
|
10742
|
+
all_params = ['body'] # noqa: E501
|
|
10743
|
+
all_params.append('async_req')
|
|
10744
|
+
all_params.append('_return_http_data_only')
|
|
10745
|
+
all_params.append('_preload_content')
|
|
10746
|
+
all_params.append('_request_timeout')
|
|
10747
|
+
|
|
10748
|
+
params = locals()
|
|
10749
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
10750
|
+
if key not in all_params:
|
|
10751
|
+
raise TypeError(
|
|
10752
|
+
"Got an unexpected keyword argument '%s'"
|
|
10753
|
+
" to method reject_transit_router_peer_attachment" % key
|
|
10754
|
+
)
|
|
10755
|
+
params[key] = val
|
|
10756
|
+
del params['kwargs']
|
|
10757
|
+
# verify the required parameter 'body' is set
|
|
10758
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
10759
|
+
params['body'] is None): # noqa: E501
|
|
10760
|
+
raise ValueError("Missing the required parameter `body` when calling `reject_transit_router_peer_attachment`") # noqa: E501
|
|
10761
|
+
|
|
10762
|
+
collection_formats = {}
|
|
10763
|
+
|
|
10764
|
+
path_params = {}
|
|
10765
|
+
|
|
10766
|
+
query_params = []
|
|
10767
|
+
|
|
10768
|
+
header_params = {}
|
|
10769
|
+
|
|
10770
|
+
form_params = []
|
|
10771
|
+
local_var_files = {}
|
|
10772
|
+
|
|
10773
|
+
body_params = None
|
|
10774
|
+
if 'body' in params:
|
|
10775
|
+
body_params = params['body']
|
|
10776
|
+
# HTTP header `Accept`
|
|
10777
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
10778
|
+
['application/json']) # noqa: E501
|
|
10779
|
+
|
|
10780
|
+
# HTTP header `Content-Type`
|
|
10781
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
10782
|
+
['text/plain']) # noqa: E501
|
|
10783
|
+
|
|
10784
|
+
# Authentication setting
|
|
10785
|
+
auth_settings = ['byteplusSign'] # noqa: E501
|
|
10786
|
+
|
|
10787
|
+
return self.api_client.call_api(
|
|
10788
|
+
'/RejectTransitRouterPeerAttachment/2020-04-01/transitrouter/get/text_plain/', 'GET',
|
|
10789
|
+
path_params,
|
|
10790
|
+
query_params,
|
|
10791
|
+
header_params,
|
|
10792
|
+
body=body_params,
|
|
10793
|
+
post_params=form_params,
|
|
10794
|
+
files=local_var_files,
|
|
10795
|
+
response_type='RejectTransitRouterPeerAttachmentResponse', # noqa: E501
|
|
10796
|
+
auth_settings=auth_settings,
|
|
10797
|
+
async_req=params.get('async_req'),
|
|
10798
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
10799
|
+
_preload_content=params.get('_preload_content', True),
|
|
10800
|
+
_request_timeout=params.get('_request_timeout'),
|
|
10801
|
+
collection_formats=collection_formats)
|
|
10802
|
+
|
|
9833
10803
|
def renew_transit_router_bandwidth_package(self, body, **kwargs): # noqa: E501
|
|
9834
10804
|
"""renew_transit_router_bandwidth_package # noqa: E501
|
|
9835
10805
|
|