summaryrefslogtreecommitdiffstats
path: root/src/main/thrift/bwlp.thrift
diff options
context:
space:
mode:
authorSimon Rettberg2015-06-22 17:30:12 +0200
committerSimon Rettberg2015-06-22 17:30:12 +0200
commitba691ef7a9ee4b0abd121dd487859f8fb38a0fa1 (patch)
tree816edb3ebd8b083057fc3de588657277d8e1c091 /src/main/thrift/bwlp.thrift
parentAdd more Thrift calls (diff)
downloadmaster-sync-shared-ba691ef7a9ee4b0abd121dd487859f8fb38a0fa1.tar.gz
master-sync-shared-ba691ef7a9ee4b0abd121dd487859f8fb38a0fa1.tar.xz
master-sync-shared-ba691ef7a9ee4b0abd121dd487859f8fb38a0fa1.zip
Update api
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r--src/main/thrift/bwlp.thrift34
1 files changed, 18 insertions, 16 deletions
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<string> nics,
- 11: list<string> allowedUsers, // allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master
- 12: list<NetRule> networkExceptions,
+ 11: optional list<string> allowedUsers, // allowed to see/select image in vmchooser. These are local accounts, not bwIDM/Master
+ 12: optional list<NetRule> networkExceptions,
13: bool isExam,
14: bool hasInternetAccess,
15: LecturePermissions defaultPermissions,