diff options
author | Simon Rettberg | 2015-07-20 12:32:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-07-20 12:32:39 +0200 |
commit | 06af3543b39316330555db2baaf305711d943973 (patch) | |
tree | 732203d7cb61b5da681ed14362d6a2e728da8862 /src/main/thrift | |
parent | Add TransferState to thrift api (diff) | |
download | master-sync-shared-06af3543b39316330555db2baaf305711d943973.tar.gz master-sync-shared-06af3543b39316330555db2baaf305711d943973.tar.xz master-sync-shared-06af3543b39316330555db2baaf305711d943973.zip |
Thrift API changes, add configurable timeout to file transfer classes
Diffstat (limited to 'src/main/thrift')
-rw-r--r-- | src/main/thrift/bwlp.thrift | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 34b6461..3edbe5a 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -149,6 +149,8 @@ struct ImageBaseWrite { 5: bool isTemplate, 6: ImagePermissions defaultPermissions, 7: ShareMode shareMode, + 8: optional list<string> addTags, + 9: optional list<string> remTags, } struct ImageVersionWrite { @@ -229,11 +231,12 @@ struct LectureWrite { 7: UnixTimestamp endTime, 9: string runscript, 10: list<string> nics, - 11: optional list<string> allowedUsers, // allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master - 12: optional list<NetRule> networkExceptions, + 12: optional list<NetRule> networkExceptions, // Atomically replace rules 13: bool isExam, 14: bool hasInternetAccess, 15: LecturePermissions defaultPermissions, + 11: optional list<string> addAllowedUsers, // add allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master + 16: optional list<string> remAllowedUsers, // users to remove from that list } struct LectureSummary { @@ -280,6 +283,17 @@ struct LectureRead { 22: optional LecturePermissions userPermissions, } +struct MasterTag { + 1: string tag, + 2: UnixTimestamp createTime, +} + +struct MasterSoftware { + 1: string software, + 2: bool isRestricted, + 3: UnixTimestamp createTime, +} + struct TransferInformation { 1: string token, 2: i32 plainPort, @@ -465,10 +479,23 @@ service MasterServer { * Shared calls */ // Get list of known organizations with meta data - list<Organization> getOrganizations(), + list<Organization> getOrganizations() + throws (1:TInternalServerError serverError), - list<OperatingSystem> getOperatingSystems(), + // List of known/defined operating systems + list<OperatingSystem> getOperatingSystems() + throws (1:TInternalServerError serverError), - list<Virtualizer> getVirtualizers(), + // List of known/defined virtualizers + list<Virtualizer> getVirtualizers() + throws (1:TInternalServerError serverError), + + // List of "official" tags, starting from specific date + list<MasterTag> getTags(1:UnixTimestamp startDate) + throws (1:TInternalServerError serverError), + + // List of "official" software, starting from specific date + list<MasterSoftware> getSoftware(1:UnixTimestamp startDate) + throws (1:TInternalServerError serverError), } |