From 99d62bef9982d323f1f69cec4e0ea8831b7c81a8 Mon Sep 17 00:00:00 2001 From: Kshitij Wadhwa Date: Tue, 19 Sep 2023 17:37:33 -0700 Subject: [PATCH] new client with async fixes (#59) The upgrade for okhttp3 didn't handle client creation for async calls well. It was trying to change immutable objects. The swagger-codegen is buggy, so I had to fix it in our fork --- .../java/com/rockset/client/ApiClient.java | 9 +- .../java/com/rockset/client/ApiException.java | 2 +- .../com/rockset/client/Configuration.java | 2 +- src/main/java/com/rockset/client/Pair.java | 2 +- .../java/com/rockset/client/StringUtil.java | 2 +- .../com/rockset/client/api/AliasesApi.java | 36 +- .../com/rockset/client/api/ApiKeysApi.java | 30 +- .../rockset/client/api/CollectionsApi.java | 42 +- .../rockset/client/api/CustomRolesApi.java | 30 +- .../com/rockset/client/api/DocumentsApi.java | 18 +- .../rockset/client/api/IntegrationsApi.java | 158 +++++++- .../rockset/client/api/OrganizationsApi.java | 6 +- .../com/rockset/client/api/QueriesApi.java | 36 +- .../rockset/client/api/QueryLambdasApi.java | 84 ++-- .../rockset/client/api/SharedLambdasApi.java | 6 +- .../com/rockset/client/api/SourcesApi.java | 67 ++-- .../java/com/rockset/client/api/UsersApi.java | 48 +-- .../java/com/rockset/client/api/ViewsApi.java | 36 +- .../client/api/VirtualInstancesApi.java | 242 +++++++++--- .../com/rockset/client/api/WorkspacesApi.java | 24 +- .../com/rockset/client/auth/ApiKeyAuth.java | 2 +- .../java/com/rockset/client/auth/OAuth.java | 2 +- .../client/model/AddDocumentsRequest.java | 2 +- .../client/model/AddDocumentsResponse.java | 2 +- .../java/com/rockset/client/model/Alias.java | 2 +- .../java/com/rockset/client/model/ApiKey.java | 2 +- .../client/model/AsyncQueryOptions.java | 2 +- .../client/model/AutoScalingPolicy.java | 2 +- .../com/rockset/client/model/AvroParams.java | 2 +- .../rockset/client/model/AwsAccessKey.java | 2 +- .../com/rockset/client/model/AwsRole.java | 2 +- .../model/AzureBlobStorageIntegration.java | 2 +- .../model/AzureEventHubsIntegration.java | 2 +- .../model/AzureServiceBusIntegration.java | 2 +- .../com/rockset/client/model/BulkStats.java | 2 +- .../client/model/CancelQueryResponse.java | 2 +- .../com/rockset/client/model/Cluster.java | 2 +- .../com/rockset/client/model/Collection.java | 104 ++++- .../rockset/client/model/CollectionMount.java | 2 +- .../client/model/CollectionMountResponse.java | 2 +- .../client/model/CollectionMountStats.java | 2 +- .../rockset/client/model/CollectionStats.java | 2 +- .../client/model/CreateAliasRequest.java | 2 +- .../client/model/CreateAliasResponse.java | 2 +- .../client/model/CreateApiKeyRequest.java | 2 +- .../client/model/CreateApiKeyResponse.java | 2 +- .../model/CreateCollectionMountRequest.java | 2 +- .../model/CreateCollectionMountsResponse.java | 2 +- .../client/model/CreateCollectionRequest.java | 2 +- .../model/CreateCollectionResponse.java | 2 +- .../model/CreateIntegrationRequest.java | 2 +- .../model/CreateIntegrationResponse.java | 2 +- .../model/CreateQueryLambdaRequest.java | 2 +- .../model/CreateQueryLambdaTagRequest.java | 2 +- .../client/model/CreateRoleRequest.java | 2 +- .../client/model/CreateUserRequest.java | 2 +- .../client/model/CreateUserResponse.java | 2 +- .../client/model/CreateViewRequest.java | 2 +- .../client/model/CreateViewResponse.java | 2 +- .../model/CreateVirtualInstanceRequest.java | 2 +- .../model/CreateVirtualInstanceResponse.java | 2 +- .../client/model/CreateWorkspaceRequest.java | 2 +- .../client/model/CreateWorkspaceResponse.java | 2 +- .../com/rockset/client/model/CsvParams.java | 2 +- .../client/model/DeleteAliasResponse.java | 2 +- .../client/model/DeleteApiKeyResponse.java | 2 +- .../model/DeleteCollectionResponse.java | 2 +- .../client/model/DeleteDocumentsRequest.java | 2 +- .../model/DeleteDocumentsRequestData.java | 2 +- .../client/model/DeleteDocumentsResponse.java | 2 +- .../model/DeleteIntegrationResponse.java | 2 +- .../model/DeleteQueryLambdaResponse.java | 2 +- .../client/model/DeleteSourceResponse.java | 2 +- .../client/model/DeleteUserResponse.java | 2 +- .../client/model/DeleteViewResponse.java | 2 +- .../model/DeleteVirtualInstanceResponse.java | 2 +- .../client/model/DeleteWorkspaceResponse.java | 2 +- .../rockset/client/model/DocumentStatus.java | 2 +- .../client/model/DynamodbIntegration.java | 2 +- .../com/rockset/client/model/ErrorModel.java | 2 +- .../rockset/client/model/EventTimeInfo.java | 2 +- .../ExecutePublicQueryLambdaRequest.java | 2 +- .../model/ExecuteQueryLambdaRequest.java | 2 +- .../client/model/FieldMappingQuery.java | 2 +- .../rockset/client/model/FieldMappingV2.java | 2 +- .../rockset/client/model/FieldPartition.java | 2 +- .../rockset/client/model/FormatParams.java | 2 +- .../client/model/GcpServiceAccount.java | 2 +- .../rockset/client/model/GcsIntegration.java | 2 +- .../client/model/GetAliasResponse.java | 2 +- .../client/model/GetApiKeyResponse.java | 2 +- .../client/model/GetCollectionCommit.java | 2 +- .../client/model/GetCollectionCommitData.java | 2 +- .../model/GetCollectionCommitRequest.java | 2 +- .../client/model/GetCollectionResponse.java | 2 +- .../client/model/GetIntegrationResponse.java | 2 +- .../client/model/GetQueryResponse.java | 2 +- .../client/model/GetSourceResponse.java | 2 +- .../rockset/client/model/GetViewResponse.java | 2 +- .../model/GetVirtualInstanceResponse.java | 2 +- .../client/model/GetWorkspaceResponse.java | 2 +- .../com/rockset/client/model/InputField.java | 2 +- .../com/rockset/client/model/Integration.java | 2 +- .../client/model/KafkaIntegration.java | 2 +- .../client/model/KafkaV3SecurityConfig.java | 2 +- .../client/model/KinesisIntegration.java | 2 +- .../client/model/ListAliasesResponse.java | 2 +- .../client/model/ListApiKeysResponse.java | 2 +- .../model/ListCollectionMountsResponse.java | 2 +- .../client/model/ListCollectionsResponse.java | 2 +- .../model/ListIntegrationsResponse.java | 2 +- .../client/model/ListQueriesResponse.java | 2 +- .../model/ListQueryLambdaTagsResponse.java | 2 +- .../ListQueryLambdaVersionsResponse.java | 2 +- .../model/ListQueryLambdasResponse.java | 2 +- .../client/model/ListRolesResponse.java | 2 +- .../client/model/ListSourcesResponse.java | 2 +- .../ListUnsubscribePreferencesResponse.java | 2 +- .../client/model/ListUsersResponse.java | 2 +- .../client/model/ListViewsResponse.java | 2 +- .../model/ListVirtualInstancesResponse.java | 2 +- .../client/model/ListWorkspacesResponse.java | 2 +- .../client/model/MongoDbIntegration.java | 2 +- .../com/rockset/client/model/Offsets.java | 2 +- .../rockset/client/model/Organization.java | 2 +- .../client/model/OrganizationResponse.java | 2 +- .../com/rockset/client/model/OutputField.java | 2 +- .../com/rockset/client/model/Pagination.java | 2 +- .../rockset/client/model/PaginationInfo.java | 2 +- .../rockset/client/model/PatchDocument.java | 2 +- .../client/model/PatchDocumentsRequest.java | 2 +- .../client/model/PatchDocumentsResponse.java | 2 +- .../rockset/client/model/PatchOperation.java | 2 +- .../com/rockset/client/model/Privilege.java | 2 +- .../com/rockset/client/model/QueryError.java | 2 +- .../rockset/client/model/QueryFieldType.java | 2 +- .../com/rockset/client/model/QueryInfo.java | 2 +- .../com/rockset/client/model/QueryLambda.java | 2 +- .../rockset/client/model/QueryLambdaSql.java | 2 +- .../client/model/QueryLambdaStats.java | 2 +- .../rockset/client/model/QueryLambdaTag.java | 2 +- .../client/model/QueryLambdaTagResponse.java | 2 +- .../client/model/QueryLambdaVersion.java | 2 +- .../model/QueryLambdaVersionResponse.java | 2 +- .../client/model/QueryPaginationResponse.java | 2 +- .../rockset/client/model/QueryParameter.java | 2 +- .../rockset/client/model/QueryRequest.java | 2 +- .../rockset/client/model/QueryRequestSql.java | 2 +- .../rockset/client/model/QueryResponse.java | 2 +- .../client/model/QueryResponseStats.java | 2 +- .../model/ResumeVirtualInstanceResponse.java | 2 +- .../java/com/rockset/client/model/Role.java | 2 +- .../rockset/client/model/RoleResponse.java | 2 +- .../rockset/client/model/S3Integration.java | 2 +- .../client/model/SchemaRegistryConfig.java | 2 +- .../client/model/SnowflakeIntegration.java | 2 +- .../java/com/rockset/client/model/Source.java | 20 +- .../client/model/SourceAzBlobStorageBase.java | 2 +- .../model/SourceAzBlobStorageSettings.java | 2 +- .../client/model/SourceAzureBlobStorage.java | 2 +- .../client/model/SourceAzureEventHubs.java | 2 +- .../client/model/SourceAzureServiceBus.java | 2 +- .../com/rockset/client/model/SourceBase.java | 2 +- .../rockset/client/model/SourceDynamoDb.java | 2 +- .../client/model/SourceFileUpload.java | 2 +- .../com/rockset/client/model/SourceGcs.java | 2 +- .../rockset/client/model/SourceGcsBase.java | 2 +- .../client/model/SourceGcsSettings.java | 2 +- .../com/rockset/client/model/SourceKafka.java | 2 +- .../rockset/client/model/SourceKinesis.java | 2 +- .../rockset/client/model/SourceMongoDb.java | 2 +- .../com/rockset/client/model/SourceS3.java | 2 +- .../rockset/client/model/SourceS3Base.java | 2 +- .../client/model/SourceS3Settings.java | 2 +- .../rockset/client/model/SourceSnapshot.java | 31 +- .../rockset/client/model/SourceSnowflake.java | 2 +- .../rockset/client/model/SourceSystem.java | 2 +- .../rockset/client/model/SqlExpression.java | 2 +- .../java/com/rockset/client/model/Stats.java | 2 +- .../java/com/rockset/client/model/Status.java | 2 +- .../client/model/StatusAzureEventHubs.java | 2 +- .../model/StatusAzureEventHubsPartition.java | 2 +- .../client/model/StatusAzureServiceBus.java | 2 +- .../model/StatusAzureServiceBusSession.java | 2 +- .../rockset/client/model/StatusDynamoDb.java | 2 +- .../client/model/StatusDynamoDbV2.java | 2 +- .../com/rockset/client/model/StatusKafka.java | 2 +- .../client/model/StatusKafkaPartition.java | 2 +- .../rockset/client/model/StatusMongoDb.java | 2 +- .../rockset/client/model/StatusSnowflake.java | 2 +- .../client/model/SuspendSourceRequest.java | 98 +++++ .../model/SuspendVirtualInstanceResponse.java | 2 +- .../client/model/UnsubscribePreference.java | 2 +- .../client/model/UpdateAliasRequest.java | 2 +- .../client/model/UpdateApiKeyRequest.java | 2 +- .../client/model/UpdateApiKeyResponse.java | 2 +- .../client/model/UpdateCollectionRequest.java | 2 +- .../model/UpdateIntegrationRequest.java | 358 ++++++++++++++++++ .../model/UpdateIntegrationResponse.java | 99 +++++ .../model/UpdateQueryLambdaRequest.java | 2 +- .../client/model/UpdateRoleRequest.java | 2 +- .../UpdateUnsubscribePreferencesRequest.java | 2 +- .../UpdateUnsubscribePreferencesResponse.java | 2 +- .../client/model/UpdateUserRequest.java | 2 +- .../client/model/UpdateViewRequest.java | 2 +- .../client/model/UpdateViewResponse.java | 2 +- .../model/UpdateVirtualInstanceRequest.java | 2 +- .../model/UpdateVirtualInstanceResponse.java | 2 +- .../java/com/rockset/client/model/User.java | 2 +- .../client/model/ValidateQueryResponse.java | 2 +- .../java/com/rockset/client/model/View.java | 2 +- .../rockset/client/model/VirtualInstance.java | 2 +- .../client/model/VirtualInstanceStats.java | 2 +- .../com/rockset/client/model/Workspace.java | 2 +- .../com/rockset/client/model/XmlParams.java | 2 +- .../com/rockset/client/TestDocumentApi.java | 115 ++++++ 216 files changed, 1565 insertions(+), 518 deletions(-) create mode 100644 src/main/java/com/rockset/client/model/SuspendSourceRequest.java create mode 100644 src/main/java/com/rockset/client/model/UpdateIntegrationRequest.java create mode 100644 src/main/java/com/rockset/client/model/UpdateIntegrationResponse.java create mode 100644 src/test/java/com/rockset/client/TestDocumentApi.java diff --git a/src/main/java/com/rockset/client/ApiClient.java b/src/main/java/com/rockset/client/ApiClient.java index 314e53b9..6bf2b0f6 100644 --- a/src/main/java/com/rockset/client/ApiClient.java +++ b/src/main/java/com/rockset/client/ApiClient.java @@ -13,6 +13,7 @@ package com.rockset.client; +import com.rockset.client.auth.ApiKeyAuth; import com.rockset.client.model.ErrorModel; import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.ObjectMapper; @@ -87,13 +88,13 @@ public ApiClient() { .readTimeout(140, TimeUnit.SECONDS) .build(); - verifyingSsl = true; json = new JSON(); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "Authorization")); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); } @@ -360,9 +361,11 @@ public ApiClient setDebugging(boolean debugging) { if (debugging) { loggingInterceptor = new HttpLoggingInterceptor(); loggingInterceptor.setLevel(Level.BODY); - httpClient.interceptors().add(loggingInterceptor); + setHttpClient(getHttpClient().newBuilder().addInterceptor(loggingInterceptor).build()); } else { - httpClient.interceptors().remove(loggingInterceptor); + OkHttpClient.Builder client = getHttpClient().newBuilder(); + client.interceptors().remove(loggingInterceptor); + setHttpClient(client.build()); loggingInterceptor = null; } } diff --git a/src/main/java/com/rockset/client/ApiException.java b/src/main/java/com/rockset/client/ApiException.java index cdda8c25..383a9c80 100644 --- a/src/main/java/com/rockset/client/ApiException.java +++ b/src/main/java/com/rockset/client/ApiException.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/com/rockset/client/Configuration.java b/src/main/java/com/rockset/client/Configuration.java index 538af678..2c7ea202 100644 --- a/src/main/java/com/rockset/client/Configuration.java +++ b/src/main/java/com/rockset/client/Configuration.java @@ -13,7 +13,7 @@ package com.rockset.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/rockset/client/Pair.java b/src/main/java/com/rockset/client/Pair.java index c04366c9..80979cfd 100644 --- a/src/main/java/com/rockset/client/Pair.java +++ b/src/main/java/com/rockset/client/Pair.java @@ -13,7 +13,7 @@ package com.rockset.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/rockset/client/StringUtil.java b/src/main/java/com/rockset/client/StringUtil.java index 69cf0e9b..10144b53 100644 --- a/src/main/java/com/rockset/client/StringUtil.java +++ b/src/main/java/com/rockset/client/StringUtil.java @@ -13,7 +13,7 @@ package com.rockset.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/rockset/client/api/AliasesApi.java b/src/main/java/com/rockset/client/api/AliasesApi.java index 68853fe2..691a125b 100644 --- a/src/main/java/com/rockset/client/api/AliasesApi.java +++ b/src/main/java/com/rockset/client/api/AliasesApi.java @@ -95,7 +95,7 @@ public okhttp3.Call createCall(String workspace, CreateAliasRequest body, final localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -103,10 +103,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -228,7 +228,7 @@ public okhttp3.Call deleteCall(String workspace, String alias, final ProgressRes localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -236,10 +236,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -361,7 +361,7 @@ public okhttp3.Call getCall(String workspace, String alias, final ProgressRespon localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -369,10 +369,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -490,7 +490,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -498,10 +498,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -608,7 +608,7 @@ public okhttp3.Call updateCall(String workspace, String alias, UpdateAliasReques localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -616,10 +616,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -747,7 +747,7 @@ public okhttp3.Call workspaceCall(String workspace, final ProgressResponseBody.P localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -755,10 +755,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/ApiKeysApi.java b/src/main/java/com/rockset/client/api/ApiKeysApi.java index 95f75bb7..093f8e9a 100644 --- a/src/main/java/com/rockset/client/api/ApiKeysApi.java +++ b/src/main/java/com/rockset/client/api/ApiKeysApi.java @@ -94,7 +94,7 @@ public okhttp3.Call createCall(CreateApiKeyRequest body, final ProgressResponseB localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -102,10 +102,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -219,7 +219,7 @@ public okhttp3.Call deleteCall(String name, String user, final ProgressResponseB localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -227,10 +227,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -355,7 +355,7 @@ public okhttp3.Call getCall(String user, String name, Boolean reveal, final Prog localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -363,10 +363,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -489,7 +489,7 @@ public okhttp3.Call listCall(String user, final ProgressResponseBody.ProgressLis localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -497,10 +497,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -615,7 +615,7 @@ public okhttp3.Call updateCall(String name, String user, UpdateApiKeyRequest bod localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -623,10 +623,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/CollectionsApi.java b/src/main/java/com/rockset/client/api/CollectionsApi.java index 58d04ef3..b3f9df91 100644 --- a/src/main/java/com/rockset/client/api/CollectionsApi.java +++ b/src/main/java/com/rockset/client/api/CollectionsApi.java @@ -97,7 +97,7 @@ public okhttp3.Call createCall(String workspace, CreateCollectionRequest body, f localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -105,10 +105,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -230,7 +230,7 @@ public okhttp3.Call deleteCall(String workspace, String collection, final Progre localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -238,10 +238,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -363,7 +363,7 @@ public okhttp3.Call getCall(String workspace, String collection, final ProgressR localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -371,10 +371,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -497,7 +497,7 @@ public okhttp3.Call get_0Call(String workspace, String collection, GetCollection localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -505,10 +505,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -634,7 +634,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -642,10 +642,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -752,7 +752,7 @@ public okhttp3.Call updateCall(String workspace, String collection, UpdateCollec localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -760,10 +760,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -891,7 +891,7 @@ public okhttp3.Call workspaceCall(String workspace, final ProgressResponseBody.P localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -899,10 +899,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/CustomRolesApi.java b/src/main/java/com/rockset/client/api/CustomRolesApi.java index ade77e43..7b1fda3b 100644 --- a/src/main/java/com/rockset/client/api/CustomRolesApi.java +++ b/src/main/java/com/rockset/client/api/CustomRolesApi.java @@ -91,7 +91,7 @@ public okhttp3.Call createCall(CreateRoleRequest body, final ProgressResponseBod localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -99,10 +99,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -214,7 +214,7 @@ public okhttp3.Call deleteCall(String roleName, final ProgressResponseBody.Progr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -222,10 +222,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -337,7 +337,7 @@ public okhttp3.Call getCall(String roleName, final ProgressResponseBody.Progress localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -345,10 +345,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -458,7 +458,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -466,10 +466,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -574,7 +574,7 @@ public okhttp3.Call updateCall(String roleName, UpdateRoleRequest body, final Pr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -582,10 +582,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/DocumentsApi.java b/src/main/java/com/rockset/client/api/DocumentsApi.java index 9dd4ccbc..b9c5fa69 100644 --- a/src/main/java/com/rockset/client/api/DocumentsApi.java +++ b/src/main/java/com/rockset/client/api/DocumentsApi.java @@ -97,7 +97,7 @@ public okhttp3.Call addCall(String workspace, String collection, AddDocumentsReq localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -105,10 +105,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -239,7 +239,7 @@ public okhttp3.Call deleteCall(String workspace, String collection, DeleteDocume localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -247,10 +247,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -381,7 +381,7 @@ public okhttp3.Call patchCall(String workspace, String collection, PatchDocument localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -389,10 +389,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/IntegrationsApi.java b/src/main/java/com/rockset/client/api/IntegrationsApi.java index f4aeb7dc..d34abc44 100644 --- a/src/main/java/com/rockset/client/api/IntegrationsApi.java +++ b/src/main/java/com/rockset/client/api/IntegrationsApi.java @@ -32,6 +32,8 @@ import com.rockset.client.model.ErrorModel; import com.rockset.client.model.GetIntegrationResponse; import com.rockset.client.model.ListIntegrationsResponse; +import com.rockset.client.model.UpdateIntegrationRequest; +import com.rockset.client.model.UpdateIntegrationResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -92,7 +94,7 @@ public okhttp3.Call createCall(CreateIntegrationRequest body, final ProgressResp localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -100,10 +102,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -215,7 +217,7 @@ public okhttp3.Call deleteCall(String integration, final ProgressResponseBody.Pr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -223,10 +225,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -338,7 +340,7 @@ public okhttp3.Call getCall(String integration, final ProgressResponseBody.Progr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -346,10 +348,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -459,7 +461,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -467,10 +469,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -539,4 +541,136 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for update + * @param integration (required) + * @param body integration configuration (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws Exception If fail to serialize the request body object + */ + public okhttp3.Call updateCall(String integration, UpdateIntegrationRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/orgs/self/integrations/{integration}" + .replaceAll("\\{" + "integration" + "\\}", apiClient.escapeString(integration.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }).build()); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateValidateBeforeCall(String integration, UpdateIntegrationRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + + // verify the required parameter 'integration' is set + if (integration == null) { + throw new Exception("Missing the required parameter 'integration' when calling update(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new Exception("Missing the required parameter 'body' when calling update(Async)"); + } + + + okhttp3.Call call = updateCall(integration, body, progressListener, progressRequestListener); + return call; + + } + + /** + * Update Integration + * Update an existing integration. + * @param integration (required) + * @param body integration configuration (required) + * @return UpdateIntegrationResponse + * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UpdateIntegrationResponse update(String integration, UpdateIntegrationRequest body) throws Exception { + ApiResponse resp = updateWithHttpInfo(integration, body); + return resp.getData(); + } + + /** + * Update Integration + * Update an existing integration. + * @param integration (required) + * @param body integration configuration (required) + * @return ApiResponse<UpdateIntegrationResponse> + * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateWithHttpInfo(String integration, UpdateIntegrationRequest body) throws Exception { + okhttp3.Call call = updateValidateBeforeCall(integration, body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update Integration (asynchronously) + * Update an existing integration. + * @param integration (required) + * @param body integration configuration (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws Exception If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call updateAsync(String integration, UpdateIntegrationRequest body, final ApiCallback callback) throws Exception { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = updateValidateBeforeCall(integration, body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } } diff --git a/src/main/java/com/rockset/client/api/OrganizationsApi.java b/src/main/java/com/rockset/client/api/OrganizationsApi.java index 7a26ae78..f19bdb3d 100644 --- a/src/main/java/com/rockset/client/api/OrganizationsApi.java +++ b/src/main/java/com/rockset/client/api/OrganizationsApi.java @@ -87,7 +87,7 @@ public okhttp3.Call getCall(final ProgressResponseBody.ProgressListener progress localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -95,10 +95,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/QueriesApi.java b/src/main/java/com/rockset/client/api/QueriesApi.java index ee8ac150..423c32f4 100644 --- a/src/main/java/com/rockset/client/api/QueriesApi.java +++ b/src/main/java/com/rockset/client/api/QueriesApi.java @@ -95,7 +95,7 @@ public okhttp3.Call cancelCall(String queryId, final ProgressResponseBody.Progre localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -103,10 +103,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -218,7 +218,7 @@ public okhttp3.Call getCall(String queryId, final ProgressResponseBody.ProgressL localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -226,10 +226,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -350,7 +350,7 @@ public okhttp3.Call get_0Call(String queryId, String cursor, Integer docs, Integ localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -358,10 +358,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -480,7 +480,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -488,10 +488,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -594,7 +594,7 @@ public okhttp3.Call queryCall(QueryRequest body, final ProgressResponseBody.Prog localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -602,10 +602,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -716,7 +716,7 @@ public okhttp3.Call validateCall(QueryRequest body, final ProgressResponseBody.P localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -724,10 +724,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/QueryLambdasApi.java b/src/main/java/com/rockset/client/api/QueryLambdasApi.java index 8ad23b7d..a5f06a3e 100644 --- a/src/main/java/com/rockset/client/api/QueryLambdasApi.java +++ b/src/main/java/com/rockset/client/api/QueryLambdasApi.java @@ -100,7 +100,7 @@ public okhttp3.Call createCall(String workspace, CreateQueryLambdaRequest body, localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -108,10 +108,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -234,7 +234,7 @@ public okhttp3.Call create_0Call(String workspace, String queryLambda, CreateQue localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -242,10 +242,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -375,7 +375,7 @@ public okhttp3.Call deleteCall(String workspace, String queryLambda, final Progr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -383,10 +383,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -510,7 +510,7 @@ public okhttp3.Call delete_0Call(String workspace, String queryLambda, String ta localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -518,10 +518,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -653,7 +653,7 @@ public okhttp3.Call delete_1Call(String workspace, String queryLambda, String ve localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -661,10 +661,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -797,7 +797,7 @@ public okhttp3.Call executeCall(String workspace, String queryLambda, String tag localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -805,10 +805,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -944,7 +944,7 @@ public okhttp3.Call execute_0Call(String workspace, String queryLambda, String v localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -952,10 +952,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1090,7 +1090,7 @@ public okhttp3.Call getCall(String workspace, String queryLambda, String tag, fi localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1098,10 +1098,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1233,7 +1233,7 @@ public okhttp3.Call get_0Call(String workspace, String queryLambda, String versi localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1241,10 +1241,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1370,7 +1370,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1378,10 +1378,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1485,7 +1485,7 @@ public okhttp3.Call list_0Call(String workspace, final ProgressResponseBody.Prog localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1493,10 +1493,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1610,7 +1610,7 @@ public okhttp3.Call list_1Call(String workspace, String queryLambda, final Progr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1618,10 +1618,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1743,7 +1743,7 @@ public okhttp3.Call list_2Call(String workspace, String queryLambda, final Progr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1751,10 +1751,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1880,7 +1880,7 @@ public okhttp3.Call updateCall(String workspace, String queryLambda, UpdateQuery localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1888,10 +1888,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/SharedLambdasApi.java b/src/main/java/com/rockset/client/api/SharedLambdasApi.java index 9dd807f9..2e2e11b5 100644 --- a/src/main/java/com/rockset/client/api/SharedLambdasApi.java +++ b/src/main/java/com/rockset/client/api/SharedLambdasApi.java @@ -91,7 +91,7 @@ public okhttp3.Call executeCall(String publicAccessId, ExecutePublicQueryLambdaR localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -99,10 +99,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/SourcesApi.java b/src/main/java/com/rockset/client/api/SourcesApi.java index 8eadc3cc..6c21b152 100644 --- a/src/main/java/com/rockset/client/api/SourcesApi.java +++ b/src/main/java/com/rockset/client/api/SourcesApi.java @@ -32,6 +32,7 @@ import com.rockset.client.model.ListSourcesResponse; import com.rockset.client.model.Source; import com.rockset.client.model.SourceBase; +import com.rockset.client.model.SuspendSourceRequest; import java.lang.reflect.Type; import java.util.ArrayList; @@ -96,7 +97,7 @@ public okhttp3.Call createCall(String workspace, String collection, Source body, localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -104,10 +105,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -239,7 +240,7 @@ public okhttp3.Call deleteCall(String workspace, String collection, String sourc localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -247,10 +248,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -382,7 +383,7 @@ public okhttp3.Call getCall(String workspace, String collection, String source, localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -390,10 +391,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -523,7 +524,7 @@ public okhttp3.Call listCall(String workspace, String collection, final Progress localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -531,10 +532,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -658,7 +659,7 @@ public okhttp3.Call resumeCall(String workspace, String collection, String sourc localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -666,10 +667,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -767,13 +768,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param workspace name of the workspace (required) * @param collection name of the collection (required) * @param source id of source (required) + * @param body JSON object (optional) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws Exception If fail to serialize the request body object */ - public okhttp3.Call suspendCall(String workspace, String collection, String source, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { - Object localVarPostBody = null; + public okhttp3.Call suspendCall(String workspace, String collection, String source, SuspendSourceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + Object localVarPostBody = body; // create path and map variables String localVarPath = "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/suspend" @@ -801,7 +803,7 @@ public okhttp3.Call suspendCall(String workspace, String collection, String sour localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -809,15 +811,15 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private okhttp3.Call suspendValidateBeforeCall(String workspace, String collection, String source, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + private okhttp3.Call suspendValidateBeforeCall(String workspace, String collection, String source, SuspendSourceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { // verify the required parameter 'workspace' is set if (workspace == null) { @@ -835,7 +837,7 @@ private okhttp3.Call suspendValidateBeforeCall(String workspace, String collecti } - okhttp3.Call call = suspendCall(workspace, collection, source, progressListener, progressRequestListener); + okhttp3.Call call = suspendCall(workspace, collection, source, body, progressListener, progressRequestListener); return call; } @@ -846,11 +848,12 @@ private okhttp3.Call suspendValidateBeforeCall(String workspace, String collecti * @param workspace name of the workspace (required) * @param collection name of the collection (required) * @param source id of source (required) + * @param body JSON object (optional) * @return GetSourceResponse * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GetSourceResponse suspend(String workspace, String collection, String source) throws Exception { - ApiResponse resp = suspendWithHttpInfo(workspace, collection, source); + public GetSourceResponse suspend(String workspace, String collection, String source, SuspendSourceRequest body) throws Exception { + ApiResponse resp = suspendWithHttpInfo(workspace, collection, source, body); return resp.getData(); } @@ -860,11 +863,12 @@ public GetSourceResponse suspend(String workspace, String collection, String sou * @param workspace name of the workspace (required) * @param collection name of the collection (required) * @param source id of source (required) + * @param body JSON object (optional) * @return ApiResponse<GetSourceResponse> * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse suspendWithHttpInfo(String workspace, String collection, String source) throws Exception { - okhttp3.Call call = suspendValidateBeforeCall(workspace, collection, source, null, null); + public ApiResponse suspendWithHttpInfo(String workspace, String collection, String source, SuspendSourceRequest body) throws Exception { + okhttp3.Call call = suspendValidateBeforeCall(workspace, collection, source, body, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -875,11 +879,12 @@ public ApiResponse suspendWithHttpInfo(String workspace, Stri * @param workspace name of the workspace (required) * @param collection name of the collection (required) * @param source id of source (required) + * @param body JSON object (optional) * @param callback The callback to be executed when the API call finishes * @return The request call * @throws Exception If fail to process the API call, e.g. serializing the request body object */ - public okhttp3.Call suspendAsync(String workspace, String collection, String source, final ApiCallback callback) throws Exception { + public okhttp3.Call suspendAsync(String workspace, String collection, String source, SuspendSourceRequest body, final ApiCallback callback) throws Exception { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -900,7 +905,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = suspendValidateBeforeCall(workspace, collection, source, progressListener, progressRequestListener); + okhttp3.Call call = suspendValidateBeforeCall(workspace, collection, source, body, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -945,7 +950,7 @@ public okhttp3.Call updateCall(String workspace, String collection, String sourc localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -953,10 +958,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/UsersApi.java b/src/main/java/com/rockset/client/api/UsersApi.java index 877f5524..0f5f1137 100644 --- a/src/main/java/com/rockset/client/api/UsersApi.java +++ b/src/main/java/com/rockset/client/api/UsersApi.java @@ -96,7 +96,7 @@ public okhttp3.Call createCall(CreateUserRequest body, final ProgressResponseBod localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -104,10 +104,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -219,7 +219,7 @@ public okhttp3.Call deleteCall(String user, final ProgressResponseBody.ProgressL localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -227,10 +227,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -340,7 +340,7 @@ public okhttp3.Call getCall(final ProgressResponseBody.ProgressListener progress localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -348,10 +348,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -455,7 +455,7 @@ public okhttp3.Call get_0Call(String user, final ProgressResponseBody.ProgressLi localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -463,10 +463,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -576,7 +576,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -584,10 +584,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -689,7 +689,7 @@ public okhttp3.Call list_0Call(final ProgressResponseBody.ProgressListener progr localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -697,10 +697,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -803,7 +803,7 @@ public okhttp3.Call updateCall(UpdateUnsubscribePreferencesRequest body, final P localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -811,10 +811,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -927,7 +927,7 @@ public okhttp3.Call update_0Call(String user, UpdateUserRequest body, final Prog localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -935,10 +935,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/ViewsApi.java b/src/main/java/com/rockset/client/api/ViewsApi.java index e28bb52a..4101ea96 100644 --- a/src/main/java/com/rockset/client/api/ViewsApi.java +++ b/src/main/java/com/rockset/client/api/ViewsApi.java @@ -96,7 +96,7 @@ public okhttp3.Call createCall(String workspace, CreateViewRequest body, final P localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -104,10 +104,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -229,7 +229,7 @@ public okhttp3.Call deleteCall(String workspace, String view, final ProgressResp localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -237,10 +237,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -362,7 +362,7 @@ public okhttp3.Call getCall(String workspace, String view, final ProgressRespons localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -370,10 +370,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -491,7 +491,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -499,10 +499,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -609,7 +609,7 @@ public okhttp3.Call updateCall(String workspace, String view, UpdateViewRequest localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -617,10 +617,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -748,7 +748,7 @@ public okhttp3.Call workspaceCall(String workspace, final ProgressResponseBody.P localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -756,10 +756,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/VirtualInstancesApi.java b/src/main/java/com/rockset/client/api/VirtualInstancesApi.java index e63b8ca4..a47a604a 100644 --- a/src/main/java/com/rockset/client/api/VirtualInstancesApi.java +++ b/src/main/java/com/rockset/client/api/VirtualInstancesApi.java @@ -33,6 +33,8 @@ import com.rockset.client.model.CreateVirtualInstanceResponse; import com.rockset.client.model.DeleteVirtualInstanceResponse; import com.rockset.client.model.ErrorModel; +import com.rockset.client.model.GetCollectionCommit; +import com.rockset.client.model.GetCollectionCommitRequest; import com.rockset.client.model.GetVirtualInstanceResponse; import com.rockset.client.model.ListCollectionMountsResponse; import com.rockset.client.model.ListQueriesResponse; @@ -103,7 +105,7 @@ public okhttp3.Call createCall(CreateVirtualInstanceRequest body, final Progress localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -111,10 +113,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -226,7 +228,7 @@ public okhttp3.Call deleteCall(String virtualInstanceId, final ProgressResponseB localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -234,10 +236,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -349,7 +351,7 @@ public okhttp3.Call getCall(String virtualInstanceId, final ProgressResponseBody localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -357,10 +359,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -474,7 +476,7 @@ public okhttp3.Call get_0Call(String virtualInstanceId, String collectionPath, f localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -482,10 +484,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -573,12 +575,154 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for get_1 * @param virtualInstanceId Virtual Instance RRN (required) + * @param collectionPath (required) + * @param body JSON object (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws Exception If fail to serialize the request body object */ - public okhttp3.Call get_1Call(String virtualInstanceId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + public okhttp3.Call get_1Call(String virtualInstanceId, String collectionPath, GetCollectionCommitRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}/offsets/commit" + .replaceAll("\\{" + "virtualInstanceId" + "\\}", apiClient.escapeString(virtualInstanceId.toString())) + .replaceAll("\\{" + "collectionPath" + "\\}", apiClient.escapeString(collectionPath.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { + @Override + public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { + okhttp3.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }).build()); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call get_1ValidateBeforeCall(String virtualInstanceId, String collectionPath, GetCollectionCommitRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + + // verify the required parameter 'virtualInstanceId' is set + if (virtualInstanceId == null) { + throw new Exception("Missing the required parameter 'virtualInstanceId' when calling get_1(Async)"); + } + + // verify the required parameter 'collectionPath' is set + if (collectionPath == null) { + throw new Exception("Missing the required parameter 'collectionPath' when calling get_1(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new Exception("Missing the required parameter 'body' when calling get_1(Async)"); + } + + + okhttp3.Call call = get_1Call(virtualInstanceId, collectionPath, body, progressListener, progressRequestListener); + return call; + + } + + /** + * Get Collection Commit + * Determines if the collection includes data at or after the specified fence(s) for close read-after-write semantics. + * @param virtualInstanceId Virtual Instance RRN (required) + * @param collectionPath (required) + * @param body JSON object (required) + * @return GetCollectionCommit + * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public GetCollectionCommit get_1(String virtualInstanceId, String collectionPath, GetCollectionCommitRequest body) throws Exception { + ApiResponse resp = get_1WithHttpInfo(virtualInstanceId, collectionPath, body); + return resp.getData(); + } + + /** + * Get Collection Commit + * Determines if the collection includes data at or after the specified fence(s) for close read-after-write semantics. + * @param virtualInstanceId Virtual Instance RRN (required) + * @param collectionPath (required) + * @param body JSON object (required) + * @return ApiResponse<GetCollectionCommit> + * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse get_1WithHttpInfo(String virtualInstanceId, String collectionPath, GetCollectionCommitRequest body) throws Exception { + okhttp3.Call call = get_1ValidateBeforeCall(virtualInstanceId, collectionPath, body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get Collection Commit (asynchronously) + * Determines if the collection includes data at or after the specified fence(s) for close read-after-write semantics. + * @param virtualInstanceId Virtual Instance RRN (required) + * @param collectionPath (required) + * @param body JSON object (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws Exception If fail to process the API call, e.g. serializing the request body object + */ + public okhttp3.Call get_1Async(String virtualInstanceId, String collectionPath, GetCollectionCommitRequest body, final ApiCallback callback) throws Exception { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + okhttp3.Call call = get_1ValidateBeforeCall(virtualInstanceId, collectionPath, body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for get_2 + * @param virtualInstanceId Virtual Instance RRN (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws Exception If fail to serialize the request body object + */ + public okhttp3.Call get_2Call(String virtualInstanceId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { Object localVarPostBody = null; // create path and map variables @@ -605,7 +749,7 @@ public okhttp3.Call get_1Call(String virtualInstanceId, final ProgressResponseBo localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -613,23 +757,23 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @SuppressWarnings("rawtypes") - private okhttp3.Call get_1ValidateBeforeCall(String virtualInstanceId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { + private okhttp3.Call get_2ValidateBeforeCall(String virtualInstanceId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws Exception { // verify the required parameter 'virtualInstanceId' is set if (virtualInstanceId == null) { - throw new Exception("Missing the required parameter 'virtualInstanceId' when calling get_1(Async)"); + throw new Exception("Missing the required parameter 'virtualInstanceId' when calling get_2(Async)"); } - okhttp3.Call call = get_1Call(virtualInstanceId, progressListener, progressRequestListener); + okhttp3.Call call = get_2Call(virtualInstanceId, progressListener, progressRequestListener); return call; } @@ -641,8 +785,8 @@ private okhttp3.Call get_1ValidateBeforeCall(String virtualInstanceId, final Pro * @return ListQueriesResponse * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListQueriesResponse get_1(String virtualInstanceId) throws Exception { - ApiResponse resp = get_1WithHttpInfo(virtualInstanceId); + public ListQueriesResponse get_2(String virtualInstanceId) throws Exception { + ApiResponse resp = get_2WithHttpInfo(virtualInstanceId); return resp.getData(); } @@ -653,8 +797,8 @@ public ListQueriesResponse get_1(String virtualInstanceId) throws Exception { * @return ApiResponse<ListQueriesResponse> * @throws Exception If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse get_1WithHttpInfo(String virtualInstanceId) throws Exception { - okhttp3.Call call = get_1ValidateBeforeCall(virtualInstanceId, null, null); + public ApiResponse get_2WithHttpInfo(String virtualInstanceId) throws Exception { + okhttp3.Call call = get_2ValidateBeforeCall(virtualInstanceId, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -667,7 +811,7 @@ public ApiResponse get_1WithHttpInfo(String virtualInstance * @return The request call * @throws Exception If fail to process the API call, e.g. serializing the request body object */ - public okhttp3.Call get_1Async(String virtualInstanceId, final ApiCallback callback) throws Exception { + public okhttp3.Call get_2Async(String virtualInstanceId, final ApiCallback callback) throws Exception { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -688,7 +832,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = get_1ValidateBeforeCall(virtualInstanceId, progressListener, progressRequestListener); + okhttp3.Call call = get_2ValidateBeforeCall(virtualInstanceId, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -726,7 +870,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -734,10 +878,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -841,7 +985,7 @@ public okhttp3.Call list_0Call(String virtualInstanceId, final ProgressResponseB localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -849,10 +993,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -965,7 +1109,7 @@ public okhttp3.Call mountCall(String virtualInstanceId, CreateCollectionMountReq localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -973,10 +1117,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1097,7 +1241,7 @@ public okhttp3.Call queryCall(String virtualInstanceId, QueryRequest body, final localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1105,10 +1249,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1228,7 +1372,7 @@ public okhttp3.Call resumeCall(String virtualInstanceId, final ProgressResponseB localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1236,10 +1380,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1352,7 +1496,7 @@ public okhttp3.Call setCall(String virtualInstanceId, UpdateVirtualInstanceReque localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1360,10 +1504,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1483,7 +1627,7 @@ public okhttp3.Call suspendCall(String virtualInstanceId, final ProgressResponse localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1491,10 +1635,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -1608,7 +1752,7 @@ public okhttp3.Call unmountCall(String virtualInstanceId, String collectionPath, localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -1616,10 +1760,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/api/WorkspacesApi.java b/src/main/java/com/rockset/client/api/WorkspacesApi.java index c6478a71..ce058e8f 100644 --- a/src/main/java/com/rockset/client/api/WorkspacesApi.java +++ b/src/main/java/com/rockset/client/api/WorkspacesApi.java @@ -92,7 +92,7 @@ public okhttp3.Call createCall(CreateWorkspaceRequest body, final ProgressRespon localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -100,10 +100,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -215,7 +215,7 @@ public okhttp3.Call deleteCall(String workspace, final ProgressResponseBody.Prog localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -223,10 +223,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -338,7 +338,7 @@ public okhttp3.Call getCall(String workspace, final ProgressResponseBody.Progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -346,10 +346,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } @@ -459,7 +459,7 @@ public okhttp3.Call listCall(final ProgressResponseBody.ProgressListener progres localVarHeaderParams.put("Content-Type", localVarContentType); if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new okhttp3.Interceptor() { + apiClient.setHttpClient(apiClient.getHttpClient().newBuilder().addInterceptor(new okhttp3.Interceptor() { @Override public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException { okhttp3.Response originalResponse = chain.proceed(chain.request()); @@ -467,10 +467,10 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce .body(new ProgressResponseBody(originalResponse.body(), progressListener)) .build(); } - }); + }).build()); } - String[] localVarAuthNames = new String[] { }; + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } diff --git a/src/main/java/com/rockset/client/auth/ApiKeyAuth.java b/src/main/java/com/rockset/client/auth/ApiKeyAuth.java index cdb546ac..0662d1c3 100644 --- a/src/main/java/com/rockset/client/auth/ApiKeyAuth.java +++ b/src/main/java/com/rockset/client/auth/ApiKeyAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/rockset/client/auth/OAuth.java b/src/main/java/com/rockset/client/auth/OAuth.java index 1b67b661..c417a0c7 100644 --- a/src/main/java/com/rockset/client/auth/OAuth.java +++ b/src/main/java/com/rockset/client/auth/OAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/com/rockset/client/model/AddDocumentsRequest.java b/src/main/java/com/rockset/client/model/AddDocumentsRequest.java index 82c6f687..8533a63f 100644 --- a/src/main/java/com/rockset/client/model/AddDocumentsRequest.java +++ b/src/main/java/com/rockset/client/model/AddDocumentsRequest.java @@ -31,7 +31,7 @@ /** * AddDocumentsRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AddDocumentsRequest { @SerializedName("data") private List data = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/AddDocumentsResponse.java b/src/main/java/com/rockset/client/model/AddDocumentsResponse.java index d21239fc..ecd336df 100644 --- a/src/main/java/com/rockset/client/model/AddDocumentsResponse.java +++ b/src/main/java/com/rockset/client/model/AddDocumentsResponse.java @@ -32,7 +32,7 @@ /** * AddDocumentsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AddDocumentsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/Alias.java b/src/main/java/com/rockset/client/model/Alias.java index bb6596e6..ce5c40e9 100644 --- a/src/main/java/com/rockset/client/model/Alias.java +++ b/src/main/java/com/rockset/client/model/Alias.java @@ -31,7 +31,7 @@ /** * Alias */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Alias { @SerializedName("collections") private List collections = null; diff --git a/src/main/java/com/rockset/client/model/ApiKey.java b/src/main/java/com/rockset/client/model/ApiKey.java index 345e9b18..a12e5d55 100644 --- a/src/main/java/com/rockset/client/model/ApiKey.java +++ b/src/main/java/com/rockset/client/model/ApiKey.java @@ -31,7 +31,7 @@ */ @ApiModel(description = "API keys are used to authenticate requests to Rockset's API. An API key is tied to the user who creates it.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ApiKey { @SerializedName("created_at") private String createdAt = null; diff --git a/src/main/java/com/rockset/client/model/AsyncQueryOptions.java b/src/main/java/com/rockset/client/model/AsyncQueryOptions.java index 6eb79071..83eed622 100644 --- a/src/main/java/com/rockset/client/model/AsyncQueryOptions.java +++ b/src/main/java/com/rockset/client/model/AsyncQueryOptions.java @@ -29,7 +29,7 @@ /** * AsyncQueryOptions */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AsyncQueryOptions { @SerializedName("client_timeout_ms") private Long clientTimeoutMs = null; diff --git a/src/main/java/com/rockset/client/model/AutoScalingPolicy.java b/src/main/java/com/rockset/client/model/AutoScalingPolicy.java index d0885e57..af7becb4 100644 --- a/src/main/java/com/rockset/client/model/AutoScalingPolicy.java +++ b/src/main/java/com/rockset/client/model/AutoScalingPolicy.java @@ -29,7 +29,7 @@ /** * AutoScalingPolicy */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AutoScalingPolicy { @SerializedName("enabled") private Boolean enabled = null; diff --git a/src/main/java/com/rockset/client/model/AvroParams.java b/src/main/java/com/rockset/client/model/AvroParams.java index 0e44ced4..6e62e99a 100644 --- a/src/main/java/com/rockset/client/model/AvroParams.java +++ b/src/main/java/com/rockset/client/model/AvroParams.java @@ -21,7 +21,7 @@ /** * AvroParams */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AvroParams { @Override diff --git a/src/main/java/com/rockset/client/model/AwsAccessKey.java b/src/main/java/com/rockset/client/model/AwsAccessKey.java index 2143d36a..ef5d4abd 100644 --- a/src/main/java/com/rockset/client/model/AwsAccessKey.java +++ b/src/main/java/com/rockset/client/model/AwsAccessKey.java @@ -29,7 +29,7 @@ /** * AwsAccessKey */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AwsAccessKey { @SerializedName("aws_access_key_id") private String awsAccessKeyId = null; diff --git a/src/main/java/com/rockset/client/model/AwsRole.java b/src/main/java/com/rockset/client/model/AwsRole.java index d862ccb4..7e2d60e1 100644 --- a/src/main/java/com/rockset/client/model/AwsRole.java +++ b/src/main/java/com/rockset/client/model/AwsRole.java @@ -29,7 +29,7 @@ /** * AwsRole */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AwsRole { @SerializedName("aws_external_id") private String awsExternalId = null; diff --git a/src/main/java/com/rockset/client/model/AzureBlobStorageIntegration.java b/src/main/java/com/rockset/client/model/AzureBlobStorageIntegration.java index e4d98128..cc155aaf 100644 --- a/src/main/java/com/rockset/client/model/AzureBlobStorageIntegration.java +++ b/src/main/java/com/rockset/client/model/AzureBlobStorageIntegration.java @@ -29,7 +29,7 @@ /** * AzureBlobStorageIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AzureBlobStorageIntegration { @SerializedName("connection_string") private String connectionString = null; diff --git a/src/main/java/com/rockset/client/model/AzureEventHubsIntegration.java b/src/main/java/com/rockset/client/model/AzureEventHubsIntegration.java index 6b0825c8..d39f1a58 100644 --- a/src/main/java/com/rockset/client/model/AzureEventHubsIntegration.java +++ b/src/main/java/com/rockset/client/model/AzureEventHubsIntegration.java @@ -29,7 +29,7 @@ /** * AzureEventHubsIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AzureEventHubsIntegration { @SerializedName("connection_string") private String connectionString = null; diff --git a/src/main/java/com/rockset/client/model/AzureServiceBusIntegration.java b/src/main/java/com/rockset/client/model/AzureServiceBusIntegration.java index 53c83053..eda31a6b 100644 --- a/src/main/java/com/rockset/client/model/AzureServiceBusIntegration.java +++ b/src/main/java/com/rockset/client/model/AzureServiceBusIntegration.java @@ -29,7 +29,7 @@ /** * AzureServiceBusIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class AzureServiceBusIntegration { @SerializedName("connection_string") private String connectionString = null; diff --git a/src/main/java/com/rockset/client/model/BulkStats.java b/src/main/java/com/rockset/client/model/BulkStats.java index 6e81ab7e..63180845 100644 --- a/src/main/java/com/rockset/client/model/BulkStats.java +++ b/src/main/java/com/rockset/client/model/BulkStats.java @@ -29,7 +29,7 @@ /** * BulkStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class BulkStats { @SerializedName("data_downloaded_bytes") private Long dataDownloadedBytes = null; diff --git a/src/main/java/com/rockset/client/model/CancelQueryResponse.java b/src/main/java/com/rockset/client/model/CancelQueryResponse.java index b0ad5f5f..730adce5 100644 --- a/src/main/java/com/rockset/client/model/CancelQueryResponse.java +++ b/src/main/java/com/rockset/client/model/CancelQueryResponse.java @@ -30,7 +30,7 @@ /** * CancelQueryResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CancelQueryResponse { @SerializedName("data") private QueryInfo data = null; diff --git a/src/main/java/com/rockset/client/model/Cluster.java b/src/main/java/com/rockset/client/model/Cluster.java index d51f078b..89c24e7e 100644 --- a/src/main/java/com/rockset/client/model/Cluster.java +++ b/src/main/java/com/rockset/client/model/Cluster.java @@ -29,7 +29,7 @@ /** * Cluster */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Cluster { @SerializedName("apiserver_url") private String apiserverUrl = null; diff --git a/src/main/java/com/rockset/client/model/Collection.java b/src/main/java/com/rockset/client/model/Collection.java index da551cbe..ad06b17a 100644 --- a/src/main/java/com/rockset/client/model/Collection.java +++ b/src/main/java/com/rockset/client/model/Collection.java @@ -38,7 +38,7 @@ /** * Collection */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Collection { @SerializedName("aliases") private List aliases = null; @@ -79,6 +79,9 @@ public class Collection { @SerializedName("retention_secs") private Long retentionSecs = null; + @SerializedName("rrn") + private String rrn = null; + @SerializedName("sources") private List sources = null; @@ -156,6 +159,59 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("status") private StatusEnum status = null; + /** + * RocksDB storage compression type. + */ + @JsonAdapter(StorageCompressionTypeEnum.Adapter.class) + public enum StorageCompressionTypeEnum { + LZ4("LZ4"), + + ZSTD("ZSTD"), + + UNKNOWN("UNKNOWN"); + + private String value; + + StorageCompressionTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageCompressionTypeEnum fromValue(String text) { + for (StorageCompressionTypeEnum b : StorageCompressionTypeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StorageCompressionTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StorageCompressionTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StorageCompressionTypeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("storage_compression_type") + private StorageCompressionTypeEnum storageCompressionType = null; + @SerializedName("workspace") private String workspace = null; @@ -451,6 +507,26 @@ public void setRetentionSecs(Long retentionSecs) { this.retentionSecs = retentionSecs; } + public Collection rrn(String rrn) { + this.rrn = rrn; + return this; + } + + /** + * Collection RRN. + * @return rrn + **/ + +@JsonProperty("rrn") +@ApiModelProperty(example = "rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000", value = "Collection RRN.") + public String getRrn() { + return rrn; + } + + public void setRrn(String rrn) { + this.rrn = rrn; + } + public Collection sources(List sources) { this.sources = sources; return this; @@ -519,6 +595,26 @@ public void setStatus(StatusEnum status) { this.status = status; } + public Collection storageCompressionType(StorageCompressionTypeEnum storageCompressionType) { + this.storageCompressionType = storageCompressionType; + return this; + } + + /** + * RocksDB storage compression type. + * @return storageCompressionType + **/ + +@JsonProperty("storage_compression_type") +@ApiModelProperty(value = "RocksDB storage compression type.") + public StorageCompressionTypeEnum getStorageCompressionType() { + return storageCompressionType; + } + + public void setStorageCompressionType(StorageCompressionTypeEnum storageCompressionType) { + this.storageCompressionType = storageCompressionType; + } + public Collection workspace(String workspace) { this.workspace = workspace; return this; @@ -562,15 +658,17 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.name, collection.name) && Objects.equals(this.readOnly, collection.readOnly) && Objects.equals(this.retentionSecs, collection.retentionSecs) && + Objects.equals(this.rrn, collection.rrn) && Objects.equals(this.sources, collection.sources) && Objects.equals(this.stats, collection.stats) && Objects.equals(this.status, collection.status) && + Objects.equals(this.storageCompressionType, collection.storageCompressionType) && Objects.equals(this.workspace, collection.workspace); } @Override public int hashCode() { - return Objects.hash(aliases, bulkStats, clusteringKey, createdAt, createdBy, createdByApikeyName, description, fieldMappingQuery, fieldMappings, insertOnly, name, readOnly, retentionSecs, sources, stats, status, workspace); + return Objects.hash(aliases, bulkStats, clusteringKey, createdAt, createdBy, createdByApikeyName, description, fieldMappingQuery, fieldMappings, insertOnly, name, readOnly, retentionSecs, rrn, sources, stats, status, storageCompressionType, workspace); } @@ -592,9 +690,11 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" retentionSecs: ").append(toIndentedString(retentionSecs)).append("\n"); + sb.append(" rrn: ").append(toIndentedString(rrn)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append(" stats: ").append(toIndentedString(stats)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" storageCompressionType: ").append(toIndentedString(storageCompressionType)).append("\n"); sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/rockset/client/model/CollectionMount.java b/src/main/java/com/rockset/client/model/CollectionMount.java index 5134a0d8..5e37654f 100644 --- a/src/main/java/com/rockset/client/model/CollectionMount.java +++ b/src/main/java/com/rockset/client/model/CollectionMount.java @@ -30,7 +30,7 @@ /** * CollectionMount */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CollectionMount { @SerializedName("collection_path") private String collectionPath = null; diff --git a/src/main/java/com/rockset/client/model/CollectionMountResponse.java b/src/main/java/com/rockset/client/model/CollectionMountResponse.java index 624fb531..e65c9c29 100644 --- a/src/main/java/com/rockset/client/model/CollectionMountResponse.java +++ b/src/main/java/com/rockset/client/model/CollectionMountResponse.java @@ -30,7 +30,7 @@ /** * CollectionMountResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CollectionMountResponse { @SerializedName("data") private CollectionMount data = null; diff --git a/src/main/java/com/rockset/client/model/CollectionMountStats.java b/src/main/java/com/rockset/client/model/CollectionMountStats.java index 64f4759c..5f9f4f8b 100644 --- a/src/main/java/com/rockset/client/model/CollectionMountStats.java +++ b/src/main/java/com/rockset/client/model/CollectionMountStats.java @@ -29,7 +29,7 @@ /** * CollectionMountStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CollectionMountStats { @SerializedName("last_queried_ms") private Long lastQueriedMs = null; diff --git a/src/main/java/com/rockset/client/model/CollectionStats.java b/src/main/java/com/rockset/client/model/CollectionStats.java index dda4473b..b3834026 100644 --- a/src/main/java/com/rockset/client/model/CollectionStats.java +++ b/src/main/java/com/rockset/client/model/CollectionStats.java @@ -29,7 +29,7 @@ /** * CollectionStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CollectionStats { @SerializedName("bulk_bytes_inserted") private Long bulkBytesInserted = null; diff --git a/src/main/java/com/rockset/client/model/CreateAliasRequest.java b/src/main/java/com/rockset/client/model/CreateAliasRequest.java index 12355d2f..2fd4baca 100644 --- a/src/main/java/com/rockset/client/model/CreateAliasRequest.java +++ b/src/main/java/com/rockset/client/model/CreateAliasRequest.java @@ -31,7 +31,7 @@ /** * CreateAliasRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateAliasRequest { @SerializedName("collections") private List collections = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/CreateAliasResponse.java b/src/main/java/com/rockset/client/model/CreateAliasResponse.java index 282d27b9..77dfc75e 100644 --- a/src/main/java/com/rockset/client/model/CreateAliasResponse.java +++ b/src/main/java/com/rockset/client/model/CreateAliasResponse.java @@ -30,7 +30,7 @@ /** * CreateAliasResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateAliasResponse { @SerializedName("data") private Alias data = null; diff --git a/src/main/java/com/rockset/client/model/CreateApiKeyRequest.java b/src/main/java/com/rockset/client/model/CreateApiKeyRequest.java index f65b2bec..acdc4c3d 100644 --- a/src/main/java/com/rockset/client/model/CreateApiKeyRequest.java +++ b/src/main/java/com/rockset/client/model/CreateApiKeyRequest.java @@ -29,7 +29,7 @@ /** * CreateApiKeyRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateApiKeyRequest { @SerializedName("created_by") private String createdBy = null; diff --git a/src/main/java/com/rockset/client/model/CreateApiKeyResponse.java b/src/main/java/com/rockset/client/model/CreateApiKeyResponse.java index 5c3aebe1..ecbe2982 100644 --- a/src/main/java/com/rockset/client/model/CreateApiKeyResponse.java +++ b/src/main/java/com/rockset/client/model/CreateApiKeyResponse.java @@ -30,7 +30,7 @@ /** * CreateApiKeyResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateApiKeyResponse { @SerializedName("data") private ApiKey data = null; diff --git a/src/main/java/com/rockset/client/model/CreateCollectionMountRequest.java b/src/main/java/com/rockset/client/model/CreateCollectionMountRequest.java index b8b2c145..8861e934 100644 --- a/src/main/java/com/rockset/client/model/CreateCollectionMountRequest.java +++ b/src/main/java/com/rockset/client/model/CreateCollectionMountRequest.java @@ -31,7 +31,7 @@ /** * CreateCollectionMountRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateCollectionMountRequest { @SerializedName("collection_paths") private List collectionPaths = null; diff --git a/src/main/java/com/rockset/client/model/CreateCollectionMountsResponse.java b/src/main/java/com/rockset/client/model/CreateCollectionMountsResponse.java index 320359b9..7c3c80c1 100644 --- a/src/main/java/com/rockset/client/model/CreateCollectionMountsResponse.java +++ b/src/main/java/com/rockset/client/model/CreateCollectionMountsResponse.java @@ -32,7 +32,7 @@ /** * CreateCollectionMountsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateCollectionMountsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/CreateCollectionRequest.java b/src/main/java/com/rockset/client/model/CreateCollectionRequest.java index fedd51e9..24926d57 100644 --- a/src/main/java/com/rockset/client/model/CreateCollectionRequest.java +++ b/src/main/java/com/rockset/client/model/CreateCollectionRequest.java @@ -35,7 +35,7 @@ /** * CreateCollectionRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateCollectionRequest { @SerializedName("clustering_key") private List clusteringKey = null; diff --git a/src/main/java/com/rockset/client/model/CreateCollectionResponse.java b/src/main/java/com/rockset/client/model/CreateCollectionResponse.java index 511d2a93..5faca27f 100644 --- a/src/main/java/com/rockset/client/model/CreateCollectionResponse.java +++ b/src/main/java/com/rockset/client/model/CreateCollectionResponse.java @@ -30,7 +30,7 @@ /** * CreateCollectionResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateCollectionResponse { @SerializedName("data") private Collection data = null; diff --git a/src/main/java/com/rockset/client/model/CreateIntegrationRequest.java b/src/main/java/com/rockset/client/model/CreateIntegrationRequest.java index 9cf69534..32c1cfb2 100644 --- a/src/main/java/com/rockset/client/model/CreateIntegrationRequest.java +++ b/src/main/java/com/rockset/client/model/CreateIntegrationRequest.java @@ -39,7 +39,7 @@ /** * CreateIntegrationRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateIntegrationRequest { @SerializedName("azure_blob_storage") private AzureBlobStorageIntegration azureBlobStorage = null; diff --git a/src/main/java/com/rockset/client/model/CreateIntegrationResponse.java b/src/main/java/com/rockset/client/model/CreateIntegrationResponse.java index d470b786..b4983da0 100644 --- a/src/main/java/com/rockset/client/model/CreateIntegrationResponse.java +++ b/src/main/java/com/rockset/client/model/CreateIntegrationResponse.java @@ -30,7 +30,7 @@ /** * CreateIntegrationResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateIntegrationResponse { @SerializedName("data") private Integration data = null; diff --git a/src/main/java/com/rockset/client/model/CreateQueryLambdaRequest.java b/src/main/java/com/rockset/client/model/CreateQueryLambdaRequest.java index a724be92..028e9b2e 100644 --- a/src/main/java/com/rockset/client/model/CreateQueryLambdaRequest.java +++ b/src/main/java/com/rockset/client/model/CreateQueryLambdaRequest.java @@ -30,7 +30,7 @@ /** * CreateQueryLambdaRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateQueryLambdaRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/CreateQueryLambdaTagRequest.java b/src/main/java/com/rockset/client/model/CreateQueryLambdaTagRequest.java index c1919728..2444c448 100644 --- a/src/main/java/com/rockset/client/model/CreateQueryLambdaTagRequest.java +++ b/src/main/java/com/rockset/client/model/CreateQueryLambdaTagRequest.java @@ -29,7 +29,7 @@ /** * CreateQueryLambdaTagRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateQueryLambdaTagRequest { @SerializedName("tag_name") private String tagName = null; diff --git a/src/main/java/com/rockset/client/model/CreateRoleRequest.java b/src/main/java/com/rockset/client/model/CreateRoleRequest.java index 4f096ee4..ceb652db 100644 --- a/src/main/java/com/rockset/client/model/CreateRoleRequest.java +++ b/src/main/java/com/rockset/client/model/CreateRoleRequest.java @@ -32,7 +32,7 @@ /** * CreateRoleRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateRoleRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/CreateUserRequest.java b/src/main/java/com/rockset/client/model/CreateUserRequest.java index 4906bf77..61074fdc 100644 --- a/src/main/java/com/rockset/client/model/CreateUserRequest.java +++ b/src/main/java/com/rockset/client/model/CreateUserRequest.java @@ -31,7 +31,7 @@ /** * CreateUserRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateUserRequest { @SerializedName("email") private String email = null; diff --git a/src/main/java/com/rockset/client/model/CreateUserResponse.java b/src/main/java/com/rockset/client/model/CreateUserResponse.java index 39b8ff5a..27d45477 100644 --- a/src/main/java/com/rockset/client/model/CreateUserResponse.java +++ b/src/main/java/com/rockset/client/model/CreateUserResponse.java @@ -30,7 +30,7 @@ /** * CreateUserResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateUserResponse { @SerializedName("data") private User data = null; diff --git a/src/main/java/com/rockset/client/model/CreateViewRequest.java b/src/main/java/com/rockset/client/model/CreateViewRequest.java index 1614fa3c..84cb6a67 100644 --- a/src/main/java/com/rockset/client/model/CreateViewRequest.java +++ b/src/main/java/com/rockset/client/model/CreateViewRequest.java @@ -29,7 +29,7 @@ /** * CreateViewRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateViewRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/CreateViewResponse.java b/src/main/java/com/rockset/client/model/CreateViewResponse.java index e5e57963..38a08afb 100644 --- a/src/main/java/com/rockset/client/model/CreateViewResponse.java +++ b/src/main/java/com/rockset/client/model/CreateViewResponse.java @@ -30,7 +30,7 @@ /** * CreateViewResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateViewResponse { @SerializedName("data") private View data = null; diff --git a/src/main/java/com/rockset/client/model/CreateVirtualInstanceRequest.java b/src/main/java/com/rockset/client/model/CreateVirtualInstanceRequest.java index 8d3d0c88..1a8c9395 100644 --- a/src/main/java/com/rockset/client/model/CreateVirtualInstanceRequest.java +++ b/src/main/java/com/rockset/client/model/CreateVirtualInstanceRequest.java @@ -29,7 +29,7 @@ /** * CreateVirtualInstanceRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateVirtualInstanceRequest { @SerializedName("auto_suspend_seconds") private Integer autoSuspendSeconds = null; diff --git a/src/main/java/com/rockset/client/model/CreateVirtualInstanceResponse.java b/src/main/java/com/rockset/client/model/CreateVirtualInstanceResponse.java index 1c78b275..19d337ed 100644 --- a/src/main/java/com/rockset/client/model/CreateVirtualInstanceResponse.java +++ b/src/main/java/com/rockset/client/model/CreateVirtualInstanceResponse.java @@ -30,7 +30,7 @@ /** * CreateVirtualInstanceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateVirtualInstanceResponse { @SerializedName("data") private VirtualInstance data = null; diff --git a/src/main/java/com/rockset/client/model/CreateWorkspaceRequest.java b/src/main/java/com/rockset/client/model/CreateWorkspaceRequest.java index 10eb3ec8..bd0c037d 100644 --- a/src/main/java/com/rockset/client/model/CreateWorkspaceRequest.java +++ b/src/main/java/com/rockset/client/model/CreateWorkspaceRequest.java @@ -29,7 +29,7 @@ /** * CreateWorkspaceRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateWorkspaceRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/CreateWorkspaceResponse.java b/src/main/java/com/rockset/client/model/CreateWorkspaceResponse.java index 6c8b52af..b870bba3 100644 --- a/src/main/java/com/rockset/client/model/CreateWorkspaceResponse.java +++ b/src/main/java/com/rockset/client/model/CreateWorkspaceResponse.java @@ -30,7 +30,7 @@ /** * CreateWorkspaceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CreateWorkspaceResponse { @SerializedName("data") private Workspace data = null; diff --git a/src/main/java/com/rockset/client/model/CsvParams.java b/src/main/java/com/rockset/client/model/CsvParams.java index d4774c5a..5a968a38 100644 --- a/src/main/java/com/rockset/client/model/CsvParams.java +++ b/src/main/java/com/rockset/client/model/CsvParams.java @@ -31,7 +31,7 @@ /** * CsvParams */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class CsvParams { @SerializedName("columnNames") private List columnNames = null; diff --git a/src/main/java/com/rockset/client/model/DeleteAliasResponse.java b/src/main/java/com/rockset/client/model/DeleteAliasResponse.java index 485f14bb..2f2fdbcc 100644 --- a/src/main/java/com/rockset/client/model/DeleteAliasResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteAliasResponse.java @@ -30,7 +30,7 @@ /** * DeleteAliasResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteAliasResponse { @SerializedName("data") private Alias data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteApiKeyResponse.java b/src/main/java/com/rockset/client/model/DeleteApiKeyResponse.java index b0bd492c..18f0abe7 100644 --- a/src/main/java/com/rockset/client/model/DeleteApiKeyResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteApiKeyResponse.java @@ -30,7 +30,7 @@ /** * DeleteApiKeyResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteApiKeyResponse { @SerializedName("data") private ApiKey data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteCollectionResponse.java b/src/main/java/com/rockset/client/model/DeleteCollectionResponse.java index f369a245..11c64304 100644 --- a/src/main/java/com/rockset/client/model/DeleteCollectionResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteCollectionResponse.java @@ -30,7 +30,7 @@ /** * DeleteCollectionResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteCollectionResponse { @SerializedName("data") private Collection data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteDocumentsRequest.java b/src/main/java/com/rockset/client/model/DeleteDocumentsRequest.java index e90b8d16..637620aa 100644 --- a/src/main/java/com/rockset/client/model/DeleteDocumentsRequest.java +++ b/src/main/java/com/rockset/client/model/DeleteDocumentsRequest.java @@ -32,7 +32,7 @@ /** * DeleteDocumentsRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteDocumentsRequest { @SerializedName("data") private List data = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/DeleteDocumentsRequestData.java b/src/main/java/com/rockset/client/model/DeleteDocumentsRequestData.java index 76ba7e13..50c8cbb7 100644 --- a/src/main/java/com/rockset/client/model/DeleteDocumentsRequestData.java +++ b/src/main/java/com/rockset/client/model/DeleteDocumentsRequestData.java @@ -29,7 +29,7 @@ /** * DeleteDocumentsRequestData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteDocumentsRequestData { @SerializedName("_id") private String id = null; diff --git a/src/main/java/com/rockset/client/model/DeleteDocumentsResponse.java b/src/main/java/com/rockset/client/model/DeleteDocumentsResponse.java index d2a8639c..de32c0da 100644 --- a/src/main/java/com/rockset/client/model/DeleteDocumentsResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteDocumentsResponse.java @@ -32,7 +32,7 @@ /** * DeleteDocumentsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteDocumentsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteIntegrationResponse.java b/src/main/java/com/rockset/client/model/DeleteIntegrationResponse.java index d5fc01b3..6fadcbfe 100644 --- a/src/main/java/com/rockset/client/model/DeleteIntegrationResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteIntegrationResponse.java @@ -30,7 +30,7 @@ /** * DeleteIntegrationResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteIntegrationResponse { @SerializedName("data") private Integration data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteQueryLambdaResponse.java b/src/main/java/com/rockset/client/model/DeleteQueryLambdaResponse.java index 08df7286..3a1e2e98 100644 --- a/src/main/java/com/rockset/client/model/DeleteQueryLambdaResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteQueryLambdaResponse.java @@ -30,7 +30,7 @@ /** * DeleteQueryLambdaResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteQueryLambdaResponse { @SerializedName("data") private QueryLambda data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteSourceResponse.java b/src/main/java/com/rockset/client/model/DeleteSourceResponse.java index 6463de58..b0899ef9 100644 --- a/src/main/java/com/rockset/client/model/DeleteSourceResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteSourceResponse.java @@ -30,7 +30,7 @@ /** * DeleteSourceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteSourceResponse { @SerializedName("data") private Source data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteUserResponse.java b/src/main/java/com/rockset/client/model/DeleteUserResponse.java index 4561caec..247f1ef3 100644 --- a/src/main/java/com/rockset/client/model/DeleteUserResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteUserResponse.java @@ -30,7 +30,7 @@ /** * DeleteUserResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteUserResponse { @SerializedName("data") private User data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteViewResponse.java b/src/main/java/com/rockset/client/model/DeleteViewResponse.java index 3b9e8f93..c8a06889 100644 --- a/src/main/java/com/rockset/client/model/DeleteViewResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteViewResponse.java @@ -30,7 +30,7 @@ /** * DeleteViewResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteViewResponse { @SerializedName("data") private View data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteVirtualInstanceResponse.java b/src/main/java/com/rockset/client/model/DeleteVirtualInstanceResponse.java index b6a369c8..d7c913e6 100644 --- a/src/main/java/com/rockset/client/model/DeleteVirtualInstanceResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteVirtualInstanceResponse.java @@ -30,7 +30,7 @@ /** * DeleteVirtualInstanceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteVirtualInstanceResponse { @SerializedName("data") private VirtualInstance data = null; diff --git a/src/main/java/com/rockset/client/model/DeleteWorkspaceResponse.java b/src/main/java/com/rockset/client/model/DeleteWorkspaceResponse.java index e9c41125..60324b7b 100644 --- a/src/main/java/com/rockset/client/model/DeleteWorkspaceResponse.java +++ b/src/main/java/com/rockset/client/model/DeleteWorkspaceResponse.java @@ -30,7 +30,7 @@ /** * DeleteWorkspaceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DeleteWorkspaceResponse { @SerializedName("data") private Workspace data = null; diff --git a/src/main/java/com/rockset/client/model/DocumentStatus.java b/src/main/java/com/rockset/client/model/DocumentStatus.java index 30985d5d..5311a886 100644 --- a/src/main/java/com/rockset/client/model/DocumentStatus.java +++ b/src/main/java/com/rockset/client/model/DocumentStatus.java @@ -30,7 +30,7 @@ /** * DocumentStatus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DocumentStatus { @SerializedName("_collection") private String collection = null; diff --git a/src/main/java/com/rockset/client/model/DynamodbIntegration.java b/src/main/java/com/rockset/client/model/DynamodbIntegration.java index eb41ac3a..802a37d2 100644 --- a/src/main/java/com/rockset/client/model/DynamodbIntegration.java +++ b/src/main/java/com/rockset/client/model/DynamodbIntegration.java @@ -31,7 +31,7 @@ /** * DynamodbIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class DynamodbIntegration { @SerializedName("aws_access_key") private AwsAccessKey awsAccessKey = null; diff --git a/src/main/java/com/rockset/client/model/ErrorModel.java b/src/main/java/com/rockset/client/model/ErrorModel.java index 5d43e3da..e4efca08 100644 --- a/src/main/java/com/rockset/client/model/ErrorModel.java +++ b/src/main/java/com/rockset/client/model/ErrorModel.java @@ -31,7 +31,7 @@ */ @ApiModel(description = "Describes details about an error") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ErrorModel { @SerializedName("column") private Integer column = null; diff --git a/src/main/java/com/rockset/client/model/EventTimeInfo.java b/src/main/java/com/rockset/client/model/EventTimeInfo.java index 7aada33d..cc439e49 100644 --- a/src/main/java/com/rockset/client/model/EventTimeInfo.java +++ b/src/main/java/com/rockset/client/model/EventTimeInfo.java @@ -29,7 +29,7 @@ /** * EventTimeInfo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class EventTimeInfo { @SerializedName("field") private String field = null; diff --git a/src/main/java/com/rockset/client/model/ExecutePublicQueryLambdaRequest.java b/src/main/java/com/rockset/client/model/ExecutePublicQueryLambdaRequest.java index 1c75ced4..1a224634 100644 --- a/src/main/java/com/rockset/client/model/ExecutePublicQueryLambdaRequest.java +++ b/src/main/java/com/rockset/client/model/ExecutePublicQueryLambdaRequest.java @@ -32,7 +32,7 @@ /** * ExecutePublicQueryLambdaRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ExecutePublicQueryLambdaRequest { @SerializedName("default_row_limit") private Integer defaultRowLimit = null; diff --git a/src/main/java/com/rockset/client/model/ExecuteQueryLambdaRequest.java b/src/main/java/com/rockset/client/model/ExecuteQueryLambdaRequest.java index 881c445b..aa9350b0 100644 --- a/src/main/java/com/rockset/client/model/ExecuteQueryLambdaRequest.java +++ b/src/main/java/com/rockset/client/model/ExecuteQueryLambdaRequest.java @@ -33,7 +33,7 @@ /** * ExecuteQueryLambdaRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ExecuteQueryLambdaRequest { @SerializedName("async") private Boolean async = null; diff --git a/src/main/java/com/rockset/client/model/FieldMappingQuery.java b/src/main/java/com/rockset/client/model/FieldMappingQuery.java index abb1bed6..f06fd4a8 100644 --- a/src/main/java/com/rockset/client/model/FieldMappingQuery.java +++ b/src/main/java/com/rockset/client/model/FieldMappingQuery.java @@ -29,7 +29,7 @@ /** * FieldMappingQuery */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class FieldMappingQuery { @SerializedName("sql") private String sql = null; diff --git a/src/main/java/com/rockset/client/model/FieldMappingV2.java b/src/main/java/com/rockset/client/model/FieldMappingV2.java index bafb8ffa..5077771e 100644 --- a/src/main/java/com/rockset/client/model/FieldMappingV2.java +++ b/src/main/java/com/rockset/client/model/FieldMappingV2.java @@ -33,7 +33,7 @@ /** * FieldMappingV2 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class FieldMappingV2 { @SerializedName("input_fields") private List inputFields = null; diff --git a/src/main/java/com/rockset/client/model/FieldPartition.java b/src/main/java/com/rockset/client/model/FieldPartition.java index 83633d03..233a1048 100644 --- a/src/main/java/com/rockset/client/model/FieldPartition.java +++ b/src/main/java/com/rockset/client/model/FieldPartition.java @@ -31,7 +31,7 @@ /** * FieldPartition */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class FieldPartition { @SerializedName("field_name") private String fieldName = null; diff --git a/src/main/java/com/rockset/client/model/FormatParams.java b/src/main/java/com/rockset/client/model/FormatParams.java index 0533a327..de9f2a32 100644 --- a/src/main/java/com/rockset/client/model/FormatParams.java +++ b/src/main/java/com/rockset/client/model/FormatParams.java @@ -32,7 +32,7 @@ /** * FormatParams */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class FormatParams { @SerializedName("avro") private AvroParams avro = null; diff --git a/src/main/java/com/rockset/client/model/GcpServiceAccount.java b/src/main/java/com/rockset/client/model/GcpServiceAccount.java index 201bae4f..ef30cd72 100644 --- a/src/main/java/com/rockset/client/model/GcpServiceAccount.java +++ b/src/main/java/com/rockset/client/model/GcpServiceAccount.java @@ -29,7 +29,7 @@ /** * GcpServiceAccount */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GcpServiceAccount { @SerializedName("service_account_key_file_json") private String serviceAccountKeyFileJson = null; diff --git a/src/main/java/com/rockset/client/model/GcsIntegration.java b/src/main/java/com/rockset/client/model/GcsIntegration.java index 127bfaf5..cba7a99d 100644 --- a/src/main/java/com/rockset/client/model/GcsIntegration.java +++ b/src/main/java/com/rockset/client/model/GcsIntegration.java @@ -30,7 +30,7 @@ /** * GcsIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GcsIntegration { @SerializedName("gcp_service_account") private GcpServiceAccount gcpServiceAccount = null; diff --git a/src/main/java/com/rockset/client/model/GetAliasResponse.java b/src/main/java/com/rockset/client/model/GetAliasResponse.java index 0911b8de..504c27a7 100644 --- a/src/main/java/com/rockset/client/model/GetAliasResponse.java +++ b/src/main/java/com/rockset/client/model/GetAliasResponse.java @@ -30,7 +30,7 @@ /** * GetAliasResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetAliasResponse { @SerializedName("data") private Alias data = null; diff --git a/src/main/java/com/rockset/client/model/GetApiKeyResponse.java b/src/main/java/com/rockset/client/model/GetApiKeyResponse.java index 1d2191f7..b4614bb3 100644 --- a/src/main/java/com/rockset/client/model/GetApiKeyResponse.java +++ b/src/main/java/com/rockset/client/model/GetApiKeyResponse.java @@ -30,7 +30,7 @@ /** * GetApiKeyResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetApiKeyResponse { @SerializedName("data") private ApiKey data = null; diff --git a/src/main/java/com/rockset/client/model/GetCollectionCommit.java b/src/main/java/com/rockset/client/model/GetCollectionCommit.java index 6bdb4f02..80438a6e 100644 --- a/src/main/java/com/rockset/client/model/GetCollectionCommit.java +++ b/src/main/java/com/rockset/client/model/GetCollectionCommit.java @@ -31,7 +31,7 @@ /** * GetCollectionCommit */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetCollectionCommit { @SerializedName("data") private GetCollectionCommitData data = null; diff --git a/src/main/java/com/rockset/client/model/GetCollectionCommitData.java b/src/main/java/com/rockset/client/model/GetCollectionCommitData.java index 970de5d0..8de912a8 100644 --- a/src/main/java/com/rockset/client/model/GetCollectionCommitData.java +++ b/src/main/java/com/rockset/client/model/GetCollectionCommitData.java @@ -29,7 +29,7 @@ /** * GetCollectionCommitData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetCollectionCommitData { @SerializedName("fence") private String fence = null; diff --git a/src/main/java/com/rockset/client/model/GetCollectionCommitRequest.java b/src/main/java/com/rockset/client/model/GetCollectionCommitRequest.java index 0a521f1a..0d4da8b9 100644 --- a/src/main/java/com/rockset/client/model/GetCollectionCommitRequest.java +++ b/src/main/java/com/rockset/client/model/GetCollectionCommitRequest.java @@ -31,7 +31,7 @@ /** * GetCollectionCommitRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetCollectionCommitRequest { @SerializedName("name") private List name = null; diff --git a/src/main/java/com/rockset/client/model/GetCollectionResponse.java b/src/main/java/com/rockset/client/model/GetCollectionResponse.java index 33445b36..e2898417 100644 --- a/src/main/java/com/rockset/client/model/GetCollectionResponse.java +++ b/src/main/java/com/rockset/client/model/GetCollectionResponse.java @@ -30,7 +30,7 @@ /** * GetCollectionResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetCollectionResponse { @SerializedName("data") private Collection data = null; diff --git a/src/main/java/com/rockset/client/model/GetIntegrationResponse.java b/src/main/java/com/rockset/client/model/GetIntegrationResponse.java index b290cae9..94061009 100644 --- a/src/main/java/com/rockset/client/model/GetIntegrationResponse.java +++ b/src/main/java/com/rockset/client/model/GetIntegrationResponse.java @@ -30,7 +30,7 @@ /** * GetIntegrationResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetIntegrationResponse { @SerializedName("data") private Integration data = null; diff --git a/src/main/java/com/rockset/client/model/GetQueryResponse.java b/src/main/java/com/rockset/client/model/GetQueryResponse.java index 158488df..daba5b59 100644 --- a/src/main/java/com/rockset/client/model/GetQueryResponse.java +++ b/src/main/java/com/rockset/client/model/GetQueryResponse.java @@ -30,7 +30,7 @@ /** * GetQueryResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetQueryResponse { @SerializedName("data") private QueryInfo data = null; diff --git a/src/main/java/com/rockset/client/model/GetSourceResponse.java b/src/main/java/com/rockset/client/model/GetSourceResponse.java index 18737705..ee1e2ccf 100644 --- a/src/main/java/com/rockset/client/model/GetSourceResponse.java +++ b/src/main/java/com/rockset/client/model/GetSourceResponse.java @@ -30,7 +30,7 @@ /** * GetSourceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetSourceResponse { @SerializedName("data") private Source data = null; diff --git a/src/main/java/com/rockset/client/model/GetViewResponse.java b/src/main/java/com/rockset/client/model/GetViewResponse.java index 687ddb11..c6868b07 100644 --- a/src/main/java/com/rockset/client/model/GetViewResponse.java +++ b/src/main/java/com/rockset/client/model/GetViewResponse.java @@ -30,7 +30,7 @@ /** * GetViewResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetViewResponse { @SerializedName("data") private View data = null; diff --git a/src/main/java/com/rockset/client/model/GetVirtualInstanceResponse.java b/src/main/java/com/rockset/client/model/GetVirtualInstanceResponse.java index 1fd559ac..86e30446 100644 --- a/src/main/java/com/rockset/client/model/GetVirtualInstanceResponse.java +++ b/src/main/java/com/rockset/client/model/GetVirtualInstanceResponse.java @@ -30,7 +30,7 @@ /** * GetVirtualInstanceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetVirtualInstanceResponse { @SerializedName("data") private VirtualInstance data = null; diff --git a/src/main/java/com/rockset/client/model/GetWorkspaceResponse.java b/src/main/java/com/rockset/client/model/GetWorkspaceResponse.java index 170cff47..5fd5aa24 100644 --- a/src/main/java/com/rockset/client/model/GetWorkspaceResponse.java +++ b/src/main/java/com/rockset/client/model/GetWorkspaceResponse.java @@ -30,7 +30,7 @@ /** * GetWorkspaceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class GetWorkspaceResponse { @SerializedName("data") private Workspace data = null; diff --git a/src/main/java/com/rockset/client/model/InputField.java b/src/main/java/com/rockset/client/model/InputField.java index de24fbc7..d9999652 100644 --- a/src/main/java/com/rockset/client/model/InputField.java +++ b/src/main/java/com/rockset/client/model/InputField.java @@ -29,7 +29,7 @@ /** * InputField */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class InputField { @SerializedName("field_name") private String fieldName = null; diff --git a/src/main/java/com/rockset/client/model/Integration.java b/src/main/java/com/rockset/client/model/Integration.java index 36e4e6b9..3dfbf00b 100644 --- a/src/main/java/com/rockset/client/model/Integration.java +++ b/src/main/java/com/rockset/client/model/Integration.java @@ -44,7 +44,7 @@ */ @ApiModel(description = "Integrations that can be associated with data sources to create collections. Only one type of integration may be specified.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Integration { @SerializedName("azure_blob_storage") private AzureBlobStorageIntegration azureBlobStorage = null; diff --git a/src/main/java/com/rockset/client/model/KafkaIntegration.java b/src/main/java/com/rockset/client/model/KafkaIntegration.java index 35cc39f2..582172eb 100644 --- a/src/main/java/com/rockset/client/model/KafkaIntegration.java +++ b/src/main/java/com/rockset/client/model/KafkaIntegration.java @@ -37,7 +37,7 @@ /** * KafkaIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class KafkaIntegration { @SerializedName("aws_role") private AwsRole awsRole = null; diff --git a/src/main/java/com/rockset/client/model/KafkaV3SecurityConfig.java b/src/main/java/com/rockset/client/model/KafkaV3SecurityConfig.java index a2ee1069..6840698c 100644 --- a/src/main/java/com/rockset/client/model/KafkaV3SecurityConfig.java +++ b/src/main/java/com/rockset/client/model/KafkaV3SecurityConfig.java @@ -29,7 +29,7 @@ /** * KafkaV3SecurityConfig */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class KafkaV3SecurityConfig { @SerializedName("api_key") private String apiKey = null; diff --git a/src/main/java/com/rockset/client/model/KinesisIntegration.java b/src/main/java/com/rockset/client/model/KinesisIntegration.java index 95246b32..e2593cff 100644 --- a/src/main/java/com/rockset/client/model/KinesisIntegration.java +++ b/src/main/java/com/rockset/client/model/KinesisIntegration.java @@ -31,7 +31,7 @@ /** * KinesisIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class KinesisIntegration { @SerializedName("aws_access_key") private AwsAccessKey awsAccessKey = null; diff --git a/src/main/java/com/rockset/client/model/ListAliasesResponse.java b/src/main/java/com/rockset/client/model/ListAliasesResponse.java index 35b6dbc4..4115b2b6 100644 --- a/src/main/java/com/rockset/client/model/ListAliasesResponse.java +++ b/src/main/java/com/rockset/client/model/ListAliasesResponse.java @@ -32,7 +32,7 @@ /** * ListAliasesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListAliasesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListApiKeysResponse.java b/src/main/java/com/rockset/client/model/ListApiKeysResponse.java index dbf73291..dce80f42 100644 --- a/src/main/java/com/rockset/client/model/ListApiKeysResponse.java +++ b/src/main/java/com/rockset/client/model/ListApiKeysResponse.java @@ -32,7 +32,7 @@ /** * ListApiKeysResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListApiKeysResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListCollectionMountsResponse.java b/src/main/java/com/rockset/client/model/ListCollectionMountsResponse.java index 8108b184..fdb88725 100644 --- a/src/main/java/com/rockset/client/model/ListCollectionMountsResponse.java +++ b/src/main/java/com/rockset/client/model/ListCollectionMountsResponse.java @@ -32,7 +32,7 @@ /** * ListCollectionMountsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListCollectionMountsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListCollectionsResponse.java b/src/main/java/com/rockset/client/model/ListCollectionsResponse.java index 17503ab0..7510b04d 100644 --- a/src/main/java/com/rockset/client/model/ListCollectionsResponse.java +++ b/src/main/java/com/rockset/client/model/ListCollectionsResponse.java @@ -32,7 +32,7 @@ /** * ListCollectionsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListCollectionsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListIntegrationsResponse.java b/src/main/java/com/rockset/client/model/ListIntegrationsResponse.java index 4b2bba37..0896ceac 100644 --- a/src/main/java/com/rockset/client/model/ListIntegrationsResponse.java +++ b/src/main/java/com/rockset/client/model/ListIntegrationsResponse.java @@ -32,7 +32,7 @@ /** * ListIntegrationsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListIntegrationsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListQueriesResponse.java b/src/main/java/com/rockset/client/model/ListQueriesResponse.java index a4c73bdc..34202b88 100644 --- a/src/main/java/com/rockset/client/model/ListQueriesResponse.java +++ b/src/main/java/com/rockset/client/model/ListQueriesResponse.java @@ -32,7 +32,7 @@ /** * ListQueriesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListQueriesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListQueryLambdaTagsResponse.java b/src/main/java/com/rockset/client/model/ListQueryLambdaTagsResponse.java index 07cc91df..09531ae2 100644 --- a/src/main/java/com/rockset/client/model/ListQueryLambdaTagsResponse.java +++ b/src/main/java/com/rockset/client/model/ListQueryLambdaTagsResponse.java @@ -32,7 +32,7 @@ /** * ListQueryLambdaTagsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListQueryLambdaTagsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListQueryLambdaVersionsResponse.java b/src/main/java/com/rockset/client/model/ListQueryLambdaVersionsResponse.java index 14bbead5..1d9d2887 100644 --- a/src/main/java/com/rockset/client/model/ListQueryLambdaVersionsResponse.java +++ b/src/main/java/com/rockset/client/model/ListQueryLambdaVersionsResponse.java @@ -32,7 +32,7 @@ /** * ListQueryLambdaVersionsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListQueryLambdaVersionsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListQueryLambdasResponse.java b/src/main/java/com/rockset/client/model/ListQueryLambdasResponse.java index d593a79a..bd448fbb 100644 --- a/src/main/java/com/rockset/client/model/ListQueryLambdasResponse.java +++ b/src/main/java/com/rockset/client/model/ListQueryLambdasResponse.java @@ -32,7 +32,7 @@ /** * ListQueryLambdasResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListQueryLambdasResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListRolesResponse.java b/src/main/java/com/rockset/client/model/ListRolesResponse.java index 9e63820a..02e5d345 100644 --- a/src/main/java/com/rockset/client/model/ListRolesResponse.java +++ b/src/main/java/com/rockset/client/model/ListRolesResponse.java @@ -32,7 +32,7 @@ /** * ListRolesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListRolesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListSourcesResponse.java b/src/main/java/com/rockset/client/model/ListSourcesResponse.java index b01408a1..0615153e 100644 --- a/src/main/java/com/rockset/client/model/ListSourcesResponse.java +++ b/src/main/java/com/rockset/client/model/ListSourcesResponse.java @@ -32,7 +32,7 @@ /** * ListSourcesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListSourcesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListUnsubscribePreferencesResponse.java b/src/main/java/com/rockset/client/model/ListUnsubscribePreferencesResponse.java index 6970f4f6..27d847d6 100644 --- a/src/main/java/com/rockset/client/model/ListUnsubscribePreferencesResponse.java +++ b/src/main/java/com/rockset/client/model/ListUnsubscribePreferencesResponse.java @@ -32,7 +32,7 @@ /** * ListUnsubscribePreferencesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListUnsubscribePreferencesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListUsersResponse.java b/src/main/java/com/rockset/client/model/ListUsersResponse.java index 8aba7f7a..e4218f27 100644 --- a/src/main/java/com/rockset/client/model/ListUsersResponse.java +++ b/src/main/java/com/rockset/client/model/ListUsersResponse.java @@ -32,7 +32,7 @@ /** * ListUsersResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListUsersResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListViewsResponse.java b/src/main/java/com/rockset/client/model/ListViewsResponse.java index 48537e75..1adfd9f8 100644 --- a/src/main/java/com/rockset/client/model/ListViewsResponse.java +++ b/src/main/java/com/rockset/client/model/ListViewsResponse.java @@ -32,7 +32,7 @@ /** * ListViewsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListViewsResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListVirtualInstancesResponse.java b/src/main/java/com/rockset/client/model/ListVirtualInstancesResponse.java index 71f8e9f3..ce07982c 100644 --- a/src/main/java/com/rockset/client/model/ListVirtualInstancesResponse.java +++ b/src/main/java/com/rockset/client/model/ListVirtualInstancesResponse.java @@ -32,7 +32,7 @@ /** * ListVirtualInstancesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListVirtualInstancesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/ListWorkspacesResponse.java b/src/main/java/com/rockset/client/model/ListWorkspacesResponse.java index f70741c9..948a4f69 100644 --- a/src/main/java/com/rockset/client/model/ListWorkspacesResponse.java +++ b/src/main/java/com/rockset/client/model/ListWorkspacesResponse.java @@ -32,7 +32,7 @@ /** * ListWorkspacesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ListWorkspacesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/MongoDbIntegration.java b/src/main/java/com/rockset/client/model/MongoDbIntegration.java index d2fc993d..ebee77ea 100644 --- a/src/main/java/com/rockset/client/model/MongoDbIntegration.java +++ b/src/main/java/com/rockset/client/model/MongoDbIntegration.java @@ -29,7 +29,7 @@ /** * MongoDbIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class MongoDbIntegration { @SerializedName("connection_uri") private String connectionUri = null; diff --git a/src/main/java/com/rockset/client/model/Offsets.java b/src/main/java/com/rockset/client/model/Offsets.java index d5463d88..349afc3b 100644 --- a/src/main/java/com/rockset/client/model/Offsets.java +++ b/src/main/java/com/rockset/client/model/Offsets.java @@ -29,7 +29,7 @@ /** * Offsets */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Offsets { @SerializedName("commit") private String commit = null; diff --git a/src/main/java/com/rockset/client/model/Organization.java b/src/main/java/com/rockset/client/model/Organization.java index 39dae4b8..203156a7 100644 --- a/src/main/java/com/rockset/client/model/Organization.java +++ b/src/main/java/com/rockset/client/model/Organization.java @@ -34,7 +34,7 @@ */ @ApiModel(description = "An organization in Rockset is a container for users and collections.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Organization { @SerializedName("clusters") private List clusters = null; diff --git a/src/main/java/com/rockset/client/model/OrganizationResponse.java b/src/main/java/com/rockset/client/model/OrganizationResponse.java index ec364a58..595b2b18 100644 --- a/src/main/java/com/rockset/client/model/OrganizationResponse.java +++ b/src/main/java/com/rockset/client/model/OrganizationResponse.java @@ -30,7 +30,7 @@ /** * OrganizationResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class OrganizationResponse { @SerializedName("data") private Organization data = null; diff --git a/src/main/java/com/rockset/client/model/OutputField.java b/src/main/java/com/rockset/client/model/OutputField.java index ffc320e1..19ff1ead 100644 --- a/src/main/java/com/rockset/client/model/OutputField.java +++ b/src/main/java/com/rockset/client/model/OutputField.java @@ -30,7 +30,7 @@ /** * OutputField */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class OutputField { @SerializedName("field_name") private String fieldName = null; diff --git a/src/main/java/com/rockset/client/model/Pagination.java b/src/main/java/com/rockset/client/model/Pagination.java index f7038c25..3d2af119 100644 --- a/src/main/java/com/rockset/client/model/Pagination.java +++ b/src/main/java/com/rockset/client/model/Pagination.java @@ -29,7 +29,7 @@ /** * Pagination */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Pagination { @SerializedName("start_cursor") private String startCursor = null; diff --git a/src/main/java/com/rockset/client/model/PaginationInfo.java b/src/main/java/com/rockset/client/model/PaginationInfo.java index 3eedf0ca..2b3f9a37 100644 --- a/src/main/java/com/rockset/client/model/PaginationInfo.java +++ b/src/main/java/com/rockset/client/model/PaginationInfo.java @@ -29,7 +29,7 @@ /** * PaginationInfo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class PaginationInfo { @SerializedName("current_page_doc_count") private Long currentPageDocCount = null; diff --git a/src/main/java/com/rockset/client/model/PatchDocument.java b/src/main/java/com/rockset/client/model/PatchDocument.java index 8ac5d0d0..a95e6758 100644 --- a/src/main/java/com/rockset/client/model/PatchDocument.java +++ b/src/main/java/com/rockset/client/model/PatchDocument.java @@ -32,7 +32,7 @@ /** * PatchDocument */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class PatchDocument { @SerializedName("_id") private String id = null; diff --git a/src/main/java/com/rockset/client/model/PatchDocumentsRequest.java b/src/main/java/com/rockset/client/model/PatchDocumentsRequest.java index 114eca1b..eb38a988 100644 --- a/src/main/java/com/rockset/client/model/PatchDocumentsRequest.java +++ b/src/main/java/com/rockset/client/model/PatchDocumentsRequest.java @@ -32,7 +32,7 @@ /** * PatchDocumentsRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class PatchDocumentsRequest { @SerializedName("data") private List data = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/PatchDocumentsResponse.java b/src/main/java/com/rockset/client/model/PatchDocumentsResponse.java index 1a2e42f1..07694478 100644 --- a/src/main/java/com/rockset/client/model/PatchDocumentsResponse.java +++ b/src/main/java/com/rockset/client/model/PatchDocumentsResponse.java @@ -32,7 +32,7 @@ /** * PatchDocumentsResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class PatchDocumentsResponse { @SerializedName("data") private List data = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/PatchOperation.java b/src/main/java/com/rockset/client/model/PatchOperation.java index 23186a35..2606e102 100644 --- a/src/main/java/com/rockset/client/model/PatchOperation.java +++ b/src/main/java/com/rockset/client/model/PatchOperation.java @@ -29,7 +29,7 @@ /** * PatchOperation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class PatchOperation { @SerializedName("from") private String from = null; diff --git a/src/main/java/com/rockset/client/model/Privilege.java b/src/main/java/com/rockset/client/model/Privilege.java index 68ccbeac..aa03e3a9 100644 --- a/src/main/java/com/rockset/client/model/Privilege.java +++ b/src/main/java/com/rockset/client/model/Privilege.java @@ -29,7 +29,7 @@ /** * Privilege */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Privilege { /** * The action allowed by this privilege. diff --git a/src/main/java/com/rockset/client/model/QueryError.java b/src/main/java/com/rockset/client/model/QueryError.java index 14f8a69a..11be0591 100644 --- a/src/main/java/com/rockset/client/model/QueryError.java +++ b/src/main/java/com/rockset/client/model/QueryError.java @@ -29,7 +29,7 @@ /** * QueryError */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryError { @SerializedName("message") private String message = null; diff --git a/src/main/java/com/rockset/client/model/QueryFieldType.java b/src/main/java/com/rockset/client/model/QueryFieldType.java index 3d183094..edcf8daa 100644 --- a/src/main/java/com/rockset/client/model/QueryFieldType.java +++ b/src/main/java/com/rockset/client/model/QueryFieldType.java @@ -29,7 +29,7 @@ /** * QueryFieldType */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryFieldType { @SerializedName("name") private String name = null; diff --git a/src/main/java/com/rockset/client/model/QueryInfo.java b/src/main/java/com/rockset/client/model/QueryInfo.java index d26669e9..ae09d688 100644 --- a/src/main/java/com/rockset/client/model/QueryInfo.java +++ b/src/main/java/com/rockset/client/model/QueryInfo.java @@ -34,7 +34,7 @@ /** * QueryInfo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryInfo { @SerializedName("executed_by") private String executedBy = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambda.java b/src/main/java/com/rockset/client/model/QueryLambda.java index a07b0c72..ee30fb44 100644 --- a/src/main/java/com/rockset/client/model/QueryLambda.java +++ b/src/main/java/com/rockset/client/model/QueryLambda.java @@ -32,7 +32,7 @@ /** * QueryLambda */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambda { @SerializedName("collections") private List collections = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambdaSql.java b/src/main/java/com/rockset/client/model/QueryLambdaSql.java index f8df84e8..16576638 100644 --- a/src/main/java/com/rockset/client/model/QueryLambdaSql.java +++ b/src/main/java/com/rockset/client/model/QueryLambdaSql.java @@ -32,7 +32,7 @@ /** * QueryLambdaSql */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambdaSql { @SerializedName("default_parameters") private List defaultParameters = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambdaStats.java b/src/main/java/com/rockset/client/model/QueryLambdaStats.java index a5621ece..910b0bd2 100644 --- a/src/main/java/com/rockset/client/model/QueryLambdaStats.java +++ b/src/main/java/com/rockset/client/model/QueryLambdaStats.java @@ -29,7 +29,7 @@ /** * QueryLambdaStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambdaStats { @SerializedName("last_executed") private String lastExecuted = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambdaTag.java b/src/main/java/com/rockset/client/model/QueryLambdaTag.java index 6cde15b3..535a5542 100644 --- a/src/main/java/com/rockset/client/model/QueryLambdaTag.java +++ b/src/main/java/com/rockset/client/model/QueryLambdaTag.java @@ -30,7 +30,7 @@ /** * QueryLambdaTag */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambdaTag { @SerializedName("tag_name") private String tagName = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambdaTagResponse.java b/src/main/java/com/rockset/client/model/QueryLambdaTagResponse.java index 5e206234..63a00771 100644 --- a/src/main/java/com/rockset/client/model/QueryLambdaTagResponse.java +++ b/src/main/java/com/rockset/client/model/QueryLambdaTagResponse.java @@ -30,7 +30,7 @@ /** * QueryLambdaTagResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambdaTagResponse { @SerializedName("data") private QueryLambdaTag data = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambdaVersion.java b/src/main/java/com/rockset/client/model/QueryLambdaVersion.java index 1a15c41c..33c1aadf 100644 --- a/src/main/java/com/rockset/client/model/QueryLambdaVersion.java +++ b/src/main/java/com/rockset/client/model/QueryLambdaVersion.java @@ -33,7 +33,7 @@ /** * QueryLambdaVersion */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambdaVersion { @SerializedName("collections") private List collections = null; diff --git a/src/main/java/com/rockset/client/model/QueryLambdaVersionResponse.java b/src/main/java/com/rockset/client/model/QueryLambdaVersionResponse.java index fd6bd654..c2b9c415 100644 --- a/src/main/java/com/rockset/client/model/QueryLambdaVersionResponse.java +++ b/src/main/java/com/rockset/client/model/QueryLambdaVersionResponse.java @@ -30,7 +30,7 @@ /** * QueryLambdaVersionResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryLambdaVersionResponse { @SerializedName("data") private QueryLambdaVersion data = null; diff --git a/src/main/java/com/rockset/client/model/QueryPaginationResponse.java b/src/main/java/com/rockset/client/model/QueryPaginationResponse.java index 4ece3f97..567ae31f 100644 --- a/src/main/java/com/rockset/client/model/QueryPaginationResponse.java +++ b/src/main/java/com/rockset/client/model/QueryPaginationResponse.java @@ -32,7 +32,7 @@ /** * QueryPaginationResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryPaginationResponse { @SerializedName("pagination") private PaginationInfo pagination = null; diff --git a/src/main/java/com/rockset/client/model/QueryParameter.java b/src/main/java/com/rockset/client/model/QueryParameter.java index b95f592e..02ada972 100644 --- a/src/main/java/com/rockset/client/model/QueryParameter.java +++ b/src/main/java/com/rockset/client/model/QueryParameter.java @@ -29,7 +29,7 @@ /** * QueryParameter */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryParameter { @SerializedName("name") private String name = null; diff --git a/src/main/java/com/rockset/client/model/QueryRequest.java b/src/main/java/com/rockset/client/model/QueryRequest.java index 82671511..e26bd39f 100644 --- a/src/main/java/com/rockset/client/model/QueryRequest.java +++ b/src/main/java/com/rockset/client/model/QueryRequest.java @@ -31,7 +31,7 @@ /** * QueryRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryRequest { @SerializedName("async") private Boolean async = null; diff --git a/src/main/java/com/rockset/client/model/QueryRequestSql.java b/src/main/java/com/rockset/client/model/QueryRequestSql.java index f17bb7f3..eadbe389 100644 --- a/src/main/java/com/rockset/client/model/QueryRequestSql.java +++ b/src/main/java/com/rockset/client/model/QueryRequestSql.java @@ -32,7 +32,7 @@ /** * QueryRequestSql */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryRequestSql { @SerializedName("default_row_limit") private Integer defaultRowLimit = null; diff --git a/src/main/java/com/rockset/client/model/QueryResponse.java b/src/main/java/com/rockset/client/model/QueryResponse.java index e2521f40..37b61f68 100644 --- a/src/main/java/com/rockset/client/model/QueryResponse.java +++ b/src/main/java/com/rockset/client/model/QueryResponse.java @@ -35,7 +35,7 @@ /** * QueryResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryResponse { @SerializedName("collections") private List collections = null; diff --git a/src/main/java/com/rockset/client/model/QueryResponseStats.java b/src/main/java/com/rockset/client/model/QueryResponseStats.java index a5c41ed6..41b599a6 100644 --- a/src/main/java/com/rockset/client/model/QueryResponseStats.java +++ b/src/main/java/com/rockset/client/model/QueryResponseStats.java @@ -29,7 +29,7 @@ /** * QueryResponseStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class QueryResponseStats { @SerializedName("elapsed_time_ms") private Long elapsedTimeMs = null; diff --git a/src/main/java/com/rockset/client/model/ResumeVirtualInstanceResponse.java b/src/main/java/com/rockset/client/model/ResumeVirtualInstanceResponse.java index fc249400..29bd0d47 100644 --- a/src/main/java/com/rockset/client/model/ResumeVirtualInstanceResponse.java +++ b/src/main/java/com/rockset/client/model/ResumeVirtualInstanceResponse.java @@ -30,7 +30,7 @@ /** * ResumeVirtualInstanceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ResumeVirtualInstanceResponse { @SerializedName("data") private VirtualInstance data = null; diff --git a/src/main/java/com/rockset/client/model/Role.java b/src/main/java/com/rockset/client/model/Role.java index 2092a760..90828306 100644 --- a/src/main/java/com/rockset/client/model/Role.java +++ b/src/main/java/com/rockset/client/model/Role.java @@ -32,7 +32,7 @@ /** * Role */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Role { @SerializedName("created_at") private String createdAt = null; diff --git a/src/main/java/com/rockset/client/model/RoleResponse.java b/src/main/java/com/rockset/client/model/RoleResponse.java index 8897f3f4..6603bf77 100644 --- a/src/main/java/com/rockset/client/model/RoleResponse.java +++ b/src/main/java/com/rockset/client/model/RoleResponse.java @@ -30,7 +30,7 @@ /** * RoleResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class RoleResponse { @SerializedName("data") private Role data = null; diff --git a/src/main/java/com/rockset/client/model/S3Integration.java b/src/main/java/com/rockset/client/model/S3Integration.java index 9e3b1ed8..7d246791 100644 --- a/src/main/java/com/rockset/client/model/S3Integration.java +++ b/src/main/java/com/rockset/client/model/S3Integration.java @@ -31,7 +31,7 @@ /** * S3Integration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class S3Integration { @SerializedName("aws_access_key") private AwsAccessKey awsAccessKey = null; diff --git a/src/main/java/com/rockset/client/model/SchemaRegistryConfig.java b/src/main/java/com/rockset/client/model/SchemaRegistryConfig.java index d24bfeed..df7b38a5 100644 --- a/src/main/java/com/rockset/client/model/SchemaRegistryConfig.java +++ b/src/main/java/com/rockset/client/model/SchemaRegistryConfig.java @@ -29,7 +29,7 @@ /** * SchemaRegistryConfig */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SchemaRegistryConfig { @SerializedName("key") private String key = null; diff --git a/src/main/java/com/rockset/client/model/SnowflakeIntegration.java b/src/main/java/com/rockset/client/model/SnowflakeIntegration.java index 4b36c157..27f286f1 100644 --- a/src/main/java/com/rockset/client/model/SnowflakeIntegration.java +++ b/src/main/java/com/rockset/client/model/SnowflakeIntegration.java @@ -31,7 +31,7 @@ /** * SnowflakeIntegration */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SnowflakeIntegration { @SerializedName("aws_access_key") private AwsAccessKey awsAccessKey = null; diff --git a/src/main/java/com/rockset/client/model/Source.java b/src/main/java/com/rockset/client/model/Source.java index 42a54d8a..9215f53a 100644 --- a/src/main/java/com/rockset/client/model/Source.java +++ b/src/main/java/com/rockset/client/model/Source.java @@ -46,7 +46,7 @@ */ @ApiModel(description = "Details about the data source for the given collection. Only one of the following fields are allowed to be defined. Only collections can act as data sources for views. ") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Source { @SerializedName("azure_blob_storage") private SourceAzureBlobStorage azureBlobStorage = null; @@ -87,6 +87,9 @@ public class Source { @SerializedName("mongodb") private SourceMongoDb mongodb = null; + @SerializedName("resume_at") + private String resumeAt = null; + @SerializedName("s3") private SourceS3 s3 = null; @@ -344,6 +347,17 @@ public void setMongodb(SourceMongoDb mongodb) { this.mongodb = mongodb; } + /** + * ISO-8601 date when source would be auto resumed, if suspended + * @return resumeAt + **/ + +@JsonProperty("resume_at") +@ApiModelProperty(example = "2019-01-15T21:48:23Z", value = "ISO-8601 date when source would be auto resumed, if suspended") + public String getResumeAt() { + return resumeAt; + } + public Source s3(SourceS3 s3) { this.s3 = s3; return this; @@ -449,6 +463,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.kafka, source.kafka) && Objects.equals(this.kinesis, source.kinesis) && Objects.equals(this.mongodb, source.mongodb) && + Objects.equals(this.resumeAt, source.resumeAt) && Objects.equals(this.s3, source.s3) && Objects.equals(this.snowflake, source.snowflake) && Objects.equals(this.status, source.status) && @@ -458,7 +473,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(azureBlobStorage, azureEventHubs, azureServiceBus, dynamodb, fileUpload, formatParams, gcs, id, ingestTransformation, integrationName, kafka, kinesis, mongodb, s3, snowflake, status, suspendedAt, system); + return Objects.hash(azureBlobStorage, azureEventHubs, azureServiceBus, dynamodb, fileUpload, formatParams, gcs, id, ingestTransformation, integrationName, kafka, kinesis, mongodb, resumeAt, s3, snowflake, status, suspendedAt, system); } @@ -480,6 +495,7 @@ public String toString() { sb.append(" kafka: ").append(toIndentedString(kafka)).append("\n"); sb.append(" kinesis: ").append(toIndentedString(kinesis)).append("\n"); sb.append(" mongodb: ").append(toIndentedString(mongodb)).append("\n"); + sb.append(" resumeAt: ").append(toIndentedString(resumeAt)).append("\n"); sb.append(" s3: ").append(toIndentedString(s3)).append("\n"); sb.append(" snowflake: ").append(toIndentedString(snowflake)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/src/main/java/com/rockset/client/model/SourceAzBlobStorageBase.java b/src/main/java/com/rockset/client/model/SourceAzBlobStorageBase.java index 7da05b6d..98bab824 100644 --- a/src/main/java/com/rockset/client/model/SourceAzBlobStorageBase.java +++ b/src/main/java/com/rockset/client/model/SourceAzBlobStorageBase.java @@ -30,7 +30,7 @@ /** * SourceAzBlobStorageBase */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceAzBlobStorageBase { @SerializedName("settings") private SourceAzBlobStorageSettings settings = null; diff --git a/src/main/java/com/rockset/client/model/SourceAzBlobStorageSettings.java b/src/main/java/com/rockset/client/model/SourceAzBlobStorageSettings.java index 8f21fd87..615fce2d 100644 --- a/src/main/java/com/rockset/client/model/SourceAzBlobStorageSettings.java +++ b/src/main/java/com/rockset/client/model/SourceAzBlobStorageSettings.java @@ -29,7 +29,7 @@ /** * SourceAzBlobStorageSettings */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceAzBlobStorageSettings { @SerializedName("azblob_scan_frequency") private String azblobScanFrequency = null; diff --git a/src/main/java/com/rockset/client/model/SourceAzureBlobStorage.java b/src/main/java/com/rockset/client/model/SourceAzureBlobStorage.java index 5550f602..d58a70ca 100644 --- a/src/main/java/com/rockset/client/model/SourceAzureBlobStorage.java +++ b/src/main/java/com/rockset/client/model/SourceAzureBlobStorage.java @@ -30,7 +30,7 @@ /** * SourceAzureBlobStorage */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceAzureBlobStorage { @SerializedName("blob_bytes_total") private Long blobBytesTotal = null; diff --git a/src/main/java/com/rockset/client/model/SourceAzureEventHubs.java b/src/main/java/com/rockset/client/model/SourceAzureEventHubs.java index 43c84b5b..af90c26f 100644 --- a/src/main/java/com/rockset/client/model/SourceAzureEventHubs.java +++ b/src/main/java/com/rockset/client/model/SourceAzureEventHubs.java @@ -30,7 +30,7 @@ /** * SourceAzureEventHubs */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceAzureEventHubs { @SerializedName("hub_id") private String hubId = null; diff --git a/src/main/java/com/rockset/client/model/SourceAzureServiceBus.java b/src/main/java/com/rockset/client/model/SourceAzureServiceBus.java index 645d59c1..e8cfe3e5 100644 --- a/src/main/java/com/rockset/client/model/SourceAzureServiceBus.java +++ b/src/main/java/com/rockset/client/model/SourceAzureServiceBus.java @@ -30,7 +30,7 @@ /** * SourceAzureServiceBus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceAzureServiceBus { @SerializedName("status") private StatusAzureServiceBus status = null; diff --git a/src/main/java/com/rockset/client/model/SourceBase.java b/src/main/java/com/rockset/client/model/SourceBase.java index 02060953..3e85796a 100644 --- a/src/main/java/com/rockset/client/model/SourceBase.java +++ b/src/main/java/com/rockset/client/model/SourceBase.java @@ -32,7 +32,7 @@ /** * SourceBase */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceBase { @SerializedName("azure_blob_storage") private SourceAzBlobStorageBase azureBlobStorage = null; diff --git a/src/main/java/com/rockset/client/model/SourceDynamoDb.java b/src/main/java/com/rockset/client/model/SourceDynamoDb.java index 9becabec..43528f01 100644 --- a/src/main/java/com/rockset/client/model/SourceDynamoDb.java +++ b/src/main/java/com/rockset/client/model/SourceDynamoDb.java @@ -31,7 +31,7 @@ /** * SourceDynamoDb */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceDynamoDb { @SerializedName("aws_region") private String awsRegion = null; diff --git a/src/main/java/com/rockset/client/model/SourceFileUpload.java b/src/main/java/com/rockset/client/model/SourceFileUpload.java index 11b44679..588fa816 100644 --- a/src/main/java/com/rockset/client/model/SourceFileUpload.java +++ b/src/main/java/com/rockset/client/model/SourceFileUpload.java @@ -29,7 +29,7 @@ /** * SourceFileUpload */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceFileUpload { @SerializedName("file_name") private String fileName = null; diff --git a/src/main/java/com/rockset/client/model/SourceGcs.java b/src/main/java/com/rockset/client/model/SourceGcs.java index a4875f30..793e953e 100644 --- a/src/main/java/com/rockset/client/model/SourceGcs.java +++ b/src/main/java/com/rockset/client/model/SourceGcs.java @@ -30,7 +30,7 @@ /** * SourceGcs */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceGcs { @SerializedName("bucket") private String bucket = null; diff --git a/src/main/java/com/rockset/client/model/SourceGcsBase.java b/src/main/java/com/rockset/client/model/SourceGcsBase.java index 83633ddc..50010880 100644 --- a/src/main/java/com/rockset/client/model/SourceGcsBase.java +++ b/src/main/java/com/rockset/client/model/SourceGcsBase.java @@ -30,7 +30,7 @@ /** * SourceGcsBase */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceGcsBase { @SerializedName("settings") private SourceGcsSettings settings = null; diff --git a/src/main/java/com/rockset/client/model/SourceGcsSettings.java b/src/main/java/com/rockset/client/model/SourceGcsSettings.java index e827171f..adbcab29 100644 --- a/src/main/java/com/rockset/client/model/SourceGcsSettings.java +++ b/src/main/java/com/rockset/client/model/SourceGcsSettings.java @@ -29,7 +29,7 @@ /** * SourceGcsSettings */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceGcsSettings { @SerializedName("gcs_scan_frequency") private String gcsScanFrequency = null; diff --git a/src/main/java/com/rockset/client/model/SourceKafka.java b/src/main/java/com/rockset/client/model/SourceKafka.java index 14e114f2..52d23718 100644 --- a/src/main/java/com/rockset/client/model/SourceKafka.java +++ b/src/main/java/com/rockset/client/model/SourceKafka.java @@ -30,7 +30,7 @@ /** * SourceKafka */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceKafka { @SerializedName("consumer_group_id") private String consumerGroupId = null; diff --git a/src/main/java/com/rockset/client/model/SourceKinesis.java b/src/main/java/com/rockset/client/model/SourceKinesis.java index 3c55f8d7..f0a9a064 100644 --- a/src/main/java/com/rockset/client/model/SourceKinesis.java +++ b/src/main/java/com/rockset/client/model/SourceKinesis.java @@ -31,7 +31,7 @@ /** * SourceKinesis */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceKinesis { @SerializedName("aws_region") private String awsRegion = null; diff --git a/src/main/java/com/rockset/client/model/SourceMongoDb.java b/src/main/java/com/rockset/client/model/SourceMongoDb.java index 2b58aeb8..4a2257ee 100644 --- a/src/main/java/com/rockset/client/model/SourceMongoDb.java +++ b/src/main/java/com/rockset/client/model/SourceMongoDb.java @@ -30,7 +30,7 @@ /** * SourceMongoDb */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceMongoDb { @SerializedName("collection_name") private String collectionName = null; diff --git a/src/main/java/com/rockset/client/model/SourceS3.java b/src/main/java/com/rockset/client/model/SourceS3.java index 831b48d6..66d06a3a 100644 --- a/src/main/java/com/rockset/client/model/SourceS3.java +++ b/src/main/java/com/rockset/client/model/SourceS3.java @@ -32,7 +32,7 @@ /** * SourceS3 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceS3 { @SerializedName("bucket") private String bucket = null; diff --git a/src/main/java/com/rockset/client/model/SourceS3Base.java b/src/main/java/com/rockset/client/model/SourceS3Base.java index 335569a2..7728422c 100644 --- a/src/main/java/com/rockset/client/model/SourceS3Base.java +++ b/src/main/java/com/rockset/client/model/SourceS3Base.java @@ -30,7 +30,7 @@ /** * SourceS3Base */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceS3Base { @SerializedName("settings") private SourceS3Settings settings = null; diff --git a/src/main/java/com/rockset/client/model/SourceS3Settings.java b/src/main/java/com/rockset/client/model/SourceS3Settings.java index 7686a810..745d8104 100644 --- a/src/main/java/com/rockset/client/model/SourceS3Settings.java +++ b/src/main/java/com/rockset/client/model/SourceS3Settings.java @@ -29,7 +29,7 @@ /** * SourceS3Settings */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceS3Settings { @SerializedName("s3_scan_frequency") private String s3ScanFrequency = null; diff --git a/src/main/java/com/rockset/client/model/SourceSnapshot.java b/src/main/java/com/rockset/client/model/SourceSnapshot.java index 1a12d05b..26a09be9 100644 --- a/src/main/java/com/rockset/client/model/SourceSnapshot.java +++ b/src/main/java/com/rockset/client/model/SourceSnapshot.java @@ -29,34 +29,11 @@ /** * SourceSnapshot */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceSnapshot { - @SerializedName("source_collection_path") - private String sourceCollectionPath = null; - @SerializedName("source_snapshot_rrn") private String sourceSnapshotRrn = null; - public SourceSnapshot sourceCollectionPath(String sourceCollectionPath) { - this.sourceCollectionPath = sourceCollectionPath; - return this; - } - - /** - * Path of source collection to restore the snapshot from. - * @return sourceCollectionPath - **/ - -@JsonProperty("source_collection_path") -@ApiModelProperty(example = "commons.foo", value = "Path of source collection to restore the snapshot from.") - public String getSourceCollectionPath() { - return sourceCollectionPath; - } - - public void setSourceCollectionPath(String sourceCollectionPath) { - this.sourceCollectionPath = sourceCollectionPath; - } - public SourceSnapshot sourceSnapshotRrn(String sourceSnapshotRrn) { this.sourceSnapshotRrn = sourceSnapshotRrn; return this; @@ -87,13 +64,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSnapshot sourceSnapshot = (SourceSnapshot) o; - return Objects.equals(this.sourceCollectionPath, sourceSnapshot.sourceCollectionPath) && - Objects.equals(this.sourceSnapshotRrn, sourceSnapshot.sourceSnapshotRrn); + return Objects.equals(this.sourceSnapshotRrn, sourceSnapshot.sourceSnapshotRrn); } @Override public int hashCode() { - return Objects.hash(sourceCollectionPath, sourceSnapshotRrn); + return Objects.hash(sourceSnapshotRrn); } @@ -102,7 +78,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SourceSnapshot {\n"); - sb.append(" sourceCollectionPath: ").append(toIndentedString(sourceCollectionPath)).append("\n"); sb.append(" sourceSnapshotRrn: ").append(toIndentedString(sourceSnapshotRrn)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/rockset/client/model/SourceSnowflake.java b/src/main/java/com/rockset/client/model/SourceSnowflake.java index 7a9144c5..69cccf6f 100644 --- a/src/main/java/com/rockset/client/model/SourceSnowflake.java +++ b/src/main/java/com/rockset/client/model/SourceSnowflake.java @@ -30,7 +30,7 @@ /** * SourceSnowflake */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceSnowflake { @SerializedName("database") private String database = null; diff --git a/src/main/java/com/rockset/client/model/SourceSystem.java b/src/main/java/com/rockset/client/model/SourceSystem.java index a5a6e2f8..ec7ac967 100644 --- a/src/main/java/com/rockset/client/model/SourceSystem.java +++ b/src/main/java/com/rockset/client/model/SourceSystem.java @@ -29,7 +29,7 @@ /** * SourceSystem */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SourceSystem { /** * The type of this system source. diff --git a/src/main/java/com/rockset/client/model/SqlExpression.java b/src/main/java/com/rockset/client/model/SqlExpression.java index 88aaca83..fff311db 100644 --- a/src/main/java/com/rockset/client/model/SqlExpression.java +++ b/src/main/java/com/rockset/client/model/SqlExpression.java @@ -29,7 +29,7 @@ /** * SqlExpression */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SqlExpression { @SerializedName("sql") private String sql = null; diff --git a/src/main/java/com/rockset/client/model/Stats.java b/src/main/java/com/rockset/client/model/Stats.java index ea9eac55..104738fa 100644 --- a/src/main/java/com/rockset/client/model/Stats.java +++ b/src/main/java/com/rockset/client/model/Stats.java @@ -29,7 +29,7 @@ /** * Stats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Stats { @SerializedName("elapsed_time_ms") private Long elapsedTimeMs = null; diff --git a/src/main/java/com/rockset/client/model/Status.java b/src/main/java/com/rockset/client/model/Status.java index d32e6b72..295df14a 100644 --- a/src/main/java/com/rockset/client/model/Status.java +++ b/src/main/java/com/rockset/client/model/Status.java @@ -29,7 +29,7 @@ /** * Status */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Status { @SerializedName("detected_size_bytes") private Long detectedSizeBytes = null; diff --git a/src/main/java/com/rockset/client/model/StatusAzureEventHubs.java b/src/main/java/com/rockset/client/model/StatusAzureEventHubs.java index 7b3e60d3..25895b7e 100644 --- a/src/main/java/com/rockset/client/model/StatusAzureEventHubs.java +++ b/src/main/java/com/rockset/client/model/StatusAzureEventHubs.java @@ -32,7 +32,7 @@ /** * StatusAzureEventHubs */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusAzureEventHubs { @SerializedName("last_consumed_time") private String lastConsumedTime = null; diff --git a/src/main/java/com/rockset/client/model/StatusAzureEventHubsPartition.java b/src/main/java/com/rockset/client/model/StatusAzureEventHubsPartition.java index 151413b4..fbe4bcda 100644 --- a/src/main/java/com/rockset/client/model/StatusAzureEventHubsPartition.java +++ b/src/main/java/com/rockset/client/model/StatusAzureEventHubsPartition.java @@ -29,7 +29,7 @@ /** * StatusAzureEventHubsPartition */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusAzureEventHubsPartition { @SerializedName("offset_lag") private Long offsetLag = null; diff --git a/src/main/java/com/rockset/client/model/StatusAzureServiceBus.java b/src/main/java/com/rockset/client/model/StatusAzureServiceBus.java index 1b400d3d..16506f6a 100644 --- a/src/main/java/com/rockset/client/model/StatusAzureServiceBus.java +++ b/src/main/java/com/rockset/client/model/StatusAzureServiceBus.java @@ -33,7 +33,7 @@ /** * StatusAzureServiceBus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusAzureServiceBus { @SerializedName("first_processed_at") private String firstProcessedAt = null; diff --git a/src/main/java/com/rockset/client/model/StatusAzureServiceBusSession.java b/src/main/java/com/rockset/client/model/StatusAzureServiceBusSession.java index 7734bbb7..d2101fc6 100644 --- a/src/main/java/com/rockset/client/model/StatusAzureServiceBusSession.java +++ b/src/main/java/com/rockset/client/model/StatusAzureServiceBusSession.java @@ -29,7 +29,7 @@ /** * StatusAzureServiceBusSession */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusAzureServiceBusSession { @SerializedName("last_processed") private String lastProcessed = null; diff --git a/src/main/java/com/rockset/client/model/StatusDynamoDb.java b/src/main/java/com/rockset/client/model/StatusDynamoDb.java index cb0122e7..1dee2dd8 100644 --- a/src/main/java/com/rockset/client/model/StatusDynamoDb.java +++ b/src/main/java/com/rockset/client/model/StatusDynamoDb.java @@ -29,7 +29,7 @@ /** * StatusDynamoDb */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusDynamoDb { @SerializedName("scan_end_time") private String scanEndTime = null; diff --git a/src/main/java/com/rockset/client/model/StatusDynamoDbV2.java b/src/main/java/com/rockset/client/model/StatusDynamoDbV2.java index 9ac3b526..351459eb 100644 --- a/src/main/java/com/rockset/client/model/StatusDynamoDbV2.java +++ b/src/main/java/com/rockset/client/model/StatusDynamoDbV2.java @@ -29,7 +29,7 @@ /** * StatusDynamoDbV2 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusDynamoDbV2 { @SerializedName("initial_dump_completion_percentage") private Double initialDumpCompletionPercentage = null; diff --git a/src/main/java/com/rockset/client/model/StatusKafka.java b/src/main/java/com/rockset/client/model/StatusKafka.java index 8e25b4d3..72a5c8c5 100644 --- a/src/main/java/com/rockset/client/model/StatusKafka.java +++ b/src/main/java/com/rockset/client/model/StatusKafka.java @@ -32,7 +32,7 @@ /** * StatusKafka */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusKafka { @SerializedName("kafka_partitions") private List kafkaPartitions = null; diff --git a/src/main/java/com/rockset/client/model/StatusKafkaPartition.java b/src/main/java/com/rockset/client/model/StatusKafkaPartition.java index 9bc73974..8ff53651 100644 --- a/src/main/java/com/rockset/client/model/StatusKafkaPartition.java +++ b/src/main/java/com/rockset/client/model/StatusKafkaPartition.java @@ -29,7 +29,7 @@ /** * StatusKafkaPartition */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusKafkaPartition { @SerializedName("offset_lag") private Long offsetLag = null; diff --git a/src/main/java/com/rockset/client/model/StatusMongoDb.java b/src/main/java/com/rockset/client/model/StatusMongoDb.java index 08d85a80..4b4a11dc 100644 --- a/src/main/java/com/rockset/client/model/StatusMongoDb.java +++ b/src/main/java/com/rockset/client/model/StatusMongoDb.java @@ -29,7 +29,7 @@ /** * StatusMongoDb */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusMongoDb { @SerializedName("scan_end_time") private String scanEndTime = null; diff --git a/src/main/java/com/rockset/client/model/StatusSnowflake.java b/src/main/java/com/rockset/client/model/StatusSnowflake.java index c81934d7..53d35c64 100644 --- a/src/main/java/com/rockset/client/model/StatusSnowflake.java +++ b/src/main/java/com/rockset/client/model/StatusSnowflake.java @@ -29,7 +29,7 @@ /** * StatusSnowflake */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class StatusSnowflake { /** * State of current ingest for this table. diff --git a/src/main/java/com/rockset/client/model/SuspendSourceRequest.java b/src/main/java/com/rockset/client/model/SuspendSourceRequest.java new file mode 100644 index 00000000..90786bcf --- /dev/null +++ b/src/main/java/com/rockset/client/model/SuspendSourceRequest.java @@ -0,0 +1,98 @@ +/* + * REST API + * Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below. All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey ` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ``` All endpoints are only accessible via https. Build something awesome! + * + * OpenAPI spec version: v1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.rockset.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * SuspendSourceRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") +public class SuspendSourceRequest { + @SerializedName("resume_after_duration") + private String resumeAfterDuration = null; + + public SuspendSourceRequest resumeAfterDuration(String resumeAfterDuration) { + this.resumeAfterDuration = resumeAfterDuration; + return this; + } + + /** + * duration to suspend source; 1h is the default + * @return resumeAfterDuration + **/ + +@JsonProperty("resume_after_duration") +@ApiModelProperty(example = "30min", value = "duration to suspend source; 1h is the default") + public String getResumeAfterDuration() { + return resumeAfterDuration; + } + + public void setResumeAfterDuration(String resumeAfterDuration) { + this.resumeAfterDuration = resumeAfterDuration; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SuspendSourceRequest suspendSourceRequest = (SuspendSourceRequest) o; + return Objects.equals(this.resumeAfterDuration, suspendSourceRequest.resumeAfterDuration); + } + + @Override + public int hashCode() { + return Objects.hash(resumeAfterDuration); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SuspendSourceRequest {\n"); + + sb.append(" resumeAfterDuration: ").append(toIndentedString(resumeAfterDuration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/rockset/client/model/SuspendVirtualInstanceResponse.java b/src/main/java/com/rockset/client/model/SuspendVirtualInstanceResponse.java index 7ecb7940..d1cd9e1b 100644 --- a/src/main/java/com/rockset/client/model/SuspendVirtualInstanceResponse.java +++ b/src/main/java/com/rockset/client/model/SuspendVirtualInstanceResponse.java @@ -30,7 +30,7 @@ /** * SuspendVirtualInstanceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class SuspendVirtualInstanceResponse { @SerializedName("data") private VirtualInstance data = null; diff --git a/src/main/java/com/rockset/client/model/UnsubscribePreference.java b/src/main/java/com/rockset/client/model/UnsubscribePreference.java index 47ae016c..078506b3 100644 --- a/src/main/java/com/rockset/client/model/UnsubscribePreference.java +++ b/src/main/java/com/rockset/client/model/UnsubscribePreference.java @@ -31,7 +31,7 @@ */ @ApiModel(description = "Notification preferences for the user.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UnsubscribePreference { @SerializedName("notificationType") private String notificationType = null; diff --git a/src/main/java/com/rockset/client/model/UpdateAliasRequest.java b/src/main/java/com/rockset/client/model/UpdateAliasRequest.java index 4f753c77..37e4b002 100644 --- a/src/main/java/com/rockset/client/model/UpdateAliasRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateAliasRequest.java @@ -31,7 +31,7 @@ /** * UpdateAliasRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateAliasRequest { @SerializedName("collections") private List collections = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/UpdateApiKeyRequest.java b/src/main/java/com/rockset/client/model/UpdateApiKeyRequest.java index c4a59941..7594c3fe 100644 --- a/src/main/java/com/rockset/client/model/UpdateApiKeyRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateApiKeyRequest.java @@ -29,7 +29,7 @@ /** * UpdateApiKeyRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateApiKeyRequest { /** * State that the api key should be set to. diff --git a/src/main/java/com/rockset/client/model/UpdateApiKeyResponse.java b/src/main/java/com/rockset/client/model/UpdateApiKeyResponse.java index 97941d82..7c7c0815 100644 --- a/src/main/java/com/rockset/client/model/UpdateApiKeyResponse.java +++ b/src/main/java/com/rockset/client/model/UpdateApiKeyResponse.java @@ -30,7 +30,7 @@ /** * UpdateApiKeyResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateApiKeyResponse { @SerializedName("data") private ApiKey data = null; diff --git a/src/main/java/com/rockset/client/model/UpdateCollectionRequest.java b/src/main/java/com/rockset/client/model/UpdateCollectionRequest.java index e97adeaa..e6a1fdb5 100644 --- a/src/main/java/com/rockset/client/model/UpdateCollectionRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateCollectionRequest.java @@ -30,7 +30,7 @@ /** * UpdateCollectionRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateCollectionRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/UpdateIntegrationRequest.java b/src/main/java/com/rockset/client/model/UpdateIntegrationRequest.java new file mode 100644 index 00000000..81cea508 --- /dev/null +++ b/src/main/java/com/rockset/client/model/UpdateIntegrationRequest.java @@ -0,0 +1,358 @@ +/* + * REST API + * Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below. All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey ` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ``` All endpoints are only accessible via https. Build something awesome! + * + * OpenAPI spec version: v1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.rockset.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.rockset.client.model.AzureBlobStorageIntegration; +import com.rockset.client.model.AzureEventHubsIntegration; +import com.rockset.client.model.AzureServiceBusIntegration; +import com.rockset.client.model.DynamodbIntegration; +import com.rockset.client.model.GcsIntegration; +import com.rockset.client.model.KafkaIntegration; +import com.rockset.client.model.KinesisIntegration; +import com.rockset.client.model.MongoDbIntegration; +import com.rockset.client.model.S3Integration; +import com.rockset.client.model.SnowflakeIntegration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UpdateIntegrationRequest + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") +public class UpdateIntegrationRequest { + @SerializedName("azure_blob_storage") + private AzureBlobStorageIntegration azureBlobStorage = null; + + @SerializedName("azure_event_hubs") + private AzureEventHubsIntegration azureEventHubs = null; + + @SerializedName("azure_service_bus") + private AzureServiceBusIntegration azureServiceBus = null; + + @SerializedName("description") + private String description = null; + + @SerializedName("dynamodb") + private DynamodbIntegration dynamodb = null; + + @SerializedName("gcs") + private GcsIntegration gcs = null; + + @SerializedName("kafka") + private KafkaIntegration kafka = null; + + @SerializedName("kinesis") + private KinesisIntegration kinesis = null; + + @SerializedName("mongodb") + private MongoDbIntegration mongodb = null; + + @SerializedName("s3") + private S3Integration s3 = null; + + @SerializedName("snowflake") + private SnowflakeIntegration snowflake = null; + + public UpdateIntegrationRequest azureBlobStorage(AzureBlobStorageIntegration azureBlobStorage) { + this.azureBlobStorage = azureBlobStorage; + return this; + } + + /** + * Azure Blob Storage details. + * @return azureBlobStorage + **/ + +@JsonProperty("azure_blob_storage") +@ApiModelProperty(value = "Azure Blob Storage details.") + public AzureBlobStorageIntegration getAzureBlobStorage() { + return azureBlobStorage; + } + + public void setAzureBlobStorage(AzureBlobStorageIntegration azureBlobStorage) { + this.azureBlobStorage = azureBlobStorage; + } + + public UpdateIntegrationRequest azureEventHubs(AzureEventHubsIntegration azureEventHubs) { + this.azureEventHubs = azureEventHubs; + return this; + } + + /** + * Azure Event Hubs details. + * @return azureEventHubs + **/ + +@JsonProperty("azure_event_hubs") +@ApiModelProperty(value = "Azure Event Hubs details.") + public AzureEventHubsIntegration getAzureEventHubs() { + return azureEventHubs; + } + + public void setAzureEventHubs(AzureEventHubsIntegration azureEventHubs) { + this.azureEventHubs = azureEventHubs; + } + + public UpdateIntegrationRequest azureServiceBus(AzureServiceBusIntegration azureServiceBus) { + this.azureServiceBus = azureServiceBus; + return this; + } + + /** + * Azure Service Bus details. + * @return azureServiceBus + **/ + +@JsonProperty("azure_service_bus") +@ApiModelProperty(value = "Azure Service Bus details.") + public AzureServiceBusIntegration getAzureServiceBus() { + return azureServiceBus; + } + + public void setAzureServiceBus(AzureServiceBusIntegration azureServiceBus) { + this.azureServiceBus = azureServiceBus; + } + + public UpdateIntegrationRequest description(String description) { + this.description = description; + return this; + } + + /** + * Longer explanation for the integration. + * @return description + **/ + +@JsonProperty("description") +@ApiModelProperty(example = "AWS account with event data for the data science team.", value = "Longer explanation for the integration.") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateIntegrationRequest dynamodb(DynamodbIntegration dynamodb) { + this.dynamodb = dynamodb; + return this; + } + + /** + * Amazon DynamoDB details, must have one of aws_access_key or aws_role. + * @return dynamodb + **/ + +@JsonProperty("dynamodb") +@ApiModelProperty(value = "Amazon DynamoDB details, must have one of aws_access_key or aws_role.") + public DynamodbIntegration getDynamodb() { + return dynamodb; + } + + public void setDynamodb(DynamodbIntegration dynamodb) { + this.dynamodb = dynamodb; + } + + public UpdateIntegrationRequest gcs(GcsIntegration gcs) { + this.gcs = gcs; + return this; + } + + /** + * GCS details. + * @return gcs + **/ + +@JsonProperty("gcs") +@ApiModelProperty(value = "GCS details.") + public GcsIntegration getGcs() { + return gcs; + } + + public void setGcs(GcsIntegration gcs) { + this.gcs = gcs; + } + + public UpdateIntegrationRequest kafka(KafkaIntegration kafka) { + this.kafka = kafka; + return this; + } + + /** + * Get kafka + * @return kafka + **/ + +@JsonProperty("kafka") +@ApiModelProperty(value = "") + public KafkaIntegration getKafka() { + return kafka; + } + + public void setKafka(KafkaIntegration kafka) { + this.kafka = kafka; + } + + public UpdateIntegrationRequest kinesis(KinesisIntegration kinesis) { + this.kinesis = kinesis; + return this; + } + + /** + * Amazon Kinesis details, must have one of aws_access_key or aws_role. + * @return kinesis + **/ + +@JsonProperty("kinesis") +@ApiModelProperty(value = "Amazon Kinesis details, must have one of aws_access_key or aws_role.") + public KinesisIntegration getKinesis() { + return kinesis; + } + + public void setKinesis(KinesisIntegration kinesis) { + this.kinesis = kinesis; + } + + public UpdateIntegrationRequest mongodb(MongoDbIntegration mongodb) { + this.mongodb = mongodb; + return this; + } + + /** + * MongoDb details. + * @return mongodb + **/ + +@JsonProperty("mongodb") +@ApiModelProperty(value = "MongoDb details.") + public MongoDbIntegration getMongodb() { + return mongodb; + } + + public void setMongodb(MongoDbIntegration mongodb) { + this.mongodb = mongodb; + } + + public UpdateIntegrationRequest s3(S3Integration s3) { + this.s3 = s3; + return this; + } + + /** + * Amazon S3 details, must have one of aws_access_key or aws_role. + * @return s3 + **/ + +@JsonProperty("s3") +@ApiModelProperty(value = "Amazon S3 details, must have one of aws_access_key or aws_role.") + public S3Integration getS3() { + return s3; + } + + public void setS3(S3Integration s3) { + this.s3 = s3; + } + + public UpdateIntegrationRequest snowflake(SnowflakeIntegration snowflake) { + this.snowflake = snowflake; + return this; + } + + /** + * Snowflake details. + * @return snowflake + **/ + +@JsonProperty("snowflake") +@ApiModelProperty(value = "Snowflake details.") + public SnowflakeIntegration getSnowflake() { + return snowflake; + } + + public void setSnowflake(SnowflakeIntegration snowflake) { + this.snowflake = snowflake; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateIntegrationRequest updateIntegrationRequest = (UpdateIntegrationRequest) o; + return Objects.equals(this.azureBlobStorage, updateIntegrationRequest.azureBlobStorage) && + Objects.equals(this.azureEventHubs, updateIntegrationRequest.azureEventHubs) && + Objects.equals(this.azureServiceBus, updateIntegrationRequest.azureServiceBus) && + Objects.equals(this.description, updateIntegrationRequest.description) && + Objects.equals(this.dynamodb, updateIntegrationRequest.dynamodb) && + Objects.equals(this.gcs, updateIntegrationRequest.gcs) && + Objects.equals(this.kafka, updateIntegrationRequest.kafka) && + Objects.equals(this.kinesis, updateIntegrationRequest.kinesis) && + Objects.equals(this.mongodb, updateIntegrationRequest.mongodb) && + Objects.equals(this.s3, updateIntegrationRequest.s3) && + Objects.equals(this.snowflake, updateIntegrationRequest.snowflake); + } + + @Override + public int hashCode() { + return Objects.hash(azureBlobStorage, azureEventHubs, azureServiceBus, description, dynamodb, gcs, kafka, kinesis, mongodb, s3, snowflake); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateIntegrationRequest {\n"); + + sb.append(" azureBlobStorage: ").append(toIndentedString(azureBlobStorage)).append("\n"); + sb.append(" azureEventHubs: ").append(toIndentedString(azureEventHubs)).append("\n"); + sb.append(" azureServiceBus: ").append(toIndentedString(azureServiceBus)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dynamodb: ").append(toIndentedString(dynamodb)).append("\n"); + sb.append(" gcs: ").append(toIndentedString(gcs)).append("\n"); + sb.append(" kafka: ").append(toIndentedString(kafka)).append("\n"); + sb.append(" kinesis: ").append(toIndentedString(kinesis)).append("\n"); + sb.append(" mongodb: ").append(toIndentedString(mongodb)).append("\n"); + sb.append(" s3: ").append(toIndentedString(s3)).append("\n"); + sb.append(" snowflake: ").append(toIndentedString(snowflake)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/rockset/client/model/UpdateIntegrationResponse.java b/src/main/java/com/rockset/client/model/UpdateIntegrationResponse.java new file mode 100644 index 00000000..961a2103 --- /dev/null +++ b/src/main/java/com/rockset/client/model/UpdateIntegrationResponse.java @@ -0,0 +1,99 @@ +/* + * REST API + * Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below. All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey ` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ``` All endpoints are only accessible via https. Build something awesome! + * + * OpenAPI spec version: v1 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +package com.rockset.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.rockset.client.model.Integration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * UpdateIntegrationResponse + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") +public class UpdateIntegrationResponse { + @SerializedName("data") + private Integration data = null; + + public UpdateIntegrationResponse data(Integration data) { + this.data = data; + return this; + } + + /** + * Updated integration object. + * @return data + **/ + +@JsonProperty("data") +@ApiModelProperty(value = "Updated integration object.") + public Integration getData() { + return data; + } + + public void setData(Integration data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateIntegrationResponse updateIntegrationResponse = (UpdateIntegrationResponse) o; + return Objects.equals(this.data, updateIntegrationResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateIntegrationResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/rockset/client/model/UpdateQueryLambdaRequest.java b/src/main/java/com/rockset/client/model/UpdateQueryLambdaRequest.java index 2f5044a9..ea59024b 100644 --- a/src/main/java/com/rockset/client/model/UpdateQueryLambdaRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateQueryLambdaRequest.java @@ -30,7 +30,7 @@ /** * UpdateQueryLambdaRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateQueryLambdaRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/UpdateRoleRequest.java b/src/main/java/com/rockset/client/model/UpdateRoleRequest.java index 0737c422..04e91914 100644 --- a/src/main/java/com/rockset/client/model/UpdateRoleRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateRoleRequest.java @@ -32,7 +32,7 @@ /** * UpdateRoleRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateRoleRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesRequest.java b/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesRequest.java index 2190af94..fc7da2fd 100644 --- a/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesRequest.java @@ -32,7 +32,7 @@ /** * UpdateUnsubscribePreferencesRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateUnsubscribePreferencesRequest { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesResponse.java b/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesResponse.java index 7d869356..ec1a21d7 100644 --- a/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesResponse.java +++ b/src/main/java/com/rockset/client/model/UpdateUnsubscribePreferencesResponse.java @@ -32,7 +32,7 @@ /** * UpdateUnsubscribePreferencesResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateUnsubscribePreferencesResponse { @SerializedName("data") private List data = null; diff --git a/src/main/java/com/rockset/client/model/UpdateUserRequest.java b/src/main/java/com/rockset/client/model/UpdateUserRequest.java index 27a3f4c6..000b5b59 100644 --- a/src/main/java/com/rockset/client/model/UpdateUserRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateUserRequest.java @@ -31,7 +31,7 @@ /** * UpdateUserRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateUserRequest { @SerializedName("first_name") private String firstName = null; diff --git a/src/main/java/com/rockset/client/model/UpdateViewRequest.java b/src/main/java/com/rockset/client/model/UpdateViewRequest.java index 31d2323f..eaba5f4f 100644 --- a/src/main/java/com/rockset/client/model/UpdateViewRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateViewRequest.java @@ -29,7 +29,7 @@ /** * UpdateViewRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateViewRequest { @SerializedName("description") private String description = null; diff --git a/src/main/java/com/rockset/client/model/UpdateViewResponse.java b/src/main/java/com/rockset/client/model/UpdateViewResponse.java index ffd936c4..78663971 100644 --- a/src/main/java/com/rockset/client/model/UpdateViewResponse.java +++ b/src/main/java/com/rockset/client/model/UpdateViewResponse.java @@ -30,7 +30,7 @@ /** * UpdateViewResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateViewResponse { @SerializedName("data") private View data = null; diff --git a/src/main/java/com/rockset/client/model/UpdateVirtualInstanceRequest.java b/src/main/java/com/rockset/client/model/UpdateVirtualInstanceRequest.java index 219b111a..3e466aeb 100644 --- a/src/main/java/com/rockset/client/model/UpdateVirtualInstanceRequest.java +++ b/src/main/java/com/rockset/client/model/UpdateVirtualInstanceRequest.java @@ -30,7 +30,7 @@ /** * UpdateVirtualInstanceRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateVirtualInstanceRequest { @SerializedName("auto_scaling_policy") private AutoScalingPolicy autoScalingPolicy = null; diff --git a/src/main/java/com/rockset/client/model/UpdateVirtualInstanceResponse.java b/src/main/java/com/rockset/client/model/UpdateVirtualInstanceResponse.java index 38a859cb..0d94b82f 100644 --- a/src/main/java/com/rockset/client/model/UpdateVirtualInstanceResponse.java +++ b/src/main/java/com/rockset/client/model/UpdateVirtualInstanceResponse.java @@ -30,7 +30,7 @@ /** * UpdateVirtualInstanceResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class UpdateVirtualInstanceResponse { @SerializedName("data") private VirtualInstance data = null; diff --git a/src/main/java/com/rockset/client/model/User.java b/src/main/java/com/rockset/client/model/User.java index b509f77d..d014d6da 100644 --- a/src/main/java/com/rockset/client/model/User.java +++ b/src/main/java/com/rockset/client/model/User.java @@ -31,7 +31,7 @@ /** * User */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class User { @SerializedName("created_at") private String createdAt = null; diff --git a/src/main/java/com/rockset/client/model/ValidateQueryResponse.java b/src/main/java/com/rockset/client/model/ValidateQueryResponse.java index f4d6e5e5..3fd9704d 100644 --- a/src/main/java/com/rockset/client/model/ValidateQueryResponse.java +++ b/src/main/java/com/rockset/client/model/ValidateQueryResponse.java @@ -31,7 +31,7 @@ /** * ValidateQueryResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class ValidateQueryResponse { @SerializedName("collections") private List collections = new ArrayList(); diff --git a/src/main/java/com/rockset/client/model/View.java b/src/main/java/com/rockset/client/model/View.java index 7825a6f9..ec48db11 100644 --- a/src/main/java/com/rockset/client/model/View.java +++ b/src/main/java/com/rockset/client/model/View.java @@ -31,7 +31,7 @@ /** * View */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class View { @SerializedName("created_at") private String createdAt = null; diff --git a/src/main/java/com/rockset/client/model/VirtualInstance.java b/src/main/java/com/rockset/client/model/VirtualInstance.java index d5d2b28c..e60cd964 100644 --- a/src/main/java/com/rockset/client/model/VirtualInstance.java +++ b/src/main/java/com/rockset/client/model/VirtualInstance.java @@ -31,7 +31,7 @@ /** * VirtualInstance */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class VirtualInstance { @SerializedName("auto_scaling_policy") private AutoScalingPolicy autoScalingPolicy = null; diff --git a/src/main/java/com/rockset/client/model/VirtualInstanceStats.java b/src/main/java/com/rockset/client/model/VirtualInstanceStats.java index 020c5982..c024eb00 100644 --- a/src/main/java/com/rockset/client/model/VirtualInstanceStats.java +++ b/src/main/java/com/rockset/client/model/VirtualInstanceStats.java @@ -29,7 +29,7 @@ /** * VirtualInstanceStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class VirtualInstanceStats { @SerializedName("last_queried_ms") private Long lastQueriedMs = null; diff --git a/src/main/java/com/rockset/client/model/Workspace.java b/src/main/java/com/rockset/client/model/Workspace.java index fb062ddb..fade84cc 100644 --- a/src/main/java/com/rockset/client/model/Workspace.java +++ b/src/main/java/com/rockset/client/model/Workspace.java @@ -31,7 +31,7 @@ */ @ApiModel(description = "Workspaces are organizational containers for collections.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class Workspace { @SerializedName("collection_count") private Long collectionCount = null; diff --git a/src/main/java/com/rockset/client/model/XmlParams.java b/src/main/java/com/rockset/client/model/XmlParams.java index 4305f1da..fd05967f 100644 --- a/src/main/java/com/rockset/client/model/XmlParams.java +++ b/src/main/java/com/rockset/client/model/XmlParams.java @@ -29,7 +29,7 @@ /** * XmlParams */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-07T20:46:16.821-07:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-09-19T15:55:29.974-07:00") public class XmlParams { @SerializedName("attribute_prefix") private String attributePrefix = null; diff --git a/src/test/java/com/rockset/client/TestDocumentApi.java b/src/test/java/com/rockset/client/TestDocumentApi.java new file mode 100644 index 00000000..9e3978ef --- /dev/null +++ b/src/test/java/com/rockset/client/TestDocumentApi.java @@ -0,0 +1,115 @@ +package com.rockset.client; + +import com.rockset.client.model.AddDocumentsRequest; +import com.rockset.client.model.AddDocumentsResponse; +import com.rockset.client.model.Collection; +import com.rockset.client.model.CreateCollectionRequest; +import com.rockset.client.model.DocumentStatus; +import com.rockset.client.model.GetCollectionResponse; +import org.apache.commons.lang3.RandomStringUtils; +import org.awaitility.Awaitility; +import org.awaitility.Duration; +import org.testng.Assert; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CountDownLatch; + +public class TestDocumentApi { + private RocksetClient client; + private String collectionName; + private String workspaceName; + + @BeforeClass + public void setUpOnce() throws Exception { + String apiKey = System.getenv("ROCKSET_APIKEY"); + String apiServer = System.getenv("ROCKSET_APISERVER"); + if (apiKey == null || apiServer == null) { + throw new Exception( + "To run unit tests, please set ROCKSET_APIKEY and ROCKSET_APISERVER " + + "environment variables."); + } + this.client = new RocksetClient(apiKey, apiServer); + this.workspaceName = "commons"; + this.collectionName = "java-client-test-collection-" + RandomStringUtils.randomAlphanumeric(5); + client.collections.create(workspaceName, new CreateCollectionRequest() + .name(collectionName)); + + Awaitility.await().atMost(Duration.TWO_MINUTES) + .pollInterval(Duration.TWO_SECONDS) + .until(() -> { + try { + GetCollectionResponse response = client.collections.get(workspaceName, collectionName); + return response.getData().getStatus().equals(Collection.StatusEnum.READY); + } catch (Exception e) { + return false; + } + }); + } + + @AfterClass + public void destroy() throws Exception { + this.client.collections.delete(workspaceName, collectionName); + } + + @Test + public void testAdd() throws Exception { + + LinkedList list = new LinkedList<>(); + Map json = new LinkedHashMap<>(); + json.put("name", "foo"); + json.put("address", "bar"); + list.add(json); + + AddDocumentsRequest request = new AddDocumentsRequest() + .data(list); + + AddDocumentsResponse response = client.documents.add(workspaceName, collectionName, request); + Assert.assertEquals(response.getData().size(), 1); + Assert.assertEquals(response.getData().get(0).getStatus(), DocumentStatus.StatusEnum.ADDED); + } + + @Test + public void testAddAsync() throws Exception { + + LinkedList list = new LinkedList<>(); + Map json = new LinkedHashMap<>(); + json.put("name", "foo"); + json.put("address", "bar"); + list.add(json); + + AddDocumentsRequest request = new AddDocumentsRequest() + .data(list); + + final AddDocumentsResponse[] response = new AddDocumentsResponse[1]; + CountDownLatch countDownLatch = new CountDownLatch(1) ; + client.documents.addAsync(workspaceName, collectionName, request, new ApiCallback() { + @Override + public void onFailure(Exception e, int statusCode, Map> responseHeaders) { + countDownLatch.countDown(); + } + + @Override + public void onSuccess(AddDocumentsResponse result, int statusCode, Map> responseHeaders) { + response[0] = result; + countDownLatch.countDown(); + } + + @Override + public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {} + + @Override + public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {} + }); + + countDownLatch.await(); + + Assert.assertEquals(response[0].getData().size(), 1); + Assert.assertEquals(response[0].getData().get(0).getStatus(), DocumentStatus.StatusEnum.ADDED); + } +}