@@ -1682,6 +1682,103 @@ def delete_schema_with_http_info(self, body, **kwargs): # noqa: E501
16821682 _request_timeout = params .get ('_request_timeout' ),
16831683 collection_formats = collection_formats )
16841684
1685+ def delete_slot (self , body , ** kwargs ): # noqa: E501
1686+ """delete_slot # noqa: E501
1687+
1688+ This method makes a synchronous HTTP request by default. To make an
1689+ asynchronous HTTP request, please pass async_req=True
1690+ >>> thread = api.delete_slot(body, async_req=True)
1691+ >>> result = thread.get()
1692+
1693+ :param async_req bool
1694+ :param DeleteSlotRequest body: (required)
1695+ :return: DeleteSlotResponse
1696+ If the method is called asynchronously,
1697+ returns the request thread.
1698+ """
1699+ kwargs ['_return_http_data_only' ] = True
1700+ if kwargs .get ('async_req' ):
1701+ return self .delete_slot_with_http_info (body , ** kwargs ) # noqa: E501
1702+ else :
1703+ (data ) = self .delete_slot_with_http_info (body , ** kwargs ) # noqa: E501
1704+ return data
1705+
1706+ def delete_slot_with_http_info (self , body , ** kwargs ): # noqa: E501
1707+ """delete_slot # noqa: E501
1708+
1709+ This method makes a synchronous HTTP request by default. To make an
1710+ asynchronous HTTP request, please pass async_req=True
1711+ >>> thread = api.delete_slot_with_http_info(body, async_req=True)
1712+ >>> result = thread.get()
1713+
1714+ :param async_req bool
1715+ :param DeleteSlotRequest body: (required)
1716+ :return: DeleteSlotResponse
1717+ If the method is called asynchronously,
1718+ returns the request thread.
1719+ """
1720+
1721+ all_params = ['body' ] # noqa: E501
1722+ all_params .append ('async_req' )
1723+ all_params .append ('_return_http_data_only' )
1724+ all_params .append ('_preload_content' )
1725+ all_params .append ('_request_timeout' )
1726+
1727+ params = locals ()
1728+ for key , val in six .iteritems (params ['kwargs' ]):
1729+ if key not in all_params :
1730+ raise TypeError (
1731+ "Got an unexpected keyword argument '%s'"
1732+ " to method delete_slot" % key
1733+ )
1734+ params [key ] = val
1735+ del params ['kwargs' ]
1736+ # verify the required parameter 'body' is set
1737+ if self .api_client .client_side_validation and ('body' not in params or
1738+ params ['body' ] is None ): # noqa: E501
1739+ raise ValueError ("Missing the required parameter `body` when calling `delete_slot`" ) # noqa: E501
1740+
1741+ collection_formats = {}
1742+
1743+ path_params = {}
1744+
1745+ query_params = []
1746+
1747+ header_params = {}
1748+
1749+ form_params = []
1750+ local_var_files = {}
1751+
1752+ body_params = None
1753+ if 'body' in params :
1754+ body_params = params ['body' ]
1755+ # HTTP header `Accept`
1756+ header_params ['Accept' ] = self .api_client .select_header_accept (
1757+ ['application/json' ]) # noqa: E501
1758+
1759+ # HTTP header `Content-Type`
1760+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1761+ ['application/json' ]) # noqa: E501
1762+
1763+ # Authentication setting
1764+ auth_settings = ['volcengineSign' ] # noqa: E501
1765+
1766+ return self .api_client .call_api (
1767+ '/DeleteSlot/2022-01-01/rds_postgresql/post/application_json/' , 'POST' ,
1768+ path_params ,
1769+ query_params ,
1770+ header_params ,
1771+ body = body_params ,
1772+ post_params = form_params ,
1773+ files = local_var_files ,
1774+ response_type = 'DeleteSlotResponse' , # noqa: E501
1775+ auth_settings = auth_settings ,
1776+ async_req = params .get ('async_req' ),
1777+ _return_http_data_only = params .get ('_return_http_data_only' ),
1778+ _preload_content = params .get ('_preload_content' , True ),
1779+ _request_timeout = params .get ('_request_timeout' ),
1780+ collection_formats = collection_formats )
1781+
16851782 def describe_allow_list_detail (self , body , ** kwargs ): # noqa: E501
16861783 """describe_allow_list_detail # noqa: E501
16871784
@@ -3525,6 +3622,103 @@ def describe_schemas_with_http_info(self, body, **kwargs): # noqa: E501
35253622 _request_timeout = params .get ('_request_timeout' ),
35263623 collection_formats = collection_formats )
35273624
3625+ def describe_slots (self , body , ** kwargs ): # noqa: E501
3626+ """describe_slots # noqa: E501
3627+
3628+ This method makes a synchronous HTTP request by default. To make an
3629+ asynchronous HTTP request, please pass async_req=True
3630+ >>> thread = api.describe_slots(body, async_req=True)
3631+ >>> result = thread.get()
3632+
3633+ :param async_req bool
3634+ :param DescribeSlotsRequest body: (required)
3635+ :return: DescribeSlotsResponse
3636+ If the method is called asynchronously,
3637+ returns the request thread.
3638+ """
3639+ kwargs ['_return_http_data_only' ] = True
3640+ if kwargs .get ('async_req' ):
3641+ return self .describe_slots_with_http_info (body , ** kwargs ) # noqa: E501
3642+ else :
3643+ (data ) = self .describe_slots_with_http_info (body , ** kwargs ) # noqa: E501
3644+ return data
3645+
3646+ def describe_slots_with_http_info (self , body , ** kwargs ): # noqa: E501
3647+ """describe_slots # noqa: E501
3648+
3649+ This method makes a synchronous HTTP request by default. To make an
3650+ asynchronous HTTP request, please pass async_req=True
3651+ >>> thread = api.describe_slots_with_http_info(body, async_req=True)
3652+ >>> result = thread.get()
3653+
3654+ :param async_req bool
3655+ :param DescribeSlotsRequest body: (required)
3656+ :return: DescribeSlotsResponse
3657+ If the method is called asynchronously,
3658+ returns the request thread.
3659+ """
3660+
3661+ all_params = ['body' ] # noqa: E501
3662+ all_params .append ('async_req' )
3663+ all_params .append ('_return_http_data_only' )
3664+ all_params .append ('_preload_content' )
3665+ all_params .append ('_request_timeout' )
3666+
3667+ params = locals ()
3668+ for key , val in six .iteritems (params ['kwargs' ]):
3669+ if key not in all_params :
3670+ raise TypeError (
3671+ "Got an unexpected keyword argument '%s'"
3672+ " to method describe_slots" % key
3673+ )
3674+ params [key ] = val
3675+ del params ['kwargs' ]
3676+ # verify the required parameter 'body' is set
3677+ if self .api_client .client_side_validation and ('body' not in params or
3678+ params ['body' ] is None ): # noqa: E501
3679+ raise ValueError ("Missing the required parameter `body` when calling `describe_slots`" ) # noqa: E501
3680+
3681+ collection_formats = {}
3682+
3683+ path_params = {}
3684+
3685+ query_params = []
3686+
3687+ header_params = {}
3688+
3689+ form_params = []
3690+ local_var_files = {}
3691+
3692+ body_params = None
3693+ if 'body' in params :
3694+ body_params = params ['body' ]
3695+ # HTTP header `Accept`
3696+ header_params ['Accept' ] = self .api_client .select_header_accept (
3697+ ['application/json' ]) # noqa: E501
3698+
3699+ # HTTP header `Content-Type`
3700+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
3701+ ['application/json' ]) # noqa: E501
3702+
3703+ # Authentication setting
3704+ auth_settings = ['volcengineSign' ] # noqa: E501
3705+
3706+ return self .api_client .call_api (
3707+ '/DescribeSlots/2022-01-01/rds_postgresql/post/application_json/' , 'POST' ,
3708+ path_params ,
3709+ query_params ,
3710+ header_params ,
3711+ body = body_params ,
3712+ post_params = form_params ,
3713+ files = local_var_files ,
3714+ response_type = 'DescribeSlotsResponse' , # noqa: E501
3715+ auth_settings = auth_settings ,
3716+ async_req = params .get ('async_req' ),
3717+ _return_http_data_only = params .get ('_return_http_data_only' ),
3718+ _preload_content = params .get ('_preload_content' , True ),
3719+ _request_timeout = params .get ('_request_timeout' ),
3720+ collection_formats = collection_formats )
3721+
35283722 def disassociate_allow_list (self , body , ** kwargs ): # noqa: E501
35293723 """disassociate_allow_list # noqa: E501
35303724
0 commit comments