From ba691ef7a9ee4b0abd121dd487859f8fb38a0fa1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 22 Jun 2015 17:30:12 +0200 Subject: Update api --- src/main/thrift/bwlp.thrift | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'src/main/thrift/bwlp.thrift') diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 0f003b4..44c6169 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -106,6 +106,21 @@ struct OperatingSystem { 4: string architecture, } +// Sat <-> Master +struct ImagePublishData { + 1: UUID imageBaseId, + 2: UUID currentVersionId, + 3: string imageName, + 4: i32 osId, + 5: string virtId, + 6: UnixTimestamp baseCreateTime, + 7: UnixTimestamp versionCreateTime, + 8: UUID ownerId, + 9: UUID uploaderId, + 11: i64 fileSize, + 16: bool isTemplate, +} + struct ImagePermissions { 1: bool link 2: bool download @@ -128,20 +143,6 @@ struct ImageBaseWrite { 7: optional UUID ownerId, } -struct ImagePublishData { - 1: UUID imageBaseId, - 2: UUID currentVersionId, - 3: string imageName, - 4: i32 osId, - 5: string virtId, - 6: UnixTimestamp baseCreateTime, - 7: UnixTimestamp versionCreateTime, - 8: UUID ownerId, - 9: UUID uploaderId, - 11: i64 fileSize, - 16: bool isTemplate, -} - struct ImageVersionWrite { 1: bool isEnabled, 2: bool isRestricted, @@ -209,6 +210,7 @@ struct NetRule { 4: i32 port, } +// Write lecture to sat. if optional fields are not set or null, their value stays unchanged struct LectureWrite { 1: string lectureName, 2: string description, @@ -220,8 +222,8 @@ struct LectureWrite { 8: UUID ownerId, 9: string runscript, 10: list nics, - 11: list allowedUsers, // allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master - 12: list networkExceptions, + 11: optional list allowedUsers, // allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master + 12: optional list networkExceptions, 13: bool isExam, 14: bool hasInternetAccess, 15: LecturePermissions defaultPermissions, -- cgit v1.2.3-55-g7522