From 800f5b508255bb1449cc54ded5426c56bd9ac713 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 1 Apr 2025 17:55:59 +0200 Subject: Field belongs to version, not base image.... --- .../bwlp/thrift/iface/ImageDetailsRead.java | 115 +----------------- .../bwlp/thrift/iface/ImageVersionDetails.java | 131 ++++++++++++++++++++- src/main/thrift/bwlp.thrift | 2 +- 3 files changed, 131 insertions(+), 117 deletions(-) (limited to 'src/main') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java index 0a5d54b..b7cb058 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java @@ -27,7 +27,6 @@ public class ImageDetailsRead implements org.apache.thrift.TBase byName = new java.util.HashMap(); @@ -124,8 +121,6 @@ public class ImageDetailsRead implements org.apache.thrift.TBase metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -212,8 +207,6 @@ public class ImageDetailsRead implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ImageVersionDetails"); @@ -20,6 +20,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase software; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imagePath; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -44,7 +46,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase byName = new java.util.HashMap(); @@ -78,6 +81,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -148,6 +156,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase __this__software = new java.util.ArrayList(other.software); this.software = __this__software; } + if (other.isSetImagePath()) { + this.imagePath = other.imagePath; + } } + @Override public ImageVersionDetails deepCopy() { return new ImageVersionDetails(this); } @@ -228,6 +242,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase { + @Override public void read(org.apache.thrift.protocol.TProtocol iprot, ImageVersionDetails struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); @@ -1020,6 +1114,14 @@ public class ImageVersionDetails implements org.apache.thrift.TBase software, + 11: optional string imagePath, // Null if no download permission, internal image path otherwise } struct ImageDetailsRead { @@ -227,7 +228,6 @@ struct ImageDetailsRead { 15: bool isTemplate, 16: ImagePermissions defaultPermissions, 18: optional ImagePermissions userPermissions, - 19: optional string imagePath, // Null if no download permission, internal image path otherwise } struct ImagePublishData { -- cgit v1.2.3-55-g7522