@@ -1100,6 +1100,103 @@ def delete_key_material_with_http_info(self, body, **kwargs): # noqa: E501
11001100 _request_timeout = params .get ('_request_timeout' ),
11011101 collection_formats = collection_formats )
11021102
1103+ def delete_keyring (self , body , ** kwargs ): # noqa: E501
1104+ """delete_keyring # noqa: E501
1105+
1106+ This method makes a synchronous HTTP request by default. To make an
1107+ asynchronous HTTP request, please pass async_req=True
1108+ >>> thread = api.delete_keyring(body, async_req=True)
1109+ >>> result = thread.get()
1110+
1111+ :param async_req bool
1112+ :param DeleteKeyringRequest body: (required)
1113+ :return: DeleteKeyringResponse
1114+ If the method is called asynchronously,
1115+ returns the request thread.
1116+ """
1117+ kwargs ['_return_http_data_only' ] = True
1118+ if kwargs .get ('async_req' ):
1119+ return self .delete_keyring_with_http_info (body , ** kwargs ) # noqa: E501
1120+ else :
1121+ (data ) = self .delete_keyring_with_http_info (body , ** kwargs ) # noqa: E501
1122+ return data
1123+
1124+ def delete_keyring_with_http_info (self , body , ** kwargs ): # noqa: E501
1125+ """delete_keyring # noqa: E501
1126+
1127+ This method makes a synchronous HTTP request by default. To make an
1128+ asynchronous HTTP request, please pass async_req=True
1129+ >>> thread = api.delete_keyring_with_http_info(body, async_req=True)
1130+ >>> result = thread.get()
1131+
1132+ :param async_req bool
1133+ :param DeleteKeyringRequest body: (required)
1134+ :return: DeleteKeyringResponse
1135+ If the method is called asynchronously,
1136+ returns the request thread.
1137+ """
1138+
1139+ all_params = ['body' ] # noqa: E501
1140+ all_params .append ('async_req' )
1141+ all_params .append ('_return_http_data_only' )
1142+ all_params .append ('_preload_content' )
1143+ all_params .append ('_request_timeout' )
1144+
1145+ params = locals ()
1146+ for key , val in six .iteritems (params ['kwargs' ]):
1147+ if key not in all_params :
1148+ raise TypeError (
1149+ "Got an unexpected keyword argument '%s'"
1150+ " to method delete_keyring" % key
1151+ )
1152+ params [key ] = val
1153+ del params ['kwargs' ]
1154+ # verify the required parameter 'body' is set
1155+ if self .api_client .client_side_validation and ('body' not in params or
1156+ params ['body' ] is None ): # noqa: E501
1157+ raise ValueError ("Missing the required parameter `body` when calling `delete_keyring`" ) # noqa: E501
1158+
1159+ collection_formats = {}
1160+
1161+ path_params = {}
1162+
1163+ query_params = []
1164+
1165+ header_params = {}
1166+
1167+ form_params = []
1168+ local_var_files = {}
1169+
1170+ body_params = None
1171+ if 'body' in params :
1172+ body_params = params ['body' ]
1173+ # HTTP header `Accept`
1174+ header_params ['Accept' ] = self .api_client .select_header_accept (
1175+ ['application/json' ]) # noqa: E501
1176+
1177+ # HTTP header `Content-Type`
1178+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1179+ ['application/json' ]) # noqa: E501
1180+
1181+ # Authentication setting
1182+ auth_settings = ['volcengineSign' ] # noqa: E501
1183+
1184+ return self .api_client .call_api (
1185+ '/DeleteKeyring/2021-02-18/kms/post/application_json/' , 'POST' ,
1186+ path_params ,
1187+ query_params ,
1188+ header_params ,
1189+ body = body_params ,
1190+ post_params = form_params ,
1191+ files = local_var_files ,
1192+ response_type = 'DeleteKeyringResponse' , # noqa: E501
1193+ auth_settings = auth_settings ,
1194+ async_req = params .get ('async_req' ),
1195+ _return_http_data_only = params .get ('_return_http_data_only' ),
1196+ _preload_content = params .get ('_preload_content' , True ),
1197+ _request_timeout = params .get ('_request_timeout' ),
1198+ collection_formats = collection_formats )
1199+
11031200 def describe_key (self , body , ** kwargs ): # noqa: E501
11041201 """describe_key # noqa: E501
11051202
0 commit comments