diff --git a/storegate/pom.xml b/storegate/pom.xml index 513abce7960..0d85add46ec 100644 --- a/storegate/pom.xml +++ b/storegate/pom.xml @@ -61,7 +61,7 @@ generate - https://ws1-stage.storegate.se/api/v4.0/swagger + https://ws1-stage.storegate.se/api/v4.2/swagger java ${project.basedir} ch.cyberduck.core.storegate.io.swagger.client.model diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateAttributesFinderFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateAttributesFinderFeature.java index a90b1ab69c9..bf51396e5de 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateAttributesFinderFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateAttributesFinderFeature.java @@ -30,12 +30,11 @@ import ch.cyberduck.core.storegate.io.swagger.client.ApiException; import ch.cyberduck.core.storegate.io.swagger.client.api.FilesApi; import ch.cyberduck.core.storegate.io.swagger.client.model.File; -import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; import ch.cyberduck.core.storegate.io.swagger.client.model.RootFolder; import org.apache.commons.lang3.StringUtils; -public class StoregateAttributesFinderFeature implements AttributesFinder, AttributesAdapter { +public class StoregateAttributesFinderFeature implements AttributesFinder, AttributesAdapter { private final StoregateSession session; private final StoregateIdProvider fileid; @@ -59,14 +58,15 @@ public PathAttributes find(final Path file, final ListProgressListener listener) throw new NotfoundException(file.getAbsolute()); } final FilesApi files = new FilesApi(session.getClient()); - return this.toAttributes(files.filesGet_1(URIEncoder.encode(fileid.getPrefixedPath(file)))); + return this.toAttributes(files.filesGet_0(URIEncoder.encode(fileid.getPrefixedPath(file)))); } catch(ApiException e) { throw new StoregateExceptionMappingService(fileid).map("Failure to read attributes of {0}", e, file); } } - protected PathAttributes toAttributes(final File f) { + @Override + public PathAttributes toAttributes(final File f) { final PathAttributes attrs = new PathAttributes(); if(0 != f.getModified().getMillis()) { attrs.setModificationDate(f.getModified().getMillis()); @@ -80,53 +80,37 @@ protected PathAttributes toAttributes(final File f) { else { attrs.setCreationDate(f.getUploaded().getMillis()); } - attrs.setSize(f.getSize()); - if((f.getFlags() & 4) == 4) { - // This item is locked by some user - attrs.setLockId(Boolean.TRUE.toString()); - } - if((f.getFlags() & 512) == 512) { - // This item is hidden - attrs.setHidden(true); - } - // NoAccess 0 - // ReadOnly 1 - // ReadWrite 2 - // Synchronize 4 Read, write access and permission to syncronize using desktop client. - // FullControl 99 - final Permission permission; - if((f.getPermission() & 2) == 2 || (f.getPermission() & 4) == 4) { - permission = new Permission(Permission.Action.read_write, Permission.Action.none, Permission.Action.none); - } - else { - permission = new Permission(Permission.Action.read, Permission.Action.none, Permission.Action.none); - } - if((f.getFlags() & 1) == 1) { - // This item is a folder - permission.setUser(permission.getUser().or(Permission.Action.execute)); - } - attrs.setPermission(permission); - attrs.setFileId(f.getId()); - return attrs; - } - - @Override - public PathAttributes toAttributes(final FileMetadata f) { - final PathAttributes attrs = new PathAttributes(); - if(0 != f.getModified().getMillis()) { - attrs.setModificationDate(f.getModified().getMillis()); - } - if(0 != f.getCreated().getMillis()) { - attrs.setCreationDate(f.getCreated().getMillis()); + if(f.getSize() != null) { + attrs.setSize(f.getSize()); } - attrs.setSize(f.getFileSize()); - if((f.getFlags() & 4) == 4) { - // This item is locked by some user - attrs.setLockId(Boolean.TRUE.toString()); + if(f.getFlags() != null) { + if((f.getFlags() & 4) == 4) { + // This item is locked by some user + attrs.setLockId(Boolean.TRUE.toString()); + } + if((f.getFlags() & 512) == 512) { + // This item is hidden + attrs.setHidden(true); + } } - if((f.getFlags() & 512) == 512) { - // This item is hidden - attrs.setHidden(true); + if(f.getPermission() != null) { + // NoAccess 0 + // ReadOnly 1 + // ReadWrite 2 + // Synchronize 4 Read, write access and permission to syncronize using desktop client. + // FullControl 99 + final Permission permission; + if((f.getPermission() & 2) == 2 || (f.getPermission() & 4) == 4) { + permission = new Permission(Permission.Action.read_write, Permission.Action.none, Permission.Action.none); + } + else { + permission = new Permission(Permission.Action.read, Permission.Action.none, Permission.Action.none); + } + if((f.getFlags() & 1) == 1) { + // This item is a folder + permission.setUser(permission.getUser().or(Permission.Action.execute)); + } + attrs.setPermission(permission); } attrs.setFileId(f.getId()); return attrs; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateDeleteFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateDeleteFeature.java index d4be244d621..cd86b1971be 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateDeleteFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateDeleteFeature.java @@ -52,7 +52,7 @@ public void delete(final Map files, final PasswordCallback callback.delete(file.getKey()); final StoregateApiClient client = session.getClient(); final HttpRequestBase request; - request = new HttpDelete(String.format("%s/v4/files/%s", client.getBasePath(), fileid.getFileId(file.getKey()))); + request = new HttpDelete(String.format("%s/v4.2/files/%s", client.getBasePath(), fileid.getFileId(file.getKey()))); if(file.getValue().getLockId() != null) { request.addHeader("X-Lock-Id", file.getValue().getLockId().toString()); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateIdProvider.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateIdProvider.java index a8af22e700b..957c68d3217 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateIdProvider.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateIdProvider.java @@ -55,7 +55,7 @@ public String getFileId(final Path file) throws BackgroundException { } return cached; } - final String id = new FilesApi(session.getClient()).filesGet_1(URIEncoder.encode(this.getPrefixedPath(file))).getId(); + final String id = new FilesApi(session.getClient()).filesGet_0(URIEncoder.encode(this.getPrefixedPath(file))).getId(); this.cache(file, id); return id; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateListService.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateListService.java index 300c7335786..420e0dc2030 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateListService.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateListService.java @@ -69,7 +69,7 @@ public AttributedList list(final Path directory, final ListProgressListene int fileCount = 0; FileContents files; do { - files = new FilesApi(this.session.getClient()).filesGet(URIEncoder.encode(fileid.getPrefixedPath(directory)), + files = new FilesApi(this.session.getClient()).filesGetById(URIEncoder.encode(fileid.getFileId(directory)), pageIndex, chunksize, "Name asc", diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMoveFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMoveFeature.java index d90e7033a9d..00b3982c427 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMoveFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMoveFeature.java @@ -60,7 +60,7 @@ public Path move(final Path file, final Path renamed, final TransferStatus statu .parentID(fileid.getFileId(renamed.getParent())) .mode(1); // Overwrite final HttpEntityEnclosingRequestBase request; - request = new HttpPost(String.format("%s/v4/files/%s/move", client.getBasePath(), fileid.getFileId(file))); + request = new HttpPost(String.format("%s/v4.2/files/%s/move", client.getBasePath(), fileid.getFileId(file))); if(status.getLockId() != null) { request.addHeader("X-Lock-Id", status.getLockId().toString()); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeature.java index ac8262eefa3..f3085a29302 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeature.java @@ -27,7 +27,7 @@ import ch.cyberduck.core.preferences.HostPreferences; import ch.cyberduck.core.storegate.io.swagger.client.ApiException; import ch.cyberduck.core.storegate.io.swagger.client.JSON; -import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.threading.BackgroundActionState; import ch.cyberduck.core.threading.BackgroundExceptionCallable; import ch.cyberduck.core.threading.DefaultRetryCallable; @@ -52,7 +52,7 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; -public class StoregateMultipartWriteFeature implements MultipartWrite { +public class StoregateMultipartWriteFeature implements MultipartWrite { private static final Logger log = LogManager.getLogger(StoregateMultipartWriteFeature.class); private final StoregateSession session; @@ -69,14 +69,14 @@ public Append append(final Path file, final TransferStatus status) throws Backgr } @Override - public HttpResponseOutputStream write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { + public HttpResponseOutputStream write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final String location = new StoregateWriteFeature(session, fileid).start(file, status); final MultipartOutputStream proxy = new MultipartOutputStream(location, file, status); - return new HttpResponseOutputStream(new MemorySegementingOutputStream(proxy, + return new HttpResponseOutputStream(new MemorySegementingOutputStream(proxy, new HostPreferences(session.getHost()).getInteger("storegate.upload.multipart.chunksize")), new StoregateAttributesFinderFeature(session, fileid), status) { @Override - public FileMetadata getStatus() { + public File getStatus() { return proxy.getResult(); } }; @@ -88,7 +88,7 @@ private final class MultipartOutputStream extends OutputStream { private final TransferStatus overall; private final AtomicBoolean close = new AtomicBoolean(); private final AtomicReference canceled = new AtomicReference<>(); - private final AtomicReference result = new AtomicReference<>(); + private final AtomicReference result = new AtomicReference<>(); private Long offset = 0L; private final Long length; @@ -136,7 +136,8 @@ public Void call() throws BackgroundException { switch(response.getStatusLine().getStatusCode()) { case HttpStatus.SC_OK: case HttpStatus.SC_CREATED: - final FileMetadata metadata = new JSON().getContext(FileMetadata.class).readValue(new InputStreamReader(response.getEntity().getContent(), StandardCharsets.UTF_8), FileMetadata.class); + final File metadata = new JSON().getContext(File.class).readValue( + new InputStreamReader(response.getEntity().getContent(), StandardCharsets.UTF_8), File.class); result.set(metadata); fileid.cache(file, metadata.getId()); case HttpStatus.SC_NO_CONTENT: @@ -144,7 +145,8 @@ public Void call() throws BackgroundException { offset += content.length; break; default: - final ApiException failure = new ApiException(response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), Collections.emptyMap(), + final ApiException failure = new ApiException(response.getStatusLine().getStatusCode(), + response.getStatusLine().getReasonPhrase(), Collections.emptyMap(), EntityUtils.toString(response.getEntity())); throw new StoregateExceptionMappingService(fileid).map("Upload {0} failed", failure, file); } @@ -199,14 +201,16 @@ public void close() throws IOException { switch(response.getStatusLine().getStatusCode()) { case HttpStatus.SC_OK: case HttpStatus.SC_CREATED: - final FileMetadata metadata = new JSON().getContext(FileMetadata.class).readValue(new InputStreamReader(response.getEntity().getContent(), StandardCharsets.UTF_8), - FileMetadata.class); + final File metadata = new JSON().getContext(File.class).readValue( + new InputStreamReader(response.getEntity().getContent(), StandardCharsets.UTF_8), + File.class); result.set(metadata); fileid.cache(file, metadata.getId()); case HttpStatus.SC_NO_CONTENT: break; default: - final ApiException failure = new ApiException(response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), Collections.emptyMap(), + final ApiException failure = new ApiException(response.getStatusLine().getStatusCode(), + response.getStatusLine().getReasonPhrase(), Collections.emptyMap(), EntityUtils.toString(response.getEntity())); throw new StoregateExceptionMappingService(fileid).map("Upload {0} failed", failure, file); } @@ -233,7 +237,7 @@ public String toString() { return sb.toString(); } - public FileMetadata getResult() { + public File getResult() { return result.get(); } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateReadFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateReadFeature.java index 23a53926d62..e343c3dbcfe 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateReadFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateReadFeature.java @@ -53,7 +53,7 @@ public StoregateReadFeature(final StoregateSession session, final StoregateIdPro public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { try { final StoregateApiClient client = session.getClient(); - final HttpUriRequest request = new HttpGet(String.format("%s/v4/download/files/%s?stream=true", client.getBasePath(), + final HttpUriRequest request = new HttpGet(String.format("%s/v4.2/download/files/%s?stream=true", client.getBasePath(), fileid.getFileId(file))); if(status.isAppend()) { final HttpRange range = HttpRange.withStatus(status); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateShareFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateShareFeature.java index 350b18d8af5..1ee6f06bf87 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateShareFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateShareFeature.java @@ -60,7 +60,7 @@ public DescriptiveUrl toDownloadUrl(final Path file, final Sharee sharee, final MessageFormat.format(LocaleFactory.localizedString("Create a passphrase required to access {0}", "Credentials"), file.getName()), new LoginOptions().anonymous(true).keychain(false).icon(bookmark.getProtocol().disk())).getPassword()); return new DescriptiveUrl(URI.create( - new FileSharesApi(session.getClient()).fileSharesPost(request).getUrl()), DescriptiveUrl.Type.signed); + new FileSharesApi(session.getClient()).fileSharesPost_0(request).getUrl()), DescriptiveUrl.Type.signed); } catch(ApiException e) { throw new StoregateExceptionMappingService(fileid).map(e); @@ -79,7 +79,7 @@ public DescriptiveUrl toUploadUrl(final Path file, final Sharee sharee, final Vo MessageFormat.format(LocaleFactory.localizedString("Create a passphrase required to access {0}", "Credentials"), file.getName()), new LoginOptions().anonymous(true).keychain(false).icon(bookmark.getProtocol().disk())).getPassword()); return new DescriptiveUrl(URI.create( - new FileSharesApi(session.getClient()).fileSharesPost(request).getUrl()), DescriptiveUrl.Type.signed); + new FileSharesApi(session.getClient()).fileSharesPost_0(request).getUrl()), DescriptiveUrl.Type.signed); } catch(ApiException e) { throw new StoregateExceptionMappingService(fileid).map(e); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateTouchFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateTouchFeature.java index 74613a884cf..006a5a89737 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateTouchFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateTouchFeature.java @@ -17,9 +17,9 @@ import ch.cyberduck.core.Path; import ch.cyberduck.core.shared.DefaultTouchFeature; -import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; -public class StoregateTouchFeature extends DefaultTouchFeature { +public class StoregateTouchFeature extends DefaultTouchFeature { public StoregateTouchFeature(final StoregateSession session, final StoregateIdProvider fileid) { super(new StoregateWriteFeature(session, fileid)); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateWriteFeature.java b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateWriteFeature.java index 9b4e00ca760..a9b27e35409 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateWriteFeature.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/StoregateWriteFeature.java @@ -27,6 +27,7 @@ import ch.cyberduck.core.http.HttpResponseOutputStream; import ch.cyberduck.core.storegate.io.swagger.client.ApiException; import ch.cyberduck.core.storegate.io.swagger.client.JSON; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; import ch.cyberduck.core.transfer.TransferStatus; @@ -55,7 +56,7 @@ import static com.google.api.client.json.Json.MEDIA_TYPE; -public class StoregateWriteFeature extends AbstractHttpWriteFeature { +public class StoregateWriteFeature extends AbstractHttpWriteFeature { private static final Logger log = LogManager.getLogger(StoregateWriteFeature.class); private final StoregateSession session; @@ -78,10 +79,10 @@ public boolean timestamp() { } @Override - public HttpResponseOutputStream write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { - final DelayedHttpEntityCallable command = new DelayedHttpEntityCallable(file) { + public HttpResponseOutputStream write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { + final DelayedHttpEntityCallable command = new DelayedHttpEntityCallable(file) { @Override - public FileMetadata call(final AbstractHttpEntity entity) throws BackgroundException { + public File call(final AbstractHttpEntity entity) throws BackgroundException { // Initiate a resumable upload String location; try { @@ -113,8 +114,9 @@ public FileMetadata call(final AbstractHttpEntity entity) throws BackgroundExcep switch(putResponse.getStatusLine().getStatusCode()) { case HttpStatus.SC_OK: case HttpStatus.SC_CREATED: - final FileMetadata result = new JSON().getContext(FileMetadata.class).readValue(new InputStreamReader(putResponse.getEntity().getContent(), StandardCharsets.UTF_8), - FileMetadata.class); + final File result = new JSON().getContext(FileMetadata.class).readValue( + new InputStreamReader(putResponse.getEntity().getContent(), StandardCharsets.UTF_8), + File.class); fileid.cache(file, result.getId()); return result; default: @@ -149,7 +151,7 @@ public long getContentLength() { protected String start(final Path file, final TransferStatus status) throws BackgroundException { try { final StoregateApiClient client = session.getClient(); - final HttpEntityEnclosingRequestBase request = new HttpPost(String.format("%s/v4/upload/resumable", client.getBasePath())); + final HttpEntityEnclosingRequestBase request = new HttpPost(String.format("%s/v4.2/upload/resumable", client.getBasePath())); final FileMetadata meta = new FileMetadata(); meta.setId(StringUtils.EMPTY); if(status.isHidden()) { diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiClient.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiClient.java index d402e4c8b54..b0ce335cc7c 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiClient.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiClient.java @@ -24,6 +24,7 @@ import java.io.InputStream; import java.nio.file.Files; +import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import org.glassfish.jersey.logging.LoggingFeature; import java.util.Collection; @@ -50,7 +51,7 @@ import ch.cyberduck.core.storegate.io.swagger.client.auth.ApiKeyAuth; import ch.cyberduck.core.storegate.io.swagger.client.auth.OAuth; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ApiClient { protected Map defaultHeaderMap = new HashMap(); protected String basePath = "https://ws1-stage.storegate.se:443/api"; @@ -288,7 +289,7 @@ public ApiClient setConnectTimeout(int connectionTimeout) { public int getReadTimeout() { return readTimeout; } - + /** * Set the read timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and @@ -614,9 +615,9 @@ public File prepareDownloadFile(Response response) throws IOException { } if (tempFolderPath == null) - return File.createTempFile(prefix, suffix); + return Files.createTempFile(prefix, suffix).toFile(); else - return File.createTempFile(prefix, suffix, new File(tempFolderPath)); + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); } /** diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiException.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiException.java index 7623d7df00b..455eb8bf5bf 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiException.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiException.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiResponse.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiResponse.java index 64e5aa3f9e6..a2247cb3eaf 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiResponse.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/ApiResponse.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Configuration.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Configuration.java index 8517ed69576..01d3e247eeb 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Configuration.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Configuration.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package ch.cyberduck.core.storegate.io.swagger.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/JSON.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/JSON.java index 15b1d85be65..3088b6966a9 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/JSON.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/JSON.java @@ -9,9 +9,9 @@ import com.fasterxml.jackson.datatype.joda.JodaModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class JSON implements ContextResolver { - private ObjectMapper mapper; + private ObjectMapper mapper; public JSON() { mapper = new CustomJacksonObjectMapper(); @@ -20,17 +20,16 @@ public JSON() { mapper.registerModule(new JodaModule()); } - /** - * Set the date format for JSON (de)serialization with Date properties. - * - * @param dateFormat Date format - */ - public void setDateFormat(DateFormat dateFormat) { - mapper.setDateFormat(dateFormat); - } + /** + * Set the date format for JSON (de)serialization with Date properties. + * @param dateFormat Date format + */ + public void setDateFormat(DateFormat dateFormat) { + mapper.setDateFormat(dateFormat); + } - @Override - public ObjectMapper getContext(Class type) { - return mapper; - } + @Override + public ObjectMapper getContext(Class type) { + return mapper; + } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Pair.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Pair.java index d9fbb772350..b69435ea57c 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Pair.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/Pair.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package ch.cyberduck.core.storegate.io.swagger.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Pair { private String name = ""; private String value = ""; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/RFC3339DateFormat.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/RFC3339DateFormat.java index 560306eb306..ade983ebe80 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/RFC3339DateFormat.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/RFC3339DateFormat.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/StringUtil.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/StringUtil.java index 3806dca659e..0aeebdd5419 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/StringUtil.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/StringUtil.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package ch.cyberduck.core.storegate.io.swagger.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/AccountSettingsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/AccountSettingsApi.java index f770cb17926..1039e8bbc07 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/AccountSettingsApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/AccountSettingsApi.java @@ -11,6 +11,7 @@ import ch.cyberduck.core.storegate.io.swagger.client.model.AccountInfo; import ch.cyberduck.core.storegate.io.swagger.client.model.AccountSettings; import ch.cyberduck.core.storegate.io.swagger.client.model.AccountStorage; +import ch.cyberduck.core.storegate.io.swagger.client.model.Branding; import ch.cyberduck.core.storegate.io.swagger.client.model.ChangePasswordRequest; import ch.cyberduck.core.storegate.io.swagger.client.model.EmailSubscriptions; import ch.cyberduck.core.storegate.io.swagger.client.model.EmailSubscriptionsRequest; @@ -20,14 +21,13 @@ import ch.cyberduck.core.storegate.io.swagger.client.model.UpdateAccountInfoRequest; import ch.cyberduck.core.storegate.io.swagger.client.model.UpdateAccountSettings; import ch.cyberduck.core.storegate.io.swagger.client.model.UpdateMultiSettings; -import ch.cyberduck.core.storegate.io.swagger.client.model.UpdateRegNumberRequest; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class AccountSettingsApi { private ApiClient apiClient; @@ -73,7 +73,7 @@ public ApiResponse accountSettingsChangePasswordWithHttpInfo(ChangePasswor } // create path and map variables - String localVarPath = "/v4/account/password"; + String localVarPath = "/v4.2/account/password"; // query params List localVarQueryParams = new ArrayList(); @@ -118,7 +118,7 @@ public ApiResponse accountSettingsGetAccountInfoWithHttpInfo() thro Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/account/info"; + String localVarPath = "/v4.2/account/info"; // query params List localVarQueryParams = new ArrayList(); @@ -163,7 +163,7 @@ public ApiResponse accountSettingsGetAccountSettingsWithHttpInf Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/account/settings"; + String localVarPath = "/v4.2/account/settings"; // query params List localVarQueryParams = new ArrayList(); @@ -208,7 +208,7 @@ public ApiResponse accountSettingsGetAccountStorageWithHttpInfo( Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/account/storage"; + String localVarPath = "/v4.2/account/storage"; // query params List localVarQueryParams = new ArrayList(); @@ -233,6 +233,51 @@ public ApiResponse accountSettingsGetAccountStorageWithHttpInfo( GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } + /** + * Get branding config + * + * @return Branding + * @throws ApiException if fails to make API call + */ + public Branding accountSettingsGetBranding() throws ApiException { + return accountSettingsGetBrandingWithHttpInfo().getData(); + } + + /** + * Get branding config + * + * @return ApiResponse<Branding> + * @throws ApiException if fails to make API call + */ + public ApiResponse accountSettingsGetBrandingWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/account/branding"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Gets email subscriptions for account * @@ -267,7 +312,7 @@ public ApiResponse accountSettingsGetEmailSubscriptionsWithH } // create path and map variables - String localVarPath = "/v4/account/public/unsubscribe/{id}/{md5}" + String localVarPath = "/v4.2/account/public/unsubscribe/{id}/{md5}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) .replaceAll("\\{" + "md5" + "\\}", apiClient.escapeString(md5.toString())); @@ -314,7 +359,7 @@ public ApiResponse accountSettingsGetMultiSettingsWithHttpInfo() Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/account/multisettings"; + String localVarPath = "/v4.2/account/multisettings"; // query params List localVarQueryParams = new ArrayList(); @@ -359,7 +404,7 @@ public ApiResponse accountSettingsGetMultiStorageWithHttpIn Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/account/multistorage"; + String localVarPath = "/v4.2/account/multistorage"; // query params List localVarQueryParams = new ArrayList(); @@ -384,6 +429,96 @@ public ApiResponse accountSettingsGetMultiStorageWithHttpIn GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } + /** + * Update branding + * + * @return Branding + * @throws ApiException if fails to make API call + */ + public Branding accountSettingsPostBranding() throws ApiException { + return accountSettingsPostBrandingWithHttpInfo().getData(); + } + + /** + * Update branding + * + * @return ApiResponse<Branding> + * @throws ApiException if fails to make API call + */ + public ApiResponse accountSettingsPostBrandingWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/account/branding"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Update branding + * + * @return Branding + * @throws ApiException if fails to make API call + */ + public Branding accountSettingsPutBranding() throws ApiException { + return accountSettingsPutBrandingWithHttpInfo().getData(); + } + + /** + * Update branding + * + * @return ApiResponse<Branding> + * @throws ApiException if fails to make API call + */ + public ApiResponse accountSettingsPutBrandingWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/account/branding"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Reset the password * @@ -417,7 +552,7 @@ public ApiResponse accountSettingsResetPasswordWithHttpInfo(String id, Str } // create path and map variables - String localVarPath = "/v4/account/public/resetpassword/{id}" + String localVarPath = "/v4.2/account/public/resetpassword/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -483,7 +618,7 @@ public ApiResponse accountSettingsUpdateEmailSubscriptionsWithHttpInfo(Str } // create path and map variables - String localVarPath = "/v4/account/public/unsubscribe/{id}/{md5}" + String localVarPath = "/v4.2/account/public/unsubscribe/{id}/{md5}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) .replaceAll("\\{" + "md5" + "\\}", apiClient.escapeString(md5.toString())); @@ -536,7 +671,7 @@ public ApiResponse accountSettingsUpdateInfoWithHttpInfo(UpdateAccountInfo } // create path and map variables - String localVarPath = "/v4/account/info"; + String localVarPath = "/v4.2/account/info"; // query params List localVarQueryParams = new ArrayList(); @@ -565,20 +700,21 @@ public ApiResponse accountSettingsUpdateInfoWithHttpInfo(UpdateAccountInfo * Update multi settings, only included parameters will be updated. * * @param updateMultiSettings (required) + * @return MultiSettings * @throws ApiException if fails to make API call */ - public void accountSettingsUpdateMultiSettings(UpdateMultiSettings updateMultiSettings) throws ApiException { - - accountSettingsUpdateMultiSettingsWithHttpInfo(updateMultiSettings); - } + public MultiSettings accountSettingsUpdateMultiSettings(UpdateMultiSettings updateMultiSettings) throws ApiException { + return accountSettingsUpdateMultiSettingsWithHttpInfo(updateMultiSettings).getData(); + } /** * Update multi settings, only included parameters will be updated. * * @param updateMultiSettings (required) + * @return ApiResponse<MultiSettings> * @throws ApiException if fails to make API call */ - public ApiResponse accountSettingsUpdateMultiSettingsWithHttpInfo(UpdateMultiSettings updateMultiSettings) throws ApiException { + public ApiResponse accountSettingsUpdateMultiSettingsWithHttpInfo(UpdateMultiSettings updateMultiSettings) throws ApiException { Object localVarPostBody = updateMultiSettings; // verify the required parameter 'updateMultiSettings' is set @@ -587,7 +723,7 @@ public ApiResponse accountSettingsUpdateMultiSettingsWithHttpInfo(UpdateMu } // create path and map variables - String localVarPath = "/v4/account/multisettings"; + String localVarPath = "/v4.2/account/multisettings"; // query params List localVarQueryParams = new ArrayList(); @@ -598,58 +734,7 @@ public ApiResponse accountSettingsUpdateMultiSettingsWithHttpInfo(UpdateMu final String[] localVarAccepts = { - - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { "application/json", "text/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "oauth2" }; - - - return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } - /** - * Update account info reg number, only included parameters will be updated. - * - * @param updateRegNumber (required) - * @throws ApiException if fails to make API call - */ - public void accountSettingsUpdateRegNumber(UpdateRegNumberRequest updateRegNumber) throws ApiException { - - accountSettingsUpdateRegNumberWithHttpInfo(updateRegNumber); - } - - /** - * Update account info reg number, only included parameters will be updated. - * - * @param updateRegNumber (required) - * @throws ApiException if fails to make API call - */ - public ApiResponse accountSettingsUpdateRegNumberWithHttpInfo(UpdateRegNumberRequest updateRegNumber) throws ApiException { - Object localVarPostBody = updateRegNumber; - - // verify the required parameter 'updateRegNumber' is set - if (updateRegNumber == null) { - throw new ApiException(400, "Missing the required parameter 'updateRegNumber' when calling accountSettingsUpdateRegNumber"); - } - - // create path and map variables - String localVarPath = "/v4/account/info/regnumber"; - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); @@ -660,9 +745,9 @@ public ApiResponse accountSettingsUpdateRegNumberWithHttpInfo(UpdateRegNum String[] localVarAuthNames = new String[] { "oauth2" }; - - return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Update account settings, only included parameters will be updated. * @@ -689,7 +774,7 @@ public ApiResponse accountSettingsUpdateSettingsWithHttpInfo(UpdateAccount } // create path and map variables - String localVarPath = "/v4/account/settings"; + String localVarPath = "/v4.2/account/settings"; // query params List localVarQueryParams = new ArrayList(); @@ -741,7 +826,7 @@ public ApiResponse accountSettingsValidatePasswordRequestWithHt } // create path and map variables - String localVarPath = "/v4/account/public/resetpassword/{id}" + String localVarPath = "/v4.2/account/public/resetpassword/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -794,7 +879,7 @@ public ApiResponse accountSettingsVerifyPasswordWithHttpInfo(String pas } // create path and map variables - String localVarPath = "/v4/account/verifypassword"; + String localVarPath = "/v4.2/account/verifypassword"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BackupApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BackupApi.java index 961defb0fce..53d6ded424a 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BackupApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BackupApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BackupApi { private ApiClient apiClient; @@ -64,7 +64,7 @@ public ApiResponse backupDeleteBackupClientWithHttpInfo(String id) throws } // create path and map variables - String localVarPath = "/v4/backup/clients/{id}" + String localVarPath = "/v4.2/backup/clients/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -110,7 +110,7 @@ public ApiResponse backupGetBackupClientsWithHttpInfo() throws Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/backup/clients"; + String localVarPath = "/v4.2/backup/clients"; // query params List localVarQueryParams = new ArrayList(); @@ -162,7 +162,7 @@ public ApiResponse backupGetBackupSizeWithHttpInfo(String id) throws ApiEx } // create path and map variables - String localVarPath = "/v4/backup/clients/{id}/size" + String localVarPath = "/v4.2/backup/clients/{id}/size" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -215,7 +215,7 @@ public ApiResponse backupGetClientWithHttpInfo(String id) throws A } // create path and map variables - String localVarPath = "/v4/backup/clients/{id}" + String localVarPath = "/v4.2/backup/clients/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -261,7 +261,7 @@ public ApiResponse backupGetPolicyWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/backup/policy"; + String localVarPath = "/v4.2/backup/policy"; // query params List localVarQueryParams = new ArrayList(); @@ -313,7 +313,7 @@ public ApiResponse backupRegisterClientWithHttpInfo(Client client) } // create path and map variables - String localVarPath = "/v4/backup/clients"; + String localVarPath = "/v4.2/backup/clients"; // query params List localVarQueryParams = new ArrayList(); @@ -371,7 +371,7 @@ public ApiResponse backupSetQueueSizeWithHttpInfo(String id, Long size) th } // create path and map variables - String localVarPath = "/v4/backup/clients/{id}/queuesize" + String localVarPath = "/v4.2/backup/clients/{id}/queuesize" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -430,7 +430,7 @@ public ApiResponse backupUpdateBackupClientWithHttpInfo(String id, BackupC } // create path and map variables - String localVarPath = "/v4/backup/clients/{id}/settings" + String localVarPath = "/v4.2/backup/clients/{id}/settings" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BillingApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BillingApi.java index eec501f64cf..dbc394b3acb 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BillingApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BillingApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BillingApi { private ApiClient apiClient; @@ -59,7 +59,7 @@ public ApiResponse> billingGetInvoiceHeadersWithHttpInfo() thr Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/billing/invoices"; + String localVarPath = "/v4.2/billing/invoices"; // query params List localVarQueryParams = new ArrayList(); @@ -111,7 +111,7 @@ public ApiResponse billingGetInvoiceHeaders_0WithHttpInfo(String id) th } // create path and map variables - String localVarPath = "/v4/billing/invoices/{id}" + String localVarPath = "/v4.2/billing/invoices/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -157,7 +157,7 @@ public ApiResponse billingGetPaymentWithHttpInfo() throws ApiExcept Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/billing/info"; + String localVarPath = "/v4.2/billing/info"; // query params List localVarQueryParams = new ArrayList(); @@ -208,7 +208,7 @@ public ApiResponse billingSetPaymentStatusWithHttpInfo(SetPaymentStatusReq } // create path and map variables - String localVarPath = "/v4/billing/status"; + String localVarPath = "/v4.2/billing/status"; // query params List localVarQueryParams = new ArrayList(); @@ -260,7 +260,7 @@ public ApiResponse billingUpdatePaymentWithHttpInfo(UpdatePaymentRe } // create path and map variables - String localVarPath = "/v4/billing/info"; + String localVarPath = "/v4.2/billing/info"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ContentApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ContentApi.java index ffc7784af89..95cf1e9a202 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ContentApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ContentApi.java @@ -8,6 +8,7 @@ import javax.ws.rs.core.GenericType; +import ch.cyberduck.core.storegate.io.swagger.client.model.Branding; import ch.cyberduck.core.storegate.io.swagger.client.model.ContentList; import ch.cyberduck.core.storegate.io.swagger.client.model.MediaContentList; @@ -16,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ContentApi { private ApiClient apiClient; @@ -56,7 +57,7 @@ public ApiResponse contentGetContentWithHttpInfo() throws ApiExcept Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/content"; + String localVarPath = "/v4.2/content"; // query params List localVarQueryParams = new ArrayList(); @@ -101,7 +102,7 @@ public ApiResponse contentGetMediaWithHttpInfo() throws ApiExc Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/content/media"; + String localVarPath = "/v4.2/content/media"; // query params List localVarQueryParams = new ArrayList(); @@ -134,6 +135,57 @@ public ApiResponse contentGetMediaWithHttpInfo() throws ApiExc * @return ContentList * @throws ApiException if fails to make API call */ + public ContentList contentGetOfficeContent(String partnerId, String retailerId) throws ApiException { + return contentGetOfficeContentWithHttpInfo(partnerId, retailerId).getData(); + } + + /** + * Get public content, locale is determined by browser Accept-Language header + * + * @param partnerId (optional) + * @param retailerId (optional) + * @return ApiResponse<ContentList> + * @throws ApiException if fails to make API call + */ + public ApiResponse contentGetOfficeContentWithHttpInfo(String partnerId, String retailerId) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/content/office"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "partnerId", partnerId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "retailerId", retailerId)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get public content, locale is determined by browser Accept-Language header + * + * @param partnerId (optional) + * @param retailerId (optional) + * @return ContentList + * @throws ApiException if fails to make API call + */ public ContentList contentGetPublicContent(String partnerId, String retailerId) throws ApiException { return contentGetPublicContentWithHttpInfo(partnerId, retailerId).getData(); } @@ -150,7 +202,7 @@ public ApiResponse contentGetPublicContentWithHttpInfo(String partn Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/content/public"; + String localVarPath = "/v4.2/content/public"; // query params List localVarQueryParams = new ArrayList(); @@ -201,7 +253,7 @@ public ApiResponse contentGetPublicMediaWithHttpInfo(String pa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/content/public/media"; + String localVarPath = "/v4.2/content/public/media"; // query params List localVarQueryParams = new ArrayList(); @@ -228,6 +280,59 @@ public ApiResponse contentGetPublicMediaWithHttpInfo(String pa GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } + /** + * Get signing branding + * + * @param envelopeId (required) + * @return Branding + * @throws ApiException if fails to make API call + */ + public Branding contentGetShareBranding(String envelopeId) throws ApiException { + return contentGetShareBrandingWithHttpInfo(envelopeId).getData(); + } + + /** + * Get signing branding + * + * @param envelopeId (required) + * @return ApiResponse<Branding> + * @throws ApiException if fails to make API call + */ + public ApiResponse contentGetShareBrandingWithHttpInfo(String envelopeId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'envelopeId' is set + if (envelopeId == null) { + throw new ApiException(400, "Missing the required parameter 'envelopeId' when calling contentGetShareBranding"); + } + + // create path and map variables + String localVarPath = "/v4.2/content/signing/branding"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "envelopeId", envelopeId)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Get share content, locale is determined by browser Accept-Language header * @@ -252,7 +357,7 @@ public ApiResponse contentGetShareContentWithHttpInfo(String partne Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/content/share"; + String localVarPath = "/v4.2/content/share"; // query params List localVarQueryParams = new ArrayList(); @@ -303,7 +408,7 @@ public ApiResponse contentGetShareMediaWithHttpInfo(String par Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/content/share/media"; + String localVarPath = "/v4.2/content/share/media"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DirectoryNotificationsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DirectoryNotificationsApi.java new file mode 100644 index 00000000000..3d4df01717d --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DirectoryNotificationsApi.java @@ -0,0 +1,188 @@ +package ch.cyberduck.core.storegate.io.swagger.client.api; + +import ch.cyberduck.core.storegate.io.swagger.client.ApiException; +import ch.cyberduck.core.storegate.io.swagger.client.ApiClient; +import ch.cyberduck.core.storegate.io.swagger.client.ApiResponse; +import ch.cyberduck.core.storegate.io.swagger.client.Configuration; +import ch.cyberduck.core.storegate.io.swagger.client.Pair; + +import javax.ws.rs.core.GenericType; + +import ch.cyberduck.core.storegate.io.swagger.client.model.CreateDirectoryNotificationRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class DirectoryNotificationsApi { + private ApiClient apiClient; + + public DirectoryNotificationsApi() { + this(Configuration.getDefaultApiClient()); + } + + public DirectoryNotificationsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Creates a new directory notification for current user. + * + * @param request createFolderRequest (required) + * @return Object + * @throws ApiException if fails to make API call + */ + public Object directoryNotificationsCreate(CreateDirectoryNotificationRequest request) throws ApiException { + return directoryNotificationsCreateWithHttpInfo(request).getData(); + } + + /** + * Creates a new directory notification for current user. + * + * @param request createFolderRequest (required) + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + */ + public ApiResponse directoryNotificationsCreateWithHttpInfo(CreateDirectoryNotificationRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling directoryNotificationsCreate"); + } + + // create path and map variables + String localVarPath = "/v4.2/directorynotifications"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Removes a directory notification. + * + * @param id Id of the directory (required) + * @throws ApiException if fails to make API call + */ + public void directoryNotificationsDelete(String id) throws ApiException { + + directoryNotificationsDeleteWithHttpInfo(id); + } + + /** + * Removes a directory notification. + * + * @param id Id of the directory (required) + * @throws ApiException if fails to make API call + */ + public ApiResponse directoryNotificationsDeleteWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling directoryNotificationsDelete"); + } + + // create path and map variables + String localVarPath = "/v4.2/directorynotifications/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } + /** + * Get all directory notifications for current user + * + * @return List<File> + * @throws ApiException if fails to make API call + */ + public List directoryNotificationsGetAll() throws ApiException { + return directoryNotificationsGetAllWithHttpInfo().getData(); + } + + /** + * Get all directory notifications for current user + * + * @return ApiResponse<List<File>> + * @throws ApiException if fails to make API call + */ + public ApiResponse> directoryNotificationsGetAllWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/directorynotifications"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } +} diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DownloadApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DownloadApi.java index 8d845dfb6b1..00b53974fb8 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DownloadApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/DownloadApi.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class DownloadApi { private ApiClient apiClient; @@ -66,7 +66,7 @@ public ApiResponse downloadDownloadFileWithHttpInfo(String id, Integer v } // create path and map variables - String localVarPath = "/v4/download/files/{id}" + String localVarPath = "/v4.2/download/files/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -100,11 +100,12 @@ public ApiResponse downloadDownloadFileWithHttpInfo(String id, Integer v * @param shareid The share id (required) * @param id The file id (required) * @param stream Stream the file data instead of download (optional) + * @param toPDF Try to convert the file to PDF (optional) * @return String * @throws ApiException if fails to make API call */ - public String downloadDownloadFileShare(String shareid, String id, Boolean stream) throws ApiException { - return downloadDownloadFileShareWithHttpInfo(shareid, id, stream).getData(); + public String downloadDownloadFileShare(String shareid, String id, Boolean stream, Boolean toPDF) throws ApiException { + return downloadDownloadFileShareWithHttpInfo(shareid, id, stream, toPDF).getData(); } /** @@ -113,10 +114,11 @@ public String downloadDownloadFileShare(String shareid, String id, Boolean strea * @param shareid The share id (required) * @param id The file id (required) * @param stream Stream the file data instead of download (optional) + * @param toPDF Try to convert the file to PDF (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse downloadDownloadFileShareWithHttpInfo(String shareid, String id, Boolean stream) throws ApiException { + public ApiResponse downloadDownloadFileShareWithHttpInfo(String shareid, String id, Boolean stream, Boolean toPDF) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'shareid' is set @@ -130,7 +132,7 @@ public ApiResponse downloadDownloadFileShareWithHttpInfo(String shareid, } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/files/{id}" + String localVarPath = "/v4.2/download/shares/{shareid}/files/{id}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); @@ -140,6 +142,7 @@ public ApiResponse downloadDownloadFileShareWithHttpInfo(String shareid, Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "stream", stream)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toPDF", toPDF)); @@ -164,11 +167,12 @@ public ApiResponse downloadDownloadFileShareWithHttpInfo(String shareid, * @param shareid The share id (required) * @param id The file id (required) * @param stream Stream the file data instead of download (optional) + * @param toPDF Try to convert the file to PDF (optional) * @return String * @throws ApiException if fails to make API call */ - public String downloadDownloadFileShare_0(String shareid, String id, Boolean stream) throws ApiException { - return downloadDownloadFileShare_0WithHttpInfo(shareid, id, stream).getData(); + public String downloadDownloadFileShare_0(String shareid, String id, Boolean stream, Boolean toPDF) throws ApiException { + return downloadDownloadFileShare_0WithHttpInfo(shareid, id, stream, toPDF).getData(); } /** @@ -177,10 +181,11 @@ public String downloadDownloadFileShare_0(String shareid, String id, Boolean str * @param shareid The share id (required) * @param id The file id (required) * @param stream Stream the file data instead of download (optional) + * @param toPDF Try to convert the file to PDF (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse downloadDownloadFileShare_0WithHttpInfo(String shareid, String id, Boolean stream) throws ApiException { + public ApiResponse downloadDownloadFileShare_0WithHttpInfo(String shareid, String id, Boolean stream, Boolean toPDF) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'shareid' is set @@ -194,7 +199,7 @@ public ApiResponse downloadDownloadFileShare_0WithHttpInfo(String sharei } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/files/{id}" + String localVarPath = "/v4.2/download/shares/{shareid}/files/{id}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); @@ -204,6 +209,7 @@ public ApiResponse downloadDownloadFileShare_0WithHttpInfo(String sharei Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "stream", stream)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toPDF", toPDF)); @@ -253,7 +259,7 @@ public ApiResponse downloadDownloadFile_0WithHttpInfo(String id, Integer } // create path and map variables - String localVarPath = "/v4/download/files/{id}" + String localVarPath = "/v4.2/download/files/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -310,7 +316,7 @@ public ApiResponse downloadDownloadMediaWithHttpInfo(String mediaid, Boo } // create path and map variables - String localVarPath = "/v4/download/media/{mediaid}" + String localVarPath = "/v4.2/download/media/{mediaid}" .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); // query params @@ -373,7 +379,7 @@ public ApiResponse downloadDownloadMediaShareWithHttpInfo(String shareid } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/media/{mediaid}" + String localVarPath = "/v4.2/download/shares/{shareid}/media/{mediaid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); @@ -437,7 +443,7 @@ public ApiResponse downloadDownloadMediaShare_0WithHttpInfo(String share } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/media/{mediaid}" + String localVarPath = "/v4.2/download/shares/{shareid}/media/{mediaid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); @@ -494,7 +500,7 @@ public ApiResponse downloadDownloadMedia_0WithHttpInfo(String mediaid, B } // create path and map variables - String localVarPath = "/v4/download/media/{mediaid}" + String localVarPath = "/v4.2/download/media/{mediaid}" .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); // query params @@ -548,7 +554,7 @@ public ApiResponse downloadDownloadWithTokenWithHttpInfo(String download } // create path and map variables - String localVarPath = "/v4/download/{downloadid}" + String localVarPath = "/v4.2/download/{downloadid}" .replaceAll("\\{" + "downloadid" + "\\}", apiClient.escapeString(downloadid.toString())); // query params @@ -601,7 +607,7 @@ public ApiResponse downloadDownloadZipShareWithHttpInfo(String shareid) } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}" + String localVarPath = "/v4.2/download/shares/{shareid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); // query params @@ -654,7 +660,7 @@ public ApiResponse downloadGetDownloadAlbumTokenWithHttpInfo(DownloadReq } // create path and map variables - String localVarPath = "/v4/download/album"; + String localVarPath = "/v4.2/download/album"; // query params List localVarQueryParams = new ArrayList(); @@ -710,7 +716,7 @@ public ApiResponse downloadGetDownloadFileTokenWithHttpInfo(String id, I } // create path and map variables - String localVarPath = "/v4/download/files/{id}" + String localVarPath = "/v4.2/download/files/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -744,11 +750,12 @@ public ApiResponse downloadGetDownloadFileTokenWithHttpInfo(String id, I * @param shareid The file id (required) * @param id The file id (required) * @param stream Stream the file data instead of download (optional) + * @param toPDF Try to convert file to PDF (optional) * @return String * @throws ApiException if fails to make API call */ - public String downloadGetDownloadFileTokenShare(String shareid, String id, Boolean stream) throws ApiException { - return downloadGetDownloadFileTokenShareWithHttpInfo(shareid, id, stream).getData(); + public String downloadGetDownloadFileTokenShare(String shareid, String id, Boolean stream, Boolean toPDF) throws ApiException { + return downloadGetDownloadFileTokenShareWithHttpInfo(shareid, id, stream, toPDF).getData(); } /** @@ -757,10 +764,11 @@ public String downloadGetDownloadFileTokenShare(String shareid, String id, Boole * @param shareid The file id (required) * @param id The file id (required) * @param stream Stream the file data instead of download (optional) + * @param toPDF Try to convert file to PDF (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse downloadGetDownloadFileTokenShareWithHttpInfo(String shareid, String id, Boolean stream) throws ApiException { + public ApiResponse downloadGetDownloadFileTokenShareWithHttpInfo(String shareid, String id, Boolean stream, Boolean toPDF) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'shareid' is set @@ -774,7 +782,7 @@ public ApiResponse downloadGetDownloadFileTokenShareWithHttpInfo(String } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/files/{id}" + String localVarPath = "/v4.2/download/shares/{shareid}/files/{id}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); @@ -784,6 +792,7 @@ public ApiResponse downloadGetDownloadFileTokenShareWithHttpInfo(String Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "stream", stream)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toPDF", toPDF)); @@ -829,7 +838,7 @@ public ApiResponse downloadGetDownloadFilesTokenWithHttpInfo(DownloadReq } // create path and map variables - String localVarPath = "/v4/download/files"; + String localVarPath = "/v4.2/download/files"; // query params List localVarQueryParams = new ArrayList(); @@ -888,7 +897,7 @@ public ApiResponse downloadGetDownloadFilesTokenShareWithHttpInfo(String } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/files" + String localVarPath = "/v4.2/download/shares/{shareid}/files" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); // query params @@ -943,7 +952,7 @@ public ApiResponse downloadGetDownloadMediaTokenWithHttpInfo(String medi } // create path and map variables - String localVarPath = "/v4/download/media/{mediaid}" + String localVarPath = "/v4.2/download/media/{mediaid}" .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); // query params @@ -1006,7 +1015,7 @@ public ApiResponse downloadGetDownloadMediaTokenShareWithHttpInfo(String } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/media/{mediaid}" + String localVarPath = "/v4.2/download/shares/{shareid}/media/{mediaid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); @@ -1068,7 +1077,7 @@ public ApiResponse downloadGetDownloadMediaTokenShare_0WithHttpInfo(Stri } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}/media" + String localVarPath = "/v4.2/download/shares/{shareid}/media" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); // query params @@ -1121,7 +1130,7 @@ public ApiResponse downloadGetDownloadMediaToken_0WithHttpInfo(DownloadR } // create path and map variables - String localVarPath = "/v4/download/media"; + String localVarPath = "/v4.2/download/media"; // query params List localVarQueryParams = new ArrayList(); @@ -1173,7 +1182,7 @@ public ApiResponse downloadGetDownloadZipTokenShareWithHttpInfo(String s } // create path and map variables - String localVarPath = "/v4/download/shares/{shareid}" + String localVarPath = "/v4.2/download/shares/{shareid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/EventsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/EventsApi.java index b5f37ce7abe..0dda737ee5b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/EventsApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/EventsApi.java @@ -10,13 +10,14 @@ import org.joda.time.DateTime; import ch.cyberduck.core.storegate.io.swagger.client.model.EventContents; +import ch.cyberduck.core.storegate.io.swagger.client.model.EventExportRequest; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class EventsApi { private ApiClient apiClient; @@ -37,88 +38,40 @@ public void setApiClient(ApiClient apiClient) { } /** - * Get events. + * Download events via token. * - * @param pageIndex (required) - * @param pageSize (required) - * @param fromDate (required) - * @param toDate (required) - * @param user (required) - * @param fileId (required) - * @param filename (required) - * @return EventContents + * @param downloadid (required) + * @return String * @throws ApiException if fails to make API call */ - public EventContents eventsGet(Integer pageIndex, Integer pageSize, DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { - return eventsGetWithHttpInfo(pageIndex, pageSize, fromDate, toDate, user, fileId, filename).getData(); + public String eventsGet(String downloadid) throws ApiException { + return eventsGetWithHttpInfo(downloadid).getData(); } /** - * Get events. + * Download events via token. * - * @param pageIndex (required) - * @param pageSize (required) - * @param fromDate (required) - * @param toDate (required) - * @param user (required) - * @param fileId (required) - * @param filename (required) - * @return ApiResponse<EventContents> + * @param downloadid (required) + * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse eventsGetWithHttpInfo(Integer pageIndex, Integer pageSize, DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { + public ApiResponse eventsGetWithHttpInfo(String downloadid) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) { - throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling eventsGet"); - } - - // verify the required parameter 'pageSize' is set - if (pageSize == null) { - throw new ApiException(400, "Missing the required parameter 'pageSize' when calling eventsGet"); - } - - // verify the required parameter 'fromDate' is set - if (fromDate == null) { - throw new ApiException(400, "Missing the required parameter 'fromDate' when calling eventsGet"); - } - - // verify the required parameter 'toDate' is set - if (toDate == null) { - throw new ApiException(400, "Missing the required parameter 'toDate' when calling eventsGet"); - } - - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling eventsGet"); - } - - // verify the required parameter 'fileId' is set - if (fileId == null) { - throw new ApiException(400, "Missing the required parameter 'fileId' when calling eventsGet"); - } - - // verify the required parameter 'filename' is set - if (filename == null) { - throw new ApiException(400, "Missing the required parameter 'filename' when calling eventsGet"); + // verify the required parameter 'downloadid' is set + if (downloadid == null) { + throw new ApiException(400, "Missing the required parameter 'downloadid' when calling eventsGet"); } // create path and map variables - String localVarPath = "/v4/events"; + String localVarPath = "/v4.2/events/export/{downloadid}" + .replaceAll("\\{" + "downloadid" + "\\}", apiClient.escapeString(downloadid.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "user", user)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "fileId", fileId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filename", filename)); @@ -134,7 +87,7 @@ public ApiResponse eventsGetWithHttpInfo(Integer pageIndex, Integ String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** @@ -145,11 +98,12 @@ public ApiResponse eventsGetWithHttpInfo(Integer pageIndex, Integ * @param user (required) * @param fileId (required) * @param filename (required) + * @param timeZone (required) * @return String * @throws ApiException if fails to make API call */ - public String eventsGet_0(DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { - return eventsGet_0WithHttpInfo(fromDate, toDate, user, fileId, filename).getData(); + public String eventsGet_0(DateTime fromDate, DateTime toDate, String user, String fileId, String filename, String timeZone) throws ApiException { + return eventsGet_0WithHttpInfo(fromDate, toDate, user, fileId, filename, timeZone).getData(); } /** @@ -160,10 +114,11 @@ public String eventsGet_0(DateTime fromDate, DateTime toDate, String user, Strin * @param user (required) * @param fileId (required) * @param filename (required) + * @param timeZone (required) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse eventsGet_0WithHttpInfo(DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { + public ApiResponse eventsGet_0WithHttpInfo(DateTime fromDate, DateTime toDate, String user, String fileId, String filename, String timeZone) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'fromDate' is set @@ -191,8 +146,13 @@ public ApiResponse eventsGet_0WithHttpInfo(DateTime fromDate, DateTime t throw new ApiException(400, "Missing the required parameter 'filename' when calling eventsGet_0"); } + // verify the required parameter 'timeZone' is set + if (timeZone == null) { + throw new ApiException(400, "Missing the required parameter 'timeZone' when calling eventsGet_0"); + } + // create path and map variables - String localVarPath = "/v4/events/export"; + String localVarPath = "/v4.2/events/export"; // query params List localVarQueryParams = new ArrayList(); @@ -204,6 +164,7 @@ public ApiResponse eventsGet_0WithHttpInfo(DateTime fromDate, DateTime t localVarQueryParams.addAll(apiClient.parameterToPairs("", "user", user)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "fileId", fileId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filename", filename)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "timeZone", timeZone)); @@ -223,40 +184,88 @@ public ApiResponse eventsGet_0WithHttpInfo(DateTime fromDate, DateTime t return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Download events via token. + * Get events. * - * @param downloadid (required) - * @return String + * @param pageIndex (required) + * @param pageSize (required) + * @param fromDate (required) + * @param toDate (required) + * @param user (required) + * @param fileId (required) + * @param filename (required) + * @return EventContents * @throws ApiException if fails to make API call */ - public String eventsGet_1(String downloadid) throws ApiException { - return eventsGet_1WithHttpInfo(downloadid).getData(); + public EventContents eventsGet_1(Integer pageIndex, Integer pageSize, DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { + return eventsGet_1WithHttpInfo(pageIndex, pageSize, fromDate, toDate, user, fileId, filename).getData(); } /** - * Download events via token. + * Get events. * - * @param downloadid (required) - * @return ApiResponse<String> + * @param pageIndex (required) + * @param pageSize (required) + * @param fromDate (required) + * @param toDate (required) + * @param user (required) + * @param fileId (required) + * @param filename (required) + * @return ApiResponse<EventContents> * @throws ApiException if fails to make API call */ - public ApiResponse eventsGet_1WithHttpInfo(String downloadid) throws ApiException { + public ApiResponse eventsGet_1WithHttpInfo(Integer pageIndex, Integer pageSize, DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'downloadid' is set - if (downloadid == null) { - throw new ApiException(400, "Missing the required parameter 'downloadid' when calling eventsGet_1"); + // verify the required parameter 'pageIndex' is set + if (pageIndex == null) { + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling eventsGet_1"); + } + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling eventsGet_1"); + } + + // verify the required parameter 'fromDate' is set + if (fromDate == null) { + throw new ApiException(400, "Missing the required parameter 'fromDate' when calling eventsGet_1"); + } + + // verify the required parameter 'toDate' is set + if (toDate == null) { + throw new ApiException(400, "Missing the required parameter 'toDate' when calling eventsGet_1"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException(400, "Missing the required parameter 'user' when calling eventsGet_1"); + } + + // verify the required parameter 'fileId' is set + if (fileId == null) { + throw new ApiException(400, "Missing the required parameter 'fileId' when calling eventsGet_1"); + } + + // verify the required parameter 'filename' is set + if (filename == null) { + throw new ApiException(400, "Missing the required parameter 'filename' when calling eventsGet_1"); } // create path and map variables - String localVarPath = "/v4/events/export/{downloadid}" - .replaceAll("\\{" + "downloadid" + "\\}", apiClient.escapeString(downloadid.toString())); + String localVarPath = "/v4.2/events"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "user", user)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fileId", fileId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filename", filename)); @@ -272,76 +281,43 @@ public ApiResponse eventsGet_1WithHttpInfo(String downloadid) throws Api String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get download events token. * - * @param fromDate (required) - * @param toDate (required) - * @param user (required) - * @param fileId (required) - * @param filename (required) + * @param request (required) * @return String * @throws ApiException if fails to make API call */ - public String eventsPost(DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { - return eventsPostWithHttpInfo(fromDate, toDate, user, fileId, filename).getData(); + public String eventsPost(EventExportRequest request) throws ApiException { + return eventsPostWithHttpInfo(request).getData(); } /** * Get download events token. * - * @param fromDate (required) - * @param toDate (required) - * @param user (required) - * @param fileId (required) - * @param filename (required) + * @param request (required) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse eventsPostWithHttpInfo(DateTime fromDate, DateTime toDate, String user, String fileId, String filename) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'fromDate' is set - if (fromDate == null) { - throw new ApiException(400, "Missing the required parameter 'fromDate' when calling eventsPost"); - } - - // verify the required parameter 'toDate' is set - if (toDate == null) { - throw new ApiException(400, "Missing the required parameter 'toDate' when calling eventsPost"); - } - - // verify the required parameter 'user' is set - if (user == null) { - throw new ApiException(400, "Missing the required parameter 'user' when calling eventsPost"); - } - - // verify the required parameter 'fileId' is set - if (fileId == null) { - throw new ApiException(400, "Missing the required parameter 'fileId' when calling eventsPost"); - } + public ApiResponse eventsPostWithHttpInfo(EventExportRequest request) throws ApiException { + Object localVarPostBody = request; - // verify the required parameter 'filename' is set - if (filename == null) { - throw new ApiException(400, "Missing the required parameter 'filename' when calling eventsPost"); + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling eventsPost"); } // create path and map variables - String localVarPath = "/v4/events/export"; + String localVarPath = "/v4.2/events/export"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "user", user)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "fileId", fileId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filename", filename)); @@ -351,7 +327,7 @@ public ApiResponse eventsPostWithHttpInfo(DateTime fromDate, DateTime to final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json", "text/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ExportApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ExportApi.java new file mode 100644 index 00000000000..3888f9ade71 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ExportApi.java @@ -0,0 +1,530 @@ +package ch.cyberduck.core.storegate.io.swagger.client.api; + +import ch.cyberduck.core.storegate.io.swagger.client.ApiException; +import ch.cyberduck.core.storegate.io.swagger.client.ApiClient; +import ch.cyberduck.core.storegate.io.swagger.client.ApiResponse; +import ch.cyberduck.core.storegate.io.swagger.client.Configuration; +import ch.cyberduck.core.storegate.io.swagger.client.Pair; + +import javax.ws.rs.core.GenericType; + +import ch.cyberduck.core.storegate.io.swagger.client.model.ExportJobResponse; +import ch.cyberduck.core.storegate.io.swagger.client.model.FileExportRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.FileShareExportRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.MediaFolderExportRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.MediaShareExportRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.MediaShareItemExportRequest; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class ExportApi { + private ApiClient apiClient; + + public ExportApi() { + this(Configuration.getDefaultApiClient()); + } + + public ExportApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Cancel export job + * + * @param id (required) + * @return String + * @throws ApiException if fails to make API call + */ + public String exportCancelExportJob(String id) throws ApiException { + return exportCancelExportJobWithHttpInfo(id).getData(); + } + + /** + * Cancel export job + * + * @param id (required) + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportCancelExportJobWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling exportCancelExportJob"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Download archives created by export job + * + * @param id (required) + * @return String + * @throws ApiException if fails to make API call + */ + public String exportDownload(String id) throws ApiException { + return exportDownloadWithHttpInfo(id).getData(); + } + + /** + * Download archives created by export job + * + * @param id (required) + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportDownloadWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling exportDownload"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/download/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Creates an export job for a media folder + * + * @param request (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportExportAlbum(MediaFolderExportRequest request) throws ApiException { + return exportExportAlbumWithHttpInfo(request).getData(); + } + + /** + * Creates an export job for a media folder + * + * @param request (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportExportAlbumWithHttpInfo(MediaFolderExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling exportExportAlbum"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/albums"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Creates an export job for a list of files + * + * @param request (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportExportFiles(FileExportRequest request) throws ApiException { + return exportExportFilesWithHttpInfo(request).getData(); + } + + /** + * Creates an export job for a list of files + * + * @param request (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportExportFilesWithHttpInfo(FileExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling exportExportFiles"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/files"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Create an export job for a file share + * + * @param request (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportExportShare(FileShareExportRequest request) throws ApiException { + return exportExportShareWithHttpInfo(request).getData(); + } + + /** + * Create an export job for a file share + * + * @param request (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportExportShareWithHttpInfo(FileShareExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling exportExportShare"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/share"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Creates an export job for a list of shared files + * + * @param shareid The share id (required) + * @param request (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportExportShareFiles(String shareid, FileExportRequest request) throws ApiException { + return exportExportShareFilesWithHttpInfo(shareid, request).getData(); + } + + /** + * Creates an export job for a list of shared files + * + * @param shareid The share id (required) + * @param request (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportExportShareFilesWithHttpInfo(String shareid, FileExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'shareid' is set + if (shareid == null) { + throw new ApiException(400, "Missing the required parameter 'shareid' when calling exportExportShareFiles"); + } + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling exportExportShareFiles"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/shares/{shareid}/files" + .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Creates an export job for a shared album + * + * @param request (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportExportSharedAlbum(MediaShareExportRequest request) throws ApiException { + return exportExportSharedAlbumWithHttpInfo(request).getData(); + } + + /** + * Creates an export job for a shared album + * + * @param request (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportExportSharedAlbumWithHttpInfo(MediaShareExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling exportExportSharedAlbum"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/share/album"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Creates an export for a list files in a shared album + * + * @param shareid The share id (required) + * @param request (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportExportSharedAlbumFiles(String shareid, MediaShareItemExportRequest request) throws ApiException { + return exportExportSharedAlbumFilesWithHttpInfo(shareid, request).getData(); + } + + /** + * Creates an export for a list files in a shared album + * + * @param shareid The share id (required) + * @param request (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportExportSharedAlbumFilesWithHttpInfo(String shareid, MediaShareItemExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'shareid' is set + if (shareid == null) { + throw new ApiException(400, "Missing the required parameter 'shareid' when calling exportExportSharedAlbumFiles"); + } + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling exportExportSharedAlbumFiles"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/shares/{shareid}/album/files" + .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Returns export job, poll this to see progess och the export job + * + * @param id (required) + * @return ExportJobResponse + * @throws ApiException if fails to make API call + */ + public ExportJobResponse exportGetExportJob(String id) throws ApiException { + return exportGetExportJobWithHttpInfo(id).getData(); + } + + /** + * Returns export job, poll this to see progess och the export job + * + * @param id (required) + * @return ApiResponse<ExportJobResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse exportGetExportJobWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling exportGetExportJob"); + } + + // create path and map variables + String localVarPath = "/v4.2/export/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } +} diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FavoritesApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FavoritesApi.java index f073c4c9b63..426357338c8 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FavoritesApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FavoritesApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FavoritesApi { private ApiClient apiClient; @@ -38,24 +38,24 @@ public void setApiClient(ApiClient apiClient) { } /** - * Creates a new Favorite. Use header \"X-Lock-Id\" to send lock id if needed + * Creates a new Favorite. * * @param createFavoriteRequest createFolderRequest (required) - * @return File + * @return Object * @throws ApiException if fails to make API call */ - public File favoritesCreate(CreateFavoriteRequest createFavoriteRequest) throws ApiException { + public Object favoritesCreate(CreateFavoriteRequest createFavoriteRequest) throws ApiException { return favoritesCreateWithHttpInfo(createFavoriteRequest).getData(); } /** - * Creates a new Favorite. Use header \"X-Lock-Id\" to send lock id if needed + * Creates a new Favorite. * * @param createFavoriteRequest createFolderRequest (required) - * @return ApiResponse<File> + * @return ApiResponse<Object> * @throws ApiException if fails to make API call */ - public ApiResponse favoritesCreateWithHttpInfo(CreateFavoriteRequest createFavoriteRequest) throws ApiException { + public ApiResponse favoritesCreateWithHttpInfo(CreateFavoriteRequest createFavoriteRequest) throws ApiException { Object localVarPostBody = createFavoriteRequest; // verify the required parameter 'createFavoriteRequest' is set @@ -64,7 +64,7 @@ public ApiResponse favoritesCreateWithHttpInfo(CreateFavoriteRequest creat } // create path and map variables - String localVarPath = "/v4/favorites"; + String localVarPath = "/v4.2/favorites"; // query params List localVarQueryParams = new ArrayList(); @@ -86,11 +86,11 @@ public ApiResponse favoritesCreateWithHttpInfo(CreateFavoriteRequest creat String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Deletes a directory or file. Use header \"X-Lock-Id\" to send lock id if needed + * Deletes a directory or file. * * @param id The FileId of the favorite to delete. (required) * @throws ApiException if fails to make API call @@ -101,7 +101,7 @@ public void favoritesDelete(String id) throws ApiException { } /** - * Deletes a directory or file. Use header \"X-Lock-Id\" to send lock id if needed + * Deletes a directory or file. * * @param id The FileId of the favorite to delete. (required) * @throws ApiException if fails to make API call @@ -115,7 +115,7 @@ public ApiResponse favoritesDeleteWithHttpInfo(String id) throws ApiExcept } // create path and map variables - String localVarPath = "/v4/favorites/{id}" + String localVarPath = "/v4.2/favorites/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -161,7 +161,7 @@ public ApiResponse> favoritesGetAllWithHttpInfo() throws ApiException Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/favorites"; + String localVarPath = "/v4.2/favorites"; // query params List localVarQueryParams = new ArrayList(); @@ -187,26 +187,26 @@ public ApiResponse> favoritesGetAllWithHttpInfo() throws ApiException return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Update Favorite Order Use header \"X-Lock-Id\" to send lock id if needed + * Update Favorite Order * * @param id (required) * @param updateFavoriteRequest (required) - * @return File + * @return Object * @throws ApiException if fails to make API call */ - public File favoritesUpdate(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException { + public Object favoritesUpdate(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException { return favoritesUpdateWithHttpInfo(id, updateFavoriteRequest).getData(); } /** - * Update Favorite Order Use header \"X-Lock-Id\" to send lock id if needed + * Update Favorite Order * * @param id (required) * @param updateFavoriteRequest (required) - * @return ApiResponse<File> + * @return ApiResponse<Object> * @throws ApiException if fails to make API call */ - public ApiResponse favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException { + public ApiResponse favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException { Object localVarPostBody = updateFavoriteRequest; // verify the required parameter 'id' is set @@ -220,7 +220,7 @@ public ApiResponse favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRe } // create path and map variables - String localVarPath = "/v4/favorites/{id}" + String localVarPath = "/v4.2/favorites/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -243,7 +243,7 @@ public ApiResponse favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRe String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileLocksApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileLocksApi.java index aa940e5cf0b..11271e76fdf 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileLocksApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileLocksApi.java @@ -16,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileLocksApi { private ApiClient apiClient; @@ -70,7 +70,7 @@ public ApiResponse fileLocksCreateLockWithHttpInfo(String fileId, File } // create path and map variables - String localVarPath = "/v4/filelocks/{fileId}" + String localVarPath = "/v4.2/filelocks/{fileId}" .replaceAll("\\{" + "fileId" + "\\}", apiClient.escapeString(fileId.toString())); // query params @@ -129,7 +129,7 @@ public ApiResponse fileLocksDeleteLockWithHttpInfo(String fileId, String l } // create path and map variables - String localVarPath = "/v4/filelocks/{fileId}/{lockId}" + String localVarPath = "/v4.2/filelocks/{fileId}/{lockId}" .replaceAll("\\{" + "fileId" + "\\}", apiClient.escapeString(fileId.toString())) .replaceAll("\\{" + "lockId" + "\\}", apiClient.escapeString(lockId.toString())); @@ -183,7 +183,7 @@ public ApiResponse fileLocksFindLockWithHttpInfo(String fileId) throws } // create path and map variables - String localVarPath = "/v4/filelocks/{fileId}" + String localVarPath = "/v4.2/filelocks/{fileId}" .replaceAll("\\{" + "fileId" + "\\}", apiClient.escapeString(fileId.toString())); // query params @@ -250,7 +250,7 @@ public ApiResponse fileLocksUpdateLockWithHttpInfo(String fileId, Stri } // create path and map variables - String localVarPath = "/v4/filelocks/{fileId}/{lockId}" + String localVarPath = "/v4.2/filelocks/{fileId}/{lockId}" .replaceAll("\\{" + "fileId" + "\\}", apiClient.escapeString(fileId.toString())) .replaceAll("\\{" + "lockId" + "\\}", apiClient.escapeString(lockId.toString())); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileSharesApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileSharesApi.java index fae445c18a2..e1e26350367 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileSharesApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FileSharesApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileSharesApi { private ApiClient apiClient; @@ -65,7 +65,7 @@ public ApiResponse fileSharesDeleteWithHttpInfo(String id) throws ApiExcep } // create path and map variables - String localVarPath = "/v4/fileshares/{id}" + String localVarPath = "/v4.2/fileshares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -96,7 +96,7 @@ public ApiResponse fileSharesDeleteWithHttpInfo(String id) throws ApiExcep * * @param pageIndex Index of page (required) * @param pageSize Max rows per page (default 500) (required) - * @param sortExpression Name, Created, Modified, Size (desc/asc) (required) + * @param sortExpression Name, Created, Modified, Size, Owner (desc/asc) (required) * @return ShareContents * @throws ApiException if fails to make API call */ @@ -109,7 +109,7 @@ public ShareContents fileSharesGet(Integer pageIndex, Integer pageSize, String s * * @param pageIndex Index of page (required) * @param pageSize Max rows per page (default 500) (required) - * @param sortExpression Name, Created, Modified, Size (desc/asc) (required) + * @param sortExpression Name, Created, Modified, Size, Owner (desc/asc) (required) * @return ApiResponse<ShareContents> * @throws ApiException if fails to make API call */ @@ -132,7 +132,7 @@ public ApiResponse fileSharesGetWithHttpInfo(Integer pageIndex, I } // create path and map variables - String localVarPath = "/v4/fileshares"; + String localVarPath = "/v4.2/fileshares"; // query params List localVarQueryParams = new ArrayList(); @@ -187,7 +187,7 @@ public ApiResponse fileSharesGetByFileIdWithHttpInfo(String id) throw } // create path and map variables - String localVarPath = "/v4/fileshares/fileid/{id}" + String localVarPath = "/v4.2/fileshares/fileid/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -240,7 +240,7 @@ public ApiResponse fileSharesGetByIdWithHttpInfo(String id) throws Ap } // create path and map variables - String localVarPath = "/v4/fileshares/{id}" + String localVarPath = "/v4.2/fileshares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -267,33 +267,34 @@ public ApiResponse fileSharesGetByIdWithHttpInfo(String id) throws Ap return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Create a new file share with settings. + * Create a new file share without settings. * - * @param createShareRequest The parameters (required) + * @param id The FileId (required) * @return FileShare * @throws ApiException if fails to make API call */ - public FileShare fileSharesPost(CreateFileShareRequest createShareRequest) throws ApiException { - return fileSharesPostWithHttpInfo(createShareRequest).getData(); + public FileShare fileSharesPost(String id) throws ApiException { + return fileSharesPostWithHttpInfo(id).getData(); } /** - * Create a new file share with settings. + * Create a new file share without settings. * - * @param createShareRequest The parameters (required) + * @param id The FileId (required) * @return ApiResponse<FileShare> * @throws ApiException if fails to make API call */ - public ApiResponse fileSharesPostWithHttpInfo(CreateFileShareRequest createShareRequest) throws ApiException { - Object localVarPostBody = createShareRequest; + public ApiResponse fileSharesPostWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; - // verify the required parameter 'createShareRequest' is set - if (createShareRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createShareRequest' when calling fileSharesPost"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling fileSharesPost"); } // create path and map variables - String localVarPath = "/v4/fileshares"; + String localVarPath = "/v4.2/fileshares/fileid/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); @@ -309,7 +310,7 @@ public ApiResponse fileSharesPostWithHttpInfo(CreateFileShareRequest final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - "application/json", "text/json" + }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); @@ -319,34 +320,33 @@ public ApiResponse fileSharesPostWithHttpInfo(CreateFileShareRequest return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Create a new file share without settings. + * Create a new file share with settings. * - * @param id The FileId (required) + * @param createShareRequest The parameters (required) * @return FileShare * @throws ApiException if fails to make API call */ - public FileShare fileSharesPost_0(String id) throws ApiException { - return fileSharesPost_0WithHttpInfo(id).getData(); + public FileShare fileSharesPost_0(CreateFileShareRequest createShareRequest) throws ApiException { + return fileSharesPost_0WithHttpInfo(createShareRequest).getData(); } /** - * Create a new file share without settings. + * Create a new file share with settings. * - * @param id The FileId (required) + * @param createShareRequest The parameters (required) * @return ApiResponse<FileShare> * @throws ApiException if fails to make API call */ - public ApiResponse fileSharesPost_0WithHttpInfo(String id) throws ApiException { - Object localVarPostBody = null; + public ApiResponse fileSharesPost_0WithHttpInfo(CreateFileShareRequest createShareRequest) throws ApiException { + Object localVarPostBody = createShareRequest; - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling fileSharesPost_0"); + // verify the required parameter 'createShareRequest' is set + if (createShareRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createShareRequest' when calling fileSharesPost_0"); } // create path and map variables - String localVarPath = "/v4/fileshares/fileid/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + String localVarPath = "/v4.2/fileshares"; // query params List localVarQueryParams = new ArrayList(); @@ -362,7 +362,7 @@ public ApiResponse fileSharesPost_0WithHttpInfo(String id) throws Api final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json", "text/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); @@ -405,7 +405,7 @@ public ApiResponse fileSharesPutWithHttpInfo(String id, UpdateShareRe } // create path and map variables - String localVarPath = "/v4/fileshares/{id}" + String localVarPath = "/v4.2/fileshares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -464,7 +464,7 @@ public ApiResponse fileSharesSendShareMailWithHttpInfo(String id, ShareMai } // create path and map variables - String localVarPath = "/v4/fileshares/{id}/mail" + String localVarPath = "/v4.2/fileshares/{id}/mail" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FilesApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FilesApi.java index 4d55ceb39cb..75438cf25b1 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FilesApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/FilesApi.java @@ -10,10 +10,14 @@ import ch.cyberduck.core.storegate.io.swagger.client.model.CopyFileRequest; import ch.cyberduck.core.storegate.io.swagger.client.model.CreateFolderRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.CreateOfficeRequest; +import org.joda.time.DateTime; import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.storegate.io.swagger.client.model.FileContents; import ch.cyberduck.core.storegate.io.swagger.client.model.FileVersion; +import ch.cyberduck.core.storegate.io.swagger.client.model.IndexContent; import ch.cyberduck.core.storegate.io.swagger.client.model.MoveFileRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.NameRequest; import ch.cyberduck.core.storegate.io.swagger.client.model.RecentGroupedContents; import ch.cyberduck.core.storegate.io.swagger.client.model.SearchFileContents; import ch.cyberduck.core.storegate.io.swagger.client.model.UpdateFilePropertiesRequest; @@ -23,7 +27,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FilesApi { private ApiClient apiClient; @@ -77,7 +81,7 @@ public ApiResponse filesCopyWithHttpInfo(String id, CopyFileRequest copyFi } // create path and map variables - String localVarPath = "/v4/files/{id}/copy" + String localVarPath = "/v4.2/files/{id}/copy" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -130,7 +134,59 @@ public ApiResponse filesCreateFolderWithHttpInfo(CreateFolderRequest creat } // create path and map variables - String localVarPath = "/v4/files"; + String localVarPath = "/v4.2/files"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Create an empty Office file + * + * @param createOfficeRequest createOfficeRequest (required) + * @return File + * @throws ApiException if fails to make API call + */ + public File filesCreateOfficeFile(CreateOfficeRequest createOfficeRequest) throws ApiException { + return filesCreateOfficeFileWithHttpInfo(createOfficeRequest).getData(); + } + + /** + * Create an empty Office file + * + * @param createOfficeRequest createOfficeRequest (required) + * @return ApiResponse<File> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesCreateOfficeFileWithHttpInfo(CreateOfficeRequest createOfficeRequest) throws ApiException { + Object localVarPostBody = createOfficeRequest; + + // verify the required parameter 'createOfficeRequest' is set + if (createOfficeRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createOfficeRequest' when calling filesCreateOfficeFile"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/office"; // query params List localVarQueryParams = new ArrayList(); @@ -181,7 +237,59 @@ public ApiResponse filesDeleteWithHttpInfo(String id) throws ApiException } // create path and map variables - String localVarPath = "/v4/files/{id}" + String localVarPath = "/v4.2/files/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } + /** + * Deletes all chindren in a directory. Use header \"X-Lock-Id\" to send lock id if needed + * + * @param id The resource to delete children in. (required) + * @throws ApiException if fails to make API call + */ + public void filesDeleteContents(String id) throws ApiException { + + filesDeleteContentsWithHttpInfo(id); + } + + /** + * Deletes all chindren in a directory. Use header \"X-Lock-Id\" to send lock id if needed + * + * @param id The resource to delete children in. (required) + * @throws ApiException if fails to make API call + */ + public ApiResponse filesDeleteContentsWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesDeleteContents"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/{id}/contents" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -211,22 +319,22 @@ public ApiResponse filesDeleteWithHttpInfo(String id) throws ApiException * Deletes a file version. Use header \"X-Lock-Id\" to send lock id if needed * * @param id The file to delete version from. (required) - * @param version What version to delete. (required) + * @param fileVersion What version to delete. (required) * @throws ApiException if fails to make API call */ - public void filesDelete_0(String id, Integer version) throws ApiException { + public void filesDelete_0(String id, Integer fileVersion) throws ApiException { - filesDelete_0WithHttpInfo(id, version); + filesDelete_0WithHttpInfo(id, fileVersion); } /** * Deletes a file version. Use header \"X-Lock-Id\" to send lock id if needed * * @param id The file to delete version from. (required) - * @param version What version to delete. (required) + * @param fileVersion What version to delete. (required) * @throws ApiException if fails to make API call */ - public ApiResponse filesDelete_0WithHttpInfo(String id, Integer version) throws ApiException { + public ApiResponse filesDelete_0WithHttpInfo(String id, Integer fileVersion) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -234,15 +342,15 @@ public ApiResponse filesDelete_0WithHttpInfo(String id, Integer version) t throw new ApiException(400, "Missing the required parameter 'id' when calling filesDelete_0"); } - // verify the required parameter 'version' is set - if (version == null) { - throw new ApiException(400, "Missing the required parameter 'version' when calling filesDelete_0"); + // verify the required parameter 'fileVersion' is set + if (fileVersion == null) { + throw new ApiException(400, "Missing the required parameter 'fileVersion' when calling filesDelete_0"); } // create path and map variables - String localVarPath = "/v4/files/{id}/versions/{version}" + String localVarPath = "/v4.2/files/{id}/versions/{fileVersion}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())); + .replaceAll("\\{" + "fileVersion" + "\\}", apiClient.escapeString(fileVersion.toString())); // query params List localVarQueryParams = new ArrayList(); @@ -267,10 +375,63 @@ public ApiResponse filesDelete_0WithHttpInfo(String id, Integer version) t return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + /** + * Gets a file by id + * + * @param id (required) + * @return File + * @throws ApiException if fails to make API call + */ + public File filesGet(String id) throws ApiException { + return filesGetWithHttpInfo(id).getData(); + } + + /** + * Gets a file by id + * + * @param id (required) + * @return ApiResponse<File> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesGetWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGet"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Browse fileContents. * - * @param path The path to list filecontents from. \"/\" lists the root (required) + * @param id The id to get filecontents from (required) * @param pageIndex Index of page (required) * @param pageSize Max rows per page (required) * @param sortExpression \"Name desc\" is acceptable Name, Created, Modified, Size (required) @@ -281,14 +442,14 @@ public ApiResponse filesDelete_0WithHttpInfo(String id, Integer version) t * @return FileContents * @throws ApiException if fails to make API call */ - public FileContents filesGet(String path, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { - return filesGetWithHttpInfo(path, pageIndex, pageSize, sortExpression, filter, includeHidden, includeParent, sortTogether).getData(); + public FileContents filesGetById(String id, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { + return filesGetByIdWithHttpInfo(id, pageIndex, pageSize, sortExpression, filter, includeHidden, includeParent, sortTogether).getData(); } /** * Browse fileContents. * - * @param path The path to list filecontents from. \"/\" lists the root (required) + * @param id The id to get filecontents from (required) * @param pageIndex Index of page (required) * @param pageSize Max rows per page (required) * @param sortExpression \"Name desc\" is acceptable Name, Created, Modified, Size (required) @@ -299,53 +460,53 @@ public FileContents filesGet(String path, Integer pageIndex, Integer pageSize, S * @return ApiResponse<FileContents> * @throws ApiException if fails to make API call */ - public ApiResponse filesGetWithHttpInfo(String path, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { + public ApiResponse filesGetByIdWithHttpInfo(String id, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'path' is set - if (path == null) { - throw new ApiException(400, "Missing the required parameter 'path' when calling filesGet"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetById"); } // verify the required parameter 'pageIndex' is set if (pageIndex == null) { - throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesGet"); + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesGetById"); } // verify the required parameter 'pageSize' is set if (pageSize == null) { - throw new ApiException(400, "Missing the required parameter 'pageSize' when calling filesGet"); + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling filesGetById"); } // verify the required parameter 'sortExpression' is set if (sortExpression == null) { - throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesGet"); + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesGetById"); } // verify the required parameter 'filter' is set if (filter == null) { - throw new ApiException(400, "Missing the required parameter 'filter' when calling filesGet"); + throw new ApiException(400, "Missing the required parameter 'filter' when calling filesGetById"); } // verify the required parameter 'includeHidden' is set if (includeHidden == null) { - throw new ApiException(400, "Missing the required parameter 'includeHidden' when calling filesGet"); + throw new ApiException(400, "Missing the required parameter 'includeHidden' when calling filesGetById"); } // verify the required parameter 'includeParent' is set if (includeParent == null) { - throw new ApiException(400, "Missing the required parameter 'includeParent' when calling filesGet"); + throw new ApiException(400, "Missing the required parameter 'includeParent' when calling filesGetById"); } // create path and map variables - String localVarPath = "/v4/files/contents"; + String localVarPath = "/v4.2/files/{id}/contents" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "path", path)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); @@ -372,77 +533,246 @@ public ApiResponse filesGetWithHttpInfo(String path, Integer pageI return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Browse fileContents. + * Get folder size * - * @param id The id to get filecontents from (required) - * @param pageIndex Index of page (required) - * @param pageSize Max rows per page (required) + * @param id (required) + * @return Long + * @throws ApiException if fails to make API call + */ + public Long filesGetFolderSize(String id) throws ApiException { + return filesGetFolderSizeWithHttpInfo(id).getData(); + } + + /** + * Get folder size + * + * @param id (required) + * @return ApiResponse<Long> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesGetFolderSizeWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetFolderSize"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/{id}/size" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get index in fileContents. + * + * @param parentId The id to get filecontents from (required) + * @param id The id to get index for (required) * @param sortExpression \"Name desc\" is acceptable Name, Created, Modified, Size (required) * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, Video=4, Media=5, Files=6 (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) * @param includeHidden Include hidden folders and files (required) - * @param includeParent Include parent in the response (File) if set to true (required) * @param sortTogether Set to true to sort folders and files together (optional) - * @return FileContents + * @return IndexContent * @throws ApiException if fails to make API call */ - public FileContents filesGetById(String id, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { - return filesGetByIdWithHttpInfo(id, pageIndex, pageSize, sortExpression, filter, includeHidden, includeParent, sortTogether).getData(); + public IndexContent filesGetIndexById(String parentId, String id, String sortExpression, Integer filter, Boolean includeHidden, Boolean sortTogether) throws ApiException { + return filesGetIndexByIdWithHttpInfo(parentId, id, sortExpression, filter, includeHidden, sortTogether).getData(); } /** - * Browse fileContents. + * Get index in fileContents. * - * @param id The id to get filecontents from (required) - * @param pageIndex Index of page (required) - * @param pageSize Max rows per page (required) + * @param parentId The id to get filecontents from (required) + * @param id The id to get index for (required) * @param sortExpression \"Name desc\" is acceptable Name, Created, Modified, Size (required) * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, Video=4, Media=5, Files=6 (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) * @param includeHidden Include hidden folders and files (required) - * @param includeParent Include parent in the response (File) if set to true (required) * @param sortTogether Set to true to sort folders and files together (optional) - * @return ApiResponse<FileContents> + * @return ApiResponse<IndexContent> * @throws ApiException if fails to make API call */ - public ApiResponse filesGetByIdWithHttpInfo(String id, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { + public ApiResponse filesGetIndexByIdWithHttpInfo(String parentId, String id, String sortExpression, Integer filter, Boolean includeHidden, Boolean sortTogether) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetById"); - } - - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) { - throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesGetById"); + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException(400, "Missing the required parameter 'parentId' when calling filesGetIndexById"); } - // verify the required parameter 'pageSize' is set - if (pageSize == null) { - throw new ApiException(400, "Missing the required parameter 'pageSize' when calling filesGetById"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetIndexById"); } // verify the required parameter 'sortExpression' is set if (sortExpression == null) { - throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesGetById"); + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesGetIndexById"); } // verify the required parameter 'filter' is set if (filter == null) { - throw new ApiException(400, "Missing the required parameter 'filter' when calling filesGetById"); + throw new ApiException(400, "Missing the required parameter 'filter' when calling filesGetIndexById"); } // verify the required parameter 'includeHidden' is set if (includeHidden == null) { - throw new ApiException(400, "Missing the required parameter 'includeHidden' when calling filesGetById"); + throw new ApiException(400, "Missing the required parameter 'includeHidden' when calling filesGetIndexById"); } - // verify the required parameter 'includeParent' is set - if (includeParent == null) { - throw new ApiException(400, "Missing the required parameter 'includeParent' when calling filesGetById"); + // create path and map variables + String localVarPath = "/v4.2/files/{parentId}/contents/index/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter", filter)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeHidden", includeHidden)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get index in recent contents from entire space. + * + * @param id The id to get index for (required) + * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, 4=Video, 5=Media, 6=Files (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) + * @param sortExpression Sort expression (optional) + * @param reversed Reverse list with oldest first (Obsolete, only used if sortExpression is empty) (optional) + * @param rootFolder Root folder where recent should be found, if null it will search entire account (optional) + * @return IndexContent + * @throws ApiException if fails to make API call + */ + public IndexContent filesGetIndexRecent(String id, Integer filter, String sortExpression, Boolean reversed, String rootFolder) throws ApiException { + return filesGetIndexRecentWithHttpInfo(id, filter, sortExpression, reversed, rootFolder).getData(); + } + + /** + * Get index in recent contents from entire space. + * + * @param id The id to get index for (required) + * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, 4=Video, 5=Media, 6=Files (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) + * @param sortExpression Sort expression (optional) + * @param reversed Reverse list with oldest first (Obsolete, only used if sortExpression is empty) (optional) + * @param rootFolder Root folder where recent should be found, if null it will search entire account (optional) + * @return ApiResponse<IndexContent> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesGetIndexRecentWithHttpInfo(String id, Integer filter, String sortExpression, Boolean reversed, String rootFolder) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetIndexRecent"); + } + + // verify the required parameter 'filter' is set + if (filter == null) { + throw new ApiException(400, "Missing the required parameter 'filter' when calling filesGetIndexRecent"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/recent/index/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter", filter)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "reversed", reversed)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "rootFolder", rootFolder)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * + * + * @param id (required) + * @param edit (optional) + * @return String + * @throws ApiException if fails to make API call + */ + public String filesGetOfficeUrl(String id, Boolean edit) throws ApiException { + return filesGetOfficeUrlWithHttpInfo(id, edit).getData(); + } + + /** + * + * + * @param id (required) + * @param edit (optional) + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesGetOfficeUrlWithHttpInfo(String id, Boolean edit) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetOfficeUrl"); } // create path and map variables - String localVarPath = "/v4/files/{id}/contents" + String localVarPath = "/v4.2/files/{id}/officeurl" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -450,13 +780,7 @@ public ApiResponse filesGetByIdWithHttpInfo(String id, Integer pag Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter", filter)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeHidden", includeHidden)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeParent", includeParent)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "edit", edit)); @@ -472,37 +796,44 @@ public ApiResponse filesGetByIdWithHttpInfo(String id, Integer pag String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Get folder size + * * * @param id (required) - * @return Long + * @param request (required) + * @return String * @throws ApiException if fails to make API call */ - public Long filesGetFolderSize(String id) throws ApiException { - return filesGetFolderSizeWithHttpInfo(id).getData(); + public String filesGetOfficeUrl2(String id, NameRequest request) throws ApiException { + return filesGetOfficeUrl2WithHttpInfo(id, request).getData(); } /** - * Get folder size + * * * @param id (required) - * @return ApiResponse<Long> + * @param request (required) + * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse filesGetFolderSizeWithHttpInfo(String id) throws ApiException { - Object localVarPostBody = null; + public ApiResponse filesGetOfficeUrl2WithHttpInfo(String id, NameRequest request) throws ApiException { + Object localVarPostBody = request; // verify the required parameter 'id' is set if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetFolderSize"); + throw new ApiException(400, "Missing the required parameter 'id' when calling filesGetOfficeUrl2"); + } + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling filesGetOfficeUrl2"); } // create path and map variables - String localVarPath = "/v4/files/{id}/size" + String localVarPath = "/v4.2/files/{id}/officeurl/template" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -519,14 +850,14 @@ public ApiResponse filesGetFolderSizeWithHttpInfo(String id) throws ApiExc final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json", "text/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Gets a list of random photos from a specific folder. @@ -557,7 +888,7 @@ public ApiResponse> filesGetRandomPhotosWithHttpInfo(String id, Integ } // create path and map variables - String localVarPath = "/v4/files/{id}/randomphotos" + String localVarPath = "/v4.2/files/{id}/randomphotos" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -592,11 +923,12 @@ public ApiResponse> filesGetRandomPhotosWithHttpInfo(String id, Integ * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, 4=Video, 5=Media, 6=Files (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) * @param sortExpression Sort expression (optional) * @param reversed Reverse list with oldest first (Obsolete, only used if sortExpression is empty) (optional) + * @param rootFolder Root folder where recent should be found, if null it will search entire account (optional) * @return SearchFileContents * @throws ApiException if fails to make API call */ - public SearchFileContents filesGetRecent(Integer pageIndex, Integer pageSize, Integer filter, String sortExpression, Boolean reversed) throws ApiException { - return filesGetRecentWithHttpInfo(pageIndex, pageSize, filter, sortExpression, reversed).getData(); + public SearchFileContents filesGetRecent(Integer pageIndex, Integer pageSize, Integer filter, String sortExpression, Boolean reversed, String rootFolder) throws ApiException { + return filesGetRecentWithHttpInfo(pageIndex, pageSize, filter, sortExpression, reversed, rootFolder).getData(); } /** @@ -607,10 +939,11 @@ public SearchFileContents filesGetRecent(Integer pageIndex, Integer pageSize, In * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, 4=Video, 5=Media, 6=Files (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) * @param sortExpression Sort expression (optional) * @param reversed Reverse list with oldest first (Obsolete, only used if sortExpression is empty) (optional) + * @param rootFolder Root folder where recent should be found, if null it will search entire account (optional) * @return ApiResponse<SearchFileContents> * @throws ApiException if fails to make API call */ - public ApiResponse filesGetRecentWithHttpInfo(Integer pageIndex, Integer pageSize, Integer filter, String sortExpression, Boolean reversed) throws ApiException { + public ApiResponse filesGetRecentWithHttpInfo(Integer pageIndex, Integer pageSize, Integer filter, String sortExpression, Boolean reversed, String rootFolder) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'pageIndex' is set @@ -629,7 +962,7 @@ public ApiResponse filesGetRecentWithHttpInfo(Integer pageIn } // create path and map variables - String localVarPath = "/v4/files/recent"; + String localVarPath = "/v4.2/files/recent"; // query params List localVarQueryParams = new ArrayList(); @@ -641,6 +974,7 @@ public ApiResponse filesGetRecentWithHttpInfo(Integer pageIn localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter", filter)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "reversed", reversed)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "rootFolder", rootFolder)); @@ -668,11 +1002,12 @@ public ApiResponse filesGetRecentWithHttpInfo(Integer pageIn * @param groupBy Day, Month (0 = Day, 1 = Month) (required) * @param sortExpression Sort expression (optional) * @param reversed Reverse list with oldest first (Obsolete, only used if sortExpression is empty) (optional) + * @param rootFolder Root folder where recent should be found, if null it will search entire account (optional) * @return RecentGroupedContents * @throws ApiException if fails to make API call */ - public RecentGroupedContents filesGetRecentGroupes(Integer pageIndex, Integer pageSize, Integer filter, Integer groupBy, String sortExpression, Boolean reversed) throws ApiException { - return filesGetRecentGroupesWithHttpInfo(pageIndex, pageSize, filter, groupBy, sortExpression, reversed).getData(); + public RecentGroupedContents filesGetRecentGroupes(Integer pageIndex, Integer pageSize, Integer filter, Integer groupBy, String sortExpression, Boolean reversed, String rootFolder) throws ApiException { + return filesGetRecentGroupesWithHttpInfo(pageIndex, pageSize, filter, groupBy, sortExpression, reversed, rootFolder).getData(); } /** @@ -684,10 +1019,11 @@ public RecentGroupedContents filesGetRecentGroupes(Integer pageIndex, Integer pa * @param groupBy Day, Month (0 = Day, 1 = Month) (required) * @param sortExpression Sort expression (optional) * @param reversed Reverse list with oldest first (Obsolete, only used if sortExpression is empty) (optional) + * @param rootFolder Root folder where recent should be found, if null it will search entire account (optional) * @return ApiResponse<RecentGroupedContents> * @throws ApiException if fails to make API call */ - public ApiResponse filesGetRecentGroupesWithHttpInfo(Integer pageIndex, Integer pageSize, Integer filter, Integer groupBy, String sortExpression, Boolean reversed) throws ApiException { + public ApiResponse filesGetRecentGroupesWithHttpInfo(Integer pageIndex, Integer pageSize, Integer filter, Integer groupBy, String sortExpression, Boolean reversed, String rootFolder) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'pageIndex' is set @@ -711,7 +1047,7 @@ public ApiResponse filesGetRecentGroupesWithHttpInfo(Inte } // create path and map variables - String localVarPath = "/v4/files/recent/groups"; + String localVarPath = "/v4.2/files/recent/groups"; // query params List localVarQueryParams = new ArrayList(); @@ -724,6 +1060,7 @@ public ApiResponse filesGetRecentGroupesWithHttpInfo(Inte localVarQueryParams.addAll(apiClient.parameterToPairs("", "groupBy", groupBy)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "reversed", reversed)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "rootFolder", rootFolder)); @@ -769,7 +1106,7 @@ public ApiResponse> filesGetResourceVersionsWithHttpInfo(Strin } // create path and map variables - String localVarPath = "/v4/files/{id}/versions" + String localVarPath = "/v4.2/files/{id}/versions" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -796,40 +1133,40 @@ public ApiResponse> filesGetResourceVersionsWithHttpInfo(Strin return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Gets a file by id + * Gets a file by path. * - * @param id (required) + * @param path The path to the file to get, this path should be URL encoded (required) * @return File * @throws ApiException if fails to make API call */ - public File filesGet_0(String id) throws ApiException { - return filesGet_0WithHttpInfo(id).getData(); + public File filesGet_0(String path) throws ApiException { + return filesGet_0WithHttpInfo(path).getData(); } /** - * Gets a file by id + * Gets a file by path. * - * @param id (required) + * @param path The path to the file to get, this path should be URL encoded (required) * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse filesGet_0WithHttpInfo(String id) throws ApiException { + public ApiResponse filesGet_0WithHttpInfo(String path) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling filesGet_0"); + // verify the required parameter 'path' is set + if (path == null) { + throw new ApiException(400, "Missing the required parameter 'path' when calling filesGet_0"); } // create path and map variables - String localVarPath = "/v4/files/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + String localVarPath = "/v4.2/files"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "path", path)); @@ -849,24 +1186,38 @@ public ApiResponse filesGet_0WithHttpInfo(String id) throws ApiException { return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Gets a file by path. + * Browse fileContents. * - * @param path The path to the file to get, this path should be URL encoded (required) - * @return File + * @param path The path to list filecontents from. \"/\" lists the root (required) + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression \"Name desc\" is acceptable Name, Created, Modified, Size (required) + * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, Video=4, Media=5, Files=6 (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) + * @param includeHidden Include hidden folders and files (required) + * @param includeParent Include parent in the response (File) if set to true (required) + * @param sortTogether Set to true to sort folders and files together (optional) + * @return FileContents * @throws ApiException if fails to make API call */ - public File filesGet_1(String path) throws ApiException { - return filesGet_1WithHttpInfo(path).getData(); + public FileContents filesGet_1(String path, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { + return filesGet_1WithHttpInfo(path, pageIndex, pageSize, sortExpression, filter, includeHidden, includeParent, sortTogether).getData(); } /** - * Gets a file by path. + * Browse fileContents. * - * @param path The path to the file to get, this path should be URL encoded (required) - * @return ApiResponse<File> + * @param path The path to list filecontents from. \"/\" lists the root (required) + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression \"Name desc\" is acceptable Name, Created, Modified, Size (required) + * @param filter 0=All, 1=Folder, 2=Image, 3=Doc, Video=4, Media=5, Files=6 (0 = All, 1 = Folder, 2 = Image, 3 = Doc, 4 = Video, 5 = Media, 6 = Files) (required) + * @param includeHidden Include hidden folders and files (required) + * @param includeParent Include parent in the response (File) if set to true (required) + * @param sortTogether Set to true to sort folders and files together (optional) + * @return ApiResponse<FileContents> * @throws ApiException if fails to make API call */ - public ApiResponse filesGet_1WithHttpInfo(String path) throws ApiException { + public ApiResponse filesGet_1WithHttpInfo(String path, Integer pageIndex, Integer pageSize, String sortExpression, Integer filter, Boolean includeHidden, Boolean includeParent, Boolean sortTogether) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'path' is set @@ -874,8 +1225,38 @@ public ApiResponse filesGet_1WithHttpInfo(String path) throws ApiException throw new ApiException(400, "Missing the required parameter 'path' when calling filesGet_1"); } + // verify the required parameter 'pageIndex' is set + if (pageIndex == null) { + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesGet_1"); + } + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling filesGet_1"); + } + + // verify the required parameter 'sortExpression' is set + if (sortExpression == null) { + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesGet_1"); + } + + // verify the required parameter 'filter' is set + if (filter == null) { + throw new ApiException(400, "Missing the required parameter 'filter' when calling filesGet_1"); + } + + // verify the required parameter 'includeHidden' is set + if (includeHidden == null) { + throw new ApiException(400, "Missing the required parameter 'includeHidden' when calling filesGet_1"); + } + + // verify the required parameter 'includeParent' is set + if (includeParent == null) { + throw new ApiException(400, "Missing the required parameter 'includeParent' when calling filesGet_1"); + } + // create path and map variables - String localVarPath = "/v4/files"; + String localVarPath = "/v4.2/files/contents"; // query params List localVarQueryParams = new ArrayList(); @@ -883,6 +1264,13 @@ public ApiResponse filesGet_1WithHttpInfo(String path) throws ApiException Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "path", path)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter", filter)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeHidden", includeHidden)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeParent", includeParent)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); @@ -898,7 +1286,7 @@ public ApiResponse filesGet_1WithHttpInfo(String path) throws ApiException String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** @@ -934,7 +1322,7 @@ public ApiResponse filesMoveWithHttpInfo(String id, MoveFileRequest moveFi } // create path and map variables - String localVarPath = "/v4/files/{id}/move" + String localVarPath = "/v4.2/files/{id}/move" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -964,31 +1352,37 @@ public ApiResponse filesMoveWithHttpInfo(String id, MoveFileRequest moveFi * Search contents, this can list contents in a specific folder or all files in entire space. * * @param searchCriteria Searchstring (required) - * @param searchRoot Specify root, default is empty string to searches entire space (required) * @param pageIndex Index of page (required) * @param pageSize Max rows per page (required) * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) + * @param searchRoot Specify root, empty string to searches entire space (required) * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) * @return SearchFileContents * @throws ApiException if fails to make API call */ - public SearchFileContents filesSearch(String searchCriteria, String searchRoot, Integer pageIndex, Integer pageSize, String sortExpression, Boolean sortTogether) throws ApiException { - return filesSearchWithHttpInfo(searchCriteria, searchRoot, pageIndex, pageSize, sortExpression, sortTogether).getData(); + public SearchFileContents filesSearch(String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, String searchRoot, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + return filesSearchWithHttpInfo(searchCriteria, pageIndex, pageSize, sortExpression, searchRoot, sortTogether, fromDate, toDate, userId).getData(); } /** * Search contents, this can list contents in a specific folder or all files in entire space. * * @param searchCriteria Searchstring (required) - * @param searchRoot Specify root, default is empty string to searches entire space (required) * @param pageIndex Index of page (required) * @param pageSize Max rows per page (required) * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) + * @param searchRoot Specify root, empty string to searches entire space (required) * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) * @return ApiResponse<SearchFileContents> * @throws ApiException if fails to make API call */ - public ApiResponse filesSearchWithHttpInfo(String searchCriteria, String searchRoot, Integer pageIndex, Integer pageSize, String sortExpression, Boolean sortTogether) throws ApiException { + public ApiResponse filesSearchWithHttpInfo(String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, String searchRoot, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'searchCriteria' is set @@ -996,11 +1390,6 @@ public ApiResponse filesSearchWithHttpInfo(String searchCrit throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling filesSearch"); } - // verify the required parameter 'searchRoot' is set - if (searchRoot == null) { - throw new ApiException(400, "Missing the required parameter 'searchRoot' when calling filesSearch"); - } - // verify the required parameter 'pageIndex' is set if (pageIndex == null) { throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesSearch"); @@ -1016,8 +1405,13 @@ public ApiResponse filesSearchWithHttpInfo(String searchCrit throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesSearch"); } + // verify the required parameter 'searchRoot' is set + if (searchRoot == null) { + throw new ApiException(400, "Missing the required parameter 'searchRoot' when calling filesSearch"); + } + // create path and map variables - String localVarPath = "/v4/files/search"; + String localVarPath = "/v4.2/files/search"; // query params List localVarQueryParams = new ArrayList(); @@ -1025,11 +1419,14 @@ public ApiResponse filesSearchWithHttpInfo(String searchCrit Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchRoot", searchRoot)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchRoot", searchRoot)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "userId", userId)); @@ -1049,7 +1446,177 @@ public ApiResponse filesSearchWithHttpInfo(String searchCrit return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Search contents, this can list contents in a specific folder or all files in entire space. + * Get index in Search contents, this can list contents in entire space. + * + * @param id The id to get index for (required) + * @param searchCriteria Searchstring (required) + * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) + * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) + * @return IndexContent + * @throws ApiException if fails to make API call + */ + public IndexContent filesSearchById(String id, String searchCriteria, String sortExpression, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + return filesSearchByIdWithHttpInfo(id, searchCriteria, sortExpression, sortTogether, fromDate, toDate, userId).getData(); + } + + /** + * Get index in Search contents, this can list contents in entire space. + * + * @param id The id to get index for (required) + * @param searchCriteria Searchstring (required) + * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) + * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) + * @return ApiResponse<IndexContent> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesSearchByIdWithHttpInfo(String id, String searchCriteria, String sortExpression, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesSearchById"); + } + + // verify the required parameter 'searchCriteria' is set + if (searchCriteria == null) { + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling filesSearchById"); + } + + // verify the required parameter 'sortExpression' is set + if (sortExpression == null) { + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesSearchById"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/search/index/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "userId", userId)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get index in Search contents, this can list contents in a specific folder. + * + * @param parentId The id of the reaource to search in (required) + * @param id The id to get index for (required) + * @param searchCriteria Searchstring (required) + * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) + * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) + * @return IndexContent + * @throws ApiException if fails to make API call + */ + public IndexContent filesSearchById_0(String parentId, String id, String searchCriteria, String sortExpression, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + return filesSearchById_0WithHttpInfo(parentId, id, searchCriteria, sortExpression, sortTogether, fromDate, toDate, userId).getData(); + } + + /** + * Get index in Search contents, this can list contents in a specific folder. + * + * @param parentId The id of the reaource to search in (required) + * @param id The id to get index for (required) + * @param searchCriteria Searchstring (required) + * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) + * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) + * @return ApiResponse<IndexContent> + * @throws ApiException if fails to make API call + */ + public ApiResponse filesSearchById_0WithHttpInfo(String parentId, String id, String searchCriteria, String sortExpression, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'parentId' is set + if (parentId == null) { + throw new ApiException(400, "Missing the required parameter 'parentId' when calling filesSearchById_0"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling filesSearchById_0"); + } + + // verify the required parameter 'searchCriteria' is set + if (searchCriteria == null) { + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling filesSearchById_0"); + } + + // verify the required parameter 'sortExpression' is set + if (sortExpression == null) { + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesSearchById_0"); + } + + // create path and map variables + String localVarPath = "/v4.2/files/{parentId}/search/index/{id}" + .replaceAll("\\{" + "parentId" + "\\}", apiClient.escapeString(parentId.toString())) + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "userId", userId)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Search contents, this can list contents in a specific folder. * * @param id The id of the reaource to search in (required) * @param searchCriteria Searchstring (required) @@ -1057,15 +1624,18 @@ public ApiResponse filesSearchWithHttpInfo(String searchCrit * @param pageSize Max rows per page (required) * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) * @return SearchFileContents * @throws ApiException if fails to make API call */ - public SearchFileContents filesSearchById(String id, String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, Boolean sortTogether) throws ApiException { - return filesSearchByIdWithHttpInfo(id, searchCriteria, pageIndex, pageSize, sortExpression, sortTogether).getData(); + public SearchFileContents filesSearchById_1(String id, String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + return filesSearchById_1WithHttpInfo(id, searchCriteria, pageIndex, pageSize, sortExpression, sortTogether, fromDate, toDate, userId).getData(); } /** - * Search contents, this can list contents in a specific folder or all files in entire space. + * Search contents, this can list contents in a specific folder. * * @param id The id of the reaource to search in (required) * @param searchCriteria Searchstring (required) @@ -1073,39 +1643,42 @@ public SearchFileContents filesSearchById(String id, String searchCriteria, Inte * @param pageSize Max rows per page (required) * @param sortExpression Name, Created, Modified, Accessed (desc/asc) (required) * @param sortTogether Set to true to sort folders and files together (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) * @return ApiResponse<SearchFileContents> * @throws ApiException if fails to make API call */ - public ApiResponse filesSearchByIdWithHttpInfo(String id, String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, Boolean sortTogether) throws ApiException { + public ApiResponse filesSearchById_1WithHttpInfo(String id, String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, Boolean sortTogether, DateTime fromDate, DateTime toDate, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling filesSearchById"); + throw new ApiException(400, "Missing the required parameter 'id' when calling filesSearchById_1"); } // verify the required parameter 'searchCriteria' is set if (searchCriteria == null) { - throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling filesSearchById"); + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling filesSearchById_1"); } // verify the required parameter 'pageIndex' is set if (pageIndex == null) { - throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesSearchById"); + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling filesSearchById_1"); } // verify the required parameter 'pageSize' is set if (pageSize == null) { - throw new ApiException(400, "Missing the required parameter 'pageSize' when calling filesSearchById"); + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling filesSearchById_1"); } // verify the required parameter 'sortExpression' is set if (sortExpression == null) { - throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesSearchById"); + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling filesSearchById_1"); } // create path and map variables - String localVarPath = "/v4/files/{id}/search" + String localVarPath = "/v4.2/files/{id}/search" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -1118,6 +1691,9 @@ public ApiResponse filesSearchByIdWithHttpInfo(String id, St localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortTogether", sortTogether)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "userId", userId)); @@ -1170,7 +1746,7 @@ public ApiResponse filesUpdateFileWithHttpInfo(String id, UpdateFileProper } // create path and map variables - String localVarPath = "/v4/files/{id}" + String localVarPath = "/v4.2/files/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/GroupsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/GroupsApi.java index 91b0e1b02d3..7eb893d757d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/GroupsApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/GroupsApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class GroupsApi { private ApiClient apiClient; @@ -70,7 +70,7 @@ public ApiResponse groupsAddUsersToGroupWithHttpInfo(String id, String use } // create path and map variables - String localVarPath = "/v4/groups/{id}/users" + String localVarPath = "/v4.2/groups/{id}/users" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -123,7 +123,7 @@ public ApiResponse groupsCreateGroupWithHttpInfo(GroupRequest groupReques } // create path and map variables - String localVarPath = "/v4/groups"; + String localVarPath = "/v4.2/groups"; // query params List localVarQueryParams = new ArrayList(); @@ -174,7 +174,7 @@ public ApiResponse groupsDeleteGroupWithHttpInfo(String id) throws ApiExce } // create path and map variables - String localVarPath = "/v4/groups/{id}" + String localVarPath = "/v4.2/groups/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -227,7 +227,7 @@ public ApiResponse groupsGetGroupWithHttpInfo(String id) throws ApiExcept } // create path and map variables - String localVarPath = "/v4/groups/{id}" + String localVarPath = "/v4.2/groups/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -280,7 +280,7 @@ public ApiResponse> groupsGetGroupUsersWithHttpInfo(String id) throws } // create path and map variables - String localVarPath = "/v4/groups/{id}/users" + String localVarPath = "/v4.2/groups/{id}/users" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -326,7 +326,7 @@ public ApiResponse> groupsGetGroupsWithHttpInfo() throws ApiExceptio Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/groups"; + String localVarPath = "/v4.2/groups"; // query params List localVarQueryParams = new ArrayList(); @@ -384,7 +384,7 @@ public ApiResponse groupsRemoveUserFromGroupWithHttpInfo(String id, String } // create path and map variables - String localVarPath = "/v4/groups/{id}/users/{userId}" + String localVarPath = "/v4.2/groups/{id}/users/{userId}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) .replaceAll("\\{" + "userId" + "\\}", apiClient.escapeString(userId.toString())); @@ -445,7 +445,7 @@ public ApiResponse groupsUpdateGroupWithHttpInfo(String id, GroupRequest } // create path and map variables - String localVarPath = "/v4/groups/{id}" + String localVarPath = "/v4.2/groups/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ImageApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ImageApi.java index 904b502654b..ce5b8280b54 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ImageApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/ImageApi.java @@ -14,7 +14,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ImageApi { private ApiClient apiClient; @@ -42,11 +42,12 @@ public void setApiClient(ApiClient apiClient) { * @param width Thumbnail width (optional) * @param height Thumbnail height (optional) * @param rotate Thumbnail rotation (optional) + * @param quality Thumbnail quality (90 is default) (optional) * @return String * @throws ApiException if fails to make API call */ - public String imageGetImageFile(String id, Integer version, Integer width, Integer height, Integer rotate) throws ApiException { - return imageGetImageFileWithHttpInfo(id, version, width, height, rotate).getData(); + public String imageGetImageFile(String id, Integer version, Integer width, Integer height, Integer rotate, Integer quality) throws ApiException { + return imageGetImageFileWithHttpInfo(id, version, width, height, rotate, quality).getData(); } /** @@ -57,10 +58,11 @@ public String imageGetImageFile(String id, Integer version, Integer width, Integ * @param width Thumbnail width (optional) * @param height Thumbnail height (optional) * @param rotate Thumbnail rotation (optional) + * @param quality Thumbnail quality (90 is default) (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse imageGetImageFileWithHttpInfo(String id, Integer version, Integer width, Integer height, Integer rotate) throws ApiException { + public ApiResponse imageGetImageFileWithHttpInfo(String id, Integer version, Integer width, Integer height, Integer rotate, Integer quality) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -69,7 +71,7 @@ public ApiResponse imageGetImageFileWithHttpInfo(String id, Integer vers } // create path and map variables - String localVarPath = "/v4/images/fileid/{id}" + String localVarPath = "/v4.2/images/fileid/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -81,6 +83,7 @@ public ApiResponse imageGetImageFileWithHttpInfo(String id, Integer vers localVarQueryParams.addAll(apiClient.parameterToPairs("", "width", width)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "height", height)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "rotate", rotate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "quality", quality)); @@ -139,7 +142,7 @@ public ApiResponse imageGetImageFileShareWithHttpInfo(String shareid, St } // create path and map variables - String localVarPath = "/v4/images/shares/{shareid}/fileid/{id}" + String localVarPath = "/v4.2/images/shares/{shareid}/fileid/{id}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); @@ -202,7 +205,7 @@ public ApiResponse imageGetImageMediaWithHttpInfo(String mediaid, Intege } // create path and map variables - String localVarPath = "/v4/images/mediaid/{mediaid}" + String localVarPath = "/v4.2/images/mediaid/{mediaid}" .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); // query params @@ -271,7 +274,7 @@ public ApiResponse imageGetImageMediaShareWithHttpInfo(String shareid, S } // create path and map variables - String localVarPath = "/v4/images/shares/{shareid}/mediaid/{mediaid}" + String localVarPath = "/v4.2/images/shares/{shareid}/mediaid/{mediaid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())) .replaceAll("\\{" + "mediaid" + "\\}", apiClient.escapeString(mediaid.toString())); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/InternalClientApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/InternalClientApi.java index 20753bec32f..d8245ea59ec 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/InternalClientApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/InternalClientApi.java @@ -8,13 +8,16 @@ import javax.ws.rs.core.GenericType; +import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; +import ch.cyberduck.core.storegate.io.swagger.client.model.UploadAttachmentRequest; +import ch.cyberduck.core.storegate.io.swagger.client.model.UploadAttachmentsFromServerRequest; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class InternalClientApi { private ApiClient apiClient; @@ -61,7 +64,7 @@ public ApiResponse internalClientGetDirListWithHttpInfo(String folderId) } // create path and map variables - String localVarPath = "/v4/client/dirlist/{folderId}" + String localVarPath = "/v4.2/client/dirlist/{folderId}" .replaceAll("\\{" + "folderId" + "\\}", apiClient.escapeString(folderId.toString())); // query params @@ -114,7 +117,7 @@ public ApiResponse internalClientGetFileListWithHttpInfo(String folderId } // create path and map variables - String localVarPath = "/v4/client/filelist/{folderId}" + String localVarPath = "/v4.2/client/filelist/{folderId}" .replaceAll("\\{" + "folderId" + "\\}", apiClient.escapeString(folderId.toString())); // query params @@ -140,4 +143,108 @@ public ApiResponse internalClientGetFileListWithHttpInfo(String folderId GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } + /** + * + * + * @param request (required) + * @return List<FileMetadata> + * @throws ApiException if fails to make API call + */ + public List internalClientOutlookServerUpload(UploadAttachmentsFromServerRequest request) throws ApiException { + return internalClientOutlookServerUploadWithHttpInfo(request).getData(); + } + + /** + * + * + * @param request (required) + * @return ApiResponse<List<FileMetadata>> + * @throws ApiException if fails to make API call + */ + public ApiResponse> internalClientOutlookServerUploadWithHttpInfo(UploadAttachmentsFromServerRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling internalClientOutlookServerUpload"); + } + + // create path and map variables + String localVarPath = "/v4.2/client/outlook/uploadfromserver"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * + * + * @param request (required) + * @return FileMetadata + * @throws ApiException if fails to make API call + */ + public FileMetadata internalClientOutlookUpload(UploadAttachmentRequest request) throws ApiException { + return internalClientOutlookUploadWithHttpInfo(request).getData(); + } + + /** + * + * + * @param request (required) + * @return ApiResponse<FileMetadata> + * @throws ApiException if fails to make API call + */ + public ApiResponse internalClientOutlookUploadWithHttpInfo(UploadAttachmentRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling internalClientOutlookUpload"); + } + + // create path and map variables + String localVarPath = "/v4.2/client/outlook/upload"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaApi.java index ea3f5bfcc38..33c6d54d187 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaApi { private ApiClient apiClient; @@ -68,7 +68,7 @@ public ApiResponse mediaDeleteWithHttpInfo(String id) throws ApiException } // create path and map variables - String localVarPath = "/v4/media/{id}" + String localVarPath = "/v4.2/media/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -127,7 +127,7 @@ public ApiResponse mediaDelete_0WithHttpInfo(String id, String mediaItemId } // create path and map variables - String localVarPath = "/v4/media/{id}/items/{mediaItemId}" + String localVarPath = "/v4.2/media/{id}/items/{mediaItemId}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) .replaceAll("\\{" + "mediaItemId" + "\\}", apiClient.escapeString(mediaItemId.toString())); @@ -155,56 +155,40 @@ public ApiResponse mediaDelete_0WithHttpInfo(String id, String mediaItemId return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** - * List the media folders (albums) created by the user. + * Get a mediafolder * - * @param pageIndex Index of page (required) - * @param pageSize Max rows per page (required) - * @param sortExpression Name, Description, CreatedDate, ModifiedDate (DESC/ASC) (required) - * @return MediaFolderContents + * @param id (required) + * @return MediaFolder * @throws ApiException if fails to make API call */ - public MediaFolderContents mediaGet(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException { - return mediaGetWithHttpInfo(pageIndex, pageSize, sortExpression).getData(); + public MediaFolder mediaGet(String id) throws ApiException { + return mediaGetWithHttpInfo(id).getData(); } /** - * List the media folders (albums) created by the user. + * Get a mediafolder * - * @param pageIndex Index of page (required) - * @param pageSize Max rows per page (required) - * @param sortExpression Name, Description, CreatedDate, ModifiedDate (DESC/ASC) (required) - * @return ApiResponse<MediaFolderContents> + * @param id (required) + * @return ApiResponse<MediaFolder> * @throws ApiException if fails to make API call */ - public ApiResponse mediaGetWithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException { + public ApiResponse mediaGetWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) { - throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling mediaGet"); - } - - // verify the required parameter 'pageSize' is set - if (pageSize == null) { - throw new ApiException(400, "Missing the required parameter 'pageSize' when calling mediaGet"); - } - - // verify the required parameter 'sortExpression' is set - if (sortExpression == null) { - throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling mediaGet"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling mediaGet"); } // create path and map variables - String localVarPath = "/v4/media"; + String localVarPath = "/v4.2/media/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); @@ -220,7 +204,7 @@ public ApiResponse mediaGetWithHttpInfo(Integer pageIndex, String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** @@ -257,7 +241,7 @@ public ApiResponse> mediaGetRandomPhotosWithHttpInfo(String id, } // create path and map variables - String localVarPath = "/v4/media/{id}/randomphotos/{numberOfPhotos}" + String localVarPath = "/v4.2/media/{id}/randomphotos/{numberOfPhotos}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) .replaceAll("\\{" + "numberOfPhotos" + "\\}", apiClient.escapeString(numberOfPhotos.toString())); @@ -285,40 +269,56 @@ public ApiResponse> mediaGetRandomPhotosWithHttpInfo(String id, return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Get a mediafolder + * List the media folders (albums) created by the user. * - * @param id (required) - * @return MediaFolder + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression Name, Description, CreatedDate, ModifiedDate (DESC/ASC) (required) + * @return MediaFolderContents * @throws ApiException if fails to make API call */ - public MediaFolder mediaGet_0(String id) throws ApiException { - return mediaGet_0WithHttpInfo(id).getData(); + public MediaFolderContents mediaGet_0(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException { + return mediaGet_0WithHttpInfo(pageIndex, pageSize, sortExpression).getData(); } /** - * Get a mediafolder + * List the media folders (albums) created by the user. * - * @param id (required) - * @return ApiResponse<MediaFolder> + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression Name, Description, CreatedDate, ModifiedDate (DESC/ASC) (required) + * @return ApiResponse<MediaFolderContents> * @throws ApiException if fails to make API call */ - public ApiResponse mediaGet_0WithHttpInfo(String id) throws ApiException { + public ApiResponse mediaGet_0WithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling mediaGet_0"); + // verify the required parameter 'pageIndex' is set + if (pageIndex == null) { + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling mediaGet_0"); + } + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling mediaGet_0"); + } + + // verify the required parameter 'sortExpression' is set + if (sortExpression == null) { + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling mediaGet_0"); } // create path and map variables - String localVarPath = "/v4/media/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + String localVarPath = "/v4.2/media"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); @@ -334,7 +334,7 @@ public ApiResponse mediaGet_0WithHttpInfo(String id) throws ApiExce String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** @@ -392,7 +392,7 @@ public ApiResponse mediaGet_1WithHttpInfo(String id, Integer } // create path and map variables - String localVarPath = "/v4/media/{id}/items" + String localVarPath = "/v4.2/media/{id}/items" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -449,7 +449,7 @@ public ApiResponse mediaPostWithHttpInfo(CreateMediaFolderRequest c } // create path and map variables - String localVarPath = "/v4/media"; + String localVarPath = "/v4.2/media"; // query params List localVarQueryParams = new ArrayList(); @@ -508,7 +508,7 @@ public ApiResponse> mediaPost_0WithHttpInfo(String id, List mediaPutWithHttpInfo(String id, UpdateMediaFolde } // create path and map variables - String localVarPath = "/v4/media/{id}" + String localVarPath = "/v4.2/media/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -635,7 +635,7 @@ public ApiResponse mediaPut_0WithHttpInfo(String id, String mediaItem } // create path and map variables - String localVarPath = "/v4/media/{id}/items/{mediaItemId}" + String localVarPath = "/v4.2/media/{id}/items/{mediaItemId}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) .replaceAll("\\{" + "mediaItemId" + "\\}", apiClient.escapeString(mediaItemId.toString())); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaSharesApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaSharesApi.java index bcc93f55c50..0f83778fada 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaSharesApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/MediaSharesApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaSharesApi { private ApiClient apiClient; @@ -63,7 +63,7 @@ public ApiResponse mediaSharesDeleteWithHttpInfo(String id) throws ApiExce } // create path and map variables - String localVarPath = "/v4/mediashares/{id}" + String localVarPath = "/v4.2/mediashares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -116,7 +116,7 @@ public ApiResponse mediaSharesGetByIdWithHttpInfo(String id) throws } // create path and map variables - String localVarPath = "/v4/mediashares/{id}" + String localVarPath = "/v4.2/mediashares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -169,7 +169,7 @@ public ApiResponse mediaSharesGetByMediaIdWithHttpInfo(String id) th } // create path and map variables - String localVarPath = "/v4/mediashares/mediaid/{id}" + String localVarPath = "/v4.2/mediashares/mediaid/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -222,7 +222,7 @@ public ApiResponse mediaSharesPostWithHttpInfo(String id) throws Api } // create path and map variables - String localVarPath = "/v4/mediashares/mediaid/{id}" + String localVarPath = "/v4.2/mediashares/mediaid/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -275,7 +275,7 @@ public ApiResponse mediaSharesPost_0WithHttpInfo(CreateMediaShareReq } // create path and map variables - String localVarPath = "/v4/mediashares"; + String localVarPath = "/v4.2/mediashares"; // query params List localVarQueryParams = new ArrayList(); @@ -334,7 +334,7 @@ public ApiResponse mediaSharesPutWithHttpInfo(String id, UpdateShare } // create path and map variables - String localVarPath = "/v4/mediashares/{id}" + String localVarPath = "/v4.2/mediashares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/NotificationsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/NotificationsApi.java index ec481c25f44..52ffd7e3cc6 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/NotificationsApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/NotificationsApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class NotificationsApi { private ApiClient apiClient; @@ -58,7 +58,7 @@ public ApiResponse notificationsGetAlertsWithHttpInfo() throws Ap Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/notifications/alerts"; + String localVarPath = "/v4.2/notifications/alerts"; // query params List localVarQueryParams = new ArrayList(); @@ -103,7 +103,7 @@ public ApiResponse notificationsGetBackupReportsWithHttpIn Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/notifications/backupreports"; + String localVarPath = "/v4.2/notifications/backupreports"; // query params List localVarQueryParams = new ArrayList(); @@ -154,7 +154,7 @@ public ApiResponse notificationsUpdateAlertsWithHttpInfo(AlertSettingsRequ } // create path and map variables - String localVarPath = "/v4/notifications/alerts"; + String localVarPath = "/v4.2/notifications/alerts"; // query params List localVarQueryParams = new ArrayList(); @@ -205,7 +205,7 @@ public ApiResponse notificationsUpdateBackupReportsWithHttpInfo(BackupRepo } // create path and map variables - String localVarPath = "/v4/notifications/backupreports"; + String localVarPath = "/v4.2/notifications/backupreports"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PermissionsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PermissionsApi.java index 47e763e7f0c..5a7c32cf624 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PermissionsApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PermissionsApi.java @@ -16,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PermissionsApi { private ApiClient apiClient; @@ -63,7 +63,7 @@ public ApiResponse permissionsEvaluatePermissionWithHttpInfo(String id) } // create path and map variables - String localVarPath = "/v4/permissions/{id}/evaluate" + String localVarPath = "/v4.2/permissions/{id}/evaluate" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -116,7 +116,7 @@ public ApiResponse> permissionsGetWithHttpInfo(String id) t } // create path and map variables - String localVarPath = "/v4/permissions/{id}" + String localVarPath = "/v4.2/permissions/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -142,58 +142,6 @@ public ApiResponse> permissionsGetWithHttpInfo(String id) t GenericType> localVarReturnType = new GenericType>() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } - /** - * Admin can take ownership of sub folder in the Common folder. - * - * @param id The folder id. This must be a sub folder in the Common folder (required) - * @throws ApiException if fails to make API call - */ - public void permissionsPost(String id) throws ApiException { - - permissionsPostWithHttpInfo(id); - } - - /** - * Admin can take ownership of sub folder in the Common folder. - * - * @param id The folder id. This must be a sub folder in the Common folder (required) - * @throws ApiException if fails to make API call - */ - public ApiResponse permissionsPostWithHttpInfo(String id) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling permissionsPost"); - } - - // create path and map variables - String localVarPath = "/v4/permissions/{id}/takeownership" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "oauth2" }; - - - return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } /** * Sets permission for users and groups on the Common folder or sub folder in the Common folder. * @@ -227,7 +175,7 @@ public ApiResponse permissionsPutWithHttpInfo(String id, UpdatePermissionR } // create path and map variables - String localVarPath = "/v4/permissions/{id}" + String localVarPath = "/v4.2/permissions/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicApi.java index e8470183f60..9f05f111fd0 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicApi.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PublicApi { private ApiClient apiClient; @@ -55,7 +55,7 @@ public ApiResponse publicGetWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/public/version"; + String localVarPath = "/v4.2/public/version"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicSharesApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicSharesApi.java index 36db9f70954..b9fb6c4f577 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicSharesApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/PublicSharesApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PublicSharesApi { private ApiClient apiClient; @@ -107,7 +107,7 @@ public ApiResponse publicSharesGetPublicFileShareContentsWithHttpI } // create path and map variables - String localVarPath = "/v4/publicshares/{id}/files" + String localVarPath = "/v4.2/publicshares/{id}/files" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -166,7 +166,7 @@ public ApiResponse publicSharesGetPublicFileShareFileWithHttpInfo(String i } // create path and map variables - String localVarPath = "/v4/publicshares/{id}/file" + String localVarPath = "/v4.2/publicshares/{id}/file" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -247,7 +247,7 @@ public ApiResponse publicSharesGetPublicMediaShareContentsWit } // create path and map variables - String localVarPath = "/v4/publicshares/{id}/media" + String localVarPath = "/v4.2/publicshares/{id}/media" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -304,7 +304,7 @@ public ApiResponse publicSharesGetPublicShareWithHttpInfo(Strin } // create path and map variables - String localVarPath = "/v4/publicshares/{id}" + String localVarPath = "/v4.2/publicshares/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -356,7 +356,7 @@ public ApiResponse publicSharesSendUploadNotificationWithHttpInfo(String i } // create path and map variables - String localVarPath = "/v4/publicshares/{id}/uploadnotification" + String localVarPath = "/v4.2/publicshares/{id}/uploadnotification" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -382,4 +382,64 @@ public ApiResponse publicSharesSendUploadNotificationWithHttpInfo(String i return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + /** + * Validate password for shared with PasswordIDWithBankID, has brute force protection. + * + * @param id The share id (required) + * @param password The password as a body parameter (required) + * @return Boolean + * @throws ApiException if fails to make API call + */ + public Boolean publicSharesVerifyPassword(String id, String password) throws ApiException { + return publicSharesVerifyPasswordWithHttpInfo(id, password).getData(); + } + + /** + * Validate password for shared with PasswordIDWithBankID, has brute force protection. + * + * @param id The share id (required) + * @param password The password as a body parameter (required) + * @return ApiResponse<Boolean> + * @throws ApiException if fails to make API call + */ + public ApiResponse publicSharesVerifyPasswordWithHttpInfo(String id, String password) throws ApiException { + Object localVarPostBody = password; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling publicSharesVerifyPassword"); + } + + // verify the required parameter 'password' is set + if (password == null) { + throw new ApiException(400, "Missing the required parameter 'password' when calling publicSharesVerifyPassword"); + } + + // create path and map variables + String localVarPath = "/v4.2/publicshares/{id}/password" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecipientsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecipientsApi.java new file mode 100644 index 00000000000..87bfcf85358 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecipientsApi.java @@ -0,0 +1,334 @@ +package ch.cyberduck.core.storegate.io.swagger.client.api; + +import ch.cyberduck.core.storegate.io.swagger.client.ApiException; +import ch.cyberduck.core.storegate.io.swagger.client.ApiClient; +import ch.cyberduck.core.storegate.io.swagger.client.ApiResponse; +import ch.cyberduck.core.storegate.io.swagger.client.Configuration; +import ch.cyberduck.core.storegate.io.swagger.client.Pair; + +import javax.ws.rs.core.GenericType; + +import ch.cyberduck.core.storegate.io.swagger.client.model.Recipient; +import ch.cyberduck.core.storegate.io.swagger.client.model.RecipientContents; +import ch.cyberduck.core.storegate.io.swagger.client.model.RecipientRequest; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class RecipientsApi { + private ApiClient apiClient; + + public RecipientsApi() { + this(Configuration.getDefaultApiClient()); + } + + public RecipientsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Creates a new Recipient. + * + * @param recipiantRequest RecipiantRequest (required) + * @return Recipient + * @throws ApiException if fails to make API call + */ + public Recipient recipientsCreate(RecipientRequest recipiantRequest) throws ApiException { + return recipientsCreateWithHttpInfo(recipiantRequest).getData(); + } + + /** + * Creates a new Recipient. + * + * @param recipiantRequest RecipiantRequest (required) + * @return ApiResponse<Recipient> + * @throws ApiException if fails to make API call + */ + public ApiResponse recipientsCreateWithHttpInfo(RecipientRequest recipiantRequest) throws ApiException { + Object localVarPostBody = recipiantRequest; + + // verify the required parameter 'recipiantRequest' is set + if (recipiantRequest == null) { + throw new ApiException(400, "Missing the required parameter 'recipiantRequest' when calling recipientsCreate"); + } + + // create path and map variables + String localVarPath = "/v4.2/recipients"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Deletes a Recipient + * + * @param id The ID of the recipient to delete (required) + * @throws ApiException if fails to make API call + */ + public void recipientsDelete(String id) throws ApiException { + + recipientsDeleteWithHttpInfo(id); + } + + /** + * Deletes a Recipient + * + * @param id The ID of the recipient to delete (required) + * @throws ApiException if fails to make API call + */ + public ApiResponse recipientsDeleteWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling recipientsDelete"); + } + + // create path and map variables + String localVarPath = "/v4.2/recipients/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } + /** + * Get fileContents. + * + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression \"FirstName desc\" is acceptable FirstName, LastName, Email, PersonalIdentifier, PhoneNumber (required) + * @param searchCriteria Optional search criteria (required) + * @return RecipientContents + * @throws ApiException if fails to make API call + */ + public RecipientContents recipientsGet(Integer pageIndex, Integer pageSize, String sortExpression, String searchCriteria) throws ApiException { + return recipientsGetWithHttpInfo(pageIndex, pageSize, sortExpression, searchCriteria).getData(); + } + + /** + * Get fileContents. + * + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression \"FirstName desc\" is acceptable FirstName, LastName, Email, PersonalIdentifier, PhoneNumber (required) + * @param searchCriteria Optional search criteria (required) + * @return ApiResponse<RecipientContents> + * @throws ApiException if fails to make API call + */ + public ApiResponse recipientsGetWithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression, String searchCriteria) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'pageIndex' is set + if (pageIndex == null) { + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling recipientsGet"); + } + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling recipientsGet"); + } + + // verify the required parameter 'sortExpression' is set + if (sortExpression == null) { + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling recipientsGet"); + } + + // verify the required parameter 'searchCriteria' is set + if (searchCriteria == null) { + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling recipientsGet"); + } + + // create path and map variables + String localVarPath = "/v4.2/recipients/contents"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * + * + * @param id (required) + * @return Recipient + * @throws ApiException if fails to make API call + */ + public Recipient recipientsGetRecipient(String id) throws ApiException { + return recipientsGetRecipientWithHttpInfo(id).getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Recipient> + * @throws ApiException if fails to make API call + */ + public ApiResponse recipientsGetRecipientWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling recipientsGetRecipient"); + } + + // create path and map variables + String localVarPath = "/v4.2/recipients/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Update Recipient + * + * @param id (required) + * @param recipiantRequest (required) + * @return Recipient + * @throws ApiException if fails to make API call + */ + public Recipient recipientsUpdate(String id, RecipientRequest recipiantRequest) throws ApiException { + return recipientsUpdateWithHttpInfo(id, recipiantRequest).getData(); + } + + /** + * Update Recipient + * + * @param id (required) + * @param recipiantRequest (required) + * @return ApiResponse<Recipient> + * @throws ApiException if fails to make API call + */ + public ApiResponse recipientsUpdateWithHttpInfo(String id, RecipientRequest recipiantRequest) throws ApiException { + Object localVarPostBody = recipiantRequest; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling recipientsUpdate"); + } + + // verify the required parameter 'recipiantRequest' is set + if (recipiantRequest == null) { + throw new ApiException(400, "Missing the required parameter 'recipiantRequest' when calling recipientsUpdate"); + } + + // create path and map variables + String localVarPath = "/v4.2/recipients/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } +} diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecycleBinApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecycleBinApi.java index 18f95d2b53f..fd529999c3c 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecycleBinApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RecycleBinApi.java @@ -8,6 +8,7 @@ import javax.ws.rs.core.GenericType; +import org.joda.time.DateTime; import ch.cyberduck.core.storegate.io.swagger.client.model.RecycleBinContents; import java.util.ArrayList; @@ -15,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RecycleBinApi { private ApiClient apiClient; @@ -61,7 +62,7 @@ public ApiResponse recycleBinDeleteRecycleBinItemWithHttpInfo(String id) t } // create path and map variables - String localVarPath = "/v4/recyclebin/{id}" + String localVarPath = "/v4.2/recyclebin/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -106,7 +107,7 @@ public ApiResponse recycleBinEmptyRecycleBinWithHttpInfo() throws ApiExcep Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/recyclebin"; + String localVarPath = "/v4.2/recyclebin"; // query params List localVarQueryParams = new ArrayList(); @@ -136,7 +137,7 @@ public ApiResponse recycleBinEmptyRecycleBinWithHttpInfo() throws ApiExcep * * @param pageIndex Index of page (required) * @param pageSize Max rows per page (required) - * @param sortExpression OriginalName, ModifiedDate, Size, DeletedDate, OriginalLocation (desc/asc) (optional) + * @param sortExpression OriginalName, Modified, Size, Deleted, OriginalLocation (desc/asc) (optional) * @return RecycleBinContents * @throws ApiException if fails to make API call */ @@ -149,7 +150,7 @@ public RecycleBinContents recycleBinGetRecycleBinContents(Integer pageIndex, Int * * @param pageIndex Index of page (required) * @param pageSize Max rows per page (required) - * @param sortExpression OriginalName, ModifiedDate, Size, DeletedDate, OriginalLocation (desc/asc) (optional) + * @param sortExpression OriginalName, Modified, Size, Deleted, OriginalLocation (desc/asc) (optional) * @return ApiResponse<RecycleBinContents> * @throws ApiException if fails to make API call */ @@ -167,7 +168,7 @@ public ApiResponse recycleBinGetRecycleBinContentsWithHttpIn } // create path and map variables - String localVarPath = "/v4/recyclebin"; + String localVarPath = "/v4.2/recyclebin"; // query params List localVarQueryParams = new ArrayList(); @@ -198,7 +199,7 @@ public ApiResponse recycleBinGetRecycleBinContentsWithHttpIn /** * Restores (moves) the recycle bin item back to the original location * - * @param id The recycle bin item to remove (required) + * @param id The recycle bin item to restore (required) * @param mode 0 = None (returns error on conflict), 1 = Overwrite (deletes conflict on target), 2 = KeepBoth (renames the moved resource) (0 = None, 1 = Overwrite, 2 = KeepBoth) (required) * @throws ApiException if fails to make API call */ @@ -210,7 +211,7 @@ public void recycleBinRestoreRecycleBinItem(String id, Integer mode) throws ApiE /** * Restores (moves) the recycle bin item back to the original location * - * @param id The recycle bin item to remove (required) + * @param id The recycle bin item to restore (required) * @param mode 0 = None (returns error on conflict), 1 = Overwrite (deletes conflict on target), 2 = KeepBoth (renames the moved resource) (0 = None, 1 = Overwrite, 2 = KeepBoth) (required) * @throws ApiException if fails to make API call */ @@ -228,7 +229,7 @@ public ApiResponse recycleBinRestoreRecycleBinItemWithHttpInfo(String id, } // create path and map variables - String localVarPath = "/v4/recyclebin/{id}/restore" + String localVarPath = "/v4.2/recyclebin/{id}/restore" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -255,4 +256,153 @@ public ApiResponse recycleBinRestoreRecycleBinItemWithHttpInfo(String id, return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + /** + * Restores (moves) the recycle bin item back to a specific folder + * + * @param id The recycle bin item to restore (required) + * @param folderId The recycle bin item restore folderId (required) + * @param mode 0 = None (returns error on conflict), 1 = Overwrite (deletes conflict on target), 2 = KeepBoth (renames the moved resource) (0 = None, 1 = Overwrite, 2 = KeepBoth) (required) + * @throws ApiException if fails to make API call + */ + public void recycleBinRestoreRecycleBinItemToFolder(String id, String folderId, Integer mode) throws ApiException { + + recycleBinRestoreRecycleBinItemToFolderWithHttpInfo(id, folderId, mode); + } + + /** + * Restores (moves) the recycle bin item back to a specific folder + * + * @param id The recycle bin item to restore (required) + * @param folderId The recycle bin item restore folderId (required) + * @param mode 0 = None (returns error on conflict), 1 = Overwrite (deletes conflict on target), 2 = KeepBoth (renames the moved resource) (0 = None, 1 = Overwrite, 2 = KeepBoth) (required) + * @throws ApiException if fails to make API call + */ + public ApiResponse recycleBinRestoreRecycleBinItemToFolderWithHttpInfo(String id, String folderId, Integer mode) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling recycleBinRestoreRecycleBinItemToFolder"); + } + + // verify the required parameter 'folderId' is set + if (folderId == null) { + throw new ApiException(400, "Missing the required parameter 'folderId' when calling recycleBinRestoreRecycleBinItemToFolder"); + } + + // verify the required parameter 'mode' is set + if (mode == null) { + throw new ApiException(400, "Missing the required parameter 'mode' when calling recycleBinRestoreRecycleBinItemToFolder"); + } + + // create path and map variables + String localVarPath = "/v4.2/recyclebin/{id}/restore/{folderId}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "folderId" + "\\}", apiClient.escapeString(folderId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "mode", mode)); + + + + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } + /** + * Search the recycle bin content + * + * @param searchCriteria Search for (required) + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression OriginalName, Modified, Size, Deleted, OriginalLocation (desc/asc) (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) + * @return RecycleBinContents + * @throws ApiException if fails to make API call + */ + public RecycleBinContents recycleBinSearchRecycleBinContents(String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + return recycleBinSearchRecycleBinContentsWithHttpInfo(searchCriteria, pageIndex, pageSize, sortExpression, fromDate, toDate, userId).getData(); + } + + /** + * Search the recycle bin content + * + * @param searchCriteria Search for (required) + * @param pageIndex Index of page (required) + * @param pageSize Max rows per page (required) + * @param sortExpression OriginalName, Modified, Size, Deleted, OriginalLocation (desc/asc) (optional) + * @param fromDate from Date to search (optional) + * @param toDate to Date to search (optional) + * @param userId userId to search (optional) + * @return ApiResponse<RecycleBinContents> + * @throws ApiException if fails to make API call + */ + public ApiResponse recycleBinSearchRecycleBinContentsWithHttpInfo(String searchCriteria, Integer pageIndex, Integer pageSize, String sortExpression, DateTime fromDate, DateTime toDate, String userId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'searchCriteria' is set + if (searchCriteria == null) { + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling recycleBinSearchRecycleBinContents"); + } + + // verify the required parameter 'pageIndex' is set + if (pageIndex == null) { + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling recycleBinSearchRecycleBinContents"); + } + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling recycleBinSearchRecycleBinContents"); + } + + // create path and map variables + String localVarPath = "/v4.2/recyclebin/search"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromDate", fromDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "toDate", toDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "userId", userId)); + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RegistrationApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RegistrationApi.java index 8ead0451ea4..cdc5cf178be 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RegistrationApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/RegistrationApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RegistrationApi { private ApiClient apiClient; @@ -68,7 +68,7 @@ public ApiResponse registrationIsUserNameAvailableWithHttpInfo(IsUserna } // create path and map variables - String localVarPath = "/v4/registration/isusernameavailable"; + String localVarPath = "/v4.2/registration/isusernameavailable"; // query params List localVarQueryParams = new ArrayList(); @@ -96,73 +96,72 @@ public ApiResponse registrationIsUserNameAvailableWithHttpInfo(IsUserna /** * Get information * - * @param partnerId (required) - * @param salepackageId (required) - * @param retailerId (optional) - * @param trialId (optional) - * @param campaignId (optional) - * @param storageId (optional) - * @param multiId (optional) - * @param backupId (optional) - * @param syncId (optional) - * @param bankIDId (optional) - * @param direct (optional) + * @param direct Optional (optional) + * @param createAccountSalepackagePartnerId PartnerId (optional) + * @param createAccountSalepackageRetailerId Optional RetailerId (optional) + * @param createAccountSalepackageSalepackageId SalepackageId (optional) + * @param createAccountSalepackageTrialId Optional TrialId (optional) + * @param createAccountSalepackageCampaignId Optional CampaignId (optional) + * @param createAccountSalepackageStorageId Optional StorageId (optional) + * @param createAccountSalepackageMultiId Optional MultiId (optional) + * @param createAccountSalepackageBackupId Optional BackupId (optional) + * @param createAccountSalepackageSyncId Optional SyncId (optional) + * @param createAccountSalepackageBankIDId Optional BankIDId (optional) + * @param createAccountSalepackageBrandingId Optional BrandingId (optional) + * @param createAccountSalepackageSigningId Optional SigningId (optional) + * @param createAccountSalepackageAccessId Optional AccessId (optional) * @return RegistrationInformation * @throws ApiException if fails to make API call */ - public RegistrationInformation registrationRegisterAccount(String partnerId, String salepackageId, String retailerId, String trialId, String campaignId, String storageId, String multiId, String backupId, String syncId, String bankIDId, Boolean direct) throws ApiException { - return registrationRegisterAccountWithHttpInfo(partnerId, salepackageId, retailerId, trialId, campaignId, storageId, multiId, backupId, syncId, bankIDId, direct).getData(); + public RegistrationInformation registrationRegisterAccount(Boolean direct, String createAccountSalepackagePartnerId, String createAccountSalepackageRetailerId, String createAccountSalepackageSalepackageId, String createAccountSalepackageTrialId, String createAccountSalepackageCampaignId, String createAccountSalepackageStorageId, String createAccountSalepackageMultiId, String createAccountSalepackageBackupId, String createAccountSalepackageSyncId, String createAccountSalepackageBankIDId, String createAccountSalepackageBrandingId, String createAccountSalepackageSigningId, String createAccountSalepackageAccessId) throws ApiException { + return registrationRegisterAccountWithHttpInfo(direct, createAccountSalepackagePartnerId, createAccountSalepackageRetailerId, createAccountSalepackageSalepackageId, createAccountSalepackageTrialId, createAccountSalepackageCampaignId, createAccountSalepackageStorageId, createAccountSalepackageMultiId, createAccountSalepackageBackupId, createAccountSalepackageSyncId, createAccountSalepackageBankIDId, createAccountSalepackageBrandingId, createAccountSalepackageSigningId, createAccountSalepackageAccessId).getData(); } /** * Get information * - * @param partnerId (required) - * @param salepackageId (required) - * @param retailerId (optional) - * @param trialId (optional) - * @param campaignId (optional) - * @param storageId (optional) - * @param multiId (optional) - * @param backupId (optional) - * @param syncId (optional) - * @param bankIDId (optional) - * @param direct (optional) + * @param direct Optional (optional) + * @param createAccountSalepackagePartnerId PartnerId (optional) + * @param createAccountSalepackageRetailerId Optional RetailerId (optional) + * @param createAccountSalepackageSalepackageId SalepackageId (optional) + * @param createAccountSalepackageTrialId Optional TrialId (optional) + * @param createAccountSalepackageCampaignId Optional CampaignId (optional) + * @param createAccountSalepackageStorageId Optional StorageId (optional) + * @param createAccountSalepackageMultiId Optional MultiId (optional) + * @param createAccountSalepackageBackupId Optional BackupId (optional) + * @param createAccountSalepackageSyncId Optional SyncId (optional) + * @param createAccountSalepackageBankIDId Optional BankIDId (optional) + * @param createAccountSalepackageBrandingId Optional BrandingId (optional) + * @param createAccountSalepackageSigningId Optional SigningId (optional) + * @param createAccountSalepackageAccessId Optional AccessId (optional) * @return ApiResponse<RegistrationInformation> * @throws ApiException if fails to make API call */ - public ApiResponse registrationRegisterAccountWithHttpInfo(String partnerId, String salepackageId, String retailerId, String trialId, String campaignId, String storageId, String multiId, String backupId, String syncId, String bankIDId, Boolean direct) throws ApiException { + public ApiResponse registrationRegisterAccountWithHttpInfo(Boolean direct, String createAccountSalepackagePartnerId, String createAccountSalepackageRetailerId, String createAccountSalepackageSalepackageId, String createAccountSalepackageTrialId, String createAccountSalepackageCampaignId, String createAccountSalepackageStorageId, String createAccountSalepackageMultiId, String createAccountSalepackageBackupId, String createAccountSalepackageSyncId, String createAccountSalepackageBankIDId, String createAccountSalepackageBrandingId, String createAccountSalepackageSigningId, String createAccountSalepackageAccessId) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'partnerId' is set - if (partnerId == null) { - throw new ApiException(400, "Missing the required parameter 'partnerId' when calling registrationRegisterAccount"); - } - - // verify the required parameter 'salepackageId' is set - if (salepackageId == null) { - throw new ApiException(400, "Missing the required parameter 'salepackageId' when calling registrationRegisterAccount"); - } - // create path and map variables - String localVarPath = "/v4/registration"; + String localVarPath = "/v4.2/registration"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "PartnerId", partnerId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "SalepackageId", salepackageId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "RetailerId", retailerId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "TrialId", trialId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "CampaignId", campaignId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "StorageId", storageId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "MultiId", multiId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "BackupId", backupId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "SyncId", syncId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "BankIDId", bankIDId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "Direct", direct)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "direct", direct)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.partnerId", createAccountSalepackagePartnerId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.retailerId", createAccountSalepackageRetailerId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.salepackageId", createAccountSalepackageSalepackageId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.trialId", createAccountSalepackageTrialId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.campaignId", createAccountSalepackageCampaignId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.storageId", createAccountSalepackageStorageId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.multiId", createAccountSalepackageMultiId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.backupId", createAccountSalepackageBackupId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.syncId", createAccountSalepackageSyncId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.bankIDId", createAccountSalepackageBankIDId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.brandingId", createAccountSalepackageBrandingId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.signingId", createAccountSalepackageSigningId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "createAccountSalepackage.accessId", createAccountSalepackageAccessId)); @@ -208,7 +207,7 @@ public ApiResponse registrationRegisterAccountCampaignW } // create path and map variables - String localVarPath = "/v4/registration/campaign/{code}" + String localVarPath = "/v4.2/registration/campaign/{code}" .replaceAll("\\{" + "code" + "\\}", apiClient.escapeString(code.toString())); // query params @@ -268,7 +267,7 @@ public ApiResponse registrationRegisterAccountCampaign_0WithHttpInfo(Cre } // create path and map variables - String localVarPath = "/v4/registration/campaign/{code}" + String localVarPath = "/v4.2/registration/campaign/{code}" .replaceAll("\\{" + "code" + "\\}", apiClient.escapeString(code.toString())); // query params @@ -321,7 +320,7 @@ public ApiResponse registrationRegisterAccountSignupWit } // create path and map variables - String localVarPath = "/v4/registration/signup/{signupId}" + String localVarPath = "/v4.2/registration/signup/{signupId}" .replaceAll("\\{" + "signupId" + "\\}", apiClient.escapeString(signupId.toString())); // query params @@ -381,7 +380,7 @@ public ApiResponse registrationRegisterAccountSignup_0WithHttpInfo(Creat } // create path and map variables - String localVarPath = "/v4/registration/signup/{signupId}" + String localVarPath = "/v4.2/registration/signup/{signupId}" .replaceAll("\\{" + "signupId" + "\\}", apiClient.escapeString(signupId.toString())); // query params @@ -434,7 +433,7 @@ public ApiResponse registrationRegisterAccountSu } // create path and map variables - String localVarPath = "/v4/registration/user/{userid}" + String localVarPath = "/v4.2/registration/user/{userid}" .replaceAll("\\{" + "userid" + "\\}", apiClient.escapeString(userid.toString())); // query params @@ -494,7 +493,7 @@ public ApiResponse registrationRegisterAccountSubuser_0WithHttpInfo(Crea } // create path and map variables - String localVarPath = "/v4/registration/user/{userid}" + String localVarPath = "/v4.2/registration/user/{userid}" .replaceAll("\\{" + "userid" + "\\}", apiClient.escapeString(userid.toString())); // query params @@ -524,21 +523,23 @@ public ApiResponse registrationRegisterAccountSubuser_0WithHttpInfo(Crea * Register a new account. * * @param createAccountRequest RegisterAccountRequest (required) + * @param direct (optional) * @return String * @throws ApiException if fails to make API call */ - public String registrationRegisterAccount_0(CreateAccountRequest createAccountRequest) throws ApiException { - return registrationRegisterAccount_0WithHttpInfo(createAccountRequest).getData(); + public String registrationRegisterAccount_0(CreateAccountRequest createAccountRequest, Boolean direct) throws ApiException { + return registrationRegisterAccount_0WithHttpInfo(createAccountRequest, direct).getData(); } /** * Register a new account. * * @param createAccountRequest RegisterAccountRequest (required) + * @param direct (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse registrationRegisterAccount_0WithHttpInfo(CreateAccountRequest createAccountRequest) throws ApiException { + public ApiResponse registrationRegisterAccount_0WithHttpInfo(CreateAccountRequest createAccountRequest, Boolean direct) throws ApiException { Object localVarPostBody = createAccountRequest; // verify the required parameter 'createAccountRequest' is set @@ -547,13 +548,14 @@ public ApiResponse registrationRegisterAccount_0WithHttpInfo(CreateAccou } // create path and map variables - String localVarPath = "/v4/registration"; + String localVarPath = "/v4.2/registration"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "direct", direct)); @@ -599,7 +601,7 @@ public ApiResponse registrationSetPaymentStatusWithHttpInfo(SetPaymentSt } // create path and map variables - String localVarPath = "/v4/registration/paymentstatus"; + String localVarPath = "/v4.2/registration/paymentstatus"; // query params List localVarQueryParams = new ArrayList(); @@ -650,7 +652,7 @@ public ApiResponse registrationValidateAccountCampaignWithHttpInfo(String } // create path and map variables - String localVarPath = "/v4/registration/campaign/{code}" + String localVarPath = "/v4.2/registration/campaign/{code}" .replaceAll("\\{" + "code" + "\\}", apiClient.escapeString(code.toString())); // query params @@ -676,4 +678,56 @@ public ApiResponse registrationValidateAccountCampaignWithHttpInfo(String return apiClient.invokeAPI(localVarPath, "HEAD", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + /** + * Verify email + * + * @param email The transaction id (required) + * @return Boolean + * @throws ApiException if fails to make API call + */ + public Boolean registrationVerifyEmail(String email) throws ApiException { + return registrationVerifyEmailWithHttpInfo(email).getData(); + } + + /** + * Verify email + * + * @param email The transaction id (required) + * @return ApiResponse<Boolean> + * @throws ApiException if fails to make API call + */ + public ApiResponse registrationVerifyEmailWithHttpInfo(String email) throws ApiException { + Object localVarPostBody = email; + + // verify the required parameter 'email' is set + if (email == null) { + throw new ApiException(400, "Missing the required parameter 'email' when calling registrationVerifyEmail"); + } + + // create path and map variables + String localVarPath = "/v4.2/registration/verify/email"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SettingsApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SettingsApi.java index 23b054dbf8b..ad0d159b83e 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SettingsApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SettingsApi.java @@ -8,6 +8,7 @@ import javax.ws.rs.core.GenericType; +import ch.cyberduck.core.storegate.io.swagger.client.model.Branding; import ch.cyberduck.core.storegate.io.swagger.client.model.ModelConfiguration; import ch.cyberduck.core.storegate.io.swagger.client.model.PublicConfiguration; import ch.cyberduck.core.storegate.io.swagger.client.model.PublicWebUrls; @@ -22,7 +23,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SettingsApi { private ApiClient apiClient; @@ -42,6 +43,51 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Get branding if user has it. + * + * @return Branding + * @throws ApiException if fails to make API call + */ + public Branding settingsGetBranding() throws ApiException { + return settingsGetBrandingWithHttpInfo().getData(); + } + + /** + * Get branding if user has it. + * + * @return ApiResponse<Branding> + * @throws ApiException if fails to make API call + */ + public ApiResponse settingsGetBrandingWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/settings/branding"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Get settings for turning features on or off in the client. * @@ -62,7 +108,7 @@ public ApiResponse settingsGetConfigurationWithHttpInfo() th Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/configuration"; + String localVarPath = "/v4.2/settings/configuration"; // query params List localVarQueryParams = new ArrayList(); @@ -111,7 +157,7 @@ public ApiResponse settingsGetPublicConfigurationWithHttpIn Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/public/configuration"; + String localVarPath = "/v4.2/settings/public/configuration"; // query params List localVarQueryParams = new ArrayList(); @@ -162,7 +208,7 @@ public ApiResponse settingsGetPublicWebUrlsWithHttpInfo(String pa Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/public/weburls"; + String localVarPath = "/v4.2/settings/public/weburls"; // query params List localVarQueryParams = new ArrayList(); @@ -209,7 +255,7 @@ public ApiResponse> settingsGetRootfoldersWithHttpInfo() throws Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/rootfolders"; + String localVarPath = "/v4.2/settings/rootfolders"; // query params List localVarQueryParams = new ArrayList(); @@ -254,7 +300,7 @@ public ApiResponse settingsGetStorageInfoWithHttpInfo() throws ApiE Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/storage"; + String localVarPath = "/v4.2/settings/storage"; // query params List localVarQueryParams = new ArrayList(); @@ -299,7 +345,7 @@ public ApiResponse settingsGetSubscriptionInfoWithHttpInfo() t Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/subscription"; + String localVarPath = "/v4.2/settings/subscription"; // query params List localVarQueryParams = new ArrayList(); @@ -344,7 +390,7 @@ public ApiResponse settingsGetWebUrlsWithHttpInfo() throws ApiException Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/settings/weburls"; + String localVarPath = "/v4.2/settings/weburls"; // query params List localVarQueryParams = new ArrayList(); @@ -395,7 +441,7 @@ public ApiResponse settingsUpdateSettingsWithHttpInfo(UpdateConfiguration } // create path and map variables - String localVarPath = "/v4/settings/configuration"; + String localVarPath = "/v4.2/settings/configuration"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SubscriptionApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SubscriptionApi.java index c55a69e3299..841e5a4f027 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SubscriptionApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SubscriptionApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SubscriptionApi { private ApiClient apiClient; @@ -59,7 +59,7 @@ public ApiResponse subscriptionGetSubscriptionWithHttpInfo() throw Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/subscription"; + String localVarPath = "/v4.2/subscription"; // query params List localVarQueryParams = new ArrayList(); @@ -104,7 +104,7 @@ public ApiResponse subscriptionGetSubscriptionEndDateWithHttpInfo() th Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/subscription/enddate"; + String localVarPath = "/v4.2/subscription/enddate"; // query params List localVarQueryParams = new ArrayList(); @@ -149,7 +149,7 @@ public ApiResponse> subscriptionGetSubscriptionUpgrades Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/subscription/upgrades"; + String localVarPath = "/v4.2/subscription/upgrades"; // query params List localVarQueryParams = new ArrayList(); @@ -201,7 +201,7 @@ public ApiResponse subscriptionTerminateSubscriptionWithHttpInfo(Termin } // create path and map variables - String localVarPath = "/v4/subscription"; + String localVarPath = "/v4.2/subscription"; // query params List localVarQueryParams = new ArrayList(); @@ -253,7 +253,7 @@ public ApiResponse subscriptionUpdateSubscriptionWithHttpInfo(Upda } // create path and map variables - String localVarPath = "/v4/subscription"; + String localVarPath = "/v4.2/subscription"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SyncApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SyncApi.java index d9b367ea8d9..3589262fa9b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SyncApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/SyncApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SyncApi { private ApiClient apiClient; @@ -64,7 +64,7 @@ public ApiResponse syncDeleteSyncClientWithHttpInfo(String id) throws ApiE } // create path and map variables - String localVarPath = "/v4/sync/clients/{id}" + String localVarPath = "/v4.2/sync/clients/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -117,7 +117,7 @@ public ApiResponse syncGetClientWithHttpInfo(String id) throws ApiEx } // create path and map variables - String localVarPath = "/v4/sync/clients/{id}" + String localVarPath = "/v4.2/sync/clients/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -163,7 +163,7 @@ public ApiResponse syncGetInfoWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/sync/info"; + String localVarPath = "/v4.2/sync/info"; // query params List localVarQueryParams = new ArrayList(); @@ -208,7 +208,7 @@ public ApiResponse syncGetPolicyWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/sync/policy"; + String localVarPath = "/v4.2/sync/policy"; // query params List localVarQueryParams = new ArrayList(); @@ -253,7 +253,7 @@ public ApiResponse syncGetSyncClientsWithHttpInfo() throws ApiExcep Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/sync/clients"; + String localVarPath = "/v4.2/sync/clients"; // query params List localVarQueryParams = new ArrayList(); @@ -305,7 +305,7 @@ public ApiResponse syncRegisterClientWithHttpInfo(Client client) thr } // create path and map variables - String localVarPath = "/v4/sync/clients"; + String localVarPath = "/v4.2/sync/clients"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/TwoFactorApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/TwoFactorApi.java index f018c0d8003..059362c6424 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/TwoFactorApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/TwoFactorApi.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class TwoFactorApi { private ApiClient apiClient; @@ -61,7 +61,7 @@ public ApiResponse twoFactorCommitWithHttpInfo(String id) throws ApiExcept } // create path and map variables - String localVarPath = "/v4/twofactor/{id}" + String localVarPath = "/v4.2/twofactor/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -113,7 +113,7 @@ public ApiResponse twoFactorDeleteWithHttpInfo(String id) throws ApiExcept } // create path and map variables - String localVarPath = "/v4/twofactor/{id}" + String localVarPath = "/v4.2/twofactor/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -165,7 +165,7 @@ public ApiResponse twoFactorDisableWithHttpInfo(String password) throws Ap } // create path and map variables - String localVarPath = "/v4/twofactor/disable"; + String localVarPath = "/v4.2/twofactor/disable"; // query params List localVarQueryParams = new ArrayList(); @@ -217,7 +217,7 @@ public ApiResponse twoFactorPostWithHttpInfo(String pas } // create path and map variables - String localVarPath = "/v4/twofactor"; + String localVarPath = "/v4.2/twofactor"; // query params List localVarQueryParams = new ArrayList(); @@ -276,7 +276,7 @@ public ApiResponse twoFactorVerifyWithHttpInfo(String id, String code) } // create path and map variables - String localVarPath = "/v4/twofactor/{id}" + String localVarPath = "/v4.2/twofactor/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UploadApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UploadApi.java index 809930f6d3d..67563a4a2de 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UploadApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UploadApi.java @@ -8,6 +8,7 @@ import javax.ws.rs.core.GenericType; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; import java.util.ArrayList; @@ -15,7 +16,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UploadApi { private ApiClient apiClient; @@ -61,7 +62,7 @@ public ApiResponse uploadDeleteResumableWithHttpInfo(String uploadId) thro } // create path and map variables - String localVarPath = "/v4/upload/resumable"; + String localVarPath = "/v4.2/upload/resumable"; // query params List localVarQueryParams = new ArrayList(); @@ -90,24 +91,24 @@ public ApiResponse uploadDeleteResumableWithHttpInfo(String uploadId) thro /** * Upload a file using a multipart request containing first a metadata (see reponse) part and a then the filedata part. Use header \"X-Lock-Id\" to send lock id if needed * - * @return FileMetadata + * @return File * @throws ApiException if fails to make API call */ - public FileMetadata uploadPostMultipart() throws ApiException { + public File uploadPostMultipart() throws ApiException { return uploadPostMultipartWithHttpInfo().getData(); } /** * Upload a file using a multipart request containing first a metadata (see reponse) part and a then the filedata part. Use header \"X-Lock-Id\" to send lock id if needed * - * @return ApiResponse<FileMetadata> + * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse uploadPostMultipartWithHttpInfo() throws ApiException { + public ApiResponse uploadPostMultipartWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/upload"; + String localVarPath = "/v4.2/upload"; // query params List localVarQueryParams = new ArrayList(); @@ -129,17 +130,17 @@ public ApiResponse uploadPostMultipartWithHttpInfo() throws ApiExc String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Upload a file to a share using a multipart request containing first a metadata (see reponse) part and a then the filedata part. Use header \"X-Lock-Id\" to send lock id if needed * * @param shareid The shareId (required) - * @return FileMetadata + * @return File * @throws ApiException if fails to make API call */ - public FileMetadata uploadPostMultipartShare(String shareid) throws ApiException { + public File uploadPostMultipartShare(String shareid) throws ApiException { return uploadPostMultipartShareWithHttpInfo(shareid).getData(); } @@ -147,10 +148,10 @@ public FileMetadata uploadPostMultipartShare(String shareid) throws ApiException * Upload a file to a share using a multipart request containing first a metadata (see reponse) part and a then the filedata part. Use header \"X-Lock-Id\" to send lock id if needed * * @param shareid The shareId (required) - * @return ApiResponse<FileMetadata> + * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse uploadPostMultipartShareWithHttpInfo(String shareid) throws ApiException { + public ApiResponse uploadPostMultipartShareWithHttpInfo(String shareid) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'shareid' is set @@ -159,7 +160,7 @@ public ApiResponse uploadPostMultipartShareWithHttpInfo(String sha } // create path and map variables - String localVarPath = "/v4/upload/shares/{shareid}" + String localVarPath = "/v4.2/upload/shares/{shareid}" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); // query params @@ -182,7 +183,7 @@ public ApiResponse uploadPostMultipartShareWithHttpInfo(String sha String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** @@ -212,7 +213,7 @@ public ApiResponse uploadPostResumableWithHttpInfo(FileMetadata metadata } // create path and map variables - String localVarPath = "/v4/upload/resumable"; + String localVarPath = "/v4.2/upload/resumable"; // query params List localVarQueryParams = new ArrayList(); @@ -271,7 +272,7 @@ public ApiResponse uploadPostResumableShareWithHttpInfo(String shareid, } // create path and map variables - String localVarPath = "/v4/upload/shares/{shareid}/resumable" + String localVarPath = "/v4.2/upload/shares/{shareid}/resumable" .replaceAll("\\{" + "shareid" + "\\}", apiClient.escapeString(shareid.toString())); // query params @@ -301,10 +302,10 @@ public ApiResponse uploadPostResumableShareWithHttpInfo(String shareid, * Upload a chunk to the resumable upload. Use Content-Length and Content-Range to describe the chunk size and offset. Use Content-Length = 0 and Content-Range = *_/Length to query upload status. * * @param uploadId The uploadId (required) - * @return FileMetadata + * @return File * @throws ApiException if fails to make API call */ - public FileMetadata uploadPutResumable(String uploadId) throws ApiException { + public File uploadPutResumable(String uploadId) throws ApiException { return uploadPutResumableWithHttpInfo(uploadId).getData(); } @@ -312,10 +313,10 @@ public FileMetadata uploadPutResumable(String uploadId) throws ApiException { * Upload a chunk to the resumable upload. Use Content-Length and Content-Range to describe the chunk size and offset. Use Content-Length = 0 and Content-Range = *_/Length to query upload status. * * @param uploadId The uploadId (required) - * @return ApiResponse<FileMetadata> + * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse uploadPutResumableWithHttpInfo(String uploadId) throws ApiException { + public ApiResponse uploadPutResumableWithHttpInfo(String uploadId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'uploadId' is set @@ -324,7 +325,7 @@ public ApiResponse uploadPutResumableWithHttpInfo(String uploadId) } // create path and map variables - String localVarPath = "/v4/upload/resumable"; + String localVarPath = "/v4.2/upload/resumable"; // query params List localVarQueryParams = new ArrayList(); @@ -347,7 +348,7 @@ public ApiResponse uploadPutResumableWithHttpInfo(String uploadId) String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UsersApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UsersApi.java index 1a11188c53d..040a5ae72ab 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UsersApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/UsersApi.java @@ -14,13 +14,14 @@ import ch.cyberduck.core.storegate.io.swagger.client.model.InviteUserRequest; import ch.cyberduck.core.storegate.io.swagger.client.model.UpdateUserRequest; import ch.cyberduck.core.storegate.io.swagger.client.model.User; +import ch.cyberduck.core.storegate.io.swagger.client.model.UserExportRequest; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UsersApi { private ApiClient apiClient; @@ -40,6 +41,104 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Activate inactive users <param name=\"id\">The id of the user to activate</param> + * + * @param id (required) + * @return ExtendedUser + * @throws ApiException if fails to make API call + */ + public ExtendedUser usersActivateDormantUser(String id) throws ApiException { + return usersActivateDormantUserWithHttpInfo(id).getData(); + } + + /** + * Activate inactive users <param name=\"id\">The id of the user to activate</param> + * + * @param id (required) + * @return ApiResponse<ExtendedUser> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersActivateDormantUserWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling usersActivateDormantUser"); + } + + // create path and map variables + String localVarPath = "/v4.2/users/{id}/activateDormantUser" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Activate all inactive users + * + * @return List<ExtendedUser> + * @throws ApiException if fails to make API call + */ + public List usersActivateDormantUsers() throws ApiException { + return usersActivateDormantUsersWithHttpInfo().getData(); + } + + /** + * Activate all inactive users + * + * @return ApiResponse<List<ExtendedUser>> + * @throws ApiException if fails to make API call + */ + public ApiResponse> usersActivateDormantUsersWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/users/activateDormantUsers"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** * Set a new password on sub user. * @@ -73,7 +172,7 @@ public ApiResponse usersChangeSubUserPasswordWithHttpInfo(String id, Strin } // create path and map variables - String localVarPath = "/v4/users/{id}/password" + String localVarPath = "/v4.2/users/{id}/password" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -100,32 +199,91 @@ public ApiResponse usersChangeSubUserPasswordWithHttpInfo(String id, Strin return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** - * Send a password mail to a sub user. + * Enable/disable a user * * @param id The id to the specific user (required) + * @param enabled True or false (required) * @throws ApiException if fails to make API call */ - public void usersChangeSubUserPassword_0(String id) throws ApiException { + public void usersChangeSubUserStatus(String id, Boolean enabled) throws ApiException { - usersChangeSubUserPassword_0WithHttpInfo(id); + usersChangeSubUserStatusWithHttpInfo(id, enabled); } /** - * Send a password mail to a sub user. + * Enable/disable a user * * @param id The id to the specific user (required) + * @param enabled True or false (required) + * @throws ApiException if fails to make API call + */ + public ApiResponse usersChangeSubUserStatusWithHttpInfo(String id, Boolean enabled) throws ApiException { + Object localVarPostBody = enabled; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling usersChangeSubUserStatus"); + } + + // verify the required parameter 'enabled' is set + if (enabled == null) { + throw new ApiException(400, "Missing the required parameter 'enabled' when calling usersChangeSubUserStatus"); + } + + // create path and map variables + String localVarPath = "/v4.2/users/{id}/status" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "text/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } + /** + * Deletes a user, this can't be undone! + * + * @param id The id to the specific user to delete (required) + * @throws ApiException if fails to make API call + */ + public void usersDelete(String id) throws ApiException { + + usersDeleteWithHttpInfo(id); + } + + /** + * Deletes a user, this can't be undone! + * + * @param id The id to the specific user to delete (required) * @throws ApiException if fails to make API call */ - public ApiResponse usersChangeSubUserPassword_0WithHttpInfo(String id) throws ApiException { + public ApiResponse usersDeleteWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling usersChangeSubUserPassword_0"); + throw new ApiException(400, "Missing the required parameter 'id' when calling usersDelete"); } // create path and map variables - String localVarPath = "/v4/users/{id}/passwordrequest" + String localVarPath = "/v4.2/users/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -149,42 +307,87 @@ public ApiResponse usersChangeSubUserPassword_0WithHttpInfo(String id) thr String[] localVarAuthNames = new String[] { "oauth2" }; - return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** - * Enable/disable a user + * Delete all the users tokens * * @param id The id to the specific user (required) - * @param enabled True or false (required) * @throws ApiException if fails to make API call */ - public void usersChangeSubUserStatus(String id, Boolean enabled) throws ApiException { + public void usersDeleteUserAllTokens(String id) throws ApiException { - usersChangeSubUserStatusWithHttpInfo(id, enabled); + usersDeleteUserAllTokensWithHttpInfo(id); } /** - * Enable/disable a user + * Delete all the users tokens * * @param id The id to the specific user (required) - * @param enabled True or false (required) * @throws ApiException if fails to make API call */ - public ApiResponse usersChangeSubUserStatusWithHttpInfo(String id, Boolean enabled) throws ApiException { - Object localVarPostBody = enabled; + public ApiResponse usersDeleteUserAllTokensWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; // verify the required parameter 'id' is set if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling usersChangeSubUserStatus"); + throw new ApiException(400, "Missing the required parameter 'id' when calling usersDeleteUserAllTokens"); } - // verify the required parameter 'enabled' is set - if (enabled == null) { - throw new ApiException(400, "Missing the required parameter 'enabled' when calling usersChangeSubUserStatus"); + // create path and map variables + String localVarPath = "/v4.2/users/{id}/tokens" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + + return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } + /** + * Resets TwoFactor login for specified userId + * + * @param id The id to the specific user (required) + * @throws ApiException if fails to make API call + */ + public void usersDisableTwoFactorAuthentication(String id) throws ApiException { + + usersDisableTwoFactorAuthenticationWithHttpInfo(id); + } + + /** + * Resets TwoFactor login for specified userId + * + * @param id The id to the specific user (required) + * @throws ApiException if fails to make API call + */ + public ApiResponse usersDisableTwoFactorAuthenticationWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling usersDisableTwoFactorAuthentication"); } // create path and map variables - String localVarPath = "/v4/users/{id}/status" + String localVarPath = "/v4.2/users/{id}/disableTwoFactorAuthentication" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -201,42 +404,337 @@ public ApiResponse usersChangeSubUserStatusWithHttpInfo(String id, Boolean final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - "application/json", "text/json" + }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2" }; - return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** - * Deletes a user, this can't be undone! + * Download userlist via token * - * @param id The id to the specific user to delete (required) + * @param downloadid (required) + * @return String + * @throws ApiException if fails to make API call + */ + public String usersGet(String downloadid) throws ApiException { + return usersGetWithHttpInfo(downloadid).getData(); + } + + /** + * Download userlist via token + * + * @param downloadid (required) + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersGetWithHttpInfo(String downloadid) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'downloadid' is set + if (downloadid == null) { + throw new ApiException(400, "Missing the required parameter 'downloadid' when calling usersGet"); + } + + // create path and map variables + String localVarPath = "/v4.2/users/export/{downloadid}" + .replaceAll("\\{" + "downloadid" + "\\}", apiClient.escapeString(downloadid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get all users + * + * @return List<User> + * @throws ApiException if fails to make API call + */ + public List usersGetAll() throws ApiException { + return usersGetAllWithHttpInfo().getData(); + } + + /** + * Get all users + * + * @return ApiResponse<List<User>> + * @throws ApiException if fails to make API call + */ + public ApiResponse> usersGetAllWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/users/all"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Download userlist + * + * @return String + * @throws ApiException if fails to make API call + */ + public String usersGetExportPermissions() throws ApiException { + return usersGetExportPermissionsWithHttpInfo().getData(); + } + + /** + * Download userlist + * + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersGetExportPermissionsWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/users/exportPermissions"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Download userlist via token + * + * @param downloadid (required) + * @return String + * @throws ApiException if fails to make API call + */ + public String usersGetExportPermissions_0(String downloadid) throws ApiException { + return usersGetExportPermissions_0WithHttpInfo(downloadid).getData(); + } + + /** + * Download userlist via token + * + * @param downloadid (required) + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersGetExportPermissions_0WithHttpInfo(String downloadid) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'downloadid' is set + if (downloadid == null) { + throw new ApiException(400, "Missing the required parameter 'downloadid' when calling usersGetExportPermissions_0"); + } + + // create path and map variables + String localVarPath = "/v4.2/users/exportPermissions/{downloadid}" + .replaceAll("\\{" + "downloadid" + "\\}", apiClient.escapeString(downloadid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get the current user + * + * @return ExtendedUser + * @throws ApiException if fails to make API call + */ + public ExtendedUser usersGetMe() throws ApiException { + return usersGetMeWithHttpInfo().getData(); + } + + /** + * Get the current user + * + * @return ApiResponse<ExtendedUser> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersGetMeWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v4.2/users/me"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get a user + * + * @param id The id for the user (required) + * @return ExtendedUser + * @throws ApiException if fails to make API call + */ + public ExtendedUser usersGetUser(String id) throws ApiException { + return usersGetUserWithHttpInfo(id).getData(); + } + + /** + * Get a user + * + * @param id The id for the user (required) + * @return ApiResponse<ExtendedUser> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersGetUserWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling usersGetUser"); + } + + // create path and map variables + String localVarPath = "/v4.2/users/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } + /** + * Get all groups the user is a member in + * + * @param id The id to the user (required) + * @return List<String> * @throws ApiException if fails to make API call */ - public void usersDelete(String id) throws ApiException { - - usersDeleteWithHttpInfo(id); - } + public List usersGetUserGroups(String id) throws ApiException { + return usersGetUserGroupsWithHttpInfo(id).getData(); + } /** - * Deletes a user, this can't be undone! + * Get all groups the user is a member in * - * @param id The id to the specific user to delete (required) + * @param id The id to the user (required) + * @return ApiResponse<List<String>> * @throws ApiException if fails to make API call */ - public ApiResponse usersDeleteWithHttpInfo(String id) throws ApiException { + public ApiResponse> usersGetUserGroupsWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling usersDelete"); + throw new ApiException(400, "Missing the required parameter 'id' when calling usersGetUserGroups"); } // create path and map variables - String localVarPath = "/v4/users/{id}" + String localVarPath = "/v4.2/users/{id}/groups" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -248,7 +746,7 @@ public ApiResponse usersDeleteWithHttpInfo(String id) throws ApiException final String[] localVarAccepts = { - + "application/json", "text/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); @@ -259,68 +757,60 @@ public ApiResponse usersDeleteWithHttpInfo(String id) throws ApiException String[] localVarAuthNames = new String[] { "oauth2" }; - - return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } /** - * Get users + * Download userlist * - * @param pageIndex (required) - * @param pageSize (required) - * @param sortExpression (required) * @param searchCriteria (required) - * @return ExtendedUserContents + * @param sortExpression (required) + * @param timeZone (required) + * @return String * @throws ApiException if fails to make API call */ - public ExtendedUserContents usersGet(Integer pageIndex, Integer pageSize, String sortExpression, String searchCriteria) throws ApiException { - return usersGetWithHttpInfo(pageIndex, pageSize, sortExpression, searchCriteria).getData(); + public String usersGet_0(String searchCriteria, String sortExpression, String timeZone) throws ApiException { + return usersGet_0WithHttpInfo(searchCriteria, sortExpression, timeZone).getData(); } /** - * Get users + * Download userlist * - * @param pageIndex (required) - * @param pageSize (required) - * @param sortExpression (required) * @param searchCriteria (required) - * @return ApiResponse<ExtendedUserContents> + * @param sortExpression (required) + * @param timeZone (required) + * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse usersGetWithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression, String searchCriteria) throws ApiException { + public ApiResponse usersGet_0WithHttpInfo(String searchCriteria, String sortExpression, String timeZone) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'pageIndex' is set - if (pageIndex == null) { - throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling usersGet"); - } - - // verify the required parameter 'pageSize' is set - if (pageSize == null) { - throw new ApiException(400, "Missing the required parameter 'pageSize' when calling usersGet"); + // verify the required parameter 'searchCriteria' is set + if (searchCriteria == null) { + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling usersGet_0"); } // verify the required parameter 'sortExpression' is set if (sortExpression == null) { - throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling usersGet"); + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling usersGet_0"); } - // verify the required parameter 'searchCriteria' is set - if (searchCriteria == null) { - throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling usersGet"); + // verify the required parameter 'timeZone' is set + if (timeZone == null) { + throw new ApiException(400, "Missing the required parameter 'timeZone' when calling usersGet_0"); } // create path and map variables - String localVarPath = "/v4/users"; + String localVarPath = "/v4.2/users/export"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "timeZone", timeZone)); @@ -336,36 +826,68 @@ public ApiResponse usersGetWithHttpInfo(Integer pageIndex, String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Get all users + * Get user list * - * @return List<User> + * @param pageIndex (required) + * @param pageSize (required) + * @param searchCriteria (required) + * @param sortExpression (required) + * @return ExtendedUserContents * @throws ApiException if fails to make API call */ - public List usersGetAll() throws ApiException { - return usersGetAllWithHttpInfo().getData(); + public ExtendedUserContents usersGet_1(Integer pageIndex, Integer pageSize, String searchCriteria, String sortExpression) throws ApiException { + return usersGet_1WithHttpInfo(pageIndex, pageSize, searchCriteria, sortExpression).getData(); } /** - * Get all users + * Get user list * - * @return ApiResponse<List<User>> + * @param pageIndex (required) + * @param pageSize (required) + * @param searchCriteria (required) + * @param sortExpression (required) + * @return ApiResponse<ExtendedUserContents> * @throws ApiException if fails to make API call */ - public ApiResponse> usersGetAllWithHttpInfo() throws ApiException { + public ApiResponse usersGet_1WithHttpInfo(Integer pageIndex, Integer pageSize, String searchCriteria, String sortExpression) throws ApiException { Object localVarPostBody = null; + // verify the required parameter 'pageIndex' is set + if (pageIndex == null) { + throw new ApiException(400, "Missing the required parameter 'pageIndex' when calling usersGet_1"); + } + + // verify the required parameter 'pageSize' is set + if (pageSize == null) { + throw new ApiException(400, "Missing the required parameter 'pageSize' when calling usersGet_1"); + } + + // verify the required parameter 'searchCriteria' is set + if (searchCriteria == null) { + throw new ApiException(400, "Missing the required parameter 'searchCriteria' when calling usersGet_1"); + } + + // verify the required parameter 'sortExpression' is set + if (sortExpression == null) { + throw new ApiException(400, "Missing the required parameter 'sortExpression' when calling usersGet_1"); + } + // create path and map variables - String localVarPath = "/v4/users/all"; + String localVarPath = "/v4.2/users"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageIndex", pageIndex)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "searchCriteria", searchCriteria)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortExpression", sortExpression)); @@ -381,30 +903,37 @@ public ApiResponse> usersGetAllWithHttpInfo() throws ApiException { String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType> localVarReturnType = new GenericType>() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Get the current user + * Get download user list token * - * @return ExtendedUser + * @param request (required) + * @return String * @throws ApiException if fails to make API call */ - public ExtendedUser usersGetMe() throws ApiException { - return usersGetMeWithHttpInfo().getData(); + public String usersPost(UserExportRequest request) throws ApiException { + return usersPostWithHttpInfo(request).getData(); } /** - * Get the current user + * Get download user list token * - * @return ApiResponse<ExtendedUser> + * @param request (required) + * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse usersGetMeWithHttpInfo() throws ApiException { - Object localVarPostBody = null; + public ApiResponse usersPostWithHttpInfo(UserExportRequest request) throws ApiException { + Object localVarPostBody = request; + + // verify the required parameter 'request' is set + if (request == null) { + throw new ApiException(400, "Missing the required parameter 'request' when calling usersPost"); + } // create path and map variables - String localVarPath = "/v4/users/me"; + String localVarPath = "/v4.2/users/export"; // query params List localVarQueryParams = new ArrayList(); @@ -420,44 +949,36 @@ public ApiResponse usersGetMeWithHttpInfo() throws ApiException { final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json", "text/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Get all groups the user is a member in + * Get download user list token * - * @param id The id to the user (required) - * @return List<String> + * @return String * @throws ApiException if fails to make API call */ - public List usersGetUserGroups(String id) throws ApiException { - return usersGetUserGroupsWithHttpInfo(id).getData(); + public String usersPostExportPermissions() throws ApiException { + return usersPostExportPermissionsWithHttpInfo().getData(); } /** - * Get all groups the user is a member in + * Get download user list token * - * @param id The id to the user (required) - * @return ApiResponse<List<String>> + * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse> usersGetUserGroupsWithHttpInfo(String id) throws ApiException { + public ApiResponse usersPostExportPermissionsWithHttpInfo() throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling usersGetUserGroups"); - } - // create path and map variables - String localVarPath = "/v4/users/{id}/groups" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + String localVarPath = "/v4.2/users/exportPermissions"; // query params List localVarQueryParams = new ArrayList(); @@ -479,38 +1000,37 @@ public ApiResponse> usersGetUserGroupsWithHttpInfo(String id) throw String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType> localVarReturnType = new GenericType>() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Get a user + * Create a new user via invite * - * @param id The id for the user (required) + * @param inviteUserRequest The CreateUserRequest (required) * @return ExtendedUser * @throws ApiException if fails to make API call */ - public ExtendedUser usersGet_0(String id) throws ApiException { - return usersGet_0WithHttpInfo(id).getData(); + public ExtendedUser usersPostInvite(InviteUserRequest inviteUserRequest) throws ApiException { + return usersPostInviteWithHttpInfo(inviteUserRequest).getData(); } /** - * Get a user + * Create a new user via invite * - * @param id The id for the user (required) + * @param inviteUserRequest The CreateUserRequest (required) * @return ApiResponse<ExtendedUser> * @throws ApiException if fails to make API call */ - public ApiResponse usersGet_0WithHttpInfo(String id) throws ApiException { - Object localVarPostBody = null; + public ApiResponse usersPostInviteWithHttpInfo(InviteUserRequest inviteUserRequest) throws ApiException { + Object localVarPostBody = inviteUserRequest; - // verify the required parameter 'id' is set - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling usersGet_0"); + // verify the required parameter 'inviteUserRequest' is set + if (inviteUserRequest == null) { + throw new ApiException(400, "Missing the required parameter 'inviteUserRequest' when calling usersPostInvite"); } // create path and map variables - String localVarPath = "/v4/users/{id}" - .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + String localVarPath = "/v4.2/users/invite"; // query params List localVarQueryParams = new ArrayList(); @@ -526,14 +1046,14 @@ public ApiResponse usersGet_0WithHttpInfo(String id) throws ApiExc final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json", "text/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2" }; GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Create a new user with username and password @@ -542,8 +1062,8 @@ public ApiResponse usersGet_0WithHttpInfo(String id) throws ApiExc * @return ExtendedUser * @throws ApiException if fails to make API call */ - public ExtendedUser usersPost(CreateUserRequest createUserRequest) throws ApiException { - return usersPostWithHttpInfo(createUserRequest).getData(); + public ExtendedUser usersPost_0(CreateUserRequest createUserRequest) throws ApiException { + return usersPost_0WithHttpInfo(createUserRequest).getData(); } /** @@ -553,16 +1073,16 @@ public ExtendedUser usersPost(CreateUserRequest createUserRequest) throws ApiExc * @return ApiResponse<ExtendedUser> * @throws ApiException if fails to make API call */ - public ApiResponse usersPostWithHttpInfo(CreateUserRequest createUserRequest) throws ApiException { + public ApiResponse usersPost_0WithHttpInfo(CreateUserRequest createUserRequest) throws ApiException { Object localVarPostBody = createUserRequest; // verify the required parameter 'createUserRequest' is set if (createUserRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createUserRequest' when calling usersPost"); + throw new ApiException(400, "Missing the required parameter 'createUserRequest' when calling usersPost_0"); } // create path and map variables - String localVarPath = "/v4/users"; + String localVarPath = "/v4.2/users"; // query params List localVarQueryParams = new ArrayList(); @@ -588,33 +1108,41 @@ public ApiResponse usersPostWithHttpInfo(CreateUserRequest createU return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Create a new user via invite + * Updates an existing user * - * @param inviteUserRequest The CreateUserRequest (required) + * @param id The id of the user (required) + * @param updateUserRequest The updateUserRequest (required) * @return ExtendedUser * @throws ApiException if fails to make API call */ - public ExtendedUser usersPostInvite(InviteUserRequest inviteUserRequest) throws ApiException { - return usersPostInviteWithHttpInfo(inviteUserRequest).getData(); + public ExtendedUser usersPut(String id, UpdateUserRequest updateUserRequest) throws ApiException { + return usersPutWithHttpInfo(id, updateUserRequest).getData(); } /** - * Create a new user via invite + * Updates an existing user * - * @param inviteUserRequest The CreateUserRequest (required) + * @param id The id of the user (required) + * @param updateUserRequest The updateUserRequest (required) * @return ApiResponse<ExtendedUser> * @throws ApiException if fails to make API call */ - public ApiResponse usersPostInviteWithHttpInfo(InviteUserRequest inviteUserRequest) throws ApiException { - Object localVarPostBody = inviteUserRequest; + public ApiResponse usersPutWithHttpInfo(String id, UpdateUserRequest updateUserRequest) throws ApiException { + Object localVarPostBody = updateUserRequest; - // verify the required parameter 'inviteUserRequest' is set - if (inviteUserRequest == null) { - throw new ApiException(400, "Missing the required parameter 'inviteUserRequest' when calling usersPostInvite"); + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling usersPut"); + } + + // verify the required parameter 'updateUserRequest' is set + if (updateUserRequest == null) { + throw new ApiException(400, "Missing the required parameter 'updateUserRequest' when calling usersPut"); } // create path and map variables - String localVarPath = "/v4/users/invite"; + String localVarPath = "/v4.2/users/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params List localVarQueryParams = new ArrayList(); @@ -637,43 +1165,35 @@ public ApiResponse usersPostInviteWithHttpInfo(InviteUserRequest i String[] localVarAuthNames = new String[] { "oauth2" }; GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Updates an existing user + * Send a password mail to a sub user. * - * @param id The id of the user (required) - * @param updateUserRequest The updateUserRequest (required) - * @return ExtendedUser + * @param id The id to the specific user (required) * @throws ApiException if fails to make API call */ - public ExtendedUser usersPut(String id, UpdateUserRequest updateUserRequest) throws ApiException { - return usersPutWithHttpInfo(id, updateUserRequest).getData(); - } + public void usersSendPasswordRequest(String id) throws ApiException { + + usersSendPasswordRequestWithHttpInfo(id); + } /** - * Updates an existing user + * Send a password mail to a sub user. * - * @param id The id of the user (required) - * @param updateUserRequest The updateUserRequest (required) - * @return ApiResponse<ExtendedUser> + * @param id The id to the specific user (required) * @throws ApiException if fails to make API call */ - public ApiResponse usersPutWithHttpInfo(String id, UpdateUserRequest updateUserRequest) throws ApiException { - Object localVarPostBody = updateUserRequest; + public ApiResponse usersSendPasswordRequestWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; // verify the required parameter 'id' is set if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling usersPut"); - } - - // verify the required parameter 'updateUserRequest' is set - if (updateUserRequest == null) { - throw new ApiException(400, "Missing the required parameter 'updateUserRequest' when calling usersPut"); + throw new ApiException(400, "Missing the required parameter 'id' when calling usersSendPasswordRequest"); } // create path and map variables - String localVarPath = "/v4/users/{id}" + String localVarPath = "/v4.2/users/{id}/passwordrequest" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -685,20 +1205,20 @@ public ApiResponse usersPutWithHttpInfo(String id, UpdateUserReque final String[] localVarAccepts = { - "application/json", "text/json" + }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - "application/json", "text/json" + }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "oauth2" }; - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); + } /** * Sends a copy of the invite mail * @@ -725,7 +1245,7 @@ public ApiResponse usersSendReminderWithHttpInfo(String id) throws ApiExce } // create path and map variables - String localVarPath = "/v4/users/{id}/reminder" + String localVarPath = "/v4.2/users/{id}/reminder" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -784,7 +1304,7 @@ public ApiResponse usersSubUserSubAdminWithHttpInfo(String id, Boolean sub } // create path and map variables - String localVarPath = "/v4/users/{id}/subadmin" + String localVarPath = "/v4.2/users/{id}/subadmin" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -810,4 +1330,57 @@ public ApiResponse usersSubUserSubAdminWithHttpInfo(String id, Boolean sub return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } + /** + * + * + * @param id (required) + * @return Long + * @throws ApiException if fails to make API call + */ + public Long usersTakeOverPublicLinks(String id) throws ApiException { + return usersTakeOverPublicLinksWithHttpInfo(id).getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Long> + * @throws ApiException if fails to make API call + */ + public ApiResponse usersTakeOverPublicLinksWithHttpInfo(String id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling usersTakeOverPublicLinks"); + } + + // create path and map variables + String localVarPath = "/v4.2/users/{id}/takeOverPublicLinks" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + final String[] localVarAccepts = { + "application/json", "text/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "oauth2" }; + + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/WebDavPasswordApi.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/WebDavPasswordApi.java index 7ca130c2575..0d8f5766a71 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/WebDavPasswordApi.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/WebDavPasswordApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class WebDavPasswordApi { private ApiClient apiClient; @@ -64,7 +64,7 @@ public ApiResponse webDavPasswordCreateWithHttpInfo(CreateWebDav } // create path and map variables - String localVarPath = "/v4/webdavpassword"; + String localVarPath = "/v4.2/webdavpassword"; // query params List localVarQueryParams = new ArrayList(); @@ -116,7 +116,7 @@ public ApiResponse webDavPasswordCreateAliasWithHttpInfo(CreateWebD } // create path and map variables - String localVarPath = "/v4/webdavpassword/alias"; + String localVarPath = "/v4.2/webdavpassword/alias"; // query params List localVarQueryParams = new ArrayList(); @@ -167,7 +167,7 @@ public ApiResponse webDavPasswordDeleteWithHttpInfo(String id) throws ApiE } // create path and map variables - String localVarPath = "/v4/webdavpassword/{id}" + String localVarPath = "/v4.2/webdavpassword/{id}" .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); // query params @@ -213,7 +213,7 @@ public ApiResponse> webDavPasswordGetWithHttpInfo() throws Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v4/webdavpassword"; + String localVarPath = "/v4.2/webdavpassword"; // query params List localVarQueryParams = new ArrayList(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/ApiKeyAuth.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/ApiKeyAuth.java index ab235ecf327..64421f3ff16 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/ApiKeyAuth.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/ApiKeyAuth.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/Authentication.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/Authentication.java index 507f36a6637..f2b8c82a5a3 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/Authentication.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/Authentication.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/HttpBasicAuth.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/HttpBasicAuth.java index 38ff8a66fbc..5073a508241 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/HttpBasicAuth.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/HttpBasicAuth.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -22,7 +22,7 @@ import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuth.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuth.java index 4188323b76b..838977c3e30 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuth.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuth.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class OAuth implements Authentication { private String accessToken; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuthFlow.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuthFlow.java index 7e5c6d073c6..a6ea37e2606 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuthFlow.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/auth/OAuthFlow.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountInfo.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountInfo.java index 6e50f99f7f6..282035c4583 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountInfo.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountInfo.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Information about the account. */ @ApiModel(description = "Information about the account.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class AccountInfo { @JsonProperty("username") private String username = null; @@ -48,8 +45,8 @@ public class AccountInfo { @JsonProperty("organizationNumber") private String organizationNumber = null; - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("newsletter") private Boolean newsletter = null; @@ -63,11 +60,14 @@ public class AccountInfo { @JsonProperty("lastName") private String lastName = null; + @JsonProperty("phoneNumber") + private String phoneNumber = null; + @JsonProperty("requireOrganizationNumber") private Boolean requireOrganizationNumber = null; - @JsonProperty("requireSocialSecurityNumber") - private Boolean requireSocialSecurityNumber = null; + @JsonProperty("requirePersonalIdentityNumber") + private Boolean requirePersonalIdentityNumber = null; @JsonProperty("requireVATNumber") private Boolean requireVATNumber = null; @@ -180,22 +180,22 @@ public void setOrganizationNumber(String organizationNumber) { this.organizationNumber = organizationNumber; } - public AccountInfo socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public AccountInfo personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** * - * @return socialSecurityNumber + * @return personalIdentityNumber **/ @ApiModelProperty(value = "") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public AccountInfo newsletter(Boolean newsletter) { @@ -270,6 +270,24 @@ public void setLastName(String lastName) { this.lastName = lastName; } + public AccountInfo phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * + * @return phoneNumber + **/ + @ApiModelProperty(value = "") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + public AccountInfo requireOrganizationNumber(Boolean requireOrganizationNumber) { this.requireOrganizationNumber = requireOrganizationNumber; return this; @@ -288,22 +306,22 @@ public void setRequireOrganizationNumber(Boolean requireOrganizationNumber) { this.requireOrganizationNumber = requireOrganizationNumber; } - public AccountInfo requireSocialSecurityNumber(Boolean requireSocialSecurityNumber) { - this.requireSocialSecurityNumber = requireSocialSecurityNumber; + public AccountInfo requirePersonalIdentityNumber(Boolean requirePersonalIdentityNumber) { + this.requirePersonalIdentityNumber = requirePersonalIdentityNumber; return this; } /** * - * @return requireSocialSecurityNumber + * @return requirePersonalIdentityNumber **/ @ApiModelProperty(value = "") - public Boolean isRequireSocialSecurityNumber() { - return requireSocialSecurityNumber; + public Boolean isRequirePersonalIdentityNumber() { + return requirePersonalIdentityNumber; } - public void setRequireSocialSecurityNumber(Boolean requireSocialSecurityNumber) { - this.requireSocialSecurityNumber = requireSocialSecurityNumber; + public void setRequirePersonalIdentityNumber(Boolean requirePersonalIdentityNumber) { + this.requirePersonalIdentityNumber = requirePersonalIdentityNumber; } public AccountInfo requireVATNumber(Boolean requireVATNumber) { @@ -340,19 +358,20 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.country, accountInfo.country) && Objects.equals(this.countryCode, accountInfo.countryCode) && Objects.equals(this.organizationNumber, accountInfo.organizationNumber) && - Objects.equals(this.socialSecurityNumber, accountInfo.socialSecurityNumber) && + Objects.equals(this.personalIdentityNumber, accountInfo.personalIdentityNumber) && Objects.equals(this.newsletter, accountInfo.newsletter) && Objects.equals(this.email, accountInfo.email) && Objects.equals(this.firstName, accountInfo.firstName) && Objects.equals(this.lastName, accountInfo.lastName) && + Objects.equals(this.phoneNumber, accountInfo.phoneNumber) && Objects.equals(this.requireOrganizationNumber, accountInfo.requireOrganizationNumber) && - Objects.equals(this.requireSocialSecurityNumber, accountInfo.requireSocialSecurityNumber) && + Objects.equals(this.requirePersonalIdentityNumber, accountInfo.requirePersonalIdentityNumber) && Objects.equals(this.requireVATNumber, accountInfo.requireVATNumber); } @Override public int hashCode() { - return Objects.hash(username, company, vatNumber, country, countryCode, organizationNumber, socialSecurityNumber, newsletter, email, firstName, lastName, requireOrganizationNumber, requireSocialSecurityNumber, requireVATNumber); + return Objects.hash(username, company, vatNumber, country, countryCode, organizationNumber, personalIdentityNumber, newsletter, email, firstName, lastName, phoneNumber, requireOrganizationNumber, requirePersonalIdentityNumber, requireVATNumber); } @@ -367,13 +386,14 @@ public String toString() { sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" organizationNumber: ").append(toIndentedString(organizationNumber)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" newsletter: ").append(toIndentedString(newsletter)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" requireOrganizationNumber: ").append(toIndentedString(requireOrganizationNumber)).append("\n"); - sb.append(" requireSocialSecurityNumber: ").append(toIndentedString(requireSocialSecurityNumber)).append("\n"); + sb.append(" requirePersonalIdentityNumber: ").append(toIndentedString(requirePersonalIdentityNumber)).append("\n"); sb.append(" requireVATNumber: ").append(toIndentedString(requireVATNumber)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountSettings.java index f6da3519923..3f3e7193d5d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * A accounts settings. Properties that are null/undefined/missing are not available */ @ApiModel(description = "A accounts settings. Properties that are null/undefined/missing are not available") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class AccountSettings { @JsonProperty("startPagesAvailable") private List startPagesAvailable = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountStorage.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountStorage.java index 393488d542a..e97c5e2d904 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountStorage.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AccountStorage.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class AccountStorage { @JsonProperty("usedMyFiles") private Long usedMyFiles = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettings.java index 12848a6a064..bad43fac3ad 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * Alert */ @ApiModel(description = "Alert") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class AlertSettings { @JsonProperty("clientConnectionAlertDays") private Integer clientConnectionAlertDays = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettingsRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettingsRequest.java index 4d46ecb674c..599c7b05301 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettingsRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AlertSettingsRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class AlertSettingsRequest { @JsonProperty("clientConnectionAlertDays") private Integer clientConnectionAlertDays = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ArchiveResponse.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ArchiveResponse.java new file mode 100644 index 00000000000..73f699634a8 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ArchiveResponse.java @@ -0,0 +1,161 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * Archive + */ +@ApiModel(description = "Archive") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class ArchiveResponse { + @JsonProperty("id") + private String id = null; + + @JsonProperty("filename") + private String filename = null; + + @JsonProperty("size") + private Long size = null; + + @JsonProperty("downloadUrl") + private String downloadUrl = null; + + public ArchiveResponse id(String id) { + this.id = id; + return this; + } + + /** + * Ideentifier + * @return id + **/ + @ApiModelProperty(value = "Ideentifier") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ArchiveResponse filename(String filename) { + this.filename = filename; + return this; + } + + /** + * Archive filename + * @return filename + **/ + @ApiModelProperty(value = "Archive filename") + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public ArchiveResponse size(Long size) { + this.size = size; + return this; + } + + /** + * Archive size + * @return size + **/ + @ApiModelProperty(value = "Archive size") + public Long getSize() { + return size; + } + + public void setSize(Long size) { + this.size = size; + } + + public ArchiveResponse downloadUrl(String downloadUrl) { + this.downloadUrl = downloadUrl; + return this; + } + + /** + * Download uri for this archive. + * @return downloadUrl + **/ + @ApiModelProperty(value = "Download uri for this archive.") + public String getDownloadUrl() { + return downloadUrl; + } + + public void setDownloadUrl(String downloadUrl) { + this.downloadUrl = downloadUrl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ArchiveResponse archiveResponse = (ArchiveResponse) o; + return Objects.equals(this.id, archiveResponse.id) && + Objects.equals(this.filename, archiveResponse.filename) && + Objects.equals(this.size, archiveResponse.size) && + Objects.equals(this.downloadUrl, archiveResponse.downloadUrl); + } + + @Override + public int hashCode() { + return Objects.hash(id, filename, size, downloadUrl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ArchiveResponse {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentContent.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentContent.java new file mode 100644 index 00000000000..a6a032acb41 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentContent.java @@ -0,0 +1,115 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class AttachmentContent { + @JsonProperty("content") + private String content = null; + + @JsonProperty("format") + private String format = null; + + public AttachmentContent content(String content) { + this.content = content; + return this; + } + + /** + * + * @return content + **/ + @ApiModelProperty(value = "") + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public AttachmentContent format(String format) { + this.format = format; + return this; + } + + /** + * + * @return format + **/ + @ApiModelProperty(value = "") + public String getFormat() { + return format; + } + + public void setFormat(String format) { + this.format = format; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttachmentContent attachmentContent = (AttachmentContent) o; + return Objects.equals(this.content, attachmentContent.content) && + Objects.equals(this.format, attachmentContent.format); + } + + @Override + public int hashCode() { + return Objects.hash(content, format); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentContent {\n"); + + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentDetails.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentDetails.java new file mode 100644 index 00000000000..f714a960b01 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentDetails.java @@ -0,0 +1,207 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class AttachmentDetails { + @JsonProperty("attachmentType") + private String attachmentType = null; + + @JsonProperty("contentType") + private String contentType = null; + + @JsonProperty("id") + private String id = null; + + @JsonProperty("isInline") + private Boolean isInline = null; + + @JsonProperty("name") + private String name = null; + + @JsonProperty("size") + private Integer size = null; + + public AttachmentDetails attachmentType(String attachmentType) { + this.attachmentType = attachmentType; + return this; + } + + /** + * + * @return attachmentType + **/ + @ApiModelProperty(value = "") + public String getAttachmentType() { + return attachmentType; + } + + public void setAttachmentType(String attachmentType) { + this.attachmentType = attachmentType; + } + + public AttachmentDetails contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * + * @return contentType + **/ + @ApiModelProperty(value = "") + public String getContentType() { + return contentType; + } + + public void setContentType(String contentType) { + this.contentType = contentType; + } + + public AttachmentDetails id(String id) { + this.id = id; + return this; + } + + /** + * + * @return id + **/ + @ApiModelProperty(value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AttachmentDetails isInline(Boolean isInline) { + this.isInline = isInline; + return this; + } + + /** + * + * @return isInline + **/ + @ApiModelProperty(value = "") + public Boolean isIsInline() { + return isInline; + } + + public void setIsInline(Boolean isInline) { + this.isInline = isInline; + } + + public AttachmentDetails name(String name) { + this.name = name; + return this; + } + + /** + * + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AttachmentDetails size(Integer size) { + this.size = size; + return this; + } + + /** + * + * @return size + **/ + @ApiModelProperty(value = "") + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttachmentDetails attachmentDetails = (AttachmentDetails) o; + return Objects.equals(this.attachmentType, attachmentDetails.attachmentType) && + Objects.equals(this.contentType, attachmentDetails.contentType) && + Objects.equals(this.id, attachmentDetails.id) && + Objects.equals(this.isInline, attachmentDetails.isInline) && + Objects.equals(this.name, attachmentDetails.name) && + Objects.equals(this.size, attachmentDetails.size); + } + + @Override + public int hashCode() { + return Objects.hash(attachmentType, contentType, id, isInline, name, size); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentDetails {\n"); + + sb.append(" attachmentType: ").append(toIndentedString(attachmentType)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" isInline: ").append(toIndentedString(isInline)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentDetailsCompose.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentDetailsCompose.java new file mode 100644 index 00000000000..d372ce6cd73 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/AttachmentDetailsCompose.java @@ -0,0 +1,207 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class AttachmentDetailsCompose { + @JsonProperty("attachmentType") + private String attachmentType = null; + + @JsonProperty("id") + private String id = null; + + @JsonProperty("isInline") + private Boolean isInline = null; + + @JsonProperty("name") + private String name = null; + + @JsonProperty("size") + private Integer size = null; + + @JsonProperty("url") + private String url = null; + + public AttachmentDetailsCompose attachmentType(String attachmentType) { + this.attachmentType = attachmentType; + return this; + } + + /** + * + * @return attachmentType + **/ + @ApiModelProperty(value = "") + public String getAttachmentType() { + return attachmentType; + } + + public void setAttachmentType(String attachmentType) { + this.attachmentType = attachmentType; + } + + public AttachmentDetailsCompose id(String id) { + this.id = id; + return this; + } + + /** + * + * @return id + **/ + @ApiModelProperty(value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AttachmentDetailsCompose isInline(Boolean isInline) { + this.isInline = isInline; + return this; + } + + /** + * + * @return isInline + **/ + @ApiModelProperty(value = "") + public Boolean isIsInline() { + return isInline; + } + + public void setIsInline(Boolean isInline) { + this.isInline = isInline; + } + + public AttachmentDetailsCompose name(String name) { + this.name = name; + return this; + } + + /** + * + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AttachmentDetailsCompose size(Integer size) { + this.size = size; + return this; + } + + /** + * + * @return size + **/ + @ApiModelProperty(value = "") + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public AttachmentDetailsCompose url(String url) { + this.url = url; + return this; + } + + /** + * + * @return url + **/ + @ApiModelProperty(value = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttachmentDetailsCompose attachmentDetailsCompose = (AttachmentDetailsCompose) o; + return Objects.equals(this.attachmentType, attachmentDetailsCompose.attachmentType) && + Objects.equals(this.id, attachmentDetailsCompose.id) && + Objects.equals(this.isInline, attachmentDetailsCompose.isInline) && + Objects.equals(this.name, attachmentDetailsCompose.name) && + Objects.equals(this.size, attachmentDetailsCompose.size) && + Objects.equals(this.url, attachmentDetailsCompose.url); + } + + @Override + public int hashCode() { + return Objects.hash(attachmentType, id, isInline, name, size, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentDetailsCompose {\n"); + + sb.append(" attachmentType: ").append(toIndentedString(attachmentType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" isInline: ").append(toIndentedString(isInline)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClient.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClient.java index 8a353f1c112..97dd2645751 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClient.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClient.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * Contains information about a backup client */ @ApiModel(description = "Contains information about a backup client") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BackupClient { @JsonProperty("removed") private DateTime removed = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClientSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClientSettings.java index b45ce746ff4..b3db9c70b58 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClientSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClientSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Contains setttings for a backup client. */ @ApiModel(description = "Contains setttings for a backup client.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BackupClientSettings { @JsonProperty("alertsEnabled") private Boolean alertsEnabled = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClients.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClients.java index 6d321649967..41b4673d078 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClients.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupClients.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BackupClients { @JsonProperty("clients") private List clients = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettings.java index a16ed8da03e..bcf35dd2ea8 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BackupReportSettings { @JsonProperty("interval") private String interval = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettingsRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettingsRequest.java index ac057a92495..5bcfe241f08 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettingsRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BackupReportSettingsRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BackupReportSettingsRequest { @JsonProperty("interval") private String interval = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BankIDContact.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BankIDContact.java index 910deceed55..8e72f43c047 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BankIDContact.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/BankIDContact.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class BankIDContact { @JsonProperty("name") private String name = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Branding.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Branding.java new file mode 100644 index 00000000000..13da87f574f --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Branding.java @@ -0,0 +1,138 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class Branding { + @JsonProperty("logo") + private String logo = null; + + @JsonProperty("image") + private String image = null; + + @JsonProperty("url") + private String url = null; + + public Branding logo(String logo) { + this.logo = logo; + return this; + } + + /** + * + * @return logo + **/ + @ApiModelProperty(value = "") + public String getLogo() { + return logo; + } + + public void setLogo(String logo) { + this.logo = logo; + } + + public Branding image(String image) { + this.image = image; + return this; + } + + /** + * + * @return image + **/ + @ApiModelProperty(value = "") + public String getImage() { + return image; + } + + public void setImage(String image) { + this.image = image; + } + + public Branding url(String url) { + this.url = url; + return this; + } + + /** + * + * @return url + **/ + @ApiModelProperty(value = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Branding branding = (Branding) o; + return Objects.equals(this.logo, branding.logo) && + Objects.equals(this.image, branding.image) && + Objects.equals(this.url, branding.url); + } + + @Override + public int hashCode() { + return Objects.hash(logo, image, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Branding {\n"); + + sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CampaignPrice.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CampaignPrice.java index 04810ea3c84..91636d1e640 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CampaignPrice.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CampaignPrice.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CampaignPrice { @JsonProperty("startFee") private Double startFee = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ChangePasswordRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ChangePasswordRequest.java index 200592f2a35..f83b480eeca 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ChangePasswordRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ChangePasswordRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A ChangePasswordRequest object */ @ApiModel(description = "A ChangePasswordRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ChangePasswordRequest { @JsonProperty("oldPassword") private String oldPassword = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Client.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Client.java index cbdd47208e7..ff9176dcb8d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Client.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Client.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Contains information about a client */ @ApiModel(description = "Contains information about a client") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Client { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ContentList.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ContentList.java index b6b6317a96c..c72d7a45b5b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ContentList.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ContentList.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ContentList { @JsonProperty("locale") private String locale = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CopyFileRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CopyFileRequest.java index 0b1a394aa4e..e4adb4a4fd4 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CopyFileRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CopyFileRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CopyRequest object */ @ApiModel(description = "A CopyRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CopyFileRequest { @JsonProperty("parentID") private String parentID = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Country.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Country.java index 84e9706f688..713d8c54cea 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Country.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Country.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Country { @JsonProperty("countryCode") private String countryCode = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountRequest.java index 4dd31bf7002..c85bbae300d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * A CreateAccountRequest object */ @ApiModel(description = "A CreateAccountRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateAccountRequest { @JsonProperty("salepackage") private CreateAccountSalepackage salepackage = null; @@ -51,8 +48,8 @@ public class CreateAccountRequest { @JsonProperty("password") private String password = null; - @JsonProperty("signinId") - private String signinId = null; + @JsonProperty("eIdSessionId") + private String eIdSessionId = null; @JsonProperty("email") private String email = null; @@ -171,22 +168,22 @@ public void setPassword(String password) { this.password = password; } - public CreateAccountRequest signinId(String signinId) { - this.signinId = signinId; + public CreateAccountRequest eIdSessionId(String eIdSessionId) { + this.eIdSessionId = eIdSessionId; return this; } /** - * Used with BankID - * @return signinId + * Used with eID + * @return eIdSessionId **/ - @ApiModelProperty(value = "Used with BankID") - public String getSigninId() { - return signinId; + @ApiModelProperty(value = "Used with eID") + public String getEIdSessionId() { + return eIdSessionId; } - public void setSigninId(String signinId) { - this.signinId = signinId; + public void setEIdSessionId(String eIdSessionId) { + this.eIdSessionId = eIdSessionId; } public CreateAccountRequest email(String email) { @@ -259,7 +256,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.saleReference, createAccountRequest.saleReference) && Objects.equals(this.username, createAccountRequest.username) && Objects.equals(this.password, createAccountRequest.password) && - Objects.equals(this.signinId, createAccountRequest.signinId) && + Objects.equals(this.eIdSessionId, createAccountRequest.eIdSessionId) && Objects.equals(this.email, createAccountRequest.email) && Objects.equals(this.firstName, createAccountRequest.firstName) && Objects.equals(this.lastName, createAccountRequest.lastName); @@ -267,7 +264,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(salepackage, userData, paymentData, saleReference, username, password, signinId, email, firstName, lastName); + return Objects.hash(salepackage, userData, paymentData, saleReference, username, password, eIdSessionId, email, firstName, lastName); } @@ -282,7 +279,7 @@ public String toString() { sb.append(" saleReference: ").append(toIndentedString(saleReference)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" signinId: ").append(toIndentedString(signinId)).append("\n"); + sb.append(" eIdSessionId: ").append(toIndentedString(eIdSessionId)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackage.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackage.java index 54a71da469b..590aa2e2799 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackage.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackage.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateAccountSalepackageRequest object */ @ApiModel(description = "A CreateAccountSalepackageRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateAccountSalepackage { @JsonProperty("partnerId") private String partnerId = null; @@ -60,6 +57,15 @@ public class CreateAccountSalepackage { @JsonProperty("bankIDId") private String bankIDId = null; + @JsonProperty("brandingId") + private String brandingId = null; + + @JsonProperty("signingId") + private String signingId = null; + + @JsonProperty("accessId") + private String accessId = null; + public CreateAccountSalepackage partnerId(String partnerId) { this.partnerId = partnerId; return this; @@ -240,6 +246,60 @@ public void setBankIDId(String bankIDId) { this.bankIDId = bankIDId; } + public CreateAccountSalepackage brandingId(String brandingId) { + this.brandingId = brandingId; + return this; + } + + /** + * Optional BrandingId + * @return brandingId + **/ + @ApiModelProperty(value = "Optional BrandingId") + public String getBrandingId() { + return brandingId; + } + + public void setBrandingId(String brandingId) { + this.brandingId = brandingId; + } + + public CreateAccountSalepackage signingId(String signingId) { + this.signingId = signingId; + return this; + } + + /** + * Optional SigningId + * @return signingId + **/ + @ApiModelProperty(value = "Optional SigningId") + public String getSigningId() { + return signingId; + } + + public void setSigningId(String signingId) { + this.signingId = signingId; + } + + public CreateAccountSalepackage accessId(String accessId) { + this.accessId = accessId; + return this; + } + + /** + * Optional AccessId + * @return accessId + **/ + @ApiModelProperty(value = "Optional AccessId") + public String getAccessId() { + return accessId; + } + + public void setAccessId(String accessId) { + this.accessId = accessId; + } + @Override public boolean equals(java.lang.Object o) { @@ -259,12 +319,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.multiId, createAccountSalepackage.multiId) && Objects.equals(this.backupId, createAccountSalepackage.backupId) && Objects.equals(this.syncId, createAccountSalepackage.syncId) && - Objects.equals(this.bankIDId, createAccountSalepackage.bankIDId); + Objects.equals(this.bankIDId, createAccountSalepackage.bankIDId) && + Objects.equals(this.brandingId, createAccountSalepackage.brandingId) && + Objects.equals(this.signingId, createAccountSalepackage.signingId) && + Objects.equals(this.accessId, createAccountSalepackage.accessId); } @Override public int hashCode() { - return Objects.hash(partnerId, retailerId, salepackageId, trialId, campaignId, storageId, multiId, backupId, syncId, bankIDId); + return Objects.hash(partnerId, retailerId, salepackageId, trialId, campaignId, storageId, multiId, backupId, syncId, bankIDId, brandingId, signingId, accessId); } @@ -283,6 +346,9 @@ public String toString() { sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); sb.append(" syncId: ").append(toIndentedString(syncId)).append("\n"); sb.append(" bankIDId: ").append(toIndentedString(bankIDId)).append("\n"); + sb.append(" brandingId: ").append(toIndentedString(brandingId)).append("\n"); + sb.append(" signingId: ").append(toIndentedString(signingId)).append("\n"); + sb.append(" accessId: ").append(toIndentedString(accessId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackageProducts.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackageProducts.java index 2e2d21d47db..d009ef34b30 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackageProducts.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountSalepackageProducts.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateAccountSalepackageProducts { @JsonProperty("storageId") private String storageId = null; @@ -45,6 +42,15 @@ public class CreateAccountSalepackageProducts { @JsonProperty("bankIDId") private String bankIDId = null; + @JsonProperty("brandingId") + private String brandingId = null; + + @JsonProperty("signingId") + private String signingId = null; + + @JsonProperty("accessId") + private String accessId = null; + public CreateAccountSalepackageProducts storageId(String storageId) { this.storageId = storageId; return this; @@ -135,6 +141,60 @@ public void setBankIDId(String bankIDId) { this.bankIDId = bankIDId; } + public CreateAccountSalepackageProducts brandingId(String brandingId) { + this.brandingId = brandingId; + return this; + } + + /** + * Optional BrandingId + * @return brandingId + **/ + @ApiModelProperty(value = "Optional BrandingId") + public String getBrandingId() { + return brandingId; + } + + public void setBrandingId(String brandingId) { + this.brandingId = brandingId; + } + + public CreateAccountSalepackageProducts signingId(String signingId) { + this.signingId = signingId; + return this; + } + + /** + * Optional SigningId + * @return signingId + **/ + @ApiModelProperty(value = "Optional SigningId") + public String getSigningId() { + return signingId; + } + + public void setSigningId(String signingId) { + this.signingId = signingId; + } + + public CreateAccountSalepackageProducts accessId(String accessId) { + this.accessId = accessId; + return this; + } + + /** + * Optional AccessId + * @return accessId + **/ + @ApiModelProperty(value = "Optional AccessId") + public String getAccessId() { + return accessId; + } + + public void setAccessId(String accessId) { + this.accessId = accessId; + } + @Override public boolean equals(java.lang.Object o) { @@ -149,12 +209,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.multiId, createAccountSalepackageProducts.multiId) && Objects.equals(this.backupId, createAccountSalepackageProducts.backupId) && Objects.equals(this.syncId, createAccountSalepackageProducts.syncId) && - Objects.equals(this.bankIDId, createAccountSalepackageProducts.bankIDId); + Objects.equals(this.bankIDId, createAccountSalepackageProducts.bankIDId) && + Objects.equals(this.brandingId, createAccountSalepackageProducts.brandingId) && + Objects.equals(this.signingId, createAccountSalepackageProducts.signingId) && + Objects.equals(this.accessId, createAccountSalepackageProducts.accessId); } @Override public int hashCode() { - return Objects.hash(storageId, multiId, backupId, syncId, bankIDId); + return Objects.hash(storageId, multiId, backupId, syncId, bankIDId, brandingId, signingId, accessId); } @@ -168,6 +231,9 @@ public String toString() { sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); sb.append(" syncId: ").append(toIndentedString(syncId)).append("\n"); sb.append(" bankIDId: ").append(toIndentedString(bankIDId)).append("\n"); + sb.append(" brandingId: ").append(toIndentedString(brandingId)).append("\n"); + sb.append(" signingId: ").append(toIndentedString(signingId)).append("\n"); + sb.append(" accessId: ").append(toIndentedString(accessId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountwithProductsRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountwithProductsRequest.java index d711ab43143..74896aaddee 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountwithProductsRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateAccountwithProductsRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * A CreateAccountRequest object */ @ApiModel(description = "A CreateAccountRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateAccountwithProductsRequest { @JsonProperty("salepackage") private CreateAccountSalepackageProducts salepackage = null; @@ -51,8 +48,8 @@ public class CreateAccountwithProductsRequest { @JsonProperty("password") private String password = null; - @JsonProperty("signinId") - private String signinId = null; + @JsonProperty("eIdSessionId") + private String eIdSessionId = null; @JsonProperty("email") private String email = null; @@ -171,22 +168,22 @@ public void setPassword(String password) { this.password = password; } - public CreateAccountwithProductsRequest signinId(String signinId) { - this.signinId = signinId; + public CreateAccountwithProductsRequest eIdSessionId(String eIdSessionId) { + this.eIdSessionId = eIdSessionId; return this; } /** - * Used with BankID - * @return signinId + * Used with eID + * @return eIdSessionId **/ - @ApiModelProperty(value = "Used with BankID") - public String getSigninId() { - return signinId; + @ApiModelProperty(value = "Used with eID") + public String getEIdSessionId() { + return eIdSessionId; } - public void setSigninId(String signinId) { - this.signinId = signinId; + public void setEIdSessionId(String eIdSessionId) { + this.eIdSessionId = eIdSessionId; } public CreateAccountwithProductsRequest email(String email) { @@ -259,7 +256,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.saleReference, createAccountwithProductsRequest.saleReference) && Objects.equals(this.username, createAccountwithProductsRequest.username) && Objects.equals(this.password, createAccountwithProductsRequest.password) && - Objects.equals(this.signinId, createAccountwithProductsRequest.signinId) && + Objects.equals(this.eIdSessionId, createAccountwithProductsRequest.eIdSessionId) && Objects.equals(this.email, createAccountwithProductsRequest.email) && Objects.equals(this.firstName, createAccountwithProductsRequest.firstName) && Objects.equals(this.lastName, createAccountwithProductsRequest.lastName); @@ -267,7 +264,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(salepackage, userData, paymentData, saleReference, username, password, signinId, email, firstName, lastName); + return Objects.hash(salepackage, userData, paymentData, saleReference, username, password, eIdSessionId, email, firstName, lastName); } @@ -282,7 +279,7 @@ public String toString() { sb.append(" saleReference: ").append(toIndentedString(saleReference)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" signinId: ").append(toIndentedString(signinId)).append("\n"); + sb.append(" eIdSessionId: ").append(toIndentedString(eIdSessionId)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateDirectoryNotificationRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateDirectoryNotificationRequest.java new file mode 100644 index 00000000000..e49ae0bce03 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateDirectoryNotificationRequest.java @@ -0,0 +1,92 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * CreateDirectoryNotificationRequest + */ +@ApiModel(description = "CreateDirectoryNotificationRequest") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class CreateDirectoryNotificationRequest { + @JsonProperty("directoryId") + private String directoryId = null; + + public CreateDirectoryNotificationRequest directoryId(String directoryId) { + this.directoryId = directoryId; + return this; + } + + /** + * Directory id to subscribe for notifications + * @return directoryId + **/ + @ApiModelProperty(value = "Directory id to subscribe for notifications") + public String getDirectoryId() { + return directoryId; + } + + public void setDirectoryId(String directoryId) { + this.directoryId = directoryId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDirectoryNotificationRequest createDirectoryNotificationRequest = (CreateDirectoryNotificationRequest) o; + return Objects.equals(this.directoryId, createDirectoryNotificationRequest.directoryId); + } + + @Override + public int hashCode() { + return Objects.hash(directoryId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDirectoryNotificationRequest {\n"); + + sb.append(" directoryId: ").append(toIndentedString(directoryId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFavoriteRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFavoriteRequest.java index 583465af132..c96e5e8d175 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFavoriteRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFavoriteRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateMediaItemRequest request object */ @ApiModel(description = "A CreateMediaItemRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateFavoriteRequest { @JsonProperty("fileId") private String fileId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFileShareRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFileShareRequest.java index 928f34c210b..7523670e3a0 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFileShareRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFileShareRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * A share parameters request object */ @ApiModel(description = "A share parameters request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateFileShareRequest { @JsonProperty("fileId") private String fileId = null; @@ -304,10 +301,10 @@ public CreateFileShareRequest authMethod(Integer authMethod) { } /** - * Share AuthMethod (0 = None, 1 = Password, 2 = BankID) + * Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFolderRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFolderRequest.java index 6a2832133c7..e16deba6957 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFolderRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateFolderRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A CreateFolderRequest object */ @ApiModel(description = "A CreateFolderRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateFolderRequest { @JsonProperty("parentID") private String parentID = null; @@ -49,6 +46,9 @@ public class CreateFolderRequest { @JsonProperty("attributes") private Integer attributes = null; + @JsonProperty("conflictHandling") + private Integer conflictHandling = null; + public CreateFolderRequest parentID(String parentID) { this.parentID = parentID; return this; @@ -157,6 +157,24 @@ public void setAttributes(Integer attributes) { this.attributes = attributes; } + public CreateFolderRequest conflictHandling(Integer conflictHandling) { + this.conflictHandling = conflictHandling; + return this; + } + + /** + * ConflictHandling (0 = None, 1 = Overwrite, 2 = KeepBoth) + * @return conflictHandling + **/ + @ApiModelProperty(value = "ConflictHandling (0 = None, 1 = Overwrite, 2 = KeepBoth)") + public Integer getConflictHandling() { + return conflictHandling; + } + + public void setConflictHandling(Integer conflictHandling) { + this.conflictHandling = conflictHandling; + } + @Override public boolean equals(java.lang.Object o) { @@ -172,12 +190,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.modified, createFolderRequest.modified) && Objects.equals(this.created, createFolderRequest.created) && Objects.equals(this.accessed, createFolderRequest.accessed) && - Objects.equals(this.attributes, createFolderRequest.attributes); + Objects.equals(this.attributes, createFolderRequest.attributes) && + Objects.equals(this.conflictHandling, createFolderRequest.conflictHandling); } @Override public int hashCode() { - return Objects.hash(parentID, name, modified, created, accessed, attributes); + return Objects.hash(parentID, name, modified, created, accessed, attributes, conflictHandling); } @@ -192,6 +211,7 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" conflictHandling: ").append(toIndentedString(conflictHandling)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaFolderRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaFolderRequest.java index 1030665974b..83d44764207 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaFolderRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaFolderRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateMediaFolderRequest request object */ @ApiModel(description = "A CreateMediaFolderRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateMediaFolderRequest { @JsonProperty("name") private String name = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaItemRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaItemRequest.java index b57f6466314..b2574d3554f 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaItemRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaItemRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateMediaItemRequest request object */ @ApiModel(description = "A CreateMediaItemRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateMediaItemRequest { @JsonProperty("fileId") private String fileId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaShareRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaShareRequest.java index 981a96cb9e1..298c8a60693 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaShareRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateMediaShareRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * A CreateMediaShareRequest object */ @ApiModel(description = "A CreateMediaShareRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateMediaShareRequest { @JsonProperty("mediaFolderId") private String mediaFolderId = null; @@ -304,10 +301,10 @@ public CreateMediaShareRequest authMethod(Integer authMethod) { } /** - * Share AuthMethod (0 = None, 1 = Password, 2 = BankID) + * Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateOfficeRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateOfficeRequest.java new file mode 100644 index 00000000000..46ca18664eb --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateOfficeRequest.java @@ -0,0 +1,161 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * A CreateFolderRequest object + */ +@ApiModel(description = "A CreateFolderRequest object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class CreateOfficeRequest { + @JsonProperty("parentID") + private String parentID = null; + + @JsonProperty("name") + private String name = null; + + @JsonProperty("officeType") + private Integer officeType = null; + + @JsonProperty("isLocal") + private Boolean isLocal = null; + + public CreateOfficeRequest parentID(String parentID) { + this.parentID = parentID; + return this; + } + + /** + * The id of the folder to create the folder in + * @return parentID + **/ + @ApiModelProperty(value = "The id of the folder to create the folder in") + public String getParentID() { + return parentID; + } + + public void setParentID(String parentID) { + this.parentID = parentID; + } + + public CreateOfficeRequest name(String name) { + this.name = name; + return this; + } + + /** + * The new office file name + * @return name + **/ + @ApiModelProperty(value = "The new office file name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateOfficeRequest officeType(Integer officeType) { + this.officeType = officeType; + return this; + } + + /** + * Type of file (0 = Word, 1 = Powerpoint, 2 = Excel) + * @return officeType + **/ + @ApiModelProperty(value = "Type of file (0 = Word, 1 = Powerpoint, 2 = Excel)") + public Integer getOfficeType() { + return officeType; + } + + public void setOfficeType(Integer officeType) { + this.officeType = officeType; + } + + public CreateOfficeRequest isLocal(Boolean isLocal) { + this.isLocal = isLocal; + return this; + } + + /** + * Webdav (true) or Wopi (false) + * @return isLocal + **/ + @ApiModelProperty(value = "Webdav (true) or Wopi (false)") + public Boolean isIsLocal() { + return isLocal; + } + + public void setIsLocal(Boolean isLocal) { + this.isLocal = isLocal; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOfficeRequest createOfficeRequest = (CreateOfficeRequest) o; + return Objects.equals(this.parentID, createOfficeRequest.parentID) && + Objects.equals(this.name, createOfficeRequest.name) && + Objects.equals(this.officeType, createOfficeRequest.officeType) && + Objects.equals(this.isLocal, createOfficeRequest.isLocal); + } + + @Override + public int hashCode() { + return Objects.hash(parentID, name, officeType, isLocal); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateOfficeRequest {\n"); + + sb.append(" parentID: ").append(toIndentedString(parentID)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" officeType: ").append(toIndentedString(officeType)).append("\n"); + sb.append(" isLocal: ").append(toIndentedString(isLocal)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateSubAccountRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateSubAccountRequest.java index 5cfe8fcd09e..4cfb0342eb2 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateSubAccountRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateSubAccountRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * CreateSubAccountRequest object */ @ApiModel(description = "CreateSubAccountRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateSubAccountRequest { @JsonProperty("username") private String username = null; @@ -36,8 +33,8 @@ public class CreateSubAccountRequest { @JsonProperty("password") private String password = null; - @JsonProperty("signinId") - private String signinId = null; + @JsonProperty("eIdSessionId") + private String eIdSessionId = null; @JsonProperty("email") private String email = null; @@ -84,22 +81,22 @@ public void setPassword(String password) { this.password = password; } - public CreateSubAccountRequest signinId(String signinId) { - this.signinId = signinId; + public CreateSubAccountRequest eIdSessionId(String eIdSessionId) { + this.eIdSessionId = eIdSessionId; return this; } /** - * Used with BankID - * @return signinId + * Used with eID + * @return eIdSessionId **/ - @ApiModelProperty(value = "Used with BankID") - public String getSigninId() { - return signinId; + @ApiModelProperty(value = "Used with eID") + public String getEIdSessionId() { + return eIdSessionId; } - public void setSigninId(String signinId) { - this.signinId = signinId; + public void setEIdSessionId(String eIdSessionId) { + this.eIdSessionId = eIdSessionId; } public CreateSubAccountRequest email(String email) { @@ -168,7 +165,7 @@ public boolean equals(java.lang.Object o) { CreateSubAccountRequest createSubAccountRequest = (CreateSubAccountRequest) o; return Objects.equals(this.username, createSubAccountRequest.username) && Objects.equals(this.password, createSubAccountRequest.password) && - Objects.equals(this.signinId, createSubAccountRequest.signinId) && + Objects.equals(this.eIdSessionId, createSubAccountRequest.eIdSessionId) && Objects.equals(this.email, createSubAccountRequest.email) && Objects.equals(this.firstName, createSubAccountRequest.firstName) && Objects.equals(this.lastName, createSubAccountRequest.lastName); @@ -176,7 +173,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(username, password, signinId, email, firstName, lastName); + return Objects.hash(username, password, eIdSessionId, email, firstName, lastName); } @@ -187,7 +184,7 @@ public String toString() { sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" signinId: ").append(toIndentedString(signinId)).append("\n"); + sb.append(" eIdSessionId: ").append(toIndentedString(eIdSessionId)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateUserRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateUserRequest.java index 101301d4aad..d4c45af4967 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateUserRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateUserRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateUser request object */ @ApiModel(description = "A CreateUser request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateUserRequest { @JsonProperty("username") private String username = null; @@ -36,12 +33,21 @@ public class CreateUserRequest { @JsonProperty("password") private String password = null; - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("requireNewPassword") + private Boolean requireNewPassword = null; + + @JsonProperty("sendWelcomeEmail") + private Boolean sendWelcomeEmail = null; + + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("nonEId") private Boolean nonEId = null; + @JsonProperty("dormant") + private Boolean dormant = null; + @JsonProperty("firstName") private String firstName = null; @@ -60,6 +66,18 @@ public class CreateUserRequest { @JsonProperty("commonRootPermission") private Integer commonRootPermission = null; + @JsonProperty("allowSigning") + private Boolean allowSigning = null; + + @JsonProperty("locale") + private String locale = null; + + @JsonProperty("company") + private String company = null; + + @JsonProperty("mobileNumber") + private String mobileNumber = null; + public CreateUserRequest username(String username) { this.username = username; return this; @@ -96,22 +114,58 @@ public void setPassword(String password) { this.password = password; } - public CreateUserRequest socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public CreateUserRequest requireNewPassword(Boolean requireNewPassword) { + this.requireNewPassword = requireNewPassword; + return this; + } + + /** + * User must change password + * @return requireNewPassword + **/ + @ApiModelProperty(value = "User must change password") + public Boolean isRequireNewPassword() { + return requireNewPassword; + } + + public void setRequireNewPassword(Boolean requireNewPassword) { + this.requireNewPassword = requireNewPassword; + } + + public CreateUserRequest sendWelcomeEmail(Boolean sendWelcomeEmail) { + this.sendWelcomeEmail = sendWelcomeEmail; return this; } /** - * The SocialSecurityNumber used for eID registration - * @return socialSecurityNumber + * Send a welcome mail + * @return sendWelcomeEmail **/ - @ApiModelProperty(value = "The SocialSecurityNumber used for eID registration") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + @ApiModelProperty(value = "Send a welcome mail") + public Boolean isSendWelcomeEmail() { + return sendWelcomeEmail; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setSendWelcomeEmail(Boolean sendWelcomeEmail) { + this.sendWelcomeEmail = sendWelcomeEmail; + } + + public CreateUserRequest personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; + return this; + } + + /** + * The PersonalIdentityNumber used for eID registration + * @return personalIdentityNumber + **/ + @ApiModelProperty(value = "The PersonalIdentityNumber used for eID registration") + public String getPersonalIdentityNumber() { + return personalIdentityNumber; + } + + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public CreateUserRequest nonEId(Boolean nonEId) { @@ -132,6 +186,24 @@ public void setNonEId(Boolean nonEId) { this.nonEId = nonEId; } + public CreateUserRequest dormant(Boolean dormant) { + this.dormant = dormant; + return this; + } + + /** + * Create user as inactive + * @return dormant + **/ + @ApiModelProperty(value = "Create user as inactive") + public Boolean isDormant() { + return dormant; + } + + public void setDormant(Boolean dormant) { + this.dormant = dormant; + } + public CreateUserRequest firstName(String firstName) { this.firstName = firstName; return this; @@ -241,6 +313,78 @@ public void setCommonRootPermission(Integer commonRootPermission) { this.commonRootPermission = commonRootPermission; } + public CreateUserRequest allowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + return this; + } + + /** + * The AllowProductRegistration + * @return allowSigning + **/ + @ApiModelProperty(value = "The AllowProductRegistration") + public Boolean isAllowSigning() { + return allowSigning; + } + + public void setAllowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + } + + public CreateUserRequest locale(String locale) { + this.locale = locale; + return this; + } + + /** + * locale to determine what language the users emails will get + * @return locale + **/ + @ApiModelProperty(value = "locale to determine what language the users emails will get") + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public CreateUserRequest company(String company) { + this.company = company; + return this; + } + + /** + * optional company + * @return company + **/ + @ApiModelProperty(value = "optional company") + public String getCompany() { + return company; + } + + public void setCompany(String company) { + this.company = company; + } + + public CreateUserRequest mobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + return this; + } + + /** + * The users mobileNumber. + * @return mobileNumber + **/ + @ApiModelProperty(value = "The users mobileNumber.") + public String getMobileNumber() { + return mobileNumber; + } + + public void setMobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + } + @Override public boolean equals(java.lang.Object o) { @@ -253,19 +397,26 @@ public boolean equals(java.lang.Object o) { CreateUserRequest createUserRequest = (CreateUserRequest) o; return Objects.equals(this.username, createUserRequest.username) && Objects.equals(this.password, createUserRequest.password) && - Objects.equals(this.socialSecurityNumber, createUserRequest.socialSecurityNumber) && + Objects.equals(this.requireNewPassword, createUserRequest.requireNewPassword) && + Objects.equals(this.sendWelcomeEmail, createUserRequest.sendWelcomeEmail) && + Objects.equals(this.personalIdentityNumber, createUserRequest.personalIdentityNumber) && Objects.equals(this.nonEId, createUserRequest.nonEId) && + Objects.equals(this.dormant, createUserRequest.dormant) && Objects.equals(this.firstName, createUserRequest.firstName) && Objects.equals(this.lastName, createUserRequest.lastName) && Objects.equals(this.email, createUserRequest.email) && Objects.equals(this.reservedSpaceSize, createUserRequest.reservedSpaceSize) && Objects.equals(this.allowProductRegistration, createUserRequest.allowProductRegistration) && - Objects.equals(this.commonRootPermission, createUserRequest.commonRootPermission); + Objects.equals(this.commonRootPermission, createUserRequest.commonRootPermission) && + Objects.equals(this.allowSigning, createUserRequest.allowSigning) && + Objects.equals(this.locale, createUserRequest.locale) && + Objects.equals(this.company, createUserRequest.company) && + Objects.equals(this.mobileNumber, createUserRequest.mobileNumber); } @Override public int hashCode() { - return Objects.hash(username, password, socialSecurityNumber, nonEId, firstName, lastName, email, reservedSpaceSize, allowProductRegistration, commonRootPermission); + return Objects.hash(username, password, requireNewPassword, sendWelcomeEmail, personalIdentityNumber, nonEId, dormant, firstName, lastName, email, reservedSpaceSize, allowProductRegistration, commonRootPermission, allowSigning, locale, company, mobileNumber); } @@ -276,14 +427,21 @@ public String toString() { sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" requireNewPassword: ").append(toIndentedString(requireNewPassword)).append("\n"); + sb.append(" sendWelcomeEmail: ").append(toIndentedString(sendWelcomeEmail)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" nonEId: ").append(toIndentedString(nonEId)).append("\n"); + sb.append(" dormant: ").append(toIndentedString(dormant)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" reservedSpaceSize: ").append(toIndentedString(reservedSpaceSize)).append("\n"); sb.append(" allowProductRegistration: ").append(toIndentedString(allowProductRegistration)).append("\n"); sb.append(" commonRootPermission: ").append(toIndentedString(commonRootPermission)).append("\n"); + sb.append(" allowSigning: ").append(toIndentedString(allowSigning)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" company: ").append(toIndentedString(company)).append("\n"); + sb.append(" mobileNumber: ").append(toIndentedString(mobileNumber)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateWebDavPasswordRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateWebDavPasswordRequest.java index 541fcd3e813..fd37ecf4e35 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateWebDavPasswordRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/CreateWebDavPasswordRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class CreateWebDavPasswordRequest { @JsonProperty("name") private String name = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/DownloadRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/DownloadRequest.java index cd89264a08c..e7fec6d7eb2 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/DownloadRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/DownloadRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class DownloadRequest { @JsonProperty("ids") private List ids = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptions.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptions.java index 0b5dd986ac3..8c8865372c1 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptions.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptions.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,14 +25,8 @@ * Email Subscriptions */ @ApiModel(description = "Email Subscriptions") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class EmailSubscriptions { - @JsonProperty("newsletter") - private Boolean newsletter = null; - @JsonProperty("loginNotification") private Boolean loginNotification = null; @@ -42,24 +36,6 @@ public class EmailSubscriptions { @JsonProperty("backupAlerts") private Boolean backupAlerts = null; - public EmailSubscriptions newsletter(Boolean newsletter) { - this.newsletter = newsletter; - return this; - } - - /** - * Newsletter subscription - * @return newsletter - **/ - @ApiModelProperty(value = "Newsletter subscription") - public Boolean isNewsletter() { - return newsletter; - } - - public void setNewsletter(Boolean newsletter) { - this.newsletter = newsletter; - } - public EmailSubscriptions loginNotification(Boolean loginNotification) { this.loginNotification = loginNotification; return this; @@ -124,15 +100,14 @@ public boolean equals(java.lang.Object o) { return false; } EmailSubscriptions emailSubscriptions = (EmailSubscriptions) o; - return Objects.equals(this.newsletter, emailSubscriptions.newsletter) && - Objects.equals(this.loginNotification, emailSubscriptions.loginNotification) && + return Objects.equals(this.loginNotification, emailSubscriptions.loginNotification) && Objects.equals(this.backupReports, emailSubscriptions.backupReports) && Objects.equals(this.backupAlerts, emailSubscriptions.backupAlerts); } @Override public int hashCode() { - return Objects.hash(newsletter, loginNotification, backupReports, backupAlerts); + return Objects.hash(loginNotification, backupReports, backupAlerts); } @@ -141,7 +116,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EmailSubscriptions {\n"); - sb.append(" newsletter: ").append(toIndentedString(newsletter)).append("\n"); sb.append(" loginNotification: ").append(toIndentedString(loginNotification)).append("\n"); sb.append(" backupReports: ").append(toIndentedString(backupReports)).append("\n"); sb.append(" backupAlerts: ").append(toIndentedString(backupAlerts)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptionsRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptionsRequest.java index 9abe65745d3..0cae772bf31 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptionsRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EmailSubscriptionsRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,14 +25,8 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class EmailSubscriptionsRequest { - @JsonProperty("newsletter") - private Boolean newsletter = null; - @JsonProperty("loginNotification") private Boolean loginNotification = null; @@ -42,24 +36,6 @@ public class EmailSubscriptionsRequest { @JsonProperty("backupAlerts") private Boolean backupAlerts = null; - public EmailSubscriptionsRequest newsletter(Boolean newsletter) { - this.newsletter = newsletter; - return this; - } - - /** - * Newsletter subscription - * @return newsletter - **/ - @ApiModelProperty(value = "Newsletter subscription") - public Boolean isNewsletter() { - return newsletter; - } - - public void setNewsletter(Boolean newsletter) { - this.newsletter = newsletter; - } - public EmailSubscriptionsRequest loginNotification(Boolean loginNotification) { this.loginNotification = loginNotification; return this; @@ -124,15 +100,14 @@ public boolean equals(java.lang.Object o) { return false; } EmailSubscriptionsRequest emailSubscriptionsRequest = (EmailSubscriptionsRequest) o; - return Objects.equals(this.newsletter, emailSubscriptionsRequest.newsletter) && - Objects.equals(this.loginNotification, emailSubscriptionsRequest.loginNotification) && + return Objects.equals(this.loginNotification, emailSubscriptionsRequest.loginNotification) && Objects.equals(this.backupReports, emailSubscriptionsRequest.backupReports) && Objects.equals(this.backupAlerts, emailSubscriptionsRequest.backupAlerts); } @Override public int hashCode() { - return Objects.hash(newsletter, loginNotification, backupReports, backupAlerts); + return Objects.hash(loginNotification, backupReports, backupAlerts); } @@ -141,7 +116,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EmailSubscriptionsRequest {\n"); - sb.append(" newsletter: ").append(toIndentedString(newsletter)).append("\n"); sb.append(" loginNotification: ").append(toIndentedString(loginNotification)).append("\n"); sb.append(" backupReports: ").append(toIndentedString(backupReports)).append("\n"); sb.append(" backupAlerts: ").append(toIndentedString(backupAlerts)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventContents.java index 8e57066dfb4..44cdc458cdf 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * A eventContent object */ @ApiModel(description = "A eventContent object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class EventContents { @JsonProperty("totalRowCount") private Integer totalRowCount = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventExportRequest.java new file mode 100644 index 00000000000..28290fc73f3 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventExportRequest.java @@ -0,0 +1,208 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.joda.time.DateTime; + +/** + * Export Events + */ +@ApiModel(description = "Export Events") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class EventExportRequest { + @JsonProperty("fromDate") + private DateTime fromDate = null; + + @JsonProperty("toDate") + private DateTime toDate = null; + + @JsonProperty("user") + private String user = null; + + @JsonProperty("fileId") + private String fileId = null; + + @JsonProperty("filename") + private String filename = null; + + @JsonProperty("timeZone") + private String timeZone = null; + + public EventExportRequest fromDate(DateTime fromDate) { + this.fromDate = fromDate; + return this; + } + + /** + * The start date + * @return fromDate + **/ + @ApiModelProperty(value = "The start date") + public DateTime getFromDate() { + return fromDate; + } + + public void setFromDate(DateTime fromDate) { + this.fromDate = fromDate; + } + + public EventExportRequest toDate(DateTime toDate) { + this.toDate = toDate; + return this; + } + + /** + * The end date + * @return toDate + **/ + @ApiModelProperty(value = "The end date") + public DateTime getToDate() { + return toDate; + } + + public void setToDate(DateTime toDate) { + this.toDate = toDate; + } + + public EventExportRequest user(String user) { + this.user = user; + return this; + } + + /** + * User + * @return user + **/ + @ApiModelProperty(value = "User") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public EventExportRequest fileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * FileId + * @return fileId + **/ + @ApiModelProperty(value = "FileId") + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + public EventExportRequest filename(String filename) { + this.filename = filename; + return this; + } + + /** + * File name + * @return filename + **/ + @ApiModelProperty(value = "File name") + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public EventExportRequest timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Timezone for localization of datetimes + * @return timeZone + **/ + @ApiModelProperty(value = "Timezone for localization of datetimes") + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventExportRequest eventExportRequest = (EventExportRequest) o; + return Objects.equals(this.fromDate, eventExportRequest.fromDate) && + Objects.equals(this.toDate, eventExportRequest.toDate) && + Objects.equals(this.user, eventExportRequest.user) && + Objects.equals(this.fileId, eventExportRequest.fileId) && + Objects.equals(this.filename, eventExportRequest.filename) && + Objects.equals(this.timeZone, eventExportRequest.timeZone); + } + + @Override + public int hashCode() { + return Objects.hash(fromDate, toDate, user, fileId, filename, timeZone); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventExportRequest {\n"); + + sb.append(" fromDate: ").append(toIndentedString(fromDate)).append("\n"); + sb.append(" toDate: ").append(toIndentedString(toDate)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventItem.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventItem.java index 5836bea30b5..56b47bc6fe5 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventItem.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/EventItem.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * Eventitem */ @ApiModel(description = "Eventitem") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class EventItem { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExportJobResponse.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExportJobResponse.java new file mode 100644 index 00000000000..28ccad8ba6d --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExportJobResponse.java @@ -0,0 +1,226 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.ArchiveResponse; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +/** + * Export job + */ +@ApiModel(description = "Export job") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class ExportJobResponse { + @JsonProperty("id") + private String id = null; + + @JsonProperty("archives") + private List archives = null; + + @JsonProperty("ids") + private List ids = null; + + @JsonProperty("percentDone") + private Integer percentDone = null; + + @JsonProperty("status") + private String status = null; + + @JsonProperty("failureInfo") + private String failureInfo = null; + + public ExportJobResponse id(String id) { + this.id = id; + return this; + } + + /** + * Job id + * @return id + **/ + @ApiModelProperty(value = "Job id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ExportJobResponse archives(List archives) { + this.archives = archives; + return this; + } + + public ExportJobResponse addArchivesItem(ArchiveResponse archivesItem) { + if (this.archives == null) { + this.archives = new ArrayList<>(); + } + this.archives.add(archivesItem); + return this; + } + + /** + * Archives produces by the job + * @return archives + **/ + @ApiModelProperty(value = "Archives produces by the job") + public List getArchives() { + return archives; + } + + public void setArchives(List archives) { + this.archives = archives; + } + + public ExportJobResponse ids(List ids) { + this.ids = ids; + return this; + } + + public ExportJobResponse addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * List of resource id:s requested to export + * @return ids + **/ + @ApiModelProperty(value = "List of resource id:s requested to export") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public ExportJobResponse percentDone(Integer percentDone) { + this.percentDone = percentDone; + return this; + } + + /** + * Persent done of the total workload + * @return percentDone + **/ + @ApiModelProperty(value = "Persent done of the total workload") + public Integer getPercentDone() { + return percentDone; + } + + public void setPercentDone(Integer percentDone) { + this.percentDone = percentDone; + } + + public ExportJobResponse status(String status) { + this.status = status; + return this; + } + + /** + * Job status (QUEUED, COUNTING, BUILDING, SUCCEEDED, FAILED) + * @return status + **/ + @ApiModelProperty(value = "Job status (QUEUED, COUNTING, BUILDING, SUCCEEDED, FAILED)") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ExportJobResponse failureInfo(String failureInfo) { + this.failureInfo = failureInfo; + return this; + } + + /** + * Info if job status == FAILURE + * @return failureInfo + **/ + @ApiModelProperty(value = "Info if job status == FAILURE") + public String getFailureInfo() { + return failureInfo; + } + + public void setFailureInfo(String failureInfo) { + this.failureInfo = failureInfo; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportJobResponse exportJobResponse = (ExportJobResponse) o; + return Objects.equals(this.id, exportJobResponse.id) && + Objects.equals(this.archives, exportJobResponse.archives) && + Objects.equals(this.ids, exportJobResponse.ids) && + Objects.equals(this.percentDone, exportJobResponse.percentDone) && + Objects.equals(this.status, exportJobResponse.status) && + Objects.equals(this.failureInfo, exportJobResponse.failureInfo); + } + + @Override + public int hashCode() { + return Objects.hash(id, archives, ids, percentDone, status, failureInfo); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportJobResponse {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" archives: ").append(toIndentedString(archives)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" percentDone: ").append(toIndentedString(percentDone)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" failureInfo: ").append(toIndentedString(failureInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUser.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUser.java index 342096dc4e4..ebe846936af 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUser.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUser.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ExtendedUser { @JsonProperty("commonRootPermission") private Integer commonRootPermission = null; @@ -40,6 +37,9 @@ public class ExtendedUser { @JsonProperty("friendlyUsername") private String friendlyUsername = null; + @JsonProperty("allowSigning") + private Boolean allowSigning = null; + @JsonProperty("id") private String id = null; @@ -61,12 +61,18 @@ public class ExtendedUser { @JsonProperty("ssn") private String ssn = null; - @JsonProperty("email") - private String email = null; + @JsonProperty("locale") + private String locale = null; + + @JsonProperty("mobileNumber") + private String mobileNumber = null; @JsonProperty("username") private String username = null; + @JsonProperty("email") + private String email = null; + @JsonProperty("firstName") private String firstName = null; @@ -130,6 +136,24 @@ public void setFriendlyUsername(String friendlyUsername) { this.friendlyUsername = friendlyUsername; } + public ExtendedUser allowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + return this; + } + + /** + * Allow user to use signing product if awailable + * @return allowSigning + **/ + @ApiModelProperty(value = "Allow user to use signing product if awailable") + public Boolean isAllowSigning() { + return allowSigning; + } + + public void setAllowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + } + public ExtendedUser id(String id) { this.id = id; return this; @@ -190,10 +214,10 @@ public ExtendedUser flags(Integer flags) { } /** - * Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = ForceTwoFactor) + * Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = Dormant) * @return flags **/ - @ApiModelProperty(value = "Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = ForceTwoFactor)") + @ApiModelProperty(value = "Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = Dormant)") public Integer getFlags() { return flags; } @@ -256,22 +280,40 @@ public void setSsn(String ssn) { this.ssn = ssn; } - public ExtendedUser email(String email) { - this.email = email; + public ExtendedUser locale(String locale) { + this.locale = locale; return this; } /** - * The accounts e-mail address. - * @return email + * locale to determine what language the users emails will get + * @return locale **/ - @ApiModelProperty(value = "The accounts e-mail address.") - public String getEmail() { - return email; + @ApiModelProperty(value = "locale to determine what language the users emails will get") + public String getLocale() { + return locale; } - public void setEmail(String email) { - this.email = email; + public void setLocale(String locale) { + this.locale = locale; + } + + public ExtendedUser mobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + return this; + } + + /** + * The users mobileNumber. + * @return mobileNumber + **/ + @ApiModelProperty(value = "The users mobileNumber.") + public String getMobileNumber() { + return mobileNumber; + } + + public void setMobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; } public ExtendedUser username(String username) { @@ -292,6 +334,24 @@ public void setUsername(String username) { this.username = username; } + public ExtendedUser email(String email) { + this.email = email; + return this; + } + + /** + * The accounts e-mail address. + * @return email + **/ + @ApiModelProperty(value = "The accounts e-mail address.") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + public ExtendedUser firstName(String firstName) { this.firstName = firstName; return this; @@ -359,6 +419,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.commonRootPermission, extendedUser.commonRootPermission) && Objects.equals(this.reservedSpaceSize, extendedUser.reservedSpaceSize) && Objects.equals(this.friendlyUsername, extendedUser.friendlyUsername) && + Objects.equals(this.allowSigning, extendedUser.allowSigning) && Objects.equals(this.id, extendedUser.id) && Objects.equals(this.isAdmin, extendedUser.isAdmin) && Objects.equals(this.isSubAdmin, extendedUser.isSubAdmin) && @@ -366,8 +427,10 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.created, extendedUser.created) && Objects.equals(this.lastLogin, extendedUser.lastLogin) && Objects.equals(this.ssn, extendedUser.ssn) && - Objects.equals(this.email, extendedUser.email) && + Objects.equals(this.locale, extendedUser.locale) && + Objects.equals(this.mobileNumber, extendedUser.mobileNumber) && Objects.equals(this.username, extendedUser.username) && + Objects.equals(this.email, extendedUser.email) && Objects.equals(this.firstName, extendedUser.firstName) && Objects.equals(this.lastName, extendedUser.lastName) && Objects.equals(this.company, extendedUser.company); @@ -375,7 +438,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(commonRootPermission, reservedSpaceSize, friendlyUsername, id, isAdmin, isSubAdmin, flags, created, lastLogin, ssn, email, username, firstName, lastName, company); + return Objects.hash(commonRootPermission, reservedSpaceSize, friendlyUsername, allowSigning, id, isAdmin, isSubAdmin, flags, created, lastLogin, ssn, locale, mobileNumber, username, email, firstName, lastName, company); } @@ -387,6 +450,7 @@ public String toString() { sb.append(" commonRootPermission: ").append(toIndentedString(commonRootPermission)).append("\n"); sb.append(" reservedSpaceSize: ").append(toIndentedString(reservedSpaceSize)).append("\n"); sb.append(" friendlyUsername: ").append(toIndentedString(friendlyUsername)).append("\n"); + sb.append(" allowSigning: ").append(toIndentedString(allowSigning)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n"); sb.append(" isSubAdmin: ").append(toIndentedString(isSubAdmin)).append("\n"); @@ -394,8 +458,10 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" lastLogin: ").append(toIndentedString(lastLogin)).append("\n"); sb.append(" ssn: ").append(toIndentedString(ssn)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" mobileNumber: ").append(toIndentedString(mobileNumber)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUserContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUserContents.java index 2f7bd60d95f..478b55e71dd 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUserContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ExtendedUserContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * A ExtendedUserContents object */ @ApiModel(description = "A ExtendedUserContents object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ExtendedUserContents { @JsonProperty("users") private List users = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/File.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/File.java index 3d5bf1641cf..a2b378d855c 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/File.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/File.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,23 +26,20 @@ * A resource item. */ @ApiModel(description = "A resource item.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class File { @JsonProperty("versions") private Integer versions = null; - @JsonProperty("permission") - private Integer permission = null; - @JsonProperty("md5") private String md5 = null; @JsonProperty("path") private String path = null; + @JsonProperty("parentId") + private String parentId = null; + @JsonProperty("createdById") private String createdById = null; @@ -73,6 +70,9 @@ public class File { @JsonProperty("ownerId") private String ownerId = null; + @JsonProperty("permission") + private Integer permission = null; + public File versions(Integer versions) { this.versions = versions; return this; @@ -91,24 +91,6 @@ public void setVersions(Integer versions) { this.versions = versions; } - public File permission(Integer permission) { - this.permission = permission; - return this; - } - - /** - * Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None) - * @return permission - **/ - @ApiModelProperty(value = "Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None)") - public Integer getPermission() { - return permission; - } - - public void setPermission(Integer permission) { - this.permission = permission; - } - public File md5(String md5) { this.md5 = md5; return this; @@ -145,6 +127,24 @@ public void setPath(String path) { this.path = path; } + public File parentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * The items parents id + * @return parentId + **/ + @ApiModelProperty(value = "The items parents id") + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + public File createdById(String createdById) { this.createdById = createdById; return this; @@ -295,10 +295,10 @@ public File flags(Integer flags) { } /** - * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite) + * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification) * @return flags **/ - @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite)") + @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification)") public Integer getFlags() { return flags; } @@ -325,6 +325,24 @@ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } + public File permission(Integer permission) { + this.permission = permission; + return this; + } + + /** + * Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None) + * @return permission + **/ + @ApiModelProperty(value = "Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None)") + public Integer getPermission() { + return permission; + } + + public void setPermission(Integer permission) { + this.permission = permission; + } + @Override public boolean equals(java.lang.Object o) { @@ -336,9 +354,9 @@ public boolean equals(java.lang.Object o) { } File file = (File) o; return Objects.equals(this.versions, file.versions) && - Objects.equals(this.permission, file.permission) && Objects.equals(this.md5, file.md5) && Objects.equals(this.path, file.path) && + Objects.equals(this.parentId, file.parentId) && Objects.equals(this.createdById, file.createdById) && Objects.equals(this.id, file.id) && Objects.equals(this.name, file.name) && @@ -348,12 +366,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaded, file.uploaded) && Objects.equals(this.accessed, file.accessed) && Objects.equals(this.flags, file.flags) && - Objects.equals(this.ownerId, file.ownerId); + Objects.equals(this.ownerId, file.ownerId) && + Objects.equals(this.permission, file.permission); } @Override public int hashCode() { - return Objects.hash(versions, permission, md5, path, createdById, id, name, size, created, modified, uploaded, accessed, flags, ownerId); + return Objects.hash(versions, md5, path, parentId, createdById, id, name, size, created, modified, uploaded, accessed, flags, ownerId, permission); } @@ -363,9 +382,9 @@ public String toString() { sb.append("class File {\n"); sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); - sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -376,6 +395,7 @@ public String toString() { sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); + sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileContents.java index dffff0c00de..bf9bf95c317 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * A fileContent object */ @ApiModel(description = "A fileContent object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileContents { @JsonProperty("parent") private File parent = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileExportRequest.java new file mode 100644 index 00000000000..d3ae70e8d94 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileExportRequest.java @@ -0,0 +1,125 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +/** + * FileExportRequest + */ +@ApiModel(description = "FileExportRequest") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class FileExportRequest { + @JsonProperty("ids") + private List ids = null; + + @JsonProperty("archivePrefix") + private String archivePrefix = null; + + public FileExportRequest ids(List ids) { + this.ids = ids; + return this; + } + + public FileExportRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * File or folder id:s to export + * @return ids + **/ + @ApiModelProperty(value = "File or folder id:s to export") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public FileExportRequest archivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + return this; + } + + /** + * File prefix for the resulting archive files + * @return archivePrefix + **/ + @ApiModelProperty(value = "File prefix for the resulting archive files") + public String getArchivePrefix() { + return archivePrefix; + } + + public void setArchivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileExportRequest fileExportRequest = (FileExportRequest) o; + return Objects.equals(this.ids, fileExportRequest.ids) && + Objects.equals(this.archivePrefix, fileExportRequest.archivePrefix); + } + + @Override + public int hashCode() { + return Objects.hash(ids, archivePrefix); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileExportRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" archivePrefix: ").append(toIndentedString(archivePrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLock.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLock.java index 07a22f5172c..d776a8aa0d8 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLock.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLock.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileLock { @JsonProperty("fileId") private String fileId = null; @@ -37,6 +34,9 @@ public class FileLock { @JsonProperty("lockId") private String lockId = null; + @JsonProperty("userId") + private String userId = null; + @JsonProperty("owner") private String owner = null; @@ -79,6 +79,24 @@ public void setLockId(String lockId) { this.lockId = lockId; } + public FileLock userId(String userId) { + this.userId = userId; + return this; + } + + /** + * The UserId + * @return userId + **/ + @ApiModelProperty(value = "The UserId") + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + public FileLock owner(String owner) { this.owner = owner; return this; @@ -127,13 +145,14 @@ public boolean equals(java.lang.Object o) { FileLock fileLock = (FileLock) o; return Objects.equals(this.fileId, fileLock.fileId) && Objects.equals(this.lockId, fileLock.lockId) && + Objects.equals(this.userId, fileLock.userId) && Objects.equals(this.owner, fileLock.owner) && Objects.equals(this.expire, fileLock.expire); } @Override public int hashCode() { - return Objects.hash(fileId, lockId, owner, expire); + return Objects.hash(fileId, lockId, userId, owner, expire); } @@ -144,6 +163,7 @@ public String toString() { sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); sb.append(" lockId: ").append(toIndentedString(lockId)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); sb.append(" expire: ").append(toIndentedString(expire)).append("\n"); sb.append("}"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLockRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLockRequest.java index 34dc4911f70..79d7922030b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLockRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileLockRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileLockRequest { @JsonProperty("owner") private String owner = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileMetadata.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileMetadata.java index 4f500216992..b3815314697 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileMetadata.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileMetadata.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A file metadata object */ @ApiModel(description = "A file metadata object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileMetadata { @JsonProperty("id") private String id = null; @@ -55,6 +52,9 @@ public class FileMetadata { @JsonProperty("attributes") private Integer attributes = null; + @JsonProperty("conflictHandling") + private Integer conflictHandling = null; + @JsonProperty("flags") private Integer flags = null; @@ -205,16 +205,34 @@ public void setAttributes(Integer attributes) { this.attributes = attributes; } + public FileMetadata conflictHandling(Integer conflictHandling) { + this.conflictHandling = conflictHandling; + return this; + } + + /** + * Optional ConflictJHandling, not used in share upload. (0 = None, 1 = Overwrite, 2 = KeepBoth) + * @return conflictHandling + **/ + @ApiModelProperty(value = "Optional ConflictJHandling, not used in share upload. (0 = None, 1 = Overwrite, 2 = KeepBoth)") + public Integer getConflictHandling() { + return conflictHandling; + } + + public void setConflictHandling(Integer conflictHandling) { + this.conflictHandling = conflictHandling; + } + public FileMetadata flags(Integer flags) { this.flags = flags; return this; } /** - * The file Flags (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite) + * The file Flags (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification) * @return flags **/ - @ApiModelProperty(value = "The file Flags (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite)") + @ApiModelProperty(value = "The file Flags (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification)") public Integer getFlags() { return flags; } @@ -259,13 +277,14 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.created, fileMetadata.created) && Objects.equals(this.accessed, fileMetadata.accessed) && Objects.equals(this.attributes, fileMetadata.attributes) && + Objects.equals(this.conflictHandling, fileMetadata.conflictHandling) && Objects.equals(this.flags, fileMetadata.flags) && Objects.equals(this.lockId, fileMetadata.lockId); } @Override public int hashCode() { - return Objects.hash(id, fileName, parentId, fileSize, modified, created, accessed, attributes, flags, lockId); + return Objects.hash(id, fileName, parentId, fileSize, modified, created, accessed, attributes, conflictHandling, flags, lockId); } @@ -282,6 +301,7 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" conflictHandling: ").append(toIndentedString(conflictHandling)).append("\n"); sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); sb.append(" lockId: ").append(toIndentedString(lockId)).append("\n"); sb.append("}"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FilePermission.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FilePermission.java index e1cf7a40e1b..1014a7f372d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FilePermission.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FilePermission.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * File permission. */ @ApiModel(description = "File permission.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FilePermission { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShare.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShare.java index 031651970a2..4f18d4c24f3 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShare.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShare.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -30,10 +30,7 @@ * A FileShare */ @ApiModel(description = "A FileShare") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileShare { @JsonProperty("url") private String url = null; @@ -431,10 +428,10 @@ public FileShare authMethod(Integer authMethod) { } /** - * Share AuthMethod (0 = None, 1 = Password, 2 = BankID) + * Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShareExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShareExportRequest.java new file mode 100644 index 00000000000..213a2848811 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileShareExportRequest.java @@ -0,0 +1,115 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * FileShareExportRequest + */ +@ApiModel(description = "FileShareExportRequest") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class FileShareExportRequest { + @JsonProperty("id") + private String id = null; + + @JsonProperty("archivePrefix") + private String archivePrefix = null; + + public FileShareExportRequest id(String id) { + this.id = id; + return this; + } + + /** + * Share id to export + * @return id + **/ + @ApiModelProperty(value = "Share id to export") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FileShareExportRequest archivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + return this; + } + + /** + * File prefix for the resulting archive files + * @return archivePrefix + **/ + @ApiModelProperty(value = "File prefix for the resulting archive files") + public String getArchivePrefix() { + return archivePrefix; + } + + public void setArchivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileShareExportRequest fileShareExportRequest = (FileShareExportRequest) o; + return Objects.equals(this.id, fileShareExportRequest.id) && + Objects.equals(this.archivePrefix, fileShareExportRequest.archivePrefix); + } + + @Override + public int hashCode() { + return Objects.hash(id, archivePrefix); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileShareExportRequest {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" archivePrefix: ").append(toIndentedString(archivePrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileVersion.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileVersion.java index 362f6c2b2b9..be21d972241 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileVersion.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/FileVersion.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A file version. */ @ApiModel(description = "A file version.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class FileVersion { @JsonProperty("version") private Integer version = null; @@ -64,6 +61,9 @@ public class FileVersion { @JsonProperty("ownerId") private String ownerId = null; + @JsonProperty("permission") + private Integer permission = null; + public FileVersion version(Integer version) { this.version = version; return this; @@ -232,10 +232,10 @@ public FileVersion flags(Integer flags) { } /** - * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite) + * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification) * @return flags **/ - @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite)") + @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification)") public Integer getFlags() { return flags; } @@ -262,6 +262,24 @@ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } + public FileVersion permission(Integer permission) { + this.permission = permission; + return this; + } + + /** + * Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None) + * @return permission + **/ + @ApiModelProperty(value = "Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None)") + public Integer getPermission() { + return permission; + } + + public void setPermission(Integer permission) { + this.permission = permission; + } + @Override public boolean equals(java.lang.Object o) { @@ -282,12 +300,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaded, fileVersion.uploaded) && Objects.equals(this.accessed, fileVersion.accessed) && Objects.equals(this.flags, fileVersion.flags) && - Objects.equals(this.ownerId, fileVersion.ownerId); + Objects.equals(this.ownerId, fileVersion.ownerId) && + Objects.equals(this.permission, fileVersion.permission); } @Override public int hashCode() { - return Objects.hash(version, uploadedBy, id, name, size, created, modified, uploaded, accessed, flags, ownerId); + return Objects.hash(version, uploadedBy, id, name, size, created, modified, uploaded, accessed, flags, ownerId, permission); } @@ -307,6 +326,7 @@ public String toString() { sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); + sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Group.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Group.java index 1c7db10369d..6b856f2230c 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Group.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Group.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A group of users. */ @ApiModel(description = "A group of users.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Group { @JsonProperty("id") private String id = null; @@ -46,6 +43,9 @@ public class Group { @JsonProperty("isSystemGroup") private Boolean isSystemGroup = null; + @JsonProperty("isExternalGroup") + private Boolean isExternalGroup = null; + public Group id(String id) { this.id = id; return this; @@ -136,6 +136,24 @@ public void setIsSystemGroup(Boolean isSystemGroup) { this.isSystemGroup = isSystemGroup; } + public Group isExternalGroup(Boolean isExternalGroup) { + this.isExternalGroup = isExternalGroup; + return this; + } + + /** + * Systemgroups can't be edited + * @return isExternalGroup + **/ + @ApiModelProperty(value = "Systemgroups can't be edited") + public Boolean isIsExternalGroup() { + return isExternalGroup; + } + + public void setIsExternalGroup(Boolean isExternalGroup) { + this.isExternalGroup = isExternalGroup; + } + @Override public boolean equals(java.lang.Object o) { @@ -150,12 +168,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.name, group.name) && Objects.equals(this.description, group.description) && Objects.equals(this.created, group.created) && - Objects.equals(this.isSystemGroup, group.isSystemGroup); + Objects.equals(this.isSystemGroup, group.isSystemGroup) && + Objects.equals(this.isExternalGroup, group.isExternalGroup); } @Override public int hashCode() { - return Objects.hash(id, name, description, created, isSystemGroup); + return Objects.hash(id, name, description, created, isSystemGroup, isExternalGroup); } @@ -169,6 +188,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" isSystemGroup: ").append(toIndentedString(isSystemGroup)).append("\n"); + sb.append(" isExternalGroup: ").append(toIndentedString(isExternalGroup)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/GroupRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/GroupRequest.java index d10d9bcca66..3b6e8b5f8cc 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/GroupRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/GroupRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A GroupRequest request object */ @ApiModel(description = "A GroupRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class GroupRequest { @JsonProperty("name") private String name = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IndexContent.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IndexContent.java new file mode 100644 index 00000000000..039aca9fde9 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IndexContent.java @@ -0,0 +1,92 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * Contains an index + */ +@ApiModel(description = "Contains an index") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class IndexContent { + @JsonProperty("index") + private Integer index = null; + + public IndexContent index(Integer index) { + this.index = index; + return this; + } + + /** + * Index of the item queried + * @return index + **/ + @ApiModelProperty(value = "Index of the item queried") + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IndexContent indexContent = (IndexContent) o; + return Objects.equals(this.index, indexContent.index); + } + + @Override + public int hashCode() { + return Objects.hash(index); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IndexContent {\n"); + + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InviteUserRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InviteUserRequest.java index 8cb9aa19ba1..5bafc6e8803 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InviteUserRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InviteUserRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,17 +25,17 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class InviteUserRequest { - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("nonEId") private Boolean nonEId = null; + @JsonProperty("dormant") + private Boolean dormant = null; + @JsonProperty("firstName") private String firstName = null; @@ -54,22 +54,34 @@ public class InviteUserRequest { @JsonProperty("commonRootPermission") private Integer commonRootPermission = null; - public InviteUserRequest socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + @JsonProperty("allowSigning") + private Boolean allowSigning = null; + + @JsonProperty("locale") + private String locale = null; + + @JsonProperty("company") + private String company = null; + + @JsonProperty("mobileNumber") + private String mobileNumber = null; + + public InviteUserRequest personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** - * The SocialSecurityNumber used for eID registration - * @return socialSecurityNumber + * The PersonalIdentityNumber used for eID registration + * @return personalIdentityNumber **/ - @ApiModelProperty(value = "The SocialSecurityNumber used for eID registration") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + @ApiModelProperty(value = "The PersonalIdentityNumber used for eID registration") + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public InviteUserRequest nonEId(Boolean nonEId) { @@ -90,6 +102,24 @@ public void setNonEId(Boolean nonEId) { this.nonEId = nonEId; } + public InviteUserRequest dormant(Boolean dormant) { + this.dormant = dormant; + return this; + } + + /** + * Create user as inactive + * @return dormant + **/ + @ApiModelProperty(value = "Create user as inactive") + public Boolean isDormant() { + return dormant; + } + + public void setDormant(Boolean dormant) { + this.dormant = dormant; + } + public InviteUserRequest firstName(String firstName) { this.firstName = firstName; return this; @@ -199,6 +229,78 @@ public void setCommonRootPermission(Integer commonRootPermission) { this.commonRootPermission = commonRootPermission; } + public InviteUserRequest allowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + return this; + } + + /** + * The AllowProductRegistration + * @return allowSigning + **/ + @ApiModelProperty(value = "The AllowProductRegistration") + public Boolean isAllowSigning() { + return allowSigning; + } + + public void setAllowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + } + + public InviteUserRequest locale(String locale) { + this.locale = locale; + return this; + } + + /** + * locale to determine what language the users emails will get + * @return locale + **/ + @ApiModelProperty(value = "locale to determine what language the users emails will get") + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public InviteUserRequest company(String company) { + this.company = company; + return this; + } + + /** + * optional company + * @return company + **/ + @ApiModelProperty(value = "optional company") + public String getCompany() { + return company; + } + + public void setCompany(String company) { + this.company = company; + } + + public InviteUserRequest mobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + return this; + } + + /** + * The users mobileNumber. + * @return mobileNumber + **/ + @ApiModelProperty(value = "The users mobileNumber.") + public String getMobileNumber() { + return mobileNumber; + } + + public void setMobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + } + @Override public boolean equals(java.lang.Object o) { @@ -209,19 +311,24 @@ public boolean equals(java.lang.Object o) { return false; } InviteUserRequest inviteUserRequest = (InviteUserRequest) o; - return Objects.equals(this.socialSecurityNumber, inviteUserRequest.socialSecurityNumber) && + return Objects.equals(this.personalIdentityNumber, inviteUserRequest.personalIdentityNumber) && Objects.equals(this.nonEId, inviteUserRequest.nonEId) && + Objects.equals(this.dormant, inviteUserRequest.dormant) && Objects.equals(this.firstName, inviteUserRequest.firstName) && Objects.equals(this.lastName, inviteUserRequest.lastName) && Objects.equals(this.email, inviteUserRequest.email) && Objects.equals(this.reservedSpaceSize, inviteUserRequest.reservedSpaceSize) && Objects.equals(this.allowProductRegistration, inviteUserRequest.allowProductRegistration) && - Objects.equals(this.commonRootPermission, inviteUserRequest.commonRootPermission); + Objects.equals(this.commonRootPermission, inviteUserRequest.commonRootPermission) && + Objects.equals(this.allowSigning, inviteUserRequest.allowSigning) && + Objects.equals(this.locale, inviteUserRequest.locale) && + Objects.equals(this.company, inviteUserRequest.company) && + Objects.equals(this.mobileNumber, inviteUserRequest.mobileNumber); } @Override public int hashCode() { - return Objects.hash(socialSecurityNumber, nonEId, firstName, lastName, email, reservedSpaceSize, allowProductRegistration, commonRootPermission); + return Objects.hash(personalIdentityNumber, nonEId, dormant, firstName, lastName, email, reservedSpaceSize, allowProductRegistration, commonRootPermission, allowSigning, locale, company, mobileNumber); } @@ -230,14 +337,19 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InviteUserRequest {\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" nonEId: ").append(toIndentedString(nonEId)).append("\n"); + sb.append(" dormant: ").append(toIndentedString(dormant)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" reservedSpaceSize: ").append(toIndentedString(reservedSpaceSize)).append("\n"); sb.append(" allowProductRegistration: ").append(toIndentedString(allowProductRegistration)).append("\n"); sb.append(" commonRootPermission: ").append(toIndentedString(commonRootPermission)).append("\n"); + sb.append(" allowSigning: ").append(toIndentedString(allowSigning)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" company: ").append(toIndentedString(company)).append("\n"); + sb.append(" mobileNumber: ").append(toIndentedString(mobileNumber)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Invoice.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Invoice.java index b2d38e3e0d6..823cc35e4ce 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Invoice.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Invoice.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Invoice { @JsonProperty("customerNumber") private String customerNumber = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InvoiceInfo.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InvoiceInfo.java index cbb4153b2c7..92ae8d88f11 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InvoiceInfo.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/InvoiceInfo.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class InvoiceInfo { @JsonProperty("createdDate") private DateTime createdDate = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IsUsernameAvailableRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IsUsernameAvailableRequest.java index cd49a774f27..f4573272a35 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IsUsernameAvailableRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/IsUsernameAvailableRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class IsUsernameAvailableRequest { @JsonProperty("partnerId") private String partnerId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaContentList.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaContentList.java index 4de6ffc2c77..80407e6bcc0 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaContentList.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaContentList.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaContentList { @JsonProperty("locale") private String locale = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolder.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolder.java index 8a303ed6d7c..5309adfd2ba 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolder.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolder.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * A media folder (or album). */ @ApiModel(description = "A media folder (or album).") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaFolder { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderContents.java index 3af304ab319..e2b11319fe1 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * Contains a list of mediaFolders */ @ApiModel(description = "Contains a list of mediaFolders") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaFolderContents { @JsonProperty("mediaFolders") private List mediaFolders = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderExportRequest.java new file mode 100644 index 00000000000..7f306f8aad1 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaFolderExportRequest.java @@ -0,0 +1,125 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +/** + * MediaFolderExportRequest + */ +@ApiModel(description = "MediaFolderExportRequest") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class MediaFolderExportRequest { + @JsonProperty("ids") + private List ids = null; + + @JsonProperty("archivePrefix") + private String archivePrefix = null; + + public MediaFolderExportRequest ids(List ids) { + this.ids = ids; + return this; + } + + public MediaFolderExportRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Media folder id:s to export + * @return ids + **/ + @ApiModelProperty(value = "Media folder id:s to export") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public MediaFolderExportRequest archivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + return this; + } + + /** + * File prefix for the resulting archive files + * @return archivePrefix + **/ + @ApiModelProperty(value = "File prefix for the resulting archive files") + public String getArchivePrefix() { + return archivePrefix; + } + + public void setArchivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MediaFolderExportRequest mediaFolderExportRequest = (MediaFolderExportRequest) o; + return Objects.equals(this.ids, mediaFolderExportRequest.ids) && + Objects.equals(this.archivePrefix, mediaFolderExportRequest.archivePrefix); + } + + @Override + public int hashCode() { + return Objects.hash(ids, archivePrefix); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MediaFolderExportRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" archivePrefix: ").append(toIndentedString(archivePrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItem.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItem.java index 4a9b5958d87..0f1a0bc1b9f 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItem.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItem.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A media item (a image in a album). */ @ApiModel(description = "A media item (a image in a album).") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaItem { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItemContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItemContents.java index 2008b8cf29e..4a6853a4ee1 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItemContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaItemContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * Contains a list of mediaItems */ @ApiModel(description = "Contains a list of mediaItems") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaItemContents { @JsonProperty("parent") private MediaFolder parent = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShare.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShare.java index 21886d70b0b..2d053c8ccac 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShare.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShare.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -30,10 +30,7 @@ * A enhanced shared mediaFolder */ @ApiModel(description = "A enhanced shared mediaFolder") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MediaShare { @JsonProperty("url") private String url = null; @@ -431,10 +428,10 @@ public MediaShare authMethod(Integer authMethod) { } /** - * Share AuthMethod (0 = None, 1 = Password, 2 = BankID) + * Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShareExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShareExportRequest.java new file mode 100644 index 00000000000..8962f4a4f91 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShareExportRequest.java @@ -0,0 +1,115 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * MediaShareExportRequest + */ +@ApiModel(description = "MediaShareExportRequest") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class MediaShareExportRequest { + @JsonProperty("id") + private String id = null; + + @JsonProperty("archivePrefix") + private String archivePrefix = null; + + public MediaShareExportRequest id(String id) { + this.id = id; + return this; + } + + /** + * Media share id to export + * @return id + **/ + @ApiModelProperty(value = "Media share id to export") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MediaShareExportRequest archivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + return this; + } + + /** + * File prefix for the resulting archive files + * @return archivePrefix + **/ + @ApiModelProperty(value = "File prefix for the resulting archive files") + public String getArchivePrefix() { + return archivePrefix; + } + + public void setArchivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MediaShareExportRequest mediaShareExportRequest = (MediaShareExportRequest) o; + return Objects.equals(this.id, mediaShareExportRequest.id) && + Objects.equals(this.archivePrefix, mediaShareExportRequest.archivePrefix); + } + + @Override + public int hashCode() { + return Objects.hash(id, archivePrefix); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MediaShareExportRequest {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" archivePrefix: ").append(toIndentedString(archivePrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShareItemExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShareItemExportRequest.java new file mode 100644 index 00000000000..41df3fb553f --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MediaShareItemExportRequest.java @@ -0,0 +1,125 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +/** + * MediaShareItemExportRequest + */ +@ApiModel(description = "MediaShareItemExportRequest") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class MediaShareItemExportRequest { + @JsonProperty("ids") + private List ids = null; + + @JsonProperty("archivePrefix") + private String archivePrefix = null; + + public MediaShareItemExportRequest ids(List ids) { + this.ids = ids; + return this; + } + + public MediaShareItemExportRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Media share id:s to export + * @return ids + **/ + @ApiModelProperty(value = "Media share id:s to export") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public MediaShareItemExportRequest archivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + return this; + } + + /** + * File prefix for the resulting archive files + * @return archivePrefix + **/ + @ApiModelProperty(value = "File prefix for the resulting archive files") + public String getArchivePrefix() { + return archivePrefix; + } + + public void setArchivePrefix(String archivePrefix) { + this.archivePrefix = archivePrefix; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MediaShareItemExportRequest mediaShareItemExportRequest = (MediaShareItemExportRequest) o; + return Objects.equals(this.ids, mediaShareItemExportRequest.ids) && + Objects.equals(this.archivePrefix, mediaShareItemExportRequest.archivePrefix); + } + + @Override + public int hashCode() { + return Objects.hash(ids, archivePrefix); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MediaShareItemExportRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" archivePrefix: ").append(toIndentedString(archivePrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ModelConfiguration.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ModelConfiguration.java index 4ed48e250d0..945cd6b7701 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ModelConfiguration.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ModelConfiguration.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ModelConfiguration { @JsonProperty("hasMulti") private Boolean hasMulti = null; @@ -81,6 +78,12 @@ public class ModelConfiguration { @JsonProperty("hasOfficeOnline") private Boolean hasOfficeOnline = null; + @JsonProperty("hasOfficeDesktop") + private Boolean hasOfficeDesktop = null; + + @JsonProperty("hidePermissionManagement") + private Boolean hidePermissionManagement = null; + @JsonProperty("hasRecycleBin") private Boolean hasRecycleBin = null; @@ -141,6 +144,36 @@ public class ModelConfiguration { @JsonProperty("isBankIDVerificationRequired") private Boolean isBankIDVerificationRequired = null; + @JsonProperty("isShareBankIDRequired") + private Boolean isShareBankIDRequired = null; + + @JsonProperty("isTwoFactorLoginRequired") + private Boolean isTwoFactorLoginRequired = null; + + @JsonProperty("hasBranding") + private Boolean hasBranding = null; + + @JsonProperty("isBrandingAvailable") + private Boolean isBrandingAvailable = null; + + @JsonProperty("hasPhoneBackup") + private Boolean hasPhoneBackup = null; + + @JsonProperty("hasSigning") + private Boolean hasSigning = null; + + @JsonProperty("isSigningAvailable") + private Boolean isSigningAvailable = null; + + @JsonProperty("hasCloudFolder") + private Boolean hasCloudFolder = null; + + @JsonProperty("isShareProtectionRequired") + private Boolean isShareProtectionRequired = null; + + @JsonProperty("promptPWA") + private Boolean promptPWA = null; + public ModelConfiguration hasMulti(Boolean hasMulti) { this.hasMulti = hasMulti; return this; @@ -345,10 +378,10 @@ public ModelConfiguration hasMedia(Boolean hasMedia) { } /** - * Does the account have Albums + * Does the account have Albums and Photos * @return hasMedia **/ - @ApiModelProperty(value = "Does the account have Albums") + @ApiModelProperty(value = "Does the account have Albums and Photos") public Boolean isHasMedia() { return hasMedia; } @@ -375,24 +408,15 @@ public void setIsMoveFromCommonDisabled(Boolean isMoveFromCommonDisabled) { this.isMoveFromCommonDisabled = isMoveFromCommonDisabled; } - public ModelConfiguration hasPhotos(Boolean hasPhotos) { - this.hasPhotos = hasPhotos; - return this; - } - /** - * Does the account have Photos + * Not used, check HasMedia * @return hasPhotos **/ - @ApiModelProperty(value = "Does the account have Photos") + @ApiModelProperty(value = "Not used, check HasMedia") public Boolean isHasPhotos() { return hasPhotos; } - public void setHasPhotos(Boolean hasPhotos) { - this.hasPhotos = hasPhotos; - } - public ModelConfiguration hasSync(Boolean hasSync) { this.hasSync = hasSync; return this; @@ -447,6 +471,42 @@ public void setHasOfficeOnline(Boolean hasOfficeOnline) { this.hasOfficeOnline = hasOfficeOnline; } + public ModelConfiguration hasOfficeDesktop(Boolean hasOfficeDesktop) { + this.hasOfficeDesktop = hasOfficeDesktop; + return this; + } + + /** + * Is Office Desktop enabled enabled + * @return hasOfficeDesktop + **/ + @ApiModelProperty(value = "Is Office Desktop enabled enabled") + public Boolean isHasOfficeDesktop() { + return hasOfficeDesktop; + } + + public void setHasOfficeDesktop(Boolean hasOfficeDesktop) { + this.hasOfficeDesktop = hasOfficeDesktop; + } + + public ModelConfiguration hidePermissionManagement(Boolean hidePermissionManagement) { + this.hidePermissionManagement = hidePermissionManagement; + return this; + } + + /** + * Hide PermissionManagement dialog for subusers in Commmon + * @return hidePermissionManagement + **/ + @ApiModelProperty(value = "Hide PermissionManagement dialog for subusers in Commmon") + public Boolean isHidePermissionManagement() { + return hidePermissionManagement; + } + + public void setHidePermissionManagement(Boolean hidePermissionManagement) { + this.hidePermissionManagement = hidePermissionManagement; + } + public ModelConfiguration hasRecycleBin(Boolean hasRecycleBin) { this.hasRecycleBin = hasRecycleBin; return this; @@ -795,10 +855,10 @@ public ModelConfiguration isBankIDVerificationRequired(Boolean isBankIDVerificat } /** - * Only sett if Admin and IsBankIDLogin is true + * Is login with BankID required * @return isBankIDVerificationRequired **/ - @ApiModelProperty(value = "Only sett if Admin and IsBankIDLogin is true") + @ApiModelProperty(value = "Is login with BankID required") public Boolean isIsBankIDVerificationRequired() { return isBankIDVerificationRequired; } @@ -807,6 +867,186 @@ public void setIsBankIDVerificationRequired(Boolean isBankIDVerificationRequired this.isBankIDVerificationRequired = isBankIDVerificationRequired; } + public ModelConfiguration isShareBankIDRequired(Boolean isShareBankIDRequired) { + this.isShareBankIDRequired = isShareBankIDRequired; + return this; + } + + /** + * Is share with BankID required + * @return isShareBankIDRequired + **/ + @ApiModelProperty(value = "Is share with BankID required") + public Boolean isIsShareBankIDRequired() { + return isShareBankIDRequired; + } + + public void setIsShareBankIDRequired(Boolean isShareBankIDRequired) { + this.isShareBankIDRequired = isShareBankIDRequired; + } + + public ModelConfiguration isTwoFactorLoginRequired(Boolean isTwoFactorLoginRequired) { + this.isTwoFactorLoginRequired = isTwoFactorLoginRequired; + return this; + } + + /** + * Two Factor login Required + * @return isTwoFactorLoginRequired + **/ + @ApiModelProperty(value = "Two Factor login Required") + public Boolean isIsTwoFactorLoginRequired() { + return isTwoFactorLoginRequired; + } + + public void setIsTwoFactorLoginRequired(Boolean isTwoFactorLoginRequired) { + this.isTwoFactorLoginRequired = isTwoFactorLoginRequired; + } + + public ModelConfiguration hasBranding(Boolean hasBranding) { + this.hasBranding = hasBranding; + return this; + } + + /** + * Account has Branding + * @return hasBranding + **/ + @ApiModelProperty(value = "Account has Branding") + public Boolean isHasBranding() { + return hasBranding; + } + + public void setHasBranding(Boolean hasBranding) { + this.hasBranding = hasBranding; + } + + public ModelConfiguration isBrandingAvailable(Boolean isBrandingAvailable) { + this.isBrandingAvailable = isBrandingAvailable; + return this; + } + + /** + * Account can buy Branding + * @return isBrandingAvailable + **/ + @ApiModelProperty(value = "Account can buy Branding") + public Boolean isIsBrandingAvailable() { + return isBrandingAvailable; + } + + public void setIsBrandingAvailable(Boolean isBrandingAvailable) { + this.isBrandingAvailable = isBrandingAvailable; + } + + public ModelConfiguration hasPhoneBackup(Boolean hasPhoneBackup) { + this.hasPhoneBackup = hasPhoneBackup; + return this; + } + + /** + * Has phone app backup + * @return hasPhoneBackup + **/ + @ApiModelProperty(value = "Has phone app backup") + public Boolean isHasPhoneBackup() { + return hasPhoneBackup; + } + + public void setHasPhoneBackup(Boolean hasPhoneBackup) { + this.hasPhoneBackup = hasPhoneBackup; + } + + public ModelConfiguration hasSigning(Boolean hasSigning) { + this.hasSigning = hasSigning; + return this; + } + + /** + * Account has Signing + * @return hasSigning + **/ + @ApiModelProperty(value = "Account has Signing") + public Boolean isHasSigning() { + return hasSigning; + } + + public void setHasSigning(Boolean hasSigning) { + this.hasSigning = hasSigning; + } + + public ModelConfiguration isSigningAvailable(Boolean isSigningAvailable) { + this.isSigningAvailable = isSigningAvailable; + return this; + } + + /** + * Account can buy Branding + * @return isSigningAvailable + **/ + @ApiModelProperty(value = "Account can buy Branding") + public Boolean isIsSigningAvailable() { + return isSigningAvailable; + } + + public void setIsSigningAvailable(Boolean isSigningAvailable) { + this.isSigningAvailable = isSigningAvailable; + } + + public ModelConfiguration hasCloudFolder(Boolean hasCloudFolder) { + this.hasCloudFolder = hasCloudFolder; + return this; + } + + /** + * Account has Cloud Folder + * @return hasCloudFolder + **/ + @ApiModelProperty(value = "Account has Cloud Folder") + public Boolean isHasCloudFolder() { + return hasCloudFolder; + } + + public void setHasCloudFolder(Boolean hasCloudFolder) { + this.hasCloudFolder = hasCloudFolder; + } + + public ModelConfiguration isShareProtectionRequired(Boolean isShareProtectionRequired) { + this.isShareProtectionRequired = isShareProtectionRequired; + return this; + } + + /** + * Is share with password or BankID required + * @return isShareProtectionRequired + **/ + @ApiModelProperty(value = "Is share with password or BankID required") + public Boolean isIsShareProtectionRequired() { + return isShareProtectionRequired; + } + + public void setIsShareProtectionRequired(Boolean isShareProtectionRequired) { + this.isShareProtectionRequired = isShareProtectionRequired; + } + + public ModelConfiguration promptPWA(Boolean promptPWA) { + this.promptPWA = promptPWA; + return this; + } + + /** + * If the website should prompt installation of the app + * @return promptPWA + **/ + @ApiModelProperty(value = "If the website should prompt installation of the app") + public Boolean isPromptPWA() { + return promptPWA; + } + + public void setPromptPWA(Boolean promptPWA) { + this.promptPWA = promptPWA; + } + @Override public boolean equals(java.lang.Object o) { @@ -834,6 +1074,8 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.hasSync, _configuration.hasSync) && Objects.equals(this.hasAutostore, _configuration.hasAutostore) && Objects.equals(this.hasOfficeOnline, _configuration.hasOfficeOnline) && + Objects.equals(this.hasOfficeDesktop, _configuration.hasOfficeDesktop) && + Objects.equals(this.hidePermissionManagement, _configuration.hidePermissionManagement) && Objects.equals(this.hasRecycleBin, _configuration.hasRecycleBin) && Objects.equals(this.showHiddenFiles, _configuration.showHiddenFiles) && Objects.equals(this.showUsername, _configuration.showUsername) && @@ -853,12 +1095,22 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.hasMyFiles, _configuration.hasMyFiles) && Objects.equals(this.isBankIDLogin, _configuration.isBankIDLogin) && Objects.equals(this.hasApps, _configuration.hasApps) && - Objects.equals(this.isBankIDVerificationRequired, _configuration.isBankIDVerificationRequired); + Objects.equals(this.isBankIDVerificationRequired, _configuration.isBankIDVerificationRequired) && + Objects.equals(this.isShareBankIDRequired, _configuration.isShareBankIDRequired) && + Objects.equals(this.isTwoFactorLoginRequired, _configuration.isTwoFactorLoginRequired) && + Objects.equals(this.hasBranding, _configuration.hasBranding) && + Objects.equals(this.isBrandingAvailable, _configuration.isBrandingAvailable) && + Objects.equals(this.hasPhoneBackup, _configuration.hasPhoneBackup) && + Objects.equals(this.hasSigning, _configuration.hasSigning) && + Objects.equals(this.isSigningAvailable, _configuration.isSigningAvailable) && + Objects.equals(this.hasCloudFolder, _configuration.hasCloudFolder) && + Objects.equals(this.isShareProtectionRequired, _configuration.isShareProtectionRequired) && + Objects.equals(this.promptPWA, _configuration.promptPWA); } @Override public int hashCode() { - return Objects.hash(hasMulti, hasCommon, hasPermissions, hasExtendedPermissions, hasTeamSync, hasGroups, hasQuota, hasInspection, hasBackup, hasUnlimitedBackup, hasKlsBackup, hasMedia, isMoveFromCommonDisabled, hasPhotos, hasSync, hasAutostore, hasOfficeOnline, hasRecycleBin, showHiddenFiles, showUsername, startPage, locale, theme, hideSplash, userAccountMode, allowShare, hasEvents, hasVersioning, hasWebDav, hasWebDavPasswords, isShareBankIDAuthAvailable, hasShareBankIDAuth, hasShareOfficeOnline, hasMyFiles, isBankIDLogin, hasApps, isBankIDVerificationRequired); + return Objects.hash(hasMulti, hasCommon, hasPermissions, hasExtendedPermissions, hasTeamSync, hasGroups, hasQuota, hasInspection, hasBackup, hasUnlimitedBackup, hasKlsBackup, hasMedia, isMoveFromCommonDisabled, hasPhotos, hasSync, hasAutostore, hasOfficeOnline, hasOfficeDesktop, hidePermissionManagement, hasRecycleBin, showHiddenFiles, showUsername, startPage, locale, theme, hideSplash, userAccountMode, allowShare, hasEvents, hasVersioning, hasWebDav, hasWebDavPasswords, isShareBankIDAuthAvailable, hasShareBankIDAuth, hasShareOfficeOnline, hasMyFiles, isBankIDLogin, hasApps, isBankIDVerificationRequired, isShareBankIDRequired, isTwoFactorLoginRequired, hasBranding, isBrandingAvailable, hasPhoneBackup, hasSigning, isSigningAvailable, hasCloudFolder, isShareProtectionRequired, promptPWA); } @@ -884,6 +1136,8 @@ public String toString() { sb.append(" hasSync: ").append(toIndentedString(hasSync)).append("\n"); sb.append(" hasAutostore: ").append(toIndentedString(hasAutostore)).append("\n"); sb.append(" hasOfficeOnline: ").append(toIndentedString(hasOfficeOnline)).append("\n"); + sb.append(" hasOfficeDesktop: ").append(toIndentedString(hasOfficeDesktop)).append("\n"); + sb.append(" hidePermissionManagement: ").append(toIndentedString(hidePermissionManagement)).append("\n"); sb.append(" hasRecycleBin: ").append(toIndentedString(hasRecycleBin)).append("\n"); sb.append(" showHiddenFiles: ").append(toIndentedString(showHiddenFiles)).append("\n"); sb.append(" showUsername: ").append(toIndentedString(showUsername)).append("\n"); @@ -904,6 +1158,16 @@ public String toString() { sb.append(" isBankIDLogin: ").append(toIndentedString(isBankIDLogin)).append("\n"); sb.append(" hasApps: ").append(toIndentedString(hasApps)).append("\n"); sb.append(" isBankIDVerificationRequired: ").append(toIndentedString(isBankIDVerificationRequired)).append("\n"); + sb.append(" isShareBankIDRequired: ").append(toIndentedString(isShareBankIDRequired)).append("\n"); + sb.append(" isTwoFactorLoginRequired: ").append(toIndentedString(isTwoFactorLoginRequired)).append("\n"); + sb.append(" hasBranding: ").append(toIndentedString(hasBranding)).append("\n"); + sb.append(" isBrandingAvailable: ").append(toIndentedString(isBrandingAvailable)).append("\n"); + sb.append(" hasPhoneBackup: ").append(toIndentedString(hasPhoneBackup)).append("\n"); + sb.append(" hasSigning: ").append(toIndentedString(hasSigning)).append("\n"); + sb.append(" isSigningAvailable: ").append(toIndentedString(isSigningAvailable)).append("\n"); + sb.append(" hasCloudFolder: ").append(toIndentedString(hasCloudFolder)).append("\n"); + sb.append(" isShareProtectionRequired: ").append(toIndentedString(isShareProtectionRequired)).append("\n"); + sb.append(" promptPWA: ").append(toIndentedString(promptPWA)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MoveFileRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MoveFileRequest.java index 6cdabad1f96..ce5b7e66fc6 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MoveFileRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MoveFileRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A MoveRequest object */ @ApiModel(description = "A MoveRequest object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MoveFileRequest { @JsonProperty("parentID") private String parentID = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiAccountStorage.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiAccountStorage.java index 3c86a69785c..b64153a264a 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiAccountStorage.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiAccountStorage.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MultiAccountStorage { @JsonProperty("usedCommon") private Long usedCommon = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiSettings.java index 0dce30da384..8a999250234 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/MultiSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * A accounts multi settings. Properties that are null/undefined/missing are not available */ @ApiModel(description = "A accounts multi settings. Properties that are null/undefined/missing are not available") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class MultiSettings { @JsonProperty("versionsAvailable") private List versionsAvailable = null; @@ -44,6 +41,9 @@ public class MultiSettings { @JsonProperty("showForceTwoFactor") private Boolean showForceTwoFactor = null; + @JsonProperty("hasBackupAccess") + private Boolean hasBackupAccess = null; + @JsonProperty("officeOnline") private Boolean officeOnline = null; @@ -59,11 +59,11 @@ public class MultiSettings { @JsonProperty("extendedPermissions") private Boolean extendedPermissions = null; - @JsonProperty("hideAlbums") - private Boolean hideAlbums = null; + @JsonProperty("hidePermissionManagement") + private Boolean hidePermissionManagement = null; - @JsonProperty("hidePhotos") - private Boolean hidePhotos = null; + @JsonProperty("hideMedia") + private Boolean hideMedia = null; @JsonProperty("disableMoveFromCommon") private Boolean disableMoveFromCommon = null; @@ -74,8 +74,35 @@ public class MultiSettings { @JsonProperty("forceTwoFactor") private Boolean forceTwoFactor = null; - @JsonProperty("eidRequired") - private Boolean eidRequired = null; + @JsonProperty("eidLoginRequired") + private Boolean eidLoginRequired = null; + + @JsonProperty("eidShareRequired") + private Boolean eidShareRequired = null; + + @JsonProperty("eidShareRequiredSendMail") + private Boolean eidShareRequiredSendMail = null; + + @JsonProperty("protectedShareRequired") + private Boolean protectedShareRequired = null; + + @JsonProperty("protectedShareRequiredSendMail") + private Boolean protectedShareRequiredSendMail = null; + + @JsonProperty("twoFactorLoginRequired") + private Boolean twoFactorLoginRequired = null; + + @JsonProperty("officeDesktop") + private Boolean officeDesktop = null; + + @JsonProperty("backupAccessPassword") + private String backupAccessPassword = null; + + @JsonProperty("ipRestrictions") + private List ipRestrictions = null; + + @JsonProperty("ipRestrictionsSharesExcluded") + private Boolean ipRestrictionsSharesExcluded = null; public MultiSettings versionsAvailable(List versionsAvailable) { this.versionsAvailable = versionsAvailable; @@ -157,6 +184,24 @@ public void setShowForceTwoFactor(Boolean showForceTwoFactor) { this.showForceTwoFactor = showForceTwoFactor; } + public MultiSettings hasBackupAccess(Boolean hasBackupAccess) { + this.hasBackupAccess = hasBackupAccess; + return this; + } + + /** + * Allow backup access via WebDAV + * @return hasBackupAccess + **/ + @ApiModelProperty(value = "Allow backup access via WebDAV") + public Boolean isHasBackupAccess() { + return hasBackupAccess; + } + + public void setHasBackupAccess(Boolean hasBackupAccess) { + this.hasBackupAccess = hasBackupAccess; + } + public MultiSettings officeOnline(Boolean officeOnline) { this.officeOnline = officeOnline; return this; @@ -247,40 +292,40 @@ public void setExtendedPermissions(Boolean extendedPermissions) { this.extendedPermissions = extendedPermissions; } - public MultiSettings hideAlbums(Boolean hideAlbums) { - this.hideAlbums = hideAlbums; + public MultiSettings hidePermissionManagement(Boolean hidePermissionManagement) { + this.hidePermissionManagement = hidePermissionManagement; return this; } /** * Extended permissions in common - * @return hideAlbums + * @return hidePermissionManagement **/ @ApiModelProperty(value = "Extended permissions in common") - public Boolean isHideAlbums() { - return hideAlbums; + public Boolean isHidePermissionManagement() { + return hidePermissionManagement; } - public void setHideAlbums(Boolean hideAlbums) { - this.hideAlbums = hideAlbums; + public void setHidePermissionManagement(Boolean hidePermissionManagement) { + this.hidePermissionManagement = hidePermissionManagement; } - public MultiSettings hidePhotos(Boolean hidePhotos) { - this.hidePhotos = hidePhotos; + public MultiSettings hideMedia(Boolean hideMedia) { + this.hideMedia = hideMedia; return this; } /** * Extended permissions in common - * @return hidePhotos + * @return hideMedia **/ @ApiModelProperty(value = "Extended permissions in common") - public Boolean isHidePhotos() { - return hidePhotos; + public Boolean isHideMedia() { + return hideMedia; } - public void setHidePhotos(Boolean hidePhotos) { - this.hidePhotos = hidePhotos; + public void setHideMedia(Boolean hideMedia) { + this.hideMedia = hideMedia; } public MultiSettings disableMoveFromCommon(Boolean disableMoveFromCommon) { @@ -337,22 +382,192 @@ public void setForceTwoFactor(Boolean forceTwoFactor) { this.forceTwoFactor = forceTwoFactor; } - public MultiSettings eidRequired(Boolean eidRequired) { - this.eidRequired = eidRequired; + public MultiSettings eidLoginRequired(Boolean eidLoginRequired) { + this.eidLoginRequired = eidLoginRequired; + return this; + } + + /** + * Force BankID for users + * @return eidLoginRequired + **/ + @ApiModelProperty(value = "Force BankID for users") + public Boolean isEidLoginRequired() { + return eidLoginRequired; + } + + public void setEidLoginRequired(Boolean eidLoginRequired) { + this.eidLoginRequired = eidLoginRequired; + } + + public MultiSettings eidShareRequired(Boolean eidShareRequired) { + this.eidShareRequired = eidShareRequired; + return this; + } + + /** + * Force BankID for shares + * @return eidShareRequired + **/ + @ApiModelProperty(value = "Force BankID for shares") + public Boolean isEidShareRequired() { + return eidShareRequired; + } + + public void setEidShareRequired(Boolean eidShareRequired) { + this.eidShareRequired = eidShareRequired; + } + + public MultiSettings eidShareRequiredSendMail(Boolean eidShareRequiredSendMail) { + this.eidShareRequiredSendMail = eidShareRequiredSendMail; + return this; + } + + /** + * If send mail when EIDShareRequired + * @return eidShareRequiredSendMail + **/ + @ApiModelProperty(value = "If send mail when EIDShareRequired") + public Boolean isEidShareRequiredSendMail() { + return eidShareRequiredSendMail; + } + + public void setEidShareRequiredSendMail(Boolean eidShareRequiredSendMail) { + this.eidShareRequiredSendMail = eidShareRequiredSendMail; + } + + public MultiSettings protectedShareRequired(Boolean protectedShareRequired) { + this.protectedShareRequired = protectedShareRequired; + return this; + } + + /** + * Force protection for shares + * @return protectedShareRequired + **/ + @ApiModelProperty(value = "Force protection for shares") + public Boolean isProtectedShareRequired() { + return protectedShareRequired; + } + + public void setProtectedShareRequired(Boolean protectedShareRequired) { + this.protectedShareRequired = protectedShareRequired; + } + + public MultiSettings protectedShareRequiredSendMail(Boolean protectedShareRequiredSendMail) { + this.protectedShareRequiredSendMail = protectedShareRequiredSendMail; + return this; + } + + /** + * If send mail when ProtectedShareRequired + * @return protectedShareRequiredSendMail + **/ + @ApiModelProperty(value = "If send mail when ProtectedShareRequired") + public Boolean isProtectedShareRequiredSendMail() { + return protectedShareRequiredSendMail; + } + + public void setProtectedShareRequiredSendMail(Boolean protectedShareRequiredSendMail) { + this.protectedShareRequiredSendMail = protectedShareRequiredSendMail; + } + + public MultiSettings twoFactorLoginRequired(Boolean twoFactorLoginRequired) { + this.twoFactorLoginRequired = twoFactorLoginRequired; + return this; + } + + /** + * Force Two Factor Login + * @return twoFactorLoginRequired + **/ + @ApiModelProperty(value = "Force Two Factor Login") + public Boolean isTwoFactorLoginRequired() { + return twoFactorLoginRequired; + } + + public void setTwoFactorLoginRequired(Boolean twoFactorLoginRequired) { + this.twoFactorLoginRequired = twoFactorLoginRequired; + } + + public MultiSettings officeDesktop(Boolean officeDesktop) { + this.officeDesktop = officeDesktop; + return this; + } + + /** + * Enable Office Desktop for entire subscription + * @return officeDesktop + **/ + @ApiModelProperty(value = "Enable Office Desktop for entire subscription") + public Boolean isOfficeDesktop() { + return officeDesktop; + } + + public void setOfficeDesktop(Boolean officeDesktop) { + this.officeDesktop = officeDesktop; + } + + public MultiSettings backupAccessPassword(String backupAccessPassword) { + this.backupAccessPassword = backupAccessPassword; + return this; + } + + /** + * Password for allow backup access via WebDAV, Only Set + * @return backupAccessPassword + **/ + @ApiModelProperty(value = "Password for allow backup access via WebDAV, Only Set") + public String getBackupAccessPassword() { + return backupAccessPassword; + } + + public void setBackupAccessPassword(String backupAccessPassword) { + this.backupAccessPassword = backupAccessPassword; + } + + public MultiSettings ipRestrictions(List ipRestrictions) { + this.ipRestrictions = ipRestrictions; + return this; + } + + public MultiSettings addIpRestrictionsItem(String ipRestrictionsItem) { + if (this.ipRestrictions == null) { + this.ipRestrictions = new ArrayList<>(); + } + this.ipRestrictions.add(ipRestrictionsItem); + return this; + } + + /** + * + * @return ipRestrictions + **/ + @ApiModelProperty(value = "") + public List getIpRestrictions() { + return ipRestrictions; + } + + public void setIpRestrictions(List ipRestrictions) { + this.ipRestrictions = ipRestrictions; + } + + public MultiSettings ipRestrictionsSharesExcluded(Boolean ipRestrictionsSharesExcluded) { + this.ipRestrictionsSharesExcluded = ipRestrictionsSharesExcluded; return this; } /** - * Force BankID for all users and shares - * @return eidRequired + * + * @return ipRestrictionsSharesExcluded **/ - @ApiModelProperty(value = "Force BankID for all users and shares") - public Boolean isEidRequired() { - return eidRequired; + @ApiModelProperty(value = "") + public Boolean isIpRestrictionsSharesExcluded() { + return ipRestrictionsSharesExcluded; } - public void setEidRequired(Boolean eidRequired) { - this.eidRequired = eidRequired; + public void setIpRestrictionsSharesExcluded(Boolean ipRestrictionsSharesExcluded) { + this.ipRestrictionsSharesExcluded = ipRestrictionsSharesExcluded; } @@ -369,22 +584,32 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.idProvider, multiSettings.idProvider) && Objects.equals(this.idProviderCode, multiSettings.idProviderCode) && Objects.equals(this.showForceTwoFactor, multiSettings.showForceTwoFactor) && + Objects.equals(this.hasBackupAccess, multiSettings.hasBackupAccess) && Objects.equals(this.officeOnline, multiSettings.officeOnline) && Objects.equals(this.recycleBin, multiSettings.recycleBin) && Objects.equals(this.versions, multiSettings.versions) && Objects.equals(this.commonRootPermission, multiSettings.commonRootPermission) && Objects.equals(this.extendedPermissions, multiSettings.extendedPermissions) && - Objects.equals(this.hideAlbums, multiSettings.hideAlbums) && - Objects.equals(this.hidePhotos, multiSettings.hidePhotos) && + Objects.equals(this.hidePermissionManagement, multiSettings.hidePermissionManagement) && + Objects.equals(this.hideMedia, multiSettings.hideMedia) && Objects.equals(this.disableMoveFromCommon, multiSettings.disableMoveFromCommon) && Objects.equals(this.allowShare, multiSettings.allowShare) && Objects.equals(this.forceTwoFactor, multiSettings.forceTwoFactor) && - Objects.equals(this.eidRequired, multiSettings.eidRequired); + Objects.equals(this.eidLoginRequired, multiSettings.eidLoginRequired) && + Objects.equals(this.eidShareRequired, multiSettings.eidShareRequired) && + Objects.equals(this.eidShareRequiredSendMail, multiSettings.eidShareRequiredSendMail) && + Objects.equals(this.protectedShareRequired, multiSettings.protectedShareRequired) && + Objects.equals(this.protectedShareRequiredSendMail, multiSettings.protectedShareRequiredSendMail) && + Objects.equals(this.twoFactorLoginRequired, multiSettings.twoFactorLoginRequired) && + Objects.equals(this.officeDesktop, multiSettings.officeDesktop) && + Objects.equals(this.backupAccessPassword, multiSettings.backupAccessPassword) && + Objects.equals(this.ipRestrictions, multiSettings.ipRestrictions) && + Objects.equals(this.ipRestrictionsSharesExcluded, multiSettings.ipRestrictionsSharesExcluded); } @Override public int hashCode() { - return Objects.hash(versionsAvailable, idProvider, idProviderCode, showForceTwoFactor, officeOnline, recycleBin, versions, commonRootPermission, extendedPermissions, hideAlbums, hidePhotos, disableMoveFromCommon, allowShare, forceTwoFactor, eidRequired); + return Objects.hash(versionsAvailable, idProvider, idProviderCode, showForceTwoFactor, hasBackupAccess, officeOnline, recycleBin, versions, commonRootPermission, extendedPermissions, hidePermissionManagement, hideMedia, disableMoveFromCommon, allowShare, forceTwoFactor, eidLoginRequired, eidShareRequired, eidShareRequiredSendMail, protectedShareRequired, protectedShareRequiredSendMail, twoFactorLoginRequired, officeDesktop, backupAccessPassword, ipRestrictions, ipRestrictionsSharesExcluded); } @@ -397,17 +622,27 @@ public String toString() { sb.append(" idProvider: ").append(toIndentedString(idProvider)).append("\n"); sb.append(" idProviderCode: ").append(toIndentedString(idProviderCode)).append("\n"); sb.append(" showForceTwoFactor: ").append(toIndentedString(showForceTwoFactor)).append("\n"); + sb.append(" hasBackupAccess: ").append(toIndentedString(hasBackupAccess)).append("\n"); sb.append(" officeOnline: ").append(toIndentedString(officeOnline)).append("\n"); sb.append(" recycleBin: ").append(toIndentedString(recycleBin)).append("\n"); sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); sb.append(" commonRootPermission: ").append(toIndentedString(commonRootPermission)).append("\n"); sb.append(" extendedPermissions: ").append(toIndentedString(extendedPermissions)).append("\n"); - sb.append(" hideAlbums: ").append(toIndentedString(hideAlbums)).append("\n"); - sb.append(" hidePhotos: ").append(toIndentedString(hidePhotos)).append("\n"); + sb.append(" hidePermissionManagement: ").append(toIndentedString(hidePermissionManagement)).append("\n"); + sb.append(" hideMedia: ").append(toIndentedString(hideMedia)).append("\n"); sb.append(" disableMoveFromCommon: ").append(toIndentedString(disableMoveFromCommon)).append("\n"); sb.append(" allowShare: ").append(toIndentedString(allowShare)).append("\n"); sb.append(" forceTwoFactor: ").append(toIndentedString(forceTwoFactor)).append("\n"); - sb.append(" eidRequired: ").append(toIndentedString(eidRequired)).append("\n"); + sb.append(" eidLoginRequired: ").append(toIndentedString(eidLoginRequired)).append("\n"); + sb.append(" eidShareRequired: ").append(toIndentedString(eidShareRequired)).append("\n"); + sb.append(" eidShareRequiredSendMail: ").append(toIndentedString(eidShareRequiredSendMail)).append("\n"); + sb.append(" protectedShareRequired: ").append(toIndentedString(protectedShareRequired)).append("\n"); + sb.append(" protectedShareRequiredSendMail: ").append(toIndentedString(protectedShareRequiredSendMail)).append("\n"); + sb.append(" twoFactorLoginRequired: ").append(toIndentedString(twoFactorLoginRequired)).append("\n"); + sb.append(" officeDesktop: ").append(toIndentedString(officeDesktop)).append("\n"); + sb.append(" backupAccessPassword: ").append(toIndentedString(backupAccessPassword)).append("\n"); + sb.append(" ipRestrictions: ").append(toIndentedString(ipRestrictions)).append("\n"); + sb.append(" ipRestrictionsSharesExcluded: ").append(toIndentedString(ipRestrictionsSharesExcluded)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/NameRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/NameRequest.java new file mode 100644 index 00000000000..724507fef88 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/NameRequest.java @@ -0,0 +1,92 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * A NameRequest object + */ +@ApiModel(description = "A NameRequest object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class NameRequest { + @JsonProperty("name") + private String name = null; + + public NameRequest name(String name) { + this.name = name; + return this; + } + + /** + * Optional new name + * @return name + **/ + @ApiModelProperty(value = "Optional new name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NameRequest nameRequest = (NameRequest) o; + return Objects.equals(this.name, nameRequest.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NameRequest {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Object.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Object.java new file mode 100644 index 00000000000..02c28e5af49 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Object.java @@ -0,0 +1,63 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; + +/** + * Object + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class Object { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Object {\n"); + + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PartnerRetailer.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PartnerRetailer.java index 32d4755ecd5..168ac52078b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PartnerRetailer.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PartnerRetailer.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PartnerRetailer { @JsonProperty("partnerId") private String partnerId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentInfo.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentInfo.java index 68df99158b4..fb6c5695d78 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentInfo.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentInfo.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PaymentInfo { @JsonProperty("paymentMethodId") private String paymentMethodId = null; @@ -52,6 +49,9 @@ public class PaymentInfo { @JsonProperty("lastName") private String lastName = null; + @JsonProperty("emailAddress") + private String emailAddress = null; + @JsonProperty("company") private String company = null; @@ -76,21 +76,30 @@ public class PaymentInfo { @JsonProperty("city") private String city = null; - @JsonProperty("eInvoice") - private Boolean eInvoice = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; - @JsonProperty("hasRegNumber") - private Boolean hasRegNumber = null; + @JsonProperty("organizationNumber") + private String organizationNumber = null; @JsonProperty("vatNumber") private String vatNumber = null; + @JsonProperty("van") + private String van = null; + + @JsonProperty("gln") + private String gln = null; + @JsonProperty("creditCardNumber") private String creditCardNumber = null; @JsonProperty("redirectUrl") private String redirectUrl = null; + @JsonProperty("showCountryAndVATNumber") + private Boolean showCountryAndVATNumber = null; + public PaymentInfo paymentMethodId(String paymentMethodId) { this.paymentMethodId = paymentMethodId; return this; @@ -215,6 +224,24 @@ public void setLastName(String lastName) { this.lastName = lastName; } + public PaymentInfo emailAddress(String emailAddress) { + this.emailAddress = emailAddress; + return this; + } + + /** + * + * @return emailAddress + **/ + @ApiModelProperty(value = "") + public String getEmailAddress() { + return emailAddress; + } + + public void setEmailAddress(String emailAddress) { + this.emailAddress = emailAddress; + } + public PaymentInfo company(String company) { this.company = company; return this; @@ -359,40 +386,40 @@ public void setCity(String city) { this.city = city; } - public PaymentInfo eInvoice(Boolean eInvoice) { - this.eInvoice = eInvoice; + public PaymentInfo personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** * - * @return eInvoice + * @return personalIdentityNumber **/ @ApiModelProperty(value = "") - public Boolean isEInvoice() { - return eInvoice; + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setEInvoice(Boolean eInvoice) { - this.eInvoice = eInvoice; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } - public PaymentInfo hasRegNumber(Boolean hasRegNumber) { - this.hasRegNumber = hasRegNumber; + public PaymentInfo organizationNumber(String organizationNumber) { + this.organizationNumber = organizationNumber; return this; } /** * - * @return hasRegNumber + * @return organizationNumber **/ @ApiModelProperty(value = "") - public Boolean isHasRegNumber() { - return hasRegNumber; + public String getOrganizationNumber() { + return organizationNumber; } - public void setHasRegNumber(Boolean hasRegNumber) { - this.hasRegNumber = hasRegNumber; + public void setOrganizationNumber(String organizationNumber) { + this.organizationNumber = organizationNumber; } public PaymentInfo vatNumber(String vatNumber) { @@ -413,6 +440,42 @@ public void setVatNumber(String vatNumber) { this.vatNumber = vatNumber; } + public PaymentInfo van(String van) { + this.van = van; + return this; + } + + /** + * + * @return van + **/ + @ApiModelProperty(value = "") + public String getVan() { + return van; + } + + public void setVan(String van) { + this.van = van; + } + + public PaymentInfo gln(String gln) { + this.gln = gln; + return this; + } + + /** + * + * @return gln + **/ + @ApiModelProperty(value = "") + public String getGln() { + return gln; + } + + public void setGln(String gln) { + this.gln = gln; + } + public PaymentInfo creditCardNumber(String creditCardNumber) { this.creditCardNumber = creditCardNumber; return this; @@ -449,6 +512,24 @@ public void setRedirectUrl(String redirectUrl) { this.redirectUrl = redirectUrl; } + public PaymentInfo showCountryAndVATNumber(Boolean showCountryAndVATNumber) { + this.showCountryAndVATNumber = showCountryAndVATNumber; + return this; + } + + /** + * + * @return showCountryAndVATNumber + **/ + @ApiModelProperty(value = "") + public Boolean isShowCountryAndVATNumber() { + return showCountryAndVATNumber; + } + + public void setShowCountryAndVATNumber(Boolean showCountryAndVATNumber) { + this.showCountryAndVATNumber = showCountryAndVATNumber; + } + @Override public boolean equals(java.lang.Object o) { @@ -465,6 +546,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.paymentPeriods, paymentInfo.paymentPeriods) && Objects.equals(this.firstName, paymentInfo.firstName) && Objects.equals(this.lastName, paymentInfo.lastName) && + Objects.equals(this.emailAddress, paymentInfo.emailAddress) && Objects.equals(this.company, paymentInfo.company) && Objects.equals(this.country, paymentInfo.country) && Objects.equals(this.isCompany, paymentInfo.isCompany) && @@ -473,16 +555,19 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.address, paymentInfo.address) && Objects.equals(this.zipCode, paymentInfo.zipCode) && Objects.equals(this.city, paymentInfo.city) && - Objects.equals(this.eInvoice, paymentInfo.eInvoice) && - Objects.equals(this.hasRegNumber, paymentInfo.hasRegNumber) && + Objects.equals(this.personalIdentityNumber, paymentInfo.personalIdentityNumber) && + Objects.equals(this.organizationNumber, paymentInfo.organizationNumber) && Objects.equals(this.vatNumber, paymentInfo.vatNumber) && + Objects.equals(this.van, paymentInfo.van) && + Objects.equals(this.gln, paymentInfo.gln) && Objects.equals(this.creditCardNumber, paymentInfo.creditCardNumber) && - Objects.equals(this.redirectUrl, paymentInfo.redirectUrl); + Objects.equals(this.redirectUrl, paymentInfo.redirectUrl) && + Objects.equals(this.showCountryAndVATNumber, paymentInfo.showCountryAndVATNumber); } @Override public int hashCode() { - return Objects.hash(paymentMethodId, paymentPeriodId, paymentMethods, paymentPeriods, firstName, lastName, company, country, isCompany, reference, coAddress, address, zipCode, city, eInvoice, hasRegNumber, vatNumber, creditCardNumber, redirectUrl); + return Objects.hash(paymentMethodId, paymentPeriodId, paymentMethods, paymentPeriods, firstName, lastName, emailAddress, company, country, isCompany, reference, coAddress, address, zipCode, city, personalIdentityNumber, organizationNumber, vatNumber, van, gln, creditCardNumber, redirectUrl, showCountryAndVATNumber); } @@ -497,6 +582,7 @@ public String toString() { sb.append(" paymentPeriods: ").append(toIndentedString(paymentPeriods)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" isCompany: ").append(toIndentedString(isCompany)).append("\n"); @@ -505,11 +591,14 @@ public String toString() { sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" zipCode: ").append(toIndentedString(zipCode)).append("\n"); sb.append(" city: ").append(toIndentedString(city)).append("\n"); - sb.append(" eInvoice: ").append(toIndentedString(eInvoice)).append("\n"); - sb.append(" hasRegNumber: ").append(toIndentedString(hasRegNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); + sb.append(" organizationNumber: ").append(toIndentedString(organizationNumber)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); + sb.append(" van: ").append(toIndentedString(van)).append("\n"); + sb.append(" gln: ").append(toIndentedString(gln)).append("\n"); sb.append(" creditCardNumber: ").append(toIndentedString(creditCardNumber)).append("\n"); sb.append(" redirectUrl: ").append(toIndentedString(redirectUrl)).append("\n"); + sb.append(" showCountryAndVATNumber: ").append(toIndentedString(showCountryAndVATNumber)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentMethod.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentMethod.java index 01046751e75..6d2651e2b0f 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentMethod.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentMethod.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -20,17 +20,12 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; /** * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PaymentMethod { @JsonProperty("id") private String id = null; @@ -41,12 +36,6 @@ public class PaymentMethod { @JsonProperty("type") private Integer type = null; - @JsonProperty("countries") - private List countries = null; - - @JsonProperty("currencies") - private List currencies = null; - public PaymentMethod id(String id) { this.id = id; return this; @@ -89,10 +78,10 @@ public PaymentMethod type(Integer type) { } /** - * Payment method type (0 = Missing, 1 = Creditcard, 2 = Invoice) + * Payment method type (0 = None, 1 = CreditCard, 2 = Invoice, 3 = ElectronicInvoice, 4 = EDI, 5 = EmailInvoice) * @return type **/ - @ApiModelProperty(value = "Payment method type (0 = Missing, 1 = Creditcard, 2 = Invoice)") + @ApiModelProperty(value = "Payment method type (0 = None, 1 = CreditCard, 2 = Invoice, 3 = ElectronicInvoice, 4 = EDI, 5 = EmailInvoice)") public Integer getType() { return type; } @@ -101,58 +90,6 @@ public void setType(Integer type) { this.type = type; } - public PaymentMethod countries(List countries) { - this.countries = countries; - return this; - } - - public PaymentMethod addCountriesItem(String countriesItem) { - if (this.countries == null) { - this.countries = new ArrayList<>(); - } - this.countries.add(countriesItem); - return this; - } - - /** - * Payment method list of countries - * @return countries - **/ - @ApiModelProperty(value = "Payment method list of countries") - public List getCountries() { - return countries; - } - - public void setCountries(List countries) { - this.countries = countries; - } - - public PaymentMethod currencies(List currencies) { - this.currencies = currencies; - return this; - } - - public PaymentMethod addCurrenciesItem(String currenciesItem) { - if (this.currencies == null) { - this.currencies = new ArrayList<>(); - } - this.currencies.add(currenciesItem); - return this; - } - - /** - * Payment method list of currencies - * @return currencies - **/ - @ApiModelProperty(value = "Payment method list of currencies") - public List getCurrencies() { - return currencies; - } - - public void setCurrencies(List currencies) { - this.currencies = currencies; - } - @Override public boolean equals(java.lang.Object o) { @@ -165,14 +102,12 @@ public boolean equals(java.lang.Object o) { PaymentMethod paymentMethod = (PaymentMethod) o; return Objects.equals(this.id, paymentMethod.id) && Objects.equals(this.name, paymentMethod.name) && - Objects.equals(this.type, paymentMethod.type) && - Objects.equals(this.countries, paymentMethod.countries) && - Objects.equals(this.currencies, paymentMethod.currencies); + Objects.equals(this.type, paymentMethod.type); } @Override public int hashCode() { - return Objects.hash(id, name, type, countries, currencies); + return Objects.hash(id, name, type); } @@ -184,8 +119,6 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" countries: ").append(toIndentedString(countries)).append("\n"); - sb.append(" currencies: ").append(toIndentedString(currencies)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentPeriod.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentPeriod.java index 61703e64e01..6bbd209b620 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentPeriod.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PaymentPeriod.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PaymentPeriod { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Product.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Product.java index c544d34e1f9..c03c03e6dbe 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Product.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Product.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,20 +26,17 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Product { + @JsonProperty("value") + private Long value = null; + @JsonProperty("id") private String id = null; @JsonProperty("name") private String name = null; - @JsonProperty("value") - private Long value = null; - @JsonProperty("startFee") private Double startFee = null; @@ -49,6 +46,24 @@ public class Product { @JsonProperty("campaignPrice") private CampaignPrice campaignPrice = null; + public Product value(Long value) { + this.value = value; + return this; + } + + /** + * + * @return value + **/ + @ApiModelProperty(value = "") + public Long getValue() { + return value; + } + + public void setValue(Long value) { + this.value = value; + } + public Product id(String id) { this.id = id; return this; @@ -85,24 +100,6 @@ public void setName(String name) { this.name = name; } - public Product value(Long value) { - this.value = value; - return this; - } - - /** - * - * @return value - **/ - @ApiModelProperty(value = "") - public Long getValue() { - return value; - } - - public void setValue(Long value) { - this.value = value; - } - public Product startFee(Double startFee) { this.startFee = startFee; return this; @@ -167,9 +164,9 @@ public boolean equals(java.lang.Object o) { return false; } Product product = (Product) o; - return Objects.equals(this.id, product.id) && + return Objects.equals(this.value, product.value) && + Objects.equals(this.id, product.id) && Objects.equals(this.name, product.name) && - Objects.equals(this.value, product.value) && Objects.equals(this.startFee, product.startFee) && Objects.equals(this.monthlyFee, product.monthlyFee) && Objects.equals(this.campaignPrice, product.campaignPrice); @@ -177,7 +174,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, name, value, startFee, monthlyFee, campaignPrice); + return Objects.hash(value, id, name, startFee, monthlyFee, campaignPrice); } @@ -186,9 +183,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Product {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" startFee: ").append(toIndentedString(startFee)).append("\n"); sb.append(" monthlyFee: ").append(toIndentedString(monthlyFee)).append("\n"); sb.append(" campaignPrice: ").append(toIndentedString(campaignPrice)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicConfiguration.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicConfiguration.java index b21540e8f69..4d44a438c27 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicConfiguration.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicConfiguration.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PublicConfiguration { @JsonProperty("theme") private String theme = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicShareInfo.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicShareInfo.java index 93c368f0d02..82a1cbab265 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicShareInfo.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicShareInfo.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.Branding; import ch.cyberduck.core.storegate.io.swagger.client.model.ShareUser; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -26,10 +27,7 @@ * Item containing information about a public available share. */ @ApiModel(description = "Item containing information about a public available share.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PublicShareInfo { @JsonProperty("id") private String id = null; @@ -67,6 +65,9 @@ public class PublicShareInfo { @JsonProperty("fileAllowOfficeOnlineEdit") private Boolean fileAllowOfficeOnlineEdit = null; + @JsonProperty("branding") + private Branding branding = null; + public PublicShareInfo id(String id) { this.id = id; return this; @@ -235,10 +236,10 @@ public PublicShareInfo authMethod(Integer authMethod) { } /** - * (0 = None, 1 = Password, 2 = BankID) + * (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = " (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = " (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } @@ -283,6 +284,24 @@ public void setFileAllowOfficeOnlineEdit(Boolean fileAllowOfficeOnlineEdit) { this.fileAllowOfficeOnlineEdit = fileAllowOfficeOnlineEdit; } + public PublicShareInfo branding(Branding branding) { + this.branding = branding; + return this; + } + + /** + * Information about branding + * @return branding + **/ + @ApiModelProperty(value = "Information about branding") + public Branding getBranding() { + return branding; + } + + public void setBranding(Branding branding) { + this.branding = branding; + } + @Override public boolean equals(java.lang.Object o) { @@ -304,12 +323,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.retailerId, publicShareInfo.retailerId) && Objects.equals(this.authMethod, publicShareInfo.authMethod) && Objects.equals(this.fileAllowOfficeOnline, publicShareInfo.fileAllowOfficeOnline) && - Objects.equals(this.fileAllowOfficeOnlineEdit, publicShareInfo.fileAllowOfficeOnlineEdit); + Objects.equals(this.fileAllowOfficeOnlineEdit, publicShareInfo.fileAllowOfficeOnlineEdit) && + Objects.equals(this.branding, publicShareInfo.branding); } @Override public int hashCode() { - return Objects.hash(id, name, type, fileAllowUpload, contentHidden, mediaAllowDownload, sharedBy, partnerId, retailerId, authMethod, fileAllowOfficeOnline, fileAllowOfficeOnlineEdit); + return Objects.hash(id, name, type, fileAllowUpload, contentHidden, mediaAllowDownload, sharedBy, partnerId, retailerId, authMethod, fileAllowOfficeOnline, fileAllowOfficeOnlineEdit, branding); } @@ -330,6 +350,7 @@ public String toString() { sb.append(" authMethod: ").append(toIndentedString(authMethod)).append("\n"); sb.append(" fileAllowOfficeOnline: ").append(toIndentedString(fileAllowOfficeOnline)).append("\n"); sb.append(" fileAllowOfficeOnlineEdit: ").append(toIndentedString(fileAllowOfficeOnlineEdit)).append("\n"); + sb.append(" branding: ").append(toIndentedString(branding)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicWebUrls.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicWebUrls.java index 77f5802d87e..4fa3b93544b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicWebUrls.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/PublicWebUrls.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class PublicWebUrls { @JsonProperty("supportUrl") private String supportUrl = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecentGroupedContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecentGroupedContents.java index cb16664425c..ce3add0f79c 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecentGroupedContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecentGroupedContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * Contains a list of grouped file items. */ @ApiModel(description = "Contains a list of grouped file items.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RecentGroupedContents { @JsonProperty("totalRowCount") private Integer totalRowCount = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Recipient.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Recipient.java new file mode 100644 index 00000000000..fc9b1314547 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Recipient.java @@ -0,0 +1,207 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * A resource recipient. + */ +@ApiModel(description = "A resource recipient.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class Recipient { + @JsonProperty("id") + private String id = null; + + @JsonProperty("firstName") + private String firstName = null; + + @JsonProperty("lastName") + private String lastName = null; + + @JsonProperty("email") + private String email = null; + + @JsonProperty("personalIdentifier") + private String personalIdentifier = null; + + @JsonProperty("phoneNumber") + private String phoneNumber = null; + + public Recipient id(String id) { + this.id = id; + return this; + } + + /** + * The recipient id. + * @return id + **/ + @ApiModelProperty(value = "The recipient id.") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Recipient firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * The recipient firstname. + * @return firstName + **/ + @ApiModelProperty(value = "The recipient firstname.") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public Recipient lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * The recipient last name. + * @return lastName + **/ + @ApiModelProperty(value = "The recipient last name.") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public Recipient email(String email) { + this.email = email; + return this; + } + + /** + * The recipient email. + * @return email + **/ + @ApiModelProperty(value = "The recipient email.") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public Recipient personalIdentifier(String personalIdentifier) { + this.personalIdentifier = personalIdentifier; + return this; + } + + /** + * The recipient personal identifier. + * @return personalIdentifier + **/ + @ApiModelProperty(value = "The recipient personal identifier.") + public String getPersonalIdentifier() { + return personalIdentifier; + } + + public void setPersonalIdentifier(String personalIdentifier) { + this.personalIdentifier = personalIdentifier; + } + + public Recipient phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The recipient phone number. + * @return phoneNumber + **/ + @ApiModelProperty(value = "The recipient phone number.") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Recipient recipient = (Recipient) o; + return Objects.equals(this.id, recipient.id) && + Objects.equals(this.firstName, recipient.firstName) && + Objects.equals(this.lastName, recipient.lastName) && + Objects.equals(this.email, recipient.email) && + Objects.equals(this.personalIdentifier, recipient.personalIdentifier) && + Objects.equals(this.phoneNumber, recipient.phoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(id, firstName, lastName, email, personalIdentifier, phoneNumber); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Recipient {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" personalIdentifier: ").append(toIndentedString(personalIdentifier)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecipientContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecipientContents.java new file mode 100644 index 00000000000..aa72ec237b2 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecipientContents.java @@ -0,0 +1,126 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.Recipient; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +/** + * A fileContent object + */ +@ApiModel(description = "A fileContent object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class RecipientContents { + @JsonProperty("totalRowCount") + private Integer totalRowCount = null; + + @JsonProperty("recipients") + private List recipients = null; + + public RecipientContents totalRowCount(Integer totalRowCount) { + this.totalRowCount = totalRowCount; + return this; + } + + /** + * Total number of item. + * @return totalRowCount + **/ + @ApiModelProperty(value = "Total number of item.") + public Integer getTotalRowCount() { + return totalRowCount; + } + + public void setTotalRowCount(Integer totalRowCount) { + this.totalRowCount = totalRowCount; + } + + public RecipientContents recipients(List recipients) { + this.recipients = recipients; + return this; + } + + public RecipientContents addRecipientsItem(Recipient recipientsItem) { + if (this.recipients == null) { + this.recipients = new ArrayList<>(); + } + this.recipients.add(recipientsItem); + return this; + } + + /** + * The list of items. + * @return recipients + **/ + @ApiModelProperty(value = "The list of items.") + public List getRecipients() { + return recipients; + } + + public void setRecipients(List recipients) { + this.recipients = recipients; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecipientContents recipientContents = (RecipientContents) o; + return Objects.equals(this.totalRowCount, recipientContents.totalRowCount) && + Objects.equals(this.recipients, recipientContents.recipients); + } + + @Override + public int hashCode() { + return Objects.hash(totalRowCount, recipients); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecipientContents {\n"); + + sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n"); + sb.append(" recipients: ").append(toIndentedString(recipients)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecipientRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecipientRequest.java new file mode 100644 index 00000000000..4f20e9d6d9c --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecipientRequest.java @@ -0,0 +1,184 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * A CreateMediaItemRequest request object + */ +@ApiModel(description = "A CreateMediaItemRequest request object") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class RecipientRequest { + @JsonProperty("firstName") + private String firstName = null; + + @JsonProperty("lastName") + private String lastName = null; + + @JsonProperty("email") + private String email = null; + + @JsonProperty("personalIdentifier") + private String personalIdentifier = null; + + @JsonProperty("phoneNumber") + private String phoneNumber = null; + + public RecipientRequest firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * The FirstName + * @return firstName + **/ + @ApiModelProperty(value = "The FirstName") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public RecipientRequest lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * The LastName + * @return lastName + **/ + @ApiModelProperty(value = "The LastName") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public RecipientRequest email(String email) { + this.email = email; + return this; + } + + /** + * The Email + * @return email + **/ + @ApiModelProperty(value = "The Email") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public RecipientRequest personalIdentifier(String personalIdentifier) { + this.personalIdentifier = personalIdentifier; + return this; + } + + /** + * The Personal identifier + * @return personalIdentifier + **/ + @ApiModelProperty(value = "The Personal identifier") + public String getPersonalIdentifier() { + return personalIdentifier; + } + + public void setPersonalIdentifier(String personalIdentifier) { + this.personalIdentifier = personalIdentifier; + } + + public RecipientRequest phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The Phone number + * @return phoneNumber + **/ + @ApiModelProperty(value = "The Phone number") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecipientRequest recipientRequest = (RecipientRequest) o; + return Objects.equals(this.firstName, recipientRequest.firstName) && + Objects.equals(this.lastName, recipientRequest.lastName) && + Objects.equals(this.email, recipientRequest.email) && + Objects.equals(this.personalIdentifier, recipientRequest.personalIdentifier) && + Objects.equals(this.phoneNumber, recipientRequest.phoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, lastName, email, personalIdentifier, phoneNumber); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecipientRequest {\n"); + + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" personalIdentifier: ").append(toIndentedString(personalIdentifier)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinContents.java index 8027c7f36c9..3cdeb15ee47 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * Contains a list of recyclebin items. */ @ApiModel(description = "Contains a list of recyclebin items.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RecycleBinContents { @JsonProperty("totalRowCount") private Integer totalRowCount = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinItem.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinItem.java index 36fc9e7ce58..f7296510ef2 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinItem.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RecycleBinItem.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A recyclebin item. */ @ApiModel(description = "A recyclebin item.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RecycleBinItem { @JsonProperty("originalLocation") private String originalLocation = null; @@ -43,18 +40,6 @@ public class RecycleBinItem { @JsonProperty("versions") private Integer versions = null; - @JsonProperty("permission") - private Integer permission = null; - - @JsonProperty("md5") - private String md5 = null; - - @JsonProperty("path") - private String path = null; - - @JsonProperty("createdById") - private String createdById = null; - @JsonProperty("id") private String id = null; @@ -82,6 +67,9 @@ public class RecycleBinItem { @JsonProperty("ownerId") private String ownerId = null; + @JsonProperty("permission") + private Integer permission = null; + public RecycleBinItem originalLocation(String originalLocation) { this.originalLocation = originalLocation; return this; @@ -154,78 +142,6 @@ public void setVersions(Integer versions) { this.versions = versions; } - public RecycleBinItem permission(Integer permission) { - this.permission = permission; - return this; - } - - /** - * Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None) - * @return permission - **/ - @ApiModelProperty(value = "Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None)") - public Integer getPermission() { - return permission; - } - - public void setPermission(Integer permission) { - this.permission = permission; - } - - public RecycleBinItem md5(String md5) { - this.md5 = md5; - return this; - } - - /** - * Not Checksum. Only avaialable for SyncClient - * @return md5 - **/ - @ApiModelProperty(value = "Not Checksum. Only avaialable for SyncClient") - public String getMd5() { - return md5; - } - - public void setMd5(String md5) { - this.md5 = md5; - } - - public RecycleBinItem path(String path) { - this.path = path; - return this; - } - - /** - * The path to the item - * @return path - **/ - @ApiModelProperty(value = "The path to the item") - public String getPath() { - return path; - } - - public void setPath(String path) { - this.path = path; - } - - public RecycleBinItem createdById(String createdById) { - this.createdById = createdById; - return this; - } - - /** - * The created by id. - * @return createdById - **/ - @ApiModelProperty(value = "The created by id.") - public String getCreatedById() { - return createdById; - } - - public void setCreatedById(String createdById) { - this.createdById = createdById; - } - public RecycleBinItem id(String id) { this.id = id; return this; @@ -358,10 +274,10 @@ public RecycleBinItem flags(Integer flags) { } /** - * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite) + * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification) * @return flags **/ - @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite)") + @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification)") public Integer getFlags() { return flags; } @@ -388,6 +304,24 @@ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } + public RecycleBinItem permission(Integer permission) { + this.permission = permission; + return this; + } + + /** + * Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None) + * @return permission + **/ + @ApiModelProperty(value = "Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None)") + public Integer getPermission() { + return permission; + } + + public void setPermission(Integer permission) { + this.permission = permission; + } + @Override public boolean equals(java.lang.Object o) { @@ -402,10 +336,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.deleted, recycleBinItem.deleted) && Objects.equals(this.deletedBy, recycleBinItem.deletedBy) && Objects.equals(this.versions, recycleBinItem.versions) && - Objects.equals(this.permission, recycleBinItem.permission) && - Objects.equals(this.md5, recycleBinItem.md5) && - Objects.equals(this.path, recycleBinItem.path) && - Objects.equals(this.createdById, recycleBinItem.createdById) && Objects.equals(this.id, recycleBinItem.id) && Objects.equals(this.name, recycleBinItem.name) && Objects.equals(this.size, recycleBinItem.size) && @@ -414,12 +344,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaded, recycleBinItem.uploaded) && Objects.equals(this.accessed, recycleBinItem.accessed) && Objects.equals(this.flags, recycleBinItem.flags) && - Objects.equals(this.ownerId, recycleBinItem.ownerId); + Objects.equals(this.ownerId, recycleBinItem.ownerId) && + Objects.equals(this.permission, recycleBinItem.permission); } @Override public int hashCode() { - return Objects.hash(originalLocation, deleted, deletedBy, versions, permission, md5, path, createdById, id, name, size, created, modified, uploaded, accessed, flags, ownerId); + return Objects.hash(originalLocation, deleted, deletedBy, versions, id, name, size, created, modified, uploaded, accessed, flags, ownerId, permission); } @@ -432,10 +363,6 @@ public String toString() { sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n"); sb.append(" deletedBy: ").append(toIndentedString(deletedBy)).append("\n"); sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); - sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); - sb.append(" md5: ").append(toIndentedString(md5)).append("\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); - sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); @@ -445,6 +372,7 @@ public String toString() { sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); + sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformation.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformation.java index 1d9b01a992f..4b7e28add5a 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformation.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformation.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -32,10 +32,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RegistrationInformation { @JsonProperty("salepackage") private UpgradeSalepackage salepackage = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformationSubuser.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformationSubuser.java index 006b70075a5..0fa7ba05428 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformationSubuser.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RegistrationInformationSubuser.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RegistrationInformationSubuser { @JsonProperty("partnerId") private String partnerId = null; @@ -48,8 +45,8 @@ public class RegistrationInformationSubuser { @JsonProperty("isBankIDLogin") private Boolean isBankIDLogin = null; - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("email") private String email = null; @@ -168,22 +165,22 @@ public void setIsBankIDLogin(Boolean isBankIDLogin) { this.isBankIDLogin = isBankIDLogin; } - public RegistrationInformationSubuser socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public RegistrationInformationSubuser personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** - * SocialSecurityNumber is set by admin - * @return socialSecurityNumber + * PersonalIdentityNumber is set by admin + * @return personalIdentityNumber **/ - @ApiModelProperty(value = "SocialSecurityNumber is set by admin") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + @ApiModelProperty(value = "PersonalIdentityNumber is set by admin") + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public RegistrationInformationSubuser email(String email) { @@ -256,7 +253,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.adminCompany, registrationInformationSubuser.adminCompany) && Objects.equals(this.salepackageName, registrationInformationSubuser.salepackageName) && Objects.equals(this.isBankIDLogin, registrationInformationSubuser.isBankIDLogin) && - Objects.equals(this.socialSecurityNumber, registrationInformationSubuser.socialSecurityNumber) && + Objects.equals(this.personalIdentityNumber, registrationInformationSubuser.personalIdentityNumber) && Objects.equals(this.email, registrationInformationSubuser.email) && Objects.equals(this.firstName, registrationInformationSubuser.firstName) && Objects.equals(this.lastName, registrationInformationSubuser.lastName); @@ -264,7 +261,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(partnerId, retailerId, adminName, adminCompany, salepackageName, isBankIDLogin, socialSecurityNumber, email, firstName, lastName); + return Objects.hash(partnerId, retailerId, adminName, adminCompany, salepackageName, isBankIDLogin, personalIdentityNumber, email, firstName, lastName); } @@ -279,7 +276,7 @@ public String toString() { sb.append(" adminCompany: ").append(toIndentedString(adminCompany)).append("\n"); sb.append(" salepackageName: ").append(toIndentedString(salepackageName)).append("\n"); sb.append(" isBankIDLogin: ").append(toIndentedString(isBankIDLogin)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RootFolder.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RootFolder.java index d2896cab4b9..2b124e6e126 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RootFolder.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/RootFolder.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * A rootfolder is folder that contains part of the account. An account usally have multiple root folders, like \"home\" and \"backup\". */ @ApiModel(description = "A rootfolder is folder that contains part of the account. An account usally have multiple root folders, like \"home\" and \"backup\".") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class RootFolder { @JsonProperty("path") private String path = null; @@ -64,6 +61,9 @@ public class RootFolder { @JsonProperty("ownerId") private String ownerId = null; + @JsonProperty("permission") + private Integer permission = null; + public RootFolder path(String path) { this.path = path; return this; @@ -88,10 +88,10 @@ public RootFolder rootFolderType(Integer rootFolderType) { } /** - * The rootfolder type. (0 = Files, 1 = Common, 2 = Backup) + * The rootfolder type. (0 = Files, 1 = Common, 2 = Backup, 3 = PhoneBackup) * @return rootFolderType **/ - @ApiModelProperty(value = "The rootfolder type. (0 = Files, 1 = Common, 2 = Backup)") + @ApiModelProperty(value = "The rootfolder type. (0 = Files, 1 = Common, 2 = Backup, 3 = PhoneBackup)") public Integer getRootFolderType() { return rootFolderType; } @@ -232,10 +232,10 @@ public RootFolder flags(Integer flags) { } /** - * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite) + * Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification) * @return flags **/ - @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite)") + @ApiModelProperty(value = "Indicates the item type. (0 = None, 1 = Folder, 2 = Shared, 4 = Locked, 8 = Image, 16 = Streamable, 32 = Video, 64 = Doc, 128 = StreamableDoc, 256 = HasThumbnail, 512 = Hidden, 1024 = Favorite, 2048 = HasNotification)") public Integer getFlags() { return flags; } @@ -262,6 +262,24 @@ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } + public RootFolder permission(Integer permission) { + this.permission = permission; + return this; + } + + /** + * Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None) + * @return permission + **/ + @ApiModelProperty(value = "Included if the item supports permission (0 = NoAccess, 1 = ReadOnly, 2 = ReadWrite, 4 = Synchronize, 99 = FullControl, -1 = None)") + public Integer getPermission() { + return permission; + } + + public void setPermission(Integer permission) { + this.permission = permission; + } + @Override public boolean equals(java.lang.Object o) { @@ -282,12 +300,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.uploaded, rootFolder.uploaded) && Objects.equals(this.accessed, rootFolder.accessed) && Objects.equals(this.flags, rootFolder.flags) && - Objects.equals(this.ownerId, rootFolder.ownerId); + Objects.equals(this.ownerId, rootFolder.ownerId) && + Objects.equals(this.permission, rootFolder.permission); } @Override public int hashCode() { - return Objects.hash(path, rootFolderType, id, name, size, created, modified, uploaded, accessed, flags, ownerId); + return Objects.hash(path, rootFolderType, id, name, size, created, modified, uploaded, accessed, flags, ownerId, permission); } @@ -307,6 +326,7 @@ public String toString() { sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); sb.append(" flags: ").append(toIndentedString(flags)).append("\n"); sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); + sb.append(" permission: ").append(toIndentedString(permission)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Salepackage.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Salepackage.java index 8ffa240eaee..e072236d88e 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Salepackage.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Salepackage.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Arrays; import ch.cyberduck.core.storegate.io.swagger.client.model.CampaignPrice; -import ch.cyberduck.core.storegate.io.swagger.client.model.SalepackageProduct; +import ch.cyberduck.core.storegate.io.swagger.client.model.SalepackageProducts; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Salepackage { @JsonProperty("id") private String id = null; @@ -41,20 +38,8 @@ public class Salepackage { @JsonProperty("monthlyFee") private Double monthlyFee = null; - @JsonProperty("storage") - private SalepackageProduct storage = null; - - @JsonProperty("multi") - private SalepackageProduct multi = null; - - @JsonProperty("backup") - private SalepackageProduct backup = null; - - @JsonProperty("sync") - private SalepackageProduct sync = null; - - @JsonProperty("bankID") - private SalepackageProduct bankID = null; + @JsonProperty("products") + private SalepackageProducts products = null; @JsonProperty("currency") private String currency = null; @@ -122,94 +107,22 @@ public void setMonthlyFee(Double monthlyFee) { this.monthlyFee = monthlyFee; } - public Salepackage storage(SalepackageProduct storage) { - this.storage = storage; - return this; - } - - /** - * - * @return storage - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getStorage() { - return storage; - } - - public void setStorage(SalepackageProduct storage) { - this.storage = storage; - } - - public Salepackage multi(SalepackageProduct multi) { - this.multi = multi; - return this; - } - - /** - * - * @return multi - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getMulti() { - return multi; - } - - public void setMulti(SalepackageProduct multi) { - this.multi = multi; - } - - public Salepackage backup(SalepackageProduct backup) { - this.backup = backup; - return this; - } - - /** - * - * @return backup - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getBackup() { - return backup; - } - - public void setBackup(SalepackageProduct backup) { - this.backup = backup; - } - - public Salepackage sync(SalepackageProduct sync) { - this.sync = sync; - return this; - } - - /** - * - * @return sync - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getSync() { - return sync; - } - - public void setSync(SalepackageProduct sync) { - this.sync = sync; - } - - public Salepackage bankID(SalepackageProduct bankID) { - this.bankID = bankID; + public Salepackage products(SalepackageProducts products) { + this.products = products; return this; } /** * - * @return bankID + * @return products **/ @ApiModelProperty(value = "") - public SalepackageProduct getBankID() { - return bankID; + public SalepackageProducts getProducts() { + return products; } - public void setBankID(SalepackageProduct bankID) { - this.bankID = bankID; + public void setProducts(SalepackageProducts products) { + this.products = products; } public Salepackage currency(String currency) { @@ -297,11 +210,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.id, salepackage.id) && Objects.equals(this.name, salepackage.name) && Objects.equals(this.monthlyFee, salepackage.monthlyFee) && - Objects.equals(this.storage, salepackage.storage) && - Objects.equals(this.multi, salepackage.multi) && - Objects.equals(this.backup, salepackage.backup) && - Objects.equals(this.sync, salepackage.sync) && - Objects.equals(this.bankID, salepackage.bankID) && + Objects.equals(this.products, salepackage.products) && Objects.equals(this.currency, salepackage.currency) && Objects.equals(this.isInclVAT, salepackage.isInclVAT) && Objects.equals(this.campaignPrice, salepackage.campaignPrice) && @@ -310,7 +219,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, name, monthlyFee, storage, multi, backup, sync, bankID, currency, isInclVAT, campaignPrice, campaignText); + return Objects.hash(id, name, monthlyFee, products, currency, isInclVAT, campaignPrice, campaignText); } @@ -322,11 +231,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" monthlyFee: ").append(toIndentedString(monthlyFee)).append("\n"); - sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); - sb.append(" multi: ").append(toIndentedString(multi)).append("\n"); - sb.append(" backup: ").append(toIndentedString(backup)).append("\n"); - sb.append(" sync: ").append(toIndentedString(sync)).append("\n"); - sb.append(" bankID: ").append(toIndentedString(bankID)).append("\n"); + sb.append(" products: ").append(toIndentedString(products)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" isInclVAT: ").append(toIndentedString(isInclVAT)).append("\n"); sb.append(" campaignPrice: ").append(toIndentedString(campaignPrice)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProduct.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProduct.java index 00a588c296f..1a125a068a0 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProduct.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProduct.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SalepackageProduct { @JsonProperty("currentId") private String currentId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProducts.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProducts.java new file mode 100644 index 00000000000..8dd24c8a593 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageProducts.java @@ -0,0 +1,255 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.SalepackageProduct; +import ch.cyberduck.core.storegate.io.swagger.client.model.SalepackageSingleProduct; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class SalepackageProducts { + @JsonProperty("storage") + private SalepackageProduct storage = null; + + @JsonProperty("multi") + private SalepackageProduct multi = null; + + @JsonProperty("backup") + private SalepackageProduct backup = null; + + @JsonProperty("sync") + private SalepackageProduct sync = null; + + @JsonProperty("bankID") + private SalepackageProduct bankID = null; + + @JsonProperty("branding") + private SalepackageSingleProduct branding = null; + + @JsonProperty("signing") + private SalepackageProduct signing = null; + + @JsonProperty("access") + private SalepackageSingleProduct access = null; + + public SalepackageProducts storage(SalepackageProduct storage) { + this.storage = storage; + return this; + } + + /** + * + * @return storage + **/ + @ApiModelProperty(value = "") + public SalepackageProduct getStorage() { + return storage; + } + + public void setStorage(SalepackageProduct storage) { + this.storage = storage; + } + + public SalepackageProducts multi(SalepackageProduct multi) { + this.multi = multi; + return this; + } + + /** + * + * @return multi + **/ + @ApiModelProperty(value = "") + public SalepackageProduct getMulti() { + return multi; + } + + public void setMulti(SalepackageProduct multi) { + this.multi = multi; + } + + public SalepackageProducts backup(SalepackageProduct backup) { + this.backup = backup; + return this; + } + + /** + * + * @return backup + **/ + @ApiModelProperty(value = "") + public SalepackageProduct getBackup() { + return backup; + } + + public void setBackup(SalepackageProduct backup) { + this.backup = backup; + } + + public SalepackageProducts sync(SalepackageProduct sync) { + this.sync = sync; + return this; + } + + /** + * + * @return sync + **/ + @ApiModelProperty(value = "") + public SalepackageProduct getSync() { + return sync; + } + + public void setSync(SalepackageProduct sync) { + this.sync = sync; + } + + public SalepackageProducts bankID(SalepackageProduct bankID) { + this.bankID = bankID; + return this; + } + + /** + * + * @return bankID + **/ + @ApiModelProperty(value = "") + public SalepackageProduct getBankID() { + return bankID; + } + + public void setBankID(SalepackageProduct bankID) { + this.bankID = bankID; + } + + public SalepackageProducts branding(SalepackageSingleProduct branding) { + this.branding = branding; + return this; + } + + /** + * + * @return branding + **/ + @ApiModelProperty(value = "") + public SalepackageSingleProduct getBranding() { + return branding; + } + + public void setBranding(SalepackageSingleProduct branding) { + this.branding = branding; + } + + public SalepackageProducts signing(SalepackageProduct signing) { + this.signing = signing; + return this; + } + + /** + * + * @return signing + **/ + @ApiModelProperty(value = "") + public SalepackageProduct getSigning() { + return signing; + } + + public void setSigning(SalepackageProduct signing) { + this.signing = signing; + } + + public SalepackageProducts access(SalepackageSingleProduct access) { + this.access = access; + return this; + } + + /** + * + * @return access + **/ + @ApiModelProperty(value = "") + public SalepackageSingleProduct getAccess() { + return access; + } + + public void setAccess(SalepackageSingleProduct access) { + this.access = access; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SalepackageProducts salepackageProducts = (SalepackageProducts) o; + return Objects.equals(this.storage, salepackageProducts.storage) && + Objects.equals(this.multi, salepackageProducts.multi) && + Objects.equals(this.backup, salepackageProducts.backup) && + Objects.equals(this.sync, salepackageProducts.sync) && + Objects.equals(this.bankID, salepackageProducts.bankID) && + Objects.equals(this.branding, salepackageProducts.branding) && + Objects.equals(this.signing, salepackageProducts.signing) && + Objects.equals(this.access, salepackageProducts.access); + } + + @Override + public int hashCode() { + return Objects.hash(storage, multi, backup, sync, bankID, branding, signing, access); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SalepackageProducts {\n"); + + sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); + sb.append(" multi: ").append(toIndentedString(multi)).append("\n"); + sb.append(" backup: ").append(toIndentedString(backup)).append("\n"); + sb.append(" sync: ").append(toIndentedString(sync)).append("\n"); + sb.append(" bankID: ").append(toIndentedString(bankID)).append("\n"); + sb.append(" branding: ").append(toIndentedString(branding)).append("\n"); + sb.append(" signing: ").append(toIndentedString(signing)).append("\n"); + sb.append(" access: ").append(toIndentedString(access)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageSingleProduct.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageSingleProduct.java new file mode 100644 index 00000000000..91824a4e691 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SalepackageSingleProduct.java @@ -0,0 +1,255 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.CampaignPrice; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.joda.time.DateTime; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class SalepackageSingleProduct { + @JsonProperty("active") + private Boolean active = null; + + @JsonProperty("locked") + private Boolean locked = null; + + @JsonProperty("expires") + private DateTime expires = null; + + @JsonProperty("id") + private String id = null; + + @JsonProperty("name") + private String name = null; + + @JsonProperty("startFee") + private Double startFee = null; + + @JsonProperty("monthlyFee") + private Double monthlyFee = null; + + @JsonProperty("campaignPrice") + private CampaignPrice campaignPrice = null; + + public SalepackageSingleProduct active(Boolean active) { + this.active = active; + return this; + } + + /** + * + * @return active + **/ + @ApiModelProperty(value = "") + public Boolean isActive() { + return active; + } + + public void setActive(Boolean active) { + this.active = active; + } + + public SalepackageSingleProduct locked(Boolean locked) { + this.locked = locked; + return this; + } + + /** + * + * @return locked + **/ + @ApiModelProperty(value = "") + public Boolean isLocked() { + return locked; + } + + public void setLocked(Boolean locked) { + this.locked = locked; + } + + public SalepackageSingleProduct expires(DateTime expires) { + this.expires = expires; + return this; + } + + /** + * + * @return expires + **/ + @ApiModelProperty(value = "") + public DateTime getExpires() { + return expires; + } + + public void setExpires(DateTime expires) { + this.expires = expires; + } + + public SalepackageSingleProduct id(String id) { + this.id = id; + return this; + } + + /** + * + * @return id + **/ + @ApiModelProperty(value = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SalepackageSingleProduct name(String name) { + this.name = name; + return this; + } + + /** + * + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SalepackageSingleProduct startFee(Double startFee) { + this.startFee = startFee; + return this; + } + + /** + * + * @return startFee + **/ + @ApiModelProperty(value = "") + public Double getStartFee() { + return startFee; + } + + public void setStartFee(Double startFee) { + this.startFee = startFee; + } + + public SalepackageSingleProduct monthlyFee(Double monthlyFee) { + this.monthlyFee = monthlyFee; + return this; + } + + /** + * + * @return monthlyFee + **/ + @ApiModelProperty(value = "") + public Double getMonthlyFee() { + return monthlyFee; + } + + public void setMonthlyFee(Double monthlyFee) { + this.monthlyFee = monthlyFee; + } + + public SalepackageSingleProduct campaignPrice(CampaignPrice campaignPrice) { + this.campaignPrice = campaignPrice; + return this; + } + + /** + * + * @return campaignPrice + **/ + @ApiModelProperty(value = "") + public CampaignPrice getCampaignPrice() { + return campaignPrice; + } + + public void setCampaignPrice(CampaignPrice campaignPrice) { + this.campaignPrice = campaignPrice; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SalepackageSingleProduct salepackageSingleProduct = (SalepackageSingleProduct) o; + return Objects.equals(this.active, salepackageSingleProduct.active) && + Objects.equals(this.locked, salepackageSingleProduct.locked) && + Objects.equals(this.expires, salepackageSingleProduct.expires) && + Objects.equals(this.id, salepackageSingleProduct.id) && + Objects.equals(this.name, salepackageSingleProduct.name) && + Objects.equals(this.startFee, salepackageSingleProduct.startFee) && + Objects.equals(this.monthlyFee, salepackageSingleProduct.monthlyFee) && + Objects.equals(this.campaignPrice, salepackageSingleProduct.campaignPrice); + } + + @Override + public int hashCode() { + return Objects.hash(active, locked, expires, id, name, startFee, monthlyFee, campaignPrice); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SalepackageSingleProduct {\n"); + + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" locked: ").append(toIndentedString(locked)).append("\n"); + sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" startFee: ").append(toIndentedString(startFee)).append("\n"); + sb.append(" monthlyFee: ").append(toIndentedString(monthlyFee)).append("\n"); + sb.append(" campaignPrice: ").append(toIndentedString(campaignPrice)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SearchFileContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SearchFileContents.java index b5a34bf10e3..8def26c66a8 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SearchFileContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SearchFileContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * Contains a list of PathFiles. */ @ApiModel(description = "Contains a list of PathFiles.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SearchFileContents { @JsonProperty("totalRowCount") private Integer totalRowCount = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Server.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Server.java index a279f324a8e..5b0e106e43d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Server.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Server.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * Server information object */ @ApiModel(description = "Server information object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Server { @JsonProperty("version") private String version = null; @@ -40,6 +37,9 @@ public class Server { @JsonProperty("timestamp") private DateTime timestamp = null; + @JsonProperty("apiVersion") + private String apiVersion = null; + public Server version(String version) { this.version = version; return this; @@ -94,6 +94,24 @@ public void setTimestamp(DateTime timestamp) { this.timestamp = timestamp; } + public Server apiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * The api version + * @return apiVersion + **/ + @ApiModelProperty(value = "The api version") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + @Override public boolean equals(java.lang.Object o) { @@ -106,12 +124,13 @@ public boolean equals(java.lang.Object o) { Server server = (Server) o; return Objects.equals(this.version, server.version) && Objects.equals(this.serverId, server.serverId) && - Objects.equals(this.timestamp, server.timestamp); + Objects.equals(this.timestamp, server.timestamp) && + Objects.equals(this.apiVersion, server.apiVersion); } @Override public int hashCode() { - return Objects.hash(version, serverId, timestamp); + return Objects.hash(version, serverId, timestamp, apiVersion); } @@ -123,6 +142,7 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SetPaymentStatusRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SetPaymentStatusRequest.java index 79a089598d6..011dc54f7d6 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SetPaymentStatusRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SetPaymentStatusRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SetPaymentStatusRequest { @JsonProperty("transactionId") private String transactionId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Share.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Share.java index c475ac150e4..799fcddb492 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Share.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Share.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * Information about the enhanced share. */ @ApiModel(description = "Information about the enhanced share.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Share { @JsonProperty("itemId") private String itemId = null; @@ -46,6 +43,9 @@ public class Share { @JsonProperty("type") private Integer type = null; + @JsonProperty("hasThumbnail") + private Boolean hasThumbnail = null; + @JsonProperty("id") private String id = null; @@ -172,6 +172,24 @@ public void setType(Integer type) { this.type = type; } + public Share hasThumbnail(Boolean hasThumbnail) { + this.hasThumbnail = hasThumbnail; + return this; + } + + /** + * Indicated if share has thumbnail + * @return hasThumbnail + **/ + @ApiModelProperty(value = "Indicated if share has thumbnail") + public Boolean isHasThumbnail() { + return hasThumbnail; + } + + public void setHasThumbnail(Boolean hasThumbnail) { + this.hasThumbnail = hasThumbnail; + } + public Share id(String id) { this.id = id; return this; @@ -472,10 +490,10 @@ public Share authMethod(Integer authMethod) { } /** - * Share AuthMethod (0 = None, 1 = Password, 2 = BankID) + * Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } @@ -534,6 +552,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.name, share.name) && Objects.equals(this.path, share.path) && Objects.equals(this.type, share.type) && + Objects.equals(this.hasThumbnail, share.hasThumbnail) && Objects.equals(this.id, share.id) && Objects.equals(this.created, share.created) && Objects.equals(this.accessed, share.accessed) && @@ -556,7 +575,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(itemId, name, path, type, id, created, accessed, lastAccessed, ownerId, password, sentToEmails, accessLimit, accessUntil, allowUpload, uploadNotificationEmails, uploadHideContents, mediaAllowDownload, allowComments, bankIDContacts, authMethod, allowOfficeOnline, allowOfficeOnlineEdit); + return Objects.hash(itemId, name, path, type, hasThumbnail, id, created, accessed, lastAccessed, ownerId, password, sentToEmails, accessLimit, accessUntil, allowUpload, uploadNotificationEmails, uploadHideContents, mediaAllowDownload, allowComments, bankIDContacts, authMethod, allowOfficeOnline, allowOfficeOnlineEdit); } @@ -569,6 +588,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" hasThumbnail: ").append(toIndentedString(hasThumbnail)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" accessed: ").append(toIndentedString(accessed)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareContents.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareContents.java index 276d25bba2c..74258ac0350 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareContents.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareContents.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * Contains a list of enhanced shared pathResourceItems. */ @ApiModel(description = "Contains a list of enhanced shared pathResourceItems.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ShareContents { @JsonProperty("totalRowCount") private Integer totalRowCount = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareMailRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareMailRequest.java index 021573e5b89..eddefde633d 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareMailRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareMailRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * A share mail request object */ @ApiModel(description = "A share mail request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ShareMailRequest { @JsonProperty("sendToEmails") private List sendToEmails = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareUser.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareUser.java index f9cb76b73bd..6477eda5372 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareUser.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/ShareUser.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,14 +25,8 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class ShareUser { - @JsonProperty("username") - private String username = null; - @JsonProperty("firstName") private String firstName = null; @@ -42,24 +36,6 @@ public class ShareUser { @JsonProperty("company") private String company = null; - public ShareUser username(String username) { - this.username = username; - return this; - } - - /** - * The account username. - * @return username - **/ - @ApiModelProperty(value = "The account username.") - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - public ShareUser firstName(String firstName) { this.firstName = firstName; return this; @@ -124,15 +100,14 @@ public boolean equals(java.lang.Object o) { return false; } ShareUser shareUser = (ShareUser) o; - return Objects.equals(this.username, shareUser.username) && - Objects.equals(this.firstName, shareUser.firstName) && + return Objects.equals(this.firstName, shareUser.firstName) && Objects.equals(this.lastName, shareUser.lastName) && Objects.equals(this.company, shareUser.company); } @Override public int hashCode() { - return Objects.hash(username, firstName, lastName, company); + return Objects.hash(firstName, lastName, company); } @@ -141,7 +116,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ShareUser {\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Subscription.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Subscription.java index c35744e91ea..fa6664d0e5e 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Subscription.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/Subscription.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class Subscription { @JsonProperty("salepackage") private Salepackage salepackage = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SubscriptionInfo.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SubscriptionInfo.java index 8b68d6bc3f1..920bb92b90b 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SubscriptionInfo.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SubscriptionInfo.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * Subscription information */ @ApiModel(description = "Subscription information") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SubscriptionInfo { @JsonProperty("isTrial") private Boolean isTrial = null; @@ -40,6 +37,9 @@ public class SubscriptionInfo { @JsonProperty("hasPaymentInfo") private Boolean hasPaymentInfo = null; + @JsonProperty("salepackageId") + private String salepackageId = null; + public SubscriptionInfo isTrial(Boolean isTrial) { this.isTrial = isTrial; return this; @@ -94,6 +94,24 @@ public void setHasPaymentInfo(Boolean hasPaymentInfo) { this.hasPaymentInfo = hasPaymentInfo; } + public SubscriptionInfo salepackageId(String salepackageId) { + this.salepackageId = salepackageId; + return this; + } + + /** + * SalepackageId + * @return salepackageId + **/ + @ApiModelProperty(value = "SalepackageId") + public String getSalepackageId() { + return salepackageId; + } + + public void setSalepackageId(String salepackageId) { + this.salepackageId = salepackageId; + } + @Override public boolean equals(java.lang.Object o) { @@ -106,12 +124,13 @@ public boolean equals(java.lang.Object o) { SubscriptionInfo subscriptionInfo = (SubscriptionInfo) o; return Objects.equals(this.isTrial, subscriptionInfo.isTrial) && Objects.equals(this.expires, subscriptionInfo.expires) && - Objects.equals(this.hasPaymentInfo, subscriptionInfo.hasPaymentInfo); + Objects.equals(this.hasPaymentInfo, subscriptionInfo.hasPaymentInfo) && + Objects.equals(this.salepackageId, subscriptionInfo.salepackageId); } @Override public int hashCode() { - return Objects.hash(isTrial, expires, hasPaymentInfo); + return Objects.hash(isTrial, expires, hasPaymentInfo, salepackageId); } @@ -123,6 +142,7 @@ public String toString() { sb.append(" isTrial: ").append(toIndentedString(isTrial)).append("\n"); sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); sb.append(" hasPaymentInfo: ").append(toIndentedString(hasPaymentInfo)).append("\n"); + sb.append(" salepackageId: ").append(toIndentedString(salepackageId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SupportUrls.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SupportUrls.java new file mode 100644 index 00000000000..d6af04200c0 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SupportUrls.java @@ -0,0 +1,92 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * Urls to support sub pages + */ +@ApiModel(description = "Urls to support sub pages") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class SupportUrls { + @JsonProperty("iosFiles") + private String iosFiles = null; + + public SupportUrls iosFiles(String iosFiles) { + this.iosFiles = iosFiles; + return this; + } + + /** + * Url to support about Files in iOS + * @return iosFiles + **/ + @ApiModelProperty(value = "Url to support about Files in iOS") + public String getIosFiles() { + return iosFiles; + } + + public void setIosFiles(String iosFiles) { + this.iosFiles = iosFiles; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SupportUrls supportUrls = (SupportUrls) o; + return Objects.equals(this.iosFiles, supportUrls.iosFiles); + } + + @Override + public int hashCode() { + return Objects.hash(iosFiles); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SupportUrls {\n"); + + sb.append(" iosFiles: ").append(toIndentedString(iosFiles)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClient.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClient.java index 81b1d88282a..147315ad1be 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClient.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClient.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * Contains information about a sync client */ @ApiModel(description = "Contains information about a sync client") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SyncClient { @JsonProperty("created") private DateTime created = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClients.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClients.java index 7fc47a4d66c..613ff445fb7 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClients.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncClients.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SyncClients { @JsonProperty("clients") private List clients = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncInfo.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncInfo.java index f5f126f82f0..39e15b96182 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncInfo.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/SyncInfo.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Get account info for use by clients */ @ApiModel(description = "Get account info for use by clients") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class SyncInfo { @JsonProperty("spaceId") private String spaceId = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TerminateSubscriptionRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TerminateSubscriptionRequest.java index 2edd178156a..9e9e4f304b3 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TerminateSubscriptionRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TerminateSubscriptionRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class TerminateSubscriptionRequest { @JsonProperty("reason") private String reason = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TwoFactorAuthentication.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TwoFactorAuthentication.java index d37e44c3a6b..c4fd02e2f01 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TwoFactorAuthentication.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/TwoFactorAuthentication.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class TwoFactorAuthentication { @JsonProperty("transactionID") private String transactionID = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountInfoRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountInfoRequest.java index 7949d4d4ac4..f340ecdc4bf 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountInfoRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountInfoRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,13 +25,10 @@ * Update account info. */ @ApiModel(description = "Update account info.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateAccountInfoRequest { - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("newsletter") private Boolean newsletter = null; @@ -54,25 +51,28 @@ public class UpdateAccountInfoRequest { @JsonProperty("organizationNumber") private String organizationNumber = null; + @JsonProperty("phoneNumber") + private String phoneNumber = null; + @JsonProperty("currentPassword") private String currentPassword = null; - public UpdateAccountInfoRequest socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public UpdateAccountInfoRequest personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** * - * @return socialSecurityNumber + * @return personalIdentityNumber **/ @ApiModelProperty(value = "") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public UpdateAccountInfoRequest newsletter(Boolean newsletter) { @@ -201,6 +201,24 @@ public void setOrganizationNumber(String organizationNumber) { this.organizationNumber = organizationNumber; } + public UpdateAccountInfoRequest phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * PhoneNumber + * @return phoneNumber + **/ + @ApiModelProperty(value = "PhoneNumber") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + public UpdateAccountInfoRequest currentPassword(String currentPassword) { this.currentPassword = currentPassword; return this; @@ -229,7 +247,7 @@ public boolean equals(java.lang.Object o) { return false; } UpdateAccountInfoRequest updateAccountInfoRequest = (UpdateAccountInfoRequest) o; - return Objects.equals(this.socialSecurityNumber, updateAccountInfoRequest.socialSecurityNumber) && + return Objects.equals(this.personalIdentityNumber, updateAccountInfoRequest.personalIdentityNumber) && Objects.equals(this.newsletter, updateAccountInfoRequest.newsletter) && Objects.equals(this.email, updateAccountInfoRequest.email) && Objects.equals(this.firstName, updateAccountInfoRequest.firstName) && @@ -237,12 +255,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.company, updateAccountInfoRequest.company) && Objects.equals(this.vatNumber, updateAccountInfoRequest.vatNumber) && Objects.equals(this.organizationNumber, updateAccountInfoRequest.organizationNumber) && + Objects.equals(this.phoneNumber, updateAccountInfoRequest.phoneNumber) && Objects.equals(this.currentPassword, updateAccountInfoRequest.currentPassword); } @Override public int hashCode() { - return Objects.hash(socialSecurityNumber, newsletter, email, firstName, lastName, company, vatNumber, organizationNumber, currentPassword); + return Objects.hash(personalIdentityNumber, newsletter, email, firstName, lastName, company, vatNumber, organizationNumber, phoneNumber, currentPassword); } @@ -251,7 +270,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateAccountInfoRequest {\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" newsletter: ").append(toIndentedString(newsletter)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); @@ -259,6 +278,7 @@ public String toString() { sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); sb.append(" organizationNumber: ").append(toIndentedString(organizationNumber)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" currentPassword: ").append(toIndentedString(currentPassword)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountSettings.java index c7fe33d4121..a9e9a78a966 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateAccountSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Update a accounts settings. Properties that are null/undefined/missing are not updated */ @ApiModel(description = "Update a accounts settings. Properties that are null/undefined/missing are not updated") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateAccountSettings { @JsonProperty("startPage") private String startPage = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateConfiguration.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateConfiguration.java index c47ed31aae5..fdd44cf50e8 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateConfiguration.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateConfiguration.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Update a accounts settings. Properties that are null/undefined/missing are not updated */ @ApiModel(description = "Update a accounts settings. Properties that are null/undefined/missing are not updated") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateConfiguration { @JsonProperty("hideSplash") private Boolean hideSplash = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFavoriteRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFavoriteRequest.java index 5a8fa44dc18..9788e75438a 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFavoriteRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFavoriteRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateMediaItemRequest request object */ @ApiModel(description = "A CreateMediaItemRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateFavoriteRequest { @JsonProperty("order") private Integer order = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFilePropertiesRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFilePropertiesRequest.java index 5a22bf83c47..941fe5bf1de 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFilePropertiesRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateFilePropertiesRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateFilePropertiesRequest { @JsonProperty("created") private DateTime created = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaFolderRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaFolderRequest.java index 6886834ca0d..35393637b1e 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaFolderRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaFolderRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A UpdateMediaFolderRequest request object */ @ApiModel(description = "A UpdateMediaFolderRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateMediaFolderRequest { @JsonProperty("name") private String name = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaItemRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaItemRequest.java index 19318da1661..d77e0b5aef1 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaItemRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMediaItemRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A CreateMediaItemRequest request object */ @ApiModel(description = "A CreateMediaItemRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateMediaItemRequest { @JsonProperty("description") private String description = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMultiSettings.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMultiSettings.java index 05a2db0087c..f5dd7e3d209 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMultiSettings.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateMultiSettings.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -20,15 +20,14 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; /** * Update a accounts multi settings. Properties that are null/undefined/missing are not updated */ @ApiModel(description = "Update a accounts multi settings. Properties that are null/undefined/missing are not updated") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateMultiSettings { @JsonProperty("officeOnline") private Boolean officeOnline = null; @@ -45,11 +44,11 @@ public class UpdateMultiSettings { @JsonProperty("extendedPermissions") private Boolean extendedPermissions = null; - @JsonProperty("hideAlbums") - private Boolean hideAlbums = null; + @JsonProperty("hidePermissionManagement") + private Boolean hidePermissionManagement = null; - @JsonProperty("hidePhotos") - private Boolean hidePhotos = null; + @JsonProperty("hideMedia") + private Boolean hideMedia = null; @JsonProperty("disableMoveFromCommon") private Boolean disableMoveFromCommon = null; @@ -60,8 +59,35 @@ public class UpdateMultiSettings { @JsonProperty("forceTwoFactor") private Boolean forceTwoFactor = null; - @JsonProperty("eidRequired") - private Boolean eidRequired = null; + @JsonProperty("eidLoginRequired") + private Boolean eidLoginRequired = null; + + @JsonProperty("eidShareRequired") + private Boolean eidShareRequired = null; + + @JsonProperty("eidShareRequiredSendMail") + private Boolean eidShareRequiredSendMail = null; + + @JsonProperty("protectedShareRequired") + private Boolean protectedShareRequired = null; + + @JsonProperty("protectedShareRequiredSendMail") + private Boolean protectedShareRequiredSendMail = null; + + @JsonProperty("twoFactorLoginRequired") + private Boolean twoFactorLoginRequired = null; + + @JsonProperty("officeDesktop") + private Boolean officeDesktop = null; + + @JsonProperty("backupAccessPassword") + private String backupAccessPassword = null; + + @JsonProperty("ipRestrictions") + private List ipRestrictions = null; + + @JsonProperty("ipRestrictionsSharesExcluded") + private Boolean ipRestrictionsSharesExcluded = null; public UpdateMultiSettings officeOnline(Boolean officeOnline) { this.officeOnline = officeOnline; @@ -153,40 +179,40 @@ public void setExtendedPermissions(Boolean extendedPermissions) { this.extendedPermissions = extendedPermissions; } - public UpdateMultiSettings hideAlbums(Boolean hideAlbums) { - this.hideAlbums = hideAlbums; + public UpdateMultiSettings hidePermissionManagement(Boolean hidePermissionManagement) { + this.hidePermissionManagement = hidePermissionManagement; return this; } /** * Extended permissions in common - * @return hideAlbums + * @return hidePermissionManagement **/ @ApiModelProperty(value = "Extended permissions in common") - public Boolean isHideAlbums() { - return hideAlbums; + public Boolean isHidePermissionManagement() { + return hidePermissionManagement; } - public void setHideAlbums(Boolean hideAlbums) { - this.hideAlbums = hideAlbums; + public void setHidePermissionManagement(Boolean hidePermissionManagement) { + this.hidePermissionManagement = hidePermissionManagement; } - public UpdateMultiSettings hidePhotos(Boolean hidePhotos) { - this.hidePhotos = hidePhotos; + public UpdateMultiSettings hideMedia(Boolean hideMedia) { + this.hideMedia = hideMedia; return this; } /** * Extended permissions in common - * @return hidePhotos + * @return hideMedia **/ @ApiModelProperty(value = "Extended permissions in common") - public Boolean isHidePhotos() { - return hidePhotos; + public Boolean isHideMedia() { + return hideMedia; } - public void setHidePhotos(Boolean hidePhotos) { - this.hidePhotos = hidePhotos; + public void setHideMedia(Boolean hideMedia) { + this.hideMedia = hideMedia; } public UpdateMultiSettings disableMoveFromCommon(Boolean disableMoveFromCommon) { @@ -243,22 +269,192 @@ public void setForceTwoFactor(Boolean forceTwoFactor) { this.forceTwoFactor = forceTwoFactor; } - public UpdateMultiSettings eidRequired(Boolean eidRequired) { - this.eidRequired = eidRequired; + public UpdateMultiSettings eidLoginRequired(Boolean eidLoginRequired) { + this.eidLoginRequired = eidLoginRequired; + return this; + } + + /** + * Force BankID for users + * @return eidLoginRequired + **/ + @ApiModelProperty(value = "Force BankID for users") + public Boolean isEidLoginRequired() { + return eidLoginRequired; + } + + public void setEidLoginRequired(Boolean eidLoginRequired) { + this.eidLoginRequired = eidLoginRequired; + } + + public UpdateMultiSettings eidShareRequired(Boolean eidShareRequired) { + this.eidShareRequired = eidShareRequired; + return this; + } + + /** + * Force BankID for shares + * @return eidShareRequired + **/ + @ApiModelProperty(value = "Force BankID for shares") + public Boolean isEidShareRequired() { + return eidShareRequired; + } + + public void setEidShareRequired(Boolean eidShareRequired) { + this.eidShareRequired = eidShareRequired; + } + + public UpdateMultiSettings eidShareRequiredSendMail(Boolean eidShareRequiredSendMail) { + this.eidShareRequiredSendMail = eidShareRequiredSendMail; + return this; + } + + /** + * If send mail when EIDShareRequired + * @return eidShareRequiredSendMail + **/ + @ApiModelProperty(value = "If send mail when EIDShareRequired") + public Boolean isEidShareRequiredSendMail() { + return eidShareRequiredSendMail; + } + + public void setEidShareRequiredSendMail(Boolean eidShareRequiredSendMail) { + this.eidShareRequiredSendMail = eidShareRequiredSendMail; + } + + public UpdateMultiSettings protectedShareRequired(Boolean protectedShareRequired) { + this.protectedShareRequired = protectedShareRequired; + return this; + } + + /** + * Force protection for shares + * @return protectedShareRequired + **/ + @ApiModelProperty(value = "Force protection for shares") + public Boolean isProtectedShareRequired() { + return protectedShareRequired; + } + + public void setProtectedShareRequired(Boolean protectedShareRequired) { + this.protectedShareRequired = protectedShareRequired; + } + + public UpdateMultiSettings protectedShareRequiredSendMail(Boolean protectedShareRequiredSendMail) { + this.protectedShareRequiredSendMail = protectedShareRequiredSendMail; + return this; + } + + /** + * If send mail when ProtectedShareRequired + * @return protectedShareRequiredSendMail + **/ + @ApiModelProperty(value = "If send mail when ProtectedShareRequired") + public Boolean isProtectedShareRequiredSendMail() { + return protectedShareRequiredSendMail; + } + + public void setProtectedShareRequiredSendMail(Boolean protectedShareRequiredSendMail) { + this.protectedShareRequiredSendMail = protectedShareRequiredSendMail; + } + + public UpdateMultiSettings twoFactorLoginRequired(Boolean twoFactorLoginRequired) { + this.twoFactorLoginRequired = twoFactorLoginRequired; + return this; + } + + /** + * Force Two Factor Login + * @return twoFactorLoginRequired + **/ + @ApiModelProperty(value = "Force Two Factor Login") + public Boolean isTwoFactorLoginRequired() { + return twoFactorLoginRequired; + } + + public void setTwoFactorLoginRequired(Boolean twoFactorLoginRequired) { + this.twoFactorLoginRequired = twoFactorLoginRequired; + } + + public UpdateMultiSettings officeDesktop(Boolean officeDesktop) { + this.officeDesktop = officeDesktop; + return this; + } + + /** + * Enable Office Desktop for entire subscription + * @return officeDesktop + **/ + @ApiModelProperty(value = "Enable Office Desktop for entire subscription") + public Boolean isOfficeDesktop() { + return officeDesktop; + } + + public void setOfficeDesktop(Boolean officeDesktop) { + this.officeDesktop = officeDesktop; + } + + public UpdateMultiSettings backupAccessPassword(String backupAccessPassword) { + this.backupAccessPassword = backupAccessPassword; + return this; + } + + /** + * Password for allow backup access via WebDAV, Only Set + * @return backupAccessPassword + **/ + @ApiModelProperty(value = "Password for allow backup access via WebDAV, Only Set") + public String getBackupAccessPassword() { + return backupAccessPassword; + } + + public void setBackupAccessPassword(String backupAccessPassword) { + this.backupAccessPassword = backupAccessPassword; + } + + public UpdateMultiSettings ipRestrictions(List ipRestrictions) { + this.ipRestrictions = ipRestrictions; + return this; + } + + public UpdateMultiSettings addIpRestrictionsItem(String ipRestrictionsItem) { + if (this.ipRestrictions == null) { + this.ipRestrictions = new ArrayList<>(); + } + this.ipRestrictions.add(ipRestrictionsItem); + return this; + } + + /** + * + * @return ipRestrictions + **/ + @ApiModelProperty(value = "") + public List getIpRestrictions() { + return ipRestrictions; + } + + public void setIpRestrictions(List ipRestrictions) { + this.ipRestrictions = ipRestrictions; + } + + public UpdateMultiSettings ipRestrictionsSharesExcluded(Boolean ipRestrictionsSharesExcluded) { + this.ipRestrictionsSharesExcluded = ipRestrictionsSharesExcluded; return this; } /** - * Force BankID for all users and shares - * @return eidRequired + * + * @return ipRestrictionsSharesExcluded **/ - @ApiModelProperty(value = "Force BankID for all users and shares") - public Boolean isEidRequired() { - return eidRequired; + @ApiModelProperty(value = "") + public Boolean isIpRestrictionsSharesExcluded() { + return ipRestrictionsSharesExcluded; } - public void setEidRequired(Boolean eidRequired) { - this.eidRequired = eidRequired; + public void setIpRestrictionsSharesExcluded(Boolean ipRestrictionsSharesExcluded) { + this.ipRestrictionsSharesExcluded = ipRestrictionsSharesExcluded; } @@ -276,17 +472,26 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.versions, updateMultiSettings.versions) && Objects.equals(this.commonRootPermission, updateMultiSettings.commonRootPermission) && Objects.equals(this.extendedPermissions, updateMultiSettings.extendedPermissions) && - Objects.equals(this.hideAlbums, updateMultiSettings.hideAlbums) && - Objects.equals(this.hidePhotos, updateMultiSettings.hidePhotos) && + Objects.equals(this.hidePermissionManagement, updateMultiSettings.hidePermissionManagement) && + Objects.equals(this.hideMedia, updateMultiSettings.hideMedia) && Objects.equals(this.disableMoveFromCommon, updateMultiSettings.disableMoveFromCommon) && Objects.equals(this.allowShare, updateMultiSettings.allowShare) && Objects.equals(this.forceTwoFactor, updateMultiSettings.forceTwoFactor) && - Objects.equals(this.eidRequired, updateMultiSettings.eidRequired); + Objects.equals(this.eidLoginRequired, updateMultiSettings.eidLoginRequired) && + Objects.equals(this.eidShareRequired, updateMultiSettings.eidShareRequired) && + Objects.equals(this.eidShareRequiredSendMail, updateMultiSettings.eidShareRequiredSendMail) && + Objects.equals(this.protectedShareRequired, updateMultiSettings.protectedShareRequired) && + Objects.equals(this.protectedShareRequiredSendMail, updateMultiSettings.protectedShareRequiredSendMail) && + Objects.equals(this.twoFactorLoginRequired, updateMultiSettings.twoFactorLoginRequired) && + Objects.equals(this.officeDesktop, updateMultiSettings.officeDesktop) && + Objects.equals(this.backupAccessPassword, updateMultiSettings.backupAccessPassword) && + Objects.equals(this.ipRestrictions, updateMultiSettings.ipRestrictions) && + Objects.equals(this.ipRestrictionsSharesExcluded, updateMultiSettings.ipRestrictionsSharesExcluded); } @Override public int hashCode() { - return Objects.hash(officeOnline, recycleBin, versions, commonRootPermission, extendedPermissions, hideAlbums, hidePhotos, disableMoveFromCommon, allowShare, forceTwoFactor, eidRequired); + return Objects.hash(officeOnline, recycleBin, versions, commonRootPermission, extendedPermissions, hidePermissionManagement, hideMedia, disableMoveFromCommon, allowShare, forceTwoFactor, eidLoginRequired, eidShareRequired, eidShareRequiredSendMail, protectedShareRequired, protectedShareRequiredSendMail, twoFactorLoginRequired, officeDesktop, backupAccessPassword, ipRestrictions, ipRestrictionsSharesExcluded); } @@ -300,12 +505,21 @@ public String toString() { sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); sb.append(" commonRootPermission: ").append(toIndentedString(commonRootPermission)).append("\n"); sb.append(" extendedPermissions: ").append(toIndentedString(extendedPermissions)).append("\n"); - sb.append(" hideAlbums: ").append(toIndentedString(hideAlbums)).append("\n"); - sb.append(" hidePhotos: ").append(toIndentedString(hidePhotos)).append("\n"); + sb.append(" hidePermissionManagement: ").append(toIndentedString(hidePermissionManagement)).append("\n"); + sb.append(" hideMedia: ").append(toIndentedString(hideMedia)).append("\n"); sb.append(" disableMoveFromCommon: ").append(toIndentedString(disableMoveFromCommon)).append("\n"); sb.append(" allowShare: ").append(toIndentedString(allowShare)).append("\n"); sb.append(" forceTwoFactor: ").append(toIndentedString(forceTwoFactor)).append("\n"); - sb.append(" eidRequired: ").append(toIndentedString(eidRequired)).append("\n"); + sb.append(" eidLoginRequired: ").append(toIndentedString(eidLoginRequired)).append("\n"); + sb.append(" eidShareRequired: ").append(toIndentedString(eidShareRequired)).append("\n"); + sb.append(" eidShareRequiredSendMail: ").append(toIndentedString(eidShareRequiredSendMail)).append("\n"); + sb.append(" protectedShareRequired: ").append(toIndentedString(protectedShareRequired)).append("\n"); + sb.append(" protectedShareRequiredSendMail: ").append(toIndentedString(protectedShareRequiredSendMail)).append("\n"); + sb.append(" twoFactorLoginRequired: ").append(toIndentedString(twoFactorLoginRequired)).append("\n"); + sb.append(" officeDesktop: ").append(toIndentedString(officeDesktop)).append("\n"); + sb.append(" backupAccessPassword: ").append(toIndentedString(backupAccessPassword)).append("\n"); + sb.append(" ipRestrictions: ").append(toIndentedString(ipRestrictions)).append("\n"); + sb.append(" ipRestrictionsSharesExcluded: ").append(toIndentedString(ipRestrictionsSharesExcluded)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePaymentRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePaymentRequest.java index b3849394285..d9aaf59141a 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePaymentRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePaymentRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdatePaymentRequest { @JsonProperty("paymentMethodId") private String paymentMethodId = null; @@ -45,6 +42,9 @@ public class UpdatePaymentRequest { @JsonProperty("company") private String company = null; + @JsonProperty("emailAddress") + private String emailAddress = null; + @JsonProperty("reference") private String reference = null; @@ -60,6 +60,24 @@ public class UpdatePaymentRequest { @JsonProperty("city") private String city = null; + @JsonProperty("countryCode") + private String countryCode = null; + + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; + + @JsonProperty("organizationNumber") + private String organizationNumber = null; + + @JsonProperty("vatNumber") + private String vatNumber = null; + + @JsonProperty("van") + private String van = null; + + @JsonProperty("gln") + private String gln = null; + @JsonProperty("url") private String url = null; @@ -153,6 +171,24 @@ public void setCompany(String company) { this.company = company; } + public UpdatePaymentRequest emailAddress(String emailAddress) { + this.emailAddress = emailAddress; + return this; + } + + /** + * Email address + * @return emailAddress + **/ + @ApiModelProperty(value = "Email address") + public String getEmailAddress() { + return emailAddress; + } + + public void setEmailAddress(String emailAddress) { + this.emailAddress = emailAddress; + } + public UpdatePaymentRequest reference(String reference) { this.reference = reference; return this; @@ -243,6 +279,114 @@ public void setCity(String city) { this.city = city; } + public UpdatePaymentRequest countryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * CountryCode + * @return countryCode + **/ + @ApiModelProperty(value = "CountryCode") + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public UpdatePaymentRequest personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; + return this; + } + + /** + * + * @return personalIdentityNumber + **/ + @ApiModelProperty(value = "") + public String getPersonalIdentityNumber() { + return personalIdentityNumber; + } + + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; + } + + public UpdatePaymentRequest organizationNumber(String organizationNumber) { + this.organizationNumber = organizationNumber; + return this; + } + + /** + * + * @return organizationNumber + **/ + @ApiModelProperty(value = "") + public String getOrganizationNumber() { + return organizationNumber; + } + + public void setOrganizationNumber(String organizationNumber) { + this.organizationNumber = organizationNumber; + } + + public UpdatePaymentRequest vatNumber(String vatNumber) { + this.vatNumber = vatNumber; + return this; + } + + /** + * + * @return vatNumber + **/ + @ApiModelProperty(value = "") + public String getVatNumber() { + return vatNumber; + } + + public void setVatNumber(String vatNumber) { + this.vatNumber = vatNumber; + } + + public UpdatePaymentRequest van(String van) { + this.van = van; + return this; + } + + /** + * + * @return van + **/ + @ApiModelProperty(value = "") + public String getVan() { + return van; + } + + public void setVan(String van) { + this.van = van; + } + + public UpdatePaymentRequest gln(String gln) { + this.gln = gln; + return this; + } + + /** + * + * @return gln + **/ + @ApiModelProperty(value = "") + public String getGln() { + return gln; + } + + public void setGln(String gln) { + this.gln = gln; + } + public UpdatePaymentRequest url(String url) { this.url = url; return this; @@ -276,17 +420,24 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.firstName, updatePaymentRequest.firstName) && Objects.equals(this.lastName, updatePaymentRequest.lastName) && Objects.equals(this.company, updatePaymentRequest.company) && + Objects.equals(this.emailAddress, updatePaymentRequest.emailAddress) && Objects.equals(this.reference, updatePaymentRequest.reference) && Objects.equals(this.coAddress, updatePaymentRequest.coAddress) && Objects.equals(this.address, updatePaymentRequest.address) && Objects.equals(this.zipCode, updatePaymentRequest.zipCode) && Objects.equals(this.city, updatePaymentRequest.city) && + Objects.equals(this.countryCode, updatePaymentRequest.countryCode) && + Objects.equals(this.personalIdentityNumber, updatePaymentRequest.personalIdentityNumber) && + Objects.equals(this.organizationNumber, updatePaymentRequest.organizationNumber) && + Objects.equals(this.vatNumber, updatePaymentRequest.vatNumber) && + Objects.equals(this.van, updatePaymentRequest.van) && + Objects.equals(this.gln, updatePaymentRequest.gln) && Objects.equals(this.url, updatePaymentRequest.url); } @Override public int hashCode() { - return Objects.hash(paymentMethodId, paymentPeriodId, firstName, lastName, company, reference, coAddress, address, zipCode, city, url); + return Objects.hash(paymentMethodId, paymentPeriodId, firstName, lastName, company, emailAddress, reference, coAddress, address, zipCode, city, countryCode, personalIdentityNumber, organizationNumber, vatNumber, van, gln, url); } @@ -300,11 +451,18 @@ public String toString() { sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); + sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" coAddress: ").append(toIndentedString(coAddress)).append("\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" zipCode: ").append(toIndentedString(zipCode)).append("\n"); sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); + sb.append(" organizationNumber: ").append(toIndentedString(organizationNumber)).append("\n"); + sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); + sb.append(" van: ").append(toIndentedString(van)).append("\n"); + sb.append(" gln: ").append(toIndentedString(gln)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePermissionRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePermissionRequest.java index 409404a2b59..785d0f613fb 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePermissionRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdatePermissionRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,10 +28,7 @@ * A Update Permission request object */ @ApiModel(description = "A Update Permission request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdatePermissionRequest { /** * Gets or Sets inner @@ -66,9 +63,9 @@ public String toString() { } @JsonCreator - public static InnerEnum fromValue(String text) { + public static InnerEnum fromValue(Integer value) { for (InnerEnum b : InnerEnum.values()) { - if (String.valueOf(b.value).equals(text)) { + if (b.value.equals(value)) { return b; } } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateShareRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateShareRequest.java index 55bb2284f26..e71d68fa497 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateShareRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateShareRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -29,10 +29,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateShareRequest { @JsonProperty("password") private String password = null; @@ -283,10 +280,10 @@ public UpdateShareRequest authMethod(Integer authMethod) { } /** - * Share AuthMethod (0 = None, 1 = Password, 2 = BankID) + * Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID) * @return authMethod **/ - @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID)") + @ApiModelProperty(value = "Share AuthMethod (0 = None, 1 = Password, 2 = BankID, 3 = PasswordIDWithBankID)") public Integer getAuthMethod() { return authMethod; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateSubscriptionRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateSubscriptionRequest.java index 5104e2f2622..01df0ceea8e 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateSubscriptionRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateSubscriptionRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A Update subscription request object */ @ApiModel(description = "A Update subscription request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateSubscriptionRequest { @JsonProperty("salepackageId") private String salepackageId = null; @@ -48,6 +45,15 @@ public class UpdateSubscriptionRequest { @JsonProperty("bankIDId") private String bankIDId = null; + @JsonProperty("brandingId") + private String brandingId = null; + + @JsonProperty("signingId") + private String signingId = null; + + @JsonProperty("accessId") + private String accessId = null; + @JsonProperty("url") private String url = null; @@ -159,6 +165,60 @@ public void setBankIDId(String bankIDId) { this.bankIDId = bankIDId; } + public UpdateSubscriptionRequest brandingId(String brandingId) { + this.brandingId = brandingId; + return this; + } + + /** + * + * @return brandingId + **/ + @ApiModelProperty(value = "") + public String getBrandingId() { + return brandingId; + } + + public void setBrandingId(String brandingId) { + this.brandingId = brandingId; + } + + public UpdateSubscriptionRequest signingId(String signingId) { + this.signingId = signingId; + return this; + } + + /** + * + * @return signingId + **/ + @ApiModelProperty(value = "") + public String getSigningId() { + return signingId; + } + + public void setSigningId(String signingId) { + this.signingId = signingId; + } + + public UpdateSubscriptionRequest accessId(String accessId) { + this.accessId = accessId; + return this; + } + + /** + * + * @return accessId + **/ + @ApiModelProperty(value = "") + public String getAccessId() { + return accessId; + } + + public void setAccessId(String accessId) { + this.accessId = accessId; + } + public UpdateSubscriptionRequest url(String url) { this.url = url; return this; @@ -193,12 +253,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.backupId, updateSubscriptionRequest.backupId) && Objects.equals(this.syncId, updateSubscriptionRequest.syncId) && Objects.equals(this.bankIDId, updateSubscriptionRequest.bankIDId) && + Objects.equals(this.brandingId, updateSubscriptionRequest.brandingId) && + Objects.equals(this.signingId, updateSubscriptionRequest.signingId) && + Objects.equals(this.accessId, updateSubscriptionRequest.accessId) && Objects.equals(this.url, updateSubscriptionRequest.url); } @Override public int hashCode() { - return Objects.hash(salepackageId, storageId, multiId, backupId, syncId, bankIDId, url); + return Objects.hash(salepackageId, storageId, multiId, backupId, syncId, bankIDId, brandingId, signingId, accessId, url); } @@ -213,6 +276,9 @@ public String toString() { sb.append(" backupId: ").append(toIndentedString(backupId)).append("\n"); sb.append(" syncId: ").append(toIndentedString(syncId)).append("\n"); sb.append(" bankIDId: ").append(toIndentedString(bankIDId)).append("\n"); + sb.append(" brandingId: ").append(toIndentedString(brandingId)).append("\n"); + sb.append(" signingId: ").append(toIndentedString(signingId)).append("\n"); + sb.append(" accessId: ").append(toIndentedString(accessId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateUserRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateUserRequest.java index 01beb140314..d4e4eaff904 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateUserRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpdateUserRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * A UpdateUserRequest request object */ @ApiModel(description = "A UpdateUserRequest request object") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpdateUserRequest { @JsonProperty("firstName") private String firstName = null; @@ -48,6 +45,18 @@ public class UpdateUserRequest { @JsonProperty("commonRootPermission") private Integer commonRootPermission = null; + @JsonProperty("allowSigning") + private Boolean allowSigning = null; + + @JsonProperty("locale") + private String locale = null; + + @JsonProperty("company") + private String company = null; + + @JsonProperty("mobileNumber") + private String mobileNumber = null; + public UpdateUserRequest firstName(String firstName) { this.firstName = firstName; return this; @@ -157,6 +166,78 @@ public void setCommonRootPermission(Integer commonRootPermission) { this.commonRootPermission = commonRootPermission; } + public UpdateUserRequest allowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + return this; + } + + /** + * The AllowProductRegistration + * @return allowSigning + **/ + @ApiModelProperty(value = "The AllowProductRegistration") + public Boolean isAllowSigning() { + return allowSigning; + } + + public void setAllowSigning(Boolean allowSigning) { + this.allowSigning = allowSigning; + } + + public UpdateUserRequest locale(String locale) { + this.locale = locale; + return this; + } + + /** + * locale to determine what language the users emails will get + * @return locale + **/ + @ApiModelProperty(value = "locale to determine what language the users emails will get") + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public UpdateUserRequest company(String company) { + this.company = company; + return this; + } + + /** + * optional company + * @return company + **/ + @ApiModelProperty(value = "optional company") + public String getCompany() { + return company; + } + + public void setCompany(String company) { + this.company = company; + } + + public UpdateUserRequest mobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + return this; + } + + /** + * The users mobileNumber. + * @return mobileNumber + **/ + @ApiModelProperty(value = "The users mobileNumber.") + public String getMobileNumber() { + return mobileNumber; + } + + public void setMobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + } + @Override public boolean equals(java.lang.Object o) { @@ -172,12 +253,16 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.email, updateUserRequest.email) && Objects.equals(this.reservedSpaceSize, updateUserRequest.reservedSpaceSize) && Objects.equals(this.allowProductRegistration, updateUserRequest.allowProductRegistration) && - Objects.equals(this.commonRootPermission, updateUserRequest.commonRootPermission); + Objects.equals(this.commonRootPermission, updateUserRequest.commonRootPermission) && + Objects.equals(this.allowSigning, updateUserRequest.allowSigning) && + Objects.equals(this.locale, updateUserRequest.locale) && + Objects.equals(this.company, updateUserRequest.company) && + Objects.equals(this.mobileNumber, updateUserRequest.mobileNumber); } @Override public int hashCode() { - return Objects.hash(firstName, lastName, email, reservedSpaceSize, allowProductRegistration, commonRootPermission); + return Objects.hash(firstName, lastName, email, reservedSpaceSize, allowProductRegistration, commonRootPermission, allowSigning, locale, company, mobileNumber); } @@ -192,6 +277,10 @@ public String toString() { sb.append(" reservedSpaceSize: ").append(toIndentedString(reservedSpaceSize)).append("\n"); sb.append(" allowProductRegistration: ").append(toIndentedString(allowProductRegistration)).append("\n"); sb.append(" commonRootPermission: ").append(toIndentedString(commonRootPermission)).append("\n"); + sb.append(" allowSigning: ").append(toIndentedString(allowSigning)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" company: ").append(toIndentedString(company)).append("\n"); + sb.append(" mobileNumber: ").append(toIndentedString(mobileNumber)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpgradeSalepackage.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpgradeSalepackage.java index 2a7470c8972..9c3791bcc03 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpgradeSalepackage.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UpgradeSalepackage.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Arrays; import ch.cyberduck.core.storegate.io.swagger.client.model.CampaignPrice; -import ch.cyberduck.core.storegate.io.swagger.client.model.SalepackageProduct; +import ch.cyberduck.core.storegate.io.swagger.client.model.SalepackageProducts; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UpgradeSalepackage { @JsonProperty("campaignId") private String campaignId = null; @@ -53,20 +50,8 @@ public class UpgradeSalepackage { @JsonProperty("monthlyFee") private Double monthlyFee = null; - @JsonProperty("storage") - private SalepackageProduct storage = null; - - @JsonProperty("multi") - private SalepackageProduct multi = null; - - @JsonProperty("backup") - private SalepackageProduct backup = null; - - @JsonProperty("sync") - private SalepackageProduct sync = null; - - @JsonProperty("bankID") - private SalepackageProduct bankID = null; + @JsonProperty("products") + private SalepackageProducts products = null; @JsonProperty("currency") private String currency = null; @@ -206,94 +191,22 @@ public void setMonthlyFee(Double monthlyFee) { this.monthlyFee = monthlyFee; } - public UpgradeSalepackage storage(SalepackageProduct storage) { - this.storage = storage; - return this; - } - - /** - * - * @return storage - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getStorage() { - return storage; - } - - public void setStorage(SalepackageProduct storage) { - this.storage = storage; - } - - public UpgradeSalepackage multi(SalepackageProduct multi) { - this.multi = multi; - return this; - } - - /** - * - * @return multi - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getMulti() { - return multi; - } - - public void setMulti(SalepackageProduct multi) { - this.multi = multi; - } - - public UpgradeSalepackage backup(SalepackageProduct backup) { - this.backup = backup; - return this; - } - - /** - * - * @return backup - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getBackup() { - return backup; - } - - public void setBackup(SalepackageProduct backup) { - this.backup = backup; - } - - public UpgradeSalepackage sync(SalepackageProduct sync) { - this.sync = sync; - return this; - } - - /** - * - * @return sync - **/ - @ApiModelProperty(value = "") - public SalepackageProduct getSync() { - return sync; - } - - public void setSync(SalepackageProduct sync) { - this.sync = sync; - } - - public UpgradeSalepackage bankID(SalepackageProduct bankID) { - this.bankID = bankID; + public UpgradeSalepackage products(SalepackageProducts products) { + this.products = products; return this; } /** * - * @return bankID + * @return products **/ @ApiModelProperty(value = "") - public SalepackageProduct getBankID() { - return bankID; + public SalepackageProducts getProducts() { + return products; } - public void setBankID(SalepackageProduct bankID) { - this.bankID = bankID; + public void setProducts(SalepackageProducts products) { + this.products = products; } public UpgradeSalepackage currency(String currency) { @@ -385,11 +298,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.id, upgradeSalepackage.id) && Objects.equals(this.name, upgradeSalepackage.name) && Objects.equals(this.monthlyFee, upgradeSalepackage.monthlyFee) && - Objects.equals(this.storage, upgradeSalepackage.storage) && - Objects.equals(this.multi, upgradeSalepackage.multi) && - Objects.equals(this.backup, upgradeSalepackage.backup) && - Objects.equals(this.sync, upgradeSalepackage.sync) && - Objects.equals(this.bankID, upgradeSalepackage.bankID) && + Objects.equals(this.products, upgradeSalepackage.products) && Objects.equals(this.currency, upgradeSalepackage.currency) && Objects.equals(this.isInclVAT, upgradeSalepackage.isInclVAT) && Objects.equals(this.campaignPrice, upgradeSalepackage.campaignPrice) && @@ -398,7 +307,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(campaignId, description, saleText, startFee, id, name, monthlyFee, storage, multi, backup, sync, bankID, currency, isInclVAT, campaignPrice, campaignText); + return Objects.hash(campaignId, description, saleText, startFee, id, name, monthlyFee, products, currency, isInclVAT, campaignPrice, campaignText); } @@ -414,11 +323,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" monthlyFee: ").append(toIndentedString(monthlyFee)).append("\n"); - sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); - sb.append(" multi: ").append(toIndentedString(multi)).append("\n"); - sb.append(" backup: ").append(toIndentedString(backup)).append("\n"); - sb.append(" sync: ").append(toIndentedString(sync)).append("\n"); - sb.append(" bankID: ").append(toIndentedString(bankID)).append("\n"); + sb.append(" products: ").append(toIndentedString(products)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" isInclVAT: ").append(toIndentedString(isInclVAT)).append("\n"); sb.append(" campaignPrice: ").append(toIndentedString(campaignPrice)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UploadAttachmentRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UploadAttachmentRequest.java new file mode 100644 index 00000000000..d830fb094a0 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UploadAttachmentRequest.java @@ -0,0 +1,140 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.AttachmentContent; +import ch.cyberduck.core.storegate.io.swagger.client.model.AttachmentDetailsCompose; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class UploadAttachmentRequest { + @JsonProperty("attachmentDetailsCompose") + private AttachmentDetailsCompose attachmentDetailsCompose = null; + + @JsonProperty("attachmentContent") + private AttachmentContent attachmentContent = null; + + @JsonProperty("parentId") + private String parentId = null; + + public UploadAttachmentRequest attachmentDetailsCompose(AttachmentDetailsCompose attachmentDetailsCompose) { + this.attachmentDetailsCompose = attachmentDetailsCompose; + return this; + } + + /** + * + * @return attachmentDetailsCompose + **/ + @ApiModelProperty(value = "") + public AttachmentDetailsCompose getAttachmentDetailsCompose() { + return attachmentDetailsCompose; + } + + public void setAttachmentDetailsCompose(AttachmentDetailsCompose attachmentDetailsCompose) { + this.attachmentDetailsCompose = attachmentDetailsCompose; + } + + public UploadAttachmentRequest attachmentContent(AttachmentContent attachmentContent) { + this.attachmentContent = attachmentContent; + return this; + } + + /** + * + * @return attachmentContent + **/ + @ApiModelProperty(value = "") + public AttachmentContent getAttachmentContent() { + return attachmentContent; + } + + public void setAttachmentContent(AttachmentContent attachmentContent) { + this.attachmentContent = attachmentContent; + } + + public UploadAttachmentRequest parentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * + * @return parentId + **/ + @ApiModelProperty(value = "") + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UploadAttachmentRequest uploadAttachmentRequest = (UploadAttachmentRequest) o; + return Objects.equals(this.attachmentDetailsCompose, uploadAttachmentRequest.attachmentDetailsCompose) && + Objects.equals(this.attachmentContent, uploadAttachmentRequest.attachmentContent) && + Objects.equals(this.parentId, uploadAttachmentRequest.parentId); + } + + @Override + public int hashCode() { + return Objects.hash(attachmentDetailsCompose, attachmentContent, parentId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadAttachmentRequest {\n"); + + sb.append(" attachmentDetailsCompose: ").append(toIndentedString(attachmentDetailsCompose)).append("\n"); + sb.append(" attachmentContent: ").append(toIndentedString(attachmentContent)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UploadAttachmentsFromServerRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UploadAttachmentsFromServerRequest.java new file mode 100644 index 00000000000..825be190ead --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UploadAttachmentsFromServerRequest.java @@ -0,0 +1,172 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.AttachmentDetails; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +/** + * + */ +@ApiModel(description = "") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class UploadAttachmentsFromServerRequest { + @JsonProperty("attachmentToken") + private String attachmentToken = null; + + @JsonProperty("ewsUrl") + private String ewsUrl = null; + + @JsonProperty("attachments") + private List attachments = null; + + @JsonProperty("parentId") + private String parentId = null; + + public UploadAttachmentsFromServerRequest attachmentToken(String attachmentToken) { + this.attachmentToken = attachmentToken; + return this; + } + + /** + * + * @return attachmentToken + **/ + @ApiModelProperty(value = "") + public String getAttachmentToken() { + return attachmentToken; + } + + public void setAttachmentToken(String attachmentToken) { + this.attachmentToken = attachmentToken; + } + + public UploadAttachmentsFromServerRequest ewsUrl(String ewsUrl) { + this.ewsUrl = ewsUrl; + return this; + } + + /** + * + * @return ewsUrl + **/ + @ApiModelProperty(value = "") + public String getEwsUrl() { + return ewsUrl; + } + + public void setEwsUrl(String ewsUrl) { + this.ewsUrl = ewsUrl; + } + + public UploadAttachmentsFromServerRequest attachments(List attachments) { + this.attachments = attachments; + return this; + } + + public UploadAttachmentsFromServerRequest addAttachmentsItem(AttachmentDetails attachmentsItem) { + if (this.attachments == null) { + this.attachments = new ArrayList<>(); + } + this.attachments.add(attachmentsItem); + return this; + } + + /** + * + * @return attachments + **/ + @ApiModelProperty(value = "") + public List getAttachments() { + return attachments; + } + + public void setAttachments(List attachments) { + this.attachments = attachments; + } + + public UploadAttachmentsFromServerRequest parentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * + * @return parentId + **/ + @ApiModelProperty(value = "") + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UploadAttachmentsFromServerRequest uploadAttachmentsFromServerRequest = (UploadAttachmentsFromServerRequest) o; + return Objects.equals(this.attachmentToken, uploadAttachmentsFromServerRequest.attachmentToken) && + Objects.equals(this.ewsUrl, uploadAttachmentsFromServerRequest.ewsUrl) && + Objects.equals(this.attachments, uploadAttachmentsFromServerRequest.attachments) && + Objects.equals(this.parentId, uploadAttachmentsFromServerRequest.parentId); + } + + @Override + public int hashCode() { + return Objects.hash(attachmentToken, ewsUrl, attachments, parentId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadAttachmentsFromServerRequest {\n"); + + sb.append(" attachmentToken: ").append(toIndentedString(attachmentToken)).append("\n"); + sb.append(" ewsUrl: ").append(toIndentedString(ewsUrl)).append("\n"); + sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/User.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/User.java index 54812f408cd..794e6a0eeff 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/User.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/User.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class User { @JsonProperty("id") private String id = null; @@ -52,12 +49,18 @@ public class User { @JsonProperty("ssn") private String ssn = null; - @JsonProperty("email") - private String email = null; + @JsonProperty("locale") + private String locale = null; + + @JsonProperty("mobileNumber") + private String mobileNumber = null; @JsonProperty("username") private String username = null; + @JsonProperty("email") + private String email = null; + @JsonProperty("firstName") private String firstName = null; @@ -127,10 +130,10 @@ public User flags(Integer flags) { } /** - * Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = ForceTwoFactor) + * Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = Dormant) * @return flags **/ - @ApiModelProperty(value = "Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = ForceTwoFactor)") + @ApiModelProperty(value = "Account status (0 = None, 1 = TemporaryUser, 2 = Disabled, 4 = Pending, 8 = LockedDuePayment, 16 = RequireNewPassword, 32 = TwoFactorEnabled, 64 = UnVerified, 128 = SingleSignOn, 256 = Dormant)") public Integer getFlags() { return flags; } @@ -193,22 +196,40 @@ public void setSsn(String ssn) { this.ssn = ssn; } - public User email(String email) { - this.email = email; + public User locale(String locale) { + this.locale = locale; return this; } /** - * The accounts e-mail address. - * @return email + * locale to determine what language the users emails will get + * @return locale **/ - @ApiModelProperty(value = "The accounts e-mail address.") - public String getEmail() { - return email; + @ApiModelProperty(value = "locale to determine what language the users emails will get") + public String getLocale() { + return locale; } - public void setEmail(String email) { - this.email = email; + public void setLocale(String locale) { + this.locale = locale; + } + + public User mobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; + return this; + } + + /** + * The users mobileNumber. + * @return mobileNumber + **/ + @ApiModelProperty(value = "The users mobileNumber.") + public String getMobileNumber() { + return mobileNumber; + } + + public void setMobileNumber(String mobileNumber) { + this.mobileNumber = mobileNumber; } public User username(String username) { @@ -229,6 +250,24 @@ public void setUsername(String username) { this.username = username; } + public User email(String email) { + this.email = email; + return this; + } + + /** + * The accounts e-mail address. + * @return email + **/ + @ApiModelProperty(value = "The accounts e-mail address.") + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + public User firstName(String firstName) { this.firstName = firstName; return this; @@ -300,8 +339,10 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.created, user.created) && Objects.equals(this.lastLogin, user.lastLogin) && Objects.equals(this.ssn, user.ssn) && - Objects.equals(this.email, user.email) && + Objects.equals(this.locale, user.locale) && + Objects.equals(this.mobileNumber, user.mobileNumber) && Objects.equals(this.username, user.username) && + Objects.equals(this.email, user.email) && Objects.equals(this.firstName, user.firstName) && Objects.equals(this.lastName, user.lastName) && Objects.equals(this.company, user.company); @@ -309,7 +350,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, isAdmin, isSubAdmin, flags, created, lastLogin, ssn, email, username, firstName, lastName, company); + return Objects.hash(id, isAdmin, isSubAdmin, flags, created, lastLogin, ssn, locale, mobileNumber, username, email, firstName, lastName, company); } @@ -325,8 +366,10 @@ public String toString() { sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" lastLogin: ").append(toIndentedString(lastLogin)).append("\n"); sb.append(" ssn: ").append(toIndentedString(ssn)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" mobileNumber: ").append(toIndentedString(mobileNumber)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserData.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserData.java index 2c27ecbe788..f95497af665 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserData.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserData.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,28 +25,28 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UserData { @JsonProperty("requireOrganizationNumber") private Boolean requireOrganizationNumber = null; - @JsonProperty("requireSocialSecurityNumber") - private Boolean requireSocialSecurityNumber = null; + @JsonProperty("requirePersonalIdentityNumber") + private Boolean requirePersonalIdentityNumber = null; @JsonProperty("showAgreement") private Boolean showAgreement = null; + @JsonProperty("showUserInfo") + private Boolean showUserInfo = null; + @JsonProperty("company") private String company = null; @JsonProperty("organizationNumber") private String organizationNumber = null; - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("countryCode") private String countryCode = null; @@ -57,6 +57,12 @@ public class UserData { @JsonProperty("newsletter") private Boolean newsletter = null; + @JsonProperty("phoneNumber") + private String phoneNumber = null; + + @JsonProperty("forceTwoFactor") + private Boolean forceTwoFactor = null; + public UserData requireOrganizationNumber(Boolean requireOrganizationNumber) { this.requireOrganizationNumber = requireOrganizationNumber; return this; @@ -75,22 +81,22 @@ public void setRequireOrganizationNumber(Boolean requireOrganizationNumber) { this.requireOrganizationNumber = requireOrganizationNumber; } - public UserData requireSocialSecurityNumber(Boolean requireSocialSecurityNumber) { - this.requireSocialSecurityNumber = requireSocialSecurityNumber; + public UserData requirePersonalIdentityNumber(Boolean requirePersonalIdentityNumber) { + this.requirePersonalIdentityNumber = requirePersonalIdentityNumber; return this; } /** * Is social security number required - * @return requireSocialSecurityNumber + * @return requirePersonalIdentityNumber **/ @ApiModelProperty(value = "Is social security number required") - public Boolean isRequireSocialSecurityNumber() { - return requireSocialSecurityNumber; + public Boolean isRequirePersonalIdentityNumber() { + return requirePersonalIdentityNumber; } - public void setRequireSocialSecurityNumber(Boolean requireSocialSecurityNumber) { - this.requireSocialSecurityNumber = requireSocialSecurityNumber; + public void setRequirePersonalIdentityNumber(Boolean requirePersonalIdentityNumber) { + this.requirePersonalIdentityNumber = requirePersonalIdentityNumber; } public UserData showAgreement(Boolean showAgreement) { @@ -111,6 +117,24 @@ public void setShowAgreement(Boolean showAgreement) { this.showAgreement = showAgreement; } + public UserData showUserInfo(Boolean showUserInfo) { + this.showUserInfo = showUserInfo; + return this; + } + + /** + * Show the registration user info + * @return showUserInfo + **/ + @ApiModelProperty(value = "Show the registration user info") + public Boolean isShowUserInfo() { + return showUserInfo; + } + + public void setShowUserInfo(Boolean showUserInfo) { + this.showUserInfo = showUserInfo; + } + public UserData company(String company) { this.company = company; return this; @@ -147,22 +171,22 @@ public void setOrganizationNumber(String organizationNumber) { this.organizationNumber = organizationNumber; } - public UserData socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public UserData personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** * Social security number - * @return socialSecurityNumber + * @return personalIdentityNumber **/ @ApiModelProperty(value = "Social security number") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public UserData countryCode(String countryCode) { @@ -219,6 +243,42 @@ public void setNewsletter(Boolean newsletter) { this.newsletter = newsletter; } + public UserData phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Phone number + * @return phoneNumber + **/ + @ApiModelProperty(value = "Phone number") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public UserData forceTwoFactor(Boolean forceTwoFactor) { + this.forceTwoFactor = forceTwoFactor; + return this; + } + + /** + * Force Two Factor + * @return forceTwoFactor + **/ + @ApiModelProperty(value = "Force Two Factor") + public Boolean isForceTwoFactor() { + return forceTwoFactor; + } + + public void setForceTwoFactor(Boolean forceTwoFactor) { + this.forceTwoFactor = forceTwoFactor; + } + @Override public boolean equals(java.lang.Object o) { @@ -230,19 +290,22 @@ public boolean equals(java.lang.Object o) { } UserData userData = (UserData) o; return Objects.equals(this.requireOrganizationNumber, userData.requireOrganizationNumber) && - Objects.equals(this.requireSocialSecurityNumber, userData.requireSocialSecurityNumber) && + Objects.equals(this.requirePersonalIdentityNumber, userData.requirePersonalIdentityNumber) && Objects.equals(this.showAgreement, userData.showAgreement) && + Objects.equals(this.showUserInfo, userData.showUserInfo) && Objects.equals(this.company, userData.company) && Objects.equals(this.organizationNumber, userData.organizationNumber) && - Objects.equals(this.socialSecurityNumber, userData.socialSecurityNumber) && + Objects.equals(this.personalIdentityNumber, userData.personalIdentityNumber) && Objects.equals(this.countryCode, userData.countryCode) && Objects.equals(this.vatNumber, userData.vatNumber) && - Objects.equals(this.newsletter, userData.newsletter); + Objects.equals(this.newsletter, userData.newsletter) && + Objects.equals(this.phoneNumber, userData.phoneNumber) && + Objects.equals(this.forceTwoFactor, userData.forceTwoFactor); } @Override public int hashCode() { - return Objects.hash(requireOrganizationNumber, requireSocialSecurityNumber, showAgreement, company, organizationNumber, socialSecurityNumber, countryCode, vatNumber, newsletter); + return Objects.hash(requireOrganizationNumber, requirePersonalIdentityNumber, showAgreement, showUserInfo, company, organizationNumber, personalIdentityNumber, countryCode, vatNumber, newsletter, phoneNumber, forceTwoFactor); } @@ -252,14 +315,17 @@ public String toString() { sb.append("class UserData {\n"); sb.append(" requireOrganizationNumber: ").append(toIndentedString(requireOrganizationNumber)).append("\n"); - sb.append(" requireSocialSecurityNumber: ").append(toIndentedString(requireSocialSecurityNumber)).append("\n"); + sb.append(" requirePersonalIdentityNumber: ").append(toIndentedString(requirePersonalIdentityNumber)).append("\n"); sb.append(" showAgreement: ").append(toIndentedString(showAgreement)).append("\n"); + sb.append(" showUserInfo: ").append(toIndentedString(showUserInfo)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" organizationNumber: ").append(toIndentedString(organizationNumber)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); sb.append(" newsletter: ").append(toIndentedString(newsletter)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" forceTwoFactor: ").append(toIndentedString(forceTwoFactor)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserDataRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserDataRequest.java index 2176c9b9bf0..cce07cdf3d0 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserDataRequest.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserDataRequest.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UserDataRequest { @JsonProperty("company") private String company = null; @@ -36,8 +33,8 @@ public class UserDataRequest { @JsonProperty("organizationNumber") private String organizationNumber = null; - @JsonProperty("socialSecurityNumber") - private String socialSecurityNumber = null; + @JsonProperty("personalIdentityNumber") + private String personalIdentityNumber = null; @JsonProperty("countryCode") private String countryCode = null; @@ -48,6 +45,12 @@ public class UserDataRequest { @JsonProperty("newsletter") private Boolean newsletter = null; + @JsonProperty("phoneNumber") + private String phoneNumber = null; + + @JsonProperty("forceTwoFactor") + private Boolean forceTwoFactor = null; + public UserDataRequest company(String company) { this.company = company; return this; @@ -84,22 +87,22 @@ public void setOrganizationNumber(String organizationNumber) { this.organizationNumber = organizationNumber; } - public UserDataRequest socialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public UserDataRequest personalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; return this; } /** * Social security number - * @return socialSecurityNumber + * @return personalIdentityNumber **/ @ApiModelProperty(value = "Social security number") - public String getSocialSecurityNumber() { - return socialSecurityNumber; + public String getPersonalIdentityNumber() { + return personalIdentityNumber; } - public void setSocialSecurityNumber(String socialSecurityNumber) { - this.socialSecurityNumber = socialSecurityNumber; + public void setPersonalIdentityNumber(String personalIdentityNumber) { + this.personalIdentityNumber = personalIdentityNumber; } public UserDataRequest countryCode(String countryCode) { @@ -156,6 +159,42 @@ public void setNewsletter(Boolean newsletter) { this.newsletter = newsletter; } + public UserDataRequest phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Phone number + * @return phoneNumber + **/ + @ApiModelProperty(value = "Phone number") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public UserDataRequest forceTwoFactor(Boolean forceTwoFactor) { + this.forceTwoFactor = forceTwoFactor; + return this; + } + + /** + * Force Two Factor + * @return forceTwoFactor + **/ + @ApiModelProperty(value = "Force Two Factor") + public Boolean isForceTwoFactor() { + return forceTwoFactor; + } + + public void setForceTwoFactor(Boolean forceTwoFactor) { + this.forceTwoFactor = forceTwoFactor; + } + @Override public boolean equals(java.lang.Object o) { @@ -168,15 +207,17 @@ public boolean equals(java.lang.Object o) { UserDataRequest userDataRequest = (UserDataRequest) o; return Objects.equals(this.company, userDataRequest.company) && Objects.equals(this.organizationNumber, userDataRequest.organizationNumber) && - Objects.equals(this.socialSecurityNumber, userDataRequest.socialSecurityNumber) && + Objects.equals(this.personalIdentityNumber, userDataRequest.personalIdentityNumber) && Objects.equals(this.countryCode, userDataRequest.countryCode) && Objects.equals(this.vatNumber, userDataRequest.vatNumber) && - Objects.equals(this.newsletter, userDataRequest.newsletter); + Objects.equals(this.newsletter, userDataRequest.newsletter) && + Objects.equals(this.phoneNumber, userDataRequest.phoneNumber) && + Objects.equals(this.forceTwoFactor, userDataRequest.forceTwoFactor); } @Override public int hashCode() { - return Objects.hash(company, organizationNumber, socialSecurityNumber, countryCode, vatNumber, newsletter); + return Objects.hash(company, organizationNumber, personalIdentityNumber, countryCode, vatNumber, newsletter, phoneNumber, forceTwoFactor); } @@ -187,10 +228,12 @@ public String toString() { sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" organizationNumber: ").append(toIndentedString(organizationNumber)).append("\n"); - sb.append(" socialSecurityNumber: ").append(toIndentedString(socialSecurityNumber)).append("\n"); + sb.append(" personalIdentityNumber: ").append(toIndentedString(personalIdentityNumber)).append("\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" vatNumber: ").append(toIndentedString(vatNumber)).append("\n"); sb.append(" newsletter: ").append(toIndentedString(newsletter)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" forceTwoFactor: ").append(toIndentedString(forceTwoFactor)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserExportRequest.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserExportRequest.java new file mode 100644 index 00000000000..b27540a4ca2 --- /dev/null +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserExportRequest.java @@ -0,0 +1,138 @@ +/* + * Storegate api v4.2 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: v4.2 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package ch.cyberduck.core.storegate.io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * Export Users + */ +@ApiModel(description = "Export Users") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") +public class UserExportRequest { + @JsonProperty("searchCriteria") + private String searchCriteria = null; + + @JsonProperty("sortExpression") + private String sortExpression = null; + + @JsonProperty("timeZone") + private String timeZone = null; + + public UserExportRequest searchCriteria(String searchCriteria) { + this.searchCriteria = searchCriteria; + return this; + } + + /** + * Search + * @return searchCriteria + **/ + @ApiModelProperty(value = "Search") + public String getSearchCriteria() { + return searchCriteria; + } + + public void setSearchCriteria(String searchCriteria) { + this.searchCriteria = searchCriteria; + } + + public UserExportRequest sortExpression(String sortExpression) { + this.sortExpression = sortExpression; + return this; + } + + /** + * Sort + * @return sortExpression + **/ + @ApiModelProperty(value = "Sort") + public String getSortExpression() { + return sortExpression; + } + + public void setSortExpression(String sortExpression) { + this.sortExpression = sortExpression; + } + + public UserExportRequest timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Timezone for localization of datetimes + * @return timeZone + **/ + @ApiModelProperty(value = "Timezone for localization of datetimes") + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserExportRequest userExportRequest = (UserExportRequest) o; + return Objects.equals(this.searchCriteria, userExportRequest.searchCriteria) && + Objects.equals(this.sortExpression, userExportRequest.sortExpression) && + Objects.equals(this.timeZone, userExportRequest.timeZone); + } + + @Override + public int hashCode() { + return Objects.hash(searchCriteria, sortExpression, timeZone); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserExportRequest {\n"); + + sb.append(" searchCriteria: ").append(toIndentedString(searchCriteria)).append("\n"); + sb.append(" sortExpression: ").append(toIndentedString(sortExpression)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserStorage.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserStorage.java index 688ca5f4595..8ede9f1e465 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserStorage.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/UserStorage.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -25,10 +25,7 @@ * Storageinformation */ @ApiModel(description = "Storageinformation") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class UserStorage { @JsonProperty("size") private Long size = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavAlias.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavAlias.java index d8bd8876a9f..f10edc86dc7 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavAlias.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavAlias.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -27,10 +27,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class WebDavAlias { @JsonProperty("id") private String id = null; diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavPassword.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavPassword.java index 724770ea746..e879812224a 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavPassword.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebDavPassword.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -26,10 +26,7 @@ * */ @ApiModel(description = "") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class WebDavPassword { @JsonProperty("name") private String name = null; @@ -127,10 +124,10 @@ public WebDavPassword type(Integer type) { } /** - * (0 = MapDrive, 1 = Manual) + * (0 = MapDrive, 1 = Manual, 2 = Temporary) * @return type **/ - @ApiModelProperty(value = " (0 = MapDrive, 1 = Manual)") + @ApiModelProperty(value = " (0 = MapDrive, 1 = Manual, 2 = Temporary)") public Integer getType() { return type; } diff --git a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebUrls.java b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebUrls.java index b6964201d82..2b1bc64921f 100644 --- a/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebUrls.java +++ b/storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/model/WebUrls.java @@ -1,8 +1,8 @@ /* - * Storegate.Web + * Storegate api v4.2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: v4 + * OpenAPI spec version: v4.2 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Arrays; +import ch.cyberduck.core.storegate.io.swagger.client.model.SupportUrls; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -25,10 +26,7 @@ * An list of urls to use */ @ApiModel(description = "An list of urls to use") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-09-18T14:15:21.736+02:00") - - - +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-08-24T11:36:23.792+02:00") public class WebUrls { @JsonProperty("filesUrl") private String filesUrl = null; @@ -63,6 +61,9 @@ public class WebUrls { @JsonProperty("retailerUrl") private String retailerUrl = null; + @JsonProperty("supportUrls") + private SupportUrls supportUrls = null; + public WebUrls filesUrl(String filesUrl) { this.filesUrl = filesUrl; return this; @@ -261,6 +262,24 @@ public void setRetailerUrl(String retailerUrl) { this.retailerUrl = retailerUrl; } + public WebUrls supportUrls(SupportUrls supportUrls) { + this.supportUrls = supportUrls; + return this; + } + + /** + * Urls to support sub pages + * @return supportUrls + **/ + @ApiModelProperty(value = "Urls to support sub pages") + public SupportUrls getSupportUrls() { + return supportUrls; + } + + public void setSupportUrls(SupportUrls supportUrls) { + this.supportUrls = supportUrls; + } + @Override public boolean equals(java.lang.Object o) { @@ -281,12 +300,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.supportUrl, webUrls.supportUrl) && Objects.equals(this.wopiUrl, webUrls.wopiUrl) && Objects.equals(this.partnerUrl, webUrls.partnerUrl) && - Objects.equals(this.retailerUrl, webUrls.retailerUrl); + Objects.equals(this.retailerUrl, webUrls.retailerUrl) && + Objects.equals(this.supportUrls, webUrls.supportUrls); } @Override public int hashCode() { - return Objects.hash(filesUrl, backupUrl, commonUrl, accountUrl, settingsUrl, backupManagementUrl, syncManagementUrl, supportUrl, wopiUrl, partnerUrl, retailerUrl); + return Objects.hash(filesUrl, backupUrl, commonUrl, accountUrl, settingsUrl, backupManagementUrl, syncManagementUrl, supportUrl, wopiUrl, partnerUrl, retailerUrl, supportUrls); } @@ -306,6 +326,7 @@ public String toString() { sb.append(" wopiUrl: ").append(toIndentedString(wopiUrl)).append("\n"); sb.append(" partnerUrl: ").append(toIndentedString(partnerUrl)).append("\n"); sb.append(" retailerUrl: ").append(toIndentedString(retailerUrl)).append("\n"); + sb.append(" supportUrls: ").append(toIndentedString(supportUrls)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeatureTest.java b/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeatureTest.java index d1b7a8acb47..713f90c2b77 100644 --- a/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeatureTest.java +++ b/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateMultipartWriteFeatureTest.java @@ -27,7 +27,7 @@ import ch.cyberduck.core.http.HttpResponseOutputStream; import ch.cyberduck.core.io.StreamCopier; import ch.cyberduck.core.shared.DefaultFindFeature; -import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.transfer.TransferStatus; import ch.cyberduck.test.IntegrationTest; @@ -59,13 +59,15 @@ public void testReadWrite() throws Exception { status.setLength(-1L); final Path test = new Path(folder, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final StoregateMultipartWriteFeature writer = new StoregateMultipartWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); final String version = out.getStatus().getId(); assertNotNull(version); - assertEquals(content.length, out.getStatus().getFileSize(), 0L); + assertEquals(content.length, out.getStatus().getSize(), 0L); assertTrue(new DefaultFindFeature(session).find(test)); + assertEquals(new StoregateAttributesFinderFeature(session, nodeid).toAttributes(out.getStatus()), + new StoregateAttributesFinderFeature(session, nodeid).find(test)); final byte[] compare = new byte[content.length]; final InputStream stream = new StoregateReadFeature(session, nodeid).read(test, new TransferStatus().withLength(content.length), new DisabledConnectionCallback()); IOUtils.readFully(stream, compare); @@ -87,14 +89,14 @@ public void testWriteWithLock() throws Exception { final TransferStatus status = new TransferStatus().withLength(-1L); final StoregateMultipartWriteFeature writer = new StoregateMultipartWriteFeature(session, nodeid); try { - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); fail(); } catch(LockedException e) { // } status.setLockId(lockId); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); out.close(); @@ -122,7 +124,7 @@ public void validate() throws ConnectionCanceledException { }; status.setLength(content.length); final StoregateMultipartWriteFeature writer = new StoregateMultipartWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).withListener(listener).transfer(new ByteArrayInputStream(content), out); assertFalse(new DefaultFindFeature(session).find(test)); @@ -139,7 +141,7 @@ public void testWriteSingleByte() throws Exception { final TransferStatus status = new TransferStatus().withLength(content.length); final Path test = new Path(room, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final StoregateMultipartWriteFeature writer = new StoregateMultipartWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); final String version = out.getStatus().getId(); @@ -158,11 +160,11 @@ public void testWriteUnknownLength() throws Exception { final TransferStatus status = new TransferStatus().withLength(-1L); final Path test = new Path(room, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final StoregateMultipartWriteFeature writer = new StoregateMultipartWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); final String version = out.getStatus().getId(); - assertEquals(content.length, out.getStatus().getFileSize(), 0L); + assertEquals(content.length, out.getStatus().getSize(), 0L); assertNotNull(version); assertTrue(new DefaultFindFeature(session).find(test)); new StoregateDeleteFeature(session, nodeid).delete(Collections.singletonList(room), new DisabledLoginCallback(), new Delete.DisabledCallback()); @@ -177,10 +179,10 @@ public void testWriteZeroLength() throws Exception { final TransferStatus status = new TransferStatus(); final Path test = new Path(room, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final StoregateMultipartWriteFeature writer = new StoregateMultipartWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new NullInputStream(0L), out); - assertEquals(0L, out.getStatus().getFileSize(), 0L); + assertEquals(0L, out.getStatus().getSize(), 0L); final String version = out.getStatus().getId(); assertNotNull(version); assertTrue(new DefaultFindFeature(session).find(test)); diff --git a/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateReadFeatureTest.java b/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateReadFeatureTest.java index b4fd7d3535f..6f1a3dfd6fd 100644 --- a/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateReadFeatureTest.java +++ b/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateReadFeatureTest.java @@ -27,7 +27,7 @@ import ch.cyberduck.core.io.DisabledStreamListener; import ch.cyberduck.core.io.StreamCopier; import ch.cyberduck.core.shared.DefaultUploadFeature; -import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.transfer.TransferStatus; import ch.cyberduck.test.IntegrationTest; @@ -75,7 +75,7 @@ public void testReadInterrupt() throws Exception { EnumSet.of(Path.Type.directory, Path.Type.volume)), new TransferStatus()); final Path test = new Path(folder, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, writeStatus, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, writeStatus, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(writeStatus, writeStatus).transfer(new ByteArrayInputStream(content), out); // Unknown length in status @@ -174,7 +174,7 @@ public void testReadCloseReleaseEntity() throws Exception { EnumSet.of(Path.Type.directory, Path.Type.volume)), new TransferStatus()); final Path test = new Path(room, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, writeStatus, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, writeStatus, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(writeStatus, writeStatus).transfer(new ByteArrayInputStream(content), out); final CountingInputStream in = new CountingInputStream(new StoregateReadFeature(session, nodeid).read(test, status, new DisabledConnectionCallback())); diff --git a/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateWriteFeatureTest.java b/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateWriteFeatureTest.java index 829aa7df108..13dfe5dd5de 100644 --- a/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateWriteFeatureTest.java +++ b/storegate/src/test/java/ch/cyberduck/core/storegate/StoregateWriteFeatureTest.java @@ -29,7 +29,7 @@ import ch.cyberduck.core.http.HttpResponseOutputStream; import ch.cyberduck.core.io.StreamCopier; import ch.cyberduck.core.shared.DefaultFindFeature; -import ch.cyberduck.core.storegate.io.swagger.client.model.FileMetadata; +import ch.cyberduck.core.storegate.io.swagger.client.model.File; import ch.cyberduck.core.transfer.TransferStatus; import ch.cyberduck.test.IntegrationTest; @@ -57,12 +57,12 @@ public void testReadWrite() throws Exception { final long folderTimestamp = new StoregateAttributesFinderFeature(session, nodeid).find(room).getModificationDate(); final byte[] content = RandomUtils.nextBytes(32769); final Path test = new Path(room, String.format("%s", new AlphanumericRandomStringService().random()), EnumSet.of(Path.Type.file)); - final FileMetadata version; + final File version; { final TransferStatus status = new TransferStatus(); status.setLength(content.length); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); version = out.getStatus(); @@ -75,6 +75,7 @@ public void testReadWrite() throws Exception { assertNull(versionId); final String nodeId = attributes.getFileId(); assertNotNull(nodeId); + assertEquals(new StoregateAttributesFinderFeature(session, nodeid).toAttributes(version), attributes); final byte[] compare = new byte[content.length]; final InputStream stream = new StoregateReadFeature(session, nodeid).read(test, new TransferStatus().withLength(content.length), new DisabledConnectionCallback()); IOUtils.readFully(stream, compare); @@ -86,7 +87,7 @@ public void testReadWrite() throws Exception { final TransferStatus status = new TransferStatus(); status.setLength(change.length); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status.exists(true), new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status.exists(true), new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(change), out); assertEquals(nodeId, out.getStatus().getId()); @@ -109,7 +110,7 @@ public void testWriteSingleByte() throws Exception { final TransferStatus status = new TransferStatus(); status.setLength(content.length); final Path file = new Path(room, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)); - final HttpResponseOutputStream out = feature.write(file, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = feature.write(file, status, new DisabledConnectionCallback()); final ByteArrayInputStream in = new ByteArrayInputStream(content); assertEquals(content.length, IOUtils.copyLarge(in, out)); in.close(); @@ -138,14 +139,14 @@ public void testWriteWithLock() throws Exception { status.setLength(content.length); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); try { - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); fail(); } catch(LockedException e) { // } status.setLockId(lockId); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); out.close(); @@ -168,7 +169,7 @@ public void testWriteWithLockAlreadyReleased() throws Exception { new StoregateLockFeature(session, nodeid).unlock(test, lockId); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); status.setLockId(lockId); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).transfer(new ByteArrayInputStream(content), out); out.close(); @@ -196,7 +197,7 @@ public void validate() throws ConnectionCanceledException { }; status.setLength(content.length); final StoregateWriteFeature writer = new StoregateWriteFeature(session, nodeid); - final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); + final HttpResponseOutputStream out = writer.write(test, status, new DisabledConnectionCallback()); assertNotNull(out); new StreamCopier(status, status).withListener(listener).transfer(new ByteArrayInputStream(content), out); assertFalse(new DefaultFindFeature(session).find(test));