mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Add idgard demo module with listing feature only.
This commit is contained in:
@@ -323,6 +323,7 @@ public interface Protocol extends FeatureFactory, Comparable<Protocol>, Serializ
|
||||
ctera,
|
||||
box,
|
||||
deepbox,
|
||||
idgard,
|
||||
none
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2002-2024 iterate GmbH. All rights reserved.
|
||||
~ https://cyberduck.io/
|
||||
~
|
||||
~ This program is free software; you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>ch.cyberduck</groupId>
|
||||
<version>9.5.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>idgard</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ch.cyberduck</groupId>
|
||||
<artifactId>jersey</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.cyberduck</groupId>
|
||||
<artifactId>test</artifactId>
|
||||
<type>pom</type>
|
||||
<scope>test</scope>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>codegen</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.swagger.codegen.v3</groupId>
|
||||
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>codegen-idguard</id>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<inputSpec>https://my.idgard.de/assets/idgapi/spec/openapi.yaml</inputSpec>
|
||||
<!-- <inputSpec>${project.basedir}/src/main/resources/deepcloud-api.yaml</inputSpec>-->
|
||||
<language>java</language>
|
||||
<typeMappings>
|
||||
<typeMapping>UUID=String</typeMapping>
|
||||
</typeMappings>
|
||||
<output>${project.basedir}</output>
|
||||
<modelPackage>ch.cyberduck.core.idgard.io.swagger.client.model</modelPackage>
|
||||
<apiPackage>ch.cyberduck.core.idgard.io.swagger.client.api</apiPackage>
|
||||
<apiPackage>ch.cyberduck.core.idgard.io.swagger.client.api</apiPackage>
|
||||
<generateSupportingFiles>true</generateSupportingFiles>
|
||||
<!-- <invokerPackage>ch.cyberduck.core.idgard.io.swagger.client.api</invokerPackage>-->
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
@@ -0,0 +1,46 @@
|
||||
package ch.cyberduck.core.idgard;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002-2024 iterate GmbH. All rights reserved.
|
||||
* https://cyberduck.io/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.ApiClient;
|
||||
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
|
||||
import javax.ws.rs.client.Client;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class IdgardApiClient extends ApiClient {
|
||||
|
||||
static {
|
||||
Logger.getLogger("org.glassfish.jersey.client.ClientExecutorProvidersConfigurator").setLevel(java.util.logging.Level.SEVERE);
|
||||
}
|
||||
|
||||
private final CloseableHttpClient client;
|
||||
|
||||
public IdgardApiClient(final CloseableHttpClient client) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public CloseableHttpClient getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Client buildHttpClient(final boolean debugging) {
|
||||
// No need to build default client
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package ch.cyberduck.core.idgard;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002-2024 iterate GmbH. All rights reserved.
|
||||
* https://cyberduck.io/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
import ch.cyberduck.core.AttributedList;
|
||||
import ch.cyberduck.core.DefaultPathAttributes;
|
||||
import ch.cyberduck.core.ListProgressListener;
|
||||
import ch.cyberduck.core.ListService;
|
||||
import ch.cyberduck.core.Path;
|
||||
import ch.cyberduck.core.exception.BackgroundException;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.ApiException;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.api.BoxApiApi;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMetaData;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Entry;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.EntryList;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.IdgardBox;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
|
||||
public class IdgardListService implements ListService {
|
||||
private static final Logger log = LogManager.getLogger(IdgardListService.class);
|
||||
|
||||
private final IdgardSession session;
|
||||
//private final DeepboxIdProvider fileid;
|
||||
|
||||
public IdgardListService(final IdgardSession session) {
|
||||
this.session = session;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {
|
||||
|
||||
if(directory.isRoot()) {
|
||||
return new BoxesListService().list(directory, listener);
|
||||
}
|
||||
|
||||
if(directory.getParent().isDirectory()) {
|
||||
return new NodesInBoxesListService().list(directory, listener);
|
||||
}
|
||||
|
||||
return AttributedList.EMPTY;
|
||||
}
|
||||
|
||||
private final class BoxesListService implements ListService {
|
||||
@Override
|
||||
public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {
|
||||
try {
|
||||
final AttributedList<Path> list = new AttributedList<>();
|
||||
final BoxApiApi rest = new BoxApiApi(session.getClient());
|
||||
final List<IdgardBox> boxes1 = rest.getBoxes();
|
||||
for(final IdgardBox box : boxes1) {
|
||||
list.add(new Path(directory, box.getName(), EnumSet.of(Path.Type.directory, Path.Type.volume),
|
||||
new DefaultPathAttributes().setFileId(box.getId()))
|
||||
);
|
||||
}
|
||||
listener.chunk(directory, list);
|
||||
return list;
|
||||
}
|
||||
catch(ApiException e) {
|
||||
throw new BackgroundException("Listing directory failed", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final class NodesInBoxesListService implements ListService {
|
||||
@Override
|
||||
public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {
|
||||
try {
|
||||
final AttributedList<Path> list = new AttributedList<>();
|
||||
final BoxApiApi rest = new BoxApiApi(session.getClient());
|
||||
final BoxMetaData metadata = rest.getBox(directory.attributes().getFileId());
|
||||
|
||||
final EntryList rootFolder = metadata.getRootFolder();
|
||||
rootFolder.getEntries().forEach(entry -> {
|
||||
list.add(new Path(directory, entry.getName(), entry.getType() == Entry.TypeEnum.DIR ? EnumSet.of(Path.Type.directory) : EnumSet.of(Path.Type.file), attributes(entry)));
|
||||
});
|
||||
listener.chunk(directory, list);
|
||||
return list;
|
||||
}
|
||||
catch(ApiException e) {
|
||||
throw new BackgroundException("Listing directory failed", e);
|
||||
}
|
||||
}
|
||||
|
||||
private DefaultPathAttributes attributes(final Entry entry) {
|
||||
final DefaultPathAttributes attributes = new DefaultPathAttributes();
|
||||
attributes.setFileId(entry.getId());
|
||||
if(entry.getType() == Entry.TypeEnum.FILE) {
|
||||
attributes.setSize(Long.parseLong(entry.getSize()));
|
||||
}
|
||||
else {
|
||||
attributes.setSize(0L);
|
||||
}
|
||||
attributes.setModificationDate(entry.getDateCreated().getMillis()); // modified?
|
||||
return attributes;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package ch.cyberduck.core.idgard;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002-2024 iterate GmbH. All rights reserved.
|
||||
* https://cyberduck.io/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
import ch.cyberduck.core.AbstractProtocol;
|
||||
import ch.cyberduck.core.Protocol;
|
||||
import ch.cyberduck.core.Scheme;
|
||||
import ch.cyberduck.core.synchronization.ComparisonService;
|
||||
import ch.cyberduck.core.synchronization.DefaultComparisonService;
|
||||
import ch.cyberduck.core.synchronization.TimestampComparisonService;
|
||||
|
||||
import com.google.auto.service.AutoService;
|
||||
|
||||
@AutoService(Protocol.class)
|
||||
public class IdgardProtocol extends AbstractProtocol {
|
||||
@Override
|
||||
public String getIdentifier() {
|
||||
return "idgard";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Idgard";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Idgard";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Type getType() {
|
||||
return Type.idgard;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Scheme getScheme() {
|
||||
return Scheme.https;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String disk() {
|
||||
return String.format("%s.tiff", "ftp");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPrefix() {
|
||||
return String.format("%s.%s", IdgardProtocol.class.getPackage().getName(), "Idgard");
|
||||
}
|
||||
|
||||
@Override
|
||||
public DirectoryTimestamp getDirectoryTimestamp() {
|
||||
return DirectoryTimestamp.explicit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VersioningMode getVersioningMode() {
|
||||
return VersioningMode.storage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T getFeature(final Class<T> type) {
|
||||
if(type == ComparisonService.class) {
|
||||
return (T) new DefaultComparisonService(new TimestampComparisonService(), ComparisonService.disabled);
|
||||
}
|
||||
return super.getFeature(type);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
package ch.cyberduck.core.idgard;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002-2024 iterate GmbH. All rights reserved.
|
||||
* https://cyberduck.io/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
import ch.cyberduck.core.ConnectionCallback;
|
||||
import ch.cyberduck.core.ConnectionTimeoutFactory;
|
||||
import ch.cyberduck.core.Credentials;
|
||||
import ch.cyberduck.core.Host;
|
||||
import ch.cyberduck.core.HostKeyCallback;
|
||||
import ch.cyberduck.core.HostUrlProvider;
|
||||
import ch.cyberduck.core.ListService;
|
||||
import ch.cyberduck.core.LoginCallback;
|
||||
import ch.cyberduck.core.PasswordCallback;
|
||||
import ch.cyberduck.core.Path;
|
||||
import ch.cyberduck.core.PreferencesUseragentProvider;
|
||||
import ch.cyberduck.core.exception.BackgroundException;
|
||||
import ch.cyberduck.core.features.Delete;
|
||||
import ch.cyberduck.core.features.Directory;
|
||||
import ch.cyberduck.core.features.Move;
|
||||
import ch.cyberduck.core.features.MultipartWrite;
|
||||
import ch.cyberduck.core.features.Read;
|
||||
import ch.cyberduck.core.features.Touch;
|
||||
import ch.cyberduck.core.features.Write;
|
||||
import ch.cyberduck.core.http.HttpSession;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.ApiException;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.JSON;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.api.AccountsApiApi;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Authentication;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.SimpleUserInfo;
|
||||
import ch.cyberduck.core.io.StatusOutputStream;
|
||||
import ch.cyberduck.core.io.VoidStatusOutputStream;
|
||||
import ch.cyberduck.core.jersey.HttpComponentsProvider;
|
||||
import ch.cyberduck.core.proxy.ProxyFinder;
|
||||
import ch.cyberduck.core.shared.DefaultTouchFeature;
|
||||
import ch.cyberduck.core.shared.DisabledMoveFeature;
|
||||
import ch.cyberduck.core.ssl.X509KeyManager;
|
||||
import ch.cyberduck.core.ssl.X509TrustManager;
|
||||
import ch.cyberduck.core.threading.CancelCallback;
|
||||
|
||||
import ch.cyberduck.core.transfer.TransferStatus;
|
||||
|
||||
import org.apache.commons.io.input.NullInputStream;
|
||||
import org.apache.commons.io.output.NullOutputStream;
|
||||
import org.apache.http.HttpRequestInterceptor;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClientBuilder;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.glassfish.jersey.client.ClientConfig;
|
||||
import org.glassfish.jersey.client.ClientProperties;
|
||||
import org.glassfish.jersey.jackson.JacksonFeature;
|
||||
import org.glassfish.jersey.message.internal.InputStreamProvider;
|
||||
|
||||
import javax.ws.rs.client.ClientBuilder;
|
||||
import java.io.InputStream;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
public class IdgardSession extends HttpSession<IdgardApiClient> {
|
||||
private static final Logger log = LogManager.getLogger(IdgardSession.class);
|
||||
|
||||
//private final DeepboxIdProvider fileid = new DeepboxIdProvider(this);
|
||||
|
||||
private IdgardApiClient idgardApiClient;
|
||||
|
||||
public IdgardSession(final Host host, final X509TrustManager trust, final X509KeyManager key) {
|
||||
super(host, trust, key);
|
||||
}
|
||||
|
||||
private String token;
|
||||
|
||||
@Override
|
||||
protected IdgardApiClient connect(final ProxyFinder proxy, final HostKeyCallback key, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {
|
||||
final HttpClientBuilder configuration = builder.build(proxy, this, prompt);
|
||||
|
||||
//TODO für auth token?
|
||||
configuration.addInterceptorLast((HttpRequestInterceptor) (request, context) -> request.addHeader("x-idgard-csfr", token));
|
||||
|
||||
final CloseableHttpClient apache = configuration.build();
|
||||
|
||||
// Deepbox API client
|
||||
final IdgardApiClient client = new IdgardApiClient(apache);
|
||||
client.setBasePath(new HostUrlProvider().withUsername(false).withPath(true).get(host.getProtocol().getScheme(), host.getPort(),
|
||||
null, host.getHostname(), host.getProtocol().getContext()));
|
||||
client.setHttpClient(ClientBuilder.newClient(new ClientConfig()
|
||||
.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true)
|
||||
.register(new InputStreamProvider())
|
||||
.register(new JSON())
|
||||
.register(JacksonFeature.class)
|
||||
.register(MultipartWrite.class)
|
||||
.connectorProvider(new HttpComponentsProvider(apache))));
|
||||
final int timeout = ConnectionTimeoutFactory.get(preferences).getTimeout() * 1000;
|
||||
client.setConnectTimeout(timeout);
|
||||
client.setReadTimeout(timeout);
|
||||
client.setUserAgent(new PreferencesUseragentProvider().get());
|
||||
|
||||
return client;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void login(final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {
|
||||
final Credentials credentials = host.getCredentials();
|
||||
try {
|
||||
final SimpleUserInfo userInfo = new AccountsApiApi(client).uiapiAccountsAPIV1RestLoginPost(
|
||||
new Authentication().
|
||||
username(credentials.getUsername()).
|
||||
clientSecret("blabla").
|
||||
password(credentials.getPassword()).
|
||||
verifyToken("blabla").
|
||||
version("blabla")
|
||||
);
|
||||
token = userInfo.getCsfrToken();
|
||||
}
|
||||
catch(ApiException e) {
|
||||
throw new BackgroundException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disconnect() throws BackgroundException {
|
||||
try {
|
||||
if(client != null) {
|
||||
client.getHttpClient().close();
|
||||
}
|
||||
}
|
||||
finally {
|
||||
super.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T _getFeature(final Class<T> type) {
|
||||
// if(type == FileIdProvider.class) {
|
||||
// return (T) fileid;
|
||||
// }
|
||||
if(type == ListService.class) {
|
||||
return (T) new IdgardListService(this);
|
||||
}
|
||||
if(type == Touch.class) {
|
||||
return (T) new DefaultTouchFeature<>(this);
|
||||
}
|
||||
if(type == Read.class) {
|
||||
return (T) new Read() {
|
||||
@Override
|
||||
public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {
|
||||
return new NullInputStream(0L);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean offset(final Path file) throws BackgroundException {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
if(type == Write.class) {
|
||||
return (T) new Write<Void>() {
|
||||
@Override
|
||||
public StatusOutputStream<Void> write(final Path file, final TransferStatus status, final ConnectionCallback callback) {
|
||||
return new VoidStatusOutputStream(NullOutputStream.INSTANCE);
|
||||
}
|
||||
};
|
||||
}
|
||||
if(type == Directory.class) {
|
||||
return (T) new Directory() {
|
||||
@Override
|
||||
public Path mkdir(final Write writer, final Path folder, final TransferStatus status) throws BackgroundException {
|
||||
return folder;
|
||||
}
|
||||
};
|
||||
}
|
||||
if(type == Move.class) {
|
||||
return (T) new DisabledMoveFeature() {
|
||||
@Override
|
||||
public void preflight(final Path source, final Optional<Path> target) throws BackgroundException {
|
||||
//
|
||||
}
|
||||
};
|
||||
}
|
||||
if (type == Delete.class){
|
||||
return (T) new Delete(){
|
||||
@Override
|
||||
public void delete(final Map<Path, TransferStatus> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException {
|
||||
//
|
||||
}
|
||||
};
|
||||
}
|
||||
return super._getFeature(type);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,809 @@
|
||||
package ch.cyberduck.core.idgard.io.swagger.client;
|
||||
|
||||
import javax.ws.rs.client.Client;
|
||||
import javax.ws.rs.client.ClientBuilder;
|
||||
import javax.ws.rs.client.Entity;
|
||||
import javax.ws.rs.client.Invocation;
|
||||
import javax.ws.rs.client.WebTarget;
|
||||
import javax.ws.rs.core.Form;
|
||||
import javax.ws.rs.core.GenericType;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.Response;
|
||||
import javax.ws.rs.core.Response.Status;
|
||||
|
||||
import org.glassfish.jersey.client.ClientConfig;
|
||||
import org.glassfish.jersey.client.ClientProperties;
|
||||
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
|
||||
import org.glassfish.jersey.jackson.JacksonFeature;
|
||||
import org.glassfish.jersey.logging.LoggingFeature;
|
||||
import org.glassfish.jersey.media.multipart.FormDataBodyPart;
|
||||
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
|
||||
import org.glassfish.jersey.media.multipart.MultiPart;
|
||||
import org.glassfish.jersey.media.multipart.MultiPartFeature;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.auth.Authentication;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.auth.HttpBasicAuth;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.auth.ApiKeyAuth;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.auth.OAuth;
|
||||
|
||||
|
||||
public class ApiClient {
|
||||
protected Map<String, String> defaultHeaderMap = new HashMap<String, String>();
|
||||
protected String basePath = "/";
|
||||
protected boolean debugging = false;
|
||||
protected int connectionTimeout = 0;
|
||||
private int readTimeout = 0;
|
||||
|
||||
protected Client httpClient;
|
||||
protected JSON json;
|
||||
protected String tempFolderPath = null;
|
||||
|
||||
protected Map<String, Authentication> authentications;
|
||||
|
||||
protected int statusCode;
|
||||
protected Map<String, List<String>> responseHeaders;
|
||||
|
||||
protected DateFormat dateFormat;
|
||||
|
||||
public ApiClient() {
|
||||
json = new JSON();
|
||||
httpClient = buildHttpClient(debugging);
|
||||
|
||||
this.dateFormat = new RFC3339DateFormat();
|
||||
|
||||
// Set default User-Agent.
|
||||
setUserAgent("Swagger-Codegen/1.0.0/java");
|
||||
|
||||
// Setup authentications (key: authentication name, value: authentication).
|
||||
authentications = new HashMap<String, Authentication>();
|
||||
authentications.put("csrfToken", new ApiKeyAuth("header", "X-IDGARD-CSFR"));
|
||||
authentications.put("idgardIdCookie", new ApiKeyAuth("query", "IDGARDID"));
|
||||
authentications.put("jsessionIdCookie", new ApiKeyAuth("query", "JSESSIONID"));
|
||||
authentications.put("myidGidCookie", new ApiKeyAuth("query", "MYIDGID"));
|
||||
// Prevent the authentications from being modified.
|
||||
authentications = Collections.unmodifiableMap(authentications);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the JSON instance to do JSON serialization and deserialization.
|
||||
* @return JSON
|
||||
*/
|
||||
public JSON getJSON() {
|
||||
return json;
|
||||
}
|
||||
|
||||
public Client getHttpClient() {
|
||||
return httpClient;
|
||||
}
|
||||
|
||||
public ApiClient setHttpClient(Client httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getBasePath() {
|
||||
return basePath;
|
||||
}
|
||||
|
||||
public ApiClient setBasePath(String basePath) {
|
||||
this.basePath = basePath;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the status code of the previous request
|
||||
* @return Status code
|
||||
*/
|
||||
public int getStatusCode() {
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the response headers of the previous request
|
||||
* @return Response headers
|
||||
*/
|
||||
public Map<String, List<String>> getResponseHeaders() {
|
||||
return responseHeaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get authentications (key: authentication name, value: authentication).
|
||||
* @return Map of authentication object
|
||||
*/
|
||||
public Map<String, Authentication> getAuthentications() {
|
||||
return authentications;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get authentication for the given name.
|
||||
*
|
||||
* @param authName The authentication name
|
||||
* @return The authentication, null if not found
|
||||
*/
|
||||
public Authentication getAuthentication(String authName) {
|
||||
return authentications.get(authName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set username for the first HTTP basic authentication.
|
||||
* @param username Username
|
||||
*/
|
||||
public void setUsername(String username) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof HttpBasicAuth) {
|
||||
((HttpBasicAuth) auth).setUsername(username);
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No HTTP basic authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set password for the first HTTP basic authentication.
|
||||
* @param password Password
|
||||
*/
|
||||
public void setPassword(String password) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof HttpBasicAuth) {
|
||||
((HttpBasicAuth) auth).setPassword(password);
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No HTTP basic authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set API key value for the first API key authentication.
|
||||
* @param apiKey API key
|
||||
*/
|
||||
public void setApiKey(String apiKey) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
((ApiKeyAuth) auth).setApiKey(apiKey);
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No API key authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set API key prefix for the first API key authentication.
|
||||
* @param apiKeyPrefix API key prefix
|
||||
*/
|
||||
public void setApiKeyPrefix(String apiKeyPrefix) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix);
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No API key authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set access token for the first OAuth2 authentication.
|
||||
* @param accessToken Access token
|
||||
*/
|
||||
public void setAccessToken(String accessToken) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof OAuth) {
|
||||
((OAuth) auth).setAccessToken(accessToken);
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No OAuth2 authentication configured!");
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the User-Agent header's value (by adding to the default header map).
|
||||
* @param userAgent Http user agent
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setUserAgent(String userAgent) {
|
||||
addDefaultHeader("User-Agent", userAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a default header.
|
||||
*
|
||||
* @param key The header's key
|
||||
* @param value The header's value
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient addDefaultHeader(String key, String value) {
|
||||
defaultHeaderMap.put(key, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that whether debugging is enabled for this API client.
|
||||
* @return True if debugging is switched on
|
||||
*/
|
||||
public boolean isDebugging() {
|
||||
return debugging;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable/disable debugging for this API client.
|
||||
*
|
||||
* @param debugging To enable (true) or disable (false) debugging
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setDebugging(boolean debugging) {
|
||||
this.debugging = debugging;
|
||||
// Rebuild HTTP Client according to the new "debugging" value.
|
||||
this.httpClient = buildHttpClient(debugging);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The path of temporary folder used to store downloaded files from endpoints
|
||||
* with file response. The default value is <code>null</code>, i.e. using
|
||||
* the system's default tempopary folder.
|
||||
*
|
||||
* @return Temp folder path
|
||||
*/
|
||||
public String getTempFolderPath() {
|
||||
return tempFolderPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set temp folder path
|
||||
* @param tempFolderPath Temp folder path
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setTempFolderPath(String tempFolderPath) {
|
||||
this.tempFolderPath = tempFolderPath;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect timeout (in milliseconds).
|
||||
* @return Connection timeout
|
||||
*/
|
||||
public int getConnectTimeout() {
|
||||
return connectionTimeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the connect timeout (in milliseconds).
|
||||
* A value of 0 means no timeout, otherwise values must be between 1 and
|
||||
* {@link Integer#MAX_VALUE}.
|
||||
* @param connectionTimeout Connection timeout in milliseconds
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setConnectTimeout(int connectionTimeout) {
|
||||
this.connectionTimeout = connectionTimeout;
|
||||
httpClient.property(ClientProperties.CONNECT_TIMEOUT, connectionTimeout);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* read timeout (in milliseconds).
|
||||
* @return Read timeout
|
||||
*/
|
||||
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
|
||||
* {@link Integer#MAX_VALUE}.
|
||||
* @param readTimeout Read timeout in milliseconds
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setReadTimeout(int readTimeout) {
|
||||
this.readTimeout = readTimeout;
|
||||
httpClient.property(ClientProperties.READ_TIMEOUT, readTimeout);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the date format used to parse/format date parameters.
|
||||
* @return Date format
|
||||
*/
|
||||
public DateFormat getDateFormat() {
|
||||
return dateFormat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the date format used to parse/format date parameters.
|
||||
* @param dateFormat Date format
|
||||
* @return API client
|
||||
*/
|
||||
public ApiClient setDateFormat(DateFormat dateFormat) {
|
||||
this.dateFormat = dateFormat;
|
||||
// also set the date format for model (de)serialization with Date properties
|
||||
this.json.setDateFormat((DateFormat) dateFormat.clone());
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse the given string into Date object.
|
||||
* @param str String
|
||||
* @return Date
|
||||
*/
|
||||
public Date parseDate(String str) {
|
||||
try {
|
||||
return dateFormat.parse(str);
|
||||
} catch (java.text.ParseException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Format the given Date object into string.
|
||||
* @param date Date
|
||||
* @return Date in string format
|
||||
*/
|
||||
public String formatDate(Date date) {
|
||||
return dateFormat.format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format the given parameter object into string.
|
||||
* @param param Object
|
||||
* @return Object in string format
|
||||
*/
|
||||
public String parameterToString(Object param) {
|
||||
if (param == null) {
|
||||
return "";
|
||||
} else if (param instanceof Date) {
|
||||
return formatDate((Date) param);
|
||||
} else if (param instanceof Collection) {
|
||||
StringBuilder b = new StringBuilder();
|
||||
for(Object o : (Collection)param) {
|
||||
if(b.length() > 0) {
|
||||
b.append(',');
|
||||
}
|
||||
b.append(String.valueOf(o));
|
||||
}
|
||||
return b.toString();
|
||||
} else {
|
||||
return String.valueOf(param);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Format to {@code Pair} objects.
|
||||
* @param collectionFormat Collection format
|
||||
* @param name Name
|
||||
* @param value Value
|
||||
* @return List of pairs
|
||||
*/
|
||||
public List<Pair> parameterToPairs(String collectionFormat, String name, Object value){
|
||||
List<Pair> params = new ArrayList<Pair>();
|
||||
|
||||
// preconditions
|
||||
if (name == null || name.isEmpty() || value == null) return params;
|
||||
|
||||
Collection valueCollection;
|
||||
if (value instanceof Collection) {
|
||||
valueCollection = (Collection) value;
|
||||
} else {
|
||||
params.add(new Pair(name, parameterToString(value)));
|
||||
return params;
|
||||
}
|
||||
|
||||
if (valueCollection.isEmpty()){
|
||||
return params;
|
||||
}
|
||||
|
||||
// get the collection format (default: csv)
|
||||
String format = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat);
|
||||
|
||||
// create the params based on the collection format
|
||||
if ("multi".equals(format)) {
|
||||
for (Object item : valueCollection) {
|
||||
params.add(new Pair(name, parameterToString(item)));
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
String delimiter = ",";
|
||||
|
||||
if ("csv".equals(format)) {
|
||||
delimiter = ",";
|
||||
} else if ("ssv".equals(format)) {
|
||||
delimiter = " ";
|
||||
} else if ("tsv".equals(format)) {
|
||||
delimiter = "\t";
|
||||
} else if ("pipes".equals(format)) {
|
||||
delimiter = "|";
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder() ;
|
||||
for (Object item : valueCollection) {
|
||||
sb.append(delimiter);
|
||||
sb.append(parameterToString(item));
|
||||
}
|
||||
|
||||
params.add(new Pair(name, sb.substring(1)));
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given MIME is a JSON MIME.
|
||||
* JSON MIME examples:
|
||||
* application/json
|
||||
* application/json; charset=UTF8
|
||||
* APPLICATION/JSON
|
||||
* application/vnd.company+json
|
||||
* "* / *" is also default to JSON
|
||||
* @param mime MIME
|
||||
* @return True if the MIME type is JSON
|
||||
*/
|
||||
public boolean isJsonMime(String mime) {
|
||||
String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$";
|
||||
return mime != null && (mime.matches(jsonMime) || mime.equals("*/*"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Select the Accept header's value from the given accepts array:
|
||||
* if JSON exists in the given array, use it;
|
||||
* otherwise use all of them (joining into a string)
|
||||
*
|
||||
* @param accepts The accepts array to select from
|
||||
* @return The Accept header to use. If the given array is empty,
|
||||
* null will be returned (not to set the Accept header explicitly).
|
||||
*/
|
||||
public String selectHeaderAccept(String[] accepts) {
|
||||
if (accepts.length == 0) {
|
||||
return null;
|
||||
}
|
||||
for (String accept : accepts) {
|
||||
if (isJsonMime(accept)) {
|
||||
return accept;
|
||||
}
|
||||
}
|
||||
return StringUtil.join(accepts, ",");
|
||||
}
|
||||
|
||||
/**
|
||||
* Select the Content-Type header's value from the given array:
|
||||
* if JSON exists in the given array, use it;
|
||||
* otherwise use the first one of the array.
|
||||
*
|
||||
* @param contentTypes The Content-Type array to select from
|
||||
* @return The Content-Type header to use. If the given array is empty,
|
||||
* JSON will be used.
|
||||
*/
|
||||
public String selectHeaderContentType(String[] contentTypes) {
|
||||
if (contentTypes.length == 0) {
|
||||
return "application/json";
|
||||
}
|
||||
for (String contentType : contentTypes) {
|
||||
if (isJsonMime(contentType)) {
|
||||
return contentType;
|
||||
}
|
||||
}
|
||||
return contentTypes[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* Escape the given string to be used as URL query value.
|
||||
* @param str String
|
||||
* @return Escaped string
|
||||
*/
|
||||
public String escapeString(String str) {
|
||||
try {
|
||||
return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Serialize the given Java object into string entity according the given
|
||||
* Content-Type (only JSON is supported for now).
|
||||
* @param obj Object
|
||||
* @param formParams Form parameters
|
||||
* @param contentType Context type
|
||||
* @return Entity
|
||||
* @throws ApiException API exception
|
||||
*/
|
||||
public Entity<?> serialize(Object obj, Map<String, Object> formParams, String contentType) throws ApiException {
|
||||
Entity<?> entity;
|
||||
if (contentType.startsWith("multipart/form-data")) {
|
||||
MultiPart multiPart = new MultiPart();
|
||||
for (Entry<String, Object> param: formParams.entrySet()) {
|
||||
if (param.getValue() instanceof File) {
|
||||
File file = (File) param.getValue();
|
||||
FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey())
|
||||
.fileName(file.getName()).size(file.length()).build();
|
||||
multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, MediaType.APPLICATION_OCTET_STREAM_TYPE));
|
||||
} else {
|
||||
FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build();
|
||||
multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue())));
|
||||
}
|
||||
}
|
||||
entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE);
|
||||
} else if (contentType.startsWith("application/x-www-form-urlencoded")) {
|
||||
Form form = new Form();
|
||||
for (Entry<String, Object> param: formParams.entrySet()) {
|
||||
form.param(param.getKey(), parameterToString(param.getValue()));
|
||||
}
|
||||
entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE);
|
||||
} else {
|
||||
// We let jersey handle the serialization
|
||||
entity = Entity.entity(obj, contentType);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserialize response body to Java object according to the Content-Type.
|
||||
* @param <T> Type
|
||||
* @param response Response
|
||||
* @param returnType Return type
|
||||
* @return Deserialize object
|
||||
* @throws ApiException API exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T deserialize(Response response, GenericType<T> returnType) throws ApiException {
|
||||
if (response == null || returnType == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ("byte[]".equals(returnType.toString())) {
|
||||
// Handle binary response (byte array).
|
||||
return (T) response.readEntity(byte[].class);
|
||||
} else if (returnType.getRawType() == File.class) {
|
||||
// Handle file downloading.
|
||||
T file = (T) downloadFileFromResponse(response);
|
||||
return file;
|
||||
}
|
||||
|
||||
String contentType = null;
|
||||
List<Object> contentTypes = response.getHeaders().get("Content-Type");
|
||||
if (contentTypes != null && !contentTypes.isEmpty())
|
||||
contentType = String.valueOf(contentTypes.get(0));
|
||||
if (contentType == null)
|
||||
throw new ApiException(500, "missing Content-Type in response");
|
||||
|
||||
return response.readEntity(returnType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Download file from the given response.
|
||||
* @param response Response
|
||||
* @return File
|
||||
* @throws ApiException If fail to read file content from response and write to disk
|
||||
*/
|
||||
public File downloadFileFromResponse(Response response) throws ApiException {
|
||||
try {
|
||||
File file = prepareDownloadFile(response);
|
||||
Files.copy(response.readEntity(InputStream.class), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
return file;
|
||||
} catch (IOException e) {
|
||||
throw new ApiException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public File prepareDownloadFile(Response response) throws IOException {
|
||||
String filename = null;
|
||||
String contentDisposition = (String) response.getHeaders().getFirst("Content-Disposition");
|
||||
if (contentDisposition != null && !"".equals(contentDisposition)) {
|
||||
// Get filename from the Content-Disposition header.
|
||||
Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?");
|
||||
Matcher matcher = pattern.matcher(contentDisposition);
|
||||
if (matcher.find())
|
||||
filename = matcher.group(1);
|
||||
}
|
||||
|
||||
String prefix;
|
||||
String suffix = null;
|
||||
if (filename == null) {
|
||||
prefix = "download-";
|
||||
suffix = "";
|
||||
} else {
|
||||
int pos = filename.lastIndexOf('.');
|
||||
if (pos == -1) {
|
||||
prefix = filename + "-";
|
||||
} else {
|
||||
prefix = filename.substring(0, pos) + "-";
|
||||
suffix = filename.substring(pos);
|
||||
}
|
||||
// File.createTempFile requires the prefix to be at least three characters long
|
||||
if (prefix.length() < 3)
|
||||
prefix = "download-";
|
||||
}
|
||||
|
||||
if (tempFolderPath == null)
|
||||
return Files.createTempFile(prefix, suffix).toFile();
|
||||
else
|
||||
return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile();
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoke API by sending HTTP request with the given options.
|
||||
*
|
||||
* @param <T> Type
|
||||
* @param path The sub-path of the HTTP URL
|
||||
* @param method The request method, one of "GET", "POST", "PUT", "HEAD" and "DELETE"
|
||||
* @param queryParams The query parameters
|
||||
* @param body The request body object
|
||||
* @param headerParams The header parameters
|
||||
* @param formParams The form parameters
|
||||
* @param accept The request's Accept header
|
||||
* @param contentType The request's Content-Type header
|
||||
* @param authNames The authentications to apply
|
||||
* @param returnType The return type into which to deserialize the response
|
||||
* @return The response body in type of string
|
||||
* @throws ApiException API exception
|
||||
*/
|
||||
public <T> T invokeAPI(String path, String method, List<Pair> queryParams, Object body, Map<String, String> headerParams, Map<String, Object> formParams, String accept, String contentType, String[] authNames, GenericType<T> returnType) throws ApiException {
|
||||
updateParamsForAuth(authNames, queryParams, headerParams);
|
||||
|
||||
// Not using `.target(this.basePath).path(path)` below,
|
||||
// to support (constant) query string in `path`, e.g. "/posts?draft=1"
|
||||
WebTarget target = httpClient.target(this.basePath + path);
|
||||
|
||||
if (queryParams != null) {
|
||||
for (Pair queryParam : queryParams) {
|
||||
if (queryParam.getValue() != null) {
|
||||
target = target.queryParam(queryParam.getName(), queryParam.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Invocation.Builder invocationBuilder = target.request();
|
||||
|
||||
if (accept != null) {
|
||||
invocationBuilder = invocationBuilder.accept(accept);
|
||||
}
|
||||
|
||||
for (Entry<String, String> entry : headerParams.entrySet()) {
|
||||
String value = entry.getValue();
|
||||
if (value != null) {
|
||||
invocationBuilder = invocationBuilder.header(entry.getKey(), value);
|
||||
}
|
||||
}
|
||||
|
||||
for (Entry<String, String> entry : defaultHeaderMap.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
if (!headerParams.containsKey(key)) {
|
||||
String value = entry.getValue();
|
||||
if (value != null) {
|
||||
invocationBuilder = invocationBuilder.header(key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Entity<?> entity = serialize(body, formParams, contentType);
|
||||
|
||||
Response response = null;
|
||||
|
||||
try {
|
||||
if ("GET".equals(method)) {
|
||||
response = invocationBuilder.get();
|
||||
} else if ("POST".equals(method)) {
|
||||
response = invocationBuilder.post(entity);
|
||||
} else if ("PUT".equals(method)) {
|
||||
response = invocationBuilder.put(entity);
|
||||
} else if ("DELETE".equals(method)) {
|
||||
response = invocationBuilder.delete();
|
||||
} else if ("PATCH".equals(method)) {
|
||||
response = invocationBuilder.method("PATCH", entity);
|
||||
} else if ("HEAD".equals(method)) {
|
||||
response = invocationBuilder.head();
|
||||
} else {
|
||||
throw new ApiException(500, "unknown method type " + method);
|
||||
}
|
||||
|
||||
statusCode = response.getStatusInfo().getStatusCode();
|
||||
responseHeaders = buildResponseHeaders(response);
|
||||
|
||||
if (response.getStatus() == Status.NO_CONTENT.getStatusCode()) {
|
||||
return null;
|
||||
} else if (response.getStatusInfo().getFamily() == Status.Family.SUCCESSFUL) {
|
||||
if (returnType == null)
|
||||
return null;
|
||||
else
|
||||
return deserialize(response, returnType);
|
||||
} else {
|
||||
String message = "error";
|
||||
String respBody = null;
|
||||
if (response.hasEntity()) {
|
||||
try {
|
||||
respBody = String.valueOf(response.readEntity(String.class));
|
||||
message = respBody;
|
||||
} catch (RuntimeException e) {
|
||||
// e.printStackTrace();
|
||||
}
|
||||
}
|
||||
throw new ApiException(
|
||||
response.getStatus(),
|
||||
message,
|
||||
buildResponseHeaders(response),
|
||||
respBody);
|
||||
}
|
||||
} finally {
|
||||
try {
|
||||
response.close();
|
||||
} catch (Exception e) {
|
||||
// it's not critical, since the response object is local in method invokeAPI; that's fine, just continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the Client used to make HTTP requests.
|
||||
* @param debugging Debug setting
|
||||
* @return Client
|
||||
*/
|
||||
protected Client buildHttpClient(boolean debugging) {
|
||||
final ClientConfig clientConfig = new ClientConfig();
|
||||
clientConfig.register(MultiPartFeature.class);
|
||||
clientConfig.register(json);
|
||||
clientConfig.register(JacksonFeature.class);
|
||||
clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
|
||||
if (debugging) {
|
||||
clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */));
|
||||
clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY);
|
||||
// Set logger to ALL
|
||||
java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME).setLevel(java.util.logging.Level.ALL);
|
||||
}
|
||||
performAdditionalClientConfiguration(clientConfig);
|
||||
return ClientBuilder.newClient(clientConfig);
|
||||
}
|
||||
|
||||
protected void performAdditionalClientConfiguration(ClientConfig clientConfig) {
|
||||
// No-op extension point
|
||||
}
|
||||
|
||||
protected Map<String, List<String>> buildResponseHeaders(Response response) {
|
||||
Map<String, List<String>> responseHeaders = new HashMap<String, List<String>>();
|
||||
for (Entry<String, List<Object>> entry: response.getHeaders().entrySet()) {
|
||||
List<Object> values = entry.getValue();
|
||||
List<String> headers = new ArrayList<String>();
|
||||
for (Object o : values) {
|
||||
headers.add(String.valueOf(o));
|
||||
}
|
||||
responseHeaders.put(entry.getKey(), headers);
|
||||
}
|
||||
return responseHeaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update query and header parameters based on authentication settings.
|
||||
*
|
||||
* @param authNames The authentications to apply
|
||||
*/
|
||||
protected void updateParamsForAuth(String[] authNames, List<Pair> queryParams, Map<String, String> headerParams) {
|
||||
for (String authName : authNames) {
|
||||
Authentication auth = authentications.get(authName);
|
||||
if (auth == null) throw new RuntimeException("Authentication undefined: " + authName);
|
||||
auth.applyToParams(queryParams, headerParams);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class ApiException extends Exception {
|
||||
private int code = 0;
|
||||
private Map<String, List<String>> responseHeaders = null;
|
||||
private String responseBody = null;
|
||||
|
||||
public ApiException() {}
|
||||
|
||||
public ApiException(Throwable throwable) {
|
||||
super(throwable);
|
||||
}
|
||||
|
||||
public ApiException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders, String responseBody) {
|
||||
super(message, throwable);
|
||||
this.code = code;
|
||||
this.responseHeaders = responseHeaders;
|
||||
this.responseBody = responseBody;
|
||||
}
|
||||
|
||||
public ApiException(String message, int code, Map<String, List<String>> responseHeaders, String responseBody) {
|
||||
this(message, (Throwable) null, code, responseHeaders, responseBody);
|
||||
}
|
||||
|
||||
public ApiException(String message, Throwable throwable, int code, Map<String, List<String>> responseHeaders) {
|
||||
this(message, throwable, code, responseHeaders, null);
|
||||
}
|
||||
|
||||
public ApiException(int code, Map<String, List<String>> responseHeaders, String responseBody) {
|
||||
this((String) null, (Throwable) null, code, responseHeaders, responseBody);
|
||||
}
|
||||
|
||||
public ApiException(int code, String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public ApiException(int code, String message, Map<String, List<String>> responseHeaders, String responseBody) {
|
||||
this(code, message);
|
||||
this.responseHeaders = responseHeaders;
|
||||
this.responseBody = responseBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP status code.
|
||||
*
|
||||
* @return HTTP status code
|
||||
*/
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP response headers.
|
||||
*
|
||||
* @return A map of list of string
|
||||
*/
|
||||
public Map<String, List<String>> getResponseHeaders() {
|
||||
return responseHeaders;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP response body.
|
||||
*
|
||||
* @return Response body in the form of string
|
||||
*/
|
||||
public String getResponseBody() {
|
||||
return responseBody;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client;
|
||||
|
||||
|
||||
public class Configuration {
|
||||
private static ApiClient defaultApiClient = new ApiClient();
|
||||
|
||||
/**
|
||||
* Get the default API client, which would be used when creating API
|
||||
* instances without providing an API client.
|
||||
*
|
||||
* @return Default API client
|
||||
*/
|
||||
public static ApiClient getDefaultApiClient() {
|
||||
return defaultApiClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the default API client, which would be used when creating API
|
||||
* instances without providing an API client.
|
||||
*
|
||||
* @param apiClient API client
|
||||
*/
|
||||
public static void setDefaultApiClient(ApiClient apiClient) {
|
||||
defaultApiClient = apiClient;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package ch.cyberduck.core.idgard.io.swagger.client;
|
||||
|
||||
import com.fasterxml.jackson.annotation.*;
|
||||
import com.fasterxml.jackson.databind.*;
|
||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||
import com.fasterxml.jackson.datatype.joda.JodaModule;
|
||||
|
||||
import java.text.DateFormat;
|
||||
|
||||
import javax.ws.rs.ext.ContextResolver;
|
||||
|
||||
|
||||
public class JSON implements ContextResolver<ObjectMapper> {
|
||||
private ObjectMapper mapper;
|
||||
|
||||
public JSON() {
|
||||
mapper = new ObjectMapper();
|
||||
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false);
|
||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
|
||||
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
|
||||
mapper.setDateFormat(new RFC3339DateFormat());
|
||||
mapper.registerModule(new JavaTimeModule());
|
||||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ObjectMapper getContext(Class<?> type) {
|
||||
return mapper;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client;
|
||||
|
||||
|
||||
public class Pair {
|
||||
private String name = "";
|
||||
private String value = "";
|
||||
|
||||
public Pair (String name, String value) {
|
||||
setName(name);
|
||||
setValue(value);
|
||||
}
|
||||
|
||||
private void setName(String name) {
|
||||
if (!isValidString(name)) return;
|
||||
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
private void setValue(String value) {
|
||||
if (!isValidString(value)) return;
|
||||
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
private boolean isValidString(String arg) {
|
||||
if (arg == null) return false;
|
||||
if (arg.trim().isEmpty()) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client;
|
||||
|
||||
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
|
||||
import com.fasterxml.jackson.databind.util.ISO8601Utils;
|
||||
|
||||
import java.text.FieldPosition;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
public class RFC3339DateFormat extends ISO8601DateFormat {
|
||||
|
||||
// Same as ISO8601DateFormat but serializing milliseconds.
|
||||
@Override
|
||||
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
|
||||
String value = ISO8601Utils.format(date, true);
|
||||
toAppendTo.append(value);
|
||||
return toAppendTo;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client;
|
||||
|
||||
|
||||
public class StringUtil {
|
||||
/**
|
||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||
*
|
||||
* @param array The array
|
||||
* @param value The value to search
|
||||
* @return true if the array contains the value
|
||||
*/
|
||||
public static boolean containsIgnoreCase(String[] array, String value) {
|
||||
for (String str : array) {
|
||||
if (value == null && str == null) return true;
|
||||
if (value != null && value.equalsIgnoreCase(str)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Join an array of strings with the given separator.
|
||||
* <p>
|
||||
* Note: This might be replaced by utility method from commons-lang or guava someday
|
||||
* if one of those libraries is added as dependency.
|
||||
* </p>
|
||||
*
|
||||
* @param array The array of strings
|
||||
* @param separator The separator
|
||||
* @return the resulting string
|
||||
*/
|
||||
public static String join(String[] array, String separator) {
|
||||
int len = array.length;
|
||||
if (len == 0) return "";
|
||||
|
||||
StringBuilder out = new StringBuilder();
|
||||
out.append(array[0]);
|
||||
for (int i = 1; i < len; i++) {
|
||||
out.append(separator).append(array[i]);
|
||||
}
|
||||
return out.toString();
|
||||
}
|
||||
}
|
||||
+462
@@ -0,0 +1,462 @@
|
||||
package ch.cyberduck.core.idgard.io.swagger.client.api;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.ApiException;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.ApiClient;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.Configuration;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.Pair;
|
||||
|
||||
import javax.ws.rs.core.GenericType;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.APIError;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Authentication;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.InlineResponse200;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.PasswordChange;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.PasswordReset;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.PasswordResetWithoutPUK;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.PukChange;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.SimpleUserInfo;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.TotpConfirmBody;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public class AccountsApiApi {
|
||||
private ApiClient apiClient;
|
||||
private Map<String, String> headers;
|
||||
|
||||
public AccountsApiApi() {
|
||||
this(Configuration.getDefaultApiClient());
|
||||
}
|
||||
|
||||
public AccountsApiApi(ApiClient apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
public ApiClient getApiClient() {
|
||||
return apiClient;
|
||||
}
|
||||
|
||||
public void setApiClient(ApiClient apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
public void setHeadersOverrides(Map<String, String> headers) {
|
||||
this.headers = headers;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Complete login with duo as 2FA.
|
||||
* @param challengeId (optional)
|
||||
* @param sigRequest (optional)
|
||||
* @param sigResponse (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void uiapiAccountsAPIV1Rest2faDuoPost(String challengeId, String sigRequest, String sigResponse) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/2fa/duo";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
if (challengeId != null)
|
||||
localVarFormParams.put("challengeId", challengeId);
|
||||
if (sigRequest != null)
|
||||
localVarFormParams.put("sig_request", sigRequest);
|
||||
if (sigResponse != null)
|
||||
localVarFormParams.put("sig_response", sigResponse);
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/x-www-form-urlencoded"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Log in into the Server and creates a Session.
|
||||
* @param body Authentication (required)
|
||||
* @return SimpleUserInfo
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public SimpleUserInfo uiapiAccountsAPIV1RestLoginPost(Authentication body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling uiapiAccountsAPIV1RestLoginPost");
|
||||
}
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/login";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
GenericType<SimpleUserInfo> localVarReturnType = new GenericType<SimpleUserInfo>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Log out the user by invalidating the Session.
|
||||
* @param opt Logout option (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void uiapiAccountsAPIV1RestLogoutPost(String opt) throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/logout";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("", "opt", opt));
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Reset the password and get a new PUK.
|
||||
* @param body (required)
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String uiapiAccountsAPIV1RestPasswordPukPost(PasswordReset body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling uiapiAccountsAPIV1RestPasswordPukPost");
|
||||
}
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/password/puk";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Change the password when logged in.
|
||||
* @param body (required)
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String uiapiAccountsAPIV1RestPasswordPut(PasswordChange body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling uiapiAccountsAPIV1RestPasswordPut");
|
||||
}
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/password";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"text/plain", "application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Reset the password with username, old+new Password (e.g. after password change is required).
|
||||
* @param body (required)
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String uiapiAccountsAPIV1RestPasswordUsernamePost(PasswordResetWithoutPUK body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling uiapiAccountsAPIV1RestPasswordUsernamePost");
|
||||
}
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/password/username";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Generate a new PUK for the account.
|
||||
* @param body (required)
|
||||
* @return String
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public String uiapiAccountsAPIV1RestPukPost(PukChange body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new ApiException(400, "Missing the required parameter 'body' when calling uiapiAccountsAPIV1RestPukPost");
|
||||
}
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/puk";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json", "text/plain"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
GenericType<String> localVarReturnType = new GenericType<String>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Used for 2nd factor authentication. Resend SMS to user either on first or secondary SMS service.
|
||||
* @return Boolean
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public Boolean uiapiAccountsAPIV1RestSmsResendGet() throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/sms/resend";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
GenericType<Boolean> localVarReturnType = new GenericType<Boolean>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Confirm the latest previously requested TOTP secret for this user in this session, overwriting any previous TOTP secrets. Allowed to the authenticated user itself.
|
||||
* @param body (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public void uiapiAccountsAPIV1RestTotpConfirmPost(TotpConfirmBody body) throws ApiException {
|
||||
Object localVarPostBody = body;
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/totp/confirm";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Request a TOTP secret for this user. Before this TOTP secret is active, it needs to be confirmed. A previously configured TOTP secret will remain valid until the new TOTP secret is confirmed. Allowed to the authenticated user itself.
|
||||
* @return InlineResponse200
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public InlineResponse200 uiapiAccountsAPIV1RestTotpRequestPost() throws ApiException {
|
||||
Object localVarPostBody = null;
|
||||
// create path and map variables
|
||||
String localVarPath = "/uiapi/AccountsAPI/v1/rest/totp/request";
|
||||
|
||||
// query params
|
||||
List<Pair> localVarQueryParams = new ArrayList<Pair>();
|
||||
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
|
||||
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
|
||||
|
||||
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
|
||||
final String[] localVarContentTypes = {
|
||||
|
||||
};
|
||||
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { "csrfToken", "idgardIdCookie", "jsessionIdCookie", "myidGidCookie" };
|
||||
|
||||
GenericType<InlineResponse200> localVarReturnType = new GenericType<InlineResponse200>() {};
|
||||
|
||||
if (headers != null) {
|
||||
localVarHeaderParams.putAll(headers);
|
||||
}
|
||||
|
||||
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.auth;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.Pair;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class ApiKeyAuth implements Authentication {
|
||||
private final String location;
|
||||
private final String paramName;
|
||||
|
||||
private String apiKey;
|
||||
private String apiKeyPrefix;
|
||||
|
||||
public ApiKeyAuth(String location, String paramName) {
|
||||
this.location = location;
|
||||
this.paramName = paramName;
|
||||
}
|
||||
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
public String getParamName() {
|
||||
return paramName;
|
||||
}
|
||||
|
||||
public String getApiKey() {
|
||||
return apiKey;
|
||||
}
|
||||
|
||||
public void setApiKey(String apiKey) {
|
||||
this.apiKey = apiKey;
|
||||
}
|
||||
|
||||
public String getApiKeyPrefix() {
|
||||
return apiKeyPrefix;
|
||||
}
|
||||
|
||||
public void setApiKeyPrefix(String apiKeyPrefix) {
|
||||
this.apiKeyPrefix = apiKeyPrefix;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
|
||||
if (apiKey == null) {
|
||||
return;
|
||||
}
|
||||
String value;
|
||||
if (apiKeyPrefix != null) {
|
||||
value = apiKeyPrefix + " " + apiKey;
|
||||
} else {
|
||||
value = apiKey;
|
||||
}
|
||||
if ("query".equals(location)) {
|
||||
queryParams.add(new Pair(paramName, value));
|
||||
} else if ("header".equals(location)) {
|
||||
headerParams.put(paramName, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.auth;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.Pair;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
public interface Authentication {
|
||||
/**
|
||||
* Apply authentication settings to header and query params.
|
||||
*
|
||||
* @param queryParams List of query parameters
|
||||
* @param headerParams Map of header parameters
|
||||
*/
|
||||
void applyToParams(List<Pair> queryParams, Map<String, String> headerParams);
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.auth;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.Pair;
|
||||
|
||||
import java.util.Base64;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
public class HttpBasicAuth implements Authentication {
|
||||
private String username;
|
||||
private String password;
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
|
||||
if (username == null && password == null) {
|
||||
return;
|
||||
}
|
||||
String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
|
||||
headerParams.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8)));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.auth;
|
||||
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.Pair;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class OAuth implements Authentication {
|
||||
private String accessToken;
|
||||
|
||||
public String getAccessToken() {
|
||||
return accessToken;
|
||||
}
|
||||
|
||||
public void setAccessToken(String accessToken) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams) {
|
||||
if (accessToken != null) {
|
||||
headerParams.put("Authorization", "Bearer " + accessToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.auth;
|
||||
|
||||
public enum OAuthFlow {
|
||||
accessCode, implicit, password, application
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* APIError
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class APIError implements InlineResponse4001 {
|
||||
@JsonProperty("error")
|
||||
private String error = null;
|
||||
|
||||
@JsonProperty("payload")
|
||||
private String payload = null;
|
||||
|
||||
public APIError error(String error) {
|
||||
this.error = error;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get error
|
||||
* @return error
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public String getError() {
|
||||
return error;
|
||||
}
|
||||
|
||||
public void setError(String error) {
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public APIError payload(String payload) {
|
||||
this.payload = payload;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get payload
|
||||
* @return payload
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public String getPayload() {
|
||||
return payload;
|
||||
}
|
||||
|
||||
public void setPayload(String payload) {
|
||||
this.payload = payload;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
APIError apIError = (APIError) o;
|
||||
return Objects.equals(this.error, apIError.error) &&
|
||||
Objects.equals(this.payload, apIError.payload);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(error, payload);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class APIError {\n");
|
||||
|
||||
sb.append(" error: ").append(toIndentedString(error)).append("\n");
|
||||
sb.append(" payload: ").append(toIndentedString(payload)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.APIExceptionCauseStackTrace;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* APIExceptionCause
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class APIExceptionCause {
|
||||
@JsonProperty("stackTrace")
|
||||
private List<APIExceptionCauseStackTrace> stackTrace = null;
|
||||
|
||||
@JsonProperty("message")
|
||||
private String message = null;
|
||||
|
||||
@JsonProperty("localizedMessage")
|
||||
private String localizedMessage = null;
|
||||
|
||||
public APIExceptionCause stackTrace(List<APIExceptionCauseStackTrace> stackTrace) {
|
||||
this.stackTrace = stackTrace;
|
||||
return this;
|
||||
}
|
||||
|
||||
public APIExceptionCause addStackTraceItem(APIExceptionCauseStackTrace stackTraceItem) {
|
||||
if (this.stackTrace == null) {
|
||||
this.stackTrace = new ArrayList<>();
|
||||
}
|
||||
this.stackTrace.add(stackTraceItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get stackTrace
|
||||
* @return stackTrace
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<APIExceptionCauseStackTrace> getStackTrace() {
|
||||
return stackTrace;
|
||||
}
|
||||
|
||||
public void setStackTrace(List<APIExceptionCauseStackTrace> stackTrace) {
|
||||
this.stackTrace = stackTrace;
|
||||
}
|
||||
|
||||
public APIExceptionCause message(String message) {
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get message
|
||||
* @return message
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public APIExceptionCause localizedMessage(String localizedMessage) {
|
||||
this.localizedMessage = localizedMessage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get localizedMessage
|
||||
* @return localizedMessage
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getLocalizedMessage() {
|
||||
return localizedMessage;
|
||||
}
|
||||
|
||||
public void setLocalizedMessage(String localizedMessage) {
|
||||
this.localizedMessage = localizedMessage;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
APIExceptionCause apIExceptionCause = (APIExceptionCause) o;
|
||||
return Objects.equals(this.stackTrace, apIExceptionCause.stackTrace) &&
|
||||
Objects.equals(this.message, apIExceptionCause.message) &&
|
||||
Objects.equals(this.localizedMessage, apIExceptionCause.localizedMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(stackTrace, message, localizedMessage);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class APIExceptionCause {\n");
|
||||
|
||||
sb.append(" stackTrace: ").append(toIndentedString(stackTrace)).append("\n");
|
||||
sb.append(" message: ").append(toIndentedString(message)).append("\n");
|
||||
sb.append(" localizedMessage: ").append(toIndentedString(localizedMessage)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+250
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* APIExceptionCauseStackTrace
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class APIExceptionCauseStackTrace {
|
||||
@JsonProperty("classLoaderName")
|
||||
private String classLoaderName = null;
|
||||
|
||||
@JsonProperty("moduleName")
|
||||
private String moduleName = null;
|
||||
|
||||
@JsonProperty("moduleVersion")
|
||||
private String moduleVersion = null;
|
||||
|
||||
@JsonProperty("methodName")
|
||||
private String methodName = null;
|
||||
|
||||
@JsonProperty("fileName")
|
||||
private String fileName = null;
|
||||
|
||||
@JsonProperty("lineNumber")
|
||||
private Integer lineNumber = null;
|
||||
|
||||
@JsonProperty("nativeMethod")
|
||||
private Boolean nativeMethod = null;
|
||||
|
||||
@JsonProperty("className")
|
||||
private String className = null;
|
||||
|
||||
public APIExceptionCauseStackTrace classLoaderName(String classLoaderName) {
|
||||
this.classLoaderName = classLoaderName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get classLoaderName
|
||||
* @return classLoaderName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getClassLoaderName() {
|
||||
return classLoaderName;
|
||||
}
|
||||
|
||||
public void setClassLoaderName(String classLoaderName) {
|
||||
this.classLoaderName = classLoaderName;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace moduleName(String moduleName) {
|
||||
this.moduleName = moduleName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get moduleName
|
||||
* @return moduleName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getModuleName() {
|
||||
return moduleName;
|
||||
}
|
||||
|
||||
public void setModuleName(String moduleName) {
|
||||
this.moduleName = moduleName;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace moduleVersion(String moduleVersion) {
|
||||
this.moduleVersion = moduleVersion;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get moduleVersion
|
||||
* @return moduleVersion
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getModuleVersion() {
|
||||
return moduleVersion;
|
||||
}
|
||||
|
||||
public void setModuleVersion(String moduleVersion) {
|
||||
this.moduleVersion = moduleVersion;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace methodName(String methodName) {
|
||||
this.methodName = methodName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get methodName
|
||||
* @return methodName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getMethodName() {
|
||||
return methodName;
|
||||
}
|
||||
|
||||
public void setMethodName(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace fileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fileName
|
||||
* @return fileName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace lineNumber(Integer lineNumber) {
|
||||
this.lineNumber = lineNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lineNumber
|
||||
* @return lineNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getLineNumber() {
|
||||
return lineNumber;
|
||||
}
|
||||
|
||||
public void setLineNumber(Integer lineNumber) {
|
||||
this.lineNumber = lineNumber;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace nativeMethod(Boolean nativeMethod) {
|
||||
this.nativeMethod = nativeMethod;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nativeMethod
|
||||
* @return nativeMethod
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isNativeMethod() {
|
||||
return nativeMethod;
|
||||
}
|
||||
|
||||
public void setNativeMethod(Boolean nativeMethod) {
|
||||
this.nativeMethod = nativeMethod;
|
||||
}
|
||||
|
||||
public APIExceptionCauseStackTrace className(String className) {
|
||||
this.className = className;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get className
|
||||
* @return className
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
public void setClassName(String className) {
|
||||
this.className = className;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
APIExceptionCauseStackTrace apIExceptionCauseStackTrace = (APIExceptionCauseStackTrace) o;
|
||||
return Objects.equals(this.classLoaderName, apIExceptionCauseStackTrace.classLoaderName) &&
|
||||
Objects.equals(this.moduleName, apIExceptionCauseStackTrace.moduleName) &&
|
||||
Objects.equals(this.moduleVersion, apIExceptionCauseStackTrace.moduleVersion) &&
|
||||
Objects.equals(this.methodName, apIExceptionCauseStackTrace.methodName) &&
|
||||
Objects.equals(this.fileName, apIExceptionCauseStackTrace.fileName) &&
|
||||
Objects.equals(this.lineNumber, apIExceptionCauseStackTrace.lineNumber) &&
|
||||
Objects.equals(this.nativeMethod, apIExceptionCauseStackTrace.nativeMethod) &&
|
||||
Objects.equals(this.className, apIExceptionCauseStackTrace.className);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(classLoaderName, moduleName, moduleVersion, methodName, fileName, lineNumber, nativeMethod, className);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class APIExceptionCauseStackTrace {\n");
|
||||
|
||||
sb.append(" classLoaderName: ").append(toIndentedString(classLoaderName)).append("\n");
|
||||
sb.append(" moduleName: ").append(toIndentedString(moduleName)).append("\n");
|
||||
sb.append(" moduleVersion: ").append(toIndentedString(moduleVersion)).append("\n");
|
||||
sb.append(" methodName: ").append(toIndentedString(methodName)).append("\n");
|
||||
sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n");
|
||||
sb.append(" lineNumber: ").append(toIndentedString(lineNumber)).append("\n");
|
||||
sb.append(" nativeMethod: ").append(toIndentedString(nativeMethod)).append("\n");
|
||||
sb.append(" className: ").append(toIndentedString(className)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* files in an av-enabled box only
|
||||
*/
|
||||
@Schema(description = "files in an av-enabled box only")
|
||||
|
||||
|
||||
public class AVScanInfo {
|
||||
@JsonProperty("avSignature")
|
||||
private String avSignature = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets avStatus
|
||||
*/
|
||||
public enum AvStatusEnum {
|
||||
UNKNOWN("UNKNOWN"),
|
||||
SCAN_PENDING("SCAN_PENDING"),
|
||||
CLEAN("CLEAN"),
|
||||
INFECTED("INFECTED"),
|
||||
NOT_SUPPORTED("NOT_SUPPORTED");
|
||||
|
||||
private String value;
|
||||
|
||||
AvStatusEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static AvStatusEnum fromValue(String input) {
|
||||
for (AvStatusEnum b : AvStatusEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("avStatus")
|
||||
private AvStatusEnum avStatus = null;
|
||||
|
||||
@JsonProperty("scanDate")
|
||||
private DateTime scanDate = null;
|
||||
|
||||
public AVScanInfo avSignature(String avSignature) {
|
||||
this.avSignature = avSignature;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get avSignature
|
||||
* @return avSignature
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAvSignature() {
|
||||
return avSignature;
|
||||
}
|
||||
|
||||
public void setAvSignature(String avSignature) {
|
||||
this.avSignature = avSignature;
|
||||
}
|
||||
|
||||
public AVScanInfo avStatus(AvStatusEnum avStatus) {
|
||||
this.avStatus = avStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get avStatus
|
||||
* @return avStatus
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public AvStatusEnum getAvStatus() {
|
||||
return avStatus;
|
||||
}
|
||||
|
||||
public void setAvStatus(AvStatusEnum avStatus) {
|
||||
this.avStatus = avStatus;
|
||||
}
|
||||
|
||||
public AVScanInfo scanDate(DateTime scanDate) {
|
||||
this.scanDate = scanDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get scanDate
|
||||
* @return scanDate
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getScanDate() {
|
||||
return scanDate;
|
||||
}
|
||||
|
||||
public void setScanDate(DateTime scanDate) {
|
||||
this.scanDate = scanDate;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AVScanInfo avScanInfo = (AVScanInfo) o;
|
||||
return Objects.equals(this.avSignature, avScanInfo.avSignature) &&
|
||||
Objects.equals(this.avStatus, avScanInfo.avStatus) &&
|
||||
Objects.equals(this.scanDate, avScanInfo.scanDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(avSignature, avStatus, scanDate);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AVScanInfo {\n");
|
||||
|
||||
sb.append(" avSignature: ").append(toIndentedString(avSignature)).append("\n");
|
||||
sb.append(" avStatus: ").append(toIndentedString(avStatus)).append("\n");
|
||||
sb.append(" scanDate: ").append(toIndentedString(scanDate)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* time range in which guests can access
|
||||
*/
|
||||
@Schema(description = "time range in which guests can access")
|
||||
|
||||
|
||||
public class AccessibleTime {
|
||||
@JsonProperty("notAfter")
|
||||
private DateTime notAfter = null;
|
||||
|
||||
@JsonProperty("notBefore")
|
||||
private DateTime notBefore = null;
|
||||
|
||||
public AccessibleTime notAfter(DateTime notAfter) {
|
||||
this.notAfter = notAfter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* latest date to be accessible by guest
|
||||
* @return notAfter
|
||||
**/
|
||||
@Schema(description = "latest date to be accessible by guest")
|
||||
public DateTime getNotAfter() {
|
||||
return notAfter;
|
||||
}
|
||||
|
||||
public void setNotAfter(DateTime notAfter) {
|
||||
this.notAfter = notAfter;
|
||||
}
|
||||
|
||||
public AccessibleTime notBefore(DateTime notBefore) {
|
||||
this.notBefore = notBefore;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* earliest date to be accessible by guest
|
||||
* @return notBefore
|
||||
**/
|
||||
@Schema(description = "earliest date to be accessible by guest")
|
||||
public DateTime getNotBefore() {
|
||||
return notBefore;
|
||||
}
|
||||
|
||||
public void setNotBefore(DateTime notBefore) {
|
||||
this.notBefore = notBefore;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AccessibleTime accessibleTime = (AccessibleTime) o;
|
||||
return Objects.equals(this.notAfter, accessibleTime.notAfter) &&
|
||||
Objects.equals(this.notBefore, accessibleTime.notBefore);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(notAfter, notBefore);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccessibleTime {\n");
|
||||
|
||||
sb.append(" notAfter: ").append(toIndentedString(notAfter)).append("\n");
|
||||
sb.append(" notBefore: ").append(toIndentedString(notBefore)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AccountCreationPolicy
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AccountCreationPolicy {
|
||||
@JsonProperty("canCreateRegularGuest")
|
||||
private Boolean canCreateRegularGuest = null;
|
||||
|
||||
@JsonProperty("canCreateTempGuest")
|
||||
private Boolean canCreateTempGuest = null;
|
||||
|
||||
public AccountCreationPolicy canCreateRegularGuest(Boolean canCreateRegularGuest) {
|
||||
this.canCreateRegularGuest = canCreateRegularGuest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canCreateRegularGuest
|
||||
* @return canCreateRegularGuest
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanCreateRegularGuest() {
|
||||
return canCreateRegularGuest;
|
||||
}
|
||||
|
||||
public void setCanCreateRegularGuest(Boolean canCreateRegularGuest) {
|
||||
this.canCreateRegularGuest = canCreateRegularGuest;
|
||||
}
|
||||
|
||||
public AccountCreationPolicy canCreateTempGuest(Boolean canCreateTempGuest) {
|
||||
this.canCreateTempGuest = canCreateTempGuest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canCreateTempGuest
|
||||
* @return canCreateTempGuest
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanCreateTempGuest() {
|
||||
return canCreateTempGuest;
|
||||
}
|
||||
|
||||
public void setCanCreateTempGuest(Boolean canCreateTempGuest) {
|
||||
this.canCreateTempGuest = canCreateTempGuest;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AccountCreationPolicy accountCreationPolicy = (AccountCreationPolicy) o;
|
||||
return Objects.equals(this.canCreateRegularGuest, accountCreationPolicy.canCreateRegularGuest) &&
|
||||
Objects.equals(this.canCreateTempGuest, accountCreationPolicy.canCreateTempGuest);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(canCreateRegularGuest, canCreateTempGuest);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccountCreationPolicy {\n");
|
||||
|
||||
sb.append(" canCreateRegularGuest: ").append(toIndentedString(canCreateRegularGuest)).append("\n");
|
||||
sb.append(" canCreateTempGuest: ").append(toIndentedString(canCreateTempGuest)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AccountEnability
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AccountEnability {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("enabled")
|
||||
private Boolean enabled = null;
|
||||
|
||||
public AccountEnability id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The id to apply to
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "The id to apply to")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AccountEnability enabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to activate or deactivate the feature
|
||||
* @return enabled
|
||||
**/
|
||||
@Schema(description = "Whether to activate or deactivate the feature")
|
||||
public Boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AccountEnability accountEnability = (AccountEnability) o;
|
||||
return Objects.equals(this.id, accountEnability.id) &&
|
||||
Objects.equals(this.enabled, accountEnability.enabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, enabled);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccountEnability {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" enabled: ").append(toIndentedString(enabled)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* AccountVisibility
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AccountVisibility extends ArrayList<String> {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AccountVisibility {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* Address
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class Address {
|
||||
@JsonProperty("streetAndNumber")
|
||||
private String streetAndNumber = null;
|
||||
|
||||
@JsonProperty("zip")
|
||||
private String zip = null;
|
||||
|
||||
@JsonProperty("city")
|
||||
private String city = null;
|
||||
|
||||
@JsonProperty("country")
|
||||
private String country = null;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email = null;
|
||||
|
||||
@JsonProperty("phoneNumber")
|
||||
private String phoneNumber = null;
|
||||
|
||||
@JsonProperty("extraInfo")
|
||||
private String extraInfo = null;
|
||||
|
||||
public Address streetAndNumber(String streetAndNumber) {
|
||||
this.streetAndNumber = streetAndNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get streetAndNumber
|
||||
* @return streetAndNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getStreetAndNumber() {
|
||||
return streetAndNumber;
|
||||
}
|
||||
|
||||
public void setStreetAndNumber(String streetAndNumber) {
|
||||
this.streetAndNumber = streetAndNumber;
|
||||
}
|
||||
|
||||
public Address zip(String zip) {
|
||||
this.zip = zip;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get zip
|
||||
* @return zip
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getZip() {
|
||||
return zip;
|
||||
}
|
||||
|
||||
public void setZip(String zip) {
|
||||
this.zip = zip;
|
||||
}
|
||||
|
||||
public Address city(String city) {
|
||||
this.city = city;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get city
|
||||
* @return city
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public Address country(String country) {
|
||||
this.country = country;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get country
|
||||
* @return country
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public Address email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public Address phoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get phoneNumber
|
||||
* @return phoneNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public Address extraInfo(String extraInfo) {
|
||||
this.extraInfo = extraInfo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get extraInfo
|
||||
* @return extraInfo
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getExtraInfo() {
|
||||
return extraInfo;
|
||||
}
|
||||
|
||||
public void setExtraInfo(String extraInfo) {
|
||||
this.extraInfo = extraInfo;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Address address = (Address) o;
|
||||
return Objects.equals(this.streetAndNumber, address.streetAndNumber) &&
|
||||
Objects.equals(this.zip, address.zip) &&
|
||||
Objects.equals(this.city, address.city) &&
|
||||
Objects.equals(this.country, address.country) &&
|
||||
Objects.equals(this.email, address.email) &&
|
||||
Objects.equals(this.phoneNumber, address.phoneNumber) &&
|
||||
Objects.equals(this.extraInfo, address.extraInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(streetAndNumber, zip, city, country, email, phoneNumber, extraInfo);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Address {\n");
|
||||
|
||||
sb.append(" streetAndNumber: ").append(toIndentedString(streetAndNumber)).append("\n");
|
||||
sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
|
||||
sb.append(" city: ").append(toIndentedString(city)).append("\n");
|
||||
sb.append(" country: ").append(toIndentedString(country)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
|
||||
sb.append(" extraInfo: ").append(toIndentedString(extraInfo)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AdminLogAction
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AdminLogAction {
|
||||
@JsonProperty("action")
|
||||
private String action = null;
|
||||
|
||||
@JsonProperty("text")
|
||||
private String text = null;
|
||||
|
||||
public AdminLogAction action(String action) {
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get action
|
||||
* @return action
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setAction(String action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public AdminLogAction text(String text) {
|
||||
this.text = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get text
|
||||
* @return text
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AdminLogAction adminLogAction = (AdminLogAction) o;
|
||||
return Objects.equals(this.action, adminLogAction.action) &&
|
||||
Objects.equals(this.text, adminLogAction.text);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(action, text);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AdminLogAction {\n");
|
||||
|
||||
sb.append(" action: ").append(toIndentedString(action)).append("\n");
|
||||
sb.append(" text: ").append(toIndentedString(text)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+320
@@ -0,0 +1,320 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* AdminLogEntry
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AdminLogEntry {
|
||||
@JsonProperty("action")
|
||||
private String action = null;
|
||||
|
||||
@JsonProperty("actorId")
|
||||
private String actorId = null;
|
||||
|
||||
@JsonProperty("actorName")
|
||||
private String actorName = null;
|
||||
|
||||
@JsonProperty("actorRole")
|
||||
private String actorRole = null;
|
||||
|
||||
@JsonProperty("oldData")
|
||||
private String oldData = null;
|
||||
|
||||
@JsonProperty("newData")
|
||||
private String newData = null;
|
||||
|
||||
@JsonProperty("date")
|
||||
private DateTime date = null;
|
||||
|
||||
@JsonProperty("actionText")
|
||||
private String actionText = null;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description = null;
|
||||
|
||||
@JsonProperty("affectedUserId")
|
||||
private String affectedUserId = null;
|
||||
|
||||
@JsonProperty("affectedUserName")
|
||||
private String affectedUserName = null;
|
||||
|
||||
public AdminLogEntry action(String action) {
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get action
|
||||
* @return action
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setAction(String action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public AdminLogEntry actorId(String actorId) {
|
||||
this.actorId = actorId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get actorId
|
||||
* @return actorId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getActorId() {
|
||||
return actorId;
|
||||
}
|
||||
|
||||
public void setActorId(String actorId) {
|
||||
this.actorId = actorId;
|
||||
}
|
||||
|
||||
public AdminLogEntry actorName(String actorName) {
|
||||
this.actorName = actorName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get actorName
|
||||
* @return actorName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getActorName() {
|
||||
return actorName;
|
||||
}
|
||||
|
||||
public void setActorName(String actorName) {
|
||||
this.actorName = actorName;
|
||||
}
|
||||
|
||||
public AdminLogEntry actorRole(String actorRole) {
|
||||
this.actorRole = actorRole;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get actorRole
|
||||
* @return actorRole
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getActorRole() {
|
||||
return actorRole;
|
||||
}
|
||||
|
||||
public void setActorRole(String actorRole) {
|
||||
this.actorRole = actorRole;
|
||||
}
|
||||
|
||||
public AdminLogEntry oldData(String oldData) {
|
||||
this.oldData = oldData;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get oldData
|
||||
* @return oldData
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getOldData() {
|
||||
return oldData;
|
||||
}
|
||||
|
||||
public void setOldData(String oldData) {
|
||||
this.oldData = oldData;
|
||||
}
|
||||
|
||||
public AdminLogEntry newData(String newData) {
|
||||
this.newData = newData;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get newData
|
||||
* @return newData
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getNewData() {
|
||||
return newData;
|
||||
}
|
||||
|
||||
public void setNewData(String newData) {
|
||||
this.newData = newData;
|
||||
}
|
||||
|
||||
public AdminLogEntry date(DateTime date) {
|
||||
this.date = date;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get date
|
||||
* @return date
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(DateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public AdminLogEntry actionText(String actionText) {
|
||||
this.actionText = actionText;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get actionText
|
||||
* @return actionText
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getActionText() {
|
||||
return actionText;
|
||||
}
|
||||
|
||||
public void setActionText(String actionText) {
|
||||
this.actionText = actionText;
|
||||
}
|
||||
|
||||
public AdminLogEntry description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
* @return description
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public AdminLogEntry affectedUserId(String affectedUserId) {
|
||||
this.affectedUserId = affectedUserId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get affectedUserId
|
||||
* @return affectedUserId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAffectedUserId() {
|
||||
return affectedUserId;
|
||||
}
|
||||
|
||||
public void setAffectedUserId(String affectedUserId) {
|
||||
this.affectedUserId = affectedUserId;
|
||||
}
|
||||
|
||||
public AdminLogEntry affectedUserName(String affectedUserName) {
|
||||
this.affectedUserName = affectedUserName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get affectedUserName
|
||||
* @return affectedUserName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAffectedUserName() {
|
||||
return affectedUserName;
|
||||
}
|
||||
|
||||
public void setAffectedUserName(String affectedUserName) {
|
||||
this.affectedUserName = affectedUserName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AdminLogEntry adminLogEntry = (AdminLogEntry) o;
|
||||
return Objects.equals(this.action, adminLogEntry.action) &&
|
||||
Objects.equals(this.actorId, adminLogEntry.actorId) &&
|
||||
Objects.equals(this.actorName, adminLogEntry.actorName) &&
|
||||
Objects.equals(this.actorRole, adminLogEntry.actorRole) &&
|
||||
Objects.equals(this.oldData, adminLogEntry.oldData) &&
|
||||
Objects.equals(this.newData, adminLogEntry.newData) &&
|
||||
Objects.equals(this.date, adminLogEntry.date) &&
|
||||
Objects.equals(this.actionText, adminLogEntry.actionText) &&
|
||||
Objects.equals(this.description, adminLogEntry.description) &&
|
||||
Objects.equals(this.affectedUserId, adminLogEntry.affectedUserId) &&
|
||||
Objects.equals(this.affectedUserName, adminLogEntry.affectedUserName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(action, actorId, actorName, actorRole, oldData, newData, date, actionText, description, affectedUserId, affectedUserName);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AdminLogEntry {\n");
|
||||
|
||||
sb.append(" action: ").append(toIndentedString(action)).append("\n");
|
||||
sb.append(" actorId: ").append(toIndentedString(actorId)).append("\n");
|
||||
sb.append(" actorName: ").append(toIndentedString(actorName)).append("\n");
|
||||
sb.append(" actorRole: ").append(toIndentedString(actorRole)).append("\n");
|
||||
sb.append(" oldData: ").append(toIndentedString(oldData)).append("\n");
|
||||
sb.append(" newData: ").append(toIndentedString(newData)).append("\n");
|
||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||
sb.append(" actionText: ").append(toIndentedString(actionText)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" affectedUserId: ").append(toIndentedString(affectedUserId)).append("\n");
|
||||
sb.append(" affectedUserName: ").append(toIndentedString(affectedUserName)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AdminLogUser
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AdminLogUser {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
public AdminLogUser id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User identification
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "User identification")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AdminLogUser name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* User name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "User 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;
|
||||
}
|
||||
AdminLogUser adminLogUser = (AdminLogUser) o;
|
||||
return Objects.equals(this.id, adminLogUser.id) &&
|
||||
Objects.equals(this.name, adminLogUser.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AdminLogUser {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+504
@@ -0,0 +1,504 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Address;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AdminRegistration
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AdminRegistration {
|
||||
@JsonProperty("interestedInLoginCard")
|
||||
private Boolean interestedInLoginCard = null;
|
||||
|
||||
@JsonProperty("interestedInNews")
|
||||
private Boolean interestedInNews = null;
|
||||
|
||||
@JsonProperty("pricePacketId")
|
||||
private String pricePacketId = null;
|
||||
|
||||
@JsonProperty("promotionCode")
|
||||
private String promotionCode = null;
|
||||
|
||||
@JsonProperty("username")
|
||||
private String username = null;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
|
||||
@JsonProperty("passwordRepeat")
|
||||
private String passwordRepeat = null;
|
||||
|
||||
@JsonProperty("companyName")
|
||||
private String companyName = null;
|
||||
|
||||
@JsonProperty("adminName")
|
||||
private String adminName = null;
|
||||
|
||||
@JsonProperty("adminEmail")
|
||||
private String adminEmail = null;
|
||||
|
||||
@JsonProperty("phoneNumber")
|
||||
private String phoneNumber = null;
|
||||
|
||||
@JsonProperty("extraInfo")
|
||||
private String extraInfo = null;
|
||||
|
||||
@JsonProperty("address")
|
||||
private Address address = null;
|
||||
|
||||
@JsonProperty("billingAddress")
|
||||
private Address billingAddress = null;
|
||||
|
||||
@JsonProperty("taxNumber")
|
||||
private String taxNumber = null;
|
||||
|
||||
@JsonProperty("companySize")
|
||||
private String companySize = null;
|
||||
|
||||
@JsonProperty("companyBranch")
|
||||
private String companyBranch = null;
|
||||
|
||||
@JsonProperty("captchaResponse")
|
||||
private String captchaResponse = null;
|
||||
|
||||
@JsonProperty("trackInfo")
|
||||
private String trackInfo = null;
|
||||
|
||||
public AdminRegistration interestedInLoginCard(Boolean interestedInLoginCard) {
|
||||
this.interestedInLoginCard = interestedInLoginCard;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get interestedInLoginCard
|
||||
* @return interestedInLoginCard
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isInterestedInLoginCard() {
|
||||
return interestedInLoginCard;
|
||||
}
|
||||
|
||||
public void setInterestedInLoginCard(Boolean interestedInLoginCard) {
|
||||
this.interestedInLoginCard = interestedInLoginCard;
|
||||
}
|
||||
|
||||
public AdminRegistration interestedInNews(Boolean interestedInNews) {
|
||||
this.interestedInNews = interestedInNews;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get interestedInNews
|
||||
* @return interestedInNews
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isInterestedInNews() {
|
||||
return interestedInNews;
|
||||
}
|
||||
|
||||
public void setInterestedInNews(Boolean interestedInNews) {
|
||||
this.interestedInNews = interestedInNews;
|
||||
}
|
||||
|
||||
public AdminRegistration pricePacketId(String pricePacketId) {
|
||||
this.pricePacketId = pricePacketId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pricePacketId
|
||||
* @return pricePacketId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPricePacketId() {
|
||||
return pricePacketId;
|
||||
}
|
||||
|
||||
public void setPricePacketId(String pricePacketId) {
|
||||
this.pricePacketId = pricePacketId;
|
||||
}
|
||||
|
||||
public AdminRegistration promotionCode(String promotionCode) {
|
||||
this.promotionCode = promotionCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get promotionCode
|
||||
* @return promotionCode
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPromotionCode() {
|
||||
return promotionCode;
|
||||
}
|
||||
|
||||
public void setPromotionCode(String promotionCode) {
|
||||
this.promotionCode = promotionCode;
|
||||
}
|
||||
|
||||
public AdminRegistration username(String username) {
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public AdminRegistration password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public AdminRegistration passwordRepeat(String passwordRepeat) {
|
||||
this.passwordRepeat = passwordRepeat;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get passwordRepeat
|
||||
* @return passwordRepeat
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPasswordRepeat() {
|
||||
return passwordRepeat;
|
||||
}
|
||||
|
||||
public void setPasswordRepeat(String passwordRepeat) {
|
||||
this.passwordRepeat = passwordRepeat;
|
||||
}
|
||||
|
||||
public AdminRegistration companyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get companyName
|
||||
* @return companyName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public AdminRegistration adminName(String adminName) {
|
||||
this.adminName = adminName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get adminName
|
||||
* @return adminName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAdminName() {
|
||||
return adminName;
|
||||
}
|
||||
|
||||
public void setAdminName(String adminName) {
|
||||
this.adminName = adminName;
|
||||
}
|
||||
|
||||
public AdminRegistration adminEmail(String adminEmail) {
|
||||
this.adminEmail = adminEmail;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get adminEmail
|
||||
* @return adminEmail
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAdminEmail() {
|
||||
return adminEmail;
|
||||
}
|
||||
|
||||
public void setAdminEmail(String adminEmail) {
|
||||
this.adminEmail = adminEmail;
|
||||
}
|
||||
|
||||
public AdminRegistration phoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get phoneNumber
|
||||
* @return phoneNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
public AdminRegistration extraInfo(String extraInfo) {
|
||||
this.extraInfo = extraInfo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get extraInfo
|
||||
* @return extraInfo
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getExtraInfo() {
|
||||
return extraInfo;
|
||||
}
|
||||
|
||||
public void setExtraInfo(String extraInfo) {
|
||||
this.extraInfo = extraInfo;
|
||||
}
|
||||
|
||||
public AdminRegistration address(Address address) {
|
||||
this.address = address;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get address
|
||||
* @return address
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Address getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(Address address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public AdminRegistration billingAddress(Address billingAddress) {
|
||||
this.billingAddress = billingAddress;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get billingAddress
|
||||
* @return billingAddress
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Address getBillingAddress() {
|
||||
return billingAddress;
|
||||
}
|
||||
|
||||
public void setBillingAddress(Address billingAddress) {
|
||||
this.billingAddress = billingAddress;
|
||||
}
|
||||
|
||||
public AdminRegistration taxNumber(String taxNumber) {
|
||||
this.taxNumber = taxNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get taxNumber
|
||||
* @return taxNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTaxNumber() {
|
||||
return taxNumber;
|
||||
}
|
||||
|
||||
public void setTaxNumber(String taxNumber) {
|
||||
this.taxNumber = taxNumber;
|
||||
}
|
||||
|
||||
public AdminRegistration companySize(String companySize) {
|
||||
this.companySize = companySize;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get companySize
|
||||
* @return companySize
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCompanySize() {
|
||||
return companySize;
|
||||
}
|
||||
|
||||
public void setCompanySize(String companySize) {
|
||||
this.companySize = companySize;
|
||||
}
|
||||
|
||||
public AdminRegistration companyBranch(String companyBranch) {
|
||||
this.companyBranch = companyBranch;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get companyBranch
|
||||
* @return companyBranch
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCompanyBranch() {
|
||||
return companyBranch;
|
||||
}
|
||||
|
||||
public void setCompanyBranch(String companyBranch) {
|
||||
this.companyBranch = companyBranch;
|
||||
}
|
||||
|
||||
public AdminRegistration captchaResponse(String captchaResponse) {
|
||||
this.captchaResponse = captchaResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get captchaResponse
|
||||
* @return captchaResponse
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCaptchaResponse() {
|
||||
return captchaResponse;
|
||||
}
|
||||
|
||||
public void setCaptchaResponse(String captchaResponse) {
|
||||
this.captchaResponse = captchaResponse;
|
||||
}
|
||||
|
||||
public AdminRegistration trackInfo(String trackInfo) {
|
||||
this.trackInfo = trackInfo;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get trackInfo
|
||||
* @return trackInfo
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTrackInfo() {
|
||||
return trackInfo;
|
||||
}
|
||||
|
||||
public void setTrackInfo(String trackInfo) {
|
||||
this.trackInfo = trackInfo;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AdminRegistration adminRegistration = (AdminRegistration) o;
|
||||
return Objects.equals(this.interestedInLoginCard, adminRegistration.interestedInLoginCard) &&
|
||||
Objects.equals(this.interestedInNews, adminRegistration.interestedInNews) &&
|
||||
Objects.equals(this.pricePacketId, adminRegistration.pricePacketId) &&
|
||||
Objects.equals(this.promotionCode, adminRegistration.promotionCode) &&
|
||||
Objects.equals(this.username, adminRegistration.username) &&
|
||||
Objects.equals(this.password, adminRegistration.password) &&
|
||||
Objects.equals(this.passwordRepeat, adminRegistration.passwordRepeat) &&
|
||||
Objects.equals(this.companyName, adminRegistration.companyName) &&
|
||||
Objects.equals(this.adminName, adminRegistration.adminName) &&
|
||||
Objects.equals(this.adminEmail, adminRegistration.adminEmail) &&
|
||||
Objects.equals(this.phoneNumber, adminRegistration.phoneNumber) &&
|
||||
Objects.equals(this.extraInfo, adminRegistration.extraInfo) &&
|
||||
Objects.equals(this.address, adminRegistration.address) &&
|
||||
Objects.equals(this.billingAddress, adminRegistration.billingAddress) &&
|
||||
Objects.equals(this.taxNumber, adminRegistration.taxNumber) &&
|
||||
Objects.equals(this.companySize, adminRegistration.companySize) &&
|
||||
Objects.equals(this.companyBranch, adminRegistration.companyBranch) &&
|
||||
Objects.equals(this.captchaResponse, adminRegistration.captchaResponse) &&
|
||||
Objects.equals(this.trackInfo, adminRegistration.trackInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(interestedInLoginCard, interestedInNews, pricePacketId, promotionCode, username, password, passwordRepeat, companyName, adminName, adminEmail, phoneNumber, extraInfo, address, billingAddress, taxNumber, companySize, companyBranch, captchaResponse, trackInfo);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AdminRegistration {\n");
|
||||
|
||||
sb.append(" interestedInLoginCard: ").append(toIndentedString(interestedInLoginCard)).append("\n");
|
||||
sb.append(" interestedInNews: ").append(toIndentedString(interestedInNews)).append("\n");
|
||||
sb.append(" pricePacketId: ").append(toIndentedString(pricePacketId)).append("\n");
|
||||
sb.append(" promotionCode: ").append(toIndentedString(promotionCode)).append("\n");
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" passwordRepeat: ").append(toIndentedString(passwordRepeat)).append("\n");
|
||||
sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
|
||||
sb.append(" adminName: ").append(toIndentedString(adminName)).append("\n");
|
||||
sb.append(" adminEmail: ").append(toIndentedString(adminEmail)).append("\n");
|
||||
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
|
||||
sb.append(" extraInfo: ").append(toIndentedString(extraInfo)).append("\n");
|
||||
sb.append(" address: ").append(toIndentedString(address)).append("\n");
|
||||
sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
|
||||
sb.append(" taxNumber: ").append(toIndentedString(taxNumber)).append("\n");
|
||||
sb.append(" companySize: ").append(toIndentedString(companySize)).append("\n");
|
||||
sb.append(" companyBranch: ").append(toIndentedString(companyBranch)).append("\n");
|
||||
sb.append(" captchaResponse: ").append(toIndentedString(captchaResponse)).append("\n");
|
||||
sb.append(" trackInfo: ").append(toIndentedString(trackInfo)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* alert config for dr
|
||||
*/
|
||||
@Schema(description = "alert config for dr")
|
||||
|
||||
|
||||
public class Alert {
|
||||
@JsonProperty("downloadCountThreshhold")
|
||||
private Integer downloadCountThreshhold = null;
|
||||
|
||||
@JsonProperty("intervalInMin")
|
||||
private Integer intervalInMin = null;
|
||||
|
||||
public Alert downloadCountThreshhold(Integer downloadCountThreshhold) {
|
||||
this.downloadCountThreshhold = downloadCountThreshhold;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get downloadCountThreshhold
|
||||
* @return downloadCountThreshhold
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getDownloadCountThreshhold() {
|
||||
return downloadCountThreshhold;
|
||||
}
|
||||
|
||||
public void setDownloadCountThreshhold(Integer downloadCountThreshhold) {
|
||||
this.downloadCountThreshhold = downloadCountThreshhold;
|
||||
}
|
||||
|
||||
public Alert intervalInMin(Integer intervalInMin) {
|
||||
this.intervalInMin = intervalInMin;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get intervalInMin
|
||||
* @return intervalInMin
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getIntervalInMin() {
|
||||
return intervalInMin;
|
||||
}
|
||||
|
||||
public void setIntervalInMin(Integer intervalInMin) {
|
||||
this.intervalInMin = intervalInMin;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Alert alert = (Alert) o;
|
||||
return Objects.equals(this.downloadCountThreshhold, alert.downloadCountThreshhold) &&
|
||||
Objects.equals(this.intervalInMin, alert.intervalInMin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(downloadCountThreshhold, intervalInMin);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Alert {\n");
|
||||
|
||||
sb.append(" downloadCountThreshhold: ").append(toIndentedString(downloadCountThreshhold)).append("\n");
|
||||
sb.append(" intervalInMin: ").append(toIndentedString(intervalInMin)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserBoxStatistics;
|
||||
/**
|
||||
* AllOfUserWrapperStatisticsUserBox
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AllOfUserWrapperStatisticsUserBox extends UserBoxStatistics {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfUserWrapperStatisticsUserBox {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserInfoStatistics;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* AllOfUserWrapperStatisticsUserInfos
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AllOfUserWrapperStatisticsUserInfos extends UserInfoStatistics {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfUserWrapperStatisticsUserInfos {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserStorageStatistics;
|
||||
/**
|
||||
* AllOfUserWrapperStatisticsUserStorage
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AllOfUserWrapperStatisticsUserStorage extends UserStorageStatistics {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfUserWrapperStatisticsUserStorage {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.LoginValidation;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.RegistrationValidation;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserCreation;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* required: loginValidation.type
|
||||
*/
|
||||
@Schema(description = "required: loginValidation.type")
|
||||
|
||||
|
||||
public class AllOfUserWrapperUserCreation extends UserCreation {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfUserWrapperUserCreation {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserInfos;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* required: name, email, type, admin
|
||||
*/
|
||||
@Schema(description = "required: name, email, type, admin")
|
||||
|
||||
|
||||
public class AllOfUserWrapperUserInfos extends UserInfos {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfUserWrapperUserInfos {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.AccountCreationPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.AccountVisibility;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxBasePolicies;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.TempBoxesPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserPermissions;
|
||||
/**
|
||||
* AllOfUserWrapperUserPermissions
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AllOfUserWrapperUserPermissions extends UserPermissions {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfUserWrapperUserPermissions {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+275
@@ -0,0 +1,275 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AndroidClientPolicy
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AndroidClientPolicy {
|
||||
@JsonProperty("apply")
|
||||
private Boolean apply = null;
|
||||
|
||||
@JsonProperty("verifyServerCertificate")
|
||||
private Boolean verifyServerCertificate = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets storageOption
|
||||
*/
|
||||
public enum StorageOptionEnum {
|
||||
NO_LOCAL("NO_LOCAL"),
|
||||
REMOTE_ENC("REMOTE_ENC"),
|
||||
AVAIL_OFFLINE("AVAIL_OFFLINE");
|
||||
|
||||
private String value;
|
||||
|
||||
StorageOptionEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static StorageOptionEnum fromValue(String input) {
|
||||
for (StorageOptionEnum b : StorageOptionEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("storageOption")
|
||||
private StorageOptionEnum storageOption = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets cacheOption
|
||||
*/
|
||||
public enum CacheOptionEnum {
|
||||
DELETE_ON_LOGOUT("DELETE_ON_LOGOUT"),
|
||||
KEEP_ON_LOGOUT("KEEP_ON_LOGOUT");
|
||||
|
||||
private String value;
|
||||
|
||||
CacheOptionEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static CacheOptionEnum fromValue(String input) {
|
||||
for (CacheOptionEnum b : CacheOptionEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("cacheOption")
|
||||
private CacheOptionEnum cacheOption = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets sessionOption
|
||||
*/
|
||||
public enum SessionOptionEnum {
|
||||
NOT_REMEMBER("NOT_REMEMBER"),
|
||||
REMEMBER("REMEMBER");
|
||||
|
||||
private String value;
|
||||
|
||||
SessionOptionEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static SessionOptionEnum fromValue(String input) {
|
||||
for (SessionOptionEnum b : SessionOptionEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("sessionOption")
|
||||
private SessionOptionEnum sessionOption = null;
|
||||
|
||||
public AndroidClientPolicy apply(Boolean apply) {
|
||||
this.apply = apply;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* another word for enforce, if set to false, this will not propagate to non-admin
|
||||
* @return apply
|
||||
**/
|
||||
@Schema(description = "another word for enforce, if set to false, this will not propagate to non-admin")
|
||||
public Boolean isApply() {
|
||||
return apply;
|
||||
}
|
||||
|
||||
public void setApply(Boolean apply) {
|
||||
this.apply = apply;
|
||||
}
|
||||
|
||||
public AndroidClientPolicy verifyServerCertificate(Boolean verifyServerCertificate) {
|
||||
this.verifyServerCertificate = verifyServerCertificate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if server certificate should be verified
|
||||
* @return verifyServerCertificate
|
||||
**/
|
||||
@Schema(description = "if server certificate should be verified")
|
||||
public Boolean isVerifyServerCertificate() {
|
||||
return verifyServerCertificate;
|
||||
}
|
||||
|
||||
public void setVerifyServerCertificate(Boolean verifyServerCertificate) {
|
||||
this.verifyServerCertificate = verifyServerCertificate;
|
||||
}
|
||||
|
||||
public AndroidClientPolicy storageOption(StorageOptionEnum storageOption) {
|
||||
this.storageOption = storageOption;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get storageOption
|
||||
* @return storageOption
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public StorageOptionEnum getStorageOption() {
|
||||
return storageOption;
|
||||
}
|
||||
|
||||
public void setStorageOption(StorageOptionEnum storageOption) {
|
||||
this.storageOption = storageOption;
|
||||
}
|
||||
|
||||
public AndroidClientPolicy cacheOption(CacheOptionEnum cacheOption) {
|
||||
this.cacheOption = cacheOption;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cacheOption
|
||||
* @return cacheOption
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public CacheOptionEnum getCacheOption() {
|
||||
return cacheOption;
|
||||
}
|
||||
|
||||
public void setCacheOption(CacheOptionEnum cacheOption) {
|
||||
this.cacheOption = cacheOption;
|
||||
}
|
||||
|
||||
public AndroidClientPolicy sessionOption(SessionOptionEnum sessionOption) {
|
||||
this.sessionOption = sessionOption;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sessionOption
|
||||
* @return sessionOption
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public SessionOptionEnum getSessionOption() {
|
||||
return sessionOption;
|
||||
}
|
||||
|
||||
public void setSessionOption(SessionOptionEnum sessionOption) {
|
||||
this.sessionOption = sessionOption;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AndroidClientPolicy androidClientPolicy = (AndroidClientPolicy) o;
|
||||
return Objects.equals(this.apply, androidClientPolicy.apply) &&
|
||||
Objects.equals(this.verifyServerCertificate, androidClientPolicy.verifyServerCertificate) &&
|
||||
Objects.equals(this.storageOption, androidClientPolicy.storageOption) &&
|
||||
Objects.equals(this.cacheOption, androidClientPolicy.cacheOption) &&
|
||||
Objects.equals(this.sessionOption, androidClientPolicy.sessionOption);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(apply, verifyServerCertificate, storageOption, cacheOption, sessionOption);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AndroidClientPolicy {\n");
|
||||
|
||||
sb.append(" apply: ").append(toIndentedString(apply)).append("\n");
|
||||
sb.append(" verifyServerCertificate: ").append(toIndentedString(verifyServerCertificate)).append("\n");
|
||||
sb.append(" storageOption: ").append(toIndentedString(storageOption)).append("\n");
|
||||
sb.append(" cacheOption: ").append(toIndentedString(cacheOption)).append("\n");
|
||||
sb.append(" sessionOption: ").append(toIndentedString(sessionOption)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ApiRegistration
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ApiRegistration {
|
||||
@JsonProperty("username")
|
||||
private String username = null;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
|
||||
@JsonProperty("registrationToken")
|
||||
private String registrationToken = null;
|
||||
|
||||
@JsonProperty("captchaResponse")
|
||||
private String captchaResponse = null;
|
||||
|
||||
public ApiRegistration username(String username) {
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public ApiRegistration password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public ApiRegistration registrationToken(String registrationToken) {
|
||||
this.registrationToken = registrationToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get registrationToken
|
||||
* @return registrationToken
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getRegistrationToken() {
|
||||
return registrationToken;
|
||||
}
|
||||
|
||||
public void setRegistrationToken(String registrationToken) {
|
||||
this.registrationToken = registrationToken;
|
||||
}
|
||||
|
||||
public ApiRegistration captchaResponse(String captchaResponse) {
|
||||
this.captchaResponse = captchaResponse;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get captchaResponse
|
||||
* @return captchaResponse
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCaptchaResponse() {
|
||||
return captchaResponse;
|
||||
}
|
||||
|
||||
public void setCaptchaResponse(String captchaResponse) {
|
||||
this.captchaResponse = captchaResponse;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ApiRegistration apiRegistration = (ApiRegistration) o;
|
||||
return Objects.equals(this.username, apiRegistration.username) &&
|
||||
Objects.equals(this.password, apiRegistration.password) &&
|
||||
Objects.equals(this.registrationToken, apiRegistration.registrationToken) &&
|
||||
Objects.equals(this.captchaResponse, apiRegistration.captchaResponse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(username, password, registrationToken, captchaResponse);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ApiRegistration {\n");
|
||||
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" registrationToken: ").append(toIndentedString(registrationToken)).append("\n");
|
||||
sb.append(" captchaResponse: ").append(toIndentedString(captchaResponse)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+285
@@ -0,0 +1,285 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* AppVersions
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AppVersions {
|
||||
@JsonProperty("ios")
|
||||
private List<String> ios = null;
|
||||
|
||||
@JsonProperty("android")
|
||||
private List<String> android = null;
|
||||
|
||||
@JsonProperty("pt")
|
||||
private List<String> pt = null;
|
||||
|
||||
@JsonProperty("outlook")
|
||||
private List<String> outlook = null;
|
||||
|
||||
@JsonProperty("office")
|
||||
private List<String> office = null;
|
||||
|
||||
@JsonProperty("msteams")
|
||||
private List<String> msteams = null;
|
||||
|
||||
@JsonProperty("syncClient")
|
||||
private List<String> syncClient = null;
|
||||
|
||||
public AppVersions ios(List<String> ios) {
|
||||
this.ios = ios;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addIosItem(String iosItem) {
|
||||
if (this.ios == null) {
|
||||
this.ios = new ArrayList<>();
|
||||
}
|
||||
this.ios.add(iosItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ios
|
||||
* @return ios
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getIos() {
|
||||
return ios;
|
||||
}
|
||||
|
||||
public void setIos(List<String> ios) {
|
||||
this.ios = ios;
|
||||
}
|
||||
|
||||
public AppVersions android(List<String> android) {
|
||||
this.android = android;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addAndroidItem(String androidItem) {
|
||||
if (this.android == null) {
|
||||
this.android = new ArrayList<>();
|
||||
}
|
||||
this.android.add(androidItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get android
|
||||
* @return android
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getAndroid() {
|
||||
return android;
|
||||
}
|
||||
|
||||
public void setAndroid(List<String> android) {
|
||||
this.android = android;
|
||||
}
|
||||
|
||||
public AppVersions pt(List<String> pt) {
|
||||
this.pt = pt;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addPtItem(String ptItem) {
|
||||
if (this.pt == null) {
|
||||
this.pt = new ArrayList<>();
|
||||
}
|
||||
this.pt.add(ptItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get pt
|
||||
* @return pt
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getPt() {
|
||||
return pt;
|
||||
}
|
||||
|
||||
public void setPt(List<String> pt) {
|
||||
this.pt = pt;
|
||||
}
|
||||
|
||||
public AppVersions outlook(List<String> outlook) {
|
||||
this.outlook = outlook;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addOutlookItem(String outlookItem) {
|
||||
if (this.outlook == null) {
|
||||
this.outlook = new ArrayList<>();
|
||||
}
|
||||
this.outlook.add(outlookItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get outlook
|
||||
* @return outlook
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getOutlook() {
|
||||
return outlook;
|
||||
}
|
||||
|
||||
public void setOutlook(List<String> outlook) {
|
||||
this.outlook = outlook;
|
||||
}
|
||||
|
||||
public AppVersions office(List<String> office) {
|
||||
this.office = office;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addOfficeItem(String officeItem) {
|
||||
if (this.office == null) {
|
||||
this.office = new ArrayList<>();
|
||||
}
|
||||
this.office.add(officeItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get office
|
||||
* @return office
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getOffice() {
|
||||
return office;
|
||||
}
|
||||
|
||||
public void setOffice(List<String> office) {
|
||||
this.office = office;
|
||||
}
|
||||
|
||||
public AppVersions msteams(List<String> msteams) {
|
||||
this.msteams = msteams;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addMsteamsItem(String msteamsItem) {
|
||||
if (this.msteams == null) {
|
||||
this.msteams = new ArrayList<>();
|
||||
}
|
||||
this.msteams.add(msteamsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get msteams
|
||||
* @return msteams
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getMsteams() {
|
||||
return msteams;
|
||||
}
|
||||
|
||||
public void setMsteams(List<String> msteams) {
|
||||
this.msteams = msteams;
|
||||
}
|
||||
|
||||
public AppVersions syncClient(List<String> syncClient) {
|
||||
this.syncClient = syncClient;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppVersions addSyncClientItem(String syncClientItem) {
|
||||
if (this.syncClient == null) {
|
||||
this.syncClient = new ArrayList<>();
|
||||
}
|
||||
this.syncClient.add(syncClientItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get syncClient
|
||||
* @return syncClient
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getSyncClient() {
|
||||
return syncClient;
|
||||
}
|
||||
|
||||
public void setSyncClient(List<String> syncClient) {
|
||||
this.syncClient = syncClient;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AppVersions appVersions = (AppVersions) o;
|
||||
return Objects.equals(this.ios, appVersions.ios) &&
|
||||
Objects.equals(this.android, appVersions.android) &&
|
||||
Objects.equals(this.pt, appVersions.pt) &&
|
||||
Objects.equals(this.outlook, appVersions.outlook) &&
|
||||
Objects.equals(this.office, appVersions.office) &&
|
||||
Objects.equals(this.msteams, appVersions.msteams) &&
|
||||
Objects.equals(this.syncClient, appVersions.syncClient);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(ios, android, pt, outlook, office, msteams, syncClient);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AppVersions {\n");
|
||||
|
||||
sb.append(" ios: ").append(toIndentedString(ios)).append("\n");
|
||||
sb.append(" android: ").append(toIndentedString(android)).append("\n");
|
||||
sb.append(" pt: ").append(toIndentedString(pt)).append("\n");
|
||||
sb.append(" outlook: ").append(toIndentedString(outlook)).append("\n");
|
||||
sb.append(" office: ").append(toIndentedString(office)).append("\n");
|
||||
sb.append(" msteams: ").append(toIndentedString(msteams)).append("\n");
|
||||
sb.append(" syncClient: ").append(toIndentedString(syncClient)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ArchiveEmail;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* Configuration for archiving, to be manipulated explicitly
|
||||
*/
|
||||
@Schema(description = "Configuration for archiving, to be manipulated explicitly")
|
||||
|
||||
|
||||
public class ArchiveConfig {
|
||||
@JsonProperty("enable")
|
||||
private Boolean enable = null;
|
||||
|
||||
@JsonProperty("archiveEmails")
|
||||
private List<ArchiveEmail> archiveEmails = null;
|
||||
|
||||
public ArchiveConfig enable(Boolean enable) {
|
||||
this.enable = enable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get enable
|
||||
* @return enable
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isEnable() {
|
||||
return enable;
|
||||
}
|
||||
|
||||
public void setEnable(Boolean enable) {
|
||||
this.enable = enable;
|
||||
}
|
||||
|
||||
public ArchiveConfig archiveEmails(List<ArchiveEmail> archiveEmails) {
|
||||
this.archiveEmails = archiveEmails;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArchiveConfig addArchiveEmailsItem(ArchiveEmail archiveEmailsItem) {
|
||||
if (this.archiveEmails == null) {
|
||||
this.archiveEmails = new ArrayList<>();
|
||||
}
|
||||
this.archiveEmails.add(archiveEmailsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get archiveEmails
|
||||
* @return archiveEmails
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<ArchiveEmail> getArchiveEmails() {
|
||||
return archiveEmails;
|
||||
}
|
||||
|
||||
public void setArchiveEmails(List<ArchiveEmail> archiveEmails) {
|
||||
this.archiveEmails = archiveEmails;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ArchiveConfig archiveConfig = (ArchiveConfig) o;
|
||||
return Objects.equals(this.enable, archiveConfig.enable) &&
|
||||
Objects.equals(this.archiveEmails, archiveConfig.archiveEmails);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(enable, archiveEmails);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ArchiveConfig {\n");
|
||||
|
||||
sb.append(" enable: ").append(toIndentedString(enable)).append("\n");
|
||||
sb.append(" archiveEmails: ").append(toIndentedString(archiveEmails)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ArchiveEmail
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ArchiveEmail {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email = null;
|
||||
|
||||
public ArchiveEmail id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ArchiveEmail email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ArchiveEmail archiveEmail = (ArchiveEmail) o;
|
||||
return Objects.equals(this.id, archiveEmail.id) &&
|
||||
Objects.equals(this.email, archiveEmail.email);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, email);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ArchiveEmail {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+189
@@ -0,0 +1,189 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* Authentication
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class Authentication {
|
||||
@JsonProperty("clientSecret")
|
||||
private String clientSecret = null;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
|
||||
@JsonProperty("username")
|
||||
private String username = null;
|
||||
|
||||
@JsonProperty("verifyTokenType")
|
||||
private String verifyTokenType = "PASSCODE";
|
||||
|
||||
@JsonProperty("verifyToken")
|
||||
private String verifyToken = null;
|
||||
|
||||
@JsonProperty("version")
|
||||
private String version = null;
|
||||
|
||||
public Authentication clientSecret(String clientSecret) {
|
||||
this.clientSecret = clientSecret;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Random client-generated token
|
||||
* @return clientSecret
|
||||
**/
|
||||
@Schema(required = true, description = "Random client-generated token")
|
||||
public String getClientSecret() {
|
||||
return clientSecret;
|
||||
}
|
||||
|
||||
public void setClientSecret(String clientSecret) {
|
||||
this.clientSecret = clientSecret;
|
||||
}
|
||||
|
||||
public Authentication password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Password
|
||||
* @return password
|
||||
**/
|
||||
@Schema(required = true, description = "Password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public Authentication username(String username) {
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Username
|
||||
* @return username
|
||||
**/
|
||||
@Schema(required = true, description = "Username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public Authentication verifyToken(String verifyToken) {
|
||||
this.verifyToken = verifyToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 2FA token for login. Optional, depends on user configuration.
|
||||
* @return verifyToken
|
||||
**/
|
||||
@Schema(example = "123456", description = "2FA token for login. Optional, depends on user configuration.")
|
||||
public String getVerifyToken() {
|
||||
return verifyToken;
|
||||
}
|
||||
|
||||
public void setVerifyToken(String verifyToken) {
|
||||
this.verifyToken = verifyToken;
|
||||
}
|
||||
|
||||
public Authentication version(String version) {
|
||||
this.version = version;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Client version info
|
||||
* @return version
|
||||
**/
|
||||
@Schema(description = "Client version info")
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Authentication authentication = (Authentication) o;
|
||||
return Objects.equals(this.clientSecret, authentication.clientSecret) &&
|
||||
Objects.equals(this.password, authentication.password) &&
|
||||
Objects.equals(this.username, authentication.username) &&
|
||||
Objects.equals(this.verifyTokenType, authentication.verifyTokenType) &&
|
||||
Objects.equals(this.verifyToken, authentication.verifyToken) &&
|
||||
Objects.equals(this.version, authentication.version);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(clientSecret, password, username, verifyTokenType, verifyToken, version);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Authentication {\n");
|
||||
|
||||
sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" verifyTokenType: ").append(toIndentedString(verifyTokenType)).append("\n");
|
||||
sb.append(" verifyToken: ").append(toIndentedString(verifyToken)).append("\n");
|
||||
sb.append(" version: ").append(toIndentedString(version)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* AutoDeactivation
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class AutoDeactivation {
|
||||
@JsonProperty("enable")
|
||||
private Boolean enable = null;
|
||||
|
||||
@JsonProperty("days")
|
||||
private Integer days = null;
|
||||
|
||||
public AutoDeactivation enable(Boolean enable) {
|
||||
this.enable = enable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get enable
|
||||
* @return enable
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isEnable() {
|
||||
return enable;
|
||||
}
|
||||
|
||||
public void setEnable(Boolean enable) {
|
||||
this.enable = enable;
|
||||
}
|
||||
|
||||
public AutoDeactivation days(Integer days) {
|
||||
this.days = days;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get days
|
||||
* @return days
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getDays() {
|
||||
return days;
|
||||
}
|
||||
|
||||
public void setDays(Integer days) {
|
||||
this.days = days;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AutoDeactivation autoDeactivation = (AutoDeactivation) o;
|
||||
return Objects.equals(this.enable, autoDeactivation.enable) &&
|
||||
Objects.equals(this.days, autoDeactivation.days);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(enable, days);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AutoDeactivation {\n");
|
||||
|
||||
sb.append(" enable: ").append(toIndentedString(enable)).append("\n");
|
||||
sb.append(" days: ").append(toIndentedString(days)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+181
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* Automail templates, to be manipulated explicitly
|
||||
*/
|
||||
@Schema(description = "Automail templates, to be manipulated explicitly")
|
||||
|
||||
|
||||
public class AutomailTemplate {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
|
||||
@JsonProperty("language")
|
||||
private String language = null;
|
||||
|
||||
@JsonProperty("text1")
|
||||
private String text1 = null;
|
||||
|
||||
@JsonProperty("text2")
|
||||
private String text2 = null;
|
||||
|
||||
@JsonProperty("text3")
|
||||
private String text3 = null;
|
||||
|
||||
public AutomailTemplate id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public AutomailTemplate language(String language) {
|
||||
this.language = language;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get language
|
||||
* @return language
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public AutomailTemplate text1(String text1) {
|
||||
this.text1 = text1;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* mail content
|
||||
* @return text1
|
||||
**/
|
||||
@Schema(description = "mail content")
|
||||
public String getText1() {
|
||||
return text1;
|
||||
}
|
||||
|
||||
public void setText1(String text1) {
|
||||
this.text1 = text1;
|
||||
}
|
||||
|
||||
public AutomailTemplate text2(String text2) {
|
||||
this.text2 = text2;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* temporary box text
|
||||
* @return text2
|
||||
**/
|
||||
@Schema(description = "temporary box text")
|
||||
public String getText2() {
|
||||
return text2;
|
||||
}
|
||||
|
||||
public void setText2(String text2) {
|
||||
this.text2 = text2;
|
||||
}
|
||||
|
||||
public AutomailTemplate text3(String text3) {
|
||||
this.text3 = text3;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Signature text
|
||||
* @return text3
|
||||
**/
|
||||
@Schema(description = "Signature text")
|
||||
public String getText3() {
|
||||
return text3;
|
||||
}
|
||||
|
||||
public void setText3(String text3) {
|
||||
this.text3 = text3;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AutomailTemplate automailTemplate = (AutomailTemplate) o;
|
||||
return Objects.equals(this.id, automailTemplate.id) &&
|
||||
Objects.equals(this.language, automailTemplate.language) &&
|
||||
Objects.equals(this.text1, automailTemplate.text1) &&
|
||||
Objects.equals(this.text2, automailTemplate.text2) &&
|
||||
Objects.equals(this.text3, automailTemplate.text3);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, language, text1, text2, text3);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AutomailTemplate {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" language: ").append(toIndentedString(language)).append("\n");
|
||||
sb.append(" text1: ").append(toIndentedString(text1)).append("\n");
|
||||
sb.append(" text2: ").append(toIndentedString(text2)).append("\n");
|
||||
sb.append(" text3: ").append(toIndentedString(text3)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* BoxAttributes
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxAttributes {
|
||||
@JsonProperty("backup")
|
||||
private Boolean backup = null;
|
||||
|
||||
@JsonProperty("bytes")
|
||||
private Long bytes = null;
|
||||
|
||||
@JsonProperty("trashbinActive")
|
||||
private Boolean trashbinActive = null;
|
||||
|
||||
public BoxAttributes backup(Boolean backup) {
|
||||
this.backup = backup;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get backup
|
||||
* @return backup
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isBackup() {
|
||||
return backup;
|
||||
}
|
||||
|
||||
public void setBackup(Boolean backup) {
|
||||
this.backup = backup;
|
||||
}
|
||||
|
||||
public BoxAttributes bytes(Long bytes) {
|
||||
this.bytes = bytes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bytes
|
||||
* @return bytes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Long getBytes() {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
public void setBytes(Long bytes) {
|
||||
this.bytes = bytes;
|
||||
}
|
||||
|
||||
public BoxAttributes trashbinActive(Boolean trashbinActive) {
|
||||
this.trashbinActive = trashbinActive;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get trashbinActive
|
||||
* @return trashbinActive
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isTrashbinActive() {
|
||||
return trashbinActive;
|
||||
}
|
||||
|
||||
public void setTrashbinActive(Boolean trashbinActive) {
|
||||
this.trashbinActive = trashbinActive;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxAttributes boxAttributes = (BoxAttributes) o;
|
||||
return Objects.equals(this.backup, boxAttributes.backup) &&
|
||||
Objects.equals(this.bytes, boxAttributes.bytes) &&
|
||||
Objects.equals(this.trashbinActive, boxAttributes.trashbinActive);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(backup, bytes, trashbinActive);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxAttributes {\n");
|
||||
|
||||
sb.append(" backup: ").append(toIndentedString(backup)).append("\n");
|
||||
sb.append(" bytes: ").append(toIndentedString(bytes)).append("\n");
|
||||
sb.append(" trashbinActive: ").append(toIndentedString(trashbinActive)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* BoxBasePolicies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxBasePolicies {
|
||||
@JsonProperty("canCreateDataRooms")
|
||||
private Boolean canCreateDataRooms = null;
|
||||
|
||||
@JsonProperty("canCreatePrivacyBoxes")
|
||||
private Boolean canCreatePrivacyBoxes = null;
|
||||
|
||||
@JsonProperty("canCreateTemporaryBoxes")
|
||||
private Boolean canCreateTemporaryBoxes = null;
|
||||
|
||||
@JsonProperty("canInviteMembers")
|
||||
private Boolean canInviteMembers = null;
|
||||
|
||||
public BoxBasePolicies canCreateDataRooms(Boolean canCreateDataRooms) {
|
||||
this.canCreateDataRooms = canCreateDataRooms;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canCreateDataRooms
|
||||
* @return canCreateDataRooms
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanCreateDataRooms() {
|
||||
return canCreateDataRooms;
|
||||
}
|
||||
|
||||
public void setCanCreateDataRooms(Boolean canCreateDataRooms) {
|
||||
this.canCreateDataRooms = canCreateDataRooms;
|
||||
}
|
||||
|
||||
public BoxBasePolicies canCreatePrivacyBoxes(Boolean canCreatePrivacyBoxes) {
|
||||
this.canCreatePrivacyBoxes = canCreatePrivacyBoxes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canCreatePrivacyBoxes
|
||||
* @return canCreatePrivacyBoxes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanCreatePrivacyBoxes() {
|
||||
return canCreatePrivacyBoxes;
|
||||
}
|
||||
|
||||
public void setCanCreatePrivacyBoxes(Boolean canCreatePrivacyBoxes) {
|
||||
this.canCreatePrivacyBoxes = canCreatePrivacyBoxes;
|
||||
}
|
||||
|
||||
public BoxBasePolicies canCreateTemporaryBoxes(Boolean canCreateTemporaryBoxes) {
|
||||
this.canCreateTemporaryBoxes = canCreateTemporaryBoxes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canCreateTemporaryBoxes
|
||||
* @return canCreateTemporaryBoxes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanCreateTemporaryBoxes() {
|
||||
return canCreateTemporaryBoxes;
|
||||
}
|
||||
|
||||
public void setCanCreateTemporaryBoxes(Boolean canCreateTemporaryBoxes) {
|
||||
this.canCreateTemporaryBoxes = canCreateTemporaryBoxes;
|
||||
}
|
||||
|
||||
public BoxBasePolicies canInviteMembers(Boolean canInviteMembers) {
|
||||
this.canInviteMembers = canInviteMembers;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canInviteMembers
|
||||
* @return canInviteMembers
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanInviteMembers() {
|
||||
return canInviteMembers;
|
||||
}
|
||||
|
||||
public void setCanInviteMembers(Boolean canInviteMembers) {
|
||||
this.canInviteMembers = canInviteMembers;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxBasePolicies boxBasePolicies = (BoxBasePolicies) o;
|
||||
return Objects.equals(this.canCreateDataRooms, boxBasePolicies.canCreateDataRooms) &&
|
||||
Objects.equals(this.canCreatePrivacyBoxes, boxBasePolicies.canCreatePrivacyBoxes) &&
|
||||
Objects.equals(this.canCreateTemporaryBoxes, boxBasePolicies.canCreateTemporaryBoxes) &&
|
||||
Objects.equals(this.canInviteMembers, boxBasePolicies.canInviteMembers);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(canCreateDataRooms, canCreatePrivacyBoxes, canCreateTemporaryBoxes, canInviteMembers);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxBasePolicies {\n");
|
||||
|
||||
sb.append(" canCreateDataRooms: ").append(toIndentedString(canCreateDataRooms)).append("\n");
|
||||
sb.append(" canCreatePrivacyBoxes: ").append(toIndentedString(canCreatePrivacyBoxes)).append("\n");
|
||||
sb.append(" canCreateTemporaryBoxes: ").append(toIndentedString(canCreateTemporaryBoxes)).append("\n");
|
||||
sb.append(" canInviteMembers: ").append(toIndentedString(canInviteMembers)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxEdition;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMemberEdition;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* BoxCreation
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxCreation {
|
||||
@JsonProperty("box")
|
||||
private BoxEdition box = null;
|
||||
|
||||
@JsonProperty("usersToJoin")
|
||||
private List<BoxMemberEdition> usersToJoin = null;
|
||||
|
||||
public BoxCreation box(BoxEdition box) {
|
||||
this.box = box;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get box
|
||||
* @return box
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxEdition getBox() {
|
||||
return box;
|
||||
}
|
||||
|
||||
public void setBox(BoxEdition box) {
|
||||
this.box = box;
|
||||
}
|
||||
|
||||
public BoxCreation usersToJoin(List<BoxMemberEdition> usersToJoin) {
|
||||
this.usersToJoin = usersToJoin;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BoxCreation addUsersToJoinItem(BoxMemberEdition usersToJoinItem) {
|
||||
if (this.usersToJoin == null) {
|
||||
this.usersToJoin = new ArrayList<>();
|
||||
}
|
||||
this.usersToJoin.add(usersToJoinItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* All users specified by userID in this list will be added to the box. Only users with role specified as MEMBER,MANAGER or ASSISTANT will be considered.
|
||||
* @return usersToJoin
|
||||
**/
|
||||
@Schema(description = "All users specified by userID in this list will be added to the box. Only users with role specified as MEMBER,MANAGER or ASSISTANT will be considered.")
|
||||
public List<BoxMemberEdition> getUsersToJoin() {
|
||||
return usersToJoin;
|
||||
}
|
||||
|
||||
public void setUsersToJoin(List<BoxMemberEdition> usersToJoin) {
|
||||
this.usersToJoin = usersToJoin;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxCreation boxCreation = (BoxCreation) o;
|
||||
return Objects.equals(this.box, boxCreation.box) &&
|
||||
Objects.equals(this.usersToJoin, boxCreation.usersToJoin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(box, usersToJoin);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxCreation {\n");
|
||||
|
||||
sb.append(" box: ").append(toIndentedString(box)).append("\n");
|
||||
sb.append(" usersToJoin: ").append(toIndentedString(usersToJoin)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* If set this will implies TEMPORARY box-type
|
||||
*/
|
||||
@Schema(description = "If set this will implies TEMPORARY box-type")
|
||||
|
||||
|
||||
public class BoxDeletion {
|
||||
@JsonProperty("tmpBoxDelDate")
|
||||
private DateTime tmpBoxDelDate = null;
|
||||
|
||||
@JsonProperty("tmpBoxDelWarnDate")
|
||||
private DateTime tmpBoxDelWarnDate = null;
|
||||
|
||||
public BoxDeletion tmpBoxDelDate(DateTime tmpBoxDelDate) {
|
||||
this.tmpBoxDelDate = tmpBoxDelDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date at which the temporary box should be deleted
|
||||
* @return tmpBoxDelDate
|
||||
**/
|
||||
@Schema(description = "Date at which the temporary box should be deleted")
|
||||
public DateTime getTmpBoxDelDate() {
|
||||
return tmpBoxDelDate;
|
||||
}
|
||||
|
||||
public void setTmpBoxDelDate(DateTime tmpBoxDelDate) {
|
||||
this.tmpBoxDelDate = tmpBoxDelDate;
|
||||
}
|
||||
|
||||
public BoxDeletion tmpBoxDelWarnDate(DateTime tmpBoxDelWarnDate) {
|
||||
this.tmpBoxDelWarnDate = tmpBoxDelWarnDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date at which warning should be send for a box which is going to be deleted
|
||||
* @return tmpBoxDelWarnDate
|
||||
**/
|
||||
@Schema(description = "Date at which warning should be send for a box which is going to be deleted")
|
||||
public DateTime getTmpBoxDelWarnDate() {
|
||||
return tmpBoxDelWarnDate;
|
||||
}
|
||||
|
||||
public void setTmpBoxDelWarnDate(DateTime tmpBoxDelWarnDate) {
|
||||
this.tmpBoxDelWarnDate = tmpBoxDelWarnDate;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxDeletion boxDeletion = (BoxDeletion) o;
|
||||
return Objects.equals(this.tmpBoxDelDate, boxDeletion.tmpBoxDelDate) &&
|
||||
Objects.equals(this.tmpBoxDelWarnDate, boxDeletion.tmpBoxDelWarnDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(tmpBoxDelDate, tmpBoxDelWarnDate);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxDeletion {\n");
|
||||
|
||||
sb.append(" tmpBoxDelDate: ").append(toIndentedString(tmpBoxDelDate)).append("\n");
|
||||
sb.append(" tmpBoxDelWarnDate: ").append(toIndentedString(tmpBoxDelWarnDate)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+335
@@ -0,0 +1,335 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxAttributes;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxDeletion;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMemberPermission;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ContentDeletion;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.DataroomConfiguration;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.SharingConfig;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Validity;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* BoxEdition
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxEdition {
|
||||
@JsonProperty("attributes")
|
||||
private BoxAttributes attributes = null;
|
||||
|
||||
@JsonProperty("boxDeleteConfig")
|
||||
private BoxDeletion boxDeleteConfig = null;
|
||||
|
||||
@JsonProperty("contentDeleteConfig")
|
||||
private ContentDeletion contentDeleteConfig = null;
|
||||
|
||||
@JsonProperty("dataroomConfig")
|
||||
private DataroomConfiguration dataroomConfig = null;
|
||||
|
||||
@JsonProperty("defaultPermissions")
|
||||
private BoxMemberPermission defaultPermissions = null;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
@JsonProperty("sharingConfig")
|
||||
private SharingConfig sharingConfig = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets type
|
||||
*/
|
||||
public enum TypeEnum {
|
||||
FILE("FILE"),
|
||||
DATAROOM("DATAROOM"),
|
||||
TEMPORARY("TEMPORARY");
|
||||
|
||||
private String value;
|
||||
|
||||
TypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static TypeEnum fromValue(String input) {
|
||||
for (TypeEnum b : TypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("type")
|
||||
private TypeEnum type = null;
|
||||
|
||||
@JsonProperty("validityConfig")
|
||||
private Validity validityConfig = null;
|
||||
|
||||
public BoxEdition attributes(BoxAttributes attributes) {
|
||||
this.attributes = attributes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get attributes
|
||||
* @return attributes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxAttributes getAttributes() {
|
||||
return attributes;
|
||||
}
|
||||
|
||||
public void setAttributes(BoxAttributes attributes) {
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
public BoxEdition boxDeleteConfig(BoxDeletion boxDeleteConfig) {
|
||||
this.boxDeleteConfig = boxDeleteConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get boxDeleteConfig
|
||||
* @return boxDeleteConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxDeletion getBoxDeleteConfig() {
|
||||
return boxDeleteConfig;
|
||||
}
|
||||
|
||||
public void setBoxDeleteConfig(BoxDeletion boxDeleteConfig) {
|
||||
this.boxDeleteConfig = boxDeleteConfig;
|
||||
}
|
||||
|
||||
public BoxEdition contentDeleteConfig(ContentDeletion contentDeleteConfig) {
|
||||
this.contentDeleteConfig = contentDeleteConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contentDeleteConfig
|
||||
* @return contentDeleteConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ContentDeletion getContentDeleteConfig() {
|
||||
return contentDeleteConfig;
|
||||
}
|
||||
|
||||
public void setContentDeleteConfig(ContentDeletion contentDeleteConfig) {
|
||||
this.contentDeleteConfig = contentDeleteConfig;
|
||||
}
|
||||
|
||||
public BoxEdition dataroomConfig(DataroomConfiguration dataroomConfig) {
|
||||
this.dataroomConfig = dataroomConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dataroomConfig
|
||||
* @return dataroomConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DataroomConfiguration getDataroomConfig() {
|
||||
return dataroomConfig;
|
||||
}
|
||||
|
||||
public void setDataroomConfig(DataroomConfiguration dataroomConfig) {
|
||||
this.dataroomConfig = dataroomConfig;
|
||||
}
|
||||
|
||||
public BoxEdition defaultPermissions(BoxMemberPermission defaultPermissions) {
|
||||
this.defaultPermissions = defaultPermissions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get defaultPermissions
|
||||
* @return defaultPermissions
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxMemberPermission getDefaultPermissions() {
|
||||
return defaultPermissions;
|
||||
}
|
||||
|
||||
public void setDefaultPermissions(BoxMemberPermission defaultPermissions) {
|
||||
this.defaultPermissions = defaultPermissions;
|
||||
}
|
||||
|
||||
public BoxEdition description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
* @return description
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public BoxEdition name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BoxEdition sharingConfig(SharingConfig sharingConfig) {
|
||||
this.sharingConfig = sharingConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sharingConfig
|
||||
* @return sharingConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public SharingConfig getSharingConfig() {
|
||||
return sharingConfig;
|
||||
}
|
||||
|
||||
public void setSharingConfig(SharingConfig sharingConfig) {
|
||||
this.sharingConfig = sharingConfig;
|
||||
}
|
||||
|
||||
public BoxEdition type(TypeEnum type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public TypeEnum getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(TypeEnum type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public BoxEdition validityConfig(Validity validityConfig) {
|
||||
this.validityConfig = validityConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get validityConfig
|
||||
* @return validityConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Validity getValidityConfig() {
|
||||
return validityConfig;
|
||||
}
|
||||
|
||||
public void setValidityConfig(Validity validityConfig) {
|
||||
this.validityConfig = validityConfig;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxEdition boxEdition = (BoxEdition) o;
|
||||
return Objects.equals(this.attributes, boxEdition.attributes) &&
|
||||
Objects.equals(this.boxDeleteConfig, boxEdition.boxDeleteConfig) &&
|
||||
Objects.equals(this.contentDeleteConfig, boxEdition.contentDeleteConfig) &&
|
||||
Objects.equals(this.dataroomConfig, boxEdition.dataroomConfig) &&
|
||||
Objects.equals(this.defaultPermissions, boxEdition.defaultPermissions) &&
|
||||
Objects.equals(this.description, boxEdition.description) &&
|
||||
Objects.equals(this.name, boxEdition.name) &&
|
||||
Objects.equals(this.sharingConfig, boxEdition.sharingConfig) &&
|
||||
Objects.equals(this.type, boxEdition.type) &&
|
||||
Objects.equals(this.validityConfig, boxEdition.validityConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(attributes, boxDeleteConfig, contentDeleteConfig, dataroomConfig, defaultPermissions, description, name, sharingConfig, type, validityConfig);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxEdition {\n");
|
||||
|
||||
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
|
||||
sb.append(" boxDeleteConfig: ").append(toIndentedString(boxDeleteConfig)).append("\n");
|
||||
sb.append(" contentDeleteConfig: ").append(toIndentedString(contentDeleteConfig)).append("\n");
|
||||
sb.append(" dataroomConfig: ").append(toIndentedString(dataroomConfig)).append("\n");
|
||||
sb.append(" defaultPermissions: ").append(toIndentedString(defaultPermissions)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" sharingConfig: ").append(toIndentedString(sharingConfig)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" validityConfig: ").append(toIndentedString(validityConfig)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMemberPermission;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxUserId;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* guests/invitees list
|
||||
*/
|
||||
@Schema(description = "guests/invitees list")
|
||||
|
||||
|
||||
public class BoxGuest {
|
||||
@JsonProperty("id")
|
||||
private BoxUserId id = null;
|
||||
|
||||
@JsonProperty("permission")
|
||||
private BoxMemberPermission permission = null;
|
||||
|
||||
/**
|
||||
* Role of guest in box
|
||||
*/
|
||||
public enum RoleEnum {
|
||||
OTA("OTA"),
|
||||
ROOM_ADMIN("ROOM_ADMIN"),
|
||||
REGULAR_MEMBER("REGULAR_MEMBER"),
|
||||
TECHNICAL_ADMIN("TECHNICAL_ADMIN");
|
||||
|
||||
private String value;
|
||||
|
||||
RoleEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static RoleEnum fromValue(String input) {
|
||||
for (RoleEnum b : RoleEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("role")
|
||||
private RoleEnum role = null;
|
||||
|
||||
public BoxGuest id(BoxUserId id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxUserId getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(BoxUserId id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public BoxGuest permission(BoxMemberPermission permission) {
|
||||
this.permission = permission;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get permission
|
||||
* @return permission
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxMemberPermission getPermission() {
|
||||
return permission;
|
||||
}
|
||||
|
||||
public void setPermission(BoxMemberPermission permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public BoxGuest role(RoleEnum role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role of guest in box
|
||||
* @return role
|
||||
**/
|
||||
@Schema(description = "Role of guest in box")
|
||||
public RoleEnum getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(RoleEnum role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxGuest boxGuest = (BoxGuest) o;
|
||||
return Objects.equals(this.id, boxGuest.id) &&
|
||||
Objects.equals(this.permission, boxGuest.permission) &&
|
||||
Objects.equals(this.role, boxGuest.role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, permission, role);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxGuest {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" permission: ").append(toIndentedString(permission)).append("\n");
|
||||
sb.append(" role: ").append(toIndentedString(role)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,319 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMemberPermissionDto;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Organization;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* BoxMember
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxMember {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
/**
|
||||
* parse null if this is not a member
|
||||
*/
|
||||
public enum RoleEnum {
|
||||
OWNER("OWNER"),
|
||||
MANAGER("MANAGER"),
|
||||
MEMBER("MEMBER"),
|
||||
ASSISTANT("ASSISTANT"),
|
||||
ANONYMOUS("ANONYMOUS"),
|
||||
AUDITOR("AUDITOR");
|
||||
|
||||
private String value;
|
||||
|
||||
RoleEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static RoleEnum fromValue(String input) {
|
||||
for (RoleEnum b : RoleEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("role")
|
||||
private RoleEnum role = null;
|
||||
|
||||
@JsonProperty("permissions")
|
||||
private BoxMemberPermissionDto permissions = null;
|
||||
|
||||
@JsonProperty("firstAccess")
|
||||
private DateTime firstAccess = null;
|
||||
|
||||
@JsonProperty("lastAccess")
|
||||
private DateTime lastAccess = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets userType
|
||||
*/
|
||||
public enum UserTypeEnum {
|
||||
FULL_LICENSE("FULL_LICENSE"),
|
||||
GUEST_LICENSE("GUEST_LICENSE");
|
||||
|
||||
private String value;
|
||||
|
||||
UserTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static UserTypeEnum fromValue(String input) {
|
||||
for (UserTypeEnum b : UserTypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("userType")
|
||||
private UserTypeEnum userType = null;
|
||||
|
||||
@JsonProperty("organization")
|
||||
private Organization organization = null;
|
||||
|
||||
public BoxMember id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public BoxMember name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BoxMember role(RoleEnum role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* parse null if this is not a member
|
||||
* @return role
|
||||
**/
|
||||
@Schema(description = "parse null if this is not a member")
|
||||
public RoleEnum getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(RoleEnum role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public BoxMember permissions(BoxMemberPermissionDto permissions) {
|
||||
this.permissions = permissions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get permissions
|
||||
* @return permissions
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxMemberPermissionDto getPermissions() {
|
||||
return permissions;
|
||||
}
|
||||
|
||||
public void setPermissions(BoxMemberPermissionDto permissions) {
|
||||
this.permissions = permissions;
|
||||
}
|
||||
|
||||
public BoxMember firstAccess(DateTime firstAccess) {
|
||||
this.firstAccess = firstAccess;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get firstAccess
|
||||
* @return firstAccess
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getFirstAccess() {
|
||||
return firstAccess;
|
||||
}
|
||||
|
||||
public void setFirstAccess(DateTime firstAccess) {
|
||||
this.firstAccess = firstAccess;
|
||||
}
|
||||
|
||||
public BoxMember lastAccess(DateTime lastAccess) {
|
||||
this.lastAccess = lastAccess;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastAccess
|
||||
* @return lastAccess
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getLastAccess() {
|
||||
return lastAccess;
|
||||
}
|
||||
|
||||
public void setLastAccess(DateTime lastAccess) {
|
||||
this.lastAccess = lastAccess;
|
||||
}
|
||||
|
||||
public BoxMember userType(UserTypeEnum userType) {
|
||||
this.userType = userType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userType
|
||||
* @return userType
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public UserTypeEnum getUserType() {
|
||||
return userType;
|
||||
}
|
||||
|
||||
public void setUserType(UserTypeEnum userType) {
|
||||
this.userType = userType;
|
||||
}
|
||||
|
||||
public BoxMember organization(Organization organization) {
|
||||
this.organization = organization;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get organization
|
||||
* @return organization
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Organization getOrganization() {
|
||||
return organization;
|
||||
}
|
||||
|
||||
public void setOrganization(Organization organization) {
|
||||
this.organization = organization;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxMember boxMember = (BoxMember) o;
|
||||
return Objects.equals(this.id, boxMember.id) &&
|
||||
Objects.equals(this.name, boxMember.name) &&
|
||||
Objects.equals(this.role, boxMember.role) &&
|
||||
Objects.equals(this.permissions, boxMember.permissions) &&
|
||||
Objects.equals(this.firstAccess, boxMember.firstAccess) &&
|
||||
Objects.equals(this.lastAccess, boxMember.lastAccess) &&
|
||||
Objects.equals(this.userType, boxMember.userType) &&
|
||||
Objects.equals(this.organization, boxMember.organization);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, role, permissions, firstAccess, lastAccess, userType, organization);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxMember {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" role: ").append(toIndentedString(role)).append("\n");
|
||||
sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n");
|
||||
sb.append(" firstAccess: ").append(toIndentedString(firstAccess)).append("\n");
|
||||
sb.append(" lastAccess: ").append(toIndentedString(lastAccess)).append("\n");
|
||||
sb.append(" userType: ").append(toIndentedString(userType)).append("\n");
|
||||
sb.append(" organization: ").append(toIndentedString(organization)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMemberPermission;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* BoxMemberEdition
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxMemberEdition {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("permissions")
|
||||
private BoxMemberPermission permissions = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets role
|
||||
*/
|
||||
public enum RoleEnum {
|
||||
OWNER("OWNER"),
|
||||
MANAGER("MANAGER"),
|
||||
MEMBER("MEMBER"),
|
||||
ASSISTANT("ASSISTANT"),
|
||||
ANONYMOUS("ANONYMOUS");
|
||||
|
||||
private String value;
|
||||
|
||||
RoleEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static RoleEnum fromValue(String input) {
|
||||
for (RoleEnum b : RoleEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("role")
|
||||
private RoleEnum role = null;
|
||||
|
||||
public BoxMemberEdition id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public BoxMemberEdition permissions(BoxMemberPermission permissions) {
|
||||
this.permissions = permissions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get permissions
|
||||
* @return permissions
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxMemberPermission getPermissions() {
|
||||
return permissions;
|
||||
}
|
||||
|
||||
public void setPermissions(BoxMemberPermission permissions) {
|
||||
this.permissions = permissions;
|
||||
}
|
||||
|
||||
public BoxMemberEdition role(RoleEnum role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get role
|
||||
* @return role
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public RoleEnum getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(RoleEnum role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxMemberEdition boxMemberEdition = (BoxMemberEdition) o;
|
||||
return Objects.equals(this.id, boxMemberEdition.id) &&
|
||||
Objects.equals(this.permissions, boxMemberEdition.permissions) &&
|
||||
Objects.equals(this.role, boxMemberEdition.role);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, permissions, role);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxMemberEdition {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n");
|
||||
sb.append(" role: ").append(toIndentedString(role)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+250
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* Permission of current user on this box (if applicable)
|
||||
*/
|
||||
@Schema(description = "Permission of current user on this box (if applicable)")
|
||||
|
||||
|
||||
public class BoxMemberPermission {
|
||||
@JsonProperty("accessChat")
|
||||
private Boolean accessChat = null;
|
||||
|
||||
@JsonProperty("accessJournal")
|
||||
private Boolean accessJournal = null;
|
||||
|
||||
@JsonProperty("exportJournal")
|
||||
private Boolean exportJournal = null;
|
||||
|
||||
@JsonProperty("accessUsers")
|
||||
private Boolean accessUsers = null;
|
||||
|
||||
@JsonProperty("deleteFiles")
|
||||
private Boolean deleteFiles = null;
|
||||
|
||||
@JsonProperty("readFiles")
|
||||
private Boolean readFiles = null;
|
||||
|
||||
@JsonProperty("writeFiles")
|
||||
private Boolean writeFiles = null;
|
||||
|
||||
@JsonProperty("exportIndex")
|
||||
private Boolean exportIndex = null;
|
||||
|
||||
public BoxMemberPermission accessChat(Boolean accessChat) {
|
||||
this.accessChat = accessChat;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accessChat
|
||||
* @return accessChat
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAccessChat() {
|
||||
return accessChat;
|
||||
}
|
||||
|
||||
public void setAccessChat(Boolean accessChat) {
|
||||
this.accessChat = accessChat;
|
||||
}
|
||||
|
||||
public BoxMemberPermission accessJournal(Boolean accessJournal) {
|
||||
this.accessJournal = accessJournal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* whether the journal can be viewed in the UI
|
||||
* @return accessJournal
|
||||
**/
|
||||
@Schema(description = "whether the journal can be viewed in the UI")
|
||||
public Boolean isAccessJournal() {
|
||||
return accessJournal;
|
||||
}
|
||||
|
||||
public void setAccessJournal(Boolean accessJournal) {
|
||||
this.accessJournal = accessJournal;
|
||||
}
|
||||
|
||||
public BoxMemberPermission exportJournal(Boolean exportJournal) {
|
||||
this.exportJournal = exportJournal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* whether the journal can be exported. Optional for compatibility with old clients, defaults to false.
|
||||
* @return exportJournal
|
||||
**/
|
||||
@Schema(description = "whether the journal can be exported. Optional for compatibility with old clients, defaults to false.")
|
||||
public Boolean isExportJournal() {
|
||||
return exportJournal;
|
||||
}
|
||||
|
||||
public void setExportJournal(Boolean exportJournal) {
|
||||
this.exportJournal = exportJournal;
|
||||
}
|
||||
|
||||
public BoxMemberPermission accessUsers(Boolean accessUsers) {
|
||||
this.accessUsers = accessUsers;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accessUsers
|
||||
* @return accessUsers
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAccessUsers() {
|
||||
return accessUsers;
|
||||
}
|
||||
|
||||
public void setAccessUsers(Boolean accessUsers) {
|
||||
this.accessUsers = accessUsers;
|
||||
}
|
||||
|
||||
public BoxMemberPermission deleteFiles(Boolean deleteFiles) {
|
||||
this.deleteFiles = deleteFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deleteFiles
|
||||
* @return deleteFiles
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isDeleteFiles() {
|
||||
return deleteFiles;
|
||||
}
|
||||
|
||||
public void setDeleteFiles(Boolean deleteFiles) {
|
||||
this.deleteFiles = deleteFiles;
|
||||
}
|
||||
|
||||
public BoxMemberPermission readFiles(Boolean readFiles) {
|
||||
this.readFiles = readFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get readFiles
|
||||
* @return readFiles
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isReadFiles() {
|
||||
return readFiles;
|
||||
}
|
||||
|
||||
public void setReadFiles(Boolean readFiles) {
|
||||
this.readFiles = readFiles;
|
||||
}
|
||||
|
||||
public BoxMemberPermission writeFiles(Boolean writeFiles) {
|
||||
this.writeFiles = writeFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get writeFiles
|
||||
* @return writeFiles
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isWriteFiles() {
|
||||
return writeFiles;
|
||||
}
|
||||
|
||||
public void setWriteFiles(Boolean writeFiles) {
|
||||
this.writeFiles = writeFiles;
|
||||
}
|
||||
|
||||
public BoxMemberPermission exportIndex(Boolean exportIndex) {
|
||||
this.exportIndex = exportIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get exportIndex
|
||||
* @return exportIndex
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isExportIndex() {
|
||||
return exportIndex;
|
||||
}
|
||||
|
||||
public void setExportIndex(Boolean exportIndex) {
|
||||
this.exportIndex = exportIndex;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxMemberPermission boxMemberPermission = (BoxMemberPermission) o;
|
||||
return Objects.equals(this.accessChat, boxMemberPermission.accessChat) &&
|
||||
Objects.equals(this.accessJournal, boxMemberPermission.accessJournal) &&
|
||||
Objects.equals(this.exportJournal, boxMemberPermission.exportJournal) &&
|
||||
Objects.equals(this.accessUsers, boxMemberPermission.accessUsers) &&
|
||||
Objects.equals(this.deleteFiles, boxMemberPermission.deleteFiles) &&
|
||||
Objects.equals(this.readFiles, boxMemberPermission.readFiles) &&
|
||||
Objects.equals(this.writeFiles, boxMemberPermission.writeFiles) &&
|
||||
Objects.equals(this.exportIndex, boxMemberPermission.exportIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(accessChat, accessJournal, exportJournal, accessUsers, deleteFiles, readFiles, writeFiles, exportIndex);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxMemberPermission {\n");
|
||||
|
||||
sb.append(" accessChat: ").append(toIndentedString(accessChat)).append("\n");
|
||||
sb.append(" accessJournal: ").append(toIndentedString(accessJournal)).append("\n");
|
||||
sb.append(" exportJournal: ").append(toIndentedString(exportJournal)).append("\n");
|
||||
sb.append(" accessUsers: ").append(toIndentedString(accessUsers)).append("\n");
|
||||
sb.append(" deleteFiles: ").append(toIndentedString(deleteFiles)).append("\n");
|
||||
sb.append(" readFiles: ").append(toIndentedString(readFiles)).append("\n");
|
||||
sb.append(" writeFiles: ").append(toIndentedString(writeFiles)).append("\n");
|
||||
sb.append(" exportIndex: ").append(toIndentedString(exportIndex)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+250
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* permission of guest in box
|
||||
*/
|
||||
@Schema(description = "permission of guest in box")
|
||||
|
||||
|
||||
public class BoxMemberPermissionDto {
|
||||
@JsonProperty("readFiles")
|
||||
private Boolean readFiles = null;
|
||||
|
||||
@JsonProperty("writeFiles")
|
||||
private Boolean writeFiles = null;
|
||||
|
||||
@JsonProperty("deleteFiles")
|
||||
private Boolean deleteFiles = null;
|
||||
|
||||
@JsonProperty("accessChat")
|
||||
private Boolean accessChat = null;
|
||||
|
||||
@JsonProperty("accessUsers")
|
||||
private Boolean accessUsers = null;
|
||||
|
||||
@JsonProperty("accessJournal")
|
||||
private Boolean accessJournal = null;
|
||||
|
||||
@JsonProperty("exportJournal")
|
||||
private Boolean exportJournal = null;
|
||||
|
||||
@JsonProperty("exportIndex")
|
||||
private Boolean exportIndex = null;
|
||||
|
||||
public BoxMemberPermissionDto readFiles(Boolean readFiles) {
|
||||
this.readFiles = readFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get readFiles
|
||||
* @return readFiles
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isReadFiles() {
|
||||
return readFiles;
|
||||
}
|
||||
|
||||
public void setReadFiles(Boolean readFiles) {
|
||||
this.readFiles = readFiles;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto writeFiles(Boolean writeFiles) {
|
||||
this.writeFiles = writeFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get writeFiles
|
||||
* @return writeFiles
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isWriteFiles() {
|
||||
return writeFiles;
|
||||
}
|
||||
|
||||
public void setWriteFiles(Boolean writeFiles) {
|
||||
this.writeFiles = writeFiles;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto deleteFiles(Boolean deleteFiles) {
|
||||
this.deleteFiles = deleteFiles;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deleteFiles
|
||||
* @return deleteFiles
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isDeleteFiles() {
|
||||
return deleteFiles;
|
||||
}
|
||||
|
||||
public void setDeleteFiles(Boolean deleteFiles) {
|
||||
this.deleteFiles = deleteFiles;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto accessChat(Boolean accessChat) {
|
||||
this.accessChat = accessChat;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accessChat
|
||||
* @return accessChat
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAccessChat() {
|
||||
return accessChat;
|
||||
}
|
||||
|
||||
public void setAccessChat(Boolean accessChat) {
|
||||
this.accessChat = accessChat;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto accessUsers(Boolean accessUsers) {
|
||||
this.accessUsers = accessUsers;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accessUsers
|
||||
* @return accessUsers
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAccessUsers() {
|
||||
return accessUsers;
|
||||
}
|
||||
|
||||
public void setAccessUsers(Boolean accessUsers) {
|
||||
this.accessUsers = accessUsers;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto accessJournal(Boolean accessJournal) {
|
||||
this.accessJournal = accessJournal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accessJournal
|
||||
* @return accessJournal
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAccessJournal() {
|
||||
return accessJournal;
|
||||
}
|
||||
|
||||
public void setAccessJournal(Boolean accessJournal) {
|
||||
this.accessJournal = accessJournal;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto exportJournal(Boolean exportJournal) {
|
||||
this.exportJournal = exportJournal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get exportJournal
|
||||
* @return exportJournal
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isExportJournal() {
|
||||
return exportJournal;
|
||||
}
|
||||
|
||||
public void setExportJournal(Boolean exportJournal) {
|
||||
this.exportJournal = exportJournal;
|
||||
}
|
||||
|
||||
public BoxMemberPermissionDto exportIndex(Boolean exportIndex) {
|
||||
this.exportIndex = exportIndex;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get exportIndex
|
||||
* @return exportIndex
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isExportIndex() {
|
||||
return exportIndex;
|
||||
}
|
||||
|
||||
public void setExportIndex(Boolean exportIndex) {
|
||||
this.exportIndex = exportIndex;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxMemberPermissionDto boxMemberPermissionDto = (BoxMemberPermissionDto) o;
|
||||
return Objects.equals(this.readFiles, boxMemberPermissionDto.readFiles) &&
|
||||
Objects.equals(this.writeFiles, boxMemberPermissionDto.writeFiles) &&
|
||||
Objects.equals(this.deleteFiles, boxMemberPermissionDto.deleteFiles) &&
|
||||
Objects.equals(this.accessChat, boxMemberPermissionDto.accessChat) &&
|
||||
Objects.equals(this.accessUsers, boxMemberPermissionDto.accessUsers) &&
|
||||
Objects.equals(this.accessJournal, boxMemberPermissionDto.accessJournal) &&
|
||||
Objects.equals(this.exportJournal, boxMemberPermissionDto.exportJournal) &&
|
||||
Objects.equals(this.exportIndex, boxMemberPermissionDto.exportIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(readFiles, writeFiles, deleteFiles, accessChat, accessUsers, accessJournal, exportJournal, exportIndex);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxMemberPermissionDto {\n");
|
||||
|
||||
sb.append(" readFiles: ").append(toIndentedString(readFiles)).append("\n");
|
||||
sb.append(" writeFiles: ").append(toIndentedString(writeFiles)).append("\n");
|
||||
sb.append(" deleteFiles: ").append(toIndentedString(deleteFiles)).append("\n");
|
||||
sb.append(" accessChat: ").append(toIndentedString(accessChat)).append("\n");
|
||||
sb.append(" accessUsers: ").append(toIndentedString(accessUsers)).append("\n");
|
||||
sb.append(" accessJournal: ").append(toIndentedString(accessJournal)).append("\n");
|
||||
sb.append(" exportJournal: ").append(toIndentedString(exportJournal)).append("\n");
|
||||
sb.append(" exportIndex: ").append(toIndentedString(exportIndex)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+432
@@ -0,0 +1,432 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxAttributes;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxDeletion;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxMemberPermission;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ContentDeletion;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.DataroomConfiguration;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.EntryList;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.SharingConfig;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Validity;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* BoxMetaData
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxMetaData {
|
||||
@JsonProperty("attributes")
|
||||
private BoxAttributes attributes = null;
|
||||
|
||||
@JsonProperty("author")
|
||||
private String author = null;
|
||||
|
||||
@JsonProperty("boxDeleteConfig")
|
||||
private BoxDeletion boxDeleteConfig = null;
|
||||
|
||||
@JsonProperty("contentDeleteConfig")
|
||||
private ContentDeletion contentDeleteConfig = null;
|
||||
|
||||
@JsonProperty("creationDate")
|
||||
private DateTime creationDate = null;
|
||||
|
||||
@JsonProperty("dataroomConfig")
|
||||
private DataroomConfiguration dataroomConfig = null;
|
||||
|
||||
@JsonProperty("defaultPermissions")
|
||||
private BoxMemberPermission defaultPermissions = null;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
@JsonProperty("permissions")
|
||||
private BoxMemberPermission permissions = null;
|
||||
|
||||
/**
|
||||
* Role of current user in this box
|
||||
*/
|
||||
public enum RoleEnum {
|
||||
OWNER("OWNER"),
|
||||
MANAGER("MANAGER"),
|
||||
MEMBER("MEMBER"),
|
||||
ASSISTANT("ASSISTANT"),
|
||||
ANONYMOUS("ANONYMOUS"),
|
||||
AUDITOR("AUDITOR");
|
||||
|
||||
private String value;
|
||||
|
||||
RoleEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static RoleEnum fromValue(String input) {
|
||||
for (RoleEnum b : RoleEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("role")
|
||||
private RoleEnum role = null;
|
||||
|
||||
@JsonProperty("rootFolder")
|
||||
private EntryList rootFolder = null;
|
||||
|
||||
@JsonProperty("sharingConfig")
|
||||
private SharingConfig sharingConfig = null;
|
||||
|
||||
@JsonProperty("validityConfig")
|
||||
private Validity validityConfig = null;
|
||||
|
||||
public BoxMetaData attributes(BoxAttributes attributes) {
|
||||
this.attributes = attributes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get attributes
|
||||
* @return attributes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxAttributes getAttributes() {
|
||||
return attributes;
|
||||
}
|
||||
|
||||
public void setAttributes(BoxAttributes attributes) {
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
public BoxMetaData author(String author) {
|
||||
this.author = author;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of box owner
|
||||
* @return author
|
||||
**/
|
||||
@Schema(description = "Name of box owner")
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public BoxMetaData boxDeleteConfig(BoxDeletion boxDeleteConfig) {
|
||||
this.boxDeleteConfig = boxDeleteConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get boxDeleteConfig
|
||||
* @return boxDeleteConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxDeletion getBoxDeleteConfig() {
|
||||
return boxDeleteConfig;
|
||||
}
|
||||
|
||||
public void setBoxDeleteConfig(BoxDeletion boxDeleteConfig) {
|
||||
this.boxDeleteConfig = boxDeleteConfig;
|
||||
}
|
||||
|
||||
public BoxMetaData contentDeleteConfig(ContentDeletion contentDeleteConfig) {
|
||||
this.contentDeleteConfig = contentDeleteConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contentDeleteConfig
|
||||
* @return contentDeleteConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ContentDeletion getContentDeleteConfig() {
|
||||
return contentDeleteConfig;
|
||||
}
|
||||
|
||||
public void setContentDeleteConfig(ContentDeletion contentDeleteConfig) {
|
||||
this.contentDeleteConfig = contentDeleteConfig;
|
||||
}
|
||||
|
||||
public BoxMetaData creationDate(DateTime creationDate) {
|
||||
this.creationDate = creationDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creation date of box. Read only value.
|
||||
* @return creationDate
|
||||
**/
|
||||
@Schema(description = "Creation date of box. Read only value.")
|
||||
public DateTime getCreationDate() {
|
||||
return creationDate;
|
||||
}
|
||||
|
||||
public void setCreationDate(DateTime creationDate) {
|
||||
this.creationDate = creationDate;
|
||||
}
|
||||
|
||||
public BoxMetaData dataroomConfig(DataroomConfiguration dataroomConfig) {
|
||||
this.dataroomConfig = dataroomConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dataroomConfig
|
||||
* @return dataroomConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DataroomConfiguration getDataroomConfig() {
|
||||
return dataroomConfig;
|
||||
}
|
||||
|
||||
public void setDataroomConfig(DataroomConfiguration dataroomConfig) {
|
||||
this.dataroomConfig = dataroomConfig;
|
||||
}
|
||||
|
||||
public BoxMetaData defaultPermissions(BoxMemberPermission defaultPermissions) {
|
||||
this.defaultPermissions = defaultPermissions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get defaultPermissions
|
||||
* @return defaultPermissions
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxMemberPermission getDefaultPermissions() {
|
||||
return defaultPermissions;
|
||||
}
|
||||
|
||||
public void setDefaultPermissions(BoxMemberPermission defaultPermissions) {
|
||||
this.defaultPermissions = defaultPermissions;
|
||||
}
|
||||
|
||||
public BoxMetaData description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Box description
|
||||
* @return description
|
||||
**/
|
||||
@Schema(description = "Box description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public BoxMetaData name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BoxMetaData permissions(BoxMemberPermission permissions) {
|
||||
this.permissions = permissions;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get permissions
|
||||
* @return permissions
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxMemberPermission getPermissions() {
|
||||
return permissions;
|
||||
}
|
||||
|
||||
public void setPermissions(BoxMemberPermission permissions) {
|
||||
this.permissions = permissions;
|
||||
}
|
||||
|
||||
public BoxMetaData role(RoleEnum role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Role of current user in this box
|
||||
* @return role
|
||||
**/
|
||||
@Schema(description = "Role of current user in this box")
|
||||
public RoleEnum getRole() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public void setRole(RoleEnum role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
public BoxMetaData rootFolder(EntryList rootFolder) {
|
||||
this.rootFolder = rootFolder;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get rootFolder
|
||||
* @return rootFolder
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public EntryList getRootFolder() {
|
||||
return rootFolder;
|
||||
}
|
||||
|
||||
public void setRootFolder(EntryList rootFolder) {
|
||||
this.rootFolder = rootFolder;
|
||||
}
|
||||
|
||||
public BoxMetaData sharingConfig(SharingConfig sharingConfig) {
|
||||
this.sharingConfig = sharingConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get sharingConfig
|
||||
* @return sharingConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public SharingConfig getSharingConfig() {
|
||||
return sharingConfig;
|
||||
}
|
||||
|
||||
public void setSharingConfig(SharingConfig sharingConfig) {
|
||||
this.sharingConfig = sharingConfig;
|
||||
}
|
||||
|
||||
public BoxMetaData validityConfig(Validity validityConfig) {
|
||||
this.validityConfig = validityConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get validityConfig
|
||||
* @return validityConfig
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Validity getValidityConfig() {
|
||||
return validityConfig;
|
||||
}
|
||||
|
||||
public void setValidityConfig(Validity validityConfig) {
|
||||
this.validityConfig = validityConfig;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxMetaData boxMetaData = (BoxMetaData) o;
|
||||
return Objects.equals(this.attributes, boxMetaData.attributes) &&
|
||||
Objects.equals(this.author, boxMetaData.author) &&
|
||||
Objects.equals(this.boxDeleteConfig, boxMetaData.boxDeleteConfig) &&
|
||||
Objects.equals(this.contentDeleteConfig, boxMetaData.contentDeleteConfig) &&
|
||||
Objects.equals(this.creationDate, boxMetaData.creationDate) &&
|
||||
Objects.equals(this.dataroomConfig, boxMetaData.dataroomConfig) &&
|
||||
Objects.equals(this.defaultPermissions, boxMetaData.defaultPermissions) &&
|
||||
Objects.equals(this.description, boxMetaData.description) &&
|
||||
Objects.equals(this.name, boxMetaData.name) &&
|
||||
Objects.equals(this.permissions, boxMetaData.permissions) &&
|
||||
Objects.equals(this.role, boxMetaData.role) &&
|
||||
Objects.equals(this.rootFolder, boxMetaData.rootFolder) &&
|
||||
Objects.equals(this.sharingConfig, boxMetaData.sharingConfig) &&
|
||||
Objects.equals(this.validityConfig, boxMetaData.validityConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(attributes, author, boxDeleteConfig, contentDeleteConfig, creationDate, dataroomConfig, defaultPermissions, description, name, permissions, role, rootFolder, sharingConfig, validityConfig);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxMetaData {\n");
|
||||
|
||||
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
|
||||
sb.append(" author: ").append(toIndentedString(author)).append("\n");
|
||||
sb.append(" boxDeleteConfig: ").append(toIndentedString(boxDeleteConfig)).append("\n");
|
||||
sb.append(" contentDeleteConfig: ").append(toIndentedString(contentDeleteConfig)).append("\n");
|
||||
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
|
||||
sb.append(" dataroomConfig: ").append(toIndentedString(dataroomConfig)).append("\n");
|
||||
sb.append(" defaultPermissions: ").append(toIndentedString(defaultPermissions)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n");
|
||||
sb.append(" role: ").append(toIndentedString(role)).append("\n");
|
||||
sb.append(" rootFolder: ").append(toIndentedString(rootFolder)).append("\n");
|
||||
sb.append(" sharingConfig: ").append(toIndentedString(sharingConfig)).append("\n");
|
||||
sb.append(" validityConfig: ").append(toIndentedString(validityConfig)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+227
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* BoxPermissionDto
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxPermissionDto {
|
||||
@JsonProperty("chatRW")
|
||||
private Boolean chatRW = null;
|
||||
|
||||
@JsonProperty("fileD")
|
||||
private Boolean fileD = null;
|
||||
|
||||
@JsonProperty("fileR")
|
||||
private Boolean fileR = null;
|
||||
|
||||
@JsonProperty("fileW")
|
||||
private Boolean fileW = null;
|
||||
|
||||
@JsonProperty("journalR")
|
||||
private Boolean journalR = null;
|
||||
|
||||
@JsonProperty("journalX")
|
||||
private Boolean journalX = null;
|
||||
|
||||
@JsonProperty("userR")
|
||||
private Boolean userR = null;
|
||||
|
||||
public BoxPermissionDto chatRW(Boolean chatRW) {
|
||||
this.chatRW = chatRW;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get chatRW
|
||||
* @return chatRW
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isChatRW() {
|
||||
return chatRW;
|
||||
}
|
||||
|
||||
public void setChatRW(Boolean chatRW) {
|
||||
this.chatRW = chatRW;
|
||||
}
|
||||
|
||||
public BoxPermissionDto fileD(Boolean fileD) {
|
||||
this.fileD = fileD;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fileD
|
||||
* @return fileD
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isFileD() {
|
||||
return fileD;
|
||||
}
|
||||
|
||||
public void setFileD(Boolean fileD) {
|
||||
this.fileD = fileD;
|
||||
}
|
||||
|
||||
public BoxPermissionDto fileR(Boolean fileR) {
|
||||
this.fileR = fileR;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fileR
|
||||
* @return fileR
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isFileR() {
|
||||
return fileR;
|
||||
}
|
||||
|
||||
public void setFileR(Boolean fileR) {
|
||||
this.fileR = fileR;
|
||||
}
|
||||
|
||||
public BoxPermissionDto fileW(Boolean fileW) {
|
||||
this.fileW = fileW;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fileW
|
||||
* @return fileW
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isFileW() {
|
||||
return fileW;
|
||||
}
|
||||
|
||||
public void setFileW(Boolean fileW) {
|
||||
this.fileW = fileW;
|
||||
}
|
||||
|
||||
public BoxPermissionDto journalR(Boolean journalR) {
|
||||
this.journalR = journalR;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get journalR
|
||||
* @return journalR
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isJournalR() {
|
||||
return journalR;
|
||||
}
|
||||
|
||||
public void setJournalR(Boolean journalR) {
|
||||
this.journalR = journalR;
|
||||
}
|
||||
|
||||
public BoxPermissionDto journalX(Boolean journalX) {
|
||||
this.journalX = journalX;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get journalX
|
||||
* @return journalX
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isJournalX() {
|
||||
return journalX;
|
||||
}
|
||||
|
||||
public void setJournalX(Boolean journalX) {
|
||||
this.journalX = journalX;
|
||||
}
|
||||
|
||||
public BoxPermissionDto userR(Boolean userR) {
|
||||
this.userR = userR;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userR
|
||||
* @return userR
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isUserR() {
|
||||
return userR;
|
||||
}
|
||||
|
||||
public void setUserR(Boolean userR) {
|
||||
this.userR = userR;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxPermissionDto boxPermissionDto = (BoxPermissionDto) o;
|
||||
return Objects.equals(this.chatRW, boxPermissionDto.chatRW) &&
|
||||
Objects.equals(this.fileD, boxPermissionDto.fileD) &&
|
||||
Objects.equals(this.fileR, boxPermissionDto.fileR) &&
|
||||
Objects.equals(this.fileW, boxPermissionDto.fileW) &&
|
||||
Objects.equals(this.journalR, boxPermissionDto.journalR) &&
|
||||
Objects.equals(this.journalX, boxPermissionDto.journalX) &&
|
||||
Objects.equals(this.userR, boxPermissionDto.userR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(chatRW, fileD, fileR, fileW, journalR, journalX, userR);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxPermissionDto {\n");
|
||||
|
||||
sb.append(" chatRW: ").append(toIndentedString(chatRW)).append("\n");
|
||||
sb.append(" fileD: ").append(toIndentedString(fileD)).append("\n");
|
||||
sb.append(" fileR: ").append(toIndentedString(fileR)).append("\n");
|
||||
sb.append(" fileW: ").append(toIndentedString(fileW)).append("\n");
|
||||
sb.append(" journalR: ").append(toIndentedString(journalR)).append("\n");
|
||||
sb.append(" journalX: ").append(toIndentedString(journalX)).append("\n");
|
||||
sb.append(" userR: ").append(toIndentedString(userR)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+277
@@ -0,0 +1,277 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.BoxBasePolicies;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ContentPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.QuarantinePolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.TempBoxesPolicy;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* BoxSettings
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxSettings {
|
||||
@JsonProperty("enableWebdav")
|
||||
private Boolean enableWebdav = null;
|
||||
|
||||
@JsonProperty("showFirstVisit")
|
||||
private Boolean showFirstVisit = null;
|
||||
|
||||
@JsonProperty("showLastVisit")
|
||||
private Boolean showLastVisit = null;
|
||||
|
||||
@JsonProperty("forceBoxPasscode")
|
||||
private Boolean forceBoxPasscode = null;
|
||||
|
||||
@JsonProperty("boxBasePolicies")
|
||||
private BoxBasePolicies boxBasePolicies = null;
|
||||
|
||||
@JsonProperty("tempBoxesPolicy")
|
||||
private TempBoxesPolicy tempBoxesPolicy = null;
|
||||
|
||||
@JsonProperty("contentPolicy")
|
||||
private ContentPolicy contentPolicy = null;
|
||||
|
||||
@JsonProperty("quarantinePolicy")
|
||||
private QuarantinePolicy quarantinePolicy = null;
|
||||
|
||||
@JsonProperty("auditorFeatureEnabled")
|
||||
private Boolean auditorFeatureEnabled = null;
|
||||
|
||||
public BoxSettings enableWebdav(Boolean enableWebdav) {
|
||||
this.enableWebdav = enableWebdav;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get enableWebdav
|
||||
* @return enableWebdav
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isEnableWebdav() {
|
||||
return enableWebdav;
|
||||
}
|
||||
|
||||
public void setEnableWebdav(Boolean enableWebdav) {
|
||||
this.enableWebdav = enableWebdav;
|
||||
}
|
||||
|
||||
public BoxSettings showFirstVisit(Boolean showFirstVisit) {
|
||||
this.showFirstVisit = showFirstVisit;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get showFirstVisit
|
||||
* @return showFirstVisit
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isShowFirstVisit() {
|
||||
return showFirstVisit;
|
||||
}
|
||||
|
||||
public void setShowFirstVisit(Boolean showFirstVisit) {
|
||||
this.showFirstVisit = showFirstVisit;
|
||||
}
|
||||
|
||||
public BoxSettings showLastVisit(Boolean showLastVisit) {
|
||||
this.showLastVisit = showLastVisit;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get showLastVisit
|
||||
* @return showLastVisit
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isShowLastVisit() {
|
||||
return showLastVisit;
|
||||
}
|
||||
|
||||
public void setShowLastVisit(Boolean showLastVisit) {
|
||||
this.showLastVisit = showLastVisit;
|
||||
}
|
||||
|
||||
public BoxSettings forceBoxPasscode(Boolean forceBoxPasscode) {
|
||||
this.forceBoxPasscode = forceBoxPasscode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* enforce box-sharing with passcode
|
||||
* @return forceBoxPasscode
|
||||
**/
|
||||
@Schema(description = "enforce box-sharing with passcode")
|
||||
public Boolean isForceBoxPasscode() {
|
||||
return forceBoxPasscode;
|
||||
}
|
||||
|
||||
public void setForceBoxPasscode(Boolean forceBoxPasscode) {
|
||||
this.forceBoxPasscode = forceBoxPasscode;
|
||||
}
|
||||
|
||||
public BoxSettings boxBasePolicies(BoxBasePolicies boxBasePolicies) {
|
||||
this.boxBasePolicies = boxBasePolicies;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get boxBasePolicies
|
||||
* @return boxBasePolicies
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public BoxBasePolicies getBoxBasePolicies() {
|
||||
return boxBasePolicies;
|
||||
}
|
||||
|
||||
public void setBoxBasePolicies(BoxBasePolicies boxBasePolicies) {
|
||||
this.boxBasePolicies = boxBasePolicies;
|
||||
}
|
||||
|
||||
public BoxSettings tempBoxesPolicy(TempBoxesPolicy tempBoxesPolicy) {
|
||||
this.tempBoxesPolicy = tempBoxesPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tempBoxesPolicy
|
||||
* @return tempBoxesPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public TempBoxesPolicy getTempBoxesPolicy() {
|
||||
return tempBoxesPolicy;
|
||||
}
|
||||
|
||||
public void setTempBoxesPolicy(TempBoxesPolicy tempBoxesPolicy) {
|
||||
this.tempBoxesPolicy = tempBoxesPolicy;
|
||||
}
|
||||
|
||||
public BoxSettings contentPolicy(ContentPolicy contentPolicy) {
|
||||
this.contentPolicy = contentPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contentPolicy
|
||||
* @return contentPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ContentPolicy getContentPolicy() {
|
||||
return contentPolicy;
|
||||
}
|
||||
|
||||
public void setContentPolicy(ContentPolicy contentPolicy) {
|
||||
this.contentPolicy = contentPolicy;
|
||||
}
|
||||
|
||||
public BoxSettings quarantinePolicy(QuarantinePolicy quarantinePolicy) {
|
||||
this.quarantinePolicy = quarantinePolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get quarantinePolicy
|
||||
* @return quarantinePolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public QuarantinePolicy getQuarantinePolicy() {
|
||||
return quarantinePolicy;
|
||||
}
|
||||
|
||||
public void setQuarantinePolicy(QuarantinePolicy quarantinePolicy) {
|
||||
this.quarantinePolicy = quarantinePolicy;
|
||||
}
|
||||
|
||||
public BoxSettings auditorFeatureEnabled(Boolean auditorFeatureEnabled) {
|
||||
this.auditorFeatureEnabled = auditorFeatureEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get auditorFeatureEnabled
|
||||
* @return auditorFeatureEnabled
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAuditorFeatureEnabled() {
|
||||
return auditorFeatureEnabled;
|
||||
}
|
||||
|
||||
public void setAuditorFeatureEnabled(Boolean auditorFeatureEnabled) {
|
||||
this.auditorFeatureEnabled = auditorFeatureEnabled;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxSettings boxSettings = (BoxSettings) o;
|
||||
return Objects.equals(this.enableWebdav, boxSettings.enableWebdav) &&
|
||||
Objects.equals(this.showFirstVisit, boxSettings.showFirstVisit) &&
|
||||
Objects.equals(this.showLastVisit, boxSettings.showLastVisit) &&
|
||||
Objects.equals(this.forceBoxPasscode, boxSettings.forceBoxPasscode) &&
|
||||
Objects.equals(this.boxBasePolicies, boxSettings.boxBasePolicies) &&
|
||||
Objects.equals(this.tempBoxesPolicy, boxSettings.tempBoxesPolicy) &&
|
||||
Objects.equals(this.contentPolicy, boxSettings.contentPolicy) &&
|
||||
Objects.equals(this.quarantinePolicy, boxSettings.quarantinePolicy) &&
|
||||
Objects.equals(this.auditorFeatureEnabled, boxSettings.auditorFeatureEnabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(enableWebdav, showFirstVisit, showLastVisit, forceBoxPasscode, boxBasePolicies, tempBoxesPolicy, contentPolicy, quarantinePolicy, auditorFeatureEnabled);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxSettings {\n");
|
||||
|
||||
sb.append(" enableWebdav: ").append(toIndentedString(enableWebdav)).append("\n");
|
||||
sb.append(" showFirstVisit: ").append(toIndentedString(showFirstVisit)).append("\n");
|
||||
sb.append(" showLastVisit: ").append(toIndentedString(showLastVisit)).append("\n");
|
||||
sb.append(" forceBoxPasscode: ").append(toIndentedString(forceBoxPasscode)).append("\n");
|
||||
sb.append(" boxBasePolicies: ").append(toIndentedString(boxBasePolicies)).append("\n");
|
||||
sb.append(" tempBoxesPolicy: ").append(toIndentedString(tempBoxesPolicy)).append("\n");
|
||||
sb.append(" contentPolicy: ").append(toIndentedString(contentPolicy)).append("\n");
|
||||
sb.append(" quarantinePolicy: ").append(toIndentedString(quarantinePolicy)).append("\n");
|
||||
sb.append(" auditorFeatureEnabled: ").append(toIndentedString(auditorFeatureEnabled)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.TagProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* BoxTag
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxTag {
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description = null;
|
||||
|
||||
@JsonProperty("properties")
|
||||
private List<TagProperty> properties = null;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("created")
|
||||
private DateTime created = null;
|
||||
|
||||
@JsonProperty("lastChanged")
|
||||
private DateTime lastChanged = null;
|
||||
|
||||
@JsonProperty("priv")
|
||||
private Boolean priv = null;
|
||||
|
||||
public BoxTag name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BoxTag description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get description
|
||||
* @return description
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public BoxTag properties(List<TagProperty> properties) {
|
||||
this.properties = properties;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BoxTag addPropertiesItem(TagProperty propertiesItem) {
|
||||
if (this.properties == null) {
|
||||
this.properties = new ArrayList<>();
|
||||
}
|
||||
this.properties.add(propertiesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get properties
|
||||
* @return properties
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<TagProperty> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<TagProperty> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public BoxTag id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public BoxTag created(DateTime created) {
|
||||
this.created = created;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get created
|
||||
* @return created
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(DateTime created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public BoxTag lastChanged(DateTime lastChanged) {
|
||||
this.lastChanged = lastChanged;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastChanged
|
||||
* @return lastChanged
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getLastChanged() {
|
||||
return lastChanged;
|
||||
}
|
||||
|
||||
public void setLastChanged(DateTime lastChanged) {
|
||||
this.lastChanged = lastChanged;
|
||||
}
|
||||
|
||||
public BoxTag priv(Boolean priv) {
|
||||
this.priv = priv;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get priv
|
||||
* @return priv
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isPriv() {
|
||||
return priv;
|
||||
}
|
||||
|
||||
public void setPriv(Boolean priv) {
|
||||
this.priv = priv;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxTag boxTag = (BoxTag) o;
|
||||
return Objects.equals(this.name, boxTag.name) &&
|
||||
Objects.equals(this.description, boxTag.description) &&
|
||||
Objects.equals(this.properties, boxTag.properties) &&
|
||||
Objects.equals(this.id, boxTag.id) &&
|
||||
Objects.equals(this.created, boxTag.created) &&
|
||||
Objects.equals(this.lastChanged, boxTag.lastChanged) &&
|
||||
Objects.equals(this.priv, boxTag.priv);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name, description, properties, id, created, lastChanged, priv);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxTag {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" created: ").append(toIndentedString(created)).append("\n");
|
||||
sb.append(" lastChanged: ").append(toIndentedString(lastChanged)).append("\n");
|
||||
sb.append(" priv: ").append(toIndentedString(priv)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* identity of this box-guest
|
||||
*/
|
||||
@Schema(description = "identity of this box-guest")
|
||||
|
||||
|
||||
public class BoxUserId {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
public BoxUserId id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* id of user
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "id of user")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public BoxUserId name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* name of user
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "name of user")
|
||||
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;
|
||||
}
|
||||
BoxUserId boxUserId = (BoxUserId) o;
|
||||
return Objects.equals(this.id, boxUserId.id) &&
|
||||
Objects.equals(this.name, boxUserId.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxUserId {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.IdgardBox;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* BoxesListWithInfos
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class BoxesListWithInfos {
|
||||
@JsonProperty("countAllBoxes")
|
||||
private Integer countAllBoxes = null;
|
||||
|
||||
@JsonProperty("hasNext")
|
||||
private Boolean hasNext = null;
|
||||
|
||||
@JsonProperty("listBoxes")
|
||||
private List<IdgardBox> listBoxes = null;
|
||||
|
||||
public BoxesListWithInfos countAllBoxes(Integer countAllBoxes) {
|
||||
this.countAllBoxes = countAllBoxes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get countAllBoxes
|
||||
* @return countAllBoxes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getCountAllBoxes() {
|
||||
return countAllBoxes;
|
||||
}
|
||||
|
||||
public void setCountAllBoxes(Integer countAllBoxes) {
|
||||
this.countAllBoxes = countAllBoxes;
|
||||
}
|
||||
|
||||
public BoxesListWithInfos hasNext(Boolean hasNext) {
|
||||
this.hasNext = hasNext;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hasNext
|
||||
* @return hasNext
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isHasNext() {
|
||||
return hasNext;
|
||||
}
|
||||
|
||||
public void setHasNext(Boolean hasNext) {
|
||||
this.hasNext = hasNext;
|
||||
}
|
||||
|
||||
public BoxesListWithInfos listBoxes(List<IdgardBox> listBoxes) {
|
||||
this.listBoxes = listBoxes;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BoxesListWithInfos addListBoxesItem(IdgardBox listBoxesItem) {
|
||||
if (this.listBoxes == null) {
|
||||
this.listBoxes = new ArrayList<>();
|
||||
}
|
||||
this.listBoxes.add(listBoxesItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get listBoxes
|
||||
* @return listBoxes
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<IdgardBox> getListBoxes() {
|
||||
return listBoxes;
|
||||
}
|
||||
|
||||
public void setListBoxes(List<IdgardBox> listBoxes) {
|
||||
this.listBoxes = listBoxes;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
BoxesListWithInfos boxesListWithInfos = (BoxesListWithInfos) o;
|
||||
return Objects.equals(this.countAllBoxes, boxesListWithInfos.countAllBoxes) &&
|
||||
Objects.equals(this.hasNext, boxesListWithInfos.hasNext) &&
|
||||
Objects.equals(this.listBoxes, boxesListWithInfos.listBoxes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(countAllBoxes, hasNext, listBoxes);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BoxesListWithInfos {\n");
|
||||
|
||||
sb.append(" countAllBoxes: ").append(toIndentedString(countAllBoxes)).append("\n");
|
||||
sb.append(" hasNext: ").append(toIndentedString(hasNext)).append("\n");
|
||||
sb.append(" listBoxes: ").append(toIndentedString(listBoxes)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CtaId
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CTAID {
|
||||
@JsonProperty("version")
|
||||
private Integer version = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets type
|
||||
*/
|
||||
public enum TypeEnum {
|
||||
BOX("BOX");
|
||||
|
||||
private String value;
|
||||
|
||||
TypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static TypeEnum fromValue(String input) {
|
||||
for (TypeEnum b : TypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("type")
|
||||
private TypeEnum type = null;
|
||||
|
||||
public CTAID version(Integer version) {
|
||||
this.version = version;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get version
|
||||
* @return version
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public CTAID type(TypeEnum type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public TypeEnum getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(TypeEnum type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CTAID ctaId = (CTAID) o;
|
||||
return Objects.equals(this.version, ctaId.version) &&
|
||||
Objects.equals(this.type, ctaId.type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(version, type);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CtaId {\n");
|
||||
|
||||
sb.append(" version: ").append(toIndentedString(version)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002-2026 iterate GmbH. All rights reserved.
|
||||
* https://cyberduck.io/
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
//import ch.cyberduck.core.idgard.io.swagger.client.model.Ct;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CTAResponse
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CTAResponse {
|
||||
@JsonProperty("accept")
|
||||
private Boolean accept = null;
|
||||
|
||||
@JsonProperty("ctaId")
|
||||
private CTAID ctaId = null;
|
||||
|
||||
public CTAResponse accept(Boolean accept) {
|
||||
this.accept = accept;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accept
|
||||
* @return accept
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAccept() {
|
||||
return accept;
|
||||
}
|
||||
|
||||
public void setAccept(Boolean accept) {
|
||||
this.accept = accept;
|
||||
}
|
||||
|
||||
public CTAResponse ctaId(CTAID ctaId) {
|
||||
this.ctaId = ctaId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ctaId
|
||||
* @return ctaId
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public CTAID getCtaId() {
|
||||
return ctaId;
|
||||
}
|
||||
|
||||
public void setCtaId(CTAID ctaId) {
|
||||
this.ctaId = ctaId;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CTAResponse ctAResponse = (CTAResponse) o;
|
||||
return Objects.equals(this.accept, ctAResponse.accept) &&
|
||||
Objects.equals(this.ctaId, ctAResponse.ctaId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(accept, ctaId);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CTAResponse {\n");
|
||||
|
||||
sb.append(" accept: ").append(toIndentedString(accept)).append("\n");
|
||||
sb.append(" ctaId: ").append(toIndentedString(ctaId)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ChangePassword
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ChangePassword {
|
||||
@JsonProperty("username")
|
||||
private String username = null;
|
||||
|
||||
@JsonProperty("oldPassword")
|
||||
private String oldPassword = null;
|
||||
|
||||
@JsonProperty("newPassword")
|
||||
private String newPassword = null;
|
||||
|
||||
@JsonProperty("verifyToken")
|
||||
private String verifyToken = null;
|
||||
|
||||
public ChangePassword username(String username) {
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public ChangePassword oldPassword(String oldPassword) {
|
||||
this.oldPassword = oldPassword;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get oldPassword
|
||||
* @return oldPassword
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getOldPassword() {
|
||||
return oldPassword;
|
||||
}
|
||||
|
||||
public void setOldPassword(String oldPassword) {
|
||||
this.oldPassword = oldPassword;
|
||||
}
|
||||
|
||||
public ChangePassword newPassword(String newPassword) {
|
||||
this.newPassword = newPassword;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get newPassword
|
||||
* @return newPassword
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public String getNewPassword() {
|
||||
return newPassword;
|
||||
}
|
||||
|
||||
public void setNewPassword(String newPassword) {
|
||||
this.newPassword = newPassword;
|
||||
}
|
||||
|
||||
public ChangePassword verifyToken(String verifyToken) {
|
||||
this.verifyToken = verifyToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get verifyToken
|
||||
* @return verifyToken
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getVerifyToken() {
|
||||
return verifyToken;
|
||||
}
|
||||
|
||||
public void setVerifyToken(String verifyToken) {
|
||||
this.verifyToken = verifyToken;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ChangePassword changePassword = (ChangePassword) o;
|
||||
return Objects.equals(this.username, changePassword.username) &&
|
||||
Objects.equals(this.oldPassword, changePassword.oldPassword) &&
|
||||
Objects.equals(this.newPassword, changePassword.newPassword) &&
|
||||
Objects.equals(this.verifyToken, changePassword.verifyToken);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(username, oldPassword, newPassword, verifyToken);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChangePassword {\n");
|
||||
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" oldPassword: ").append(toIndentedString(oldPassword)).append("\n");
|
||||
sb.append(" newPassword: ").append(toIndentedString(newPassword)).append("\n");
|
||||
sb.append(" verifyToken: ").append(toIndentedString(verifyToken)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ChangeUsername
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ChangeUsername {
|
||||
@JsonProperty("username")
|
||||
private String username = null;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
|
||||
@JsonProperty("newUsername")
|
||||
private String newUsername = null;
|
||||
|
||||
@JsonProperty("captcha")
|
||||
private String captcha = null;
|
||||
|
||||
public ChangeUsername username(String username) {
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public ChangeUsername password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public ChangeUsername newUsername(String newUsername) {
|
||||
this.newUsername = newUsername;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get newUsername
|
||||
* @return newUsername
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getNewUsername() {
|
||||
return newUsername;
|
||||
}
|
||||
|
||||
public void setNewUsername(String newUsername) {
|
||||
this.newUsername = newUsername;
|
||||
}
|
||||
|
||||
public ChangeUsername captcha(String captcha) {
|
||||
this.captcha = captcha;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get captcha
|
||||
* @return captcha
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCaptcha() {
|
||||
return captcha;
|
||||
}
|
||||
|
||||
public void setCaptcha(String captcha) {
|
||||
this.captcha = captcha;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ChangeUsername changeUsername = (ChangeUsername) o;
|
||||
return Objects.equals(this.username, changeUsername.username) &&
|
||||
Objects.equals(this.password, changeUsername.password) &&
|
||||
Objects.equals(this.newUsername, changeUsername.newUsername) &&
|
||||
Objects.equals(this.captcha, changeUsername.captcha);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(username, password, newUsername, captcha);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChangeUsername {\n");
|
||||
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" newUsername: ").append(toIndentedString(newUsername)).append("\n");
|
||||
sb.append(" captcha: ").append(toIndentedString(captcha)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* ChatEntry
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ChatEntry {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("authorId")
|
||||
private String authorId = null;
|
||||
|
||||
@JsonProperty("author")
|
||||
private String author = null;
|
||||
|
||||
@JsonProperty("owner")
|
||||
private Boolean owner = null;
|
||||
|
||||
@JsonProperty("dateCreated")
|
||||
private DateTime dateCreated = null;
|
||||
|
||||
@JsonProperty("content")
|
||||
private String content = null;
|
||||
|
||||
public ChatEntry id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of chat
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "ID of chat")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ChatEntry authorId(String authorId) {
|
||||
this.authorId = authorId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of sender
|
||||
* @return authorId
|
||||
**/
|
||||
@Schema(description = "ID of sender")
|
||||
public String getAuthorId() {
|
||||
return authorId;
|
||||
}
|
||||
|
||||
public void setAuthorId(String authorId) {
|
||||
this.authorId = authorId;
|
||||
}
|
||||
|
||||
public ChatEntry author(String author) {
|
||||
this.author = author;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of sender
|
||||
* @return author
|
||||
**/
|
||||
@Schema(description = "Name of sender")
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public ChatEntry owner(Boolean owner) {
|
||||
this.owner = owner;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates whether the current user created this message
|
||||
* @return owner
|
||||
**/
|
||||
@Schema(description = "Indicates whether the current user created this message")
|
||||
public Boolean isOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
public void setOwner(Boolean owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public ChatEntry dateCreated(DateTime dateCreated) {
|
||||
this.dateCreated = dateCreated;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date of creation
|
||||
* @return dateCreated
|
||||
**/
|
||||
@Schema(description = "Date of creation")
|
||||
public DateTime getDateCreated() {
|
||||
return dateCreated;
|
||||
}
|
||||
|
||||
public void setDateCreated(DateTime dateCreated) {
|
||||
this.dateCreated = dateCreated;
|
||||
}
|
||||
|
||||
public ChatEntry content(String content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Message of this chat
|
||||
* @return content
|
||||
**/
|
||||
@Schema(description = "Message of this chat")
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ChatEntry chatEntry = (ChatEntry) o;
|
||||
return Objects.equals(this.id, chatEntry.id) &&
|
||||
Objects.equals(this.authorId, chatEntry.authorId) &&
|
||||
Objects.equals(this.author, chatEntry.author) &&
|
||||
Objects.equals(this.owner, chatEntry.owner) &&
|
||||
Objects.equals(this.dateCreated, chatEntry.dateCreated) &&
|
||||
Objects.equals(this.content, chatEntry.content);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, authorId, author, owner, dateCreated, content);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChatEntry {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" authorId: ").append(toIndentedString(authorId)).append("\n");
|
||||
sb.append(" author: ").append(toIndentedString(author)).append("\n");
|
||||
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
|
||||
sb.append(" dateCreated: ").append(toIndentedString(dateCreated)).append("\n");
|
||||
sb.append(" content: ").append(toIndentedString(content)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* ChildrenDeletion
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ChildrenDeletion {
|
||||
@JsonProperty("childIds")
|
||||
private List<String> childIds = null;
|
||||
|
||||
public ChildrenDeletion childIds(List<String> childIds) {
|
||||
this.childIds = childIds;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChildrenDeletion addChildIdsItem(String childIdsItem) {
|
||||
if (this.childIds == null) {
|
||||
this.childIds = new ArrayList<>();
|
||||
}
|
||||
this.childIds.add(childIdsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get childIds
|
||||
* @return childIds
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getChildIds() {
|
||||
return childIds;
|
||||
}
|
||||
|
||||
public void setChildIds(List<String> childIds) {
|
||||
this.childIds = childIds;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ChildrenDeletion childrenDeletion = (ChildrenDeletion) o;
|
||||
return Objects.equals(this.childIds, childrenDeletion.childIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(childIds);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ChildrenDeletion {\n");
|
||||
|
||||
sb.append(" childIds: ").append(toIndentedString(childIds)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.AndroidClientPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.IOSClientPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.OfficeClientPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.OutlookClientPolicy;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.PTClientPolicy;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ClientAppPolicies
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ClientAppPolicies {
|
||||
@JsonProperty("androidClientPolicy")
|
||||
private AndroidClientPolicy androidClientPolicy = null;
|
||||
|
||||
@JsonProperty("iosClientPolicy")
|
||||
private IOSClientPolicy iosClientPolicy = null;
|
||||
|
||||
@JsonProperty("officeClientPolicy")
|
||||
private OfficeClientPolicy officeClientPolicy = null;
|
||||
|
||||
@JsonProperty("ptClientPolicy")
|
||||
private PTClientPolicy ptClientPolicy = null;
|
||||
|
||||
@JsonProperty("outlookClientPolicy")
|
||||
private OutlookClientPolicy outlookClientPolicy = null;
|
||||
|
||||
public ClientAppPolicies androidClientPolicy(AndroidClientPolicy androidClientPolicy) {
|
||||
this.androidClientPolicy = androidClientPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get androidClientPolicy
|
||||
* @return androidClientPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public AndroidClientPolicy getAndroidClientPolicy() {
|
||||
return androidClientPolicy;
|
||||
}
|
||||
|
||||
public void setAndroidClientPolicy(AndroidClientPolicy androidClientPolicy) {
|
||||
this.androidClientPolicy = androidClientPolicy;
|
||||
}
|
||||
|
||||
public ClientAppPolicies iosClientPolicy(IOSClientPolicy iosClientPolicy) {
|
||||
this.iosClientPolicy = iosClientPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get iosClientPolicy
|
||||
* @return iosClientPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public IOSClientPolicy getIosClientPolicy() {
|
||||
return iosClientPolicy;
|
||||
}
|
||||
|
||||
public void setIosClientPolicy(IOSClientPolicy iosClientPolicy) {
|
||||
this.iosClientPolicy = iosClientPolicy;
|
||||
}
|
||||
|
||||
public ClientAppPolicies officeClientPolicy(OfficeClientPolicy officeClientPolicy) {
|
||||
this.officeClientPolicy = officeClientPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get officeClientPolicy
|
||||
* @return officeClientPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public OfficeClientPolicy getOfficeClientPolicy() {
|
||||
return officeClientPolicy;
|
||||
}
|
||||
|
||||
public void setOfficeClientPolicy(OfficeClientPolicy officeClientPolicy) {
|
||||
this.officeClientPolicy = officeClientPolicy;
|
||||
}
|
||||
|
||||
public ClientAppPolicies ptClientPolicy(PTClientPolicy ptClientPolicy) {
|
||||
this.ptClientPolicy = ptClientPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ptClientPolicy
|
||||
* @return ptClientPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public PTClientPolicy getPtClientPolicy() {
|
||||
return ptClientPolicy;
|
||||
}
|
||||
|
||||
public void setPtClientPolicy(PTClientPolicy ptClientPolicy) {
|
||||
this.ptClientPolicy = ptClientPolicy;
|
||||
}
|
||||
|
||||
public ClientAppPolicies outlookClientPolicy(OutlookClientPolicy outlookClientPolicy) {
|
||||
this.outlookClientPolicy = outlookClientPolicy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get outlookClientPolicy
|
||||
* @return outlookClientPolicy
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public OutlookClientPolicy getOutlookClientPolicy() {
|
||||
return outlookClientPolicy;
|
||||
}
|
||||
|
||||
public void setOutlookClientPolicy(OutlookClientPolicy outlookClientPolicy) {
|
||||
this.outlookClientPolicy = outlookClientPolicy;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ClientAppPolicies clientAppPolicies = (ClientAppPolicies) o;
|
||||
return Objects.equals(this.androidClientPolicy, clientAppPolicies.androidClientPolicy) &&
|
||||
Objects.equals(this.iosClientPolicy, clientAppPolicies.iosClientPolicy) &&
|
||||
Objects.equals(this.officeClientPolicy, clientAppPolicies.officeClientPolicy) &&
|
||||
Objects.equals(this.ptClientPolicy, clientAppPolicies.ptClientPolicy) &&
|
||||
Objects.equals(this.outlookClientPolicy, clientAppPolicies.outlookClientPolicy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(androidClientPolicy, iosClientPolicy, officeClientPolicy, ptClientPolicy, outlookClientPolicy);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ClientAppPolicies {\n");
|
||||
|
||||
sb.append(" androidClientPolicy: ").append(toIndentedString(androidClientPolicy)).append("\n");
|
||||
sb.append(" iosClientPolicy: ").append(toIndentedString(iosClientPolicy)).append("\n");
|
||||
sb.append(" officeClientPolicy: ").append(toIndentedString(officeClientPolicy)).append("\n");
|
||||
sb.append(" ptClientPolicy: ").append(toIndentedString(ptClientPolicy)).append("\n");
|
||||
sb.append(" outlookClientPolicy: ").append(toIndentedString(outlookClientPolicy)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
/**
|
||||
* ClientAppPolicy
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ClientAppPolicy {
|
||||
|
||||
@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 ClientAppPolicy {\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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Address;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CompanyActivation
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CompanyActivation {
|
||||
@JsonProperty("billingAddress")
|
||||
private Address billingAddress = null;
|
||||
|
||||
@JsonProperty("taxNumber")
|
||||
private String taxNumber = null;
|
||||
|
||||
public CompanyActivation billingAddress(Address billingAddress) {
|
||||
this.billingAddress = billingAddress;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get billingAddress
|
||||
* @return billingAddress
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public Address getBillingAddress() {
|
||||
return billingAddress;
|
||||
}
|
||||
|
||||
public void setBillingAddress(Address billingAddress) {
|
||||
this.billingAddress = billingAddress;
|
||||
}
|
||||
|
||||
public CompanyActivation taxNumber(String taxNumber) {
|
||||
this.taxNumber = taxNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get taxNumber
|
||||
* @return taxNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTaxNumber() {
|
||||
return taxNumber;
|
||||
}
|
||||
|
||||
public void setTaxNumber(String taxNumber) {
|
||||
this.taxNumber = taxNumber;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CompanyActivation companyActivation = (CompanyActivation) o;
|
||||
return Objects.equals(this.billingAddress, companyActivation.billingAddress) &&
|
||||
Objects.equals(this.taxNumber, companyActivation.taxNumber);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(billingAddress, taxNumber);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CompanyActivation {\n");
|
||||
|
||||
sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
|
||||
sb.append(" taxNumber: ").append(toIndentedString(taxNumber)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+502
@@ -0,0 +1,502 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Address;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.QCOPacket;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* CompanyBooking
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CompanyBooking {
|
||||
/**
|
||||
* If `TRIAL` this account is still in Trial period
|
||||
*/
|
||||
public enum PaymentTypeEnum {
|
||||
TRIAL("Trial"),
|
||||
POSTPAID("Postpaid"),
|
||||
PREPAID("Prepaid"),
|
||||
APIUSAGESUBACCOUNT("ApiUsageSubAccount");
|
||||
|
||||
private String value;
|
||||
|
||||
PaymentTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static PaymentTypeEnum fromValue(String input) {
|
||||
for (PaymentTypeEnum b : PaymentTypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("paymentType")
|
||||
private PaymentTypeEnum paymentType = null;
|
||||
|
||||
@JsonProperty("bookedPackage")
|
||||
private QCOPacket bookedPackage = null;
|
||||
|
||||
@JsonProperty("created")
|
||||
private DateTime created = null;
|
||||
|
||||
@JsonProperty("expiration")
|
||||
private DateTime expiration = null;
|
||||
|
||||
@JsonProperty("postpaidBookedOn")
|
||||
private DateTime postpaidBookedOn = null;
|
||||
|
||||
@JsonProperty("postpaidBookedUntil")
|
||||
private DateTime postpaidBookedUntil = null;
|
||||
|
||||
@JsonProperty("postpaidAutoRenewal")
|
||||
private DateTime postpaidAutoRenewal = null;
|
||||
|
||||
@JsonProperty("smsSent")
|
||||
private Integer smsSent = null;
|
||||
|
||||
@JsonProperty("floatingLicense")
|
||||
private Boolean floatingLicense = null;
|
||||
|
||||
@JsonProperty("floatingGuestLicense")
|
||||
private Boolean floatingGuestLicense = null;
|
||||
|
||||
@JsonProperty("lastUsageStatsUpdate")
|
||||
private DateTime lastUsageStatsUpdate = null;
|
||||
|
||||
@JsonProperty("lastUsageGuestStatsUpdate")
|
||||
private DateTime lastUsageGuestStatsUpdate = null;
|
||||
|
||||
@JsonProperty("manualInvoicing")
|
||||
private Boolean manualInvoicing = null;
|
||||
|
||||
@JsonProperty("codeType")
|
||||
private String codeType = null;
|
||||
|
||||
@JsonProperty("contactAddress")
|
||||
private Address contactAddress = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets registrationChanel
|
||||
*/
|
||||
public enum RegistrationChanelEnum {
|
||||
IDGARD("IDGARD"),
|
||||
CLOUD_STORE("CLOUD_STORE"),
|
||||
ZOHO("ZOHO");
|
||||
|
||||
private String value;
|
||||
|
||||
RegistrationChanelEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static RegistrationChanelEnum fromValue(String input) {
|
||||
for (RegistrationChanelEnum b : RegistrationChanelEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("registrationChanel")
|
||||
private RegistrationChanelEnum registrationChanel = null;
|
||||
|
||||
public CompanyBooking paymentType(PaymentTypeEnum paymentType) {
|
||||
this.paymentType = paymentType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If `TRIAL` this account is still in Trial period
|
||||
* @return paymentType
|
||||
**/
|
||||
@Schema(description = "If `TRIAL` this account is still in Trial period")
|
||||
public PaymentTypeEnum getPaymentType() {
|
||||
return paymentType;
|
||||
}
|
||||
|
||||
public void setPaymentType(PaymentTypeEnum paymentType) {
|
||||
this.paymentType = paymentType;
|
||||
}
|
||||
|
||||
public CompanyBooking bookedPackage(QCOPacket bookedPackage) {
|
||||
this.bookedPackage = bookedPackage;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bookedPackage
|
||||
* @return bookedPackage
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public QCOPacket getBookedPackage() {
|
||||
return bookedPackage;
|
||||
}
|
||||
|
||||
public void setBookedPackage(QCOPacket bookedPackage) {
|
||||
this.bookedPackage = bookedPackage;
|
||||
}
|
||||
|
||||
public CompanyBooking created(DateTime created) {
|
||||
this.created = created;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date the billingUnit was created
|
||||
* @return created
|
||||
**/
|
||||
@Schema(description = "Date the billingUnit was created")
|
||||
public DateTime getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(DateTime created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public CompanyBooking expiration(DateTime expiration) {
|
||||
this.expiration = expiration;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Date of Account Test-Phase expiration
|
||||
* @return expiration
|
||||
**/
|
||||
@Schema(description = "Date of Account Test-Phase expiration")
|
||||
public DateTime getExpiration() {
|
||||
return expiration;
|
||||
}
|
||||
|
||||
public void setExpiration(DateTime expiration) {
|
||||
this.expiration = expiration;
|
||||
}
|
||||
|
||||
public CompanyBooking postpaidBookedOn(DateTime postpaidBookedOn) {
|
||||
this.postpaidBookedOn = postpaidBookedOn;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* only for POSTPAID
|
||||
* @return postpaidBookedOn
|
||||
**/
|
||||
@Schema(description = "only for POSTPAID")
|
||||
public DateTime getPostpaidBookedOn() {
|
||||
return postpaidBookedOn;
|
||||
}
|
||||
|
||||
public void setPostpaidBookedOn(DateTime postpaidBookedOn) {
|
||||
this.postpaidBookedOn = postpaidBookedOn;
|
||||
}
|
||||
|
||||
public CompanyBooking postpaidBookedUntil(DateTime postpaidBookedUntil) {
|
||||
this.postpaidBookedUntil = postpaidBookedUntil;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* only for POSTPAID
|
||||
* @return postpaidBookedUntil
|
||||
**/
|
||||
@Schema(description = "only for POSTPAID")
|
||||
public DateTime getPostpaidBookedUntil() {
|
||||
return postpaidBookedUntil;
|
||||
}
|
||||
|
||||
public void setPostpaidBookedUntil(DateTime postpaidBookedUntil) {
|
||||
this.postpaidBookedUntil = postpaidBookedUntil;
|
||||
}
|
||||
|
||||
public CompanyBooking postpaidAutoRenewal(DateTime postpaidAutoRenewal) {
|
||||
this.postpaidAutoRenewal = postpaidAutoRenewal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* only for POSTPAID
|
||||
* @return postpaidAutoRenewal
|
||||
**/
|
||||
@Schema(description = "only for POSTPAID")
|
||||
public DateTime getPostpaidAutoRenewal() {
|
||||
return postpaidAutoRenewal;
|
||||
}
|
||||
|
||||
public void setPostpaidAutoRenewal(DateTime postpaidAutoRenewal) {
|
||||
this.postpaidAutoRenewal = postpaidAutoRenewal;
|
||||
}
|
||||
|
||||
public CompanyBooking smsSent(Integer smsSent) {
|
||||
this.smsSent = smsSent;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* number of sent sms
|
||||
* @return smsSent
|
||||
**/
|
||||
@Schema(description = "number of sent sms")
|
||||
public Integer getSmsSent() {
|
||||
return smsSent;
|
||||
}
|
||||
|
||||
public void setSmsSent(Integer smsSent) {
|
||||
this.smsSent = smsSent;
|
||||
}
|
||||
|
||||
public CompanyBooking floatingLicense(Boolean floatingLicense) {
|
||||
this.floatingLicense = floatingLicense;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Usage Statistics - how many different users / month
|
||||
* @return floatingLicense
|
||||
**/
|
||||
@Schema(description = "Usage Statistics - how many different users / month")
|
||||
public Boolean isFloatingLicense() {
|
||||
return floatingLicense;
|
||||
}
|
||||
|
||||
public void setFloatingLicense(Boolean floatingLicense) {
|
||||
this.floatingLicense = floatingLicense;
|
||||
}
|
||||
|
||||
public CompanyBooking floatingGuestLicense(Boolean floatingGuestLicense) {
|
||||
this.floatingGuestLicense = floatingGuestLicense;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get floatingGuestLicense
|
||||
* @return floatingGuestLicense
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isFloatingGuestLicense() {
|
||||
return floatingGuestLicense;
|
||||
}
|
||||
|
||||
public void setFloatingGuestLicense(Boolean floatingGuestLicense) {
|
||||
this.floatingGuestLicense = floatingGuestLicense;
|
||||
}
|
||||
|
||||
public CompanyBooking lastUsageStatsUpdate(DateTime lastUsageStatsUpdate) {
|
||||
this.lastUsageStatsUpdate = lastUsageStatsUpdate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastUsageStatsUpdate
|
||||
* @return lastUsageStatsUpdate
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getLastUsageStatsUpdate() {
|
||||
return lastUsageStatsUpdate;
|
||||
}
|
||||
|
||||
public void setLastUsageStatsUpdate(DateTime lastUsageStatsUpdate) {
|
||||
this.lastUsageStatsUpdate = lastUsageStatsUpdate;
|
||||
}
|
||||
|
||||
public CompanyBooking lastUsageGuestStatsUpdate(DateTime lastUsageGuestStatsUpdate) {
|
||||
this.lastUsageGuestStatsUpdate = lastUsageGuestStatsUpdate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastUsageGuestStatsUpdate
|
||||
* @return lastUsageGuestStatsUpdate
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public DateTime getLastUsageGuestStatsUpdate() {
|
||||
return lastUsageGuestStatsUpdate;
|
||||
}
|
||||
|
||||
public void setLastUsageGuestStatsUpdate(DateTime lastUsageGuestStatsUpdate) {
|
||||
this.lastUsageGuestStatsUpdate = lastUsageGuestStatsUpdate;
|
||||
}
|
||||
|
||||
public CompanyBooking manualInvoicing(Boolean manualInvoicing) {
|
||||
this.manualInvoicing = manualInvoicing;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if invoicing is done manually for this enterprise
|
||||
* @return manualInvoicing
|
||||
**/
|
||||
@Schema(description = "if invoicing is done manually for this enterprise")
|
||||
public Boolean isManualInvoicing() {
|
||||
return manualInvoicing;
|
||||
}
|
||||
|
||||
public void setManualInvoicing(Boolean manualInvoicing) {
|
||||
this.manualInvoicing = manualInvoicing;
|
||||
}
|
||||
|
||||
public CompanyBooking codeType(String codeType) {
|
||||
this.codeType = codeType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* read only
|
||||
* @return codeType
|
||||
**/
|
||||
@Schema(description = "read only")
|
||||
public String getCodeType() {
|
||||
return codeType;
|
||||
}
|
||||
|
||||
public void setCodeType(String codeType) {
|
||||
this.codeType = codeType;
|
||||
}
|
||||
|
||||
public CompanyBooking contactAddress(Address contactAddress) {
|
||||
this.contactAddress = contactAddress;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contactAddress
|
||||
* @return contactAddress
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Address getContactAddress() {
|
||||
return contactAddress;
|
||||
}
|
||||
|
||||
public void setContactAddress(Address contactAddress) {
|
||||
this.contactAddress = contactAddress;
|
||||
}
|
||||
|
||||
public CompanyBooking registrationChanel(RegistrationChanelEnum registrationChanel) {
|
||||
this.registrationChanel = registrationChanel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get registrationChanel
|
||||
* @return registrationChanel
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public RegistrationChanelEnum getRegistrationChanel() {
|
||||
return registrationChanel;
|
||||
}
|
||||
|
||||
public void setRegistrationChanel(RegistrationChanelEnum registrationChanel) {
|
||||
this.registrationChanel = registrationChanel;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CompanyBooking companyBooking = (CompanyBooking) o;
|
||||
return Objects.equals(this.paymentType, companyBooking.paymentType) &&
|
||||
Objects.equals(this.bookedPackage, companyBooking.bookedPackage) &&
|
||||
Objects.equals(this.created, companyBooking.created) &&
|
||||
Objects.equals(this.expiration, companyBooking.expiration) &&
|
||||
Objects.equals(this.postpaidBookedOn, companyBooking.postpaidBookedOn) &&
|
||||
Objects.equals(this.postpaidBookedUntil, companyBooking.postpaidBookedUntil) &&
|
||||
Objects.equals(this.postpaidAutoRenewal, companyBooking.postpaidAutoRenewal) &&
|
||||
Objects.equals(this.smsSent, companyBooking.smsSent) &&
|
||||
Objects.equals(this.floatingLicense, companyBooking.floatingLicense) &&
|
||||
Objects.equals(this.floatingGuestLicense, companyBooking.floatingGuestLicense) &&
|
||||
Objects.equals(this.lastUsageStatsUpdate, companyBooking.lastUsageStatsUpdate) &&
|
||||
Objects.equals(this.lastUsageGuestStatsUpdate, companyBooking.lastUsageGuestStatsUpdate) &&
|
||||
Objects.equals(this.manualInvoicing, companyBooking.manualInvoicing) &&
|
||||
Objects.equals(this.codeType, companyBooking.codeType) &&
|
||||
Objects.equals(this.contactAddress, companyBooking.contactAddress) &&
|
||||
Objects.equals(this.registrationChanel, companyBooking.registrationChanel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(paymentType, bookedPackage, created, expiration, postpaidBookedOn, postpaidBookedUntil, postpaidAutoRenewal, smsSent, floatingLicense, floatingGuestLicense, lastUsageStatsUpdate, lastUsageGuestStatsUpdate, manualInvoicing, codeType, contactAddress, registrationChanel);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CompanyBooking {\n");
|
||||
|
||||
sb.append(" paymentType: ").append(toIndentedString(paymentType)).append("\n");
|
||||
sb.append(" bookedPackage: ").append(toIndentedString(bookedPackage)).append("\n");
|
||||
sb.append(" created: ").append(toIndentedString(created)).append("\n");
|
||||
sb.append(" expiration: ").append(toIndentedString(expiration)).append("\n");
|
||||
sb.append(" postpaidBookedOn: ").append(toIndentedString(postpaidBookedOn)).append("\n");
|
||||
sb.append(" postpaidBookedUntil: ").append(toIndentedString(postpaidBookedUntil)).append("\n");
|
||||
sb.append(" postpaidAutoRenewal: ").append(toIndentedString(postpaidAutoRenewal)).append("\n");
|
||||
sb.append(" smsSent: ").append(toIndentedString(smsSent)).append("\n");
|
||||
sb.append(" floatingLicense: ").append(toIndentedString(floatingLicense)).append("\n");
|
||||
sb.append(" floatingGuestLicense: ").append(toIndentedString(floatingGuestLicense)).append("\n");
|
||||
sb.append(" lastUsageStatsUpdate: ").append(toIndentedString(lastUsageStatsUpdate)).append("\n");
|
||||
sb.append(" lastUsageGuestStatsUpdate: ").append(toIndentedString(lastUsageGuestStatsUpdate)).append("\n");
|
||||
sb.append(" manualInvoicing: ").append(toIndentedString(manualInvoicing)).append("\n");
|
||||
sb.append(" codeType: ").append(toIndentedString(codeType)).append("\n");
|
||||
sb.append(" contactAddress: ").append(toIndentedString(contactAddress)).append("\n");
|
||||
sb.append(" registrationChanel: ").append(toIndentedString(registrationChanel)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+205
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Address;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CompanyProfile
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CompanyProfile {
|
||||
@JsonProperty("companyName")
|
||||
private String companyName = null;
|
||||
|
||||
@JsonProperty("adminName")
|
||||
private String adminName = null;
|
||||
|
||||
@JsonProperty("companyAddress")
|
||||
private Address companyAddress = null;
|
||||
|
||||
@JsonProperty("accountName")
|
||||
private String accountName = null;
|
||||
|
||||
@JsonProperty("taxNumber")
|
||||
private String taxNumber = null;
|
||||
|
||||
@JsonProperty("billingAddress")
|
||||
private Address billingAddress = null;
|
||||
|
||||
public CompanyProfile companyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get companyName
|
||||
* @return companyName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public CompanyProfile adminName(String adminName) {
|
||||
this.adminName = adminName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get adminName
|
||||
* @return adminName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAdminName() {
|
||||
return adminName;
|
||||
}
|
||||
|
||||
public void setAdminName(String adminName) {
|
||||
this.adminName = adminName;
|
||||
}
|
||||
|
||||
public CompanyProfile companyAddress(Address companyAddress) {
|
||||
this.companyAddress = companyAddress;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get companyAddress
|
||||
* @return companyAddress
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public Address getCompanyAddress() {
|
||||
return companyAddress;
|
||||
}
|
||||
|
||||
public void setCompanyAddress(Address companyAddress) {
|
||||
this.companyAddress = companyAddress;
|
||||
}
|
||||
|
||||
public CompanyProfile accountName(String accountName) {
|
||||
this.accountName = accountName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get accountName
|
||||
* @return accountName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getAccountName() {
|
||||
return accountName;
|
||||
}
|
||||
|
||||
public void setAccountName(String accountName) {
|
||||
this.accountName = accountName;
|
||||
}
|
||||
|
||||
public CompanyProfile taxNumber(String taxNumber) {
|
||||
this.taxNumber = taxNumber;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get taxNumber
|
||||
* @return taxNumber
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTaxNumber() {
|
||||
return taxNumber;
|
||||
}
|
||||
|
||||
public void setTaxNumber(String taxNumber) {
|
||||
this.taxNumber = taxNumber;
|
||||
}
|
||||
|
||||
public CompanyProfile billingAddress(Address billingAddress) {
|
||||
this.billingAddress = billingAddress;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get billingAddress
|
||||
* @return billingAddress
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public Address getBillingAddress() {
|
||||
return billingAddress;
|
||||
}
|
||||
|
||||
public void setBillingAddress(Address billingAddress) {
|
||||
this.billingAddress = billingAddress;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CompanyProfile companyProfile = (CompanyProfile) o;
|
||||
return Objects.equals(this.companyName, companyProfile.companyName) &&
|
||||
Objects.equals(this.adminName, companyProfile.adminName) &&
|
||||
Objects.equals(this.companyAddress, companyProfile.companyAddress) &&
|
||||
Objects.equals(this.accountName, companyProfile.accountName) &&
|
||||
Objects.equals(this.taxNumber, companyProfile.taxNumber) &&
|
||||
Objects.equals(this.billingAddress, companyProfile.billingAddress);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(companyName, adminName, companyAddress, accountName, taxNumber, billingAddress);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CompanyProfile {\n");
|
||||
|
||||
sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n");
|
||||
sb.append(" adminName: ").append(toIndentedString(adminName)).append("\n");
|
||||
sb.append(" companyAddress: ").append(toIndentedString(companyAddress)).append("\n");
|
||||
sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n");
|
||||
sb.append(" taxNumber: ").append(toIndentedString(taxNumber)).append("\n");
|
||||
sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.UserStorage;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* CompanyStorageStat
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CompanyStorageStat {
|
||||
@JsonProperty("booked")
|
||||
private Long booked = null;
|
||||
|
||||
@JsonProperty("own")
|
||||
private Long own = null;
|
||||
|
||||
@JsonProperty("invited")
|
||||
private Long invited = null;
|
||||
|
||||
@JsonProperty("users")
|
||||
private List<UserStorage> users = null;
|
||||
|
||||
@JsonProperty("hardLimited")
|
||||
private Boolean hardLimited = null;
|
||||
|
||||
public CompanyStorageStat booked(Long booked) {
|
||||
this.booked = booked;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get booked
|
||||
* @return booked
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Long getBooked() {
|
||||
return booked;
|
||||
}
|
||||
|
||||
public void setBooked(Long booked) {
|
||||
this.booked = booked;
|
||||
}
|
||||
|
||||
public CompanyStorageStat own(Long own) {
|
||||
this.own = own;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get own
|
||||
* @return own
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Long getOwn() {
|
||||
return own;
|
||||
}
|
||||
|
||||
public void setOwn(Long own) {
|
||||
this.own = own;
|
||||
}
|
||||
|
||||
public CompanyStorageStat invited(Long invited) {
|
||||
this.invited = invited;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get invited
|
||||
* @return invited
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Long getInvited() {
|
||||
return invited;
|
||||
}
|
||||
|
||||
public void setInvited(Long invited) {
|
||||
this.invited = invited;
|
||||
}
|
||||
|
||||
public CompanyStorageStat users(List<UserStorage> users) {
|
||||
this.users = users;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CompanyStorageStat addUsersItem(UserStorage usersItem) {
|
||||
if (this.users == null) {
|
||||
this.users = new ArrayList<>();
|
||||
}
|
||||
this.users.add(usersItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get users
|
||||
* @return users
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<UserStorage> getUsers() {
|
||||
return users;
|
||||
}
|
||||
|
||||
public void setUsers(List<UserStorage> users) {
|
||||
this.users = users;
|
||||
}
|
||||
|
||||
public CompanyStorageStat hardLimited(Boolean hardLimited) {
|
||||
this.hardLimited = hardLimited;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hardLimited
|
||||
* @return hardLimited
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isHardLimited() {
|
||||
return hardLimited;
|
||||
}
|
||||
|
||||
public void setHardLimited(Boolean hardLimited) {
|
||||
this.hardLimited = hardLimited;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CompanyStorageStat companyStorageStat = (CompanyStorageStat) o;
|
||||
return Objects.equals(this.booked, companyStorageStat.booked) &&
|
||||
Objects.equals(this.own, companyStorageStat.own) &&
|
||||
Objects.equals(this.invited, companyStorageStat.invited) &&
|
||||
Objects.equals(this.users, companyStorageStat.users) &&
|
||||
Objects.equals(this.hardLimited, companyStorageStat.hardLimited);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(booked, own, invited, users, hardLimited);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CompanyStorageStat {\n");
|
||||
|
||||
sb.append(" booked: ").append(toIndentedString(booked)).append("\n");
|
||||
sb.append(" own: ").append(toIndentedString(own)).append("\n");
|
||||
sb.append(" invited: ").append(toIndentedString(invited)).append("\n");
|
||||
sb.append(" users: ").append(toIndentedString(users)).append("\n");
|
||||
sb.append(" hardLimited: ").append(toIndentedString(hardLimited)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ContentDeletion
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ContentDeletion {
|
||||
@JsonProperty("maxContentLifetimeInDays")
|
||||
private Integer maxContentLifetimeInDays = null;
|
||||
|
||||
public ContentDeletion maxContentLifetimeInDays(Integer maxContentLifetimeInDays) {
|
||||
this.maxContentLifetimeInDays = maxContentLifetimeInDays;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* specify how many days after created, the content will be auto-deleted if not being deleted manually
|
||||
* @return maxContentLifetimeInDays
|
||||
**/
|
||||
@Schema(description = "specify how many days after created, the content will be auto-deleted if not being deleted manually")
|
||||
public Integer getMaxContentLifetimeInDays() {
|
||||
return maxContentLifetimeInDays;
|
||||
}
|
||||
|
||||
public void setMaxContentLifetimeInDays(Integer maxContentLifetimeInDays) {
|
||||
this.maxContentLifetimeInDays = maxContentLifetimeInDays;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ContentDeletion contentDeletion = (ContentDeletion) o;
|
||||
return Objects.equals(this.maxContentLifetimeInDays, contentDeletion.maxContentLifetimeInDays);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(maxContentLifetimeInDays);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ContentDeletion {\n");
|
||||
|
||||
sb.append(" maxContentLifetimeInDays: ").append(toIndentedString(maxContentLifetimeInDays)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* deletion policy for box & its contents
|
||||
*/
|
||||
@Schema(description = "deletion policy for box & its contents")
|
||||
|
||||
|
||||
public class ContentPolicy {
|
||||
@JsonProperty("backupEnabled")
|
||||
private Boolean backupEnabled = null;
|
||||
|
||||
@JsonProperty("expirationInMs")
|
||||
private Long expirationInMs = null;
|
||||
|
||||
/**
|
||||
* specify if the box, its content to be automatically deleted or to be archived as DR (license required)
|
||||
*/
|
||||
public enum PolicyEnum {
|
||||
DELETE_BOX_ON_EXPIRATION("DELETE_BOX_ON_EXPIRATION"),
|
||||
DELETE_CONTENT_ON_EXPIRATION("DELETE_CONTENT_ON_EXPIRATION"),
|
||||
NEVER("NEVER"),
|
||||
MANUAL("MANUAL");
|
||||
|
||||
private String value;
|
||||
|
||||
PolicyEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static PolicyEnum fromValue(String input) {
|
||||
for (PolicyEnum b : PolicyEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("policy")
|
||||
private PolicyEnum policy = null;
|
||||
|
||||
public ContentPolicy backupEnabled(Boolean backupEnabled) {
|
||||
this.backupEnabled = backupEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* backup feature (license required)
|
||||
* @return backupEnabled
|
||||
**/
|
||||
@Schema(description = "backup feature (license required)")
|
||||
public Boolean isBackupEnabled() {
|
||||
return backupEnabled;
|
||||
}
|
||||
|
||||
public void setBackupEnabled(Boolean backupEnabled) {
|
||||
this.backupEnabled = backupEnabled;
|
||||
}
|
||||
|
||||
public ContentPolicy expirationInMs(Long expirationInMs) {
|
||||
this.expirationInMs = expirationInMs;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* to be deleted in millisecs after creation, applied only for auto-deletion
|
||||
* @return expirationInMs
|
||||
**/
|
||||
@Schema(description = "to be deleted in millisecs after creation, applied only for auto-deletion")
|
||||
public Long getExpirationInMs() {
|
||||
return expirationInMs;
|
||||
}
|
||||
|
||||
public void setExpirationInMs(Long expirationInMs) {
|
||||
this.expirationInMs = expirationInMs;
|
||||
}
|
||||
|
||||
public ContentPolicy policy(PolicyEnum policy) {
|
||||
this.policy = policy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* specify if the box, its content to be automatically deleted or to be archived as DR (license required)
|
||||
* @return policy
|
||||
**/
|
||||
@Schema(description = "specify if the box, its content to be automatically deleted or to be archived as DR (license required)")
|
||||
public PolicyEnum getPolicy() {
|
||||
return policy;
|
||||
}
|
||||
|
||||
public void setPolicy(PolicyEnum policy) {
|
||||
this.policy = policy;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ContentPolicy contentPolicy = (ContentPolicy) o;
|
||||
return Objects.equals(this.backupEnabled, contentPolicy.backupEnabled) &&
|
||||
Objects.equals(this.expirationInMs, contentPolicy.expirationInMs) &&
|
||||
Objects.equals(this.policy, contentPolicy.policy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(backupEnabled, expirationInMs, policy);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ContentPolicy {\n");
|
||||
|
||||
sb.append(" backupEnabled: ").append(toIndentedString(backupEnabled)).append("\n");
|
||||
sb.append(" expirationInMs: ").append(toIndentedString(expirationInMs)).append("\n");
|
||||
sb.append(" policy: ").append(toIndentedString(policy)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CreateNewPuk
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CreateNewPuk {
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
|
||||
@JsonProperty("captcha")
|
||||
private String captcha = null;
|
||||
|
||||
@JsonProperty("verifyToken")
|
||||
private String verifyToken = null;
|
||||
|
||||
public CreateNewPuk password(String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public CreateNewPuk captcha(String captcha) {
|
||||
this.captcha = captcha;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get captcha
|
||||
* @return captcha
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCaptcha() {
|
||||
return captcha;
|
||||
}
|
||||
|
||||
public void setCaptcha(String captcha) {
|
||||
this.captcha = captcha;
|
||||
}
|
||||
|
||||
public CreateNewPuk verifyToken(String verifyToken) {
|
||||
this.verifyToken = verifyToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get verifyToken
|
||||
* @return verifyToken
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getVerifyToken() {
|
||||
return verifyToken;
|
||||
}
|
||||
|
||||
public void setVerifyToken(String verifyToken) {
|
||||
this.verifyToken = verifyToken;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CreateNewPuk createNewPuk = (CreateNewPuk) o;
|
||||
return Objects.equals(this.password, createNewPuk.password) &&
|
||||
Objects.equals(this.captcha, createNewPuk.captcha) &&
|
||||
Objects.equals(this.verifyToken, createNewPuk.verifyToken);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(password, captcha, verifyToken);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CreateNewPuk {\n");
|
||||
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" captcha: ").append(toIndentedString(captcha)).append("\n");
|
||||
sb.append(" verifyToken: ").append(toIndentedString(verifyToken)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* cta for dr
|
||||
*/
|
||||
@Schema(description = "cta for dr")
|
||||
|
||||
|
||||
public class Cta {
|
||||
@JsonProperty("text")
|
||||
private String text = null;
|
||||
|
||||
@JsonProperty("version")
|
||||
private Integer version = null;
|
||||
|
||||
public Cta text(String text) {
|
||||
this.text = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get text
|
||||
* @return text
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public Cta version(Integer version) {
|
||||
this.version = version;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get version
|
||||
* @return version
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Cta cta = (Cta) o;
|
||||
return Objects.equals(this.text, cta.text) &&
|
||||
Objects.equals(this.version, cta.version);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(text, version);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Cta {\n");
|
||||
|
||||
sb.append(" text: ").append(toIndentedString(text)).append("\n");
|
||||
sb.append(" version: ").append(toIndentedString(version)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.CtaRequiredExceptionPayload;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CtaRequiredException
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CtaRequiredException implements InlineResponse4001 {
|
||||
@JsonProperty("error")
|
||||
private String error = null;
|
||||
|
||||
@JsonProperty("payload")
|
||||
private CtaRequiredExceptionPayload payload = null;
|
||||
|
||||
public CtaRequiredException error(String error) {
|
||||
this.error = error;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Always \"CtaRequiredException\"
|
||||
* @return error
|
||||
**/
|
||||
@Schema(required = true, description = "Always \"CtaRequiredException\"")
|
||||
public String getError() {
|
||||
return error;
|
||||
}
|
||||
|
||||
public void setError(String error) {
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public CtaRequiredException payload(CtaRequiredExceptionPayload payload) {
|
||||
this.payload = payload;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get payload
|
||||
* @return payload
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public CtaRequiredExceptionPayload getPayload() {
|
||||
return payload;
|
||||
}
|
||||
|
||||
public void setPayload(CtaRequiredExceptionPayload payload) {
|
||||
this.payload = payload;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CtaRequiredException ctaRequiredException = (CtaRequiredException) o;
|
||||
return Objects.equals(this.error, ctaRequiredException.error) &&
|
||||
Objects.equals(this.payload, ctaRequiredException.payload);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(error, payload);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CtaRequiredException {\n");
|
||||
|
||||
sb.append(" error: ").append(toIndentedString(error)).append("\n");
|
||||
sb.append(" payload: ").append(toIndentedString(payload)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.CTAID;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* CtaRequiredExceptionPayload
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class CtaRequiredExceptionPayload {
|
||||
@JsonProperty("ctaText")
|
||||
private String ctaText = null;
|
||||
|
||||
@JsonProperty("boxId")
|
||||
private String boxId = null;
|
||||
|
||||
@JsonProperty("id")
|
||||
private CTAID id = null;
|
||||
|
||||
public CtaRequiredExceptionPayload ctaText(String ctaText) {
|
||||
this.ctaText = ctaText;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The text of the click through agreement that has to be accepted
|
||||
* @return ctaText
|
||||
**/
|
||||
@Schema(required = true, description = "The text of the click through agreement that has to be accepted")
|
||||
public String getCtaText() {
|
||||
return ctaText;
|
||||
}
|
||||
|
||||
public void setCtaText(String ctaText) {
|
||||
this.ctaText = ctaText;
|
||||
}
|
||||
|
||||
public CtaRequiredExceptionPayload boxId(String boxId) {
|
||||
this.boxId = boxId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* id of the box the cta needs to be accepted for. Needs to be included in response to `/uiapi/BoxAPI/v1/rest/cta/{boxId}`
|
||||
* @return boxId
|
||||
**/
|
||||
@Schema(required = true, description = "id of the box the cta needs to be accepted for. Needs to be included in response to `/uiapi/BoxAPI/v1/rest/cta/{boxId}`")
|
||||
public String getBoxId() {
|
||||
return boxId;
|
||||
}
|
||||
|
||||
public void setBoxId(String boxId) {
|
||||
this.boxId = boxId;
|
||||
}
|
||||
|
||||
public CtaRequiredExceptionPayload id(CTAID id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public CTAID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(CTAID id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
CtaRequiredExceptionPayload ctaRequiredExceptionPayload = (CtaRequiredExceptionPayload) o;
|
||||
return Objects.equals(this.ctaText, ctaRequiredExceptionPayload.ctaText) &&
|
||||
Objects.equals(this.boxId, ctaRequiredExceptionPayload.boxId) &&
|
||||
Objects.equals(this.id, ctaRequiredExceptionPayload.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(ctaText, boxId, id);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CtaRequiredExceptionPayload {\n");
|
||||
|
||||
sb.append(" ctaText: ").append(toIndentedString(ctaText)).append("\n");
|
||||
sb.append(" boxId: ").append(toIndentedString(boxId)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+375
@@ -0,0 +1,375 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Quarantine;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* Only for dataroom
|
||||
*/
|
||||
@Schema(description = "Only for dataroom")
|
||||
|
||||
|
||||
public class DataroomConfiguration {
|
||||
@JsonProperty("alarmEnabled")
|
||||
private Boolean alarmEnabled = null;
|
||||
|
||||
@JsonProperty("archiveEnabled")
|
||||
private Boolean archiveEnabled = null;
|
||||
|
||||
@JsonProperty("ctaText")
|
||||
private String ctaText = null;
|
||||
|
||||
@JsonProperty("downloadNr")
|
||||
private Integer downloadNr = null;
|
||||
|
||||
@JsonProperty("timeSpan")
|
||||
private Integer timeSpan = null;
|
||||
|
||||
@JsonProperty("ermEnabled")
|
||||
private Boolean ermEnabled = null;
|
||||
|
||||
@JsonProperty("excludeReadAccess")
|
||||
private Boolean excludeReadAccess = null;
|
||||
|
||||
@JsonProperty("otaEnabled")
|
||||
private Boolean otaEnabled = null;
|
||||
|
||||
@JsonProperty("ipJournalingEnabled")
|
||||
private Boolean ipJournalingEnabled = null;
|
||||
|
||||
@JsonProperty("quarantine")
|
||||
private Quarantine quarantine = null;
|
||||
|
||||
@JsonProperty("useCta")
|
||||
private Boolean useCta = null;
|
||||
|
||||
/**
|
||||
* PDF type enforced for all PDFs in this dataroom. At the moment, this field is read-only and can only be set at box creation. An empty value is interpreted as 'NOT_ENFORCED'.
|
||||
*/
|
||||
public enum EnforcedPdfTypeEnum {
|
||||
READONLY("READONLY"),
|
||||
WATERMARK("WATERMARK"),
|
||||
NOT_ENFORCED("NOT_ENFORCED");
|
||||
|
||||
private String value;
|
||||
|
||||
EnforcedPdfTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static EnforcedPdfTypeEnum fromValue(String input) {
|
||||
for (EnforcedPdfTypeEnum b : EnforcedPdfTypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("enforcedPdfType")
|
||||
private EnforcedPdfTypeEnum enforcedPdfType = null;
|
||||
|
||||
public DataroomConfiguration alarmEnabled(Boolean alarmEnabled) {
|
||||
this.alarmEnabled = alarmEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get alarmEnabled
|
||||
* @return alarmEnabled
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isAlarmEnabled() {
|
||||
return alarmEnabled;
|
||||
}
|
||||
|
||||
public void setAlarmEnabled(Boolean alarmEnabled) {
|
||||
this.alarmEnabled = alarmEnabled;
|
||||
}
|
||||
|
||||
public DataroomConfiguration archiveEnabled(Boolean archiveEnabled) {
|
||||
this.archiveEnabled = archiveEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If enabled, then items added into this box cannot be modified or deleted, i.e. the data room is for archive-purpose only.
|
||||
* @return archiveEnabled
|
||||
**/
|
||||
@Schema(description = "If enabled, then items added into this box cannot be modified or deleted, i.e. the data room is for archive-purpose only.")
|
||||
public Boolean isArchiveEnabled() {
|
||||
return archiveEnabled;
|
||||
}
|
||||
|
||||
public void setArchiveEnabled(Boolean archiveEnabled) {
|
||||
this.archiveEnabled = archiveEnabled;
|
||||
}
|
||||
|
||||
public DataroomConfiguration ctaText(String ctaText) {
|
||||
this.ctaText = ctaText;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ctaText
|
||||
* @return ctaText
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getCtaText() {
|
||||
return ctaText;
|
||||
}
|
||||
|
||||
public void setCtaText(String ctaText) {
|
||||
this.ctaText = ctaText;
|
||||
}
|
||||
|
||||
public DataroomConfiguration downloadNr(Integer downloadNr) {
|
||||
this.downloadNr = downloadNr;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Download count parameter for mass download alerts. If more than the specified number of downloads is performed in a dataroom in the specified timeSpan, then an alarm is sent.
|
||||
* @return downloadNr
|
||||
**/
|
||||
@Schema(description = "Download count parameter for mass download alerts. If more than the specified number of downloads is performed in a dataroom in the specified timeSpan, then an alarm is sent.")
|
||||
public Integer getDownloadNr() {
|
||||
return downloadNr;
|
||||
}
|
||||
|
||||
public void setDownloadNr(Integer downloadNr) {
|
||||
this.downloadNr = downloadNr;
|
||||
}
|
||||
|
||||
public DataroomConfiguration timeSpan(Integer timeSpan) {
|
||||
this.timeSpan = timeSpan;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time span parameter for mass download alerts. If more than the specified number of downloads is performed in a dataroom in the specified timeSpan, then an alarm is sent.
|
||||
* @return timeSpan
|
||||
**/
|
||||
@Schema(description = "Time span parameter for mass download alerts. If more than the specified number of downloads is performed in a dataroom in the specified timeSpan, then an alarm is sent.")
|
||||
public Integer getTimeSpan() {
|
||||
return timeSpan;
|
||||
}
|
||||
|
||||
public void setTimeSpan(Integer timeSpan) {
|
||||
this.timeSpan = timeSpan;
|
||||
}
|
||||
|
||||
public DataroomConfiguration ermEnabled(Boolean ermEnabled) {
|
||||
this.ermEnabled = ermEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extended right management
|
||||
* @return ermEnabled
|
||||
**/
|
||||
@Schema(description = "Extended right management")
|
||||
public Boolean isErmEnabled() {
|
||||
return ermEnabled;
|
||||
}
|
||||
|
||||
public void setErmEnabled(Boolean ermEnabled) {
|
||||
this.ermEnabled = ermEnabled;
|
||||
}
|
||||
|
||||
public DataroomConfiguration excludeReadAccess(Boolean excludeReadAccess) {
|
||||
this.excludeReadAccess = excludeReadAccess;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if set to true, no journal will be written when user reads/downloads content
|
||||
* @return excludeReadAccess
|
||||
**/
|
||||
@Schema(description = "if set to true, no journal will be written when user reads/downloads content")
|
||||
public Boolean isExcludeReadAccess() {
|
||||
return excludeReadAccess;
|
||||
}
|
||||
|
||||
public void setExcludeReadAccess(Boolean excludeReadAccess) {
|
||||
this.excludeReadAccess = excludeReadAccess;
|
||||
}
|
||||
|
||||
public DataroomConfiguration otaEnabled(Boolean otaEnabled) {
|
||||
this.otaEnabled = otaEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* one time access for dataroom
|
||||
* @return otaEnabled
|
||||
**/
|
||||
@Schema(description = "one time access for dataroom")
|
||||
public Boolean isOtaEnabled() {
|
||||
return otaEnabled;
|
||||
}
|
||||
|
||||
public void setOtaEnabled(Boolean otaEnabled) {
|
||||
this.otaEnabled = otaEnabled;
|
||||
}
|
||||
|
||||
public DataroomConfiguration ipJournalingEnabled(Boolean ipJournalingEnabled) {
|
||||
this.ipJournalingEnabled = ipJournalingEnabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* While enabled, IP addresses are added to all recorded journal entries for this data room. Optional, defaults to previous value / false.
|
||||
* @return ipJournalingEnabled
|
||||
**/
|
||||
@Schema(description = "While enabled, IP addresses are added to all recorded journal entries for this data room. Optional, defaults to previous value / false.")
|
||||
public Boolean isIpJournalingEnabled() {
|
||||
return ipJournalingEnabled;
|
||||
}
|
||||
|
||||
public void setIpJournalingEnabled(Boolean ipJournalingEnabled) {
|
||||
this.ipJournalingEnabled = ipJournalingEnabled;
|
||||
}
|
||||
|
||||
public DataroomConfiguration quarantine(Quarantine quarantine) {
|
||||
this.quarantine = quarantine;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get quarantine
|
||||
* @return quarantine
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Quarantine getQuarantine() {
|
||||
return quarantine;
|
||||
}
|
||||
|
||||
public void setQuarantine(Quarantine quarantine) {
|
||||
this.quarantine = quarantine;
|
||||
}
|
||||
|
||||
public DataroomConfiguration useCta(Boolean useCta) {
|
||||
this.useCta = useCta;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get useCta
|
||||
* @return useCta
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isUseCta() {
|
||||
return useCta;
|
||||
}
|
||||
|
||||
public void setUseCta(Boolean useCta) {
|
||||
this.useCta = useCta;
|
||||
}
|
||||
|
||||
public DataroomConfiguration enforcedPdfType(EnforcedPdfTypeEnum enforcedPdfType) {
|
||||
this.enforcedPdfType = enforcedPdfType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* PDF type enforced for all PDFs in this dataroom. At the moment, this field is read-only and can only be set at box creation. An empty value is interpreted as 'NOT_ENFORCED'.
|
||||
* @return enforcedPdfType
|
||||
**/
|
||||
@Schema(description = "PDF type enforced for all PDFs in this dataroom. At the moment, this field is read-only and can only be set at box creation. An empty value is interpreted as 'NOT_ENFORCED'. ")
|
||||
public EnforcedPdfTypeEnum getEnforcedPdfType() {
|
||||
return enforcedPdfType;
|
||||
}
|
||||
|
||||
public void setEnforcedPdfType(EnforcedPdfTypeEnum enforcedPdfType) {
|
||||
this.enforcedPdfType = enforcedPdfType;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
DataroomConfiguration dataroomConfiguration = (DataroomConfiguration) o;
|
||||
return Objects.equals(this.alarmEnabled, dataroomConfiguration.alarmEnabled) &&
|
||||
Objects.equals(this.archiveEnabled, dataroomConfiguration.archiveEnabled) &&
|
||||
Objects.equals(this.ctaText, dataroomConfiguration.ctaText) &&
|
||||
Objects.equals(this.downloadNr, dataroomConfiguration.downloadNr) &&
|
||||
Objects.equals(this.timeSpan, dataroomConfiguration.timeSpan) &&
|
||||
Objects.equals(this.ermEnabled, dataroomConfiguration.ermEnabled) &&
|
||||
Objects.equals(this.excludeReadAccess, dataroomConfiguration.excludeReadAccess) &&
|
||||
Objects.equals(this.otaEnabled, dataroomConfiguration.otaEnabled) &&
|
||||
Objects.equals(this.ipJournalingEnabled, dataroomConfiguration.ipJournalingEnabled) &&
|
||||
Objects.equals(this.quarantine, dataroomConfiguration.quarantine) &&
|
||||
Objects.equals(this.useCta, dataroomConfiguration.useCta) &&
|
||||
Objects.equals(this.enforcedPdfType, dataroomConfiguration.enforcedPdfType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(alarmEnabled, archiveEnabled, ctaText, downloadNr, timeSpan, ermEnabled, excludeReadAccess, otaEnabled, ipJournalingEnabled, quarantine, useCta, enforcedPdfType);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DataroomConfiguration {\n");
|
||||
|
||||
sb.append(" alarmEnabled: ").append(toIndentedString(alarmEnabled)).append("\n");
|
||||
sb.append(" archiveEnabled: ").append(toIndentedString(archiveEnabled)).append("\n");
|
||||
sb.append(" ctaText: ").append(toIndentedString(ctaText)).append("\n");
|
||||
sb.append(" downloadNr: ").append(toIndentedString(downloadNr)).append("\n");
|
||||
sb.append(" timeSpan: ").append(toIndentedString(timeSpan)).append("\n");
|
||||
sb.append(" ermEnabled: ").append(toIndentedString(ermEnabled)).append("\n");
|
||||
sb.append(" excludeReadAccess: ").append(toIndentedString(excludeReadAccess)).append("\n");
|
||||
sb.append(" otaEnabled: ").append(toIndentedString(otaEnabled)).append("\n");
|
||||
sb.append(" ipJournalingEnabled: ").append(toIndentedString(ipJournalingEnabled)).append("\n");
|
||||
sb.append(" quarantine: ").append(toIndentedString(quarantine)).append("\n");
|
||||
sb.append(" useCta: ").append(toIndentedString(useCta)).append("\n");
|
||||
sb.append(" enforcedPdfType: ").append(toIndentedString(enforcedPdfType)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+205
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import org.joda.time.DateTime;
|
||||
/**
|
||||
* DirectDebit
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class DirectDebit {
|
||||
@JsonProperty("directDebitAuth")
|
||||
private Boolean directDebitAuth = null;
|
||||
|
||||
@JsonProperty("iban")
|
||||
private String iban = null;
|
||||
|
||||
@JsonProperty("bic")
|
||||
private String bic = null;
|
||||
|
||||
@JsonProperty("bankName")
|
||||
private String bankName = null;
|
||||
|
||||
@JsonProperty("owner")
|
||||
private String owner = null;
|
||||
|
||||
@JsonProperty("startFrom")
|
||||
private DateTime startFrom = null;
|
||||
|
||||
public DirectDebit directDebitAuth(Boolean directDebitAuth) {
|
||||
this.directDebitAuth = directDebitAuth;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorize direct debit
|
||||
* @return directDebitAuth
|
||||
**/
|
||||
@Schema(description = "Authorize direct debit")
|
||||
public Boolean isDirectDebitAuth() {
|
||||
return directDebitAuth;
|
||||
}
|
||||
|
||||
public void setDirectDebitAuth(Boolean directDebitAuth) {
|
||||
this.directDebitAuth = directDebitAuth;
|
||||
}
|
||||
|
||||
public DirectDebit iban(String iban) {
|
||||
this.iban = iban;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* IBAN
|
||||
* @return iban
|
||||
**/
|
||||
@Schema(description = "IBAN")
|
||||
public String getIban() {
|
||||
return iban;
|
||||
}
|
||||
|
||||
public void setIban(String iban) {
|
||||
this.iban = iban;
|
||||
}
|
||||
|
||||
public DirectDebit bic(String bic) {
|
||||
this.bic = bic;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* BIC
|
||||
* @return bic
|
||||
**/
|
||||
@Schema(description = "BIC")
|
||||
public String getBic() {
|
||||
return bic;
|
||||
}
|
||||
|
||||
public void setBic(String bic) {
|
||||
this.bic = bic;
|
||||
}
|
||||
|
||||
public DirectDebit bankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bank name
|
||||
* @return bankName
|
||||
**/
|
||||
@Schema(description = "Bank name")
|
||||
public String getBankName() {
|
||||
return bankName;
|
||||
}
|
||||
|
||||
public void setBankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
}
|
||||
|
||||
public DirectDebit owner(String owner) {
|
||||
this.owner = owner;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Owner
|
||||
* @return owner
|
||||
**/
|
||||
@Schema(description = "Owner")
|
||||
public String getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public DirectDebit startFrom(DateTime startFrom) {
|
||||
this.startFrom = startFrom;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Start from date
|
||||
* @return startFrom
|
||||
**/
|
||||
@Schema(description = "Start from date")
|
||||
public DateTime getStartFrom() {
|
||||
return startFrom;
|
||||
}
|
||||
|
||||
public void setStartFrom(DateTime startFrom) {
|
||||
this.startFrom = startFrom;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
DirectDebit directDebit = (DirectDebit) o;
|
||||
return Objects.equals(this.directDebitAuth, directDebit.directDebitAuth) &&
|
||||
Objects.equals(this.iban, directDebit.iban) &&
|
||||
Objects.equals(this.bic, directDebit.bic) &&
|
||||
Objects.equals(this.bankName, directDebit.bankName) &&
|
||||
Objects.equals(this.owner, directDebit.owner) &&
|
||||
Objects.equals(this.startFrom, directDebit.startFrom);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(directDebitAuth, iban, bic, bankName, owner, startFrom);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DirectDebit {\n");
|
||||
|
||||
sb.append(" directDebitAuth: ").append(toIndentedString(directDebitAuth)).append("\n");
|
||||
sb.append(" iban: ").append(toIndentedString(iban)).append("\n");
|
||||
sb.append(" bic: ").append(toIndentedString(bic)).append("\n");
|
||||
sb.append(" bankName: ").append(toIndentedString(bankName)).append("\n");
|
||||
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
|
||||
sb.append(" startFrom: ").append(toIndentedString(startFrom)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+212
@@ -0,0 +1,212 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* DocFolderConfig
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class DocFolderConfig {
|
||||
@JsonProperty("folderId")
|
||||
private String folderId = null;
|
||||
|
||||
@JsonProperty("targetFolderId")
|
||||
private String targetFolderId = null;
|
||||
|
||||
@JsonProperty("titleTemplate")
|
||||
private String titleTemplate = null;
|
||||
|
||||
@JsonProperty("tocTemplate")
|
||||
private String tocTemplate = null;
|
||||
|
||||
/**
|
||||
* Gets or Sets structure
|
||||
*/
|
||||
public enum StructureEnum {
|
||||
SINGLE_LEVEL_CHAPTER_STRUCTURE("SINGLE_LEVEL_CHAPTER_STRUCTURE"),
|
||||
DIRECT_CHILDREN_STRUCTURE("DIRECT_CHILDREN_STRUCTURE");
|
||||
|
||||
private String value;
|
||||
|
||||
StructureEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static StructureEnum fromValue(String input) {
|
||||
for (StructureEnum b : StructureEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("structure")
|
||||
private StructureEnum structure = null;
|
||||
|
||||
public DocFolderConfig folderId(String folderId) {
|
||||
this.folderId = folderId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get folderId
|
||||
* @return folderId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getFolderId() {
|
||||
return folderId;
|
||||
}
|
||||
|
||||
public void setFolderId(String folderId) {
|
||||
this.folderId = folderId;
|
||||
}
|
||||
|
||||
public DocFolderConfig targetFolderId(String targetFolderId) {
|
||||
this.targetFolderId = targetFolderId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get targetFolderId
|
||||
* @return targetFolderId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTargetFolderId() {
|
||||
return targetFolderId;
|
||||
}
|
||||
|
||||
public void setTargetFolderId(String targetFolderId) {
|
||||
this.targetFolderId = targetFolderId;
|
||||
}
|
||||
|
||||
public DocFolderConfig titleTemplate(String titleTemplate) {
|
||||
this.titleTemplate = titleTemplate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get titleTemplate
|
||||
* @return titleTemplate
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTitleTemplate() {
|
||||
return titleTemplate;
|
||||
}
|
||||
|
||||
public void setTitleTemplate(String titleTemplate) {
|
||||
this.titleTemplate = titleTemplate;
|
||||
}
|
||||
|
||||
public DocFolderConfig tocTemplate(String tocTemplate) {
|
||||
this.tocTemplate = tocTemplate;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tocTemplate
|
||||
* @return tocTemplate
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getTocTemplate() {
|
||||
return tocTemplate;
|
||||
}
|
||||
|
||||
public void setTocTemplate(String tocTemplate) {
|
||||
this.tocTemplate = tocTemplate;
|
||||
}
|
||||
|
||||
public DocFolderConfig structure(StructureEnum structure) {
|
||||
this.structure = structure;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get structure
|
||||
* @return structure
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public StructureEnum getStructure() {
|
||||
return structure;
|
||||
}
|
||||
|
||||
public void setStructure(StructureEnum structure) {
|
||||
this.structure = structure;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
DocFolderConfig docFolderConfig = (DocFolderConfig) o;
|
||||
return Objects.equals(this.folderId, docFolderConfig.folderId) &&
|
||||
Objects.equals(this.targetFolderId, docFolderConfig.targetFolderId) &&
|
||||
Objects.equals(this.titleTemplate, docFolderConfig.titleTemplate) &&
|
||||
Objects.equals(this.tocTemplate, docFolderConfig.tocTemplate) &&
|
||||
Objects.equals(this.structure, docFolderConfig.structure);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(folderId, targetFolderId, titleTemplate, tocTemplate, structure);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DocFolderConfig {\n");
|
||||
|
||||
sb.append(" folderId: ").append(toIndentedString(folderId)).append("\n");
|
||||
sb.append(" targetFolderId: ").append(toIndentedString(targetFolderId)).append("\n");
|
||||
sb.append(" titleTemplate: ").append(toIndentedString(titleTemplate)).append("\n");
|
||||
sb.append(" tocTemplate: ").append(toIndentedString(tocTemplate)).append("\n");
|
||||
sb.append(" structure: ").append(toIndentedString(structure)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* Download
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class Download {
|
||||
@JsonProperty("itemId")
|
||||
private String itemId = null;
|
||||
|
||||
@JsonProperty("itemName")
|
||||
private String itemName = null;
|
||||
|
||||
public Download itemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get itemId
|
||||
* @return itemId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getItemId() {
|
||||
return itemId;
|
||||
}
|
||||
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public Download itemName(String itemName) {
|
||||
this.itemName = itemName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get itemName
|
||||
* @return itemName
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
|
||||
public void setItemName(String itemName) {
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Download download = (Download) o;
|
||||
return Objects.equals(this.itemId, download.itemId) &&
|
||||
Objects.equals(this.itemName, download.itemName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(itemId, itemName);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Download {\n");
|
||||
|
||||
sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n");
|
||||
sb.append(" itemName: ").append(toIndentedString(itemName)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.Download;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* Downloads
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class Downloads extends ArrayList<Download> {
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
return super.equals(o);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Downloads {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroup;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMUser;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* ERMBoxGroups
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMBoxGroups {
|
||||
@JsonProperty("me")
|
||||
private ERMUser me = null;
|
||||
|
||||
@JsonProperty("owner")
|
||||
private ERMUser owner = null;
|
||||
|
||||
@JsonProperty("groups")
|
||||
private List<ERMGroup> groups = null;
|
||||
|
||||
public ERMBoxGroups me(ERMUser me) {
|
||||
this.me = me;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get me
|
||||
* @return me
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMUser getMe() {
|
||||
return me;
|
||||
}
|
||||
|
||||
public void setMe(ERMUser me) {
|
||||
this.me = me;
|
||||
}
|
||||
|
||||
public ERMBoxGroups owner(ERMUser owner) {
|
||||
this.owner = owner;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get owner
|
||||
* @return owner
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMUser getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
public void setOwner(ERMUser owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public ERMBoxGroups groups(List<ERMGroup> groups) {
|
||||
this.groups = groups;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ERMBoxGroups addGroupsItem(ERMGroup groupsItem) {
|
||||
if (this.groups == null) {
|
||||
this.groups = new ArrayList<>();
|
||||
}
|
||||
this.groups.add(groupsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* groups of this box, should be at least 3 (ALL,MANAGER and OTA)
|
||||
* @return groups
|
||||
**/
|
||||
@Schema(description = "groups of this box, should be at least 3 (ALL,MANAGER and OTA)")
|
||||
public List<ERMGroup> getGroups() {
|
||||
return groups;
|
||||
}
|
||||
|
||||
public void setGroups(List<ERMGroup> groups) {
|
||||
this.groups = groups;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMBoxGroups erMBoxGroups = (ERMBoxGroups) o;
|
||||
return Objects.equals(this.me, erMBoxGroups.me) &&
|
||||
Objects.equals(this.owner, erMBoxGroups.owner) &&
|
||||
Objects.equals(this.groups, erMBoxGroups.groups);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(me, owner, groups);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMBoxGroups {\n");
|
||||
|
||||
sb.append(" me: ").append(toIndentedString(me)).append("\n");
|
||||
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
|
||||
sb.append(" groups: ").append(toIndentedString(groups)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,264 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroupId;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroupPermission;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMUsers;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ERMGroup
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMGroup {
|
||||
@JsonProperty("id")
|
||||
private ERMGroupId id = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description = null;
|
||||
|
||||
/**
|
||||
* type group, edit group directly can only be done with USE_CREATED
|
||||
*/
|
||||
public enum TypeEnum {
|
||||
ALL("ALL"),
|
||||
MANAGERS("MANAGERS"),
|
||||
USER_CREATED("USER_CREATED"),
|
||||
OTA("OTA"),
|
||||
ACCOUNT("ACCOUNT");
|
||||
|
||||
private String value;
|
||||
|
||||
TypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static TypeEnum fromValue(String input) {
|
||||
for (TypeEnum b : TypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("type")
|
||||
private TypeEnum type = null;
|
||||
|
||||
@JsonProperty("disableInheritance")
|
||||
private Boolean disableInheritance = null;
|
||||
|
||||
@JsonProperty("boxPermission")
|
||||
private ERMGroupPermission boxPermission = null;
|
||||
|
||||
@JsonProperty("users")
|
||||
private ERMUsers users = null;
|
||||
|
||||
public ERMGroup id(ERMGroupId id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public ERMGroupId getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(ERMGroupId id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ERMGroup name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* if it's an user created group, name is required, for groups automatically created, UI should use the group type to give a localized name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "if it's an user created group, name is required, for groups automatically created, UI should use the group type to give a localized name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ERMGroup description(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* description
|
||||
* @return description
|
||||
**/
|
||||
@Schema(description = "description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public ERMGroup type(TypeEnum type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* type group, edit group directly can only be done with USE_CREATED
|
||||
* @return type
|
||||
**/
|
||||
@Schema(required = true, description = "type group, edit group directly can only be done with USE_CREATED")
|
||||
public TypeEnum getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(TypeEnum type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public ERMGroup disableInheritance(Boolean disableInheritance) {
|
||||
this.disableInheritance = disableInheritance;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* immutable after created
|
||||
* @return disableInheritance
|
||||
**/
|
||||
@Schema(description = "immutable after created")
|
||||
public Boolean isDisableInheritance() {
|
||||
return disableInheritance;
|
||||
}
|
||||
|
||||
public void setDisableInheritance(Boolean disableInheritance) {
|
||||
this.disableInheritance = disableInheritance;
|
||||
}
|
||||
|
||||
public ERMGroup boxPermission(ERMGroupPermission boxPermission) {
|
||||
this.boxPermission = boxPermission;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get boxPermission
|
||||
* @return boxPermission
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMGroupPermission getBoxPermission() {
|
||||
return boxPermission;
|
||||
}
|
||||
|
||||
public void setBoxPermission(ERMGroupPermission boxPermission) {
|
||||
this.boxPermission = boxPermission;
|
||||
}
|
||||
|
||||
public ERMGroup users(ERMUsers users) {
|
||||
this.users = users;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get users
|
||||
* @return users
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMUsers getUsers() {
|
||||
return users;
|
||||
}
|
||||
|
||||
public void setUsers(ERMUsers users) {
|
||||
this.users = users;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMGroup erMGroup = (ERMGroup) o;
|
||||
return Objects.equals(this.id, erMGroup.id) &&
|
||||
Objects.equals(this.name, erMGroup.name) &&
|
||||
Objects.equals(this.description, erMGroup.description) &&
|
||||
Objects.equals(this.type, erMGroup.type) &&
|
||||
Objects.equals(this.disableInheritance, erMGroup.disableInheritance) &&
|
||||
Objects.equals(this.boxPermission, erMGroup.boxPermission) &&
|
||||
Objects.equals(this.users, erMGroup.users);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, description, type, disableInheritance, boxPermission, users);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMGroup {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" description: ").append(toIndentedString(description)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" disableInheritance: ").append(toIndentedString(disableInheritance)).append("\n");
|
||||
sb.append(" boxPermission: ").append(toIndentedString(boxPermission)).append("\n");
|
||||
sb.append(" users: ").append(toIndentedString(users)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ERMGroupAssignment
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMGroupAssignment {
|
||||
@JsonProperty("groupId")
|
||||
private String groupId = null;
|
||||
|
||||
@JsonProperty("userId")
|
||||
private String userId = null;
|
||||
|
||||
public ERMGroupAssignment groupId(String groupId) {
|
||||
this.groupId = groupId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get groupId
|
||||
* @return groupId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(String groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public ERMGroupAssignment userId(String userId) {
|
||||
this.userId = userId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get userId
|
||||
* @return userId
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMGroupAssignment erMGroupAssignment = (ERMGroupAssignment) o;
|
||||
return Objects.equals(this.groupId, erMGroupAssignment.groupId) &&
|
||||
Objects.equals(this.userId, erMGroupAssignment.userId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(groupId, userId);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMGroupAssignment {\n");
|
||||
|
||||
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
|
||||
sb.append(" userId: ").append(toIndentedString(userId)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ERMGroupId
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMGroupId {
|
||||
/**
|
||||
* Gets or Sets type
|
||||
*/
|
||||
public enum TypeEnum {
|
||||
GROUP("GROUP"),
|
||||
TAG("TAG");
|
||||
|
||||
private String value;
|
||||
|
||||
TypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static TypeEnum fromValue(String input) {
|
||||
for (TypeEnum b : TypeEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("type")
|
||||
private TypeEnum type = null;
|
||||
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
public ERMGroupId type(TypeEnum type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public TypeEnum getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(TypeEnum type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public ERMGroupId id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMGroupId erMGroupId = (ERMGroupId) o;
|
||||
return Objects.equals(this.type, erMGroupId.type) &&
|
||||
Objects.equals(this.id, erMGroupId.id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(type, id);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMGroupId {\n");
|
||||
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* global permission of this group in a box which is not related to box-items like user/groups
|
||||
*/
|
||||
@Schema(description = "global permission of this group in a box which is not related to box-items like user/groups")
|
||||
|
||||
|
||||
public class ERMGroupPermission {
|
||||
@JsonProperty("canViewMembers")
|
||||
private Boolean canViewMembers = null;
|
||||
|
||||
@JsonProperty("canManageGroups")
|
||||
private Boolean canManageGroups = null;
|
||||
|
||||
@JsonProperty("canManageGroupPermission")
|
||||
private Boolean canManageGroupPermission = null;
|
||||
|
||||
public ERMGroupPermission canViewMembers(Boolean canViewMembers) {
|
||||
this.canViewMembers = canViewMembers;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canViewMembers
|
||||
* @return canViewMembers
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanViewMembers() {
|
||||
return canViewMembers;
|
||||
}
|
||||
|
||||
public void setCanViewMembers(Boolean canViewMembers) {
|
||||
this.canViewMembers = canViewMembers;
|
||||
}
|
||||
|
||||
public ERMGroupPermission canManageGroups(Boolean canManageGroups) {
|
||||
this.canManageGroups = canManageGroups;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canManageGroups
|
||||
* @return canManageGroups
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanManageGroups() {
|
||||
return canManageGroups;
|
||||
}
|
||||
|
||||
public void setCanManageGroups(Boolean canManageGroups) {
|
||||
this.canManageGroups = canManageGroups;
|
||||
}
|
||||
|
||||
public ERMGroupPermission canManageGroupPermission(Boolean canManageGroupPermission) {
|
||||
this.canManageGroupPermission = canManageGroupPermission;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canManageGroupPermission
|
||||
* @return canManageGroupPermission
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isCanManageGroupPermission() {
|
||||
return canManageGroupPermission;
|
||||
}
|
||||
|
||||
public void setCanManageGroupPermission(Boolean canManageGroupPermission) {
|
||||
this.canManageGroupPermission = canManageGroupPermission;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMGroupPermission erMGroupPermission = (ERMGroupPermission) o;
|
||||
return Objects.equals(this.canViewMembers, erMGroupPermission.canViewMembers) &&
|
||||
Objects.equals(this.canManageGroups, erMGroupPermission.canManageGroups) &&
|
||||
Objects.equals(this.canManageGroupPermission, erMGroupPermission.canManageGroupPermission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(canViewMembers, canManageGroups, canManageGroupPermission);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMGroupPermission {\n");
|
||||
|
||||
sb.append(" canViewMembers: ").append(toIndentedString(canViewMembers)).append("\n");
|
||||
sb.append(" canManageGroups: ").append(toIndentedString(canManageGroups)).append("\n");
|
||||
sb.append(" canManageGroupPermission: ").append(toIndentedString(canManageGroupPermission)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ERMGroupRight
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMGroupRight {
|
||||
@JsonProperty("deletable")
|
||||
private Boolean deletable = null;
|
||||
|
||||
@JsonProperty("readable")
|
||||
private Boolean readable = null;
|
||||
|
||||
@JsonProperty("writable")
|
||||
private Boolean writable = null;
|
||||
|
||||
public ERMGroupRight deletable(Boolean deletable) {
|
||||
this.deletable = deletable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deletable
|
||||
* @return deletable
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isDeletable() {
|
||||
return deletable;
|
||||
}
|
||||
|
||||
public void setDeletable(Boolean deletable) {
|
||||
this.deletable = deletable;
|
||||
}
|
||||
|
||||
public ERMGroupRight readable(Boolean readable) {
|
||||
this.readable = readable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get readable
|
||||
* @return readable
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isReadable() {
|
||||
return readable;
|
||||
}
|
||||
|
||||
public void setReadable(Boolean readable) {
|
||||
this.readable = readable;
|
||||
}
|
||||
|
||||
public ERMGroupRight writable(Boolean writable) {
|
||||
this.writable = writable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get writable
|
||||
* @return writable
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isWritable() {
|
||||
return writable;
|
||||
}
|
||||
|
||||
public void setWritable(Boolean writable) {
|
||||
this.writable = writable;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMGroupRight erMGroupRight = (ERMGroupRight) o;
|
||||
return Objects.equals(this.deletable, erMGroupRight.deletable) &&
|
||||
Objects.equals(this.readable, erMGroupRight.readable) &&
|
||||
Objects.equals(this.writable, erMGroupRight.writable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(deletable, readable, writable);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMGroupRight {\n");
|
||||
|
||||
sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n");
|
||||
sb.append(" readable: ").append(toIndentedString(readable)).append("\n");
|
||||
sb.append(" writable: ").append(toIndentedString(writable)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroup;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMUser;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* ERMGroupsUsers
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMGroupsUsers {
|
||||
@JsonProperty("me")
|
||||
private ERMUser me = null;
|
||||
|
||||
@JsonProperty("user")
|
||||
private ERMUser user = null;
|
||||
|
||||
@JsonProperty("groups")
|
||||
private List<ERMGroup> groups = null;
|
||||
|
||||
public ERMGroupsUsers me(ERMUser me) {
|
||||
this.me = me;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get me
|
||||
* @return me
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMUser getMe() {
|
||||
return me;
|
||||
}
|
||||
|
||||
public void setMe(ERMUser me) {
|
||||
this.me = me;
|
||||
}
|
||||
|
||||
public ERMGroupsUsers user(ERMUser user) {
|
||||
this.user = user;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user
|
||||
* @return user
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMUser getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(ERMUser user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public ERMGroupsUsers groups(List<ERMGroup> groups) {
|
||||
this.groups = groups;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ERMGroupsUsers addGroupsItem(ERMGroup groupsItem) {
|
||||
if (this.groups == null) {
|
||||
this.groups = new ArrayList<>();
|
||||
}
|
||||
this.groups.add(groupsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* groups where requested user belongs to, should contain at least the ALL group.
|
||||
* @return groups
|
||||
**/
|
||||
@Schema(description = "groups where requested user belongs to, should contain at least the ALL group.")
|
||||
public List<ERMGroup> getGroups() {
|
||||
return groups;
|
||||
}
|
||||
|
||||
public void setGroups(List<ERMGroup> groups) {
|
||||
this.groups = groups;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMGroupsUsers erMGroupsUsers = (ERMGroupsUsers) o;
|
||||
return Objects.equals(this.me, erMGroupsUsers.me) &&
|
||||
Objects.equals(this.user, erMGroupsUsers.user) &&
|
||||
Objects.equals(this.groups, erMGroupsUsers.groups);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(me, user, groups);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMGroupsUsers {\n");
|
||||
|
||||
sb.append(" me: ").append(toIndentedString(me)).append("\n");
|
||||
sb.append(" user: ").append(toIndentedString(user)).append("\n");
|
||||
sb.append(" groups: ").append(toIndentedString(groups)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroupId;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroupRight;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ERMNodeAssignment
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMNodeAssignment {
|
||||
@JsonProperty("groupId")
|
||||
private ERMGroupId groupId = null;
|
||||
|
||||
@JsonProperty("right")
|
||||
private ERMGroupRight right = null;
|
||||
|
||||
public ERMNodeAssignment groupId(ERMGroupId groupId) {
|
||||
this.groupId = groupId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get groupId
|
||||
* @return groupId
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public ERMGroupId getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(ERMGroupId groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public ERMNodeAssignment right(ERMGroupRight right) {
|
||||
this.right = right;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get right
|
||||
* @return right
|
||||
**/
|
||||
@Schema(required = true, description = "")
|
||||
public ERMGroupRight getRight() {
|
||||
return right;
|
||||
}
|
||||
|
||||
public void setRight(ERMGroupRight right) {
|
||||
this.right = right;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMNodeAssignment erMNodeAssignment = (ERMNodeAssignment) o;
|
||||
return Objects.equals(this.groupId, erMNodeAssignment.groupId) &&
|
||||
Objects.equals(this.right, erMNodeAssignment.right);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(groupId, right);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMNodeAssignment {\n");
|
||||
|
||||
sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n");
|
||||
sb.append(" right: ").append(toIndentedString(right)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroup;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroupRight;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* ERMNodePermission
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMNodePermission {
|
||||
@JsonProperty("group")
|
||||
private ERMGroup group = null;
|
||||
|
||||
@JsonProperty("right")
|
||||
private ERMGroupRight right = null;
|
||||
|
||||
public ERMNodePermission group(ERMGroup group) {
|
||||
this.group = group;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get group
|
||||
* @return group
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMGroup getGroup() {
|
||||
return group;
|
||||
}
|
||||
|
||||
public void setGroup(ERMGroup group) {
|
||||
this.group = group;
|
||||
}
|
||||
|
||||
public ERMNodePermission right(ERMGroupRight right) {
|
||||
this.right = right;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get right
|
||||
* @return right
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMGroupRight getRight() {
|
||||
return right;
|
||||
}
|
||||
|
||||
public void setRight(ERMGroupRight right) {
|
||||
this.right = right;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMNodePermission erMNodePermission = (ERMNodePermission) o;
|
||||
return Objects.equals(this.group, erMNodePermission.group) &&
|
||||
Objects.equals(this.right, erMNodePermission.right);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(group, right);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMNodePermission {\n");
|
||||
|
||||
sb.append(" group: ").append(toIndentedString(group)).append("\n");
|
||||
sb.append(" right: ").append(toIndentedString(right)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* box owner, not supposed to do anything with it.
|
||||
*/
|
||||
@Schema(description = "box owner, not supposed to do anything with it.")
|
||||
|
||||
|
||||
public class ERMUser {
|
||||
@JsonProperty("id")
|
||||
private String id = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email = null;
|
||||
|
||||
/**
|
||||
* license type of this user
|
||||
*/
|
||||
public enum LicenseEnum {
|
||||
FULL("FULL"),
|
||||
GUEST("GUEST");
|
||||
|
||||
private String value;
|
||||
|
||||
LicenseEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
@JsonCreator
|
||||
public static LicenseEnum fromValue(String input) {
|
||||
for (LicenseEnum b : LicenseEnum.values()) {
|
||||
if (b.value.equals(input)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
} @JsonProperty("license")
|
||||
private LicenseEnum license = null;
|
||||
|
||||
public ERMUser id(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public ERMUser name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ERMUser email(String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public ERMUser license(LicenseEnum license) {
|
||||
this.license = license;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* license type of this user
|
||||
* @return license
|
||||
**/
|
||||
@Schema(description = "license type of this user")
|
||||
public LicenseEnum getLicense() {
|
||||
return license;
|
||||
}
|
||||
|
||||
public void setLicense(LicenseEnum license) {
|
||||
this.license = license;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMUser erMUser = (ERMUser) o;
|
||||
return Objects.equals(this.id, erMUser.id) &&
|
||||
Objects.equals(this.name, erMUser.name) &&
|
||||
Objects.equals(this.email, erMUser.email) &&
|
||||
Objects.equals(this.license, erMUser.license);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name, email, license);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMUser {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||
sb.append(" license: ").append(toIndentedString(license)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
/**
|
||||
* information about users in this group, ATM contains only count
|
||||
*/
|
||||
@Schema(description = "information about users in this group, ATM contains only count")
|
||||
|
||||
|
||||
public class ERMUsers {
|
||||
@JsonProperty("count")
|
||||
private Integer count = null;
|
||||
|
||||
public ERMUsers count(Integer count) {
|
||||
this.count = count;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get count
|
||||
* @return count
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Integer getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(Integer count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMUsers erMUsers = (ERMUsers) o;
|
||||
return Objects.equals(this.count, erMUsers.count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(count);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMUsers {\n");
|
||||
|
||||
sb.append(" count: ").append(toIndentedString(count)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.io.swagger.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMGroup;
|
||||
import ch.cyberduck.core.idgard.io.swagger.client.model.ERMUser;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* ERMUsersGroup
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class ERMUsersGroup {
|
||||
@JsonProperty("group")
|
||||
private ERMGroup group = null;
|
||||
|
||||
@JsonProperty("me")
|
||||
private ERMUser me = null;
|
||||
|
||||
@JsonProperty("users")
|
||||
private List<ERMUser> users = null;
|
||||
|
||||
public ERMUsersGroup group(ERMGroup group) {
|
||||
this.group = group;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get group
|
||||
* @return group
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMGroup getGroup() {
|
||||
return group;
|
||||
}
|
||||
|
||||
public void setGroup(ERMGroup group) {
|
||||
this.group = group;
|
||||
}
|
||||
|
||||
public ERMUsersGroup me(ERMUser me) {
|
||||
this.me = me;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get me
|
||||
* @return me
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public ERMUser getMe() {
|
||||
return me;
|
||||
}
|
||||
|
||||
public void setMe(ERMUser me) {
|
||||
this.me = me;
|
||||
}
|
||||
|
||||
public ERMUsersGroup users(List<ERMUser> users) {
|
||||
this.users = users;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ERMUsersGroup addUsersItem(ERMUser usersItem) {
|
||||
if (this.users == null) {
|
||||
this.users = new ArrayList<>();
|
||||
}
|
||||
this.users.add(usersItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* all users of this box
|
||||
* @return users
|
||||
**/
|
||||
@Schema(description = "all users of this box")
|
||||
public List<ERMUser> getUsers() {
|
||||
return users;
|
||||
}
|
||||
|
||||
public void setUsers(List<ERMUser> users) {
|
||||
this.users = users;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ERMUsersGroup erMUsersGroup = (ERMUsersGroup) o;
|
||||
return Objects.equals(this.group, erMUsersGroup.group) &&
|
||||
Objects.equals(this.me, erMUsersGroup.me) &&
|
||||
Objects.equals(this.users, erMUsersGroup.users);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(group, me, users);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ERMUsersGroup {\n");
|
||||
|
||||
sb.append(" group: ").append(toIndentedString(group)).append("\n");
|
||||
sb.append(" me: ").append(toIndentedString(me)).append("\n");
|
||||
sb.append(" users: ").append(toIndentedString(users)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* iDGARD UIAPI
|
||||
* This API is intended for internal usage only. No guarantees regarding completeness of documentation and API stability are given. Swagger UI available at: <a href=\"/assets/idgapi/doc/index.html\"><server>/assets/idgapi/doc/index.html</a> Redoc not available due to API size
|
||||
*
|
||||
* OpenAPI spec version: v1
|
||||
*
|
||||
*
|
||||
* 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.idgard.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.v3.oas.annotations.media.Schema;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
/**
|
||||
* EmailBlockedDomainsDto
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class EmailBlockedDomainsDto {
|
||||
@JsonProperty("enabled")
|
||||
private Boolean enabled = null;
|
||||
|
||||
@JsonProperty("domains")
|
||||
private List<String> domains = null;
|
||||
|
||||
public EmailBlockedDomainsDto enabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get enabled
|
||||
* @return enabled
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public Boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public EmailBlockedDomainsDto domains(List<String> domains) {
|
||||
this.domains = domains;
|
||||
return this;
|
||||
}
|
||||
|
||||
public EmailBlockedDomainsDto addDomainsItem(String domainsItem) {
|
||||
if (this.domains == null) {
|
||||
this.domains = new ArrayList<>();
|
||||
}
|
||||
this.domains.add(domainsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get domains
|
||||
* @return domains
|
||||
**/
|
||||
@Schema(description = "")
|
||||
public List<String> getDomains() {
|
||||
return domains;
|
||||
}
|
||||
|
||||
public void setDomains(List<String> domains) {
|
||||
this.domains = domains;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
EmailBlockedDomainsDto emailBlockedDomainsDto = (EmailBlockedDomainsDto) o;
|
||||
return Objects.equals(this.enabled, emailBlockedDomainsDto.enabled) &&
|
||||
Objects.equals(this.domains, emailBlockedDomainsDto.domains);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(enabled, domains);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class EmailBlockedDomainsDto {\n");
|
||||
|
||||
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
|
||||
sb.append(" domains: ").append(toIndentedString(domains)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user