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/v2/src/main/java/com/skyflow/generated/rest/core/Stream.java b/v2/src/main/java/com/skyflow/generated/rest/core/Stream.java
new file mode 100644
index 00000000..f037712a
--- /dev/null
+++ b/v2/src/main/java/com/skyflow/generated/rest/core/Stream.java
@@ -0,0 +1,97 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.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/v2/src/main/java/com/skyflow/generated/rest/core/Suppliers.java b/v2/src/main/java/com/skyflow/generated/rest/core/Suppliers.java
new file mode 100644
index 00000000..307d5852
--- /dev/null
+++ b/v2/src/main/java/com/skyflow/generated/rest/core/Suppliers.java
@@ -0,0 +1,23 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.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/src/main/java/com/skyflow/generated/rest/errors/BadRequestError.java b/v2/src/main/java/com/skyflow/generated/rest/errors/BadRequestError.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/errors/BadRequestError.java
rename to v2/src/main/java/com/skyflow/generated/rest/errors/BadRequestError.java
index c8d4bb99..80ae5e7c 100644
--- a/src/main/java/com/skyflow/generated/rest/errors/BadRequestError.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/errors/BadRequestError.java
@@ -25,7 +25,7 @@ public BadRequestError(Object body, Response rawResponse) {
/**
* @return the body
*/
- @java.lang.Override
+ @Override
public Object body() {
return this.body;
}
diff --git a/src/main/java/com/skyflow/generated/rest/errors/InternalServerError.java b/v2/src/main/java/com/skyflow/generated/rest/errors/InternalServerError.java
similarity index 97%
rename from src/main/java/com/skyflow/generated/rest/errors/InternalServerError.java
rename to v2/src/main/java/com/skyflow/generated/rest/errors/InternalServerError.java
index d29f2b82..ffeed9d7 100644
--- a/src/main/java/com/skyflow/generated/rest/errors/InternalServerError.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/errors/InternalServerError.java
@@ -26,7 +26,7 @@ public InternalServerError(ErrorResponse body, Response rawResponse) {
/**
* @return the body
*/
- @java.lang.Override
+ @Override
public ErrorResponse body() {
return this.body;
}
diff --git a/src/main/java/com/skyflow/generated/rest/errors/NotFoundError.java b/v2/src/main/java/com/skyflow/generated/rest/errors/NotFoundError.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/errors/NotFoundError.java
rename to v2/src/main/java/com/skyflow/generated/rest/errors/NotFoundError.java
index efa94aad..1d0a6ad0 100644
--- a/src/main/java/com/skyflow/generated/rest/errors/NotFoundError.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/errors/NotFoundError.java
@@ -25,7 +25,7 @@ public NotFoundError(Object body, Response rawResponse) {
/**
* @return the body
*/
- @java.lang.Override
+ @Override
public Object body() {
return this.body;
}
diff --git a/src/main/java/com/skyflow/generated/rest/errors/UnauthorizedError.java b/v2/src/main/java/com/skyflow/generated/rest/errors/UnauthorizedError.java
similarity index 96%
rename from src/main/java/com/skyflow/generated/rest/errors/UnauthorizedError.java
rename to v2/src/main/java/com/skyflow/generated/rest/errors/UnauthorizedError.java
index 3b6d6ae1..3bc254bc 100644
--- a/src/main/java/com/skyflow/generated/rest/errors/UnauthorizedError.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/errors/UnauthorizedError.java
@@ -25,7 +25,7 @@ public UnauthorizedError(Object body, Response rawResponse) {
/**
* @return the body
*/
- @java.lang.Override
+ @Override
public Object body() {
return this.body;
}
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncAuditClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncAuditClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/AsyncAuditClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncAuditClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncRawAuditClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncRawAuditClient.java
similarity index 95%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/AsyncRawAuditClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncRawAuditClient.java
index 875ca259..e1516eaf 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncRawAuditClient.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/AsyncRawAuditClient.java
@@ -4,27 +4,15 @@
package com.skyflow.generated.rest.resources.audit;
import com.fasterxml.jackson.core.JsonProcessingException;
-import com.skyflow.generated.rest.core.ApiClientApiException;
-import com.skyflow.generated.rest.core.ApiClientException;
-import com.skyflow.generated.rest.core.ApiClientHttpResponse;
-import com.skyflow.generated.rest.core.ClientOptions;
-import com.skyflow.generated.rest.core.ObjectMappers;
-import com.skyflow.generated.rest.core.QueryStringMapper;
-import com.skyflow.generated.rest.core.RequestOptions;
+import com.skyflow.generated.rest.core.*;
import com.skyflow.generated.rest.errors.NotFoundError;
import com.skyflow.generated.rest.resources.audit.requests.AuditServiceListAuditEventsRequest;
import com.skyflow.generated.rest.types.V1AuditResponse;
+import okhttp3.*;
+import org.jetbrains.annotations.NotNull;
+
import java.io.IOException;
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.Response;
-import okhttp3.ResponseBody;
-import org.jetbrains.annotations.NotNull;
public class AsyncRawAuditClient {
protected final ClientOptions clientOptions;
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/AuditClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/AuditClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/AuditClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/AuditClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/RawAuditClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/RawAuditClient.java
similarity index 100%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/RawAuditClient.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/RawAuditClient.java
diff --git a/src/main/java/com/skyflow/generated/rest/resources/audit/requests/AuditServiceListAuditEventsRequest.java b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/requests/AuditServiceListAuditEventsRequest.java
similarity index 97%
rename from src/main/java/com/skyflow/generated/rest/resources/audit/requests/AuditServiceListAuditEventsRequest.java
rename to v2/src/main/java/com/skyflow/generated/rest/resources/audit/requests/AuditServiceListAuditEventsRequest.java
index 3da04589..8b6686e4 100644
--- a/src/main/java/com/skyflow/generated/rest/resources/audit/requests/AuditServiceListAuditEventsRequest.java
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/audit/requests/AuditServiceListAuditEventsRequest.java
@@ -430,7 +430,7 @@ public Optional getOffset() {
return offset;
}
- @java.lang.Override
+ @Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof AuditServiceListAuditEventsRequest
@@ -478,7 +478,7 @@ private boolean equalTo(AuditServiceListAuditEventsRequest other) {
&& offset.equals(other.offset);
}
- @java.lang.Override
+ @Override
public int hashCode() {
return Objects.hash(
this.filterOpsContextChangeId,
@@ -516,7 +516,7 @@ public int hashCode() {
this.offset);
}
- @java.lang.Override
+ @Override
public String toString() {
return ObjectMappers.stringify(this);
}
@@ -848,7 +848,7 @@ public static final class Builder implements FilterOpsAccountIdStage, _FinalStag
private Builder() {}
- @java.lang.Override
+ @Override
public Builder from(AuditServiceListAuditEventsRequest other) {
filterOpsContextChangeId(other.getFilterOpsContextChangeId());
filterOpsContextRequestId(other.getFilterOpsContextRequestId());
@@ -890,7 +890,7 @@ public Builder from(AuditServiceListAuditEventsRequest other) {
* Resources with the specified account ID.Resources with the specified account ID.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
@JsonSetter("filterOps.accountID")
public _FinalStage filterOpsAccountId(@NotNull String filterOpsAccountId) {
this.filterOpsAccountId = Objects.requireNonNull(filterOpsAccountId, "filterOpsAccountId must not be null");
@@ -901,7 +901,7 @@ public _FinalStage filterOpsAccountId(@NotNull String filterOpsAccountId) {
* Record position at which to start returning results.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage offset(Long offset) {
this.offset = Optional.ofNullable(offset);
return this;
@@ -910,7 +910,7 @@ public _FinalStage offset(Long offset) {
/**
* Record position at which to start returning results.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "offset", nulls = Nulls.SKIP)
public _FinalStage offset(Optional offset) {
this.offset = offset;
@@ -921,7 +921,7 @@ public _FinalStage offset(Optional offset) {
* Number of results to return.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage limit(Long limit) {
this.limit = Optional.ofNullable(limit);
return this;
@@ -930,7 +930,7 @@ public _FinalStage limit(Long limit) {
/**
* Number of results to return.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "limit", nulls = Nulls.SKIP)
public _FinalStage limit(Optional limit) {
this.limit = limit;
@@ -941,7 +941,7 @@ public _FinalStage limit(Optional limit) {
* Change ID provided in the previous audit response's nextOps attribute. An alternate way to manage response pagination. Can't be used with sortOps or offset. For the first request in a series of audit requests, leave blank.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage afterOpsChangeId(String afterOpsChangeId) {
this.afterOpsChangeId = Optional.ofNullable(afterOpsChangeId);
return this;
@@ -950,7 +950,7 @@ public _FinalStage afterOpsChangeId(String afterOpsChangeId) {
/**
* Change ID provided in the previous audit response's nextOps attribute. An alternate way to manage response pagination. Can't be used with sortOps or offset. For the first request in a series of audit requests, leave blank.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "afterOps.changeID", nulls = Nulls.SKIP)
public _FinalStage afterOpsChangeId(Optional afterOpsChangeId) {
this.afterOpsChangeId = afterOpsChangeId;
@@ -961,7 +961,7 @@ public _FinalStage afterOpsChangeId(Optional afterOpsChangeId) {
* Timestamp provided in the previous audit response's nextOps attribute. An alternate way to manage response pagination. Can't be used with sortOps or offset. For the first request in a series of audit requests, leave blank.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage afterOpsTimestamp(String afterOpsTimestamp) {
this.afterOpsTimestamp = Optional.ofNullable(afterOpsTimestamp);
return this;
@@ -970,7 +970,7 @@ public _FinalStage afterOpsTimestamp(String afterOpsTimestamp) {
/**
* Timestamp provided in the previous audit response's nextOps attribute. An alternate way to manage response pagination. Can't be used with sortOps or offset. For the first request in a series of audit requests, leave blank.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "afterOps.timestamp", nulls = Nulls.SKIP)
public _FinalStage afterOpsTimestamp(Optional afterOpsTimestamp) {
this.afterOpsTimestamp = afterOpsTimestamp;
@@ -981,7 +981,7 @@ public _FinalStage afterOpsTimestamp(Optional afterOpsTimestamp) {
* Ascending or descending ordering of results.
* @return Reference to {@code this} so that method calls can be chained together.
*/
- @java.lang.Override
+ @Override
public _FinalStage sortOpsOrderBy(AuditServiceListAuditEventsRequestSortOpsOrderBy sortOpsOrderBy) {
this.sortOpsOrderBy = Optional.ofNullable(sortOpsOrderBy);
return this;
@@ -990,7 +990,7 @@ public _FinalStage sortOpsOrderBy(AuditServiceListAuditEventsRequestSortOpsOrder
/**
* Ascending or descending ordering of results.
*/
- @java.lang.Override
+ @Override
@JsonSetter(value = "sortOps.orderBy", nulls = Nulls.SKIP)
public _FinalStage sortOpsOrderBy(Optional sortOpsOrderBy) {
this.sortOpsOrderBy = sortOpsOrderBy;
@@ -1001,7 +1001,7 @@ public _FinalStage sortOpsOrderBy(OptionalFully-qualified field by which to sort results. Field names should be in camel case (for example, "capitalization.camelCase").
* @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/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java
new file mode 100644
index 00000000..43ffab73
--- /dev/null
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AsyncAuthenticationClient.java
@@ -0,0 +1,45 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.rest.resources.authentication;
+
+import com.skyflow.generated.rest.core.ClientOptions;
+import com.skyflow.generated.rest.core.RequestOptions;
+import com.skyflow.generated.rest.resources.authentication.requests.V1GetAuthTokenRequest;
+import com.skyflow.generated.rest.types.V1GetAuthTokenResponse;
+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/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/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java
new file mode 100644
index 00000000..662bfb3d
--- /dev/null
+++ b/v2/src/main/java/com/skyflow/generated/rest/resources/authentication/AuthenticationClient.java
@@ -0,0 +1,44 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.skyflow.generated.rest.resources.authentication;
+
+import com.skyflow.generated.rest.core.ClientOptions;
+import com.skyflow.generated.rest.core.RequestOptions;
+import com.skyflow.generated.rest.resources.authentication.requests.V1GetAuthTokenRequest;
+import com.skyflow.generated.rest.types.V1GetAuthTokenResponse;
+
+public class AuthenticationClient {
+ protected final ClientOptions clientOptions;
+
+ private final RawAuthenticationClient rawClient;
+
+ public AuthenticationClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ this.rawClient = new RawAuthenticationClient(clientOptions);
+ }
+
+ /**
+ * Get responses with HTTP metadata like headers
+ */
+ public RawAuthenticationClient 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 V1GetAuthTokenResponse authenticationServiceGetAuthToken(V1GetAuthTokenRequest request) {
+ return this.rawClient.authenticationServiceGetAuthToken(request).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 V1GetAuthTokenResponse authenticationServiceGetAuthToken(
+ V1GetAuthTokenRequest request, RequestOptions requestOptions) {
+ return this.rawClient
+ .authenticationServiceGetAuthToken(request, requestOptions)
+ .body();
+ }
+}
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) {
*