@@ -33,6 +33,103 @@ def __init__(self, api_client=None):
3333 api_client = volcenginesdkcore .ApiClient ()
3434 self .api_client = api_client
3535
36+ def apply_direct_connect_connection_loa (self , body , ** kwargs ): # noqa: E501
37+ """apply_direct_connect_connection_loa # 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.apply_direct_connect_connection_loa(body, async_req=True)
42+ >>> result = thread.get()
43+
44+ :param async_req bool
45+ :param ApplyDirectConnectConnectionLoaRequest body: (required)
46+ :return: ApplyDirectConnectConnectionLoaResponse
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 .apply_direct_connect_connection_loa_with_http_info (body , ** kwargs ) # noqa: E501
53+ else :
54+ (data ) = self .apply_direct_connect_connection_loa_with_http_info (body , ** kwargs ) # noqa: E501
55+ return data
56+
57+ def apply_direct_connect_connection_loa_with_http_info (self , body , ** kwargs ): # noqa: E501
58+ """apply_direct_connect_connection_loa # 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.apply_direct_connect_connection_loa_with_http_info(body, async_req=True)
63+ >>> result = thread.get()
64+
65+ :param async_req bool
66+ :param ApplyDirectConnectConnectionLoaRequest body: (required)
67+ :return: ApplyDirectConnectConnectionLoaResponse
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 apply_direct_connect_connection_loa" % 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 `apply_direct_connect_connection_loa`" ) # 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 = ['volcengineSign' ] # noqa: E501
116+
117+ return self .api_client .call_api (
118+ '/ApplyDirectConnectConnectionLoa/2020-04-01/directconnect/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 = 'ApplyDirectConnectConnectionLoaResponse' , # 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+
36133 def create_bgp_peer (self , body , ** kwargs ): # noqa: E501
37134 """create_bgp_peer # noqa: E501
38135
@@ -1488,6 +1585,103 @@ def describe_direct_connect_connection_attributes_with_http_info(self, body, **k
14881585 _request_timeout = params .get ('_request_timeout' ),
14891586 collection_formats = collection_formats )
14901587
1588+ def describe_direct_connect_connection_loa_attributes (self , body , ** kwargs ): # noqa: E501
1589+ """describe_direct_connect_connection_loa_attributes # noqa: E501
1590+
1591+ This method makes a synchronous HTTP request by default. To make an
1592+ asynchronous HTTP request, please pass async_req=True
1593+ >>> thread = api.describe_direct_connect_connection_loa_attributes(body, async_req=True)
1594+ >>> result = thread.get()
1595+
1596+ :param async_req bool
1597+ :param DescribeDirectConnectConnectionLoaAttributesRequest body: (required)
1598+ :return: DescribeDirectConnectConnectionLoaAttributesResponse
1599+ If the method is called asynchronously,
1600+ returns the request thread.
1601+ """
1602+ kwargs ['_return_http_data_only' ] = True
1603+ if kwargs .get ('async_req' ):
1604+ return self .describe_direct_connect_connection_loa_attributes_with_http_info (body , ** kwargs ) # noqa: E501
1605+ else :
1606+ (data ) = self .describe_direct_connect_connection_loa_attributes_with_http_info (body , ** kwargs ) # noqa: E501
1607+ return data
1608+
1609+ def describe_direct_connect_connection_loa_attributes_with_http_info (self , body , ** kwargs ): # noqa: E501
1610+ """describe_direct_connect_connection_loa_attributes # noqa: E501
1611+
1612+ This method makes a synchronous HTTP request by default. To make an
1613+ asynchronous HTTP request, please pass async_req=True
1614+ >>> thread = api.describe_direct_connect_connection_loa_attributes_with_http_info(body, async_req=True)
1615+ >>> result = thread.get()
1616+
1617+ :param async_req bool
1618+ :param DescribeDirectConnectConnectionLoaAttributesRequest body: (required)
1619+ :return: DescribeDirectConnectConnectionLoaAttributesResponse
1620+ If the method is called asynchronously,
1621+ returns the request thread.
1622+ """
1623+
1624+ all_params = ['body' ] # noqa: E501
1625+ all_params .append ('async_req' )
1626+ all_params .append ('_return_http_data_only' )
1627+ all_params .append ('_preload_content' )
1628+ all_params .append ('_request_timeout' )
1629+
1630+ params = locals ()
1631+ for key , val in six .iteritems (params ['kwargs' ]):
1632+ if key not in all_params :
1633+ raise TypeError (
1634+ "Got an unexpected keyword argument '%s'"
1635+ " to method describe_direct_connect_connection_loa_attributes" % key
1636+ )
1637+ params [key ] = val
1638+ del params ['kwargs' ]
1639+ # verify the required parameter 'body' is set
1640+ if self .api_client .client_side_validation and ('body' not in params or
1641+ params ['body' ] is None ): # noqa: E501
1642+ raise ValueError ("Missing the required parameter `body` when calling `describe_direct_connect_connection_loa_attributes`" ) # noqa: E501
1643+
1644+ collection_formats = {}
1645+
1646+ path_params = {}
1647+
1648+ query_params = []
1649+
1650+ header_params = {}
1651+
1652+ form_params = []
1653+ local_var_files = {}
1654+
1655+ body_params = None
1656+ if 'body' in params :
1657+ body_params = params ['body' ]
1658+ # HTTP header `Accept`
1659+ header_params ['Accept' ] = self .api_client .select_header_accept (
1660+ ['application/json' ]) # noqa: E501
1661+
1662+ # HTTP header `Content-Type`
1663+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1664+ ['text/plain' ]) # noqa: E501
1665+
1666+ # Authentication setting
1667+ auth_settings = ['volcengineSign' ] # noqa: E501
1668+
1669+ return self .api_client .call_api (
1670+ '/DescribeDirectConnectConnectionLoaAttributes/2020-04-01/directconnect/get/text_plain/' , 'GET' ,
1671+ path_params ,
1672+ query_params ,
1673+ header_params ,
1674+ body = body_params ,
1675+ post_params = form_params ,
1676+ files = local_var_files ,
1677+ response_type = 'DescribeDirectConnectConnectionLoaAttributesResponse' , # noqa: E501
1678+ auth_settings = auth_settings ,
1679+ async_req = params .get ('async_req' ),
1680+ _return_http_data_only = params .get ('_return_http_data_only' ),
1681+ _preload_content = params .get ('_preload_content' , True ),
1682+ _request_timeout = params .get ('_request_timeout' ),
1683+ collection_formats = collection_formats )
1684+
14911685 def describe_direct_connect_connections (self , body , ** kwargs ): # noqa: E501
14921686 """describe_direct_connect_connections # noqa: E501
14931687
@@ -2361,6 +2555,103 @@ def modify_direct_connect_connection_attributes_with_http_info(self, body, **kwa
23612555 _request_timeout = params .get ('_request_timeout' ),
23622556 collection_formats = collection_formats )
23632557
2558+ def modify_direct_connect_connection_loa_attributes (self , body , ** kwargs ): # noqa: E501
2559+ """modify_direct_connect_connection_loa_attributes # noqa: E501
2560+
2561+ This method makes a synchronous HTTP request by default. To make an
2562+ asynchronous HTTP request, please pass async_req=True
2563+ >>> thread = api.modify_direct_connect_connection_loa_attributes(body, async_req=True)
2564+ >>> result = thread.get()
2565+
2566+ :param async_req bool
2567+ :param ModifyDirectConnectConnectionLoaAttributesRequest body: (required)
2568+ :return: ModifyDirectConnectConnectionLoaAttributesResponse
2569+ If the method is called asynchronously,
2570+ returns the request thread.
2571+ """
2572+ kwargs ['_return_http_data_only' ] = True
2573+ if kwargs .get ('async_req' ):
2574+ return self .modify_direct_connect_connection_loa_attributes_with_http_info (body , ** kwargs ) # noqa: E501
2575+ else :
2576+ (data ) = self .modify_direct_connect_connection_loa_attributes_with_http_info (body , ** kwargs ) # noqa: E501
2577+ return data
2578+
2579+ def modify_direct_connect_connection_loa_attributes_with_http_info (self , body , ** kwargs ): # noqa: E501
2580+ """modify_direct_connect_connection_loa_attributes # noqa: E501
2581+
2582+ This method makes a synchronous HTTP request by default. To make an
2583+ asynchronous HTTP request, please pass async_req=True
2584+ >>> thread = api.modify_direct_connect_connection_loa_attributes_with_http_info(body, async_req=True)
2585+ >>> result = thread.get()
2586+
2587+ :param async_req bool
2588+ :param ModifyDirectConnectConnectionLoaAttributesRequest body: (required)
2589+ :return: ModifyDirectConnectConnectionLoaAttributesResponse
2590+ If the method is called asynchronously,
2591+ returns the request thread.
2592+ """
2593+
2594+ all_params = ['body' ] # noqa: E501
2595+ all_params .append ('async_req' )
2596+ all_params .append ('_return_http_data_only' )
2597+ all_params .append ('_preload_content' )
2598+ all_params .append ('_request_timeout' )
2599+
2600+ params = locals ()
2601+ for key , val in six .iteritems (params ['kwargs' ]):
2602+ if key not in all_params :
2603+ raise TypeError (
2604+ "Got an unexpected keyword argument '%s'"
2605+ " to method modify_direct_connect_connection_loa_attributes" % key
2606+ )
2607+ params [key ] = val
2608+ del params ['kwargs' ]
2609+ # verify the required parameter 'body' is set
2610+ if self .api_client .client_side_validation and ('body' not in params or
2611+ params ['body' ] is None ): # noqa: E501
2612+ raise ValueError ("Missing the required parameter `body` when calling `modify_direct_connect_connection_loa_attributes`" ) # noqa: E501
2613+
2614+ collection_formats = {}
2615+
2616+ path_params = {}
2617+
2618+ query_params = []
2619+
2620+ header_params = {}
2621+
2622+ form_params = []
2623+ local_var_files = {}
2624+
2625+ body_params = None
2626+ if 'body' in params :
2627+ body_params = params ['body' ]
2628+ # HTTP header `Accept`
2629+ header_params ['Accept' ] = self .api_client .select_header_accept (
2630+ ['application/json' ]) # noqa: E501
2631+
2632+ # HTTP header `Content-Type`
2633+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2634+ ['text/plain' ]) # noqa: E501
2635+
2636+ # Authentication setting
2637+ auth_settings = ['volcengineSign' ] # noqa: E501
2638+
2639+ return self .api_client .call_api (
2640+ '/ModifyDirectConnectConnectionLoaAttributes/2020-04-01/directconnect/get/text_plain/' , 'GET' ,
2641+ path_params ,
2642+ query_params ,
2643+ header_params ,
2644+ body = body_params ,
2645+ post_params = form_params ,
2646+ files = local_var_files ,
2647+ response_type = 'ModifyDirectConnectConnectionLoaAttributesResponse' , # noqa: E501
2648+ auth_settings = auth_settings ,
2649+ async_req = params .get ('async_req' ),
2650+ _return_http_data_only = params .get ('_return_http_data_only' ),
2651+ _preload_content = params .get ('_preload_content' , True ),
2652+ _request_timeout = params .get ('_request_timeout' ),
2653+ collection_formats = collection_formats )
2654+
23642655 def modify_direct_connect_gateway_attributes (self , body , ** kwargs ): # noqa: E501
23652656 """modify_direct_connect_gateway_attributes # noqa: E501
23662657
0 commit comments