public static void DeleteSearchIndex(OTSClient otsClient) { Console.WriteLine("\n Start Delete searchindex..."); DeleteSearchIndexRequest request = new DeleteSearchIndexRequest(TableName, IndexName); DeleteSearchIndexResponse response = otsClient.DeleteSearchIndex(request); Console.WriteLine("Searchindex is deleted:" + IndexName); }
/// <summary> /// DeleteSearchIndex的异步形式。 /// </summary> /// <param name="request"></param> /// <returns></returns> public Task <DeleteSearchIndexResponse> DeleteSearchIndexAsync(DeleteSearchIndexRequest request) { return(CallAsync <DeleteSearchIndexRequest, DeleteSearchIndexResponse>("/DeleteSearchIndex", request)); }
public DeleteSearchIndexResponse DeleteSearchIndex(DeleteSearchIndexRequest request) { return(GetResponseFromAsyncTask(DeleteSearchIndexAsync(request))); }