nextBackoff() {
+ retryNumber += 1;
+ if (retryNumber > maxNumRetries) {
+ return Optional.empty();
+ }
+
+ int upperBound = (int) Math.pow(2, retryNumber);
+ return Optional.of(ONE_SECOND.multipliedBy(random.nextInt(upperBound)));
+ }
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/core/Stream.java b/common/src/main/java/com/skyflow/generated/auth/rest/core/Stream.java
new file mode 100644
index 00000000..4a984faa
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/core/Stream.java
@@ -0,0 +1,97 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.core;
+
+import java.io.Reader;
+import java.util.Iterator;
+import java.util.NoSuchElementException;
+import java.util.Scanner;
+
+/**
+ * The {@code Stream} class implements {@link Iterable} to provide a simple mechanism for reading and parsing
+ * objects of a given type from data streamed via a {@link Reader} using a specified delimiter.
+ *
+ * {@code Stream} assumes that data is being pushed to the provided {@link Reader} asynchronously and utilizes a
+ * {@code Scanner} to block during iteration if the next object is not available.
+ *
+ * @param The type of objects in the stream.
+ */
+public final class Stream implements Iterable {
+ /**
+ * The {@link Class} of the objects in the stream.
+ */
+ private final Class valueType;
+ /**
+ * The {@link Scanner} used for reading from the input stream and blocking when needed during iteration.
+ */
+ private final Scanner scanner;
+
+ /**
+ * Constructs a new {@code Stream} with the specified value type, reader, and delimiter.
+ *
+ * @param valueType The class of the objects in the stream.
+ * @param reader The reader that provides the streamed data.
+ * @param delimiter The delimiter used to separate elements in the stream.
+ */
+ public Stream(Class valueType, Reader reader, String delimiter) {
+ this.scanner = new Scanner(reader).useDelimiter(delimiter);
+ this.valueType = valueType;
+ }
+
+ /**
+ * Returns an iterator over the elements in this stream that blocks during iteration when the next object is
+ * not yet available.
+ *
+ * @return An iterator that can be used to traverse the elements in the stream.
+ */
+ @Override
+ public Iterator iterator() {
+ return new Iterator() {
+ /**
+ * Returns {@code true} if there are more elements in the stream.
+ *
+ * Will block and wait for input if the stream has not ended and the next object is not yet available.
+ *
+ * @return {@code true} if there are more elements, {@code false} otherwise.
+ */
+ @Override
+ public boolean hasNext() {
+ return scanner.hasNext();
+ }
+
+ /**
+ * Returns the next element in the stream.
+ *
+ * Will block and wait for input if the stream has not ended and the next object is not yet available.
+ *
+ * @return The next element in the stream.
+ * @throws NoSuchElementException If there are no more elements in the stream.
+ */
+ @Override
+ public T next() {
+ if (!scanner.hasNext()) {
+ throw new NoSuchElementException();
+ } else {
+ try {
+ T parsedResponse = ObjectMappers.JSON_MAPPER.readValue(
+ scanner.next().trim(), valueType);
+ return parsedResponse;
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+ }
+
+ /**
+ * Removing elements from {@code Stream} is not supported.
+ *
+ * @throws UnsupportedOperationException Always, as removal is not supported.
+ */
+ @Override
+ public void remove() {
+ throw new UnsupportedOperationException();
+ }
+ };
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/core/Suppliers.java b/common/src/main/java/com/skyflow/generated/auth/rest/core/Suppliers.java
new file mode 100644
index 00000000..d3ab5e53
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/core/Suppliers.java
@@ -0,0 +1,23 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.core;
+
+import java.util.Objects;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Supplier;
+
+public final class Suppliers {
+ private Suppliers() {}
+
+ public static Supplier memoize(Supplier delegate) {
+ AtomicReference value = new AtomicReference<>();
+ return () -> {
+ T val = value.get();
+ if (val == null) {
+ val = value.updateAndGet(cur -> cur == null ? Objects.requireNonNull(delegate.get()) : cur);
+ }
+ return val;
+ };
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/errors/BadRequestError.java b/common/src/main/java/com/skyflow/generated/auth/rest/errors/BadRequestError.java
new file mode 100644
index 00000000..ec08ddf2
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/errors/BadRequestError.java
@@ -0,0 +1,33 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.errors;
+
+import com.skyflow.generated.auth.rest.core.ApiClientApiException;
+import java.util.Map;
+import okhttp3.Response;
+
+public final class BadRequestError extends ApiClientApiException {
+ /**
+ * The body of the response that triggered the exception.
+ */
+ private final Map body;
+
+ public BadRequestError(Map body) {
+ super("BadRequestError", 400, body);
+ this.body = body;
+ }
+
+ public BadRequestError(Map body, Response rawResponse) {
+ super("BadRequestError", 400, body, rawResponse);
+ this.body = body;
+ }
+
+ /**
+ * @return the body
+ */
+ @java.lang.Override
+ public Map body() {
+ return this.body;
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/errors/HttpStatus.java b/common/src/main/java/com/skyflow/generated/auth/rest/errors/HttpStatus.java
new file mode 100644
index 00000000..2e1c45d2
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/errors/HttpStatus.java
@@ -0,0 +1,15 @@
+package com.skyflow.generated.auth.rest.errors;
+
+public enum HttpStatus {
+ BAD_REQUEST("Bad Request");
+
+ private final String httpStatus;
+
+ HttpStatus(String httpStatus) {
+ this.httpStatus = httpStatus;
+ }
+
+ public String getHttpStatus() {
+ return httpStatus;
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/errors/NotFoundError.java b/common/src/main/java/com/skyflow/generated/auth/rest/errors/NotFoundError.java
new file mode 100644
index 00000000..b889e1b0
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/errors/NotFoundError.java
@@ -0,0 +1,33 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.errors;
+
+import com.skyflow.generated.auth.rest.core.ApiClientApiException;
+import java.util.Map;
+import okhttp3.Response;
+
+public final class NotFoundError extends ApiClientApiException {
+ /**
+ * The body of the response that triggered the exception.
+ */
+ private final Map body;
+
+ public NotFoundError(Map body) {
+ super("NotFoundError", 404, body);
+ this.body = body;
+ }
+
+ public NotFoundError(Map body, Response rawResponse) {
+ super("NotFoundError", 404, body, rawResponse);
+ this.body = body;
+ }
+
+ /**
+ * @return the body
+ */
+ @java.lang.Override
+ public Map body() {
+ return this.body;
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/errors/UnauthorizedError.java b/common/src/main/java/com/skyflow/generated/auth/rest/errors/UnauthorizedError.java
new file mode 100644
index 00000000..40ea9c25
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/errors/UnauthorizedError.java
@@ -0,0 +1,33 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.errors;
+
+import com.skyflow.generated.auth.rest.core.ApiClientApiException;
+import java.util.Map;
+import okhttp3.Response;
+
+public final class UnauthorizedError extends ApiClientApiException {
+ /**
+ * The body of the response that triggered the exception.
+ */
+ private final Map body;
+
+ public UnauthorizedError(Map body) {
+ super("UnauthorizedError", 401, body);
+ this.body = body;
+ }
+
+ public UnauthorizedError(Map body, Response rawResponse) {
+ super("UnauthorizedError", 401, body, rawResponse);
+ this.body = body;
+ }
+
+ /**
+ * @return the body
+ */
+ @java.lang.Override
+ public Map body() {
+ return this.body;
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/resources/authentication/AsyncAuthenticationClient.java b/common/src/main/java/com/skyflow/generated/auth/rest/resources/authentication/AsyncAuthenticationClient.java
new file mode 100644
index 00000000..e75fad24
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/resources/authentication/AsyncAuthenticationClient.java
@@ -0,0 +1,46 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.resources.authentication;
+
+import com.skyflow.generated.auth.rest.core.ClientOptions;
+import com.skyflow.generated.auth.rest.core.RequestOptions;
+import com.skyflow.generated.auth.rest.types.V1GetAuthTokenResponse;
+import com.skyflow.generated.auth.rest.resources.authentication.requests.V1GetAuthTokenRequest;
+
+import java.util.concurrent.CompletableFuture;
+
+public class AsyncAuthenticationClient {
+ protected final ClientOptions clientOptions;
+
+ private final AsyncRawAuthenticationClient rawClient;
+
+ public AsyncAuthenticationClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ this.rawClient = new AsyncRawAuthenticationClient(clientOptions);
+ }
+
+ /**
+ * Get responses with HTTP metadata like headers
+ */
+ public AsyncRawAuthenticationClient withRawResponse() {
+ return this.rawClient;
+ }
+
+ /**
+ * <p>Generates a Bearer Token to authenticate with Skyflow. This method doesn't require the <code>Authorization</code> header.</p><p><b>Note:</b> For recommended ways to authenticate, see <a href='/api-authentication/'>API authentication</a>.</p>
+ */
+ public CompletableFuture authenticationServiceGetAuthToken(V1GetAuthTokenRequest request) {
+ return this.rawClient.authenticationServiceGetAuthToken(request).thenApply(response -> response.body());
+ }
+
+ /**
+ * <p>Generates a Bearer Token to authenticate with Skyflow. This method doesn't require the <code>Authorization</code> header.</p><p><b>Note:</b> For recommended ways to authenticate, see <a href='/api-authentication/'>API authentication</a>.</p>
+ */
+ public CompletableFuture authenticationServiceGetAuthToken(
+ V1GetAuthTokenRequest request, RequestOptions requestOptions) {
+ return this.rawClient
+ .authenticationServiceGetAuthToken(request, requestOptions)
+ .thenApply(response -> response.body());
+ }
+}
diff --git a/common/src/main/java/com/skyflow/generated/auth/rest/resources/authentication/AsyncRawAuthenticationClient.java b/common/src/main/java/com/skyflow/generated/auth/rest/resources/authentication/AsyncRawAuthenticationClient.java
new file mode 100644
index 00000000..61ff4335
--- /dev/null
+++ b/common/src/main/java/com/skyflow/generated/auth/rest/resources/authentication/AsyncRawAuthenticationClient.java
@@ -0,0 +1,132 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.auth.rest.resources.authentication;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.skyflow.generated.auth.rest.errors.BadRequestError;
+import com.skyflow.generated.auth.rest.errors.NotFoundError;
+import com.skyflow.generated.auth.rest.errors.UnauthorizedError;
+import com.skyflow.generated.auth.rest.resources.authentication.requests.V1GetAuthTokenRequest;
+import com.skyflow.generated.auth.rest.types.V1GetAuthTokenResponse;
+import com.skyflow.generated.auth.rest.core.ApiClientApiException;
+import com.skyflow.generated.auth.rest.core.ApiClientException;
+import com.skyflow.generated.auth.rest.core.ApiClientHttpResponse;
+import com.skyflow.generated.auth.rest.core.ClientOptions;
+import com.skyflow.generated.auth.rest.core.MediaTypes;
+import com.skyflow.generated.auth.rest.core.ObjectMappers;
+import com.skyflow.generated.auth.rest.core.RequestOptions;
+
+import java.io.IOException;
+import java.util.Map;
+import java.util.concurrent.CompletableFuture;
+import okhttp3.Call;
+import okhttp3.Callback;
+import okhttp3.Headers;
+import okhttp3.HttpUrl;
+import okhttp3.OkHttpClient;
+import okhttp3.Request;
+import okhttp3.RequestBody;
+import okhttp3.Response;
+import okhttp3.ResponseBody;
+import org.jetbrains.annotations.NotNull;
+
+public class AsyncRawAuthenticationClient {
+ protected final ClientOptions clientOptions;
+
+ public AsyncRawAuthenticationClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ }
+
+ /**
+ * <p>Generates a Bearer Token to authenticate with Skyflow. This method doesn't require the <code>Authorization</code> header.</p><p><b>Note:</b> For recommended ways to authenticate, see <a href='/api-authentication/'>API authentication</a>.</p>
+ */
+ public CompletableFuture> authenticationServiceGetAuthToken(
+ V1GetAuthTokenRequest request) {
+ return authenticationServiceGetAuthToken(request, null);
+ }
+
+ /**
+ * <p>Generates a Bearer Token to authenticate with Skyflow. This method doesn't require the <code>Authorization</code> header.</p><p><b>Note:</b> For recommended ways to authenticate, see <a href='/api-authentication/'>API authentication</a>.</p>
+ */
+ public CompletableFuture> authenticationServiceGetAuthToken(
+ V1GetAuthTokenRequest request, RequestOptions requestOptions) {
+ HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("v1/auth/sa/oauth/token")
+ .build();
+ RequestBody body;
+ try {
+ body = RequestBody.create(
+ ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON);
+ } catch (JsonProcessingException e) {
+ throw new ApiClientException("Failed to serialize request", e);
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl)
+ .method("POST", body)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Content-Type", "application/json")
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ CompletableFuture> future = new CompletableFuture<>();
+ client.newCall(okhttpRequest).enqueue(new Callback() {
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody responseBody = response.body()) {
+ if (response.isSuccessful()) {
+ future.complete(new ApiClientHttpResponse<>(
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBody.string(), V1GetAuthTokenResponse.class),
+ response));
+ return;
+ }
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ try {
+ switch (response.code()) {
+ case 400:
+ future.completeExceptionally(new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(
+ responseBodyString, new TypeReference
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage sortOpsSortBy(String sortOpsSortBy) {
this.sortOpsSortBy = Optional.ofNullable(sortOpsSortBy);
return this;
@@ -1010,7 +1010,7 @@ public _FinalStage sortOpsSortBy(String sortOpsSortBy) {
/**
* Fully-qualified field by which to sort results. Field names should be in camel case (for example, "capitalization.camelCase").
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "sortOps.sortBy", nulls = Nulls.SKIP)
public _FinalStage sortOpsSortBy(Optional sortOpsSortBy) {
this.sortOpsSortBy = sortOpsSortBy;
@@ -1021,7 +1021,7 @@ public _FinalStage sortOpsSortBy(Optional sortOpsSortBy) {
* HTTP URI of the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsHttpUri(String filterOpsHttpUri) {
this.filterOpsHttpUri = Optional.ofNullable(filterOpsHttpUri);
return this;
@@ -1030,7 +1030,7 @@ public _FinalStage filterOpsHttpUri(String filterOpsHttpUri) {
/**
* HTTP URI of the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.httpURI", nulls = Nulls.SKIP)
public _FinalStage filterOpsHttpUri(Optional filterOpsHttpUri) {
this.filterOpsHttpUri = filterOpsHttpUri;
@@ -1041,7 +1041,7 @@ public _FinalStage filterOpsHttpUri(Optional filterOpsHttpUri) {
* HTTP method of the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsHttpMethod(String filterOpsHttpMethod) {
this.filterOpsHttpMethod = Optional.ofNullable(filterOpsHttpMethod);
return this;
@@ -1050,7 +1050,7 @@ public _FinalStage filterOpsHttpMethod(String filterOpsHttpMethod) {
/**
* HTTP method of the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.httpMethod", nulls = Nulls.SKIP)
public _FinalStage filterOpsHttpMethod(Optional filterOpsHttpMethod) {
this.filterOpsHttpMethod = filterOpsHttpMethod;
@@ -1061,7 +1061,7 @@ public _FinalStage filterOpsHttpMethod(Optional filterOpsHttpMethod) {
* Response message of the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsResponseMessage(String filterOpsResponseMessage) {
this.filterOpsResponseMessage = Optional.ofNullable(filterOpsResponseMessage);
return this;
@@ -1070,7 +1070,7 @@ public _FinalStage filterOpsResponseMessage(String filterOpsResponseMessage) {
/**
* Response message of the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.responseMessage", nulls = Nulls.SKIP)
public _FinalStage filterOpsResponseMessage(Optional filterOpsResponseMessage) {
this.filterOpsResponseMessage = filterOpsResponseMessage;
@@ -1081,7 +1081,7 @@ public _FinalStage filterOpsResponseMessage(Optional filterOpsResponseMe
* Name of the API called in the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsApiName(String filterOpsApiName) {
this.filterOpsApiName = Optional.ofNullable(filterOpsApiName);
return this;
@@ -1090,7 +1090,7 @@ public _FinalStage filterOpsApiName(String filterOpsApiName) {
/**
* Name of the API called in the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.apiName", nulls = Nulls.SKIP)
public _FinalStage filterOpsApiName(Optional filterOpsApiName) {
this.filterOpsApiName = filterOpsApiName;
@@ -1101,7 +1101,7 @@ public _FinalStage filterOpsApiName(Optional filterOpsApiName) {
* End timestamp for the query, in SQL format.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsEndTime(String filterOpsEndTime) {
this.filterOpsEndTime = Optional.ofNullable(filterOpsEndTime);
return this;
@@ -1110,7 +1110,7 @@ public _FinalStage filterOpsEndTime(String filterOpsEndTime) {
/**
* End timestamp for the query, in SQL format.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.endTime", nulls = Nulls.SKIP)
public _FinalStage filterOpsEndTime(Optional filterOpsEndTime) {
this.filterOpsEndTime = filterOpsEndTime;
@@ -1121,7 +1121,7 @@ public _FinalStage filterOpsEndTime(Optional filterOpsEndTime) {
* Start timestamp for the query, in SQL format.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsStartTime(String filterOpsStartTime) {
this.filterOpsStartTime = Optional.ofNullable(filterOpsStartTime);
return this;
@@ -1130,7 +1130,7 @@ public _FinalStage filterOpsStartTime(String filterOpsStartTime) {
/**
* Start timestamp for the query, in SQL format.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.startTime", nulls = Nulls.SKIP)
public _FinalStage filterOpsStartTime(Optional filterOpsStartTime) {
this.filterOpsStartTime = filterOpsStartTime;
@@ -1141,7 +1141,7 @@ public _FinalStage filterOpsStartTime(Optional filterOpsStartTime) {
* HTTP response code of the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsResponseCode(Integer filterOpsResponseCode) {
this.filterOpsResponseCode = Optional.ofNullable(filterOpsResponseCode);
return this;
@@ -1150,7 +1150,7 @@ public _FinalStage filterOpsResponseCode(Integer filterOpsResponseCode) {
/**
* HTTP response code of the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.responseCode", nulls = Nulls.SKIP)
public _FinalStage filterOpsResponseCode(Optional filterOpsResponseCode) {
this.filterOpsResponseCode = filterOpsResponseCode;
@@ -1161,7 +1161,7 @@ public _FinalStage filterOpsResponseCode(Optional filterOpsResponseCode
* Events with associated tags. If an event matches at least one tag, the event is returned. Comma-separated list. For example, "login, get".
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsTags(String filterOpsTags) {
this.filterOpsTags = Optional.ofNullable(filterOpsTags);
return this;
@@ -1170,7 +1170,7 @@ public _FinalStage filterOpsTags(String filterOpsTags) {
/**
* Events with associated tags. If an event matches at least one tag, the event is returned. Comma-separated list. For example, "login, get".
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.tags", nulls = Nulls.SKIP)
public _FinalStage filterOpsTags(Optional filterOpsTags) {
this.filterOpsTags = filterOpsTags;
@@ -1181,7 +1181,7 @@ public _FinalStage filterOpsTags(Optional filterOpsTags) {
* Resources with the specified type.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsResourceType(
AuditServiceListAuditEventsRequestFilterOpsResourceType filterOpsResourceType) {
this.filterOpsResourceType = Optional.ofNullable(filterOpsResourceType);
@@ -1191,7 +1191,7 @@ public _FinalStage filterOpsResourceType(
/**
* Resources with the specified type.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.resourceType", nulls = Nulls.SKIP)
public _FinalStage filterOpsResourceType(
Optional filterOpsResourceType) {
@@ -1203,7 +1203,7 @@ public _FinalStage filterOpsResourceType(
* Events with the specified action type.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsActionType(
AuditServiceListAuditEventsRequestFilterOpsActionType filterOpsActionType) {
this.filterOpsActionType = Optional.ofNullable(filterOpsActionType);
@@ -1213,7 +1213,7 @@ public _FinalStage filterOpsActionType(
/**
* Events with the specified action type.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.actionType", nulls = Nulls.SKIP)
public _FinalStage filterOpsActionType(
Optional filterOpsActionType) {
@@ -1225,7 +1225,7 @@ public _FinalStage filterOpsActionType(
* Resources with a specified ID. If a resource matches at least one ID, the associated event is returned. Format is a comma-separated list of "<resourceType>/<resourceID>". For example, "VAULT/12345, USER/67890".
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsResourceIDs(String filterOpsResourceIDs) {
this.filterOpsResourceIDs = Optional.ofNullable(filterOpsResourceIDs);
return this;
@@ -1234,7 +1234,7 @@ public _FinalStage filterOpsResourceIDs(String filterOpsResourceIDs) {
/**
* Resources with a specified ID. If a resource matches at least one ID, the associated event is returned. Format is a comma-separated list of "<resourceType>/<resourceID>". For example, "VAULT/12345, USER/67890".
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.resourceIDs", nulls = Nulls.SKIP)
public _FinalStage filterOpsResourceIDs(Optional filterOpsResourceIDs) {
this.filterOpsResourceIDs = filterOpsResourceIDs;
@@ -1245,7 +1245,7 @@ public _FinalStage filterOpsResourceIDs(Optional filterOpsResourceIDs) {
* Resources with the specified vault ID.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsVaultId(String filterOpsVaultId) {
this.filterOpsVaultId = Optional.ofNullable(filterOpsVaultId);
return this;
@@ -1254,7 +1254,7 @@ public _FinalStage filterOpsVaultId(String filterOpsVaultId) {
/**
* Resources with the specified vault ID.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.vaultID", nulls = Nulls.SKIP)
public _FinalStage filterOpsVaultId(Optional filterOpsVaultId) {
this.filterOpsVaultId = filterOpsVaultId;
@@ -1265,7 +1265,7 @@ public _FinalStage filterOpsVaultId(Optional filterOpsVaultId) {
* Resources with the specified workspace ID.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsWorkspaceId(String filterOpsWorkspaceId) {
this.filterOpsWorkspaceId = Optional.ofNullable(filterOpsWorkspaceId);
return this;
@@ -1274,7 +1274,7 @@ public _FinalStage filterOpsWorkspaceId(String filterOpsWorkspaceId) {
/**
* Resources with the specified workspace ID.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.workspaceID", nulls = Nulls.SKIP)
public _FinalStage filterOpsWorkspaceId(Optional filterOpsWorkspaceId) {
this.filterOpsWorkspaceId = filterOpsWorkspaceId;
@@ -1285,7 +1285,7 @@ public _FinalStage filterOpsWorkspaceId(Optional filterOpsWorkspaceId) {
* Resources with the specified parent account ID.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsParentAccountId(String filterOpsParentAccountId) {
this.filterOpsParentAccountId = Optional.ofNullable(filterOpsParentAccountId);
return this;
@@ -1294,7 +1294,7 @@ public _FinalStage filterOpsParentAccountId(String filterOpsParentAccountId) {
/**
* Resources with the specified parent account ID.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.parentAccountID", nulls = Nulls.SKIP)
public _FinalStage filterOpsParentAccountId(Optional filterOpsParentAccountId) {
this.filterOpsParentAccountId = filterOpsParentAccountId;
@@ -1305,7 +1305,7 @@ public _FinalStage filterOpsParentAccountId(Optional filterOpsParentAcco
* Embedded User Context.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextBearerTokenContextId(String filterOpsContextBearerTokenContextId) {
this.filterOpsContextBearerTokenContextId = Optional.ofNullable(filterOpsContextBearerTokenContextId);
return this;
@@ -1314,7 +1314,7 @@ public _FinalStage filterOpsContextBearerTokenContextId(String filterOpsContextB
/**
* Embedded User Context.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.bearerTokenContextID", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextBearerTokenContextId(Optional filterOpsContextBearerTokenContextId) {
this.filterOpsContextBearerTokenContextId = filterOpsContextBearerTokenContextId;
@@ -1325,7 +1325,7 @@ public _FinalStage filterOpsContextBearerTokenContextId(Optional filterO
* ID of the JWT token.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextJwtId(String filterOpsContextJwtId) {
this.filterOpsContextJwtId = Optional.ofNullable(filterOpsContextJwtId);
return this;
@@ -1334,7 +1334,7 @@ public _FinalStage filterOpsContextJwtId(String filterOpsContextJwtId) {
/**
* ID of the JWT token.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.jwtID", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextJwtId(Optional filterOpsContextJwtId) {
this.filterOpsContextJwtId = filterOpsContextJwtId;
@@ -1345,7 +1345,7 @@ public _FinalStage filterOpsContextJwtId(Optional filterOpsContextJwtId)
* Authentication mode the actor used.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextAuthMode(
AuditServiceListAuditEventsRequestFilterOpsContextAuthMode filterOpsContextAuthMode) {
this.filterOpsContextAuthMode = Optional.ofNullable(filterOpsContextAuthMode);
@@ -1355,7 +1355,7 @@ public _FinalStage filterOpsContextAuthMode(
/**
* Authentication mode the actor used.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.authMode", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextAuthMode(
Optional filterOpsContextAuthMode) {
@@ -1367,7 +1367,7 @@ public _FinalStage filterOpsContextAuthMode(
* HTTP Origin request header (including scheme, hostname, and port) of the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextOrigin(String filterOpsContextOrigin) {
this.filterOpsContextOrigin = Optional.ofNullable(filterOpsContextOrigin);
return this;
@@ -1376,7 +1376,7 @@ public _FinalStage filterOpsContextOrigin(String filterOpsContextOrigin) {
/**
* HTTP Origin request header (including scheme, hostname, and port) of the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.origin", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextOrigin(Optional filterOpsContextOrigin) {
this.filterOpsContextOrigin = filterOpsContextOrigin;
@@ -1387,7 +1387,7 @@ public _FinalStage filterOpsContextOrigin(Optional filterOpsContextOrigi
* IP Address of the client that made the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextIpAddress(String filterOpsContextIpAddress) {
this.filterOpsContextIpAddress = Optional.ofNullable(filterOpsContextIpAddress);
return this;
@@ -1396,7 +1396,7 @@ public _FinalStage filterOpsContextIpAddress(String filterOpsContextIpAddress) {
/**
* IP Address of the client that made the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.ipAddress", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextIpAddress(Optional filterOpsContextIpAddress) {
this.filterOpsContextIpAddress = filterOpsContextIpAddress;
@@ -1407,7 +1407,7 @@ public _FinalStage filterOpsContextIpAddress(Optional filterOpsContextIp
* Type of access for the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextAccessType(
AuditServiceListAuditEventsRequestFilterOpsContextAccessType filterOpsContextAccessType) {
this.filterOpsContextAccessType = Optional.ofNullable(filterOpsContextAccessType);
@@ -1417,7 +1417,7 @@ public _FinalStage filterOpsContextAccessType(
/**
* Type of access for the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.accessType", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextAccessType(
Optional filterOpsContextAccessType) {
@@ -1429,7 +1429,7 @@ public _FinalStage filterOpsContextAccessType(
* Type of member who sent the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextActorType(
AuditServiceListAuditEventsRequestFilterOpsContextActorType filterOpsContextActorType) {
this.filterOpsContextActorType = Optional.ofNullable(filterOpsContextActorType);
@@ -1439,7 +1439,7 @@ public _FinalStage filterOpsContextActorType(
/**
* Type of member who sent the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.actorType", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextActorType(
Optional filterOpsContextActorType) {
@@ -1451,7 +1451,7 @@ public _FinalStage filterOpsContextActorType(
* Member who sent the request. Depending on actorType, this may be a user ID or a service account ID.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextActor(String filterOpsContextActor) {
this.filterOpsContextActor = Optional.ofNullable(filterOpsContextActor);
return this;
@@ -1460,7 +1460,7 @@ public _FinalStage filterOpsContextActor(String filterOpsContextActor) {
/**
* Member who sent the request. Depending on actorType, this may be a user ID or a service account ID.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.actor", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextActor(Optional filterOpsContextActor) {
this.filterOpsContextActor = filterOpsContextActor;
@@ -1471,7 +1471,7 @@ public _FinalStage filterOpsContextActor(Optional filterOpsContextActor)
* ID for the session in which the request was sent.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextSessionId(String filterOpsContextSessionId) {
this.filterOpsContextSessionId = Optional.ofNullable(filterOpsContextSessionId);
return this;
@@ -1480,7 +1480,7 @@ public _FinalStage filterOpsContextSessionId(String filterOpsContextSessionId) {
/**
* ID for the session in which the request was sent.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.sessionID", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextSessionId(Optional filterOpsContextSessionId) {
this.filterOpsContextSessionId = filterOpsContextSessionId;
@@ -1491,7 +1491,7 @@ public _FinalStage filterOpsContextSessionId(Optional filterOpsContextSe
* ID for the request set by the service that received the request.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextTraceId(String filterOpsContextTraceId) {
this.filterOpsContextTraceId = Optional.ofNullable(filterOpsContextTraceId);
return this;
@@ -1500,7 +1500,7 @@ public _FinalStage filterOpsContextTraceId(String filterOpsContextTraceId) {
/**
* ID for the request set by the service that received the request.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.traceID", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextTraceId(Optional filterOpsContextTraceId) {
this.filterOpsContextTraceId = filterOpsContextTraceId;
@@ -1511,7 +1511,7 @@ public _FinalStage filterOpsContextTraceId(Optional filterOpsContextTrac
* ID for the request that caused the event.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextRequestId(String filterOpsContextRequestId) {
this.filterOpsContextRequestId = Optional.ofNullable(filterOpsContextRequestId);
return this;
@@ -1520,7 +1520,7 @@ public _FinalStage filterOpsContextRequestId(String filterOpsContextRequestId) {
/**
* ID for the request that caused the event.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.requestID", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextRequestId(Optional filterOpsContextRequestId) {
this.filterOpsContextRequestId = filterOpsContextRequestId;
@@ -1531,7 +1531,7 @@ public _FinalStage filterOpsContextRequestId(Optional filterOpsContextRe
* ID for the audit event.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage filterOpsContextChangeId(String filterOpsContextChangeId) {
this.filterOpsContextChangeId = Optional.ofNullable(filterOpsContextChangeId);
return this;
@@ -1540,14 +1540,14 @@ public _FinalStage filterOpsContextChangeId(String filterOpsContextChangeId) {
/**
* ID for the audit event.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "filterOps.context.changeID", nulls = Nulls.SKIP)
public _FinalStage filterOpsContextChangeId(Optional filterOpsContextChangeId) {
this.filterOpsContextChangeId = filterOpsContextChangeId;
return this;
}
- @java.lang.Override
+ @Override
public AuditServiceListAuditEventsRequest build() {
return new AuditServiceListAuditEventsRequest(
filterOpsContextChangeId,
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsActionType.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsActionType.java
similarity index 97%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsActionType.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsActionType.java
index a9fb6d44..9611f8ab 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsActionType.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsActionType.java
@@ -49,7 +49,7 @@ public enum AuditServiceListAuditEventsRequestFilterOpsActionType {
}
@JsonValue
- @java.lang.Override
+ @Override
public String toString() {
return this.value;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAccessType.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAccessType.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAccessType.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAccessType.java
index 0b082305..44ac80d9 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAccessType.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAccessType.java
@@ -21,7 +21,7 @@ public enum AuditServiceListAuditEventsRequestFilterOpsContextAccessType {
}
@JsonValue
- @java.lang.Override
+ @Override
public String toString() {
return this.value;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextActorType.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextActorType.java
similarity index 95%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextActorType.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextActorType.java
index 76a357f4..1948ea9c 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextActorType.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextActorType.java
@@ -19,7 +19,7 @@ public enum AuditServiceListAuditEventsRequestFilterOpsContextActorType {
}
@JsonValue
- @java.lang.Override
+ @Override
public String toString() {
return this.value;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAuthMode.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAuthMode.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAuthMode.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAuthMode.java
index cfca2e35..82c375aa 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAuthMode.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsContextAuthMode.java
@@ -21,7 +21,7 @@ public enum AuditServiceListAuditEventsRequestFilterOpsContextAuthMode {
}
@JsonValue
- @java.lang.Override
+ @Override
public String toString() {
return this.value;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsResourceType.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsResourceType.java
similarity index 98%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsResourceType.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsResourceType.java
index f5d2eafe..864213ec 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsResourceType.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestFilterOpsResourceType.java
@@ -73,7 +73,7 @@ public enum AuditServiceListAuditEventsRequestFilterOpsResourceType {
}
@JsonValue
- @java.lang.Override
+ @Override
public String toString() {
return this.value;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestSortOpsOrderBy.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestSortOpsOrderBy.java
similarity index 95%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestSortOpsOrderBy.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestSortOpsOrderBy.java
index 51fc2715..fe3f928e 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestSortOpsOrderBy.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/types/AuditServiceListAuditEventsRequestSortOpsOrderBy.java
@@ -17,7 +17,7 @@ public enum AuditServiceListAuditEventsRequestSortOpsOrderBy {
}
@JsonValue
- @java.lang.Override
+ @Override
public String toString() {
return this.value;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncRawAuthenticationClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncRawAuthenticationClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncRawAuthenticationClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncRawAuthenticationClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/authentication/RawAuthenticationClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/RawAuthenticationClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/authentication/RawAuthenticationClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/authentication/RawAuthenticationClient.java
diff --git a/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/requests/V1GetAuthTokenRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/requests/V1GetAuthTokenRequest.java
new file mode 100644
index 00000000..182952bc
--- /dev/null
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/requests/V1GetAuthTokenRequest.java
@@ -0,0 +1,335 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.rest.resources.authentication.requests;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.skyflow.generated.rest.core.ObjectMappers;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import org.jetbrains.annotations.NotNull;
+
+@JsonInclude(JsonInclude.Include.NON_ABSENT)
+@JsonDeserialize(builder = V1GetAuthTokenRequest.Builder.class)
+public final class V1GetAuthTokenRequest {
+ private final String grantType;
+
+ private final String assertion;
+
+ private final Optional subjectToken;
+
+ private final Optional subjectTokenType;
+
+ private final Optional requestedTokenUse;
+
+ private final Optional scope;
+
+ private final Map additionalProperties;
+
+ private V1GetAuthTokenRequest(
+ String grantType,
+ String assertion,
+ Optional subjectToken,
+ Optional subjectTokenType,
+ Optional requestedTokenUse,
+ Optional scope,
+ Map additionalProperties) {
+ this.grantType = grantType;
+ this.assertion = assertion;
+ this.subjectToken = subjectToken;
+ this.subjectTokenType = subjectTokenType;
+ this.requestedTokenUse = requestedTokenUse;
+ this.scope = scope;
+ this.additionalProperties = additionalProperties;
+ }
+
+ /**
+ * @return Grant type of the request. Set this to urn:ietf:params:oauth:grant-type:jwt-bearer.
+ */
+ @JsonProperty("grant_type")
+ public String getGrantType() {
+ return grantType;
+ }
+
+ /**
+ * @return User-signed JWT token that contains the following fields: <br/> <ul><li><code>iss</code>: Issuer of the JWT.</li><li><code>key</code>: Unique identifier for the key.</li><li><code>aud</code>: Recipient the JWT is intended for.</li><li><code>exp</code>: Time the JWT expires.</li><li><code>sub</code>: Subject of the JWT.</li><li><code>ctx</code>: (Optional) Value for <a href='/context-aware-overview/'>Context-aware authorization</a>.</li></ul>
+ */
+ @JsonProperty("assertion")
+ public String getAssertion() {
+ return assertion;
+ }
+
+ /**
+ * @return Subject token.
+ */
+ @JsonProperty("subject_token")
+ public Optional getSubjectToken() {
+ return subjectToken;
+ }
+
+ /**
+ * @return Subject token type.
+ */
+ @JsonProperty("subject_token_type")
+ public Optional getSubjectTokenType() {
+ return subjectTokenType;
+ }
+
+ /**
+ * @return Token use type. Either delegation or impersonation.
+ */
+ @JsonProperty("requested_token_use")
+ public Optional getRequestedTokenUse() {
+ return requestedTokenUse;
+ }
+
+ /**
+ * @return Subset of available <a href='#Roles'>roles</a> to associate with the requested token. Uses the format "role:<roleID1> role:<roleID2>".
+ */
+ @JsonProperty("scope")
+ public Optional getScope() {
+ return scope;
+ }
+
+ @Override
+ public boolean equals(Object other) {
+ if (this == other) return true;
+ return other instanceof V1GetAuthTokenRequest && equalTo((V1GetAuthTokenRequest) other);
+ }
+
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ private boolean equalTo(V1GetAuthTokenRequest other) {
+ return grantType.equals(other.grantType)
+ && assertion.equals(other.assertion)
+ && subjectToken.equals(other.subjectToken)
+ && subjectTokenType.equals(other.subjectTokenType)
+ && requestedTokenUse.equals(other.requestedTokenUse)
+ && scope.equals(other.scope);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ this.grantType,
+ this.assertion,
+ this.subjectToken,
+ this.subjectTokenType,
+ this.requestedTokenUse,
+ this.scope);
+ }
+
+ @Override
+ public String toString() {
+ return ObjectMappers.stringify(this);
+ }
+
+ public static GrantTypeStage builder() {
+ return new Builder();
+ }
+
+ public interface GrantTypeStage {
+ /**
+ * Grant type of the request. Set this to `urn:ietf:params:oauth:grant-type:jwt-bearer`.
+ */
+ AssertionStage grantType(@NotNull String grantType);
+
+ Builder from(V1GetAuthTokenRequest other);
+ }
+
+ public interface AssertionStage {
+ /**
+ * User-signed JWT token that contains the following fields:
iss: Issuer of the JWT.key: Unique identifier for the key.aud: Recipient the JWT is intended for.exp: Time the JWT expires.sub: Subject of the JWT.ctx: (Optional) Value for Context-aware authorization.
+ */
+ _FinalStage assertion(@NotNull String assertion);
+ }
+
+ public interface _FinalStage {
+ V1GetAuthTokenRequest build();
+
+ /**
+ * Subject token.
+ */
+ _FinalStage subjectToken(Optional subjectToken);
+
+ _FinalStage subjectToken(String subjectToken);
+
+ /**
+ * Subject token type.
+ */
+ _FinalStage subjectTokenType(Optional subjectTokenType);
+
+ _FinalStage subjectTokenType(String subjectTokenType);
+
+ /**
+ * Token use type. Either delegation or impersonation.
+ */
+ _FinalStage requestedTokenUse(Optional requestedTokenUse);
+
+ _FinalStage requestedTokenUse(String requestedTokenUse);
+
+ /**
+ * Subset of available <a href='#Roles'>roles</a> to associate with the requested token. Uses the format "role:<roleID1> role:<roleID2>".
+ */
+ _FinalStage scope(Optional scope);
+
+ _FinalStage scope(String scope);
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static final class Builder implements GrantTypeStage, AssertionStage, _FinalStage {
+ private String grantType;
+
+ private String assertion;
+
+ private Optional scope = Optional.empty();
+
+ private Optional requestedTokenUse = Optional.empty();
+
+ private Optional subjectTokenType = Optional.empty();
+
+ private Optional subjectToken = Optional.empty();
+
+ @JsonAnySetter
+ private Map additionalProperties = new HashMap<>();
+
+ private Builder() {}
+
+ @Override
+ public Builder from(V1GetAuthTokenRequest other) {
+ grantType(other.getGrantType());
+ assertion(other.getAssertion());
+ subjectToken(other.getSubjectToken());
+ subjectTokenType(other.getSubjectTokenType());
+ requestedTokenUse(other.getRequestedTokenUse());
+ scope(other.getScope());
+ return this;
+ }
+
+ /**
+ * Grant type of the request. Set this to `urn:ietf:params:oauth:grant-type:jwt-bearer`.Grant type of the request. Set this to urn:ietf:params:oauth:grant-type:jwt-bearer.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @Override
+ @JsonSetter("grant_type")
+ public AssertionStage grantType(@NotNull String grantType) {
+ this.grantType = Objects.requireNonNull(grantType, "grantType must not be null");
+ return this;
+ }
+
+ /**
+ * User-signed JWT token that contains the following fields:
iss: Issuer of the JWT.key: Unique identifier for the key.aud: Recipient the JWT is intended for.exp: Time the JWT expires.sub: Subject of the JWT.ctx: (Optional) Value for Context-aware authorization.
User-signed JWT token that contains the following fields: <br/> <ul><li><code>iss</code>: Issuer of the JWT.</li><li><code>key</code>: Unique identifier for the key.</li><li><code>aud</code>: Recipient the JWT is intended for.</li><li><code>exp</code>: Time the JWT expires.</li><li><code>sub</code>: Subject of the JWT.</li><li><code>ctx</code>: (Optional) Value for <a href='/context-aware-overview/'>Context-aware authorization</a>.</li></ul>
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @Override
+ @JsonSetter("assertion")
+ public _FinalStage assertion(@NotNull String assertion) {
+ this.assertion = Objects.requireNonNull(assertion, "assertion must not be null");
+ return this;
+ }
+
+ /**
+ * Subset of available <a href='#Roles'>roles</a> to associate with the requested token. Uses the format "role:<roleID1> role:<roleID2>".
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @Override
+ public _FinalStage scope(String scope) {
+ this.scope = Optional.ofNullable(scope);
+ return this;
+ }
+
+ /**
+ * Subset of available <a href='#Roles'>roles</a> to associate with the requested token. Uses the format "role:<roleID1> role:<roleID2>".
+ */
+ @Override
+ @JsonSetter(value = "scope", nulls = Nulls.SKIP)
+ public _FinalStage scope(Optional scope) {
+ this.scope = scope;
+ return this;
+ }
+
+ /**
+ * Token use type. Either delegation or impersonation.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @Override
+ public _FinalStage requestedTokenUse(String requestedTokenUse) {
+ this.requestedTokenUse = Optional.ofNullable(requestedTokenUse);
+ return this;
+ }
+
+ /**
+ * Token use type. Either delegation or impersonation.
+ */
+ @Override
+ @JsonSetter(value = "requested_token_use", nulls = Nulls.SKIP)
+ public _FinalStage requestedTokenUse(Optional requestedTokenUse) {
+ this.requestedTokenUse = requestedTokenUse;
+ return this;
+ }
+
+ /**
+ * Subject token type.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @Override
+ public _FinalStage subjectTokenType(String subjectTokenType) {
+ this.subjectTokenType = Optional.ofNullable(subjectTokenType);
+ return this;
+ }
+
+ /**
+ * Subject token type.
+ */
+ @Override
+ @JsonSetter(value = "subject_token_type", nulls = Nulls.SKIP)
+ public _FinalStage subjectTokenType(Optional subjectTokenType) {
+ this.subjectTokenType = subjectTokenType;
+ return this;
+ }
+
+ /**
+ * Subject token.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @Override
+ public _FinalStage subjectToken(String subjectToken) {
+ this.subjectToken = Optional.ofNullable(subjectToken);
+ return this;
+ }
+
+ /**
+ * Subject token.
+ */
+ @Override
+ @JsonSetter(value = "subject_token", nulls = Nulls.SKIP)
+ public _FinalStage subjectToken(Optional subjectToken) {
+ this.subjectToken = subjectToken;
+ return this;
+ }
+
+ @Override
+ public V1GetAuthTokenRequest build() {
+ return new V1GetAuthTokenRequest(
+ grantType,
+ assertion,
+ subjectToken,
+ subjectTokenType,
+ requestedTokenUse,
+ scope,
+ additionalProperties);
+ }
+ }
+}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncBinLookupClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncBinLookupClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncBinLookupClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncBinLookupClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncRawBinLookupClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncRawBinLookupClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncRawBinLookupClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/AsyncRawBinLookupClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/binlookup/BinLookupClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/BinLookupClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/binlookup/BinLookupClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/BinLookupClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/binlookup/RawBinLookupClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/RawBinLookupClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/binlookup/RawBinLookupClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/RawBinLookupClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/binlookup/requests/V1BinListRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/requests/V1BinListRequest.java
similarity index 98%
rename from src/main/java/com/skyflow/generated/rest/resources/binlookup/requests/V1BinListRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/requests/V1BinListRequest.java
index d4a1c21b..af827e01 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/binlookup/requests/V1BinListRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/binlookup/requests/V1BinListRequest.java
@@ -74,7 +74,7 @@ public Optional getSkyflowId() {
return skyflowId;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof V1BinListRequest && equalTo((V1BinListRequest) other);
@@ -92,12 +92,12 @@ private boolean equalTo(V1BinListRequest other) {
&& skyflowId.equals(other.skyflowId);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(this.fields, this.bin, this.vaultSchemaConfig, this.skyflowId);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncDeprecatedClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncDeprecatedClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncDeprecatedClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncDeprecatedClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncRawDeprecatedClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncRawDeprecatedClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncRawDeprecatedClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/AsyncRawDeprecatedClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/DeprecatedClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/DeprecatedClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/DeprecatedClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/DeprecatedClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/RawDeprecatedClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/RawDeprecatedClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/RawDeprecatedClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/RawDeprecatedClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectStatusRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectStatusRequest.java
similarity index 97%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectStatusRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectStatusRequest.java
index 45997db3..b94cb3d3 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectStatusRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectStatusRequest.java
@@ -37,7 +37,7 @@ public Optional getVaultId() {
return vaultId;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof DetectServiceDetectStatusRequest && equalTo((DetectServiceDetectStatusRequest) other);
@@ -52,12 +52,12 @@ private boolean equalTo(DetectServiceDetectStatusRequest other) {
return vaultId.equals(other.vaultId);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(this.vaultId);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectTextRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectTextRequest.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectTextRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectTextRequest.java
index 3c4b4ea2..a8263338 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectTextRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/DetectServiceDetectTextRequest.java
@@ -156,7 +156,7 @@ public Optional getStoreEntities() {
return storeEntities;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof DetectServiceDetectTextRequest && equalTo((DetectServiceDetectTextRequest) other);
@@ -181,7 +181,7 @@ private boolean equalTo(DetectServiceDetectTextRequest other) {
&& storeEntities.equals(other.storeEntities);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.text,
@@ -197,7 +197,7 @@ public int hashCode() {
this.storeEntities);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -309,7 +309,7 @@ public static final class Builder implements TextStage, VaultIdStage, _FinalStag
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(DetectServiceDetectTextRequest other) {
text(other.getText());
vaultId(other.getVaultId());
@@ -329,7 +329,7 @@ public Builder from(DetectServiceDetectTextRequest other) {
* Data to deidentify.Data to deidentify.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("text")
public VaultIdStage text(@NotNull String text) {
this.text = Objects.requireNonNull(text, "text must not be null");
@@ -340,7 +340,7 @@ public VaultIdStage text(@NotNull String text) {
* ID of the vault.ID of the vault.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("vault_id")
public _FinalStage vaultId(@NotNull String vaultId) {
this.vaultId = Objects.requireNonNull(vaultId, "vaultId must not be null");
@@ -351,7 +351,7 @@ public _FinalStage vaultId(@NotNull String vaultId) {
* Indicates whether entities should be stored in the vault.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage storeEntities(Boolean storeEntities) {
this.storeEntities = Optional.ofNullable(storeEntities);
return this;
@@ -360,33 +360,33 @@ public _FinalStage storeEntities(Boolean storeEntities) {
/**
* Indicates whether entities should be stored in the vault.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "store_entities", nulls = Nulls.SKIP)
public _FinalStage storeEntities(Optional storeEntities) {
this.storeEntities = storeEntities;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage advancedOptions(V1AdvancedOptions advancedOptions) {
this.advancedOptions = Optional.ofNullable(advancedOptions);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "advanced_options", nulls = Nulls.SKIP)
public _FinalStage advancedOptions(Optional advancedOptions) {
this.advancedOptions = advancedOptions;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage accuracy(DetectDataAccuracy accuracy) {
this.accuracy = Optional.ofNullable(accuracy);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "accuracy", nulls = Nulls.SKIP)
public _FinalStage accuracy(Optional accuracy) {
this.accuracy = accuracy;
@@ -397,7 +397,7 @@ public _FinalStage accuracy(Optional accuracy) {
* If true, returns the details for the detected entities.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage returnEntities(Boolean returnEntities) {
this.returnEntities = Optional.ofNullable(returnEntities);
return this;
@@ -406,7 +406,7 @@ public _FinalStage returnEntities(Boolean returnEntities) {
/**
* If true, returns the details for the detected entities.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "return_entities", nulls = Nulls.SKIP)
public _FinalStage returnEntities(Optional returnEntities) {
this.returnEntities = returnEntities;
@@ -417,7 +417,7 @@ public _FinalStage returnEntities(Optional returnEntities) {
* Regular expressions to always restrict. Strings matching these regular expressions are replaced with 'RESTRICTED'.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage restrictRegex(List restrictRegex) {
this.restrictRegex = Optional.ofNullable(restrictRegex);
return this;
@@ -426,7 +426,7 @@ public _FinalStage restrictRegex(List restrictRegex) {
/**
* Regular expressions to always restrict. Strings matching these regular expressions are replaced with 'RESTRICTED'.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_regex", nulls = Nulls.SKIP)
public _FinalStage restrictRegex(Optional> restrictRegex) {
this.restrictRegex = restrictRegex;
@@ -437,7 +437,7 @@ public _FinalStage restrictRegex(Optional> restrictRegex) {
* Regular expressions to ignore when detecting entities.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage allowRegex(List allowRegex) {
this.allowRegex = Optional.ofNullable(allowRegex);
return this;
@@ -446,20 +446,20 @@ public _FinalStage allowRegex(List allowRegex) {
/**
* Regular expressions to ignore when detecting entities.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "allow_regex", nulls = Nulls.SKIP)
public _FinalStage allowRegex(Optional> allowRegex) {
this.allowRegex = allowRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage deidentifyTokenFormat(DetectRequestDeidentifyOption deidentifyTokenFormat) {
this.deidentifyTokenFormat = Optional.ofNullable(deidentifyTokenFormat);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "deidentify_token_format", nulls = Nulls.SKIP)
public _FinalStage deidentifyTokenFormat(Optional deidentifyTokenFormat) {
this.deidentifyTokenFormat = deidentifyTokenFormat;
@@ -470,7 +470,7 @@ public _FinalStage deidentifyTokenFormat(Optional
* Entities to detect and deidentify.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage restrictEntityTypes(List restrictEntityTypes) {
this.restrictEntityTypes = Optional.ofNullable(restrictEntityTypes);
return this;
@@ -479,7 +479,7 @@ public _FinalStage restrictEntityTypes(List restrictEntityTy
/**
* Entities to detect and deidentify.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_entity_types", nulls = Nulls.SKIP)
public _FinalStage restrictEntityTypes(Optional> restrictEntityTypes) {
this.restrictEntityTypes = restrictEntityTypes;
@@ -490,7 +490,7 @@ public _FinalStage restrictEntityTypes(Optional> restri
* Will give a handle to delete the tokens generated during a specific interaction.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage sessionId(String sessionId) {
this.sessionId = Optional.ofNullable(sessionId);
return this;
@@ -499,14 +499,14 @@ public _FinalStage sessionId(String sessionId) {
/**
* Will give a handle to delete the tokens generated during a specific interaction.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "session_id", nulls = Nulls.SKIP)
public _FinalStage sessionId(Optional sessionId) {
this.sessionId = sessionId;
return this;
}
- @java.lang.Override
+ @Override
public DetectServiceDetectTextRequest build() {
return new DetectServiceDetectTextRequest(
text,
diff --git a/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/V1DetectFileRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/V1DetectFileRequest.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/V1DetectFileRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/V1DetectFileRequest.java
index 8bdee935..a460f3a1 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/V1DetectFileRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/deprecated/requests/V1DetectFileRequest.java
@@ -194,7 +194,7 @@ public Optional getDeidentifyTokenFormat() {
return deidentifyTokenFormat;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof V1DetectFileRequest && equalTo((V1DetectFileRequest) other);
@@ -223,7 +223,7 @@ private boolean equalTo(V1DetectFileRequest other) {
&& deidentifyTokenFormat.equals(other.deidentifyTokenFormat);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.file,
@@ -243,7 +243,7 @@ public int hashCode() {
this.deidentifyTokenFormat);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -376,7 +376,7 @@ public static final class Builder implements FileStage, DataFormatStage, InputTy
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(V1DetectFileRequest other) {
file(other.getFile());
dataFormat(other.getDataFormat());
@@ -400,21 +400,21 @@ public Builder from(V1DetectFileRequest other) {
* Path of the file or base64-encoded data that has to be processed.Path of the file or base64-encoded data that has to be processed.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("file")
public DataFormatStage file(@NotNull String file) {
this.file = Objects.requireNonNull(file, "file must not be null");
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter("data_format")
public InputTypeStage dataFormat(@NotNull V1FileDataFormat dataFormat) {
this.dataFormat = Objects.requireNonNull(dataFormat, "dataFormat must not be null");
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter("input_type")
public VaultIdStage inputType(@NotNull DetectFileRequestDataType inputType) {
this.inputType = Objects.requireNonNull(inputType, "inputType must not be null");
@@ -425,85 +425,85 @@ public VaultIdStage inputType(@NotNull DetectFileRequestDataType inputType) {
* ID of the vault.ID of the vault.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("vault_id")
public _FinalStage vaultId(@NotNull String vaultId) {
this.vaultId = Objects.requireNonNull(vaultId, "vaultId must not be null");
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage deidentifyTokenFormat(DetectRequestDeidentifyOption deidentifyTokenFormat) {
this.deidentifyTokenFormat = Optional.ofNullable(deidentifyTokenFormat);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "deidentify_token_format", nulls = Nulls.SKIP)
public _FinalStage deidentifyTokenFormat(Optional deidentifyTokenFormat) {
this.deidentifyTokenFormat = deidentifyTokenFormat;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage advancedOptions(V1AdvancedOptions advancedOptions) {
this.advancedOptions = Optional.ofNullable(advancedOptions);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "advanced_options", nulls = Nulls.SKIP)
public _FinalStage advancedOptions(Optional advancedOptions) {
this.advancedOptions = advancedOptions;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage pdf(V1PdfConfig pdf) {
this.pdf = Optional.ofNullable(pdf);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "pdf", nulls = Nulls.SKIP)
public _FinalStage pdf(Optional pdf) {
this.pdf = pdf;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage image(V1ImageOptions image) {
this.image = Optional.ofNullable(image);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "image", nulls = Nulls.SKIP)
public _FinalStage image(Optional image) {
this.image = image;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage audio(V1AudioConfig audio) {
this.audio = Optional.ofNullable(audio);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "audio", nulls = Nulls.SKIP)
public _FinalStage audio(Optional audio) {
this.audio = audio;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage accuracy(DetectDataAccuracy accuracy) {
this.accuracy = Optional.ofNullable(accuracy);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "accuracy", nulls = Nulls.SKIP)
public _FinalStage accuracy(Optional accuracy) {
this.accuracy = accuracy;
@@ -514,7 +514,7 @@ public _FinalStage accuracy(Optional accuracy) {
* If true, returns the details for the detected entities.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage returnEntities(Boolean returnEntities) {
this.returnEntities = Optional.ofNullable(returnEntities);
return this;
@@ -523,7 +523,7 @@ public _FinalStage returnEntities(Boolean returnEntities) {
/**
* If true, returns the details for the detected entities.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "return_entities", nulls = Nulls.SKIP)
public _FinalStage returnEntities(Optional returnEntities) {
this.returnEntities = returnEntities;
@@ -534,7 +534,7 @@ public _FinalStage returnEntities(Optional returnEntities) {
* Regular expressions to always restrict. Strings matching these regular expressions are replaced with 'RESTRICTED'.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage restrictRegex(List restrictRegex) {
this.restrictRegex = Optional.ofNullable(restrictRegex);
return this;
@@ -543,7 +543,7 @@ public _FinalStage restrictRegex(List restrictRegex) {
/**
* Regular expressions to always restrict. Strings matching these regular expressions are replaced with 'RESTRICTED'.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_regex", nulls = Nulls.SKIP)
public _FinalStage restrictRegex(Optional> restrictRegex) {
this.restrictRegex = restrictRegex;
@@ -554,7 +554,7 @@ public _FinalStage restrictRegex(Optional> restrictRegex) {
* Regular expressions to ignore when detecting entities.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage allowRegex(List allowRegex) {
this.allowRegex = Optional.ofNullable(allowRegex);
return this;
@@ -563,7 +563,7 @@ public _FinalStage allowRegex(List allowRegex) {
/**
* Regular expressions to ignore when detecting entities.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "allow_regex", nulls = Nulls.SKIP)
public _FinalStage allowRegex(Optional> allowRegex) {
this.allowRegex = allowRegex;
@@ -574,7 +574,7 @@ public _FinalStage allowRegex(Optional> allowRegex) {
* Entities to detect and deidentify.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage restrictEntityTypes(List restrictEntityTypes) {
this.restrictEntityTypes = Optional.ofNullable(restrictEntityTypes);
return this;
@@ -583,7 +583,7 @@ public _FinalStage restrictEntityTypes(List restrictEntityTy
/**
* Entities to detect and deidentify.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_entity_types", nulls = Nulls.SKIP)
public _FinalStage restrictEntityTypes(Optional> restrictEntityTypes) {
this.restrictEntityTypes = restrictEntityTypes;
@@ -594,7 +594,7 @@ public _FinalStage restrictEntityTypes(Optional> restri
* Will give a handle to delete the tokens generated during a specific interaction.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage sessionId(String sessionId) {
this.sessionId = Optional.ofNullable(sessionId);
return this;
@@ -603,14 +603,14 @@ public _FinalStage sessionId(String sessionId) {
/**
* Will give a handle to delete the tokens generated during a specific interaction.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "session_id", nulls = Nulls.SKIP)
public _FinalStage sessionId(Optional sessionId) {
this.sessionId = sessionId;
return this;
}
- @java.lang.Override
+ @Override
public V1DetectFileRequest build() {
return new V1DetectFileRequest(
file,
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/AsyncFilesClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/AsyncFilesClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/files/AsyncFilesClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/AsyncFilesClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/AsyncRawFilesClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/AsyncRawFilesClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/files/AsyncRawFilesClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/AsyncRawFilesClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/FilesClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/FilesClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/files/FilesClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/FilesClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/RawFilesClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/RawFilesClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/files/RawFilesClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/RawFilesClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyAudioRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyAudioRequest.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyAudioRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyAudioRequest.java
index 5f4929aa..181693c6 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyAudioRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyAudioRequest.java
@@ -172,7 +172,7 @@ public Optional getTransformations() {
return transformations;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof DeidentifyAudioRequest && equalTo((DeidentifyAudioRequest) other);
@@ -199,7 +199,7 @@ private boolean equalTo(DeidentifyAudioRequest other) {
&& transformations.equals(other.transformations);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.vaultId,
@@ -217,7 +217,7 @@ public int hashCode() {
this.transformations);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -338,7 +338,7 @@ public static final class Builder implements VaultIdStage, FileStage, _FinalStag
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(DeidentifyAudioRequest other) {
vaultId(other.getVaultId());
file(other.getFile());
@@ -356,7 +356,7 @@ public Builder from(DeidentifyAudioRequest other) {
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter("vault_id")
public FileStage vaultId(@NotNull String vaultId) {
this.vaultId = Objects.requireNonNull(vaultId, "vaultId must not be null");
@@ -367,72 +367,72 @@ public FileStage vaultId(@NotNull String vaultId) {
* File to de-identify. Files are specified as Base64-encoded data.File to de-identify. Files are specified as Base64-encoded data.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("file")
public _FinalStage file(@NotNull DeidentifyAudioRequestFile file) {
this.file = Objects.requireNonNull(file, "file must not be null");
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage transformations(Transformations transformations) {
this.transformations = Optional.ofNullable(transformations);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "transformations", nulls = Nulls.SKIP)
public _FinalStage transformations(Optional transformations) {
this.transformations = transformations;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage restrictRegex(List restrictRegex) {
this.restrictRegex = Optional.ofNullable(restrictRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_regex", nulls = Nulls.SKIP)
public _FinalStage restrictRegex(Optional> restrictRegex) {
this.restrictRegex = restrictRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage allowRegex(List allowRegex) {
this.allowRegex = Optional.ofNullable(allowRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "allow_regex", nulls = Nulls.SKIP)
public _FinalStage allowRegex(Optional> allowRegex) {
this.allowRegex = allowRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage tokenType(TokenTypeWithoutVault tokenType) {
this.tokenType = Optional.ofNullable(tokenType);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "token_type", nulls = Nulls.SKIP)
public _FinalStage tokenType(Optional tokenType) {
this.tokenType = tokenType;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage entityTypes(List entityTypes) {
this.entityTypes = Optional.ofNullable(entityTypes);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "entity_types", nulls = Nulls.SKIP)
public _FinalStage entityTypes(Optional> entityTypes) {
this.entityTypes = entityTypes;
@@ -443,7 +443,7 @@ public _FinalStage entityTypes(Optional> entityTypes) {
* Padding added to the end of a bleep, in seconds.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage bleepStopPadding(Double bleepStopPadding) {
this.bleepStopPadding = Optional.ofNullable(bleepStopPadding);
return this;
@@ -452,7 +452,7 @@ public _FinalStage bleepStopPadding(Double bleepStopPadding) {
/**
* Padding added to the end of a bleep, in seconds.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "bleep_stop_padding", nulls = Nulls.SKIP)
public _FinalStage bleepStopPadding(Optional bleepStopPadding) {
this.bleepStopPadding = bleepStopPadding;
@@ -463,7 +463,7 @@ public _FinalStage bleepStopPadding(Optional bleepStopPadding) {
* Padding added to the beginning of a bleep, in seconds.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage bleepStartPadding(Double bleepStartPadding) {
this.bleepStartPadding = Optional.ofNullable(bleepStartPadding);
return this;
@@ -472,7 +472,7 @@ public _FinalStage bleepStartPadding(Double bleepStartPadding) {
/**
* Padding added to the beginning of a bleep, in seconds.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "bleep_start_padding", nulls = Nulls.SKIP)
public _FinalStage bleepStartPadding(Optional bleepStartPadding) {
this.bleepStartPadding = bleepStartPadding;
@@ -483,7 +483,7 @@ public _FinalStage bleepStartPadding(Optional bleepStartPadding) {
* The pitch of the bleep sound, in Hz. The higher the number, the higher the pitch.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage bleepFrequency(Double bleepFrequency) {
this.bleepFrequency = Optional.ofNullable(bleepFrequency);
return this;
@@ -492,7 +492,7 @@ public _FinalStage bleepFrequency(Double bleepFrequency) {
/**
* The pitch of the bleep sound, in Hz. The higher the number, the higher the pitch.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "bleep_frequency", nulls = Nulls.SKIP)
public _FinalStage bleepFrequency(Optional bleepFrequency) {
this.bleepFrequency = bleepFrequency;
@@ -503,7 +503,7 @@ public _FinalStage bleepFrequency(Optional bleepFrequency) {
* Relative loudness of the bleep in dB. Positive values increase its loudness, and negative values decrease it.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage bleepGain(Double bleepGain) {
this.bleepGain = Optional.ofNullable(bleepGain);
return this;
@@ -512,7 +512,7 @@ public _FinalStage bleepGain(Double bleepGain) {
/**
* Relative loudness of the bleep in dB. Positive values increase its loudness, and negative values decrease it.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "bleep_gain", nulls = Nulls.SKIP)
public _FinalStage bleepGain(Optional bleepGain) {
this.bleepGain = bleepGain;
@@ -523,7 +523,7 @@ public _FinalStage bleepGain(Optional bleepGain) {
* Type of transcription to output.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage outputTranscription(DeidentifyAudioRequestOutputTranscription outputTranscription) {
this.outputTranscription = Optional.ofNullable(outputTranscription);
return this;
@@ -532,7 +532,7 @@ public _FinalStage outputTranscription(DeidentifyAudioRequestOutputTranscription
/**
* Type of transcription to output.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "output_transcription", nulls = Nulls.SKIP)
public _FinalStage outputTranscription(
Optional outputTranscription) {
@@ -544,7 +544,7 @@ public _FinalStage outputTranscription(
* If true, includes processed audio file in the response.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage outputProcessedAudio(Boolean outputProcessedAudio) {
this.outputProcessedAudio = Optional.ofNullable(outputProcessedAudio);
return this;
@@ -553,14 +553,14 @@ public _FinalStage outputProcessedAudio(Boolean outputProcessedAudio) {
/**
* If true, includes processed audio file in the response.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "output_processed_audio", nulls = Nulls.SKIP)
public _FinalStage outputProcessedAudio(Optional outputProcessedAudio) {
this.outputProcessedAudio = outputProcessedAudio;
return this;
}
- @java.lang.Override
+ @Override
public DeidentifyAudioRequest build() {
return new DeidentifyAudioRequest(
vaultId,
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyDocumentRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyDocumentRequest.java
similarity index 95%
rename from src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyDocumentRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyDocumentRequest.java
index bf6f307e..80e8fff1 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyDocumentRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyDocumentRequest.java
@@ -99,7 +99,7 @@ public Optional getTransformations() {
return transformations;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof DeidentifyDocumentRequest && equalTo((DeidentifyDocumentRequest) other);
@@ -120,7 +120,7 @@ private boolean equalTo(DeidentifyDocumentRequest other) {
&& transformations.equals(other.transformations);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.vaultId,
@@ -132,7 +132,7 @@ public int hashCode() {
this.transformations);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -199,7 +199,7 @@ public static final class Builder implements VaultIdStage, FileStage, _FinalStag
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(DeidentifyDocumentRequest other) {
vaultId(other.getVaultId());
file(other.getFile());
@@ -211,7 +211,7 @@ public Builder from(DeidentifyDocumentRequest other) {
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter("vault_id")
public FileStage vaultId(@NotNull String vaultId) {
this.vaultId = Objects.requireNonNull(vaultId, "vaultId must not be null");
@@ -222,79 +222,79 @@ public FileStage vaultId(@NotNull String vaultId) {
* File to de-identify. Files are specified as Base64-encoded data.File to de-identify. Files are specified as Base64-encoded data.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("file")
public _FinalStage file(@NotNull DeidentifyDocumentRequestFile file) {
this.file = Objects.requireNonNull(file, "file must not be null");
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage transformations(Transformations transformations) {
this.transformations = Optional.ofNullable(transformations);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "transformations", nulls = Nulls.SKIP)
public _FinalStage transformations(Optional transformations) {
this.transformations = transformations;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage restrictRegex(List restrictRegex) {
this.restrictRegex = Optional.ofNullable(restrictRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_regex", nulls = Nulls.SKIP)
public _FinalStage restrictRegex(Optional> restrictRegex) {
this.restrictRegex = restrictRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage allowRegex(List allowRegex) {
this.allowRegex = Optional.ofNullable(allowRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "allow_regex", nulls = Nulls.SKIP)
public _FinalStage allowRegex(Optional> allowRegex) {
this.allowRegex = allowRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage tokenType(TokenTypeWithoutVault tokenType) {
this.tokenType = Optional.ofNullable(tokenType);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "token_type", nulls = Nulls.SKIP)
public _FinalStage tokenType(Optional tokenType) {
this.tokenType = tokenType;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage entityTypes(List entityTypes) {
this.entityTypes = Optional.ofNullable(entityTypes);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "entity_types", nulls = Nulls.SKIP)
public _FinalStage entityTypes(Optional> entityTypes) {
this.entityTypes = entityTypes;
return this;
}
- @java.lang.Override
+ @Override
public DeidentifyDocumentRequest build() {
return new DeidentifyDocumentRequest(
vaultId,
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyFileRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyFileRequest.java
similarity index 95%
rename from src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyFileRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyFileRequest.java
index 1cbcd8f1..bd8ec3a7 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyFileRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyFileRequest.java
@@ -99,7 +99,7 @@ public Optional getTransformations() {
return transformations;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof DeidentifyFileRequest && equalTo((DeidentifyFileRequest) other);
@@ -120,7 +120,7 @@ private boolean equalTo(DeidentifyFileRequest other) {
&& transformations.equals(other.transformations);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.vaultId,
@@ -132,7 +132,7 @@ public int hashCode() {
this.transformations);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -199,7 +199,7 @@ public static final class Builder implements VaultIdStage, FileStage, _FinalStag
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(DeidentifyFileRequest other) {
vaultId(other.getVaultId());
file(other.getFile());
@@ -211,7 +211,7 @@ public Builder from(DeidentifyFileRequest other) {
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter("vault_id")
public FileStage vaultId(@NotNull String vaultId) {
this.vaultId = Objects.requireNonNull(vaultId, "vaultId must not be null");
@@ -222,79 +222,79 @@ public FileStage vaultId(@NotNull String vaultId) {
* File to de-identify. Files are specified as Base64-encoded data.File to de-identify. Files are specified as Base64-encoded data.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("file")
public _FinalStage file(@NotNull DeidentifyFileRequestFile file) {
this.file = Objects.requireNonNull(file, "file must not be null");
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage transformations(Transformations transformations) {
this.transformations = Optional.ofNullable(transformations);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "transformations", nulls = Nulls.SKIP)
public _FinalStage transformations(Optional transformations) {
this.transformations = transformations;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage restrictRegex(List restrictRegex) {
this.restrictRegex = Optional.ofNullable(restrictRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_regex", nulls = Nulls.SKIP)
public _FinalStage restrictRegex(Optional> restrictRegex) {
this.restrictRegex = restrictRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage allowRegex(List allowRegex) {
this.allowRegex = Optional.ofNullable(allowRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "allow_regex", nulls = Nulls.SKIP)
public _FinalStage allowRegex(Optional> allowRegex) {
this.allowRegex = allowRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage tokenType(TokenTypeWithoutVault tokenType) {
this.tokenType = Optional.ofNullable(tokenType);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "token_type", nulls = Nulls.SKIP)
public _FinalStage tokenType(Optional tokenType) {
this.tokenType = tokenType;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage entityTypes(List entityTypes) {
this.entityTypes = Optional.ofNullable(entityTypes);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "entity_types", nulls = Nulls.SKIP)
public _FinalStage entityTypes(Optional> entityTypes) {
this.entityTypes = entityTypes;
return this;
}
- @java.lang.Override
+ @Override
public DeidentifyFileRequest build() {
return new DeidentifyFileRequest(
vaultId,
diff --git a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyImageRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyImageRequest.java
similarity index 95%
rename from src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyImageRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyImageRequest.java
index 41de24b2..94159f02 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyImageRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/files/requests/DeidentifyImageRequest.java
@@ -136,7 +136,7 @@ public Optional getTransformations() {
return transformations;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof DeidentifyImageRequest && equalTo((DeidentifyImageRequest) other);
@@ -160,7 +160,7 @@ private boolean equalTo(DeidentifyImageRequest other) {
&& transformations.equals(other.transformations);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.vaultId,
@@ -175,7 +175,7 @@ public int hashCode() {
this.transformations);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -269,7 +269,7 @@ public static final class Builder implements VaultIdStage, FileStage, _FinalStag
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(DeidentifyImageRequest other) {
vaultId(other.getVaultId());
file(other.getFile());
@@ -284,7 +284,7 @@ public Builder from(DeidentifyImageRequest other) {
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter("vault_id")
public FileStage vaultId(@NotNull String vaultId) {
this.vaultId = Objects.requireNonNull(vaultId, "vaultId must not be null");
@@ -295,72 +295,72 @@ public FileStage vaultId(@NotNull String vaultId) {
* File to de-identify. Files are specified as Base64-encoded data.File to de-identify. Files are specified as Base64-encoded data.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("file")
public _FinalStage file(@NotNull DeidentifyImageRequestFile file) {
this.file = Objects.requireNonNull(file, "file must not be null");
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage transformations(Transformations transformations) {
this.transformations = Optional.ofNullable(transformations);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "transformations", nulls = Nulls.SKIP)
public _FinalStage transformations(Optional transformations) {
this.transformations = transformations;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage restrictRegex(List restrictRegex) {
this.restrictRegex = Optional.ofNullable(restrictRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "restrict_regex", nulls = Nulls.SKIP)
public _FinalStage restrictRegex(Optional> restrictRegex) {
this.restrictRegex = restrictRegex;
return this;
}
- @java.lang.Override
+ @Override
public _FinalStage allowRegex(List allowRegex) {
this.allowRegex = Optional.ofNullable(allowRegex);
return this;
}
- @java.lang.Override
+ @Override
@JsonSetter(value = "allow_regex", nulls = Nulls.SKIP)
public _FinalStage allowRegex(Optional