operation
- = new ListcollectionsOperation(sdkConfiguration);
+ = new Listcollections.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Data.java b/src/main/java/com/glean/api_client/glean_api_client/Data.java
index 26d1f16f..5876a234 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Data.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Data.java
@@ -5,18 +5,21 @@
public class Data {
private final SDKConfiguration sdkConfiguration;
-private final Policies policies;
-private final Reports reports;
+ private final Policies policies;
+ private final Reports reports;
Data(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
this.policies = new Policies(this.sdkConfiguration);
this.reports = new Reports(this.sdkConfiguration);
}
-public final Policies policies() {
+
+ public final Policies policies() {
return policies;
}
-public final Reports reports() {
+
+ public final Reports reports() {
return reports;
}
+
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Datasource.java b/src/main/java/com/glean/api_client/glean_api_client/Datasource.java
index 613ede2e..1d883f12 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Datasource.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Datasource.java
@@ -8,11 +8,9 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceStatusRequest;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceStatusRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceStatusResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceStatusOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceStatus;
import java.lang.Exception;
import java.lang.String;
-import java.util.List;
-import java.util.Optional;
public class Datasource {
@@ -21,12 +19,13 @@ public class Datasource {
Datasource(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Beta: Get datasource status
*
* Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @return The call builder
*/
@@ -39,7 +38,7 @@ public PostApiIndexV1DebugDatasourceStatusRequestBuilder status() {
*
*
Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @param datasource The datasource to get debug status for.
* @return The response from the API call
@@ -52,7 +51,7 @@ public PostApiIndexV1DebugDatasourceStatusResponse status(String datasource) thr
.datasource(datasource)
.build();
RequestOperation operation
- = new PostApiIndexV1DebugDatasourceStatusOperation(sdkConfiguration);
+ = new PostApiIndexV1DebugDatasourceStatus.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Datasources.java b/src/main/java/com/glean/api_client/glean_api_client/Datasources.java
index da93fc3f..fe7c42c9 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Datasources.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Datasources.java
@@ -11,11 +11,9 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1AdddatasourceResponse;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1GetdatasourceconfigRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1GetdatasourceconfigResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1AdddatasourceOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1GetdatasourceconfigOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Adddatasource;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Getdatasourceconfig;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class Datasources {
@@ -24,6 +22,7 @@ public class Datasources {
Datasources(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Add or update datasource
*
@@ -46,7 +45,7 @@ public PostApiIndexV1AdddatasourceRequestBuilder add() {
*/
public PostApiIndexV1AdddatasourceResponse add(CustomDatasourceConfig request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1AdddatasourceOperation(sdkConfiguration);
+ = new PostApiIndexV1Adddatasource.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -72,7 +71,7 @@ public PostApiIndexV1GetdatasourceconfigRequestBuilder retrieveConfig() {
*/
public PostApiIndexV1GetdatasourceconfigResponse retrieveConfig(GetDatasourceConfigRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1GetdatasourceconfigOperation(sdkConfiguration);
+ = new PostApiIndexV1Getdatasourceconfig.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Entities.java b/src/main/java/com/glean/api_client/glean_api_client/Entities.java
index 4f1ff3ad..18d961eb 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Entities.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Entities.java
@@ -11,11 +11,9 @@
import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse;
import com.glean.api_client.glean_api_client.models.operations.PeopleRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PeopleResponse;
-import com.glean.api_client.glean_api_client.operations.ListentitiesOperation;
-import com.glean.api_client.glean_api_client.operations.PeopleOperation;
+import com.glean.api_client.glean_api_client.operations.Listentities;
+import com.glean.api_client.glean_api_client.operations.People;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class Entities {
@@ -24,6 +22,7 @@ public class Entities {
Entities(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* List entities
*
@@ -46,7 +45,7 @@ public ListentitiesRequestBuilder list() {
*/
public ListentitiesResponse list(ListEntitiesRequest request) throws Exception {
RequestOperation operation
- = new ListentitiesOperation(sdkConfiguration);
+ = new Listentities.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -72,7 +71,7 @@ public PeopleRequestBuilder readPeople() {
*/
public PeopleResponse readPeople(PeopleRequest request) throws Exception {
RequestOperation operation
- = new PeopleOperation(sdkConfiguration);
+ = new People.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Governance.java b/src/main/java/com/glean/api_client/glean_api_client/Governance.java
index 4d3f0707..6200f4dc 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Governance.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Governance.java
@@ -5,18 +5,21 @@
public class Governance {
private final SDKConfiguration sdkConfiguration;
-private final Data data;
-private final GovernanceDocuments documents;
+ private final Data data;
+ private final GovernanceDocuments documents;
Governance(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
this.data = new Data(this.sdkConfiguration);
this.documents = new GovernanceDocuments(this.sdkConfiguration);
}
-public final Data data() {
+
+ public final Data data() {
return data;
}
-public final GovernanceDocuments documents() {
+
+ public final GovernanceDocuments documents() {
return documents;
}
+
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/GovernanceDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/GovernanceDocuments.java
index fc8ca9f9..f114eef9 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/GovernanceDocuments.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/GovernanceDocuments.java
@@ -5,13 +5,15 @@
public class GovernanceDocuments {
private final SDKConfiguration sdkConfiguration;
-private final Visibilityoverrides visibilityoverrides;
+ private final Visibilityoverrides visibilityoverrides;
GovernanceDocuments(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
this.visibilityoverrides = new Visibilityoverrides(this.sdkConfiguration);
}
-public final Visibilityoverrides visibilityoverrides() {
+
+ public final Visibilityoverrides visibilityoverrides() {
return visibilityoverrides;
}
+
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Indexing.java b/src/main/java/com/glean/api_client/glean_api_client/Indexing.java
index 61199883..3eaeba65 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Indexing.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Indexing.java
@@ -5,13 +5,13 @@
public class Indexing {
private final SDKConfiguration sdkConfiguration;
-private final IndexingDocuments documents;
-private final Permissions permissions;
-private final Datasource datasource;
-private final People people;
-private final Datasources datasources;
-private final IndexingAuthentication authentication;
-private final IndexingShortcuts shortcuts;
+ private final IndexingDocuments documents;
+ private final Permissions permissions;
+ private final Datasource datasource;
+ private final People people;
+ private final Datasources datasources;
+ private final IndexingAuthentication authentication;
+ private final IndexingShortcuts shortcuts;
Indexing(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
@@ -23,25 +23,33 @@ public class Indexing {
this.authentication = new IndexingAuthentication(this.sdkConfiguration);
this.shortcuts = new IndexingShortcuts(this.sdkConfiguration);
}
-public final IndexingDocuments documents() {
+
+ public final IndexingDocuments documents() {
return documents;
}
-public final Permissions permissions() {
+
+ public final Permissions permissions() {
return permissions;
}
-public final Datasource datasource() {
+
+ public final Datasource datasource() {
return datasource;
}
-public final People people() {
+
+ public final People people() {
return people;
}
-public final Datasources datasources() {
+
+ public final Datasources datasources() {
return datasources;
}
-public final IndexingAuthentication authentication() {
+
+ public final IndexingAuthentication authentication() {
return authentication;
}
-public final IndexingShortcuts shortcuts() {
+
+ public final IndexingShortcuts shortcuts() {
return shortcuts;
}
+
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java
index f25333bb..93338c46 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java
@@ -7,10 +7,8 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1RotatetokenRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1RotatetokenResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1RotatetokenOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Rotatetoken;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class IndexingAuthentication {
@@ -19,10 +17,11 @@ public class IndexingAuthentication {
IndexingAuthentication(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Rotate token
*
- * Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/docs/indexing_api_token_rotation/) documentation for more information.
+ *
Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information.
*
* @return The call builder
*/
@@ -33,14 +32,14 @@ public PostApiIndexV1RotatetokenRequestBuilder rotateToken() {
/**
* Rotate token
*
- *
Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/docs/indexing_api_token_rotation/) documentation for more information.
+ *
Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information.
*
* @return The response from the API call
* @throws Exception if the API call fails
*/
public PostApiIndexV1RotatetokenResponse rotateTokenDirect() throws Exception {
RequestlessOperation operation
- = new PostApiIndexV1RotatetokenOperation(sdkConfiguration);
+ = new PostApiIndexV1Rotatetoken.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest());
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java
index de20aed6..129a2946 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java
@@ -37,20 +37,19 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexdocumentsResponse;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessalldocumentsRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessalldocumentsResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexdocumentsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1CheckdocumentaccessOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocumentOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocumentsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DeletedocumentOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1GetdocumentcountOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1GetdocumentstatusOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexdocumentOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexdocumentsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1ProcessalldocumentsOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexdocuments;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Checkdocumentaccess;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocument;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceDocuments;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deletedocument;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Getdocumentcount;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Getdocumentstatus;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexdocument;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexdocuments;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Processalldocuments;
import java.lang.Deprecated;
import java.lang.Exception;
import java.lang.String;
-import java.util.List;
import java.util.Optional;
@@ -60,6 +59,7 @@ public class IndexingDocuments {
IndexingDocuments(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Index document
*
@@ -82,14 +82,14 @@ public PostApiIndexV1IndexdocumentRequestBuilder addOrUpdate() {
*/
public PostApiIndexV1IndexdocumentResponse addOrUpdate(IndexDocumentRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexdocumentOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexdocument.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Index documents
*
- * Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint.
+ *
Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint.
*
* @return The call builder
*/
@@ -100,7 +100,7 @@ public PostApiIndexV1IndexdocumentsRequestBuilder index() {
/**
* Index documents
*
- *
Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint.
+ *
Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -108,14 +108,14 @@ public PostApiIndexV1IndexdocumentsRequestBuilder index() {
*/
public PostApiIndexV1IndexdocumentsResponse index(IndexDocumentsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexdocumentsOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexdocuments.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Bulk index documents
*
- * Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @return The call builder
*/
@@ -126,7 +126,7 @@ public PostApiIndexV1BulkindexdocumentsRequestBuilder bulkIndex() {
/**
* Bulk index documents
*
- *
Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -134,7 +134,7 @@ public PostApiIndexV1BulkindexdocumentsRequestBuilder bulkIndex() {
*/
public PostApiIndexV1BulkindexdocumentsResponse bulkIndex(BulkIndexDocumentsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexdocumentsOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexdocuments.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -202,7 +202,7 @@ public PostApiIndexV1ProcessalldocumentsResponse processAllDirect() throws Excep
*/
public PostApiIndexV1ProcessalldocumentsResponse processAll(Optional extends ProcessAllDocumentsRequest> request) throws Exception {
RequestOperation, PostApiIndexV1ProcessalldocumentsResponse> operation
- = new PostApiIndexV1ProcessalldocumentsOperation(sdkConfiguration);
+ = new PostApiIndexV1Processalldocuments.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -228,7 +228,7 @@ public PostApiIndexV1DeletedocumentRequestBuilder delete() {
*/
public PostApiIndexV1DeletedocumentResponse delete(DeleteDocumentRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1DeletedocumentOperation(sdkConfiguration);
+ = new PostApiIndexV1Deletedocument.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -237,7 +237,7 @@ public PostApiIndexV1DeletedocumentResponse delete(DeleteDocumentRequest request
*
* Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @return The call builder
*/
@@ -250,16 +250,14 @@ public PostApiIndexV1DebugDatasourceDocumentRequestBuilder debug() {
*
*
Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @param datasource The datasource to which the document belongs
* @param debugDocumentRequest Describes the request body of the /debug/{datasource}/document API call.
* @return The response from the API call
* @throws Exception if the API call fails
*/
- public PostApiIndexV1DebugDatasourceDocumentResponse debug(
- String datasource,
- DebugDocumentRequest debugDocumentRequest) throws Exception {
+ public PostApiIndexV1DebugDatasourceDocumentResponse debug(String datasource, DebugDocumentRequest debugDocumentRequest) throws Exception {
PostApiIndexV1DebugDatasourceDocumentRequest request =
PostApiIndexV1DebugDatasourceDocumentRequest
.builder()
@@ -267,7 +265,7 @@ public PostApiIndexV1DebugDatasourceDocumentResponse debug(
.debugDocumentRequest(debugDocumentRequest)
.build();
RequestOperation operation
- = new PostApiIndexV1DebugDatasourceDocumentOperation(sdkConfiguration);
+ = new PostApiIndexV1DebugDatasourceDocument.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -276,7 +274,7 @@ public PostApiIndexV1DebugDatasourceDocumentResponse debug(
*
* Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @return The call builder
*/
@@ -289,16 +287,14 @@ public PostApiIndexV1DebugDatasourceDocumentsRequestBuilder debugMany() {
*
*
Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @param datasource The datasource to which the document belongs
* @param debugDocumentsRequest Describes the request body of the /debug/{datasource}/documents API call.
* @return The response from the API call
* @throws Exception if the API call fails
*/
- public PostApiIndexV1DebugDatasourceDocumentsResponse debugMany(
- String datasource,
- DebugDocumentsRequest debugDocumentsRequest) throws Exception {
+ public PostApiIndexV1DebugDatasourceDocumentsResponse debugMany(String datasource, DebugDocumentsRequest debugDocumentsRequest) throws Exception {
PostApiIndexV1DebugDatasourceDocumentsRequest request =
PostApiIndexV1DebugDatasourceDocumentsRequest
.builder()
@@ -306,7 +302,7 @@ public PostApiIndexV1DebugDatasourceDocumentsResponse debugMany(
.debugDocumentsRequest(debugDocumentsRequest)
.build();
RequestOperation operation
- = new PostApiIndexV1DebugDatasourceDocumentsOperation(sdkConfiguration);
+ = new PostApiIndexV1DebugDatasourceDocuments.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -315,7 +311,7 @@ public PostApiIndexV1DebugDatasourceDocumentsResponse debugMany(
*
* Check if a given user has access to access a document in a custom datasource
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @return The call builder
*/
@@ -328,7 +324,7 @@ public PostApiIndexV1CheckdocumentaccessRequestBuilder checkAccess() {
*
*
Check if a given user has access to access a document in a custom datasource
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -336,7 +332,7 @@ public PostApiIndexV1CheckdocumentaccessRequestBuilder checkAccess() {
*/
public PostApiIndexV1CheckdocumentaccessResponse checkAccess(CheckDocumentAccessRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1CheckdocumentaccessOperation(sdkConfiguration);
+ = new PostApiIndexV1Checkdocumentaccess.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -345,7 +341,7 @@ public PostApiIndexV1CheckdocumentaccessResponse checkAccess(CheckDocumentAccess
*
* Intended for debugging/validation. Fetches the current upload and indexing status of documents.
*
- *
Tip: Use [/debug/{datasource}/document](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/#debug-datasource-document) for richer information.
+ *
Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information.
*
* @return The call builder
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -360,7 +356,7 @@ public PostApiIndexV1GetdocumentstatusRequestBuilder status() {
*
*
Intended for debugging/validation. Fetches the current upload and indexing status of documents.
*
- *
Tip: Use [/debug/{datasource}/document](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/#debug-datasource-document) for richer information.
+ *
Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -370,7 +366,7 @@ public PostApiIndexV1GetdocumentstatusRequestBuilder status() {
@Deprecated
public PostApiIndexV1GetdocumentstatusResponse status(GetDocumentStatusRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1GetdocumentstatusOperation(sdkConfiguration);
+ = new PostApiIndexV1Getdocumentstatus.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -379,7 +375,7 @@ public PostApiIndexV1GetdocumentstatusResponse status(GetDocumentStatusRequest r
*
* Fetches document count for the specified custom datasource.
*
- *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/#debug-datasource-status) for richer information.
+ *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
*
* @return The call builder
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -394,7 +390,7 @@ public PostApiIndexV1GetdocumentcountRequestBuilder count() {
*
*
Fetches document count for the specified custom datasource.
*
- *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/#debug-datasource-status) for richer information.
+ *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -404,7 +400,7 @@ public PostApiIndexV1GetdocumentcountRequestBuilder count() {
@Deprecated
public PostApiIndexV1GetdocumentcountResponse count(GetDocumentCountRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1GetdocumentcountOperation(sdkConfiguration);
+ = new PostApiIndexV1Getdocumentcount.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java
index 25f88664..edc0df1e 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java
@@ -11,11 +11,9 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BulkindexshortcutsResponse;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1UploadshortcutsRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1UploadshortcutsResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexshortcutsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1UploadshortcutsOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexshortcuts;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Uploadshortcuts;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class IndexingShortcuts {
@@ -24,6 +22,7 @@ public class IndexingShortcuts {
IndexingShortcuts(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Bulk index external shortcuts
*
@@ -46,7 +45,7 @@ public PostApiIndexV1BulkindexshortcutsRequestBuilder bulkIndex() {
*/
public PostApiIndexV1BulkindexshortcutsResponse bulkIndex(BulkIndexShortcutsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexshortcutsOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexshortcuts.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -72,7 +71,7 @@ public PostApiIndexV1UploadshortcutsRequestBuilder upload() {
*/
public PostApiIndexV1UploadshortcutsResponse upload(UploadShortcutsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1UploadshortcutsOperation(sdkConfiguration);
+ = new PostApiIndexV1Uploadshortcuts.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Insights.java b/src/main/java/com/glean/api_client/glean_api_client/Insights.java
index cf6b0a0e..0c07bf6f 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Insights.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Insights.java
@@ -8,10 +8,7 @@
import com.glean.api_client.glean_api_client.models.components.InsightsRequest;
import com.glean.api_client.glean_api_client.models.operations.InsightsRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.InsightsResponse;
-import com.glean.api_client.glean_api_client.operations.InsightsOperation;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class Insights {
@@ -20,6 +17,7 @@ public class Insights {
Insights(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Read insights
*
@@ -42,7 +40,7 @@ public InsightsRequestBuilder retrieve() {
*/
public InsightsResponse retrieve(InsightsRequest request) throws Exception {
RequestOperation operation
- = new InsightsOperation(sdkConfiguration);
+ = new com.glean.api_client.glean_api_client.operations.Insights.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Messages.java b/src/main/java/com/glean/api_client/glean_api_client/Messages.java
index fea3f5f0..b7702569 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Messages.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Messages.java
@@ -8,10 +8,7 @@
import com.glean.api_client.glean_api_client.models.components.MessagesRequest;
import com.glean.api_client.glean_api_client.models.operations.MessagesRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.MessagesResponse;
-import com.glean.api_client.glean_api_client.operations.MessagesOperation;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class Messages {
@@ -20,6 +17,7 @@ public class Messages {
Messages(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Read messages
*
@@ -42,7 +40,7 @@ public MessagesRequestBuilder retrieve() {
*/
public MessagesResponse retrieve(MessagesRequest request) throws Exception {
RequestOperation operation
- = new MessagesOperation(sdkConfiguration);
+ = new com.glean.api_client.glean_api_client.operations.Messages.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/People.java b/src/main/java/com/glean/api_client/glean_api_client/People.java
index 2262f6f1..ae325e4b 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/People.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/People.java
@@ -33,20 +33,18 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexteamResponse;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessallemployeesandteamsRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessallemployeesandteamsResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexemployeesOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexteamsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceUserOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DeleteemployeeOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DeleteteamOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1GetusercountOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexemployeeOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexteamOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1ProcessallemployeesandteamsOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexemployees;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexteams;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DebugDatasourceUser;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deleteemployee;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deleteteam;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Getusercount;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexemployee;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexteam;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Processallemployeesandteams;
import java.lang.Deprecated;
import java.lang.Exception;
import java.lang.String;
-import java.util.List;
-import java.util.Optional;
public class People {
@@ -55,12 +53,13 @@ public class People {
People(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Beta: Get user information
*
* Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @return The call builder
*/
@@ -73,16 +72,14 @@ public PostApiIndexV1DebugDatasourceUserRequestBuilder debug() {
*
*
Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice.
*
- *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/) for more information.
+ *
Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information.
*
* @param datasource The datasource to which the user belongs
* @param debugUserRequest Describes the request body of the /debug/{datasource}/user API call
* @return The response from the API call
* @throws Exception if the API call fails
*/
- public PostApiIndexV1DebugDatasourceUserResponse debug(
- String datasource,
- DebugUserRequest debugUserRequest) throws Exception {
+ public PostApiIndexV1DebugDatasourceUserResponse debug(String datasource, DebugUserRequest debugUserRequest) throws Exception {
PostApiIndexV1DebugDatasourceUserRequest request =
PostApiIndexV1DebugDatasourceUserRequest
.builder()
@@ -90,7 +87,7 @@ public PostApiIndexV1DebugDatasourceUserResponse debug(
.debugUserRequest(debugUserRequest)
.build();
RequestOperation operation
- = new PostApiIndexV1DebugDatasourceUserOperation(sdkConfiguration);
+ = new PostApiIndexV1DebugDatasourceUser.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -99,7 +96,7 @@ public PostApiIndexV1DebugDatasourceUserResponse debug(
*
* Fetches user count for the specified custom datasource.
*
- *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/#debug-datasource-status) for richer information.
+ *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
*
* @return The call builder
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -114,7 +111,7 @@ public PostApiIndexV1GetusercountRequestBuilder count() {
*
*
Fetches user count for the specified custom datasource.
*
- *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/docs/indexing_api/indexing_api_troubleshooting/#debug-datasource-status) for richer information.
+ *
Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -124,7 +121,7 @@ public PostApiIndexV1GetusercountRequestBuilder count() {
@Deprecated
public PostApiIndexV1GetusercountResponse count(GetUserCountRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1GetusercountOperation(sdkConfiguration);
+ = new PostApiIndexV1Getusercount.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -150,14 +147,14 @@ public PostApiIndexV1IndexemployeeRequestBuilder index() {
*/
public PostApiIndexV1IndexemployeeResponse index(IndexEmployeeRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexemployeeOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexemployee.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Bulk index employees
*
- * Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @return The call builder
*/
@@ -168,7 +165,7 @@ public PostApiIndexV1BulkindexemployeesRequestBuilder bulkIndex() {
/**
* Bulk index employees
*
- *
Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -176,7 +173,7 @@ public PostApiIndexV1BulkindexemployeesRequestBuilder bulkIndex() {
*/
public PostApiIndexV1BulkindexemployeesResponse bulkIndex(BulkIndexEmployeesRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexemployeesOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexemployees.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -201,7 +198,7 @@ public PostApiIndexV1ProcessallemployeesandteamsRequestBuilder processAllEmploye
*/
public PostApiIndexV1ProcessallemployeesandteamsResponse processAllEmployeesAndTeamsDirect() throws Exception {
RequestlessOperation operation
- = new PostApiIndexV1ProcessallemployeesandteamsOperation(sdkConfiguration);
+ = new PostApiIndexV1Processallemployeesandteams.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest());
}
@@ -227,7 +224,7 @@ public PostApiIndexV1DeleteemployeeRequestBuilder delete() {
*/
public PostApiIndexV1DeleteemployeeResponse delete(DeleteEmployeeRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1DeleteemployeeOperation(sdkConfiguration);
+ = new PostApiIndexV1Deleteemployee.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -253,7 +250,7 @@ public PostApiIndexV1IndexteamRequestBuilder indexTeam() {
*/
public PostApiIndexV1IndexteamResponse indexTeam(IndexTeamRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexteamOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexteam.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -279,14 +276,14 @@ public PostApiIndexV1DeleteteamRequestBuilder deleteTeam() {
*/
public PostApiIndexV1DeleteteamResponse deleteTeam(DeleteTeamRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1DeleteteamOperation(sdkConfiguration);
+ = new PostApiIndexV1Deleteteam.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Bulk index teams
*
- * Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @return The call builder
*/
@@ -297,7 +294,7 @@ public PostApiIndexV1BulkindexteamsRequestBuilder bulkIndexTeams() {
/**
* Bulk index teams
*
- *
Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -305,7 +302,7 @@ public PostApiIndexV1BulkindexteamsRequestBuilder bulkIndexTeams() {
*/
public PostApiIndexV1BulkindexteamsResponse bulkIndexTeams(BulkIndexTeamsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexteamsOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexteams.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Permissions.java b/src/main/java/com/glean/api_client/glean_api_client/Permissions.java
index e993a39c..d96ef17f 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Permissions.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Permissions.java
@@ -41,20 +41,19 @@
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessallmembershipsResponse;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1UpdatepermissionsRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1UpdatepermissionsResponse;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BetausersOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexgroupsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexmembershipsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1BulkindexusersOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DeletegroupOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DeletemembershipOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1DeleteuserOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexgroupOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexmembershipOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1IndexuserOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1ProcessallmembershipsOperation;
-import com.glean.api_client.glean_api_client.operations.PostApiIndexV1UpdatepermissionsOperation;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Betausers;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexgroups;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexmemberships;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Bulkindexusers;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deletegroup;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deletemembership;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Deleteuser;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexgroup;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexmembership;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Indexuser;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Processallmemberships;
+import com.glean.api_client.glean_api_client.operations.PostApiIndexV1Updatepermissions;
import java.lang.Exception;
-import java.util.List;
import java.util.Optional;
@@ -64,6 +63,7 @@ public class Permissions {
Permissions(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Update document permissions
*
@@ -86,7 +86,7 @@ public PostApiIndexV1UpdatepermissionsRequestBuilder updatePermissions() {
*/
public PostApiIndexV1UpdatepermissionsResponse updatePermissions(UpdatePermissionsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1UpdatepermissionsOperation(sdkConfiguration);
+ = new PostApiIndexV1Updatepermissions.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -112,14 +112,14 @@ public PostApiIndexV1IndexuserRequestBuilder indexUser() {
*/
public PostApiIndexV1IndexuserResponse indexUser(IndexUserRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexuserOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexuser.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Bulk index users
*
- * Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @return The call builder
*/
@@ -130,7 +130,7 @@ public PostApiIndexV1BulkindexusersRequestBuilder bulkIndexUsers() {
/**
* Bulk index users
*
- *
Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -138,7 +138,7 @@ public PostApiIndexV1BulkindexusersRequestBuilder bulkIndexUsers() {
*/
public PostApiIndexV1BulkindexusersResponse bulkIndexUsers(BulkIndexUsersRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexusersOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexusers.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -164,14 +164,14 @@ public PostApiIndexV1IndexgroupRequestBuilder indexGroup() {
*/
public PostApiIndexV1IndexgroupResponse indexGroup(IndexGroupRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexgroupOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexgroup.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Bulk index groups
*
- * Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @return The call builder
*/
@@ -182,7 +182,7 @@ public PostApiIndexV1BulkindexgroupsRequestBuilder bulkIndexGroups() {
/**
* Bulk index groups
*
- *
Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -190,7 +190,7 @@ public PostApiIndexV1BulkindexgroupsRequestBuilder bulkIndexGroups() {
*/
public PostApiIndexV1BulkindexgroupsResponse bulkIndexGroups(BulkIndexGroupsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexgroupsOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexgroups.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -216,14 +216,14 @@ public PostApiIndexV1IndexmembershipRequestBuilder indexMembership() {
*/
public PostApiIndexV1IndexmembershipResponse indexMembership(IndexMembershipRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1IndexmembershipOperation(sdkConfiguration);
+ = new PostApiIndexV1Indexmembership.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
/**
* Bulk index memberships for a group
*
- * Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @return The call builder
*/
@@ -234,7 +234,7 @@ public PostApiIndexV1BulkindexmembershipsRequestBuilder bulkIndexMemberships() {
/**
* Bulk index memberships for a group
*
- *
Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
+ *
Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
@@ -242,7 +242,7 @@ public PostApiIndexV1BulkindexmembershipsRequestBuilder bulkIndexMemberships() {
*/
public PostApiIndexV1BulkindexmembershipsResponse bulkIndexMemberships(BulkIndexMembershipsRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BulkindexmembershipsOperation(sdkConfiguration);
+ = new PostApiIndexV1Bulkindexmemberships.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -280,7 +280,7 @@ public PostApiIndexV1ProcessallmembershipsResponse processMembershipsDirect() th
*/
public PostApiIndexV1ProcessallmembershipsResponse processMemberships(Optional extends ProcessAllMembershipsRequest> request) throws Exception {
RequestOperation, PostApiIndexV1ProcessallmembershipsResponse> operation
- = new PostApiIndexV1ProcessallmembershipsOperation(sdkConfiguration);
+ = new PostApiIndexV1Processallmemberships.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -306,7 +306,7 @@ public PostApiIndexV1DeleteuserRequestBuilder deleteUser() {
*/
public PostApiIndexV1DeleteuserResponse deleteUser(DeleteUserRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1DeleteuserOperation(sdkConfiguration);
+ = new PostApiIndexV1Deleteuser.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -332,7 +332,7 @@ public PostApiIndexV1DeletegroupRequestBuilder deleteGroup() {
*/
public PostApiIndexV1DeletegroupResponse deleteGroup(DeleteGroupRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1DeletegroupOperation(sdkConfiguration);
+ = new PostApiIndexV1Deletegroup.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -358,7 +358,7 @@ public PostApiIndexV1DeletemembershipRequestBuilder deleteMembership() {
*/
public PostApiIndexV1DeletemembershipResponse deleteMembership(DeleteMembershipRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1DeletemembershipOperation(sdkConfiguration);
+ = new PostApiIndexV1Deletemembership.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -384,7 +384,7 @@ public PostApiIndexV1BetausersRequestBuilder authorizeBetaUsers() {
*/
public PostApiIndexV1BetausersResponse authorizeBetaUsers(GreenlistUsersRequest request) throws Exception {
RequestOperation operation
- = new PostApiIndexV1BetausersOperation(sdkConfiguration);
+ = new PostApiIndexV1Betausers.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Pins.java b/src/main/java/com/glean/api_client/glean_api_client/Pins.java
index 8dba93f3..819d61f9 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Pins.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Pins.java
@@ -20,14 +20,11 @@
import com.glean.api_client.glean_api_client.models.operations.PinResponse;
import com.glean.api_client.glean_api_client.models.operations.UnpinRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.UnpinResponse;
-import com.glean.api_client.glean_api_client.operations.EditpinOperation;
-import com.glean.api_client.glean_api_client.operations.GetpinOperation;
-import com.glean.api_client.glean_api_client.operations.ListpinsOperation;
-import com.glean.api_client.glean_api_client.operations.PinOperation;
-import com.glean.api_client.glean_api_client.operations.UnpinOperation;
+import com.glean.api_client.glean_api_client.operations.Editpin;
+import com.glean.api_client.glean_api_client.operations.Getpin;
+import com.glean.api_client.glean_api_client.operations.Listpins;
+import com.glean.api_client.glean_api_client.operations.Pin;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class Pins {
@@ -36,6 +33,7 @@ public class Pins {
Pins(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Update pin
*
@@ -58,7 +56,7 @@ public EditpinRequestBuilder update() {
*/
public EditpinResponse update(EditPinRequest request) throws Exception {
RequestOperation operation
- = new EditpinOperation(sdkConfiguration);
+ = new Editpin.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -84,7 +82,7 @@ public GetpinRequestBuilder retrieve() {
*/
public GetpinResponse retrieve(GetPinRequest request) throws Exception {
RequestOperation operation
- = new GetpinOperation(sdkConfiguration);
+ = new Getpin.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -110,7 +108,7 @@ public ListpinsRequestBuilder list() {
*/
public ListpinsResponse list(ListpinsRequest request) throws Exception {
RequestOperation operation
- = new ListpinsOperation(sdkConfiguration);
+ = new Listpins.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -136,7 +134,7 @@ public PinRequestBuilder create() {
*/
public PinResponse create(PinRequest request) throws Exception {
RequestOperation operation
- = new PinOperation(sdkConfiguration);
+ = new Pin.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -162,7 +160,7 @@ public UnpinRequestBuilder remove() {
*/
public UnpinResponse remove(Unpin request) throws Exception {
RequestOperation operation
- = new UnpinOperation(sdkConfiguration);
+ = new com.glean.api_client.glean_api_client.operations.Unpin.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Policies.java b/src/main/java/com/glean/api_client/glean_api_client/Policies.java
index 96dd70e7..4645fbf1 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Policies.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Policies.java
@@ -21,16 +21,15 @@
import com.glean.api_client.glean_api_client.models.operations.UpdatepolicyRequest;
import com.glean.api_client.glean_api_client.models.operations.UpdatepolicyRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.UpdatepolicyResponse;
-import com.glean.api_client.glean_api_client.operations.CreatepolicyOperation;
-import com.glean.api_client.glean_api_client.operations.DownloadpolicycsvOperation;
-import com.glean.api_client.glean_api_client.operations.GetpolicyOperation;
-import com.glean.api_client.glean_api_client.operations.ListpoliciesOperation;
-import com.glean.api_client.glean_api_client.operations.UpdatepolicyOperation;
+import com.glean.api_client.glean_api_client.operations.Createpolicy;
+import com.glean.api_client.glean_api_client.operations.Downloadpolicycsv;
+import com.glean.api_client.glean_api_client.operations.Getpolicy;
+import com.glean.api_client.glean_api_client.operations.Listpolicies;
+import com.glean.api_client.glean_api_client.operations.Updatepolicy;
import java.lang.Boolean;
import java.lang.Exception;
import java.lang.Long;
import java.lang.String;
-import java.util.List;
import java.util.Optional;
@@ -40,6 +39,7 @@ public class Policies {
Policies(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Gets specified policy
*
@@ -74,9 +74,7 @@ public GetpolicyResponse retrieve(String id) throws Exception {
* @return The response from the API call
* @throws Exception if the API call fails
*/
- public GetpolicyResponse retrieve(
- String id,
- Optional version) throws Exception {
+ public GetpolicyResponse retrieve(String id, Optional version) throws Exception {
GetpolicyRequest request =
GetpolicyRequest
.builder()
@@ -84,7 +82,7 @@ public GetpolicyResponse retrieve(
.version(version)
.build();
RequestOperation operation
- = new GetpolicyOperation(sdkConfiguration);
+ = new Getpolicy.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -109,9 +107,7 @@ public UpdatepolicyRequestBuilder update() {
* @return The response from the API call
* @throws Exception if the API call fails
*/
- public UpdatepolicyResponse update(
- String id,
- UpdateDlpReportRequest updateDlpReportRequest) throws Exception {
+ public UpdatepolicyResponse update(String id, UpdateDlpReportRequest updateDlpReportRequest) throws Exception {
UpdatepolicyRequest request =
UpdatepolicyRequest
.builder()
@@ -119,7 +115,7 @@ public UpdatepolicyResponse update(
.updateDlpReportRequest(updateDlpReportRequest)
.build();
RequestOperation operation
- = new UpdatepolicyOperation(sdkConfiguration);
+ = new Updatepolicy.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -156,9 +152,7 @@ public ListpoliciesResponse listDirect() throws Exception {
* @return The response from the API call
* @throws Exception if the API call fails
*/
- public ListpoliciesResponse list(
- Optional autoHide,
- Optional frequency) throws Exception {
+ public ListpoliciesResponse list(Optional autoHide, Optional frequency) throws Exception {
ListpoliciesRequest request =
ListpoliciesRequest
.builder()
@@ -166,7 +160,7 @@ public ListpoliciesResponse list(
.frequency(frequency)
.build();
RequestOperation operation
- = new ListpoliciesOperation(sdkConfiguration);
+ = new Listpolicies.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -192,7 +186,7 @@ public CreatepolicyRequestBuilder create() {
*/
public CreatepolicyResponse create(CreateDlpReportRequest request) throws Exception {
RequestOperation operation
- = new CreatepolicyOperation(sdkConfiguration);
+ = new Createpolicy.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -223,7 +217,7 @@ public DownloadpolicycsvResponse download(String id) throws Exception {
.id(id)
.build();
RequestOperation operation
- = new DownloadpolicycsvOperation(sdkConfiguration);
+ = new Downloadpolicycsv.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Reports.java b/src/main/java/com/glean/api_client/glean_api_client/Reports.java
index a42335fd..58e51f7c 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Reports.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Reports.java
@@ -14,13 +14,11 @@
import com.glean.api_client.glean_api_client.models.operations.GetreportstatusRequest;
import com.glean.api_client.glean_api_client.models.operations.GetreportstatusRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.GetreportstatusResponse;
-import com.glean.api_client.glean_api_client.operations.CreatereportOperation;
-import com.glean.api_client.glean_api_client.operations.DownloadreportcsvOperation;
-import com.glean.api_client.glean_api_client.operations.GetreportstatusOperation;
+import com.glean.api_client.glean_api_client.operations.Createreport;
+import com.glean.api_client.glean_api_client.operations.Downloadreportcsv;
+import com.glean.api_client.glean_api_client.operations.Getreportstatus;
import java.lang.Exception;
import java.lang.String;
-import java.util.List;
-import java.util.Optional;
public class Reports {
@@ -29,6 +27,7 @@ public class Reports {
Reports(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Creates new one-time report
*
@@ -51,7 +50,7 @@ public CreatereportRequestBuilder create() {
*/
public CreatereportResponse create(UpdateDlpConfigRequest request) throws Exception {
RequestOperation operation
- = new CreatereportOperation(sdkConfiguration);
+ = new Createreport.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -82,7 +81,7 @@ public DownloadreportcsvResponse download(String id) throws Exception {
.id(id)
.build();
RequestOperation operation
- = new DownloadreportcsvOperation(sdkConfiguration);
+ = new Downloadreportcsv.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -113,7 +112,7 @@ public GetreportstatusResponse status(String id) throws Exception {
.id(id)
.build();
RequestOperation operation
- = new GetreportstatusOperation(sdkConfiguration);
+ = new Getreportstatus.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
index 811bf09f..e9ea5c1b 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java
@@ -21,8 +21,8 @@ public class SDKConfiguration {
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.9.0";
- public static final String SDK_VERSION = "0.7.0";
- public static final String GEN_VERSION = "2.656.5";
+ public static final String SDK_VERSION = "0.8.0";
+ public static final String GEN_VERSION = "2.681.1";
private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client";
public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s",
@@ -128,7 +128,7 @@ public Map getServerVariableDefaults() {
public Optional retryConfig() {
return retryConfig;
}
-
+
public void setRetryConfig(Optional retryConfig) {
Utils.checkNotNull(retryConfig, "retryConfig");
this.retryConfig = retryConfig;
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Search.java b/src/main/java/com/glean/api_client/glean_api_client/Search.java
index eab09550..ae8df5b6 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Search.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Search.java
@@ -19,14 +19,11 @@
import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse;
import com.glean.api_client.glean_api_client.models.operations.SearchRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.SearchResponse;
-import com.glean.api_client.glean_api_client.operations.AdminsearchOperation;
-import com.glean.api_client.glean_api_client.operations.AutocompleteOperation;
-import com.glean.api_client.glean_api_client.operations.FeedOperation;
-import com.glean.api_client.glean_api_client.operations.RecommendationsOperation;
-import com.glean.api_client.glean_api_client.operations.SearchOperation;
+import com.glean.api_client.glean_api_client.operations.Adminsearch;
+import com.glean.api_client.glean_api_client.operations.Autocomplete;
+import com.glean.api_client.glean_api_client.operations.Feed;
+import com.glean.api_client.glean_api_client.operations.Recommendations;
import java.lang.Exception;
-import java.util.List;
-import java.util.Optional;
public class Search {
@@ -35,6 +32,7 @@ public class Search {
Search(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Search the index (admin)
*
@@ -57,7 +55,7 @@ public AdminsearchRequestBuilder queryAsAdmin() {
*/
public AdminsearchResponse queryAsAdmin(SearchRequest request) throws Exception {
RequestOperation operation
- = new AdminsearchOperation(sdkConfiguration);
+ = new Adminsearch.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -83,7 +81,7 @@ public AutocompleteRequestBuilder autocomplete() {
*/
public AutocompleteResponse autocomplete(AutocompleteRequest request) throws Exception {
RequestOperation operation
- = new AutocompleteOperation(sdkConfiguration);
+ = new Autocomplete.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -109,7 +107,7 @@ public FeedRequestBuilder retrieveFeed() {
*/
public FeedResponse retrieveFeed(FeedRequest request) throws Exception {
RequestOperation operation
- = new FeedOperation(sdkConfiguration);
+ = new Feed.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -135,7 +133,7 @@ public RecommendationsRequestBuilder recommendations() {
*/
public RecommendationsResponse recommendations(RecommendationsRequest request) throws Exception {
RequestOperation operation
- = new RecommendationsOperation(sdkConfiguration);
+ = new Recommendations.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -161,7 +159,7 @@ public SearchRequestBuilder query() {
*/
public SearchResponse query(SearchRequest request) throws Exception {
RequestOperation operation
- = new SearchOperation(sdkConfiguration);
+ = new com.glean.api_client.glean_api_client.operations.Search.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Tools.java b/src/main/java/com/glean/api_client/glean_api_client/Tools.java
index f366953a..9d8604f6 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Tools.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Tools.java
@@ -11,8 +11,8 @@
import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListResponse;
import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallResponse;
-import com.glean.api_client.glean_api_client.operations.GetRestApiV1ToolsListOperation;
-import com.glean.api_client.glean_api_client.operations.PostRestApiV1ToolsCallOperation;
+import com.glean.api_client.glean_api_client.operations.GetRestApiV1ToolsList;
+import com.glean.api_client.glean_api_client.operations.PostRestApiV1ToolsCall;
import java.lang.Exception;
import java.lang.String;
import java.util.List;
@@ -25,6 +25,7 @@ public class Tools {
Tools(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* List available tools
*
@@ -64,7 +65,7 @@ public GetRestApiV1ToolsListResponse list(Optional extends List> toolN
.toolNames(toolNames)
.build();
RequestOperation operation
- = new GetRestApiV1ToolsListOperation(sdkConfiguration);
+ = new GetRestApiV1ToolsList.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -90,7 +91,7 @@ public PostRestApiV1ToolsCallRequestBuilder run() {
*/
public PostRestApiV1ToolsCallResponse run(ToolsCallRequest request) throws Exception {
RequestOperation operation
- = new PostRestApiV1ToolsCallOperation(sdkConfiguration);
+ = new PostRestApiV1ToolsCall.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Verification.java b/src/main/java/com/glean/api_client/glean_api_client/Verification.java
index 22d5f08a..82d536e5 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Verification.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Verification.java
@@ -14,12 +14,11 @@
import com.glean.api_client.glean_api_client.models.operations.ListverificationsResponse;
import com.glean.api_client.glean_api_client.models.operations.VerifyRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.VerifyResponse;
-import com.glean.api_client.glean_api_client.operations.AddverificationreminderOperation;
-import com.glean.api_client.glean_api_client.operations.ListverificationsOperation;
-import com.glean.api_client.glean_api_client.operations.VerifyOperation;
+import com.glean.api_client.glean_api_client.operations.Addverificationreminder;
+import com.glean.api_client.glean_api_client.operations.Listverifications;
+import com.glean.api_client.glean_api_client.operations.Verify;
import java.lang.Exception;
import java.lang.Long;
-import java.util.List;
import java.util.Optional;
@@ -29,6 +28,7 @@ public class Verification {
Verification(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Create verification
*
@@ -51,7 +51,7 @@ public AddverificationreminderRequestBuilder addReminder() {
*/
public AddverificationreminderResponse addReminder(ReminderRequest request) throws Exception {
RequestOperation operation
- = new AddverificationreminderOperation(sdkConfiguration);
+ = new Addverificationreminder.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -94,7 +94,7 @@ public ListverificationsResponse list(Optional count) throws Exception {
.count(count)
.build();
RequestOperation operation
- = new ListverificationsOperation(sdkConfiguration);
+ = new Listverifications.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -120,7 +120,7 @@ public VerifyRequestBuilder verify() {
*/
public VerifyResponse verify(VerifyRequest request) throws Exception {
RequestOperation operation
- = new VerifyOperation(sdkConfiguration);
+ = new Verify.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java b/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java
index bf7fa5ab..1b555aab 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java
@@ -11,8 +11,8 @@
import com.glean.api_client.glean_api_client.models.operations.GetdocvisibilityResponse;
import com.glean.api_client.glean_api_client.models.operations.SetdocvisibilityRequestBuilder;
import com.glean.api_client.glean_api_client.models.operations.SetdocvisibilityResponse;
-import com.glean.api_client.glean_api_client.operations.GetdocvisibilityOperation;
-import com.glean.api_client.glean_api_client.operations.SetdocvisibilityOperation;
+import com.glean.api_client.glean_api_client.operations.Getdocvisibility;
+import com.glean.api_client.glean_api_client.operations.Setdocvisibility;
import java.lang.Exception;
import java.lang.String;
import java.util.List;
@@ -25,6 +25,7 @@ public class Visibilityoverrides {
Visibilityoverrides(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
}
+
/**
* Fetches documents visibility
*
@@ -64,7 +65,7 @@ public GetdocvisibilityResponse list(Optional extends List> docIds) th
.docIds(docIds)
.build();
RequestOperation operation
- = new GetdocvisibilityOperation(sdkConfiguration);
+ = new Getdocvisibility.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
@@ -90,7 +91,7 @@ public SetdocvisibilityRequestBuilder create() {
*/
public SetdocvisibilityResponse create(UpdateDocumentVisibilityOverridesRequest request) throws Exception {
RequestOperation operation
- = new SetdocvisibilityOperation(sdkConfiguration);
+ = new Setdocvisibility.Sync(sdkConfiguration);
return operation.handleResponse(operation.doRequest(request));
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigStatus.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigStatus.java
index 0b5f9308..68149c23 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigStatus.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigStatus.java
@@ -15,7 +15,8 @@
*/
public enum AuthConfigStatus {
AWAITING_AUTH("AWAITING_AUTH"),
- AUTHORIZED("AUTHORIZED");
+ AUTHORIZED("AUTHORIZED"),
+ AUTH_DISABLED("AUTH_DISABLED");
@JsonValue
private final String value;
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java
index ac407ddb..b5bcf58c 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java
@@ -701,7 +701,7 @@ public ChatMessage build() {
private static final LazySingletonValue> _SINGLETON_VALUE_Author =
new LazySingletonValue<>(
"author",
- "\"USER\"",
+ "\"GLEAN_AI\"",
new TypeReference>() {});
private static final LazySingletonValue> _SINGLETON_VALUE_MessageType =
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java
index f9f206af..75ea296a 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java
@@ -57,6 +57,13 @@ public class ChatMessageFragment {
@JsonProperty("action")
private Optional extends ToolInfo> action;
+ /**
+ * Information about the source for a ChatMessage.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("citation")
+ private Optional extends ChatMessageCitation> citation;
+
@JsonCreator
public ChatMessageFragment(
@JsonProperty("structuredResults") Optional extends List> structuredResults,
@@ -64,24 +71,28 @@ public ChatMessageFragment(
@JsonProperty("text") Optional text,
@JsonProperty("querySuggestion") Optional extends QuerySuggestion> querySuggestion,
@JsonProperty("file") Optional extends ChatFile> file,
- @JsonProperty("action") Optional extends ToolInfo> action) {
+ @JsonProperty("action") Optional extends ToolInfo> action,
+ @JsonProperty("citation") Optional extends ChatMessageCitation> citation) {
Utils.checkNotNull(structuredResults, "structuredResults");
Utils.checkNotNull(trackingToken, "trackingToken");
Utils.checkNotNull(text, "text");
Utils.checkNotNull(querySuggestion, "querySuggestion");
Utils.checkNotNull(file, "file");
Utils.checkNotNull(action, "action");
+ Utils.checkNotNull(citation, "citation");
this.structuredResults = structuredResults;
this.trackingToken = trackingToken;
this.text = text;
this.querySuggestion = querySuggestion;
this.file = file;
this.action = action;
+ this.citation = citation;
}
public ChatMessageFragment() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty(), Optional.empty(), Optional.empty());
+ Optional.empty(), Optional.empty(), Optional.empty(),
+ Optional.empty());
}
/**
@@ -127,6 +138,15 @@ public Optional action() {
return (Optional) action;
}
+ /**
+ * Information about the source for a ChatMessage.
+ */
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional citation() {
+ return (Optional) citation;
+ }
+
public static Builder builder() {
return new Builder();
}
@@ -228,6 +248,25 @@ public ChatMessageFragment withAction(Optional extends ToolInfo> action) {
return this;
}
+ /**
+ * Information about the source for a ChatMessage.
+ */
+ public ChatMessageFragment withCitation(ChatMessageCitation citation) {
+ Utils.checkNotNull(citation, "citation");
+ this.citation = Optional.ofNullable(citation);
+ return this;
+ }
+
+
+ /**
+ * Information about the source for a ChatMessage.
+ */
+ public ChatMessageFragment withCitation(Optional extends ChatMessageCitation> citation) {
+ Utils.checkNotNull(citation, "citation");
+ this.citation = citation;
+ return this;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -243,14 +282,16 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.text, other.text) &&
Utils.enhancedDeepEquals(this.querySuggestion, other.querySuggestion) &&
Utils.enhancedDeepEquals(this.file, other.file) &&
- Utils.enhancedDeepEquals(this.action, other.action);
+ Utils.enhancedDeepEquals(this.action, other.action) &&
+ Utils.enhancedDeepEquals(this.citation, other.citation);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
structuredResults, trackingToken, text,
- querySuggestion, file, action);
+ querySuggestion, file, action,
+ citation);
}
@Override
@@ -261,7 +302,8 @@ public String toString() {
"text", text,
"querySuggestion", querySuggestion,
"file", file,
- "action", action);
+ "action", action,
+ "citation", citation);
}
@SuppressWarnings("UnusedReturnValue")
@@ -279,6 +321,8 @@ public final static class Builder {
private Optional extends ToolInfo> action = Optional.empty();
+ private Optional extends ChatMessageCitation> citation = Optional.empty();
+
private Builder() {
// force use of static builder() method
}
@@ -379,11 +423,31 @@ public Builder action(Optional extends ToolInfo> action) {
return this;
}
+
+ /**
+ * Information about the source for a ChatMessage.
+ */
+ public Builder citation(ChatMessageCitation citation) {
+ Utils.checkNotNull(citation, "citation");
+ this.citation = Optional.ofNullable(citation);
+ return this;
+ }
+
+ /**
+ * Information about the source for a ChatMessage.
+ */
+ public Builder citation(Optional extends ChatMessageCitation> citation) {
+ Utils.checkNotNull(citation, "citation");
+ this.citation = citation;
+ return this;
+ }
+
public ChatMessageFragment build() {
return new ChatMessageFragment(
structuredResults, trackingToken, text,
- querySuggestion, file, action);
+ querySuggestion, file, action,
+ citation);
}
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java
index c43d5b08..c3fe4ece 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java
@@ -34,7 +34,7 @@ public class ChatRequest {
private Optional chatId;
/**
- * A list of chat messages, from most recent to least recent. It can be assumed that the first chat message in the list is the user's most recent query.
+ * A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
*/
@JsonProperty("messages")
private List messages;
@@ -151,7 +151,7 @@ public Optional chatId() {
}
/**
- * A list of chat messages, from most recent to least recent. It can be assumed that the first chat message in the list is the user's most recent query.
+ * A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
*/
@JsonIgnore
public List messages() {
@@ -261,7 +261,7 @@ public ChatRequest withChatId(Optional chatId) {
}
/**
- * A list of chat messages, from most recent to least recent. It can be assumed that the first chat message in the list is the user's most recent query.
+ * A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
*/
public ChatRequest withMessages(List messages) {
Utils.checkNotNull(messages, "messages");
@@ -520,7 +520,7 @@ public Builder chatId(Optional chatId) {
/**
- * A list of chat messages, from most recent to least recent. It can be assumed that the first chat message in the list is the user's most recent query.
+ * A list of chat messages, from most recent to least recent. At least one message must specify a USER author.
*/
public Builder messages(List messages) {
Utils.checkNotNull(messages, "messages");
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java
index 26948669..54eb0f25 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java
@@ -172,7 +172,7 @@ public class DocumentDefinition {
private Optional extends List> comments;
/**
- * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/docs/facets_and_operators_for_custom_datasources/).
+ * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets).
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("customProperties")
@@ -444,7 +444,7 @@ public Optional> comments() {
}
/**
- * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/docs/facets_and_operators_for_custom_datasources/).
+ * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets).
*/
@SuppressWarnings("unchecked")
@JsonIgnore
@@ -857,7 +857,7 @@ public DocumentDefinition withComments(Optional extends List customProperties) {
Utils.checkNotNull(customProperties, "customProperties");
@@ -867,7 +867,7 @@ public DocumentDefinition withCustomProperties(List customProper
/**
- * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/docs/facets_and_operators_for_custom_datasources/).
+ * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets).
*/
public DocumentDefinition withCustomProperties(Optional extends List> customProperties) {
Utils.checkNotNull(customProperties, "customProperties");
@@ -1406,7 +1406,7 @@ public Builder comments(Optional extends List> comments) {
/**
- * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/docs/facets_and_operators_for_custom_datasources/).
+ * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets).
*/
public Builder customProperties(List customProperties) {
Utils.checkNotNull(customProperties, "customProperties");
@@ -1415,7 +1415,7 @@ public Builder customProperties(List customProperties) {
}
/**
- * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/docs/facets_and_operators_for_custom_datasources/).
+ * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets).
*/
public Builder customProperties(Optional extends List> customProperties) {
Utils.checkNotNull(customProperties, "customProperties");
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java
index 5a772a0b..37a0ae55 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java
@@ -27,6 +27,7 @@ public enum Event {
FOCUS_IN("FOCUS_IN"),
LAST_TOKEN("LAST_TOKEN"),
MANUAL_FEEDBACK("MANUAL_FEEDBACK"),
+ MANUAL_FEEDBACK_SIDE_BY_SIDE("MANUAL_FEEDBACK_SIDE_BY_SIDE"),
MARK_AS_READ("MARK_AS_READ"),
MESSAGE("MESSAGE"),
MIDDLE_CLICK("MIDDLE_CLICK"),
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java
index a91a63f6..8a3ac273 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java
@@ -117,6 +117,11 @@ public class Feedback {
private Optional extends ManualFeedbackInfo> manualFeedbackInfo;
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("manualFeedbackSideBySideInfo")
+ private Optional extends ManualFeedbackSideBySideInfo> manualFeedbackSideBySideInfo;
+
+
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("seenFeedbackInfo")
private Optional extends SeenFeedbackInfo> seenFeedbackInfo;
@@ -162,6 +167,7 @@ public Feedback(
@JsonProperty("uiTree") Optional extends List> uiTree,
@JsonProperty("uiElement") Optional uiElement,
@JsonProperty("manualFeedbackInfo") Optional extends ManualFeedbackInfo> manualFeedbackInfo,
+ @JsonProperty("manualFeedbackSideBySideInfo") Optional extends ManualFeedbackSideBySideInfo> manualFeedbackSideBySideInfo,
@JsonProperty("seenFeedbackInfo") Optional extends SeenFeedbackInfo> seenFeedbackInfo,
@JsonProperty("userViewInfo") Optional extends UserViewInfo> userViewInfo,
@JsonProperty("workflowFeedbackInfo") Optional extends WorkflowFeedbackInfo> workflowFeedbackInfo,
@@ -182,6 +188,7 @@ public Feedback(
Utils.checkNotNull(uiTree, "uiTree");
Utils.checkNotNull(uiElement, "uiElement");
Utils.checkNotNull(manualFeedbackInfo, "manualFeedbackInfo");
+ Utils.checkNotNull(manualFeedbackSideBySideInfo, "manualFeedbackSideBySideInfo");
Utils.checkNotNull(seenFeedbackInfo, "seenFeedbackInfo");
Utils.checkNotNull(userViewInfo, "userViewInfo");
Utils.checkNotNull(workflowFeedbackInfo, "workflowFeedbackInfo");
@@ -202,6 +209,7 @@ public Feedback(
this.uiTree = uiTree;
this.uiElement = uiElement;
this.manualFeedbackInfo = manualFeedbackInfo;
+ this.manualFeedbackSideBySideInfo = manualFeedbackSideBySideInfo;
this.seenFeedbackInfo = seenFeedbackInfo;
this.userViewInfo = userViewInfo;
this.workflowFeedbackInfo = workflowFeedbackInfo;
@@ -218,7 +226,7 @@ public Feedback(
Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty(), Optional.empty());
+ Optional.empty(), Optional.empty(), Optional.empty());
}
/**
@@ -338,6 +346,12 @@ public Optional manualFeedbackInfo() {
return (Optional) manualFeedbackInfo;
}
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional manualFeedbackSideBySideInfo() {
+ return (Optional) manualFeedbackSideBySideInfo;
+ }
+
@SuppressWarnings("unchecked")
@JsonIgnore
public Optional seenFeedbackInfo() {
@@ -624,6 +638,19 @@ public Feedback withManualFeedbackInfo(Optional extends ManualFeedbackInfo> ma
return this;
}
+ public Feedback withManualFeedbackSideBySideInfo(ManualFeedbackSideBySideInfo manualFeedbackSideBySideInfo) {
+ Utils.checkNotNull(manualFeedbackSideBySideInfo, "manualFeedbackSideBySideInfo");
+ this.manualFeedbackSideBySideInfo = Optional.ofNullable(manualFeedbackSideBySideInfo);
+ return this;
+ }
+
+
+ public Feedback withManualFeedbackSideBySideInfo(Optional extends ManualFeedbackSideBySideInfo> manualFeedbackSideBySideInfo) {
+ Utils.checkNotNull(manualFeedbackSideBySideInfo, "manualFeedbackSideBySideInfo");
+ this.manualFeedbackSideBySideInfo = manualFeedbackSideBySideInfo;
+ return this;
+ }
+
public Feedback withSeenFeedbackInfo(SeenFeedbackInfo seenFeedbackInfo) {
Utils.checkNotNull(seenFeedbackInfo, "seenFeedbackInfo");
this.seenFeedbackInfo = Optional.ofNullable(seenFeedbackInfo);
@@ -726,6 +753,7 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.uiTree, other.uiTree) &&
Utils.enhancedDeepEquals(this.uiElement, other.uiElement) &&
Utils.enhancedDeepEquals(this.manualFeedbackInfo, other.manualFeedbackInfo) &&
+ Utils.enhancedDeepEquals(this.manualFeedbackSideBySideInfo, other.manualFeedbackSideBySideInfo) &&
Utils.enhancedDeepEquals(this.seenFeedbackInfo, other.seenFeedbackInfo) &&
Utils.enhancedDeepEquals(this.userViewInfo, other.userViewInfo) &&
Utils.enhancedDeepEquals(this.workflowFeedbackInfo, other.workflowFeedbackInfo) &&
@@ -741,8 +769,8 @@ public int hashCode() {
sessionInfo, timestamp, user,
pathname, channels, url,
uiTree, uiElement, manualFeedbackInfo,
- seenFeedbackInfo, userViewInfo, workflowFeedbackInfo,
- applicationId, agentId);
+ manualFeedbackSideBySideInfo, seenFeedbackInfo, userViewInfo,
+ workflowFeedbackInfo, applicationId, agentId);
}
@Override
@@ -763,6 +791,7 @@ public String toString() {
"uiTree", uiTree,
"uiElement", uiElement,
"manualFeedbackInfo", manualFeedbackInfo,
+ "manualFeedbackSideBySideInfo", manualFeedbackSideBySideInfo,
"seenFeedbackInfo", seenFeedbackInfo,
"userViewInfo", userViewInfo,
"workflowFeedbackInfo", workflowFeedbackInfo,
@@ -803,6 +832,8 @@ public final static class Builder {
private Optional extends ManualFeedbackInfo> manualFeedbackInfo = Optional.empty();
+ private Optional extends ManualFeedbackSideBySideInfo> manualFeedbackSideBySideInfo = Optional.empty();
+
private Optional extends SeenFeedbackInfo> seenFeedbackInfo = Optional.empty();
private Optional extends UserViewInfo> userViewInfo = Optional.empty();
@@ -1067,6 +1098,19 @@ public Builder manualFeedbackInfo(Optional extends ManualFeedbackInfo> manualF
}
+ public Builder manualFeedbackSideBySideInfo(ManualFeedbackSideBySideInfo manualFeedbackSideBySideInfo) {
+ Utils.checkNotNull(manualFeedbackSideBySideInfo, "manualFeedbackSideBySideInfo");
+ this.manualFeedbackSideBySideInfo = Optional.ofNullable(manualFeedbackSideBySideInfo);
+ return this;
+ }
+
+ public Builder manualFeedbackSideBySideInfo(Optional extends ManualFeedbackSideBySideInfo> manualFeedbackSideBySideInfo) {
+ Utils.checkNotNull(manualFeedbackSideBySideInfo, "manualFeedbackSideBySideInfo");
+ this.manualFeedbackSideBySideInfo = manualFeedbackSideBySideInfo;
+ return this;
+ }
+
+
public Builder seenFeedbackInfo(SeenFeedbackInfo seenFeedbackInfo) {
Utils.checkNotNull(seenFeedbackInfo, "seenFeedbackInfo");
this.seenFeedbackInfo = Optional.ofNullable(seenFeedbackInfo);
@@ -1151,8 +1195,8 @@ public Feedback build() {
sessionInfo, timestamp, user,
pathname, channels, url,
uiTree, uiElement, manualFeedbackInfo,
- seenFeedbackInfo, userViewInfo, workflowFeedbackInfo,
- applicationId, agentId);
+ manualFeedbackSideBySideInfo, seenFeedbackInfo, userViewInfo,
+ workflowFeedbackInfo, applicationId, agentId);
}
}
diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java
index 2a2195b7..8883161f 100644
--- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java
+++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java
@@ -118,7 +118,7 @@ public class ManualFeedbackInfo {
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("vote")
- private Optional extends Vote> vote;
+ private Optional extends ManualFeedbackInfoVote> vote;
/**
* A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive.
@@ -156,7 +156,7 @@ public ManualFeedbackInfo(
@JsonProperty("previousMessages") Optional extends List> previousMessages,
@JsonProperty("chatTranscript") Optional extends List> chatTranscript,
@JsonProperty("numQueriesFromFirstRun") Optional numQueriesFromFirstRun,
- @JsonProperty("vote") Optional extends Vote> vote,
+ @JsonProperty("vote") Optional extends ManualFeedbackInfoVote> vote,
@JsonProperty("rating") Optional rating,
@JsonProperty("ratingKey") Optional ratingKey,
@JsonProperty("ratingScale") Optional