All Classes Files Functions Variables Pages
Storage.idl
Go to the documentation of this file.
1 /**
2  * @file Storage.idl
3  * @brief API for Storage
4  * @version 2
5  */
6 
7 #import <kerio/web/idl/SharedStructures.idl>
8 
9 module webadmin {
10 
11 enum StorageDataType {
12  StorageDataStar
13  , StorageDataLogs
14  , StorageDataCrash
15  , StorageDataPktdump
16  , StorageDataUpdate
17  , StorageDataQuarantine
18  , StorageDataHttpCache
19 };
20 
21 struct StorageData {
22  StorageDataType type;
23  double size;
24 };
25 
26 typedef sequence<StorageData> StorageDataList;
27 
28 interface Storage {
29 
30  /**
31  * @param data - Returns list of data present on storage.
32  * @throws kerio::web::ApiException \n
33  * -32001 Session expired. - "The user is not logged in." \n
34  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
35  */
36  void get(out StorageDataList data);
37 
38  /**
39  * @param type - Delete data specified by type from storage.
40  * @throws kerio::web::ApiException \n
41  * -32001 Session expired. - "The user is not logged in." \n
42  * 1004 Access denied. - "Insufficient rights to perform the requested operation." \n
43  * 1000 Operation failed. - "Some files cannot be deleted, they may be currently in use."
44  */
45  void remove(in StorageDataType type);
46 
47 };
48 
49 }; //webadmin
Definition: Storage.idl:21
Definition: Storage.idl:28
Definition: Accounting.idl:11