From 06af3543b39316330555db2baaf305711d943973 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 20 Jul 2015 12:32:39 +0200 Subject: Thrift API changes, add configurable timeout to file transfer classes --- src/main/thrift/bwlp.thrift | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) (limited to 'src/main/thrift/bwlp.thrift') 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 addTags, + 9: optional list remTags, } struct ImageVersionWrite { @@ -229,11 +231,12 @@ struct LectureWrite { 7: UnixTimestamp endTime, 9: string runscript, 10: list nics, - 11: optional list allowedUsers, // allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master - 12: optional list networkExceptions, + 12: optional list networkExceptions, // Atomically replace rules 13: bool isExam, 14: bool hasInternetAccess, 15: LecturePermissions defaultPermissions, + 11: optional list addAllowedUsers, // add allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master + 16: optional list 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 getOrganizations(), + list getOrganizations() + throws (1:TInternalServerError serverError), - list getOperatingSystems(), + // List of known/defined operating systems + list getOperatingSystems() + throws (1:TInternalServerError serverError), - list getVirtualizers(), + // List of known/defined virtualizers + list getVirtualizers() + throws (1:TInternalServerError serverError), + + // List of "official" tags, starting from specific date + list getTags(1:UnixTimestamp startDate) + throws (1:TInternalServerError serverError), + + // List of "official" software, starting from specific date + list getSoftware(1:UnixTimestamp startDate) + throws (1:TInternalServerError serverError), } -- cgit v1.2.3-55-g7522