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
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