diff --git a/README.md b/README.md index 66d1b9d9..c7b754e7 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ fmt.Printf("%+v\n", res) ## Testing -There are a number of testable examples which require an API key, i.e. set the `ROCKSET_APIKEY` -environment variable. +There are a number of testable examples which require an API key, i.e. set the `ROCKSET_APIKEY` and `ROCKSET_APISERVER` +environment variables. To run tests: ``` diff --git a/openapi/.openapi-generator/FILES b/openapi/.openapi-generator/FILES index 0be25c49..5f8a1672 100644 --- a/openapi/.openapi-generator/FILES +++ b/openapi/.openapi-generator/FILES @@ -12,6 +12,7 @@ api_organizations.go api_queries.go api_query_lambdas.go api_shared_lambdas.go +api_sources.go api_users.go api_views.go api_virtual_instances.go @@ -25,6 +26,7 @@ docs/Alias.md docs/AliasesApi.md docs/ApiKey.md docs/AsyncQueryOptions.md +docs/AutoScalingPolicy.md docs/AwsAccessKey.md docs/AwsRole.md docs/AzureBlobStorageIntegration.md @@ -70,6 +72,7 @@ docs/DeleteDocumentsRequestData.md docs/DeleteDocumentsResponse.md docs/DeleteIntegrationResponse.md docs/DeleteQueryLambdaResponse.md +docs/DeleteSourceResponse.md docs/DeleteUserResponse.md docs/DeleteViewResponse.md docs/DeleteVirtualInstanceResponse.md @@ -92,6 +95,7 @@ docs/GetApiKeyResponse.md docs/GetCollectionResponse.md docs/GetIntegrationResponse.md docs/GetQueryResponse.md +docs/GetSourceResponse.md docs/GetViewResponse.md docs/GetVirtualInstanceResponse.md docs/GetWorkspaceResponse.md @@ -111,6 +115,7 @@ docs/ListQueryLambdaTagsResponse.md docs/ListQueryLambdaVersionsResponse.md docs/ListQueryLambdasResponse.md docs/ListRolesResponse.md +docs/ListSourcesResponse.md docs/ListUnsubscribePreferencesResponse.md docs/ListUsersResponse.md docs/ListViewsResponse.md @@ -164,7 +169,10 @@ docs/SourceKafka.md docs/SourceKinesis.md docs/SourceMongoDb.md docs/SourceS3.md +docs/SourceSnapshot.md docs/SourceSnowflake.md +docs/SourceSystem.md +docs/SourcesApi.md docs/SqlExpression.md docs/Stats.md docs/Status.md @@ -212,6 +220,7 @@ model_add_documents_response.go model_alias.go model_api_key.go model_async_query_options.go +model_auto_scaling_policy.go model_aws_access_key.go model_aws_role.go model_azure_blob_storage_integration.go @@ -255,6 +264,7 @@ model_delete_documents_request_data.go model_delete_documents_response.go model_delete_integration_response.go model_delete_query_lambda_response.go +model_delete_source_response.go model_delete_user_response.go model_delete_view_response.go model_delete_virtual_instance_response.go @@ -276,6 +286,7 @@ model_get_api_key_response.go model_get_collection_response.go model_get_integration_response.go model_get_query_response.go +model_get_source_response.go model_get_view_response.go model_get_virtual_instance_response.go model_get_workspace_response.go @@ -294,6 +305,7 @@ model_list_query_lambda_tags_response.go model_list_query_lambda_versions_response.go model_list_query_lambdas_response.go model_list_roles_response.go +model_list_sources_response.go model_list_unsubscribe_preferences_response.go model_list_users_response.go model_list_views_response.go @@ -343,7 +355,9 @@ model_source_kafka.go model_source_kinesis.go model_source_mongo_db.go model_source_s3.go +model_source_snapshot.go model_source_snowflake.go +model_source_system.go model_sql_expression.go model_stats.go model_status.go diff --git a/openapi/README.md b/openapi/README.md index 8e10176d..5e389f64 100644 --- a/openapi/README.md +++ b/openapi/README.md @@ -138,6 +138,12 @@ Class | Method | HTTP request | Description *QueryLambdasApi* | [**ListQueryLambdasInWorkspace**](docs/QueryLambdasApi.md#listquerylambdasinworkspace) | **Get** /v1/orgs/self/ws/{workspace}/lambdas | List Query Lambdas in Workspace *QueryLambdasApi* | [**UpdateQueryLambda**](docs/QueryLambdasApi.md#updatequerylambda) | **Post** /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/versions | Update Query Lambda *SharedLambdasApi* | [**ExecutePublicQueryLambdaWithParams**](docs/SharedLambdasApi.md#executepublicquerylambdawithparams) | **Post** /v1/public/shared_lambdas/{public_access_id} | Execute a Public Query Lambda +*SourcesApi* | [**CreateSource**](docs/SourcesApi.md#createsource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources | Create a source +*SourcesApi* | [**DeleteSource**](docs/SourcesApi.md#deletesource) | **Delete** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source} | Delete Collection source +*SourcesApi* | [**GetSource**](docs/SourcesApi.md#getsource) | **Get** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source} | Retrieve source +*SourcesApi* | [**ListCollectionSources**](docs/SourcesApi.md#listcollectionsources) | **Get** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources | List sources in collection +*SourcesApi* | [**ResumeSource**](docs/SourcesApi.md#resumesource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/resume | Resume source ingest +*SourcesApi* | [**SuspendSource**](docs/SourcesApi.md#suspendsource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/suspend | Suspend source ingest *UsersApi* | [**CreateUser**](docs/UsersApi.md#createuser) | **Post** /v1/orgs/self/users | Create User *UsersApi* | [**DeleteUser**](docs/UsersApi.md#deleteuser) | **Delete** /v1/orgs/self/users/{user} | Delete User *UsersApi* | [**GetCurrentUser**](docs/UsersApi.md#getcurrentuser) | **Get** /v1/orgs/self/users/self | Retrieve Current User @@ -159,7 +165,7 @@ Class | Method | HTTP request | Description *VirtualInstancesApi* | [**GetVirtualInstanceQueries**](docs/VirtualInstancesApi.md#getvirtualinstancequeries) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId}/queries | List Queries *VirtualInstancesApi* | [**ListCollectionMounts**](docs/VirtualInstancesApi.md#listcollectionmounts) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts | List Collection Mounts *VirtualInstancesApi* | [**ListVirtualInstances**](docs/VirtualInstancesApi.md#listvirtualinstances) | **Get** /v1/orgs/self/virtualinstances | List Virtual Instances -*VirtualInstancesApi* | [**MountCollection**](docs/VirtualInstancesApi.md#mountcollection) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts | Mount Collection +*VirtualInstancesApi* | [**MountCollection**](docs/VirtualInstancesApi.md#mountcollection) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts | Mount Collections *VirtualInstancesApi* | [**QueryVirtualInstance**](docs/VirtualInstancesApi.md#queryvirtualinstance) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/queries | Execute SQL Query *VirtualInstancesApi* | [**ResumeVirtualInstance**](docs/VirtualInstancesApi.md#resumevirtualinstance) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/resume | Resume Virtual Instance *VirtualInstancesApi* | [**SetVirtualInstance**](docs/VirtualInstancesApi.md#setvirtualinstance) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId} | Update Virtual Instance @@ -178,6 +184,7 @@ Class | Method | HTTP request | Description - [Alias](docs/Alias.md) - [ApiKey](docs/ApiKey.md) - [AsyncQueryOptions](docs/AsyncQueryOptions.md) + - [AutoScalingPolicy](docs/AutoScalingPolicy.md) - [AwsAccessKey](docs/AwsAccessKey.md) - [AwsRole](docs/AwsRole.md) - [AzureBlobStorageIntegration](docs/AzureBlobStorageIntegration.md) @@ -221,6 +228,7 @@ Class | Method | HTTP request | Description - [DeleteDocumentsResponse](docs/DeleteDocumentsResponse.md) - [DeleteIntegrationResponse](docs/DeleteIntegrationResponse.md) - [DeleteQueryLambdaResponse](docs/DeleteQueryLambdaResponse.md) + - [DeleteSourceResponse](docs/DeleteSourceResponse.md) - [DeleteUserResponse](docs/DeleteUserResponse.md) - [DeleteViewResponse](docs/DeleteViewResponse.md) - [DeleteVirtualInstanceResponse](docs/DeleteVirtualInstanceResponse.md) @@ -242,6 +250,7 @@ Class | Method | HTTP request | Description - [GetCollectionResponse](docs/GetCollectionResponse.md) - [GetIntegrationResponse](docs/GetIntegrationResponse.md) - [GetQueryResponse](docs/GetQueryResponse.md) + - [GetSourceResponse](docs/GetSourceResponse.md) - [GetViewResponse](docs/GetViewResponse.md) - [GetVirtualInstanceResponse](docs/GetVirtualInstanceResponse.md) - [GetWorkspaceResponse](docs/GetWorkspaceResponse.md) @@ -260,6 +269,7 @@ Class | Method | HTTP request | Description - [ListQueryLambdaVersionsResponse](docs/ListQueryLambdaVersionsResponse.md) - [ListQueryLambdasResponse](docs/ListQueryLambdasResponse.md) - [ListRolesResponse](docs/ListRolesResponse.md) + - [ListSourcesResponse](docs/ListSourcesResponse.md) - [ListUnsubscribePreferencesResponse](docs/ListUnsubscribePreferencesResponse.md) - [ListUsersResponse](docs/ListUsersResponse.md) - [ListViewsResponse](docs/ListViewsResponse.md) @@ -309,7 +319,9 @@ Class | Method | HTTP request | Description - [SourceKinesis](docs/SourceKinesis.md) - [SourceMongoDb](docs/SourceMongoDb.md) - [SourceS3](docs/SourceS3.md) + - [SourceSnapshot](docs/SourceSnapshot.md) - [SourceSnowflake](docs/SourceSnowflake.md) + - [SourceSystem](docs/SourceSystem.md) - [SqlExpression](docs/SqlExpression.md) - [Stats](docs/Stats.md) - [Status](docs/Status.md) diff --git a/openapi/api/openapi.yaml b/openapi/api/openapi.yaml index f86a034b..c6a966eb 100644 --- a/openapi/api/openapi.yaml +++ b/openapi/api/openapi.yaml @@ -26,6 +26,7 @@ tags: - name: Queries - name: Query Lambdas - name: Shared Lambdas +- name: Sources - name: Users - name: Views - name: Virtual Instances @@ -4007,7 +4008,7 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Mount Collection + summary: Mount Collections tags: - Virtual Instances x-codegen-request-body-name: body @@ -4116,7 +4117,7 @@ paths: tags: - Virtual Instances get: - description: '[beta] Get a mount on this virtual instance.' + description: '[beta] Retrieve a mount on this virtual instance.' operationId: getCollectionMount parameters: - description: Virtual Instance RRN @@ -5249,6 +5250,84 @@ paths: schema: $ref: '#/components/schemas/DeleteAliasResponse' description: alias deleted successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready summary: Delete Alias tags: - Aliases @@ -5390,6 +5469,84 @@ paths: schema: $ref: '#/components/schemas/GetAliasResponse' description: alias updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready summary: Update Alias tags: - Aliases @@ -6281,10 +6438,10 @@ paths: tags: - Documents x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/lambdas: + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources: get: - description: List all Query Lambdas under given workspace. - operationId: listQueryLambdasInWorkspace + description: Retrieve all sources in a collection. + operationId: listCollectionSources parameters: - description: name of the workspace in: path @@ -6293,13 +6450,19 @@ paths: schema: default: commons type: string + - description: name of the collection + in: path + name: collection + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListQueryLambdasResponse' - description: Query Lambdas listed successfully + $ref: '#/components/schemas/ListSourcesResponse' + description: collection sources retrieved successfully "400": content: application/json: @@ -6378,12 +6541,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Query Lambdas in Workspace + summary: List sources in collection tags: - - Query Lambdas + - Sources post: - description: Create a Query Lambda in given workspace. - operationId: createQueryLambda + description: Create new source in a collection. + operationId: createSource parameters: - description: name of the workspace in: path @@ -6392,11 +6555,17 @@ paths: schema: default: commons type: string + - description: name of the collection + in: path + name: collection + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateQueryLambdaRequest' + $ref: '#/components/schemas/Source' description: JSON object required: true responses: @@ -6404,8 +6573,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaVersionResponse' - description: Query Lambda created successfully + $ref: '#/components/schemas/GetSourceResponse' + description: source created successfully "400": content: application/json: @@ -6484,14 +6653,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Query Lambda + summary: Create a source tags: - - Query Lambdas + - Sources x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}: + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}: delete: - description: Delete a Query Lambda. - operationId: deleteQueryLambda + description: Delete a collection source + operationId: deleteSource parameters: - description: name of the workspace in: path @@ -6500,9 +6669,15 @@ paths: schema: default: commons type: string - - description: name of the Query Lambda + - description: name of the collection in: path - name: queryLambda + name: collection + required: true + schema: + type: string + - description: id of source + in: path + name: source required: true schema: type: string @@ -6511,8 +6686,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteQueryLambdaResponse' - description: Query Lambda deleted successfully + $ref: '#/components/schemas/DeleteSourceResponse' + description: source deleted successfully "400": content: application/json: @@ -6591,13 +6766,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Query Lambda + summary: Delete Collection source tags: - - Query Lambdas - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags: + - Sources + x-rename: delete get: - description: List all tags associated with a Query Lambda - operationId: listQueryLambdaTags + description: Get details about a collection source. + operationId: getSource parameters: - description: name of the workspace in: path @@ -6606,9 +6781,15 @@ paths: schema: default: commons type: string - - description: name of the Query Lambda + - description: name of the collection in: path - name: queryLambda + name: collection + required: true + schema: + type: string + - description: id of source + in: path + name: source required: true schema: type: string @@ -6617,8 +6798,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListQueryLambdaTagsResponse' - description: tags listed successfully + $ref: '#/components/schemas/GetSourceResponse' + description: collection retrieved successfully "400": content: application/json: @@ -6697,13 +6878,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Query Lambda Tags + summary: Retrieve source tags: - - Query Lambdas + - Sources + x-rename: get + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/resume: post: - description: Create a tag for a specific Query Lambda version, or update that - tag if it already exists. - operationId: createQueryLambdaTag + description: Resume source ingest + operationId: resumeSource parameters: - description: name of the workspace in: path @@ -6712,26 +6894,25 @@ paths: schema: default: commons type: string - - description: name of the Query Lambda + - description: name of the collection in: path - name: queryLambda + name: collection required: true schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateQueryLambdaTagRequest' - description: JSON object + - description: id of source + in: path + name: source required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaTagResponse' - description: tag created successfully + $ref: '#/components/schemas/GetSourceResponse' + description: source was resumed "400": content: application/json: @@ -6810,14 +6991,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Query Lambda Tag + summary: Resume source ingest tags: - - Query Lambdas - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags/{tag}: - delete: - description: Delete a tag for a specific Query Lambda - operationId: deleteQueryLambdaTag + - Sources + x-rename: get + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/suspend: + post: + description: Suspend source ingest + operationId: suspendSource parameters: - description: name of the workspace in: path @@ -6826,15 +7007,15 @@ paths: schema: default: commons type: string - - description: name of the Query Lambda + - description: name of the collection in: path - name: queryLambda + name: collection required: true schema: type: string - - description: name of the tag + - description: id of source in: path - name: tag + name: source required: true schema: type: string @@ -6843,8 +7024,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaTagResponse' - description: tag deleted successfully + $ref: '#/components/schemas/GetSourceResponse' + description: source was suspended "400": content: application/json: @@ -6923,12 +7104,658 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Query Lambda Tag Version + summary: Suspend source ingest tags: - - Query Lambdas + - Sources + x-rename: get + /v1/orgs/self/ws/{workspace}/lambdas: get: - description: Retrieve the Query Lambda version associated with a given tag. - operationId: getQueryLambdaTagVersion + description: List all Query Lambdas under given workspace. + operationId: listQueryLambdasInWorkspace + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListQueryLambdasResponse' + description: Query Lambdas listed successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: List Query Lambdas in Workspace + tags: + - Query Lambdas + post: + description: Create a Query Lambda in given workspace. + operationId: createQueryLambda + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateQueryLambdaRequest' + description: JSON object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QueryLambdaVersionResponse' + description: Query Lambda created successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: Create Query Lambda + tags: + - Query Lambdas + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}: + delete: + description: Delete a Query Lambda. + operationId: deleteQueryLambda + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteQueryLambdaResponse' + description: Query Lambda deleted successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: Delete Query Lambda + tags: + - Query Lambdas + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags: + get: + description: List all tags associated with a Query Lambda + operationId: listQueryLambdaTags + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListQueryLambdaTagsResponse' + description: tags listed successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: List Query Lambda Tags + tags: + - Query Lambdas + post: + description: Create a tag for a specific Query Lambda version, or update that + tag if it already exists. + operationId: createQueryLambdaTag + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateQueryLambdaTagRequest' + description: JSON object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QueryLambdaTagResponse' + description: tag created successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: Create Query Lambda Tag + tags: + - Query Lambdas + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags/{tag}: + delete: + description: Delete a tag for a specific Query Lambda + operationId: deleteQueryLambdaTag + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + - description: name of the tag + in: path + name: tag + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QueryLambdaTagResponse' + description: tag deleted successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: Delete Query Lambda Tag Version + tags: + - Query Lambdas + get: + description: Retrieve the Query Lambda version associated with a given tag. + operationId: getQueryLambdaTagVersion parameters: - description: name of the workspace in: path @@ -7848,6 +8675,84 @@ paths: schema: $ref: '#/components/schemas/CreateViewResponse' description: view created successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready summary: Create View tags: - Views @@ -7878,6 +8783,84 @@ paths: schema: $ref: '#/components/schemas/DeleteViewResponse' description: view deleted successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready summary: Delete View tags: - Views @@ -7904,8 +8887,121 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetViewResponse' - description: view retrieved successfully + $ref: '#/components/schemas/GetViewResponse' + description: view retrieved successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not found + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not allowed + "406": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not acceptable + "408": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: request timeout + "415": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not supported + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: resource exceeded + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: internal error + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not implemented + "502": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: bad gateway + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: not ready + summary: Retrieve View + tags: + - Views + x-rename: get + post: + description: Update a view + operationId: updateView + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the view + in: path + name: view + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateViewRequest' + description: JSON object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateViewResponse' + description: view updated successfully "400": content: application/json: @@ -7984,41 +9080,6 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve View - tags: - - Views - x-rename: get - post: - description: Update a view - operationId: updateView - parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the view - in: path - name: view - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateViewRequest' - description: JSON object - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateViewResponse' - description: view updated successfully summary: Update View tags: - Views @@ -8191,6 +9252,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: collections: description: List of fully qualified collection names referenced by alias. @@ -8202,6 +9264,10 @@ components: description: ISO-8601 date. example: 2001-08-28T00:23:41Z type: string + created_by_apikey_name: + description: Name of the API key that was used to create this object if + one was used. + type: string creator_email: description: Email of the creator. example: xyz@rockset.com @@ -8240,7 +9306,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z properties: created_at: @@ -8251,13 +9318,18 @@ components: description: Email of API key owner. example: test@rockset.com type: string + created_by_apikey_name: + description: Name of the API key that was used to create this object if + one was used. + type: string expiry_time: description: The expiration date of this API key. example: 2001-08-28T00:23:41Z type: string key: - description: API key string of 64 alphanumeric characters. - example: aB35kDjg******************************* + description: This field will only be populated with the full key when creating + an API key. Otherwise, it will be an API key identifier of 6 characters. + example: aB35kD type: string last_access_time: description: Date that API key was most recently used (ISO-8601 format). @@ -8290,25 +9362,81 @@ components: timeout_ms: 1 properties: client_timeout_ms: - description: The maximum amount of time that the client is willing to wait - for the query to complete. If the query is not complete by this timeout, - a response will be returned with a `query_id` that can be used to check - the status of the query and retrieve results once the query has completed. + description: 'If the query completes before the client timeout, the results + are returned. Otherwise if the client timeout is exceeded, the query id + will be returned, and the query will continue to run in the background + for up to 30 minutes. (The 30 minute timeout can be configured lower with + timeout_ms.) `async_options.client_timeout_ms` only applies when `async` + is true. The default value of `client_timeout_ms` is 0, so async query + requests will immediately return with a query id by default. ' format: int64 type: integer max_initial_results: - description: The maximum number of results you will receive as a client. - If the query exceeds this limit, the remaining results can be requested - using a returned pagination cursor. In addition, there is a maximum response - size of 100MiB so fewer than `max_results` may be returned. + description: '[DEPRECATED] Use the query request `max_initial_results` instead. + The maximum number of results you will receive as a client. If the query + exceeds this limit, the remaining results can be requested using a returned + pagination cursor. In addition, there is a maximum response size of 100MiB + so fewer than `max_results` may be returned.' format: int64 type: integer timeout_ms: - description: The maximum amount of time that the system will attempt to - complete query execution before aborting the query and returning an error. + description: '[DEPRECATED] Use the query request `timeout_ms` instead. The + maximum amount of time that the system will attempt to complete query + execution before aborting the query and returning an error. This must + be set to a value that is greater than or equal to the client timeout, + and the maximum value of this timeout is 30 minutes.' format: int64 type: integer type: object + AutoScalingPolicy: + example: + min_size: LARGE + enabled: true + max_size: XLARGE2 + properties: + enabled: + description: Whether auto scaling policy is enabled. + example: true + type: boolean + max_size: + description: Maximum size Rockset can auto scale the Virtual Instance to. + This value should be one of the dedicated sizes greater than or same as + the min_size and lower than or same as the current size. + enum: + - FREE + - NANO + - SHARED + - MILLI + - SMALL + - MEDIUM + - LARGE + - XLARGE + - XLARGE2 + - XLARGE4 + - XLARGE8 + - XLARGE16 + example: XLARGE2 + type: string + min_size: + description: Minimum size Rockset can auto scale the Virtual Instance to. + This value should be one of the dedicated sizes lower than or same as + the max_size and greater than or same as the current size. + enum: + - FREE + - NANO + - SHARED + - MILLI + - SMALL + - MEDIUM + - LARGE + - XLARGE + - XLARGE2 + - XLARGE4 + - XLARGE8 + - XLARGE16 + example: LARGE + type: string + type: object AvroParams: type: object AwsAccessKey: @@ -8503,6 +9631,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + sql: sql status: RUNNING properties: data: @@ -8551,6 +9680,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -8559,6 +9689,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -8633,6 +9764,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -8705,6 +9838,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -8778,6 +9912,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -8850,6 +9986,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -8861,6 +9998,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -8969,6 +10107,10 @@ components: description: Email of user who created the collection. example: hello@rockset.com type: string + created_by_apikey_name: + description: Name of the API key that was used to create this collection + if one was used. + type: string description: description: Text describing the collection. example: transactions from stores worldwide @@ -9037,7 +10179,6 @@ components: created_at: 2001-08-28T00:23:41Z id: 5ac23.... state: ACTIVE - type: STATIC virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 rrn: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000 properties: @@ -9077,17 +10218,12 @@ components: - EXPIRED - DELETING - SWITCHING_REFRESH_TYPE + - SUSPENDED + - SUSPENDING example: ACTIVE type: string stats: $ref: '#/components/schemas/CollectionMountStats' - type: - description: Mount type. - enum: - - STATIC - - LIVE - example: STATIC - type: string virtual_instance_id: description: Virtual instance ID. example: 5ac23.... @@ -9109,7 +10245,6 @@ components: created_at: 2001-08-28T00:23:41Z id: 5ac23.... state: ACTIVE - type: STATIC virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 rrn: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000 properties: @@ -9261,6 +10396,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/Alias' @@ -9291,7 +10427,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z properties: data: @@ -9300,7 +10437,6 @@ components: CreateCollectionMountRequest: example: collection_paths: '["commons.foo", "commons.bar"]' - type: STATIC properties: collection_paths: description: Collections to mount. @@ -9308,13 +10444,6 @@ components: items: type: string type: array - type: - description: Mount type. - enum: - - STATIC - - LIVE - example: STATIC - type: string type: object CreateCollectionMountsResponse: example: @@ -9328,7 +10457,6 @@ components: created_at: 2001-08-28T00:23:41Z id: 5ac23.... state: ACTIVE - type: STATIC virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 rrn: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000 - snapshot_expiration_time_millis: 864000000 @@ -9340,7 +10468,6 @@ components: created_at: 2001-08-28T00:23:41Z id: 5ac23.... state: ACTIVE - type: STATIC virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 rrn: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000 properties: @@ -9428,6 +10555,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -9500,6 +10629,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -9573,6 +10703,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -9645,6 +10777,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z event_time_info: field: timestamp format: seconds_since_epoch @@ -9697,6 +10830,7 @@ components: enum: - LZ4 - ZSTD + example: LZ4 type: string type: object CreateCollectionResponse: @@ -9714,6 +10848,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -9722,6 +10857,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -9796,6 +10932,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -9868,6 +11006,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -9941,6 +11080,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -10013,6 +11154,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -10024,6 +11166,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -10262,6 +11405,7 @@ components: aws_role: aws_external_id: external id of aws aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + created_by_apikey_name: created_by_apikey_name azure_event_hubs: connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= collections: @@ -10277,6 +11421,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -10285,6 +11430,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -10359,6 +11505,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -10431,6 +11579,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -10504,6 +11653,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -10576,6 +11727,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -10587,6 +11739,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -10684,6 +11837,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -10692,6 +11846,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -10766,6 +11921,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -10838,6 +11995,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -10911,6 +12069,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -10983,6 +12143,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -10994,6 +12155,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -11262,6 +12424,7 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/View' @@ -11273,6 +12436,7 @@ components: description: VI serving prod traffic auto_suspend_seconds: 3600 type: LARGE + enable_remount_on_resume: true properties: auto_suspend_seconds: description: Number of seconds without queries after which the VI is suspended @@ -11283,9 +12447,15 @@ components: description: Description of requested virtual instance. example: VI serving prod traffic type: string + enable_remount_on_resume: + description: When a Virtual Instance is resumed, it will remount all collections + that were mounted when the Virtual Instance was suspended. + example: true + type: boolean mount_refresh_interval_seconds: description: Number of seconds between data refreshes for mounts on this - Virtual Instance + Virtual Instance. A value of 0 means continuous refresh and a value of + null means never refresh. example: 3600 format: int32 type: integer @@ -11324,6 +12494,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -11435,6 +12610,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/Alias' @@ -11448,7 +12624,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z properties: data: @@ -11469,6 +12646,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -11477,6 +12655,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -11551,6 +12730,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -11623,6 +12804,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -11696,6 +12878,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -11768,6 +12952,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -11779,6 +12964,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -11973,6 +13159,7 @@ components: aws_role: aws_external_id: external id of aws aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + created_by_apikey_name: created_by_apikey_name azure_event_hubs: connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= collections: @@ -11988,6 +13175,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -11996,6 +13184,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -12070,6 +13259,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -12142,6 +13333,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -12215,6 +13407,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -12287,6 +13481,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -12298,6 +13493,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -12395,6 +13591,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -12403,6 +13600,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -12477,6 +13675,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -12549,6 +13749,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -12622,6 +13823,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -12694,6 +13897,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -12705,6 +13909,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -12844,6 +14049,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -12862,6 +14068,161 @@ components: data: $ref: '#/components/schemas/QueryLambda' type: object + DeleteSourceResponse: + example: + data: + s3: + bucket: s3://customer-account-info + object_count_downloaded: 2 + object_count_total: 4 + prefixes: '["/transactions", "/stores"]' + object_bytes_downloaded: 9 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 3 + region: us-west-2 + snowflake: + schema: PUBLIC + database: NASDAQ + warehouse: COMPUTE_XL + table_name: COMPANIES + status: + state: EXPORTING_TO_S3 + format_params: + xml: + attribute_prefix: _attr + doc_tag: row + encoding: UTF-8 + value_tag: value + root_tag: root + csv: + escapeChar: \ + quoteChar: '"' + columnNames: '["c1", "c2", "c3"]' + columnTypes: '["BOOLEAN", "INTEGER", "FLOAT", "STRING"]' + firstLineAsColumnNames: true + encoding: UTF-8 + separator: ',' + postgres_dms: true + json: true + mssql_dms: true + oracle_dms: true + mysql_dms: true + avro: '{}' + azure_blob_storage: + container: server-logs + prefix: prefix/to/blobs + pattern: prefix/to/**/keys/*.format + blob_bytes_total: 0 + blob_count_total: 1 + blob_count_downloaded: 6 + file_upload: + file_name: file1.json + file_size: 12345 + file_upload_time: 2019-01-15T21:48:23Z + kinesis: + offset_reset_policy: EARLIEST + aws_region: us-east-2 + stream_name: click_stream + dms_primary_key: + - dms_primary_key + - dms_primary_key + dynamodb: + aws_region: us-east-2 + rcu: 1000 + current_status: + initial_dump_completion_percentage: 0.73 + stream_last_processed_at: 2019-01-15T21:48:23Z + state: PROCESSING_STREAM + use_scan_api: true + table_name: dynamodb_table_name + status: + scan_total_records: 2000 + stream_last_processed_at: 2019-01-15T21:48:23Z + scan_start_time: 2001-08-28T00:23:41Z + scan_end_time: 2001-08-28T00:23:41Z + scan_records_processed: 1000 + state: SCANNING_TABLE + integration_name: aws-integration + system: + type: QUERY_LOGS + azure_event_hubs: + offset_reset_policy: EARLIEST + hub_id: event-hub-1 + status: + partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + state: ACTIVE + gcs: + bucket: server-logs + object_count_downloaded: 2 + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + kafka: + offset_reset_policy: EARLIEST + consumer_group_id: org-collection + kafka_topic_name: example-topic + status: + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + kafka_partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + state: ACTIVE + use_v3: true + azure_service_bus: + topic: rockset-topic + subscription: rockset-subscription + status: + sessions: + key: + last_processed: 2022-08-23T00:13:41Z + sequence_number: 323862 + first_processed_at: 2021-08-28T00:23:41Z + records_processed: 1000 + id: a1df483c-734e-485b-8005-f46386ef42f6 + mongodb: + database_name: my_database + retrieve_full_document: true + collection_name: my_collection + status: + scan_total_records: 2000 + stream_records_deleted: 100 + stream_records_inserted: 10000 + stream_records_updated: 1000 + scan_start_time: 2001-08-28T00:23:41Z + stream_last_delete_processed_at: 2019-01-15T21:48:23Z + stream_last_update_processed_at: 2019-01-15T21:48:23Z + scan_end_time: 2001-08-28T00:23:41Z + stream_last_insert_processed_at: 2019-01-15T21:48:23Z + scan_records_processed: 1000 + state: SCANNING_TABLE + status: + last_processed_item: /path/to/some/object + last_processed_at: 2019-01-15T21:48:23Z + detected_size_bytes: 7 + total_processed_items: 32849023 + state: INITIALIZING + message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z + properties: + data: + $ref: '#/components/schemas/Source' + type: object DeleteUserResponse: example: data: @@ -12889,6 +14250,7 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/View' @@ -12903,6 +14265,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -13100,11 +14467,15 @@ components: type: object ExecuteQueryLambdaRequest: example: + async: true generate_warnings: true + debug_threshold_ms: 0 + max_initial_results: 5 virtual_instance_id: virtual_instance_id - initial_paginate_response_doc_count: 6 + initial_paginate_response_doc_count: 1 paginate: true - default_row_limit: 0 + default_row_limit: 6 + timeout_ms: 5 async_options: max_initial_results: 6 client_timeout_ms: 0 @@ -13117,8 +14488,23 @@ components: type: string value: 85beb391 properties: + async: + description: 'If true, the query will run asynchronously for up to 30 minutes. + The query request will immediately return with a query id that can be + used to retrieve the query status and results. If false or not specified, + the query will return with results once completed or timeout after 2 minutes. + (To return results directly for shorter queries while still allowing a + timeout of up to 30 minutes, set `async_options.client_timeout_ms`.) ' + type: boolean async_options: $ref: '#/components/schemas/AsyncQueryOptions' + debug_threshold_ms: + description: If query execution takes longer than this value, debug information + will be logged. If the query text includes the DEBUG hint and this parameter + is also provided, only this value will be used and the DEBUG hint will + be ignored. + format: int64 + type: integer default_row_limit: description: Row limit to use if no limit specified in the SQL query text. format: int32 @@ -13127,10 +14513,21 @@ components: description: Whether to generate warnings. type: boolean initial_paginate_response_doc_count: - description: Number of documents to return in addition to paginating for - this query call. Only relevant if `paginate` flag is also set. + description: '[DEPRECATED] Use `max_initial_results` instead. Number of + documents to return in addition to paginating for this query call. Only + relevant if `paginate` flag is also set.' format: int32 type: integer + max_initial_results: + description: This limits the maximum number of results in the initial response. + A pagination cursor is returned if the number of results exceeds `max_initial_results`. + If `max_initial_results` is not set, all results will be returned in the + initial response up to 4 million. If `max_initial_results` is set, the + value must be between 0 and 100,000. If the query is async and `client_timeout_ms` + is exceeded, `max_initial_results` does not apply since none of the results + will be returned with the initial response. + format: int64 + type: integer paginate: description: Flag to paginate and store the results of this query for later / sequential retrieval. @@ -13140,6 +14537,13 @@ components: items: $ref: '#/components/schemas/QueryParameter' type: array + timeout_ms: + description: If a query exceeds the specified timeout, the query will automatically + stop and return an error. The query timeout defaults to a maximum of 2 + minutes. If `async` is true, the query timeout defaults to a maximum of + 30 minutes. + format: int64 + type: integer virtual_instance_id: description: Virtual instance on which to run the query. type: string @@ -13284,6 +14688,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/Alias' @@ -13297,7 +14702,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z properties: data: @@ -13318,6 +14724,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -13326,6 +14733,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -13400,6 +14808,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -13472,6 +14882,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -13545,6 +14956,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -13617,6 +15030,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -13628,6 +15042,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -13763,6 +15178,7 @@ components: aws_role: aws_external_id: external id of aws aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + created_by_apikey_name: created_by_apikey_name azure_event_hubs: connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= collections: @@ -13778,6 +15194,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -13786,6 +15203,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -13860,6 +15278,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -13932,6 +15352,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -14005,6 +15426,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -14077,6 +15500,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -14088,6 +15512,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -14185,6 +15610,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -14193,6 +15619,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -14267,6 +15694,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -14339,6 +15768,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -14412,6 +15842,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -14484,6 +15916,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -14495,6 +15928,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -14633,11 +16067,167 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + sql: sql status: RUNNING properties: data: $ref: '#/components/schemas/QueryInfo' type: object + GetSourceResponse: + example: + data: + s3: + bucket: s3://customer-account-info + object_count_downloaded: 2 + object_count_total: 4 + prefixes: '["/transactions", "/stores"]' + object_bytes_downloaded: 9 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 3 + region: us-west-2 + snowflake: + schema: PUBLIC + database: NASDAQ + warehouse: COMPUTE_XL + table_name: COMPANIES + status: + state: EXPORTING_TO_S3 + format_params: + xml: + attribute_prefix: _attr + doc_tag: row + encoding: UTF-8 + value_tag: value + root_tag: root + csv: + escapeChar: \ + quoteChar: '"' + columnNames: '["c1", "c2", "c3"]' + columnTypes: '["BOOLEAN", "INTEGER", "FLOAT", "STRING"]' + firstLineAsColumnNames: true + encoding: UTF-8 + separator: ',' + postgres_dms: true + json: true + mssql_dms: true + oracle_dms: true + mysql_dms: true + avro: '{}' + azure_blob_storage: + container: server-logs + prefix: prefix/to/blobs + pattern: prefix/to/**/keys/*.format + blob_bytes_total: 0 + blob_count_total: 1 + blob_count_downloaded: 6 + file_upload: + file_name: file1.json + file_size: 12345 + file_upload_time: 2019-01-15T21:48:23Z + kinesis: + offset_reset_policy: EARLIEST + aws_region: us-east-2 + stream_name: click_stream + dms_primary_key: + - dms_primary_key + - dms_primary_key + dynamodb: + aws_region: us-east-2 + rcu: 1000 + current_status: + initial_dump_completion_percentage: 0.73 + stream_last_processed_at: 2019-01-15T21:48:23Z + state: PROCESSING_STREAM + use_scan_api: true + table_name: dynamodb_table_name + status: + scan_total_records: 2000 + stream_last_processed_at: 2019-01-15T21:48:23Z + scan_start_time: 2001-08-28T00:23:41Z + scan_end_time: 2001-08-28T00:23:41Z + scan_records_processed: 1000 + state: SCANNING_TABLE + integration_name: aws-integration + system: + type: QUERY_LOGS + azure_event_hubs: + offset_reset_policy: EARLIEST + hub_id: event-hub-1 + status: + partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + state: ACTIVE + gcs: + bucket: server-logs + object_count_downloaded: 2 + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + kafka: + offset_reset_policy: EARLIEST + consumer_group_id: org-collection + kafka_topic_name: example-topic + status: + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + kafka_partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + state: ACTIVE + use_v3: true + azure_service_bus: + topic: rockset-topic + subscription: rockset-subscription + status: + sessions: + key: + last_processed: 2022-08-23T00:13:41Z + sequence_number: 323862 + first_processed_at: 2021-08-28T00:23:41Z + records_processed: 1000 + id: a1df483c-734e-485b-8005-f46386ef42f6 + mongodb: + database_name: my_database + retrieve_full_document: true + collection_name: my_collection + status: + scan_total_records: 2000 + stream_records_deleted: 100 + stream_records_inserted: 10000 + stream_records_updated: 1000 + scan_start_time: 2001-08-28T00:23:41Z + stream_last_delete_processed_at: 2019-01-15T21:48:23Z + stream_last_update_processed_at: 2019-01-15T21:48:23Z + scan_end_time: 2001-08-28T00:23:41Z + stream_last_insert_processed_at: 2019-01-15T21:48:23Z + scan_records_processed: 1000 + state: SCANNING_TABLE + status: + last_processed_item: /path/to/some/object + last_processed_at: 2019-01-15T21:48:23Z + detected_size_bytes: 7 + total_processed_items: 32849023 + state: INITIALIZING + message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z + properties: + data: + $ref: '#/components/schemas/Source' + type: object GetViewResponse: example: data: @@ -14652,6 +16242,7 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/View' @@ -14666,6 +16257,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -14767,6 +16363,7 @@ components: aws_role: aws_external_id: external id of aws aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + created_by_apikey_name: created_by_apikey_name azure_event_hubs: connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= collections: @@ -14782,6 +16379,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -14790,6 +16388,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -14864,6 +16463,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -14936,6 +16537,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -15009,6 +16611,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -15081,6 +16685,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -15092,6 +16697,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -15189,6 +16795,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -15197,6 +16804,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -15271,6 +16879,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -15343,6 +16953,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -15416,6 +17027,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -15488,6 +17101,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -15499,6 +17113,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -15631,6 +17246,10 @@ components: description: Email of user who created the integration. example: hello@rockset.com type: string + created_by_apikey_name: + description: Name of the API key that was used to create this object if + one was used. + type: string description: description: Longer explanation for the integration. example: AWS account with event data for the data science team. @@ -15753,6 +17372,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -15761,6 +17381,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: description: List of all aliases. @@ -15777,7 +17398,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z - role: read-only name: my-key @@ -15785,7 +17407,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z properties: data: @@ -15806,7 +17429,6 @@ components: created_at: 2001-08-28T00:23:41Z id: 5ac23.... state: ACTIVE - type: STATIC virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 rrn: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000 - snapshot_expiration_time_millis: 864000000 @@ -15818,7 +17440,6 @@ components: created_at: 2001-08-28T00:23:41Z id: 5ac23.... state: ACTIVE - type: STATIC virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 rrn: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000 properties: @@ -15843,6 +17464,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -15851,6 +17473,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -15925,6 +17548,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -15997,6 +17622,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -16070,6 +17696,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -16142,6 +17770,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -16153,6 +17782,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -16250,6 +17880,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -16258,6 +17889,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -16332,6 +17964,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -16404,6 +18038,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -16477,6 +18112,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -16549,6 +18186,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -16560,6 +18198,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -16698,6 +18337,7 @@ components: aws_role: aws_external_id: external id of aws aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + created_by_apikey_name: created_by_apikey_name azure_event_hubs: connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= collections: @@ -16713,6 +18353,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -16721,6 +18362,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -16795,6 +18437,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -16867,6 +18511,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -16940,6 +18585,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -17012,6 +18659,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -17023,6 +18671,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -17120,6 +18769,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -17128,6 +18778,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -17202,6 +18853,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -17274,6 +18927,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -17347,6 +19001,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -17419,6 +19075,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -17430,6 +19087,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -17585,6 +19243,7 @@ components: aws_role: aws_external_id: external id of aws aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + created_by_apikey_name: created_by_apikey_name azure_event_hubs: connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= collections: @@ -17600,6 +19259,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -17608,6 +19268,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -17682,6 +19343,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -17754,6 +19417,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -17827,6 +19491,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -17899,6 +19565,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -17910,6 +19577,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -18007,6 +19675,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - workspace: commons collections: '["commons.foo", "prod.demo"]' creator_email: xyz@rockset.com @@ -18015,6 +19684,7 @@ components: description: alias referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name sources: - s3: bucket: s3://customer-account-info @@ -18089,6 +19759,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -18161,6 +19833,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z - s3: bucket: s3://customer-account-info object_count_downloaded: 2 @@ -18234,6 +19907,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -18306,6 +19981,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z insert_only: true clustering_key: - keys: '["value1", "value2"]' @@ -18317,6 +19993,7 @@ components: created_at: 2001-08-28T00:23:41Z description: transactions from stores worldwide created_by: hello@rockset.com + created_by_apikey_name: created_by_apikey_name field_mappings: - output_field: on_error: SKIP @@ -18458,6 +20135,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + sql: sql status: RUNNING - last_offset: last_offset executed_by: xyz@rockset.com @@ -18478,6 +20156,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + sql: sql status: RUNNING properties: data: @@ -18506,6 +20185,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -18533,6 +20213,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -18568,6 +20249,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -18593,6 +20275,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -18632,6 +20315,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -18666,6 +20350,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -18716,9 +20401,315 @@ components: created_by: hello@rockset.com properties: data: - description: List of all roles. + description: List of all roles. + items: + $ref: '#/components/schemas/Role' + type: array + type: object + ListSourcesResponse: + example: + data: + - s3: + bucket: s3://customer-account-info + object_count_downloaded: 2 + object_count_total: 4 + prefixes: '["/transactions", "/stores"]' + object_bytes_downloaded: 9 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 3 + region: us-west-2 + snowflake: + schema: PUBLIC + database: NASDAQ + warehouse: COMPUTE_XL + table_name: COMPANIES + status: + state: EXPORTING_TO_S3 + format_params: + xml: + attribute_prefix: _attr + doc_tag: row + encoding: UTF-8 + value_tag: value + root_tag: root + csv: + escapeChar: \ + quoteChar: '"' + columnNames: '["c1", "c2", "c3"]' + columnTypes: '["BOOLEAN", "INTEGER", "FLOAT", "STRING"]' + firstLineAsColumnNames: true + encoding: UTF-8 + separator: ',' + postgres_dms: true + json: true + mssql_dms: true + oracle_dms: true + mysql_dms: true + avro: '{}' + azure_blob_storage: + container: server-logs + prefix: prefix/to/blobs + pattern: prefix/to/**/keys/*.format + blob_bytes_total: 0 + blob_count_total: 1 + blob_count_downloaded: 6 + file_upload: + file_name: file1.json + file_size: 12345 + file_upload_time: 2019-01-15T21:48:23Z + kinesis: + offset_reset_policy: EARLIEST + aws_region: us-east-2 + stream_name: click_stream + dms_primary_key: + - dms_primary_key + - dms_primary_key + dynamodb: + aws_region: us-east-2 + rcu: 1000 + current_status: + initial_dump_completion_percentage: 0.73 + stream_last_processed_at: 2019-01-15T21:48:23Z + state: PROCESSING_STREAM + use_scan_api: true + table_name: dynamodb_table_name + status: + scan_total_records: 2000 + stream_last_processed_at: 2019-01-15T21:48:23Z + scan_start_time: 2001-08-28T00:23:41Z + scan_end_time: 2001-08-28T00:23:41Z + scan_records_processed: 1000 + state: SCANNING_TABLE + integration_name: aws-integration + system: + type: QUERY_LOGS + azure_event_hubs: + offset_reset_policy: EARLIEST + hub_id: event-hub-1 + status: + partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + state: ACTIVE + gcs: + bucket: server-logs + object_count_downloaded: 2 + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + kafka: + offset_reset_policy: EARLIEST + consumer_group_id: org-collection + kafka_topic_name: example-topic + status: + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + kafka_partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + state: ACTIVE + use_v3: true + azure_service_bus: + topic: rockset-topic + subscription: rockset-subscription + status: + sessions: + key: + last_processed: 2022-08-23T00:13:41Z + sequence_number: 323862 + first_processed_at: 2021-08-28T00:23:41Z + records_processed: 1000 + id: a1df483c-734e-485b-8005-f46386ef42f6 + mongodb: + database_name: my_database + retrieve_full_document: true + collection_name: my_collection + status: + scan_total_records: 2000 + stream_records_deleted: 100 + stream_records_inserted: 10000 + stream_records_updated: 1000 + scan_start_time: 2001-08-28T00:23:41Z + stream_last_delete_processed_at: 2019-01-15T21:48:23Z + stream_last_update_processed_at: 2019-01-15T21:48:23Z + scan_end_time: 2001-08-28T00:23:41Z + stream_last_insert_processed_at: 2019-01-15T21:48:23Z + scan_records_processed: 1000 + state: SCANNING_TABLE + status: + last_processed_item: /path/to/some/object + last_processed_at: 2019-01-15T21:48:23Z + detected_size_bytes: 7 + total_processed_items: 32849023 + state: INITIALIZING + message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z + - s3: + bucket: s3://customer-account-info + object_count_downloaded: 2 + object_count_total: 4 + prefixes: '["/transactions", "/stores"]' + object_bytes_downloaded: 9 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 3 + region: us-west-2 + snowflake: + schema: PUBLIC + database: NASDAQ + warehouse: COMPUTE_XL + table_name: COMPANIES + status: + state: EXPORTING_TO_S3 + format_params: + xml: + attribute_prefix: _attr + doc_tag: row + encoding: UTF-8 + value_tag: value + root_tag: root + csv: + escapeChar: \ + quoteChar: '"' + columnNames: '["c1", "c2", "c3"]' + columnTypes: '["BOOLEAN", "INTEGER", "FLOAT", "STRING"]' + firstLineAsColumnNames: true + encoding: UTF-8 + separator: ',' + postgres_dms: true + json: true + mssql_dms: true + oracle_dms: true + mysql_dms: true + avro: '{}' + azure_blob_storage: + container: server-logs + prefix: prefix/to/blobs + pattern: prefix/to/**/keys/*.format + blob_bytes_total: 0 + blob_count_total: 1 + blob_count_downloaded: 6 + file_upload: + file_name: file1.json + file_size: 12345 + file_upload_time: 2019-01-15T21:48:23Z + kinesis: + offset_reset_policy: EARLIEST + aws_region: us-east-2 + stream_name: click_stream + dms_primary_key: + - dms_primary_key + - dms_primary_key + dynamodb: + aws_region: us-east-2 + rcu: 1000 + current_status: + initial_dump_completion_percentage: 0.73 + stream_last_processed_at: 2019-01-15T21:48:23Z + state: PROCESSING_STREAM + use_scan_api: true + table_name: dynamodb_table_name + status: + scan_total_records: 2000 + stream_last_processed_at: 2019-01-15T21:48:23Z + scan_start_time: 2001-08-28T00:23:41Z + scan_end_time: 2001-08-28T00:23:41Z + scan_records_processed: 1000 + state: SCANNING_TABLE + integration_name: aws-integration + system: + type: QUERY_LOGS + azure_event_hubs: + offset_reset_policy: EARLIEST + hub_id: event-hub-1 + status: + partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + state: ACTIVE + gcs: + bucket: server-logs + object_count_downloaded: 2 + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + kafka: + offset_reset_policy: EARLIEST + consumer_group_id: org-collection + kafka_topic_name: example-topic + status: + num_documents_processed: 1337 + last_consumed_time: 2001-08-28T00:23:41Z + kafka_partitions: + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + - partition_offset: 100 + partition_number: 123 + offset_lag: 10 + state: ACTIVE + use_v3: true + azure_service_bus: + topic: rockset-topic + subscription: rockset-subscription + status: + sessions: + key: + last_processed: 2022-08-23T00:13:41Z + sequence_number: 323862 + first_processed_at: 2021-08-28T00:23:41Z + records_processed: 1000 + id: a1df483c-734e-485b-8005-f46386ef42f6 + mongodb: + database_name: my_database + retrieve_full_document: true + collection_name: my_collection + status: + scan_total_records: 2000 + stream_records_deleted: 100 + stream_records_inserted: 10000 + stream_records_updated: 1000 + scan_start_time: 2001-08-28T00:23:41Z + stream_last_delete_processed_at: 2019-01-15T21:48:23Z + stream_last_update_processed_at: 2019-01-15T21:48:23Z + scan_end_time: 2001-08-28T00:23:41Z + stream_last_insert_processed_at: 2019-01-15T21:48:23Z + scan_records_processed: 1000 + state: SCANNING_TABLE + status: + last_processed_item: /path/to/some/object + last_processed_at: 2019-01-15T21:48:23Z + detected_size_bytes: 7 + total_processed_items: 32849023 + state: INITIALIZING + message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z + properties: + data: + description: List of all sources in a collection items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Source' type: array type: object ListUnsubscribePreferencesResponse: @@ -18769,6 +20760,7 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name - owner_email: abc@rockset.com path: path workspace: commons @@ -18780,6 +20772,7 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: description: List of all views. @@ -18797,6 +20790,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -18815,6 +20813,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -18867,7 +20870,9 @@ components: Organization: description: An organization in Rockset is a container for users and collections. example: + sso_only: true created_at: 2001-08-28T00:23:41Z + sso_connection: rockset external_id: id: rockset rockset_user: @@ -18900,11 +20905,21 @@ components: description: Rockset's global AWS user. example: type: string + sso_connection: + description: Connection name of SSO connection. + example: rockset + type: string + sso_only: + description: Whether or not SSO is the only permitted form of auth. + example: true + type: boolean type: object OrganizationResponse: example: data: + sso_only: true created_at: 2001-08-28T00:23:41Z + sso_connection: rockset external_id: id: rockset rockset_user: @@ -19144,6 +21159,7 @@ components: - DELETE_ROLE_GLOBAL - LIST_ROLES_GLOBAL - GRANT_REVOKE_ROLE_GLOBAL + - CREATE_QUERY_LOGS_COLLECTION_GLOBAL - ALL_INTEGRATION_ACTIONS - CREATE_COLLECTION_INTEGRATION - ALL_WORKSPACE_ACTIONS @@ -19241,6 +21257,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + sql: sql status: RUNNING properties: executed_by: @@ -19267,6 +21284,9 @@ components: description: Unique Query ID. example: 5b596206-c632-4a08-8343-0c560f7ef7f1 type: string + sql: + description: The SQL query for this request + type: string stats: $ref: '#/components/schemas/Stats' status: @@ -19307,6 +21327,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -19418,6 +21439,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -19456,6 +21478,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -19487,6 +21510,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -19510,6 +21534,10 @@ components: description: User that created this Query Lambda. example: ..@rockset.com type: string + created_by_apikey_name: + description: Name of the API key that was used to create this object if + one was used. + type: string description: description: Optional description. example: production version foo @@ -19560,6 +21588,7 @@ components: state: ACTIVE created_by: ..@rockset.com version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name sql: default_parameters: - name: _id @@ -19610,7 +21639,7 @@ components: example: _id type: string type: - description: Data type of the field. + description: Deprecated. Data type of the field. example: string type: string value: @@ -19624,6 +21653,10 @@ components: type: object QueryRequest: example: + async: true + debug_threshold_ms: 5 + max_initial_results: 5 + timeout_ms: 9 async_options: max_initial_results: 6 client_timeout_ms: 0 @@ -19631,8 +21664,8 @@ components: sql: generate_warnings: false query: SELECT * FROM foo where _id = :_id - initial_paginate_response_doc_count: 5 - default_row_limit: 5 + initial_paginate_response_doc_count: 7 + default_row_limit: 2 parameters: - name: _id type: string @@ -19641,10 +21674,42 @@ components: type: string value: 85beb391 properties: + async: + description: 'If true, the query will run asynchronously for up to 30 minutes. + The query request will immediately return with a query id that can be + used to retrieve the query status and results. If false or not specified, + the query will return with results once completed or timeout after 2 minutes. + (To return results directly for shorter queries while still allowing a + timeout of up to 30 minutes, set `async_options.client_timeout_ms`.) ' + type: boolean async_options: $ref: '#/components/schemas/AsyncQueryOptions' + debug_threshold_ms: + description: If query execution takes longer than this value, debug information + will be logged. If the query text includes the DEBUG hint and this parameter + is also provided, only this value will be used and the DEBUG hint will + be ignored. + format: int64 + type: integer + max_initial_results: + description: This limits the maximum number of results in the initial response. + A pagination cursor is returned if the number of results exceeds `max_initial_results`. + If `max_initial_results` is not set, all results will be returned in the + initial response up to 4 million. If `max_initial_results` is set, the + value must be between 0 and 100,000. If the query is async and `client_timeout_ms` + is exceeded, `max_initial_results` does not apply since none of the results + will be returned with the initial response. + format: int64 + type: integer sql: $ref: '#/components/schemas/QueryRequestSql' + timeout_ms: + description: If a query exceeds the specified timeout, the query will automatically + stop and return an error. The query timeout defaults to a maximum of 2 + minutes. If `async` is true, the query timeout defaults to a maximum of + 30 minutes. + format: int64 + type: integer required: - sql type: object @@ -19652,8 +21717,8 @@ components: example: generate_warnings: false query: SELECT * FROM foo where _id = :_id - initial_paginate_response_doc_count: 5 - default_row_limit: 5 + initial_paginate_response_doc_count: 7 + default_row_limit: 2 parameters: - name: _id type: string @@ -19673,8 +21738,9 @@ components: example: false type: boolean initial_paginate_response_doc_count: - description: Number of documents to return in addition to paginating for - this query call. Only relevant if `paginate` flag is also set. + description: '[DEPRECATED] Use `max_initial_results` instead. Number of + documents to return in addition to paginating for this query call. Only + relevant if `paginate` flag is also set.' format: int32 type: integer parameters: @@ -19725,6 +21791,7 @@ components: results: - '{}' - '{}' + status: RUNNING properties: collections: description: List of collections referenced in the query. @@ -19767,6 +21834,16 @@ components: type: integer stats: $ref: '#/components/schemas/QueryResponseStats' + status: + description: 'Status of query execution. Possible values: `QUEUED`, `RUNNING`, + `COMPLETED`, `ERROR`.' + enum: + - QUEUED + - RUNNING + - COMPLETED + - ERROR + example: RUNNING + type: string warnings: description: Warnings generated by the query. Only populated if `generate_warnings` is specified in the query request. @@ -19800,6 +21877,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -20031,6 +22113,8 @@ components: scan_records_processed: 1000 state: SCANNING_TABLE integration_name: aws-integration + system: + type: QUERY_LOGS azure_event_hubs: offset_reset_policy: EARLIEST hub_id: event-hub-1 @@ -20103,6 +22187,7 @@ components: total_processed_items: 32849023 state: INITIALIZING message: error 403 forbidden + suspended_at: 2019-01-15T21:48:23Z properties: azure_blob_storage: $ref: '#/components/schemas/SourceAzureBlobStorage' @@ -20138,6 +22223,12 @@ components: $ref: '#/components/schemas/SourceSnowflake' status: $ref: '#/components/schemas/Status' + suspended_at: + description: ISO-8601 date when source was suspended, if suspended + example: 2019-01-15T21:48:23Z + type: string + system: + $ref: '#/components/schemas/SourceSystem' type: object SourceAzureBlobStorage: example: @@ -20499,6 +22590,17 @@ components: - bucket - prefixes type: object + SourceSnapshot: + properties: + source_collection_path: + description: Path of source collection to restore the snapshot from. + example: commons.foo + type: string + source_snapshot_id: + description: Snapshot id of the snapshot that the new collection will be + created from. + type: string + type: object SourceSnowflake: example: schema: PUBLIC @@ -20531,6 +22633,17 @@ components: - schema - table_name type: object + SourceSystem: + example: + type: QUERY_LOGS + properties: + type: + description: The type of this system source. + enum: + - QUERY_LOGS + example: QUERY_LOGS + type: string + type: object SqlExpression: example: sql: SHA256() @@ -20605,6 +22718,7 @@ components: - PROCESSING - COMPLETED - ERROR + - SUSPENDED example: INITIALIZING type: string total_processed_items: @@ -20926,6 +23040,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -20992,7 +23111,8 @@ components: state: ACTIVE expiry_time: 2001-08-28T00:23:41Z created_by: test@rockset.com - key: aB35kDjg******************************* + key: aB35kD + created_by_apikey_name: created_by_apikey_name last_access_time: 2001-08-28T00:23:41Z properties: data: @@ -21130,20 +23250,27 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: data: $ref: '#/components/schemas/View' type: object UpdateVirtualInstanceRequest: example: - monitoring_enabled: true auto_suspend_enabled: true mount_refresh_interval_seconds: 3600 new_size: LARGE name: prod_vi description: VI for prod traffic auto_suspend_seconds: 3600 + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 properties: + auto_scaling_policy: + $ref: '#/components/schemas/AutoScalingPolicy' auto_suspend_enabled: description: Whether auto-suspend should be enabled for this Virtual Instance. example: true @@ -21157,11 +23284,15 @@ components: description: New virtual instance description. example: VI for prod traffic type: string - monitoring_enabled: + enable_remount_on_resume: + description: When a Virtual Instance is resumed, it will remount all collections + that were mounted when the Virtual Instance was suspended. + example: true type: boolean mount_refresh_interval_seconds: description: Number of seconds between data refreshes for mounts on this - Virtual Instance + Virtual Instance. A value of 0 means continuous refresh and a value of + null means never refresh. example: 3600 format: int32 type: integer @@ -21197,6 +23328,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -21284,11 +23420,16 @@ components: description: view referencing collection in workspace state: CREATED modified_at: 2001-08-28T00:23:42Z + created_by_apikey_name: created_by_apikey_name properties: created_at: description: ISO-8601 date. example: 2001-08-28T00:23:41Z type: string + created_by_apikey_name: + description: Name of the API key that was used to create this object if + one was used. + type: string creator_email: description: Email of the creator. example: xyz@rockset.com @@ -21344,6 +23485,11 @@ components: resumed_at: 2001-08-28T00:23:41Z current_size: MEDIUM created_by: hello@rockset.com + enable_remount_on_resume: true + auto_scaling_policy: + min_size: LARGE + enabled: true + max_size: XLARGE2 default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 scaled_pod_count: 6 @@ -21356,6 +23502,8 @@ components: id: 123e4567-e89b-12d3-a456-556642440000 state: ACTIVE properties: + auto_scaling_policy: + $ref: '#/components/schemas/AutoScalingPolicy' auto_suspend_seconds: description: Number of seconds without queries after which the VI is suspended example: 3600 @@ -21414,6 +23562,11 @@ components: example: MEDIUM readOnly: true type: string + enable_remount_on_resume: + description: When a Virtual Instance is resumed, it will remount all collections + that were mounted when the Virtual Instance was suspended. + example: true + type: boolean id: description: Unique identifier for virtual instance. example: 123e4567-e89b-12d3-a456-556642440000 diff --git a/openapi/api_aliases.go b/openapi/api_aliases.go index 42e605a3..d10ecab6 100644 --- a/openapi/api_aliases.go +++ b/openapi/api_aliases.go @@ -459,6 +459,135 @@ func (a *AliasesApiService) DeleteAliasExecute(r ApiDeleteAliasRequest) (*Delete body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1044,6 +1173,135 @@ func (a *AliasesApiService) UpdateAliasExecute(r ApiUpdateAliasRequest) (*GetAli body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/openapi/api_sources.go b/openapi/api_sources.go new file mode 100644 index 00000000..baa3f343 --- /dev/null +++ b/openapi/api_sources.go @@ -0,0 +1,1580 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type SourcesApi interface { + + /* + CreateSource Create a source + + Create new source in a collection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @return ApiCreateSourceRequest + */ + CreateSource(ctx context.Context, workspace string, collection string) ApiCreateSourceRequest + + // CreateSourceExecute executes the request + // @return GetSourceResponse + CreateSourceExecute(r ApiCreateSourceRequest) (*GetSourceResponse, *http.Response, error) + + /* + DeleteSource Delete Collection source + + Delete a collection source + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiDeleteSourceRequest + */ + DeleteSource(ctx context.Context, workspace string, collection string, source string) ApiDeleteSourceRequest + + // DeleteSourceExecute executes the request + // @return DeleteSourceResponse + DeleteSourceExecute(r ApiDeleteSourceRequest) (*DeleteSourceResponse, *http.Response, error) + + /* + GetSource Retrieve source + + Get details about a collection source. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiGetSourceRequest + */ + GetSource(ctx context.Context, workspace string, collection string, source string) ApiGetSourceRequest + + // GetSourceExecute executes the request + // @return GetSourceResponse + GetSourceExecute(r ApiGetSourceRequest) (*GetSourceResponse, *http.Response, error) + + /* + ListCollectionSources List sources in collection + + Retrieve all sources in a collection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @return ApiListCollectionSourcesRequest + */ + ListCollectionSources(ctx context.Context, workspace string, collection string) ApiListCollectionSourcesRequest + + // ListCollectionSourcesExecute executes the request + // @return ListSourcesResponse + ListCollectionSourcesExecute(r ApiListCollectionSourcesRequest) (*ListSourcesResponse, *http.Response, error) + + /* + ResumeSource Resume source ingest + + Resume source ingest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiResumeSourceRequest + */ + ResumeSource(ctx context.Context, workspace string, collection string, source string) ApiResumeSourceRequest + + // ResumeSourceExecute executes the request + // @return GetSourceResponse + ResumeSourceExecute(r ApiResumeSourceRequest) (*GetSourceResponse, *http.Response, error) + + /* + SuspendSource Suspend source ingest + + Suspend source ingest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiSuspendSourceRequest + */ + SuspendSource(ctx context.Context, workspace string, collection string, source string) ApiSuspendSourceRequest + + // SuspendSourceExecute executes the request + // @return GetSourceResponse + SuspendSourceExecute(r ApiSuspendSourceRequest) (*GetSourceResponse, *http.Response, error) +} + +// SourcesApiService SourcesApi service +type SourcesApiService service + +type ApiCreateSourceRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string + body *Source +} + +// JSON object +func (r ApiCreateSourceRequest) Body(body Source) ApiCreateSourceRequest { + r.body = &body + return r +} + +func (r ApiCreateSourceRequest) Execute() (*GetSourceResponse, *http.Response, error) { + return r.ApiService.CreateSourceExecute(r) +} + +/* +CreateSource Create a source + +Create new source in a collection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @return ApiCreateSourceRequest +*/ +func (a *SourcesApiService) CreateSource(ctx context.Context, workspace string, collection string) ApiCreateSourceRequest { + return ApiCreateSourceRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + } +} + +// Execute executes the request +// @return GetSourceResponse +func (a *SourcesApiService) CreateSourceExecute(r ApiCreateSourceRequest) (*GetSourceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSourceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.CreateSource") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterToString(r.workspace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterToString(r.collection, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteSourceRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string + source string +} + + +func (r ApiDeleteSourceRequest) Execute() (*DeleteSourceResponse, *http.Response, error) { + return r.ApiService.DeleteSourceExecute(r) +} + +/* +DeleteSource Delete Collection source + +Delete a collection source + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiDeleteSourceRequest +*/ +func (a *SourcesApiService) DeleteSource(ctx context.Context, workspace string, collection string, source string) ApiDeleteSourceRequest { + return ApiDeleteSourceRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + source: source, + } +} + +// Execute executes the request +// @return DeleteSourceResponse +func (a *SourcesApiService) DeleteSourceExecute(r ApiDeleteSourceRequest) (*DeleteSourceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteSourceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.DeleteSource") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterToString(r.workspace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterToString(r.collection, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"source"+"}", url.PathEscape(parameterToString(r.source, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSourceRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string + source string +} + + +func (r ApiGetSourceRequest) Execute() (*GetSourceResponse, *http.Response, error) { + return r.ApiService.GetSourceExecute(r) +} + +/* +GetSource Retrieve source + +Get details about a collection source. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiGetSourceRequest +*/ +func (a *SourcesApiService) GetSource(ctx context.Context, workspace string, collection string, source string) ApiGetSourceRequest { + return ApiGetSourceRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + source: source, + } +} + +// Execute executes the request +// @return GetSourceResponse +func (a *SourcesApiService) GetSourceExecute(r ApiGetSourceRequest) (*GetSourceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSourceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.GetSource") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterToString(r.workspace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterToString(r.collection, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"source"+"}", url.PathEscape(parameterToString(r.source, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCollectionSourcesRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string +} + + +func (r ApiListCollectionSourcesRequest) Execute() (*ListSourcesResponse, *http.Response, error) { + return r.ApiService.ListCollectionSourcesExecute(r) +} + +/* +ListCollectionSources List sources in collection + +Retrieve all sources in a collection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @return ApiListCollectionSourcesRequest +*/ +func (a *SourcesApiService) ListCollectionSources(ctx context.Context, workspace string, collection string) ApiListCollectionSourcesRequest { + return ApiListCollectionSourcesRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + } +} + +// Execute executes the request +// @return ListSourcesResponse +func (a *SourcesApiService) ListCollectionSourcesExecute(r ApiListCollectionSourcesRequest) (*ListSourcesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListSourcesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.ListCollectionSources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterToString(r.workspace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterToString(r.collection, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiResumeSourceRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string + source string +} + + +func (r ApiResumeSourceRequest) Execute() (*GetSourceResponse, *http.Response, error) { + return r.ApiService.ResumeSourceExecute(r) +} + +/* +ResumeSource Resume source ingest + +Resume source ingest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiResumeSourceRequest +*/ +func (a *SourcesApiService) ResumeSource(ctx context.Context, workspace string, collection string, source string) ApiResumeSourceRequest { + return ApiResumeSourceRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + source: source, + } +} + +// Execute executes the request +// @return GetSourceResponse +func (a *SourcesApiService) ResumeSourceExecute(r ApiResumeSourceRequest) (*GetSourceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSourceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.ResumeSource") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/resume" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterToString(r.workspace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterToString(r.collection, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"source"+"}", url.PathEscape(parameterToString(r.source, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSuspendSourceRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string + source string +} + + +func (r ApiSuspendSourceRequest) Execute() (*GetSourceResponse, *http.Response, error) { + return r.ApiService.SuspendSourceExecute(r) +} + +/* +SuspendSource Suspend source ingest + +Suspend source ingest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param workspace name of the workspace + @param collection name of the collection + @param source id of source + @return ApiSuspendSourceRequest +*/ +func (a *SourcesApiService) SuspendSource(ctx context.Context, workspace string, collection string, source string) ApiSuspendSourceRequest { + return ApiSuspendSourceRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + source: source, + } +} + +// Execute executes the request +// @return GetSourceResponse +func (a *SourcesApiService) SuspendSourceExecute(r ApiSuspendSourceRequest) (*GetSourceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSourceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.SuspendSource") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/suspend" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterToString(r.workspace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterToString(r.collection, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"source"+"}", url.PathEscape(parameterToString(r.source, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/openapi/api_views.go b/openapi/api_views.go index b1e115e3..6c1bc9d0 100644 --- a/openapi/api_views.go +++ b/openapi/api_views.go @@ -222,6 +222,135 @@ func (a *ViewsApiService) CreateViewExecute(r ApiCreateViewRequest) (*CreateView body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -330,6 +459,135 @@ func (a *ViewsApiService) DeleteViewExecute(r ApiDeleteViewRequest) (*DeleteView body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -915,6 +1173,135 @@ func (a *ViewsApiService) UpdateViewExecute(r ApiUpdateViewRequest) (*UpdateView body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 406 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 408 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 501 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 502 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v ErrorModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/openapi/api_virtual_instances.go b/openapi/api_virtual_instances.go index 1caf8e6f..3e8dd70c 100644 --- a/openapi/api_virtual_instances.go +++ b/openapi/api_virtual_instances.go @@ -58,7 +58,7 @@ type VirtualInstancesApi interface { /* GetCollectionMount Get Collection Mount - [beta] Get a mount on this virtual instance. + [beta] Retrieve a mount on this virtual instance. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param virtualInstanceId Virtual Instance RRN @@ -131,7 +131,7 @@ type VirtualInstancesApi interface { ListVirtualInstancesExecute(r ApiListVirtualInstancesRequest) (*ListVirtualInstancesResponse, *http.Response, error) /* - MountCollection Mount Collection + MountCollection Mount Collections [beta] Mount a collection to this virtual instance. @@ -713,7 +713,7 @@ func (r ApiGetCollectionMountRequest) Execute() (*CollectionMountResponse, *http /* GetCollectionMount Get Collection Mount -[beta] Get a mount on this virtual instance. +[beta] Retrieve a mount on this virtual instance. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param virtualInstanceId Virtual Instance RRN @@ -1881,7 +1881,7 @@ func (r ApiMountCollectionRequest) Execute() (*CreateCollectionMountsResponse, * } /* -MountCollection Mount Collection +MountCollection Mount Collections [beta] Mount a collection to this virtual instance. diff --git a/openapi/client.go b/openapi/client.go index 96ade85a..336677f5 100644 --- a/openapi/client.go +++ b/openapi/client.go @@ -69,6 +69,8 @@ type APIClient struct { SharedLambdasApi SharedLambdasApi + SourcesApi SourcesApi + UsersApi UsersApi ViewsApi ViewsApi @@ -104,6 +106,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.QueriesApi = (*QueriesApiService)(&c.common) c.QueryLambdasApi = (*QueryLambdasApiService)(&c.common) c.SharedLambdasApi = (*SharedLambdasApiService)(&c.common) + c.SourcesApi = (*SourcesApiService)(&c.common) c.UsersApi = (*UsersApiService)(&c.common) c.ViewsApi = (*ViewsApiService)(&c.common) c.VirtualInstancesApi = (*VirtualInstancesApiService)(&c.common) diff --git a/openapi/docs/Alias.md b/openapi/docs/Alias.md index 3ef258f3..61786416 100644 --- a/openapi/docs/Alias.md +++ b/openapi/docs/Alias.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Collections** | Pointer to **[]string** | List of fully qualified collection names referenced by alias. | [optional] **CreatedAt** | Pointer to **string** | ISO-8601 date. | [optional] +**CreatedByApikeyName** | Pointer to **string** | Name of the API key that was used to create this object if one was used. | [optional] **CreatorEmail** | Pointer to **string** | Email of the creator. | [optional] **Description** | Pointer to **string** | Alias description. | [optional] **ModifiedAt** | Pointer to **string** | ISO-8601 date. | [optional] @@ -82,6 +83,31 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. +### GetCreatedByApikeyName + +`func (o *Alias) GetCreatedByApikeyName() string` + +GetCreatedByApikeyName returns the CreatedByApikeyName field if non-nil, zero value otherwise. + +### GetCreatedByApikeyNameOk + +`func (o *Alias) GetCreatedByApikeyNameOk() (*string, bool)` + +GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByApikeyName + +`func (o *Alias) SetCreatedByApikeyName(v string)` + +SetCreatedByApikeyName sets CreatedByApikeyName field to given value. + +### HasCreatedByApikeyName + +`func (o *Alias) HasCreatedByApikeyName() bool` + +HasCreatedByApikeyName returns a boolean if a field has been set. + ### GetCreatorEmail `func (o *Alias) GetCreatorEmail() string` diff --git a/openapi/docs/ApiKey.md b/openapi/docs/ApiKey.md index 210a0c1c..6ecbc90c 100644 --- a/openapi/docs/ApiKey.md +++ b/openapi/docs/ApiKey.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | Pointer to **string** | Date that API key was created (ISO-8601 format). | [optional] **CreatedBy** | Pointer to **string** | Email of API key owner. | [optional] +**CreatedByApikeyName** | Pointer to **string** | Name of the API key that was used to create this object if one was used. | [optional] **ExpiryTime** | Pointer to **string** | The expiration date of this API key. | [optional] -**Key** | **string** | API key string of 64 alphanumeric characters. | +**Key** | **string** | This field will only be populated with the full key when creating an API key. Otherwise, it will be an API key identifier of 6 characters. | **LastAccessTime** | Pointer to **string** | Date that API key was most recently used (ISO-8601 format). | [optional] **Name** | **string** | Name of the API key. | **Role** | Pointer to **string** | Role specifying access control. If not specified, API key will have access to all of the associated user's roles. | [optional] @@ -82,6 +83,31 @@ SetCreatedBy sets CreatedBy field to given value. HasCreatedBy returns a boolean if a field has been set. +### GetCreatedByApikeyName + +`func (o *ApiKey) GetCreatedByApikeyName() string` + +GetCreatedByApikeyName returns the CreatedByApikeyName field if non-nil, zero value otherwise. + +### GetCreatedByApikeyNameOk + +`func (o *ApiKey) GetCreatedByApikeyNameOk() (*string, bool)` + +GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByApikeyName + +`func (o *ApiKey) SetCreatedByApikeyName(v string)` + +SetCreatedByApikeyName sets CreatedByApikeyName field to given value. + +### HasCreatedByApikeyName + +`func (o *ApiKey) HasCreatedByApikeyName() bool` + +HasCreatedByApikeyName returns a boolean if a field has been set. + ### GetExpiryTime `func (o *ApiKey) GetExpiryTime() string` diff --git a/openapi/docs/AsyncQueryOptions.md b/openapi/docs/AsyncQueryOptions.md index 87899f80..bbf6b63b 100644 --- a/openapi/docs/AsyncQueryOptions.md +++ b/openapi/docs/AsyncQueryOptions.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ClientTimeoutMs** | Pointer to **int64** | The maximum amount of time that the client is willing to wait for the query to complete. If the query is not complete by this timeout, a response will be returned with a `query_id` that can be used to check the status of the query and retrieve results once the query has completed. | [optional] -**MaxInitialResults** | Pointer to **int64** | The maximum number of results you will receive as a client. If the query exceeds this limit, the remaining results can be requested using a returned pagination cursor. In addition, there is a maximum response size of 100MiB so fewer than `max_results` may be returned. | [optional] -**TimeoutMs** | Pointer to **int64** | The maximum amount of time that the system will attempt to complete query execution before aborting the query and returning an error. | [optional] +**ClientTimeoutMs** | Pointer to **int64** | If the query completes before the client timeout, the results are returned. Otherwise if the client timeout is exceeded, the query id will be returned, and the query will continue to run in the background for up to 30 minutes. (The 30 minute timeout can be configured lower with timeout_ms.) `async_options.client_timeout_ms` only applies when `async` is true. The default value of `client_timeout_ms` is 0, so async query requests will immediately return with a query id by default. | [optional] +**MaxInitialResults** | Pointer to **int64** | [DEPRECATED] Use the query request `max_initial_results` instead. The maximum number of results you will receive as a client. If the query exceeds this limit, the remaining results can be requested using a returned pagination cursor. In addition, there is a maximum response size of 100MiB so fewer than `max_results` may be returned. | [optional] +**TimeoutMs** | Pointer to **int64** | [DEPRECATED] Use the query request `timeout_ms` instead. The maximum amount of time that the system will attempt to complete query execution before aborting the query and returning an error. This must be set to a value that is greater than or equal to the client timeout, and the maximum value of this timeout is 30 minutes. | [optional] ## Methods diff --git a/openapi/docs/AutoScalingPolicy.md b/openapi/docs/AutoScalingPolicy.md new file mode 100644 index 00000000..473723a4 --- /dev/null +++ b/openapi/docs/AutoScalingPolicy.md @@ -0,0 +1,108 @@ +# AutoScalingPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | Whether auto scaling policy is enabled. | [optional] +**MaxSize** | Pointer to **string** | Maximum size Rockset can auto scale the Virtual Instance to. This value should be one of the dedicated sizes greater than or same as the min_size and lower than or same as the current size. | [optional] +**MinSize** | Pointer to **string** | Minimum size Rockset can auto scale the Virtual Instance to. This value should be one of the dedicated sizes lower than or same as the max_size and greater than or same as the current size. | [optional] + +## Methods + +### NewAutoScalingPolicy + +`func NewAutoScalingPolicy() *AutoScalingPolicy` + +NewAutoScalingPolicy instantiates a new AutoScalingPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAutoScalingPolicyWithDefaults + +`func NewAutoScalingPolicyWithDefaults() *AutoScalingPolicy` + +NewAutoScalingPolicyWithDefaults instantiates a new AutoScalingPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnabled + +`func (o *AutoScalingPolicy) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *AutoScalingPolicy) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *AutoScalingPolicy) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *AutoScalingPolicy) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetMaxSize + +`func (o *AutoScalingPolicy) GetMaxSize() string` + +GetMaxSize returns the MaxSize field if non-nil, zero value otherwise. + +### GetMaxSizeOk + +`func (o *AutoScalingPolicy) GetMaxSizeOk() (*string, bool)` + +GetMaxSizeOk returns a tuple with the MaxSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSize + +`func (o *AutoScalingPolicy) SetMaxSize(v string)` + +SetMaxSize sets MaxSize field to given value. + +### HasMaxSize + +`func (o *AutoScalingPolicy) HasMaxSize() bool` + +HasMaxSize returns a boolean if a field has been set. + +### GetMinSize + +`func (o *AutoScalingPolicy) GetMinSize() string` + +GetMinSize returns the MinSize field if non-nil, zero value otherwise. + +### GetMinSizeOk + +`func (o *AutoScalingPolicy) GetMinSizeOk() (*string, bool)` + +GetMinSizeOk returns a tuple with the MinSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinSize + +`func (o *AutoScalingPolicy) SetMinSize(v string)` + +SetMinSize sets MinSize field to given value. + +### HasMinSize + +`func (o *AutoScalingPolicy) HasMinSize() bool` + +HasMinSize returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/openapi/docs/Collection.md b/openapi/docs/Collection.md index 8852ca63..8f0d5b5b 100644 --- a/openapi/docs/Collection.md +++ b/openapi/docs/Collection.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **ClusteringKey** | Pointer to [**[]FieldPartition**](FieldPartition.md) | List of clustering fields for a collection. | [optional] **CreatedAt** | Pointer to **string** | ISO-8601 date. | [optional] **CreatedBy** | Pointer to **string** | Email of user who created the collection. | [optional] +**CreatedByApikeyName** | Pointer to **string** | Name of the API key that was used to create this collection if one was used. | [optional] **Description** | Pointer to **string** | Text describing the collection. | [optional] **FieldMappingQuery** | Pointer to [**FieldMappingQuery**](FieldMappingQuery.md) | | [optional] **FieldMappings** | Pointer to [**[]FieldMappingV2**](FieldMappingV2.md) | List of mappings applied on all documents in a collection. | [optional] @@ -165,6 +166,31 @@ SetCreatedBy sets CreatedBy field to given value. HasCreatedBy returns a boolean if a field has been set. +### GetCreatedByApikeyName + +`func (o *Collection) GetCreatedByApikeyName() string` + +GetCreatedByApikeyName returns the CreatedByApikeyName field if non-nil, zero value otherwise. + +### GetCreatedByApikeyNameOk + +`func (o *Collection) GetCreatedByApikeyNameOk() (*string, bool)` + +GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByApikeyName + +`func (o *Collection) SetCreatedByApikeyName(v string)` + +SetCreatedByApikeyName sets CreatedByApikeyName field to given value. + +### HasCreatedByApikeyName + +`func (o *Collection) HasCreatedByApikeyName() bool` + +HasCreatedByApikeyName returns a boolean if a field has been set. + ### GetDescription `func (o *Collection) GetDescription() string` diff --git a/openapi/docs/CollectionMount.md b/openapi/docs/CollectionMount.md index 9ea51b22..c38019fe 100644 --- a/openapi/docs/CollectionMount.md +++ b/openapi/docs/CollectionMount.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **SnapshotExpirationTimeMillis** | Pointer to **int64** | Time in millis at which the snapshot expires. | [optional] **State** | Pointer to **string** | Mount type. | [optional] **Stats** | Pointer to [**CollectionMountStats**](CollectionMountStats.md) | | [optional] -**Type** | Pointer to **string** | Mount type. | [optional] **VirtualInstanceId** | Pointer to **string** | Virtual instance ID. | [optional] **VirtualInstanceRrn** | Pointer to **string** | Virtual Instance RRN. | [optional] @@ -235,31 +234,6 @@ SetStats sets Stats field to given value. HasStats returns a boolean if a field has been set. -### GetType - -`func (o *CollectionMount) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CollectionMount) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CollectionMount) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *CollectionMount) HasType() bool` - -HasType returns a boolean if a field has been set. - ### GetVirtualInstanceId `func (o *CollectionMount) GetVirtualInstanceId() string` diff --git a/openapi/docs/CreateCollectionMountRequest.md b/openapi/docs/CreateCollectionMountRequest.md index c73b66b7..a1f79a8d 100644 --- a/openapi/docs/CreateCollectionMountRequest.md +++ b/openapi/docs/CreateCollectionMountRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CollectionPaths** | Pointer to **[]string** | Collections to mount. | [optional] -**Type** | Pointer to **string** | Mount type. | [optional] ## Methods @@ -51,31 +50,6 @@ SetCollectionPaths sets CollectionPaths field to given value. HasCollectionPaths returns a boolean if a field has been set. -### GetType - -`func (o *CreateCollectionMountRequest) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CreateCollectionMountRequest) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CreateCollectionMountRequest) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *CreateCollectionMountRequest) HasType() bool` - -HasType returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/docs/CreateVirtualInstanceRequest.md b/openapi/docs/CreateVirtualInstanceRequest.md index c785fbfc..49c531f1 100644 --- a/openapi/docs/CreateVirtualInstanceRequest.md +++ b/openapi/docs/CreateVirtualInstanceRequest.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AutoSuspendSeconds** | Pointer to **int32** | Number of seconds without queries after which the VI is suspended | [optional] **Description** | Pointer to **string** | Description of requested virtual instance. | [optional] -**MountRefreshIntervalSeconds** | Pointer to **int32** | Number of seconds between data refreshes for mounts on this Virtual Instance | [optional] +**EnableRemountOnResume** | Pointer to **bool** | When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. | [optional] +**MountRefreshIntervalSeconds** | Pointer to **int32** | Number of seconds between data refreshes for mounts on this Virtual Instance. A value of 0 means continuous refresh and a value of null means never refresh. | [optional] **Name** | **string** | Unique identifier for virtual instance, can contain alphanumeric or dash characters. | **Type** | Pointer to **string** | Requested virtual instance type. | [optional] @@ -79,6 +80,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnableRemountOnResume + +`func (o *CreateVirtualInstanceRequest) GetEnableRemountOnResume() bool` + +GetEnableRemountOnResume returns the EnableRemountOnResume field if non-nil, zero value otherwise. + +### GetEnableRemountOnResumeOk + +`func (o *CreateVirtualInstanceRequest) GetEnableRemountOnResumeOk() (*bool, bool)` + +GetEnableRemountOnResumeOk returns a tuple with the EnableRemountOnResume field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableRemountOnResume + +`func (o *CreateVirtualInstanceRequest) SetEnableRemountOnResume(v bool)` + +SetEnableRemountOnResume sets EnableRemountOnResume field to given value. + +### HasEnableRemountOnResume + +`func (o *CreateVirtualInstanceRequest) HasEnableRemountOnResume() bool` + +HasEnableRemountOnResume returns a boolean if a field has been set. + ### GetMountRefreshIntervalSeconds `func (o *CreateVirtualInstanceRequest) GetMountRefreshIntervalSeconds() int32` diff --git a/openapi/docs/DeleteSourceResponse.md b/openapi/docs/DeleteSourceResponse.md new file mode 100644 index 00000000..947ab900 --- /dev/null +++ b/openapi/docs/DeleteSourceResponse.md @@ -0,0 +1,56 @@ +# DeleteSourceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**Source**](Source.md) | | [optional] + +## Methods + +### NewDeleteSourceResponse + +`func NewDeleteSourceResponse() *DeleteSourceResponse` + +NewDeleteSourceResponse instantiates a new DeleteSourceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteSourceResponseWithDefaults + +`func NewDeleteSourceResponseWithDefaults() *DeleteSourceResponse` + +NewDeleteSourceResponseWithDefaults instantiates a new DeleteSourceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *DeleteSourceResponse) GetData() Source` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeleteSourceResponse) GetDataOk() (*Source, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DeleteSourceResponse) SetData(v Source)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeleteSourceResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/openapi/docs/ExecuteQueryLambdaRequest.md b/openapi/docs/ExecuteQueryLambdaRequest.md index 2e20f63e..d991d479 100644 --- a/openapi/docs/ExecuteQueryLambdaRequest.md +++ b/openapi/docs/ExecuteQueryLambdaRequest.md @@ -4,12 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Async** | Pointer to **bool** | If true, the query will run asynchronously for up to 30 minutes. The query request will immediately return with a query id that can be used to retrieve the query status and results. If false or not specified, the query will return with results once completed or timeout after 2 minutes. (To return results directly for shorter queries while still allowing a timeout of up to 30 minutes, set `async_options.client_timeout_ms`.) | [optional] **AsyncOptions** | Pointer to [**AsyncQueryOptions**](AsyncQueryOptions.md) | | [optional] +**DebugThresholdMs** | Pointer to **int64** | If query execution takes longer than this value, debug information will be logged. If the query text includes the DEBUG hint and this parameter is also provided, only this value will be used and the DEBUG hint will be ignored. | [optional] **DefaultRowLimit** | Pointer to **int32** | Row limit to use if no limit specified in the SQL query text. | [optional] **GenerateWarnings** | Pointer to **bool** | Whether to generate warnings. | [optional] -**InitialPaginateResponseDocCount** | Pointer to **int32** | Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. | [optional] +**InitialPaginateResponseDocCount** | Pointer to **int32** | [DEPRECATED] Use `max_initial_results` instead. Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. | [optional] +**MaxInitialResults** | Pointer to **int64** | This limits the maximum number of results in the initial response. A pagination cursor is returned if the number of results exceeds `max_initial_results`. If `max_initial_results` is not set, all results will be returned in the initial response up to 4 million. If `max_initial_results` is set, the value must be between 0 and 100,000. If the query is async and `client_timeout_ms` is exceeded, `max_initial_results` does not apply since none of the results will be returned with the initial response. | [optional] **Paginate** | Pointer to **bool** | Flag to paginate and store the results of this query for later / sequential retrieval. | [optional] **Parameters** | Pointer to [**[]QueryParameter**](QueryParameter.md) | List of named parameters. | [optional] +**TimeoutMs** | Pointer to **int64** | If a query exceeds the specified timeout, the query will automatically stop and return an error. The query timeout defaults to a maximum of 2 minutes. If `async` is true, the query timeout defaults to a maximum of 30 minutes. | [optional] **VirtualInstanceId** | Pointer to **string** | Virtual instance on which to run the query. | [optional] ## Methods @@ -31,6 +35,31 @@ NewExecuteQueryLambdaRequestWithDefaults instantiates a new ExecuteQueryLambdaRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetAsync + +`func (o *ExecuteQueryLambdaRequest) GetAsync() bool` + +GetAsync returns the Async field if non-nil, zero value otherwise. + +### GetAsyncOk + +`func (o *ExecuteQueryLambdaRequest) GetAsyncOk() (*bool, bool)` + +GetAsyncOk returns a tuple with the Async field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsync + +`func (o *ExecuteQueryLambdaRequest) SetAsync(v bool)` + +SetAsync sets Async field to given value. + +### HasAsync + +`func (o *ExecuteQueryLambdaRequest) HasAsync() bool` + +HasAsync returns a boolean if a field has been set. + ### GetAsyncOptions `func (o *ExecuteQueryLambdaRequest) GetAsyncOptions() AsyncQueryOptions` @@ -56,6 +85,31 @@ SetAsyncOptions sets AsyncOptions field to given value. HasAsyncOptions returns a boolean if a field has been set. +### GetDebugThresholdMs + +`func (o *ExecuteQueryLambdaRequest) GetDebugThresholdMs() int64` + +GetDebugThresholdMs returns the DebugThresholdMs field if non-nil, zero value otherwise. + +### GetDebugThresholdMsOk + +`func (o *ExecuteQueryLambdaRequest) GetDebugThresholdMsOk() (*int64, bool)` + +GetDebugThresholdMsOk returns a tuple with the DebugThresholdMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDebugThresholdMs + +`func (o *ExecuteQueryLambdaRequest) SetDebugThresholdMs(v int64)` + +SetDebugThresholdMs sets DebugThresholdMs field to given value. + +### HasDebugThresholdMs + +`func (o *ExecuteQueryLambdaRequest) HasDebugThresholdMs() bool` + +HasDebugThresholdMs returns a boolean if a field has been set. + ### GetDefaultRowLimit `func (o *ExecuteQueryLambdaRequest) GetDefaultRowLimit() int32` @@ -131,6 +185,31 @@ SetInitialPaginateResponseDocCount sets InitialPaginateResponseDocCount field to HasInitialPaginateResponseDocCount returns a boolean if a field has been set. +### GetMaxInitialResults + +`func (o *ExecuteQueryLambdaRequest) GetMaxInitialResults() int64` + +GetMaxInitialResults returns the MaxInitialResults field if non-nil, zero value otherwise. + +### GetMaxInitialResultsOk + +`func (o *ExecuteQueryLambdaRequest) GetMaxInitialResultsOk() (*int64, bool)` + +GetMaxInitialResultsOk returns a tuple with the MaxInitialResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxInitialResults + +`func (o *ExecuteQueryLambdaRequest) SetMaxInitialResults(v int64)` + +SetMaxInitialResults sets MaxInitialResults field to given value. + +### HasMaxInitialResults + +`func (o *ExecuteQueryLambdaRequest) HasMaxInitialResults() bool` + +HasMaxInitialResults returns a boolean if a field has been set. + ### GetPaginate `func (o *ExecuteQueryLambdaRequest) GetPaginate() bool` @@ -181,6 +260,31 @@ SetParameters sets Parameters field to given value. HasParameters returns a boolean if a field has been set. +### GetTimeoutMs + +`func (o *ExecuteQueryLambdaRequest) GetTimeoutMs() int64` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *ExecuteQueryLambdaRequest) GetTimeoutMsOk() (*int64, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *ExecuteQueryLambdaRequest) SetTimeoutMs(v int64)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *ExecuteQueryLambdaRequest) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + ### GetVirtualInstanceId `func (o *ExecuteQueryLambdaRequest) GetVirtualInstanceId() string` diff --git a/openapi/docs/GetSourceResponse.md b/openapi/docs/GetSourceResponse.md new file mode 100644 index 00000000..283a0acc --- /dev/null +++ b/openapi/docs/GetSourceResponse.md @@ -0,0 +1,56 @@ +# GetSourceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**Source**](Source.md) | | [optional] + +## Methods + +### NewGetSourceResponse + +`func NewGetSourceResponse() *GetSourceResponse` + +NewGetSourceResponse instantiates a new GetSourceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetSourceResponseWithDefaults + +`func NewGetSourceResponseWithDefaults() *GetSourceResponse` + +NewGetSourceResponseWithDefaults instantiates a new GetSourceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GetSourceResponse) GetData() Source` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GetSourceResponse) GetDataOk() (*Source, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GetSourceResponse) SetData(v Source)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GetSourceResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/openapi/docs/Integration.md b/openapi/docs/Integration.md index 9eed5d9b..5cd20008 100644 --- a/openapi/docs/Integration.md +++ b/openapi/docs/Integration.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Collections** | Pointer to [**[]Collection**](Collection.md) | List of collections that use the integration. | [optional] **CreatedAt** | Pointer to **string** | ISO-8601 date. | [optional] **CreatedBy** | **string** | Email of user who created the integration. | +**CreatedByApikeyName** | Pointer to **string** | Name of the API key that was used to create this object if one was used. | [optional] **Description** | Pointer to **string** | Longer explanation for the integration. | [optional] **Dynamodb** | Pointer to [**DynamodbIntegration**](DynamodbIntegration.md) | | [optional] **Gcs** | Pointer to [**GcsIntegration**](GcsIntegration.md) | | [optional] @@ -185,6 +186,31 @@ and a boolean to check if the value has been set. SetCreatedBy sets CreatedBy field to given value. +### GetCreatedByApikeyName + +`func (o *Integration) GetCreatedByApikeyName() string` + +GetCreatedByApikeyName returns the CreatedByApikeyName field if non-nil, zero value otherwise. + +### GetCreatedByApikeyNameOk + +`func (o *Integration) GetCreatedByApikeyNameOk() (*string, bool)` + +GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByApikeyName + +`func (o *Integration) SetCreatedByApikeyName(v string)` + +SetCreatedByApikeyName sets CreatedByApikeyName field to given value. + +### HasCreatedByApikeyName + +`func (o *Integration) HasCreatedByApikeyName() bool` + +HasCreatedByApikeyName returns a boolean if a field has been set. + ### GetDescription `func (o *Integration) GetDescription() string` diff --git a/openapi/docs/ListSourcesResponse.md b/openapi/docs/ListSourcesResponse.md new file mode 100644 index 00000000..d1f658a8 --- /dev/null +++ b/openapi/docs/ListSourcesResponse.md @@ -0,0 +1,56 @@ +# ListSourcesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]Source**](Source.md) | List of all sources in a collection | [optional] + +## Methods + +### NewListSourcesResponse + +`func NewListSourcesResponse() *ListSourcesResponse` + +NewListSourcesResponse instantiates a new ListSourcesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListSourcesResponseWithDefaults + +`func NewListSourcesResponseWithDefaults() *ListSourcesResponse` + +NewListSourcesResponseWithDefaults instantiates a new ListSourcesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ListSourcesResponse) GetData() []Source` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ListSourcesResponse) GetDataOk() (*[]Source, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ListSourcesResponse) SetData(v []Source)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ListSourcesResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/openapi/docs/Organization.md b/openapi/docs/Organization.md index e8b3a220..698a3d70 100644 --- a/openapi/docs/Organization.md +++ b/openapi/docs/Organization.md @@ -10,6 +10,8 @@ Name | Type | Description | Notes **ExternalId** | Pointer to **string** | Organization's unique external ID within Rockset. | [optional] **Id** | Pointer to **string** | Unique identifier for the organization. | [optional] **RocksetUser** | Pointer to **string** | Rockset's global AWS user. | [optional] +**SsoConnection** | Pointer to **string** | Connection name of SSO connection. | [optional] +**SsoOnly** | Pointer to **bool** | Whether or not SSO is the only permitted form of auth. | [optional] ## Methods @@ -180,6 +182,56 @@ SetRocksetUser sets RocksetUser field to given value. HasRocksetUser returns a boolean if a field has been set. +### GetSsoConnection + +`func (o *Organization) GetSsoConnection() string` + +GetSsoConnection returns the SsoConnection field if non-nil, zero value otherwise. + +### GetSsoConnectionOk + +`func (o *Organization) GetSsoConnectionOk() (*string, bool)` + +GetSsoConnectionOk returns a tuple with the SsoConnection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsoConnection + +`func (o *Organization) SetSsoConnection(v string)` + +SetSsoConnection sets SsoConnection field to given value. + +### HasSsoConnection + +`func (o *Organization) HasSsoConnection() bool` + +HasSsoConnection returns a boolean if a field has been set. + +### GetSsoOnly + +`func (o *Organization) GetSsoOnly() bool` + +GetSsoOnly returns the SsoOnly field if non-nil, zero value otherwise. + +### GetSsoOnlyOk + +`func (o *Organization) GetSsoOnlyOk() (*bool, bool)` + +GetSsoOnlyOk returns a tuple with the SsoOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsoOnly + +`func (o *Organization) SetSsoOnly(v bool)` + +SetSsoOnly sets SsoOnly field to given value. + +### HasSsoOnly + +`func (o *Organization) HasSsoOnly() bool` + +HasSsoOnly returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/docs/QueryInfo.md b/openapi/docs/QueryInfo.md index 8f508177..c3ffeacd 100644 --- a/openapi/docs/QueryInfo.md +++ b/openapi/docs/QueryInfo.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] **QueryErrors** | Pointer to [**[]QueryError**](QueryError.md) | Errors encountered while executing the query. | [optional] **QueryId** | Pointer to **string** | Unique Query ID. | [optional] +**Sql** | Pointer to **string** | The SQL query for this request | [optional] **Stats** | Pointer to [**Stats**](Stats.md) | | [optional] **Status** | Pointer to **string** | Status of the query. | [optional] **SubmittedAt** | Pointer to **string** | Time (UTC) the query request was first received and queued for execution. | [optional] @@ -183,6 +184,31 @@ SetQueryId sets QueryId field to given value. HasQueryId returns a boolean if a field has been set. +### GetSql + +`func (o *QueryInfo) GetSql() string` + +GetSql returns the Sql field if non-nil, zero value otherwise. + +### GetSqlOk + +`func (o *QueryInfo) GetSqlOk() (*string, bool)` + +GetSqlOk returns a tuple with the Sql field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSql + +`func (o *QueryInfo) SetSql(v string)` + +SetSql sets Sql field to given value. + +### HasSql + +`func (o *QueryInfo) HasSql() bool` + +HasSql returns a boolean if a field has been set. + ### GetStats `func (o *QueryInfo) GetStats() Stats` diff --git a/openapi/docs/QueryLambdaVersion.md b/openapi/docs/QueryLambdaVersion.md index f3a6e54a..4a783d06 100644 --- a/openapi/docs/QueryLambdaVersion.md +++ b/openapi/docs/QueryLambdaVersion.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Collections** | Pointer to **[]string** | Collections queried by underlying SQL query. | [optional] **CreatedAt** | Pointer to **string** | ISO-8601 date of when Query Lambda was created. | [optional] **CreatedBy** | Pointer to **string** | User that created this Query Lambda. | [optional] +**CreatedByApikeyName** | Pointer to **string** | Name of the API key that was used to create this object if one was used. | [optional] **Description** | Pointer to **string** | Optional description. | [optional] **Name** | Pointer to **string** | Query Lambda name. | [optional] **PublicAccessId** | Pointer to **string** | Public access ID associated with this QL version | [optional] @@ -110,6 +111,31 @@ SetCreatedBy sets CreatedBy field to given value. HasCreatedBy returns a boolean if a field has been set. +### GetCreatedByApikeyName + +`func (o *QueryLambdaVersion) GetCreatedByApikeyName() string` + +GetCreatedByApikeyName returns the CreatedByApikeyName field if non-nil, zero value otherwise. + +### GetCreatedByApikeyNameOk + +`func (o *QueryLambdaVersion) GetCreatedByApikeyNameOk() (*string, bool)` + +GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByApikeyName + +`func (o *QueryLambdaVersion) SetCreatedByApikeyName(v string)` + +SetCreatedByApikeyName sets CreatedByApikeyName field to given value. + +### HasCreatedByApikeyName + +`func (o *QueryLambdaVersion) HasCreatedByApikeyName() bool` + +HasCreatedByApikeyName returns a boolean if a field has been set. + ### GetDescription `func (o *QueryLambdaVersion) GetDescription() string` diff --git a/openapi/docs/QueryParameter.md b/openapi/docs/QueryParameter.md index 5cd38fcc..11d664b4 100644 --- a/openapi/docs/QueryParameter.md +++ b/openapi/docs/QueryParameter.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Name of the field. | -**Type** | **string** | Data type of the field. | +**Type** | **string** | Deprecated. Data type of the field. | **Value** | **string** | Literal value of the field. | ## Methods diff --git a/openapi/docs/QueryRequest.md b/openapi/docs/QueryRequest.md index 38fa02ee..454564df 100644 --- a/openapi/docs/QueryRequest.md +++ b/openapi/docs/QueryRequest.md @@ -4,8 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Async** | Pointer to **bool** | If true, the query will run asynchronously for up to 30 minutes. The query request will immediately return with a query id that can be used to retrieve the query status and results. If false or not specified, the query will return with results once completed or timeout after 2 minutes. (To return results directly for shorter queries while still allowing a timeout of up to 30 minutes, set `async_options.client_timeout_ms`.) | [optional] **AsyncOptions** | Pointer to [**AsyncQueryOptions**](AsyncQueryOptions.md) | | [optional] +**DebugThresholdMs** | Pointer to **int64** | If query execution takes longer than this value, debug information will be logged. If the query text includes the DEBUG hint and this parameter is also provided, only this value will be used and the DEBUG hint will be ignored. | [optional] +**MaxInitialResults** | Pointer to **int64** | This limits the maximum number of results in the initial response. A pagination cursor is returned if the number of results exceeds `max_initial_results`. If `max_initial_results` is not set, all results will be returned in the initial response up to 4 million. If `max_initial_results` is set, the value must be between 0 and 100,000. If the query is async and `client_timeout_ms` is exceeded, `max_initial_results` does not apply since none of the results will be returned with the initial response. | [optional] **Sql** | [**QueryRequestSql**](QueryRequestSql.md) | | +**TimeoutMs** | Pointer to **int64** | If a query exceeds the specified timeout, the query will automatically stop and return an error. The query timeout defaults to a maximum of 2 minutes. If `async` is true, the query timeout defaults to a maximum of 30 minutes. | [optional] ## Methods @@ -26,6 +30,31 @@ NewQueryRequestWithDefaults instantiates a new QueryRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetAsync + +`func (o *QueryRequest) GetAsync() bool` + +GetAsync returns the Async field if non-nil, zero value otherwise. + +### GetAsyncOk + +`func (o *QueryRequest) GetAsyncOk() (*bool, bool)` + +GetAsyncOk returns a tuple with the Async field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsync + +`func (o *QueryRequest) SetAsync(v bool)` + +SetAsync sets Async field to given value. + +### HasAsync + +`func (o *QueryRequest) HasAsync() bool` + +HasAsync returns a boolean if a field has been set. + ### GetAsyncOptions `func (o *QueryRequest) GetAsyncOptions() AsyncQueryOptions` @@ -51,6 +80,56 @@ SetAsyncOptions sets AsyncOptions field to given value. HasAsyncOptions returns a boolean if a field has been set. +### GetDebugThresholdMs + +`func (o *QueryRequest) GetDebugThresholdMs() int64` + +GetDebugThresholdMs returns the DebugThresholdMs field if non-nil, zero value otherwise. + +### GetDebugThresholdMsOk + +`func (o *QueryRequest) GetDebugThresholdMsOk() (*int64, bool)` + +GetDebugThresholdMsOk returns a tuple with the DebugThresholdMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDebugThresholdMs + +`func (o *QueryRequest) SetDebugThresholdMs(v int64)` + +SetDebugThresholdMs sets DebugThresholdMs field to given value. + +### HasDebugThresholdMs + +`func (o *QueryRequest) HasDebugThresholdMs() bool` + +HasDebugThresholdMs returns a boolean if a field has been set. + +### GetMaxInitialResults + +`func (o *QueryRequest) GetMaxInitialResults() int64` + +GetMaxInitialResults returns the MaxInitialResults field if non-nil, zero value otherwise. + +### GetMaxInitialResultsOk + +`func (o *QueryRequest) GetMaxInitialResultsOk() (*int64, bool)` + +GetMaxInitialResultsOk returns a tuple with the MaxInitialResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxInitialResults + +`func (o *QueryRequest) SetMaxInitialResults(v int64)` + +SetMaxInitialResults sets MaxInitialResults field to given value. + +### HasMaxInitialResults + +`func (o *QueryRequest) HasMaxInitialResults() bool` + +HasMaxInitialResults returns a boolean if a field has been set. + ### GetSql `func (o *QueryRequest) GetSql() QueryRequestSql` @@ -71,6 +150,31 @@ and a boolean to check if the value has been set. SetSql sets Sql field to given value. +### GetTimeoutMs + +`func (o *QueryRequest) GetTimeoutMs() int64` + +GetTimeoutMs returns the TimeoutMs field if non-nil, zero value otherwise. + +### GetTimeoutMsOk + +`func (o *QueryRequest) GetTimeoutMsOk() (*int64, bool)` + +GetTimeoutMsOk returns a tuple with the TimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutMs + +`func (o *QueryRequest) SetTimeoutMs(v int64)` + +SetTimeoutMs sets TimeoutMs field to given value. + +### HasTimeoutMs + +`func (o *QueryRequest) HasTimeoutMs() bool` + +HasTimeoutMs returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/docs/QueryRequestSql.md b/openapi/docs/QueryRequestSql.md index 301f7867..f1ce9f37 100644 --- a/openapi/docs/QueryRequestSql.md +++ b/openapi/docs/QueryRequestSql.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DefaultRowLimit** | Pointer to **int32** | Row limit to use. Limits specified in the query text will override this default. | [optional] **GenerateWarnings** | Pointer to **bool** | Flag to enable warnings. Warnings can help debug query issues but negatively affect performance. | [optional] -**InitialPaginateResponseDocCount** | Pointer to **int32** | Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. | [optional] +**InitialPaginateResponseDocCount** | Pointer to **int32** | [DEPRECATED] Use `max_initial_results` instead. Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. | [optional] **Parameters** | Pointer to [**[]QueryParameter**](QueryParameter.md) | List of named parameters. | [optional] **Query** | **string** | SQL query string. | diff --git a/openapi/docs/QueryResponse.md b/openapi/docs/QueryResponse.md index 95f82b65..49eabf9c 100644 --- a/openapi/docs/QueryResponse.md +++ b/openapi/docs/QueryResponse.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **Results** | Pointer to **[]map[string]interface{}** | Results from the query. | [optional] **ResultsTotalDocCount** | Pointer to **int64** | Number of results generated by the query. | [optional] **Stats** | Pointer to [**QueryResponseStats**](QueryResponseStats.md) | | [optional] +**Status** | Pointer to **string** | Status of query execution. Possible values: `QUEUED`, `RUNNING`, `COMPLETED`, `ERROR`. | [optional] **Warnings** | Pointer to **[]string** | Warnings generated by the query. Only populated if `generate_warnings` is specified in the query request. | [optional] ## Methods @@ -285,6 +286,31 @@ SetStats sets Stats field to given value. HasStats returns a boolean if a field has been set. +### GetStatus + +`func (o *QueryResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *QueryResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *QueryResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *QueryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + ### GetWarnings `func (o *QueryResponse) GetWarnings() []string` diff --git a/openapi/docs/Source.md b/openapi/docs/Source.md index cbb3069d..e2310bd2 100644 --- a/openapi/docs/Source.md +++ b/openapi/docs/Source.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **S3** | Pointer to [**SourceS3**](SourceS3.md) | | [optional] **Snowflake** | Pointer to [**SourceSnowflake**](SourceSnowflake.md) | | [optional] **Status** | Pointer to [**Status**](Status.md) | | [optional] +**SuspendedAt** | Pointer to **string** | ISO-8601 date when source was suspended, if suspended | [optional] +**System** | Pointer to [**SourceSystem**](SourceSystem.md) | | [optional] ## Methods @@ -414,6 +416,56 @@ SetStatus sets Status field to given value. HasStatus returns a boolean if a field has been set. +### GetSuspendedAt + +`func (o *Source) GetSuspendedAt() string` + +GetSuspendedAt returns the SuspendedAt field if non-nil, zero value otherwise. + +### GetSuspendedAtOk + +`func (o *Source) GetSuspendedAtOk() (*string, bool)` + +GetSuspendedAtOk returns a tuple with the SuspendedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspendedAt + +`func (o *Source) SetSuspendedAt(v string)` + +SetSuspendedAt sets SuspendedAt field to given value. + +### HasSuspendedAt + +`func (o *Source) HasSuspendedAt() bool` + +HasSuspendedAt returns a boolean if a field has been set. + +### GetSystem + +`func (o *Source) GetSystem() SourceSystem` + +GetSystem returns the System field if non-nil, zero value otherwise. + +### GetSystemOk + +`func (o *Source) GetSystemOk() (*SourceSystem, bool)` + +GetSystemOk returns a tuple with the System field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystem + +`func (o *Source) SetSystem(v SourceSystem)` + +SetSystem sets System field to given value. + +### HasSystem + +`func (o *Source) HasSystem() bool` + +HasSystem returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/docs/SourceSnapshot.md b/openapi/docs/SourceSnapshot.md new file mode 100644 index 00000000..a52c528f --- /dev/null +++ b/openapi/docs/SourceSnapshot.md @@ -0,0 +1,82 @@ +# SourceSnapshot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SourceCollectionPath** | Pointer to **string** | Path of source collection to restore the snapshot from. | [optional] +**SourceSnapshotId** | Pointer to **string** | Snapshot id of the snapshot that the new collection will be created from. | [optional] + +## Methods + +### NewSourceSnapshot + +`func NewSourceSnapshot() *SourceSnapshot` + +NewSourceSnapshot instantiates a new SourceSnapshot object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceSnapshotWithDefaults + +`func NewSourceSnapshotWithDefaults() *SourceSnapshot` + +NewSourceSnapshotWithDefaults instantiates a new SourceSnapshot object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSourceCollectionPath + +`func (o *SourceSnapshot) GetSourceCollectionPath() string` + +GetSourceCollectionPath returns the SourceCollectionPath field if non-nil, zero value otherwise. + +### GetSourceCollectionPathOk + +`func (o *SourceSnapshot) GetSourceCollectionPathOk() (*string, bool)` + +GetSourceCollectionPathOk returns a tuple with the SourceCollectionPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceCollectionPath + +`func (o *SourceSnapshot) SetSourceCollectionPath(v string)` + +SetSourceCollectionPath sets SourceCollectionPath field to given value. + +### HasSourceCollectionPath + +`func (o *SourceSnapshot) HasSourceCollectionPath() bool` + +HasSourceCollectionPath returns a boolean if a field has been set. + +### GetSourceSnapshotId + +`func (o *SourceSnapshot) GetSourceSnapshotId() string` + +GetSourceSnapshotId returns the SourceSnapshotId field if non-nil, zero value otherwise. + +### GetSourceSnapshotIdOk + +`func (o *SourceSnapshot) GetSourceSnapshotIdOk() (*string, bool)` + +GetSourceSnapshotIdOk returns a tuple with the SourceSnapshotId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceSnapshotId + +`func (o *SourceSnapshot) SetSourceSnapshotId(v string)` + +SetSourceSnapshotId sets SourceSnapshotId field to given value. + +### HasSourceSnapshotId + +`func (o *SourceSnapshot) HasSourceSnapshotId() bool` + +HasSourceSnapshotId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/openapi/docs/SourceSystem.md b/openapi/docs/SourceSystem.md new file mode 100644 index 00000000..b074d28f --- /dev/null +++ b/openapi/docs/SourceSystem.md @@ -0,0 +1,56 @@ +# SourceSystem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | The type of this system source. | [optional] + +## Methods + +### NewSourceSystem + +`func NewSourceSystem() *SourceSystem` + +NewSourceSystem instantiates a new SourceSystem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSourceSystemWithDefaults + +`func NewSourceSystemWithDefaults() *SourceSystem` + +NewSourceSystemWithDefaults instantiates a new SourceSystem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *SourceSystem) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SourceSystem) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SourceSystem) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SourceSystem) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/openapi/docs/SourcesApi.md b/openapi/docs/SourcesApi.md new file mode 100644 index 00000000..c2e6aa22 --- /dev/null +++ b/openapi/docs/SourcesApi.md @@ -0,0 +1,466 @@ +# \SourcesApi + +All URIs are relative to *https://api.use1a1.rockset.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSource**](SourcesApi.md#CreateSource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources | Create a source +[**DeleteSource**](SourcesApi.md#DeleteSource) | **Delete** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source} | Delete Collection source +[**GetSource**](SourcesApi.md#GetSource) | **Get** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source} | Retrieve source +[**ListCollectionSources**](SourcesApi.md#ListCollectionSources) | **Get** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources | List sources in collection +[**ResumeSource**](SourcesApi.md#ResumeSource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/resume | Resume source ingest +[**SuspendSource**](SourcesApi.md#SuspendSource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/suspend | Suspend source ingest + + + +## CreateSource + +> GetSourceResponse CreateSource(ctx, workspace, collection).Body(body).Execute() + +Create a source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + workspace := "workspace_example" // string | name of the workspace (default to "commons") + collection := "collection_example" // string | name of the collection + body := *openapiclient.NewSource() // Source | JSON object + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.CreateSource(context.Background(), workspace, collection).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.CreateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSource`: GetSourceResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.CreateSource`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspace** | **string** | name of the workspace | [default to "commons"] +**collection** | **string** | name of the collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**Source**](Source.md) | JSON object | + +### Return type + +[**GetSourceResponse**](GetSourceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSource + +> DeleteSourceResponse DeleteSource(ctx, workspace, collection, source).Execute() + +Delete Collection source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + workspace := "workspace_example" // string | name of the workspace (default to "commons") + collection := "collection_example" // string | name of the collection + source := "source_example" // string | id of source + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.DeleteSource(context.Background(), workspace, collection, source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.DeleteSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSource`: DeleteSourceResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.DeleteSource`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspace** | **string** | name of the workspace | [default to "commons"] +**collection** | **string** | name of the collection | +**source** | **string** | id of source | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**DeleteSourceResponse**](DeleteSourceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSource + +> GetSourceResponse GetSource(ctx, workspace, collection, source).Execute() + +Retrieve source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + workspace := "workspace_example" // string | name of the workspace (default to "commons") + collection := "collection_example" // string | name of the collection + source := "source_example" // string | id of source + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.GetSource(context.Background(), workspace, collection, source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.GetSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSource`: GetSourceResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.GetSource`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspace** | **string** | name of the workspace | [default to "commons"] +**collection** | **string** | name of the collection | +**source** | **string** | id of source | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**GetSourceResponse**](GetSourceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCollectionSources + +> ListSourcesResponse ListCollectionSources(ctx, workspace, collection).Execute() + +List sources in collection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + workspace := "workspace_example" // string | name of the workspace (default to "commons") + collection := "collection_example" // string | name of the collection + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.ListCollectionSources(context.Background(), workspace, collection).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ListCollectionSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCollectionSources`: ListSourcesResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ListCollectionSources`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspace** | **string** | name of the workspace | [default to "commons"] +**collection** | **string** | name of the collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCollectionSourcesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ListSourcesResponse**](ListSourcesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResumeSource + +> GetSourceResponse ResumeSource(ctx, workspace, collection, source).Execute() + +Resume source ingest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + workspace := "workspace_example" // string | name of the workspace (default to "commons") + collection := "collection_example" // string | name of the collection + source := "source_example" // string | id of source + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.ResumeSource(context.Background(), workspace, collection, source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.ResumeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResumeSource`: GetSourceResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.ResumeSource`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspace** | **string** | name of the workspace | [default to "commons"] +**collection** | **string** | name of the collection | +**source** | **string** | id of source | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResumeSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**GetSourceResponse**](GetSourceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SuspendSource + +> GetSourceResponse SuspendSource(ctx, workspace, collection, source).Execute() + +Suspend source ingest + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + workspace := "workspace_example" // string | name of the workspace (default to "commons") + collection := "collection_example" // string | name of the collection + source := "source_example" // string | id of source + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.SuspendSource(context.Background(), workspace, collection, source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.SuspendSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SuspendSource`: GetSourceResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.SuspendSource`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspace** | **string** | name of the workspace | [default to "commons"] +**collection** | **string** | name of the collection | +**source** | **string** | id of source | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSuspendSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**GetSourceResponse**](GetSourceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/openapi/docs/UpdateVirtualInstanceRequest.md b/openapi/docs/UpdateVirtualInstanceRequest.md index 5bb1e242..72488f81 100644 --- a/openapi/docs/UpdateVirtualInstanceRequest.md +++ b/openapi/docs/UpdateVirtualInstanceRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AutoScalingPolicy** | Pointer to [**AutoScalingPolicy**](AutoScalingPolicy.md) | | [optional] **AutoSuspendEnabled** | Pointer to **bool** | Whether auto-suspend should be enabled for this Virtual Instance. | [optional] **AutoSuspendSeconds** | Pointer to **int32** | Number of seconds without queries after which the VI is suspended | [optional] **Description** | Pointer to **string** | New virtual instance description. | [optional] -**MonitoringEnabled** | Pointer to **bool** | | [optional] -**MountRefreshIntervalSeconds** | Pointer to **int32** | Number of seconds between data refreshes for mounts on this Virtual Instance | [optional] +**EnableRemountOnResume** | Pointer to **bool** | When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. | [optional] +**MountRefreshIntervalSeconds** | Pointer to **int32** | Number of seconds between data refreshes for mounts on this Virtual Instance. A value of 0 means continuous refresh and a value of null means never refresh. | [optional] **Name** | Pointer to **string** | New virtual instance name. | [optional] **NewSize** | Pointer to **string** | Requested virtual instance size. | [optional] @@ -31,6 +32,31 @@ NewUpdateVirtualInstanceRequestWithDefaults instantiates a new UpdateVirtualInst This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetAutoScalingPolicy + +`func (o *UpdateVirtualInstanceRequest) GetAutoScalingPolicy() AutoScalingPolicy` + +GetAutoScalingPolicy returns the AutoScalingPolicy field if non-nil, zero value otherwise. + +### GetAutoScalingPolicyOk + +`func (o *UpdateVirtualInstanceRequest) GetAutoScalingPolicyOk() (*AutoScalingPolicy, bool)` + +GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoScalingPolicy + +`func (o *UpdateVirtualInstanceRequest) SetAutoScalingPolicy(v AutoScalingPolicy)` + +SetAutoScalingPolicy sets AutoScalingPolicy field to given value. + +### HasAutoScalingPolicy + +`func (o *UpdateVirtualInstanceRequest) HasAutoScalingPolicy() bool` + +HasAutoScalingPolicy returns a boolean if a field has been set. + ### GetAutoSuspendEnabled `func (o *UpdateVirtualInstanceRequest) GetAutoSuspendEnabled() bool` @@ -106,30 +132,30 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetMonitoringEnabled +### GetEnableRemountOnResume -`func (o *UpdateVirtualInstanceRequest) GetMonitoringEnabled() bool` +`func (o *UpdateVirtualInstanceRequest) GetEnableRemountOnResume() bool` -GetMonitoringEnabled returns the MonitoringEnabled field if non-nil, zero value otherwise. +GetEnableRemountOnResume returns the EnableRemountOnResume field if non-nil, zero value otherwise. -### GetMonitoringEnabledOk +### GetEnableRemountOnResumeOk -`func (o *UpdateVirtualInstanceRequest) GetMonitoringEnabledOk() (*bool, bool)` +`func (o *UpdateVirtualInstanceRequest) GetEnableRemountOnResumeOk() (*bool, bool)` -GetMonitoringEnabledOk returns a tuple with the MonitoringEnabled field if it's non-nil, zero value otherwise +GetEnableRemountOnResumeOk returns a tuple with the EnableRemountOnResume field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMonitoringEnabled +### SetEnableRemountOnResume -`func (o *UpdateVirtualInstanceRequest) SetMonitoringEnabled(v bool)` +`func (o *UpdateVirtualInstanceRequest) SetEnableRemountOnResume(v bool)` -SetMonitoringEnabled sets MonitoringEnabled field to given value. +SetEnableRemountOnResume sets EnableRemountOnResume field to given value. -### HasMonitoringEnabled +### HasEnableRemountOnResume -`func (o *UpdateVirtualInstanceRequest) HasMonitoringEnabled() bool` +`func (o *UpdateVirtualInstanceRequest) HasEnableRemountOnResume() bool` -HasMonitoringEnabled returns a boolean if a field has been set. +HasEnableRemountOnResume returns a boolean if a field has been set. ### GetMountRefreshIntervalSeconds diff --git a/openapi/docs/View.md b/openapi/docs/View.md index 016da34f..be36c656 100644 --- a/openapi/docs/View.md +++ b/openapi/docs/View.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | Pointer to **string** | ISO-8601 date. | [optional] +**CreatedByApikeyName** | Pointer to **string** | Name of the API key that was used to create this object if one was used. | [optional] **CreatorEmail** | Pointer to **string** | Email of the creator. | [optional] **Description** | Pointer to **string** | View description. | [optional] **Entities** | Pointer to **[]string** | List of entities referenced by view. An entity can be a view, alias or collection. | [optional] @@ -60,6 +61,31 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. +### GetCreatedByApikeyName + +`func (o *View) GetCreatedByApikeyName() string` + +GetCreatedByApikeyName returns the CreatedByApikeyName field if non-nil, zero value otherwise. + +### GetCreatedByApikeyNameOk + +`func (o *View) GetCreatedByApikeyNameOk() (*string, bool)` + +GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByApikeyName + +`func (o *View) SetCreatedByApikeyName(v string)` + +SetCreatedByApikeyName sets CreatedByApikeyName field to given value. + +### HasCreatedByApikeyName + +`func (o *View) HasCreatedByApikeyName() bool` + +HasCreatedByApikeyName returns a boolean if a field has been set. + ### GetCreatorEmail `func (o *View) GetCreatorEmail() string` diff --git a/openapi/docs/VirtualInstance.md b/openapi/docs/VirtualInstance.md index 1db03863..5ee2c989 100644 --- a/openapi/docs/VirtualInstance.md +++ b/openapi/docs/VirtualInstance.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AutoScalingPolicy** | Pointer to [**AutoScalingPolicy**](AutoScalingPolicy.md) | | [optional] **AutoSuspendSeconds** | Pointer to **int32** | Number of seconds without queries after which the VI is suspended | [optional] **CreatedAt** | Pointer to **string** | ISO-8601 date of when virtual instance was created. | [optional] **CreatedBy** | Pointer to **string** | Creator of requested virtual instance. | [optional] @@ -12,6 +13,7 @@ Name | Type | Description | Notes **DefaultVi** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | Virtual instance description. | [optional] **DesiredSize** | Pointer to **string** | Virtual instance desired size. | [optional] [readonly] +**EnableRemountOnResume** | Pointer to **bool** | When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. | [optional] **Id** | Pointer to **string** | Unique identifier for virtual instance. | [optional] **MonitoringEnabled** | Pointer to **bool** | | [optional] **MountRefreshIntervalSeconds** | Pointer to **int32** | Number of seconds between data refreshes for mounts on this Virtual Instance | [optional] @@ -41,6 +43,31 @@ NewVirtualInstanceWithDefaults instantiates a new VirtualInstance object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetAutoScalingPolicy + +`func (o *VirtualInstance) GetAutoScalingPolicy() AutoScalingPolicy` + +GetAutoScalingPolicy returns the AutoScalingPolicy field if non-nil, zero value otherwise. + +### GetAutoScalingPolicyOk + +`func (o *VirtualInstance) GetAutoScalingPolicyOk() (*AutoScalingPolicy, bool)` + +GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoScalingPolicy + +`func (o *VirtualInstance) SetAutoScalingPolicy(v AutoScalingPolicy)` + +SetAutoScalingPolicy sets AutoScalingPolicy field to given value. + +### HasAutoScalingPolicy + +`func (o *VirtualInstance) HasAutoScalingPolicy() bool` + +HasAutoScalingPolicy returns a boolean if a field has been set. + ### GetAutoSuspendSeconds `func (o *VirtualInstance) GetAutoSuspendSeconds() int32` @@ -241,6 +268,31 @@ SetDesiredSize sets DesiredSize field to given value. HasDesiredSize returns a boolean if a field has been set. +### GetEnableRemountOnResume + +`func (o *VirtualInstance) GetEnableRemountOnResume() bool` + +GetEnableRemountOnResume returns the EnableRemountOnResume field if non-nil, zero value otherwise. + +### GetEnableRemountOnResumeOk + +`func (o *VirtualInstance) GetEnableRemountOnResumeOk() (*bool, bool)` + +GetEnableRemountOnResumeOk returns a tuple with the EnableRemountOnResume field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableRemountOnResume + +`func (o *VirtualInstance) SetEnableRemountOnResume(v bool)` + +SetEnableRemountOnResume sets EnableRemountOnResume field to given value. + +### HasEnableRemountOnResume + +`func (o *VirtualInstance) HasEnableRemountOnResume() bool` + +HasEnableRemountOnResume returns a boolean if a field has been set. + ### GetId `func (o *VirtualInstance) GetId() string` diff --git a/openapi/docs/VirtualInstancesApi.md b/openapi/docs/VirtualInstancesApi.md index d7fa71e7..0fe7a88d 100644 --- a/openapi/docs/VirtualInstancesApi.md +++ b/openapi/docs/VirtualInstancesApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description [**GetVirtualInstanceQueries**](VirtualInstancesApi.md#GetVirtualInstanceQueries) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId}/queries | List Queries [**ListCollectionMounts**](VirtualInstancesApi.md#ListCollectionMounts) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts | List Collection Mounts [**ListVirtualInstances**](VirtualInstancesApi.md#ListVirtualInstances) | **Get** /v1/orgs/self/virtualinstances | List Virtual Instances -[**MountCollection**](VirtualInstancesApi.md#MountCollection) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts | Mount Collection +[**MountCollection**](VirtualInstancesApi.md#MountCollection) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts | Mount Collections [**QueryVirtualInstance**](VirtualInstancesApi.md#QueryVirtualInstance) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/queries | Execute SQL Query [**ResumeVirtualInstance**](VirtualInstancesApi.md#ResumeVirtualInstance) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/resume | Resume Virtual Instance [**SetVirtualInstance**](VirtualInstancesApi.md#SetVirtualInstance) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId} | Update Virtual Instance @@ -504,7 +504,7 @@ No authorization required > CreateCollectionMountsResponse MountCollection(ctx, virtualInstanceId).Body(body).Execute() -Mount Collection +Mount Collections diff --git a/openapi/model_alias.go b/openapi/model_alias.go index ace76303..9aba323d 100644 --- a/openapi/model_alias.go +++ b/openapi/model_alias.go @@ -20,6 +20,8 @@ type Alias struct { Collections []string `json:"collections,omitempty"` // ISO-8601 date. CreatedAt *string `json:"created_at,omitempty"` + // Name of the API key that was used to create this object if one was used. + CreatedByApikeyName *string `json:"created_by_apikey_name,omitempty"` // Email of the creator. CreatorEmail *string `json:"creator_email,omitempty"` // Alias description. @@ -115,6 +117,38 @@ func (o *Alias) SetCreatedAt(v string) { o.CreatedAt = &v } +// GetCreatedByApikeyName returns the CreatedByApikeyName field value if set, zero value otherwise. +func (o *Alias) GetCreatedByApikeyName() string { + if o == nil || o.CreatedByApikeyName == nil { + var ret string + return ret + } + return *o.CreatedByApikeyName +} + +// GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alias) GetCreatedByApikeyNameOk() (*string, bool) { + if o == nil || o.CreatedByApikeyName == nil { + return nil, false + } + return o.CreatedByApikeyName, true +} + +// HasCreatedByApikeyName returns a boolean if a field has been set. +func (o *Alias) HasCreatedByApikeyName() bool { + if o != nil && o.CreatedByApikeyName != nil { + return true + } + + return false +} + +// SetCreatedByApikeyName gets a reference to the given string and assigns it to the CreatedByApikeyName field. +func (o *Alias) SetCreatedByApikeyName(v string) { + o.CreatedByApikeyName = &v +} + // GetCreatorEmail returns the CreatorEmail field value if set, zero value otherwise. func (o *Alias) GetCreatorEmail() string { if o == nil || o.CreatorEmail == nil { @@ -315,6 +349,9 @@ func (o Alias) MarshalJSON() ([]byte, error) { if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + if o.CreatedByApikeyName != nil { + toSerialize["created_by_apikey_name"] = o.CreatedByApikeyName + } if o.CreatorEmail != nil { toSerialize["creator_email"] = o.CreatorEmail } diff --git a/openapi/model_api_key.go b/openapi/model_api_key.go index 91ed1ac9..e0c45927 100644 --- a/openapi/model_api_key.go +++ b/openapi/model_api_key.go @@ -20,9 +20,11 @@ type ApiKey struct { CreatedAt *string `json:"created_at,omitempty"` // Email of API key owner. CreatedBy *string `json:"created_by,omitempty"` + // Name of the API key that was used to create this object if one was used. + CreatedByApikeyName *string `json:"created_by_apikey_name,omitempty"` // The expiration date of this API key. ExpiryTime *string `json:"expiry_time,omitempty"` - // API key string of 64 alphanumeric characters. + // This field will only be populated with the full key when creating an API key. Otherwise, it will be an API key identifier of 6 characters. Key string `json:"key"` // Date that API key was most recently used (ISO-8601 format). LastAccessTime *string `json:"last_access_time,omitempty"` @@ -117,6 +119,38 @@ func (o *ApiKey) SetCreatedBy(v string) { o.CreatedBy = &v } +// GetCreatedByApikeyName returns the CreatedByApikeyName field value if set, zero value otherwise. +func (o *ApiKey) GetCreatedByApikeyName() string { + if o == nil || o.CreatedByApikeyName == nil { + var ret string + return ret + } + return *o.CreatedByApikeyName +} + +// GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiKey) GetCreatedByApikeyNameOk() (*string, bool) { + if o == nil || o.CreatedByApikeyName == nil { + return nil, false + } + return o.CreatedByApikeyName, true +} + +// HasCreatedByApikeyName returns a boolean if a field has been set. +func (o *ApiKey) HasCreatedByApikeyName() bool { + if o != nil && o.CreatedByApikeyName != nil { + return true + } + + return false +} + +// SetCreatedByApikeyName gets a reference to the given string and assigns it to the CreatedByApikeyName field. +func (o *ApiKey) SetCreatedByApikeyName(v string) { + o.CreatedByApikeyName = &v +} + // GetExpiryTime returns the ExpiryTime field value if set, zero value otherwise. func (o *ApiKey) GetExpiryTime() string { if o == nil || o.ExpiryTime == nil { @@ -301,6 +335,9 @@ func (o ApiKey) MarshalJSON() ([]byte, error) { if o.CreatedBy != nil { toSerialize["created_by"] = o.CreatedBy } + if o.CreatedByApikeyName != nil { + toSerialize["created_by_apikey_name"] = o.CreatedByApikeyName + } if o.ExpiryTime != nil { toSerialize["expiry_time"] = o.ExpiryTime } diff --git a/openapi/model_async_query_options.go b/openapi/model_async_query_options.go index c0498081..1de1dd50 100644 --- a/openapi/model_async_query_options.go +++ b/openapi/model_async_query_options.go @@ -16,11 +16,11 @@ import ( // AsyncQueryOptions struct for AsyncQueryOptions type AsyncQueryOptions struct { - // The maximum amount of time that the client is willing to wait for the query to complete. If the query is not complete by this timeout, a response will be returned with a `query_id` that can be used to check the status of the query and retrieve results once the query has completed. + // If the query completes before the client timeout, the results are returned. Otherwise if the client timeout is exceeded, the query id will be returned, and the query will continue to run in the background for up to 30 minutes. (The 30 minute timeout can be configured lower with timeout_ms.) `async_options.client_timeout_ms` only applies when `async` is true. The default value of `client_timeout_ms` is 0, so async query requests will immediately return with a query id by default. ClientTimeoutMs *int64 `json:"client_timeout_ms,omitempty"` - // The maximum number of results you will receive as a client. If the query exceeds this limit, the remaining results can be requested using a returned pagination cursor. In addition, there is a maximum response size of 100MiB so fewer than `max_results` may be returned. + // [DEPRECATED] Use the query request `max_initial_results` instead. The maximum number of results you will receive as a client. If the query exceeds this limit, the remaining results can be requested using a returned pagination cursor. In addition, there is a maximum response size of 100MiB so fewer than `max_results` may be returned. MaxInitialResults *int64 `json:"max_initial_results,omitempty"` - // The maximum amount of time that the system will attempt to complete query execution before aborting the query and returning an error. + // [DEPRECATED] Use the query request `timeout_ms` instead. The maximum amount of time that the system will attempt to complete query execution before aborting the query and returning an error. This must be set to a value that is greater than or equal to the client timeout, and the maximum value of this timeout is 30 minutes. TimeoutMs *int64 `json:"timeout_ms,omitempty"` } diff --git a/openapi/model_auto_scaling_policy.go b/openapi/model_auto_scaling_policy.go new file mode 100644 index 00000000..82f2c9b3 --- /dev/null +++ b/openapi/model_auto_scaling_policy.go @@ -0,0 +1,190 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// AutoScalingPolicy struct for AutoScalingPolicy +type AutoScalingPolicy struct { + // Whether auto scaling policy is enabled. + Enabled *bool `json:"enabled,omitempty"` + // Maximum size Rockset can auto scale the Virtual Instance to. This value should be one of the dedicated sizes greater than or same as the min_size and lower than or same as the current size. + MaxSize *string `json:"max_size,omitempty"` + // Minimum size Rockset can auto scale the Virtual Instance to. This value should be one of the dedicated sizes lower than or same as the max_size and greater than or same as the current size. + MinSize *string `json:"min_size,omitempty"` +} + +// NewAutoScalingPolicy instantiates a new AutoScalingPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAutoScalingPolicy() *AutoScalingPolicy { + this := AutoScalingPolicy{} + return &this +} + +// NewAutoScalingPolicyWithDefaults instantiates a new AutoScalingPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAutoScalingPolicyWithDefaults() *AutoScalingPolicy { + this := AutoScalingPolicy{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *AutoScalingPolicy) GetEnabled() bool { + if o == nil || o.Enabled == nil { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoScalingPolicy) GetEnabledOk() (*bool, bool) { + if o == nil || o.Enabled == nil { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *AutoScalingPolicy) HasEnabled() bool { + if o != nil && o.Enabled != nil { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *AutoScalingPolicy) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetMaxSize returns the MaxSize field value if set, zero value otherwise. +func (o *AutoScalingPolicy) GetMaxSize() string { + if o == nil || o.MaxSize == nil { + var ret string + return ret + } + return *o.MaxSize +} + +// GetMaxSizeOk returns a tuple with the MaxSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoScalingPolicy) GetMaxSizeOk() (*string, bool) { + if o == nil || o.MaxSize == nil { + return nil, false + } + return o.MaxSize, true +} + +// HasMaxSize returns a boolean if a field has been set. +func (o *AutoScalingPolicy) HasMaxSize() bool { + if o != nil && o.MaxSize != nil { + return true + } + + return false +} + +// SetMaxSize gets a reference to the given string and assigns it to the MaxSize field. +func (o *AutoScalingPolicy) SetMaxSize(v string) { + o.MaxSize = &v +} + +// GetMinSize returns the MinSize field value if set, zero value otherwise. +func (o *AutoScalingPolicy) GetMinSize() string { + if o == nil || o.MinSize == nil { + var ret string + return ret + } + return *o.MinSize +} + +// GetMinSizeOk returns a tuple with the MinSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AutoScalingPolicy) GetMinSizeOk() (*string, bool) { + if o == nil || o.MinSize == nil { + return nil, false + } + return o.MinSize, true +} + +// HasMinSize returns a boolean if a field has been set. +func (o *AutoScalingPolicy) HasMinSize() bool { + if o != nil && o.MinSize != nil { + return true + } + + return false +} + +// SetMinSize gets a reference to the given string and assigns it to the MinSize field. +func (o *AutoScalingPolicy) SetMinSize(v string) { + o.MinSize = &v +} + +func (o AutoScalingPolicy) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Enabled != nil { + toSerialize["enabled"] = o.Enabled + } + if o.MaxSize != nil { + toSerialize["max_size"] = o.MaxSize + } + if o.MinSize != nil { + toSerialize["min_size"] = o.MinSize + } + return json.Marshal(toSerialize) +} + +type NullableAutoScalingPolicy struct { + value *AutoScalingPolicy + isSet bool +} + +func (v NullableAutoScalingPolicy) Get() *AutoScalingPolicy { + return v.value +} + +func (v *NullableAutoScalingPolicy) Set(val *AutoScalingPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableAutoScalingPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableAutoScalingPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAutoScalingPolicy(val *AutoScalingPolicy) *NullableAutoScalingPolicy { + return &NullableAutoScalingPolicy{value: val, isSet: true} +} + +func (v NullableAutoScalingPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAutoScalingPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_collection.go b/openapi/model_collection.go index f79bd379..86e8b1f0 100644 --- a/openapi/model_collection.go +++ b/openapi/model_collection.go @@ -25,6 +25,8 @@ type Collection struct { CreatedAt *string `json:"created_at,omitempty"` // Email of user who created the collection. CreatedBy *string `json:"created_by,omitempty"` + // Name of the API key that was used to create this collection if one was used. + CreatedByApikeyName *string `json:"created_by_apikey_name,omitempty"` // Text describing the collection. Description *string `json:"description,omitempty"` FieldMappingQuery *FieldMappingQuery `json:"field_mapping_query,omitempty"` @@ -224,6 +226,38 @@ func (o *Collection) SetCreatedBy(v string) { o.CreatedBy = &v } +// GetCreatedByApikeyName returns the CreatedByApikeyName field value if set, zero value otherwise. +func (o *Collection) GetCreatedByApikeyName() string { + if o == nil || o.CreatedByApikeyName == nil { + var ret string + return ret + } + return *o.CreatedByApikeyName +} + +// GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Collection) GetCreatedByApikeyNameOk() (*string, bool) { + if o == nil || o.CreatedByApikeyName == nil { + return nil, false + } + return o.CreatedByApikeyName, true +} + +// HasCreatedByApikeyName returns a boolean if a field has been set. +func (o *Collection) HasCreatedByApikeyName() bool { + if o != nil && o.CreatedByApikeyName != nil { + return true + } + + return false +} + +// SetCreatedByApikeyName gets a reference to the given string and assigns it to the CreatedByApikeyName field. +func (o *Collection) SetCreatedByApikeyName(v string) { + o.CreatedByApikeyName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Collection) GetDescription() string { if o == nil || o.Description == nil { @@ -593,6 +627,9 @@ func (o Collection) MarshalJSON() ([]byte, error) { if o.CreatedBy != nil { toSerialize["created_by"] = o.CreatedBy } + if o.CreatedByApikeyName != nil { + toSerialize["created_by_apikey_name"] = o.CreatedByApikeyName + } if o.Description != nil { toSerialize["description"] = o.Description } diff --git a/openapi/model_collection_mount.go b/openapi/model_collection_mount.go index 5bc0bea7..270fcd0d 100644 --- a/openapi/model_collection_mount.go +++ b/openapi/model_collection_mount.go @@ -31,8 +31,6 @@ type CollectionMount struct { // Mount type. State *string `json:"state,omitempty"` Stats *CollectionMountStats `json:"stats,omitempty"` - // Mount type. - Type *string `json:"type,omitempty"` // Virtual instance ID. VirtualInstanceId *string `json:"virtual_instance_id,omitempty"` // Virtual Instance RRN. @@ -312,38 +310,6 @@ func (o *CollectionMount) SetStats(v CollectionMountStats) { o.Stats = &v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *CollectionMount) GetType() string { - if o == nil || o.Type == nil { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CollectionMount) GetTypeOk() (*string, bool) { - if o == nil || o.Type == nil { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *CollectionMount) HasType() bool { - if o != nil && o.Type != nil { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *CollectionMount) SetType(v string) { - o.Type = &v -} - // GetVirtualInstanceId returns the VirtualInstanceId field value if set, zero value otherwise. func (o *CollectionMount) GetVirtualInstanceId() string { if o == nil || o.VirtualInstanceId == nil { @@ -434,9 +400,6 @@ func (o CollectionMount) MarshalJSON() ([]byte, error) { if o.Stats != nil { toSerialize["stats"] = o.Stats } - if o.Type != nil { - toSerialize["type"] = o.Type - } if o.VirtualInstanceId != nil { toSerialize["virtual_instance_id"] = o.VirtualInstanceId } diff --git a/openapi/model_create_collection_mount_request.go b/openapi/model_create_collection_mount_request.go index 6b262681..39ce7ecb 100644 --- a/openapi/model_create_collection_mount_request.go +++ b/openapi/model_create_collection_mount_request.go @@ -18,8 +18,6 @@ import ( type CreateCollectionMountRequest struct { // Collections to mount. CollectionPaths []string `json:"collection_paths,omitempty"` - // Mount type. - Type *string `json:"type,omitempty"` } // NewCreateCollectionMountRequest instantiates a new CreateCollectionMountRequest object @@ -71,46 +69,11 @@ func (o *CreateCollectionMountRequest) SetCollectionPaths(v []string) { o.CollectionPaths = v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *CreateCollectionMountRequest) GetType() string { - if o == nil || o.Type == nil { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateCollectionMountRequest) GetTypeOk() (*string, bool) { - if o == nil || o.Type == nil { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *CreateCollectionMountRequest) HasType() bool { - if o != nil && o.Type != nil { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *CreateCollectionMountRequest) SetType(v string) { - o.Type = &v -} - func (o CreateCollectionMountRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.CollectionPaths != nil { toSerialize["collection_paths"] = o.CollectionPaths } - if o.Type != nil { - toSerialize["type"] = o.Type - } return json.Marshal(toSerialize) } diff --git a/openapi/model_create_virtual_instance_request.go b/openapi/model_create_virtual_instance_request.go index e10413f1..225840b1 100644 --- a/openapi/model_create_virtual_instance_request.go +++ b/openapi/model_create_virtual_instance_request.go @@ -20,7 +20,9 @@ type CreateVirtualInstanceRequest struct { AutoSuspendSeconds *int32 `json:"auto_suspend_seconds,omitempty"` // Description of requested virtual instance. Description *string `json:"description,omitempty"` - // Number of seconds between data refreshes for mounts on this Virtual Instance + // When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. + EnableRemountOnResume *bool `json:"enable_remount_on_resume,omitempty"` + // Number of seconds between data refreshes for mounts on this Virtual Instance. A value of 0 means continuous refresh and a value of null means never refresh. MountRefreshIntervalSeconds *int32 `json:"mount_refresh_interval_seconds,omitempty"` // Unique identifier for virtual instance, can contain alphanumeric or dash characters. Name string `json:"name"` @@ -110,6 +112,38 @@ func (o *CreateVirtualInstanceRequest) SetDescription(v string) { o.Description = &v } +// GetEnableRemountOnResume returns the EnableRemountOnResume field value if set, zero value otherwise. +func (o *CreateVirtualInstanceRequest) GetEnableRemountOnResume() bool { + if o == nil || o.EnableRemountOnResume == nil { + var ret bool + return ret + } + return *o.EnableRemountOnResume +} + +// GetEnableRemountOnResumeOk returns a tuple with the EnableRemountOnResume field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateVirtualInstanceRequest) GetEnableRemountOnResumeOk() (*bool, bool) { + if o == nil || o.EnableRemountOnResume == nil { + return nil, false + } + return o.EnableRemountOnResume, true +} + +// HasEnableRemountOnResume returns a boolean if a field has been set. +func (o *CreateVirtualInstanceRequest) HasEnableRemountOnResume() bool { + if o != nil && o.EnableRemountOnResume != nil { + return true + } + + return false +} + +// SetEnableRemountOnResume gets a reference to the given bool and assigns it to the EnableRemountOnResume field. +func (o *CreateVirtualInstanceRequest) SetEnableRemountOnResume(v bool) { + o.EnableRemountOnResume = &v +} + // GetMountRefreshIntervalSeconds returns the MountRefreshIntervalSeconds field value if set, zero value otherwise. func (o *CreateVirtualInstanceRequest) GetMountRefreshIntervalSeconds() int32 { if o == nil || o.MountRefreshIntervalSeconds == nil { @@ -206,6 +240,9 @@ func (o CreateVirtualInstanceRequest) MarshalJSON() ([]byte, error) { if o.Description != nil { toSerialize["description"] = o.Description } + if o.EnableRemountOnResume != nil { + toSerialize["enable_remount_on_resume"] = o.EnableRemountOnResume + } if o.MountRefreshIntervalSeconds != nil { toSerialize["mount_refresh_interval_seconds"] = o.MountRefreshIntervalSeconds } diff --git a/openapi/model_delete_source_response.go b/openapi/model_delete_source_response.go new file mode 100644 index 00000000..92c5b743 --- /dev/null +++ b/openapi/model_delete_source_response.go @@ -0,0 +1,115 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// DeleteSourceResponse struct for DeleteSourceResponse +type DeleteSourceResponse struct { + Data *Source `json:"data,omitempty"` +} + +// NewDeleteSourceResponse instantiates a new DeleteSourceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteSourceResponse() *DeleteSourceResponse { + this := DeleteSourceResponse{} + return &this +} + +// NewDeleteSourceResponseWithDefaults instantiates a new DeleteSourceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteSourceResponseWithDefaults() *DeleteSourceResponse { + this := DeleteSourceResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeleteSourceResponse) GetData() Source { + if o == nil || o.Data == nil { + var ret Source + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteSourceResponse) GetDataOk() (*Source, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DeleteSourceResponse) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given Source and assigns it to the Data field. +func (o *DeleteSourceResponse) SetData(v Source) { + o.Data = &v +} + +func (o DeleteSourceResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return json.Marshal(toSerialize) +} + +type NullableDeleteSourceResponse struct { + value *DeleteSourceResponse + isSet bool +} + +func (v NullableDeleteSourceResponse) Get() *DeleteSourceResponse { + return v.value +} + +func (v *NullableDeleteSourceResponse) Set(val *DeleteSourceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteSourceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteSourceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteSourceResponse(val *DeleteSourceResponse) *NullableDeleteSourceResponse { + return &NullableDeleteSourceResponse{value: val, isSet: true} +} + +func (v NullableDeleteSourceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteSourceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_execute_query_lambda_request.go b/openapi/model_execute_query_lambda_request.go index 1958e5d8..c1bcef17 100644 --- a/openapi/model_execute_query_lambda_request.go +++ b/openapi/model_execute_query_lambda_request.go @@ -16,17 +16,25 @@ import ( // ExecuteQueryLambdaRequest struct for ExecuteQueryLambdaRequest type ExecuteQueryLambdaRequest struct { + // If true, the query will run asynchronously for up to 30 minutes. The query request will immediately return with a query id that can be used to retrieve the query status and results. If false or not specified, the query will return with results once completed or timeout after 2 minutes. (To return results directly for shorter queries while still allowing a timeout of up to 30 minutes, set `async_options.client_timeout_ms`.) + Async *bool `json:"async,omitempty"` AsyncOptions *AsyncQueryOptions `json:"async_options,omitempty"` + // If query execution takes longer than this value, debug information will be logged. If the query text includes the DEBUG hint and this parameter is also provided, only this value will be used and the DEBUG hint will be ignored. + DebugThresholdMs *int64 `json:"debug_threshold_ms,omitempty"` // Row limit to use if no limit specified in the SQL query text. DefaultRowLimit *int32 `json:"default_row_limit,omitempty"` // Whether to generate warnings. GenerateWarnings *bool `json:"generate_warnings,omitempty"` - // Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. + // [DEPRECATED] Use `max_initial_results` instead. Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. InitialPaginateResponseDocCount *int32 `json:"initial_paginate_response_doc_count,omitempty"` + // This limits the maximum number of results in the initial response. A pagination cursor is returned if the number of results exceeds `max_initial_results`. If `max_initial_results` is not set, all results will be returned in the initial response up to 4 million. If `max_initial_results` is set, the value must be between 0 and 100,000. If the query is async and `client_timeout_ms` is exceeded, `max_initial_results` does not apply since none of the results will be returned with the initial response. + MaxInitialResults *int64 `json:"max_initial_results,omitempty"` // Flag to paginate and store the results of this query for later / sequential retrieval. Paginate *bool `json:"paginate,omitempty"` // List of named parameters. Parameters []QueryParameter `json:"parameters,omitempty"` + // If a query exceeds the specified timeout, the query will automatically stop and return an error. The query timeout defaults to a maximum of 2 minutes. If `async` is true, the query timeout defaults to a maximum of 30 minutes. + TimeoutMs *int64 `json:"timeout_ms,omitempty"` // Virtual instance on which to run the query. VirtualInstanceId *string `json:"virtual_instance_id,omitempty"` } @@ -48,6 +56,38 @@ func NewExecuteQueryLambdaRequestWithDefaults() *ExecuteQueryLambdaRequest { return &this } +// GetAsync returns the Async field value if set, zero value otherwise. +func (o *ExecuteQueryLambdaRequest) GetAsync() bool { + if o == nil || o.Async == nil { + var ret bool + return ret + } + return *o.Async +} + +// GetAsyncOk returns a tuple with the Async field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExecuteQueryLambdaRequest) GetAsyncOk() (*bool, bool) { + if o == nil || o.Async == nil { + return nil, false + } + return o.Async, true +} + +// HasAsync returns a boolean if a field has been set. +func (o *ExecuteQueryLambdaRequest) HasAsync() bool { + if o != nil && o.Async != nil { + return true + } + + return false +} + +// SetAsync gets a reference to the given bool and assigns it to the Async field. +func (o *ExecuteQueryLambdaRequest) SetAsync(v bool) { + o.Async = &v +} + // GetAsyncOptions returns the AsyncOptions field value if set, zero value otherwise. func (o *ExecuteQueryLambdaRequest) GetAsyncOptions() AsyncQueryOptions { if o == nil || o.AsyncOptions == nil { @@ -80,6 +120,38 @@ func (o *ExecuteQueryLambdaRequest) SetAsyncOptions(v AsyncQueryOptions) { o.AsyncOptions = &v } +// GetDebugThresholdMs returns the DebugThresholdMs field value if set, zero value otherwise. +func (o *ExecuteQueryLambdaRequest) GetDebugThresholdMs() int64 { + if o == nil || o.DebugThresholdMs == nil { + var ret int64 + return ret + } + return *o.DebugThresholdMs +} + +// GetDebugThresholdMsOk returns a tuple with the DebugThresholdMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExecuteQueryLambdaRequest) GetDebugThresholdMsOk() (*int64, bool) { + if o == nil || o.DebugThresholdMs == nil { + return nil, false + } + return o.DebugThresholdMs, true +} + +// HasDebugThresholdMs returns a boolean if a field has been set. +func (o *ExecuteQueryLambdaRequest) HasDebugThresholdMs() bool { + if o != nil && o.DebugThresholdMs != nil { + return true + } + + return false +} + +// SetDebugThresholdMs gets a reference to the given int64 and assigns it to the DebugThresholdMs field. +func (o *ExecuteQueryLambdaRequest) SetDebugThresholdMs(v int64) { + o.DebugThresholdMs = &v +} + // GetDefaultRowLimit returns the DefaultRowLimit field value if set, zero value otherwise. func (o *ExecuteQueryLambdaRequest) GetDefaultRowLimit() int32 { if o == nil || o.DefaultRowLimit == nil { @@ -176,6 +248,38 @@ func (o *ExecuteQueryLambdaRequest) SetInitialPaginateResponseDocCount(v int32) o.InitialPaginateResponseDocCount = &v } +// GetMaxInitialResults returns the MaxInitialResults field value if set, zero value otherwise. +func (o *ExecuteQueryLambdaRequest) GetMaxInitialResults() int64 { + if o == nil || o.MaxInitialResults == nil { + var ret int64 + return ret + } + return *o.MaxInitialResults +} + +// GetMaxInitialResultsOk returns a tuple with the MaxInitialResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExecuteQueryLambdaRequest) GetMaxInitialResultsOk() (*int64, bool) { + if o == nil || o.MaxInitialResults == nil { + return nil, false + } + return o.MaxInitialResults, true +} + +// HasMaxInitialResults returns a boolean if a field has been set. +func (o *ExecuteQueryLambdaRequest) HasMaxInitialResults() bool { + if o != nil && o.MaxInitialResults != nil { + return true + } + + return false +} + +// SetMaxInitialResults gets a reference to the given int64 and assigns it to the MaxInitialResults field. +func (o *ExecuteQueryLambdaRequest) SetMaxInitialResults(v int64) { + o.MaxInitialResults = &v +} + // GetPaginate returns the Paginate field value if set, zero value otherwise. func (o *ExecuteQueryLambdaRequest) GetPaginate() bool { if o == nil || o.Paginate == nil { @@ -240,6 +344,38 @@ func (o *ExecuteQueryLambdaRequest) SetParameters(v []QueryParameter) { o.Parameters = v } +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *ExecuteQueryLambdaRequest) GetTimeoutMs() int64 { + if o == nil || o.TimeoutMs == nil { + var ret int64 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExecuteQueryLambdaRequest) GetTimeoutMsOk() (*int64, bool) { + if o == nil || o.TimeoutMs == nil { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *ExecuteQueryLambdaRequest) HasTimeoutMs() bool { + if o != nil && o.TimeoutMs != nil { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given int64 and assigns it to the TimeoutMs field. +func (o *ExecuteQueryLambdaRequest) SetTimeoutMs(v int64) { + o.TimeoutMs = &v +} + // GetVirtualInstanceId returns the VirtualInstanceId field value if set, zero value otherwise. func (o *ExecuteQueryLambdaRequest) GetVirtualInstanceId() string { if o == nil || o.VirtualInstanceId == nil { @@ -274,9 +410,15 @@ func (o *ExecuteQueryLambdaRequest) SetVirtualInstanceId(v string) { func (o ExecuteQueryLambdaRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Async != nil { + toSerialize["async"] = o.Async + } if o.AsyncOptions != nil { toSerialize["async_options"] = o.AsyncOptions } + if o.DebugThresholdMs != nil { + toSerialize["debug_threshold_ms"] = o.DebugThresholdMs + } if o.DefaultRowLimit != nil { toSerialize["default_row_limit"] = o.DefaultRowLimit } @@ -286,12 +428,18 @@ func (o ExecuteQueryLambdaRequest) MarshalJSON() ([]byte, error) { if o.InitialPaginateResponseDocCount != nil { toSerialize["initial_paginate_response_doc_count"] = o.InitialPaginateResponseDocCount } + if o.MaxInitialResults != nil { + toSerialize["max_initial_results"] = o.MaxInitialResults + } if o.Paginate != nil { toSerialize["paginate"] = o.Paginate } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } + if o.TimeoutMs != nil { + toSerialize["timeout_ms"] = o.TimeoutMs + } if o.VirtualInstanceId != nil { toSerialize["virtual_instance_id"] = o.VirtualInstanceId } diff --git a/openapi/model_get_source_response.go b/openapi/model_get_source_response.go new file mode 100644 index 00000000..c42482d6 --- /dev/null +++ b/openapi/model_get_source_response.go @@ -0,0 +1,115 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// GetSourceResponse struct for GetSourceResponse +type GetSourceResponse struct { + Data *Source `json:"data,omitempty"` +} + +// NewGetSourceResponse instantiates a new GetSourceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetSourceResponse() *GetSourceResponse { + this := GetSourceResponse{} + return &this +} + +// NewGetSourceResponseWithDefaults instantiates a new GetSourceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetSourceResponseWithDefaults() *GetSourceResponse { + this := GetSourceResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GetSourceResponse) GetData() Source { + if o == nil || o.Data == nil { + var ret Source + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetSourceResponse) GetDataOk() (*Source, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GetSourceResponse) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given Source and assigns it to the Data field. +func (o *GetSourceResponse) SetData(v Source) { + o.Data = &v +} + +func (o GetSourceResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return json.Marshal(toSerialize) +} + +type NullableGetSourceResponse struct { + value *GetSourceResponse + isSet bool +} + +func (v NullableGetSourceResponse) Get() *GetSourceResponse { + return v.value +} + +func (v *NullableGetSourceResponse) Set(val *GetSourceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetSourceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSourceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSourceResponse(val *GetSourceResponse) *NullableGetSourceResponse { + return &NullableGetSourceResponse{value: val, isSet: true} +} + +func (v NullableGetSourceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSourceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_integration.go b/openapi/model_integration.go index b502e1b9..74b89933 100644 --- a/openapi/model_integration.go +++ b/openapi/model_integration.go @@ -25,6 +25,8 @@ type Integration struct { CreatedAt *string `json:"created_at,omitempty"` // Email of user who created the integration. CreatedBy string `json:"created_by"` + // Name of the API key that was used to create this object if one was used. + CreatedByApikeyName *string `json:"created_by_apikey_name,omitempty"` // Longer explanation for the integration. Description *string `json:"description,omitempty"` Dynamodb *DynamodbIntegration `json:"dynamodb,omitempty"` @@ -243,6 +245,38 @@ func (o *Integration) SetCreatedBy(v string) { o.CreatedBy = v } +// GetCreatedByApikeyName returns the CreatedByApikeyName field value if set, zero value otherwise. +func (o *Integration) GetCreatedByApikeyName() string { + if o == nil || o.CreatedByApikeyName == nil { + var ret string + return ret + } + return *o.CreatedByApikeyName +} + +// GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Integration) GetCreatedByApikeyNameOk() (*string, bool) { + if o == nil || o.CreatedByApikeyName == nil { + return nil, false + } + return o.CreatedByApikeyName, true +} + +// HasCreatedByApikeyName returns a boolean if a field has been set. +func (o *Integration) HasCreatedByApikeyName() bool { + if o != nil && o.CreatedByApikeyName != nil { + return true + } + + return false +} + +// SetCreatedByApikeyName gets a reference to the given string and assigns it to the CreatedByApikeyName field. +func (o *Integration) SetCreatedByApikeyName(v string) { + o.CreatedByApikeyName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Integration) GetDescription() string { if o == nil || o.Description == nil { @@ -575,6 +609,9 @@ func (o Integration) MarshalJSON() ([]byte, error) { if true { toSerialize["created_by"] = o.CreatedBy } + if o.CreatedByApikeyName != nil { + toSerialize["created_by_apikey_name"] = o.CreatedByApikeyName + } if o.Description != nil { toSerialize["description"] = o.Description } diff --git a/openapi/model_list_sources_response.go b/openapi/model_list_sources_response.go new file mode 100644 index 00000000..ee3118c8 --- /dev/null +++ b/openapi/model_list_sources_response.go @@ -0,0 +1,116 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// ListSourcesResponse struct for ListSourcesResponse +type ListSourcesResponse struct { + // List of all sources in a collection + Data []Source `json:"data,omitempty"` +} + +// NewListSourcesResponse instantiates a new ListSourcesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListSourcesResponse() *ListSourcesResponse { + this := ListSourcesResponse{} + return &this +} + +// NewListSourcesResponseWithDefaults instantiates a new ListSourcesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListSourcesResponseWithDefaults() *ListSourcesResponse { + this := ListSourcesResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ListSourcesResponse) GetData() []Source { + if o == nil || o.Data == nil { + var ret []Source + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListSourcesResponse) GetDataOk() ([]Source, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ListSourcesResponse) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []Source and assigns it to the Data field. +func (o *ListSourcesResponse) SetData(v []Source) { + o.Data = v +} + +func (o ListSourcesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return json.Marshal(toSerialize) +} + +type NullableListSourcesResponse struct { + value *ListSourcesResponse + isSet bool +} + +func (v NullableListSourcesResponse) Get() *ListSourcesResponse { + return v.value +} + +func (v *NullableListSourcesResponse) Set(val *ListSourcesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListSourcesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListSourcesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListSourcesResponse(val *ListSourcesResponse) *NullableListSourcesResponse { + return &NullableListSourcesResponse{value: val, isSet: true} +} + +func (v NullableListSourcesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListSourcesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_organization.go b/openapi/model_organization.go index 9bc456e2..044cff2c 100644 --- a/openapi/model_organization.go +++ b/openapi/model_organization.go @@ -28,6 +28,10 @@ type Organization struct { Id *string `json:"id,omitempty"` // Rockset's global AWS user. RocksetUser *string `json:"rockset_user,omitempty"` + // Connection name of SSO connection. + SsoConnection *string `json:"sso_connection,omitempty"` + // Whether or not SSO is the only permitted form of auth. + SsoOnly *bool `json:"sso_only,omitempty"` } // NewOrganization instantiates a new Organization object @@ -239,6 +243,70 @@ func (o *Organization) SetRocksetUser(v string) { o.RocksetUser = &v } +// GetSsoConnection returns the SsoConnection field value if set, zero value otherwise. +func (o *Organization) GetSsoConnection() string { + if o == nil || o.SsoConnection == nil { + var ret string + return ret + } + return *o.SsoConnection +} + +// GetSsoConnectionOk returns a tuple with the SsoConnection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetSsoConnectionOk() (*string, bool) { + if o == nil || o.SsoConnection == nil { + return nil, false + } + return o.SsoConnection, true +} + +// HasSsoConnection returns a boolean if a field has been set. +func (o *Organization) HasSsoConnection() bool { + if o != nil && o.SsoConnection != nil { + return true + } + + return false +} + +// SetSsoConnection gets a reference to the given string and assigns it to the SsoConnection field. +func (o *Organization) SetSsoConnection(v string) { + o.SsoConnection = &v +} + +// GetSsoOnly returns the SsoOnly field value if set, zero value otherwise. +func (o *Organization) GetSsoOnly() bool { + if o == nil || o.SsoOnly == nil { + var ret bool + return ret + } + return *o.SsoOnly +} + +// GetSsoOnlyOk returns a tuple with the SsoOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetSsoOnlyOk() (*bool, bool) { + if o == nil || o.SsoOnly == nil { + return nil, false + } + return o.SsoOnly, true +} + +// HasSsoOnly returns a boolean if a field has been set. +func (o *Organization) HasSsoOnly() bool { + if o != nil && o.SsoOnly != nil { + return true + } + + return false +} + +// SetSsoOnly gets a reference to the given bool and assigns it to the SsoOnly field. +func (o *Organization) SetSsoOnly(v bool) { + o.SsoOnly = &v +} + func (o Organization) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Clusters != nil { @@ -259,6 +327,12 @@ func (o Organization) MarshalJSON() ([]byte, error) { if o.RocksetUser != nil { toSerialize["rockset_user"] = o.RocksetUser } + if o.SsoConnection != nil { + toSerialize["sso_connection"] = o.SsoConnection + } + if o.SsoOnly != nil { + toSerialize["sso_only"] = o.SsoOnly + } return json.Marshal(toSerialize) } diff --git a/openapi/model_query_info.go b/openapi/model_query_info.go index db4f2987..3a2793be 100644 --- a/openapi/model_query_info.go +++ b/openapi/model_query_info.go @@ -27,6 +27,8 @@ type QueryInfo struct { QueryErrors []QueryError `json:"query_errors,omitempty"` // Unique Query ID. QueryId *string `json:"query_id,omitempty"` + // The SQL query for this request + Sql *string `json:"sql,omitempty"` Stats *Stats `json:"stats,omitempty"` // Status of the query. Status *string `json:"status,omitempty"` @@ -243,6 +245,38 @@ func (o *QueryInfo) SetQueryId(v string) { o.QueryId = &v } +// GetSql returns the Sql field value if set, zero value otherwise. +func (o *QueryInfo) GetSql() string { + if o == nil || o.Sql == nil { + var ret string + return ret + } + return *o.Sql +} + +// GetSqlOk returns a tuple with the Sql field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryInfo) GetSqlOk() (*string, bool) { + if o == nil || o.Sql == nil { + return nil, false + } + return o.Sql, true +} + +// HasSql returns a boolean if a field has been set. +func (o *QueryInfo) HasSql() bool { + if o != nil && o.Sql != nil { + return true + } + + return false +} + +// SetSql gets a reference to the given string and assigns it to the Sql field. +func (o *QueryInfo) SetSql(v string) { + o.Sql = &v +} + // GetStats returns the Stats field value if set, zero value otherwise. func (o *QueryInfo) GetStats() Stats { if o == nil || o.Stats == nil { @@ -359,6 +393,9 @@ func (o QueryInfo) MarshalJSON() ([]byte, error) { if o.QueryId != nil { toSerialize["query_id"] = o.QueryId } + if o.Sql != nil { + toSerialize["sql"] = o.Sql + } if o.Stats != nil { toSerialize["stats"] = o.Stats } diff --git a/openapi/model_query_lambda_version.go b/openapi/model_query_lambda_version.go index 90e38926..33713180 100644 --- a/openapi/model_query_lambda_version.go +++ b/openapi/model_query_lambda_version.go @@ -22,6 +22,8 @@ type QueryLambdaVersion struct { CreatedAt *string `json:"created_at,omitempty"` // User that created this Query Lambda. CreatedBy *string `json:"created_by,omitempty"` + // Name of the API key that was used to create this object if one was used. + CreatedByApikeyName *string `json:"created_by_apikey_name,omitempty"` // Optional description. Description *string `json:"description,omitempty"` // Query Lambda name. @@ -151,6 +153,38 @@ func (o *QueryLambdaVersion) SetCreatedBy(v string) { o.CreatedBy = &v } +// GetCreatedByApikeyName returns the CreatedByApikeyName field value if set, zero value otherwise. +func (o *QueryLambdaVersion) GetCreatedByApikeyName() string { + if o == nil || o.CreatedByApikeyName == nil { + var ret string + return ret + } + return *o.CreatedByApikeyName +} + +// GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryLambdaVersion) GetCreatedByApikeyNameOk() (*string, bool) { + if o == nil || o.CreatedByApikeyName == nil { + return nil, false + } + return o.CreatedByApikeyName, true +} + +// HasCreatedByApikeyName returns a boolean if a field has been set. +func (o *QueryLambdaVersion) HasCreatedByApikeyName() bool { + if o != nil && o.CreatedByApikeyName != nil { + return true + } + + return false +} + +// SetCreatedByApikeyName gets a reference to the given string and assigns it to the CreatedByApikeyName field. +func (o *QueryLambdaVersion) SetCreatedByApikeyName(v string) { + o.CreatedByApikeyName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *QueryLambdaVersion) GetDescription() string { if o == nil || o.Description == nil { @@ -418,6 +452,9 @@ func (o QueryLambdaVersion) MarshalJSON() ([]byte, error) { if o.CreatedBy != nil { toSerialize["created_by"] = o.CreatedBy } + if o.CreatedByApikeyName != nil { + toSerialize["created_by_apikey_name"] = o.CreatedByApikeyName + } if o.Description != nil { toSerialize["description"] = o.Description } diff --git a/openapi/model_query_parameter.go b/openapi/model_query_parameter.go index d1170d0a..48892793 100644 --- a/openapi/model_query_parameter.go +++ b/openapi/model_query_parameter.go @@ -18,7 +18,7 @@ import ( type QueryParameter struct { // Name of the field. Name string `json:"name"` - // Data type of the field. + // Deprecated. Data type of the field. Type string `json:"type"` // Literal value of the field. Value string `json:"value"` diff --git a/openapi/model_query_request.go b/openapi/model_query_request.go index 67737ad1..78bc064e 100644 --- a/openapi/model_query_request.go +++ b/openapi/model_query_request.go @@ -16,8 +16,16 @@ import ( // QueryRequest struct for QueryRequest type QueryRequest struct { + // If true, the query will run asynchronously for up to 30 minutes. The query request will immediately return with a query id that can be used to retrieve the query status and results. If false or not specified, the query will return with results once completed or timeout after 2 minutes. (To return results directly for shorter queries while still allowing a timeout of up to 30 minutes, set `async_options.client_timeout_ms`.) + Async *bool `json:"async,omitempty"` AsyncOptions *AsyncQueryOptions `json:"async_options,omitempty"` + // If query execution takes longer than this value, debug information will be logged. If the query text includes the DEBUG hint and this parameter is also provided, only this value will be used and the DEBUG hint will be ignored. + DebugThresholdMs *int64 `json:"debug_threshold_ms,omitempty"` + // This limits the maximum number of results in the initial response. A pagination cursor is returned if the number of results exceeds `max_initial_results`. If `max_initial_results` is not set, all results will be returned in the initial response up to 4 million. If `max_initial_results` is set, the value must be between 0 and 100,000. If the query is async and `client_timeout_ms` is exceeded, `max_initial_results` does not apply since none of the results will be returned with the initial response. + MaxInitialResults *int64 `json:"max_initial_results,omitempty"` Sql QueryRequestSql `json:"sql"` + // If a query exceeds the specified timeout, the query will automatically stop and return an error. The query timeout defaults to a maximum of 2 minutes. If `async` is true, the query timeout defaults to a maximum of 30 minutes. + TimeoutMs *int64 `json:"timeout_ms,omitempty"` } // NewQueryRequest instantiates a new QueryRequest object @@ -38,6 +46,38 @@ func NewQueryRequestWithDefaults() *QueryRequest { return &this } +// GetAsync returns the Async field value if set, zero value otherwise. +func (o *QueryRequest) GetAsync() bool { + if o == nil || o.Async == nil { + var ret bool + return ret + } + return *o.Async +} + +// GetAsyncOk returns a tuple with the Async field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequest) GetAsyncOk() (*bool, bool) { + if o == nil || o.Async == nil { + return nil, false + } + return o.Async, true +} + +// HasAsync returns a boolean if a field has been set. +func (o *QueryRequest) HasAsync() bool { + if o != nil && o.Async != nil { + return true + } + + return false +} + +// SetAsync gets a reference to the given bool and assigns it to the Async field. +func (o *QueryRequest) SetAsync(v bool) { + o.Async = &v +} + // GetAsyncOptions returns the AsyncOptions field value if set, zero value otherwise. func (o *QueryRequest) GetAsyncOptions() AsyncQueryOptions { if o == nil || o.AsyncOptions == nil { @@ -70,6 +110,70 @@ func (o *QueryRequest) SetAsyncOptions(v AsyncQueryOptions) { o.AsyncOptions = &v } +// GetDebugThresholdMs returns the DebugThresholdMs field value if set, zero value otherwise. +func (o *QueryRequest) GetDebugThresholdMs() int64 { + if o == nil || o.DebugThresholdMs == nil { + var ret int64 + return ret + } + return *o.DebugThresholdMs +} + +// GetDebugThresholdMsOk returns a tuple with the DebugThresholdMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequest) GetDebugThresholdMsOk() (*int64, bool) { + if o == nil || o.DebugThresholdMs == nil { + return nil, false + } + return o.DebugThresholdMs, true +} + +// HasDebugThresholdMs returns a boolean if a field has been set. +func (o *QueryRequest) HasDebugThresholdMs() bool { + if o != nil && o.DebugThresholdMs != nil { + return true + } + + return false +} + +// SetDebugThresholdMs gets a reference to the given int64 and assigns it to the DebugThresholdMs field. +func (o *QueryRequest) SetDebugThresholdMs(v int64) { + o.DebugThresholdMs = &v +} + +// GetMaxInitialResults returns the MaxInitialResults field value if set, zero value otherwise. +func (o *QueryRequest) GetMaxInitialResults() int64 { + if o == nil || o.MaxInitialResults == nil { + var ret int64 + return ret + } + return *o.MaxInitialResults +} + +// GetMaxInitialResultsOk returns a tuple with the MaxInitialResults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequest) GetMaxInitialResultsOk() (*int64, bool) { + if o == nil || o.MaxInitialResults == nil { + return nil, false + } + return o.MaxInitialResults, true +} + +// HasMaxInitialResults returns a boolean if a field has been set. +func (o *QueryRequest) HasMaxInitialResults() bool { + if o != nil && o.MaxInitialResults != nil { + return true + } + + return false +} + +// SetMaxInitialResults gets a reference to the given int64 and assigns it to the MaxInitialResults field. +func (o *QueryRequest) SetMaxInitialResults(v int64) { + o.MaxInitialResults = &v +} + // GetSql returns the Sql field value func (o *QueryRequest) GetSql() QueryRequestSql { if o == nil { @@ -94,14 +198,58 @@ func (o *QueryRequest) SetSql(v QueryRequestSql) { o.Sql = v } +// GetTimeoutMs returns the TimeoutMs field value if set, zero value otherwise. +func (o *QueryRequest) GetTimeoutMs() int64 { + if o == nil || o.TimeoutMs == nil { + var ret int64 + return ret + } + return *o.TimeoutMs +} + +// GetTimeoutMsOk returns a tuple with the TimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryRequest) GetTimeoutMsOk() (*int64, bool) { + if o == nil || o.TimeoutMs == nil { + return nil, false + } + return o.TimeoutMs, true +} + +// HasTimeoutMs returns a boolean if a field has been set. +func (o *QueryRequest) HasTimeoutMs() bool { + if o != nil && o.TimeoutMs != nil { + return true + } + + return false +} + +// SetTimeoutMs gets a reference to the given int64 and assigns it to the TimeoutMs field. +func (o *QueryRequest) SetTimeoutMs(v int64) { + o.TimeoutMs = &v +} + func (o QueryRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Async != nil { + toSerialize["async"] = o.Async + } if o.AsyncOptions != nil { toSerialize["async_options"] = o.AsyncOptions } + if o.DebugThresholdMs != nil { + toSerialize["debug_threshold_ms"] = o.DebugThresholdMs + } + if o.MaxInitialResults != nil { + toSerialize["max_initial_results"] = o.MaxInitialResults + } if true { toSerialize["sql"] = o.Sql } + if o.TimeoutMs != nil { + toSerialize["timeout_ms"] = o.TimeoutMs + } return json.Marshal(toSerialize) } diff --git a/openapi/model_query_request_sql.go b/openapi/model_query_request_sql.go index 946d2e8f..3cdfb2df 100644 --- a/openapi/model_query_request_sql.go +++ b/openapi/model_query_request_sql.go @@ -20,7 +20,7 @@ type QueryRequestSql struct { DefaultRowLimit *int32 `json:"default_row_limit,omitempty"` // Flag to enable warnings. Warnings can help debug query issues but negatively affect performance. GenerateWarnings *bool `json:"generate_warnings,omitempty"` - // Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. + // [DEPRECATED] Use `max_initial_results` instead. Number of documents to return in addition to paginating for this query call. Only relevant if `paginate` flag is also set. InitialPaginateResponseDocCount *int32 `json:"initial_paginate_response_doc_count,omitempty"` // List of named parameters. Parameters []QueryParameter `json:"parameters,omitempty"` diff --git a/openapi/model_query_response.go b/openapi/model_query_response.go index 794e8af8..924190bd 100644 --- a/openapi/model_query_response.go +++ b/openapi/model_query_response.go @@ -34,6 +34,8 @@ type QueryResponse struct { // Number of results generated by the query. ResultsTotalDocCount *int64 `json:"results_total_doc_count,omitempty"` Stats *QueryResponseStats `json:"stats,omitempty"` + // Status of query execution. Possible values: `QUEUED`, `RUNNING`, `COMPLETED`, `ERROR`. + Status *string `json:"status,omitempty"` // Warnings generated by the query. Only populated if `generate_warnings` is specified in the query request. Warnings []string `json:"warnings,omitempty"` } @@ -375,6 +377,38 @@ func (o *QueryResponse) SetStats(v QueryResponseStats) { o.Stats = &v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *QueryResponse) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryResponse) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *QueryResponse) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *QueryResponse) SetStatus(v string) { + o.Status = &v +} + // GetWarnings returns the Warnings field value if set, zero value otherwise. func (o *QueryResponse) GetWarnings() []string { if o == nil || o.Warnings == nil { @@ -439,6 +473,9 @@ func (o QueryResponse) MarshalJSON() ([]byte, error) { if o.Stats != nil { toSerialize["stats"] = o.Stats } + if o.Status != nil { + toSerialize["status"] = o.Status + } if o.Warnings != nil { toSerialize["warnings"] = o.Warnings } diff --git a/openapi/model_source.go b/openapi/model_source.go index 69a74ec3..f4540723 100644 --- a/openapi/model_source.go +++ b/openapi/model_source.go @@ -33,6 +33,9 @@ type Source struct { S3 *SourceS3 `json:"s3,omitempty"` Snowflake *SourceSnowflake `json:"snowflake,omitempty"` Status *Status `json:"status,omitempty"` + // ISO-8601 date when source was suspended, if suspended + SuspendedAt *string `json:"suspended_at,omitempty"` + System *SourceSystem `json:"system,omitempty"` } // NewSource instantiates a new Source object @@ -532,6 +535,70 @@ func (o *Source) SetStatus(v Status) { o.Status = &v } +// GetSuspendedAt returns the SuspendedAt field value if set, zero value otherwise. +func (o *Source) GetSuspendedAt() string { + if o == nil || o.SuspendedAt == nil { + var ret string + return ret + } + return *o.SuspendedAt +} + +// GetSuspendedAtOk returns a tuple with the SuspendedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Source) GetSuspendedAtOk() (*string, bool) { + if o == nil || o.SuspendedAt == nil { + return nil, false + } + return o.SuspendedAt, true +} + +// HasSuspendedAt returns a boolean if a field has been set. +func (o *Source) HasSuspendedAt() bool { + if o != nil && o.SuspendedAt != nil { + return true + } + + return false +} + +// SetSuspendedAt gets a reference to the given string and assigns it to the SuspendedAt field. +func (o *Source) SetSuspendedAt(v string) { + o.SuspendedAt = &v +} + +// GetSystem returns the System field value if set, zero value otherwise. +func (o *Source) GetSystem() SourceSystem { + if o == nil || o.System == nil { + var ret SourceSystem + return ret + } + return *o.System +} + +// GetSystemOk returns a tuple with the System field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Source) GetSystemOk() (*SourceSystem, bool) { + if o == nil || o.System == nil { + return nil, false + } + return o.System, true +} + +// HasSystem returns a boolean if a field has been set. +func (o *Source) HasSystem() bool { + if o != nil && o.System != nil { + return true + } + + return false +} + +// SetSystem gets a reference to the given SourceSystem and assigns it to the System field. +func (o *Source) SetSystem(v SourceSystem) { + o.System = &v +} + func (o Source) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.AzureBlobStorage != nil { @@ -579,6 +646,12 @@ func (o Source) MarshalJSON() ([]byte, error) { if o.Status != nil { toSerialize["status"] = o.Status } + if o.SuspendedAt != nil { + toSerialize["suspended_at"] = o.SuspendedAt + } + if o.System != nil { + toSerialize["system"] = o.System + } return json.Marshal(toSerialize) } diff --git a/openapi/model_source_snapshot.go b/openapi/model_source_snapshot.go new file mode 100644 index 00000000..424820c6 --- /dev/null +++ b/openapi/model_source_snapshot.go @@ -0,0 +1,153 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// SourceSnapshot struct for SourceSnapshot +type SourceSnapshot struct { + // Path of source collection to restore the snapshot from. + SourceCollectionPath *string `json:"source_collection_path,omitempty"` + // Snapshot id of the snapshot that the new collection will be created from. + SourceSnapshotId *string `json:"source_snapshot_id,omitempty"` +} + +// NewSourceSnapshot instantiates a new SourceSnapshot object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceSnapshot() *SourceSnapshot { + this := SourceSnapshot{} + return &this +} + +// NewSourceSnapshotWithDefaults instantiates a new SourceSnapshot object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceSnapshotWithDefaults() *SourceSnapshot { + this := SourceSnapshot{} + return &this +} + +// GetSourceCollectionPath returns the SourceCollectionPath field value if set, zero value otherwise. +func (o *SourceSnapshot) GetSourceCollectionPath() string { + if o == nil || o.SourceCollectionPath == nil { + var ret string + return ret + } + return *o.SourceCollectionPath +} + +// GetSourceCollectionPathOk returns a tuple with the SourceCollectionPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceSnapshot) GetSourceCollectionPathOk() (*string, bool) { + if o == nil || o.SourceCollectionPath == nil { + return nil, false + } + return o.SourceCollectionPath, true +} + +// HasSourceCollectionPath returns a boolean if a field has been set. +func (o *SourceSnapshot) HasSourceCollectionPath() bool { + if o != nil && o.SourceCollectionPath != nil { + return true + } + + return false +} + +// SetSourceCollectionPath gets a reference to the given string and assigns it to the SourceCollectionPath field. +func (o *SourceSnapshot) SetSourceCollectionPath(v string) { + o.SourceCollectionPath = &v +} + +// GetSourceSnapshotId returns the SourceSnapshotId field value if set, zero value otherwise. +func (o *SourceSnapshot) GetSourceSnapshotId() string { + if o == nil || o.SourceSnapshotId == nil { + var ret string + return ret + } + return *o.SourceSnapshotId +} + +// GetSourceSnapshotIdOk returns a tuple with the SourceSnapshotId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceSnapshot) GetSourceSnapshotIdOk() (*string, bool) { + if o == nil || o.SourceSnapshotId == nil { + return nil, false + } + return o.SourceSnapshotId, true +} + +// HasSourceSnapshotId returns a boolean if a field has been set. +func (o *SourceSnapshot) HasSourceSnapshotId() bool { + if o != nil && o.SourceSnapshotId != nil { + return true + } + + return false +} + +// SetSourceSnapshotId gets a reference to the given string and assigns it to the SourceSnapshotId field. +func (o *SourceSnapshot) SetSourceSnapshotId(v string) { + o.SourceSnapshotId = &v +} + +func (o SourceSnapshot) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.SourceCollectionPath != nil { + toSerialize["source_collection_path"] = o.SourceCollectionPath + } + if o.SourceSnapshotId != nil { + toSerialize["source_snapshot_id"] = o.SourceSnapshotId + } + return json.Marshal(toSerialize) +} + +type NullableSourceSnapshot struct { + value *SourceSnapshot + isSet bool +} + +func (v NullableSourceSnapshot) Get() *SourceSnapshot { + return v.value +} + +func (v *NullableSourceSnapshot) Set(val *SourceSnapshot) { + v.value = val + v.isSet = true +} + +func (v NullableSourceSnapshot) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceSnapshot) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceSnapshot(val *SourceSnapshot) *NullableSourceSnapshot { + return &NullableSourceSnapshot{value: val, isSet: true} +} + +func (v NullableSourceSnapshot) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceSnapshot) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_system.go b/openapi/model_source_system.go new file mode 100644 index 00000000..29dc6c98 --- /dev/null +++ b/openapi/model_source_system.go @@ -0,0 +1,116 @@ +/* +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! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// SourceSystem struct for SourceSystem +type SourceSystem struct { + // The type of this system source. + Type *string `json:"type,omitempty"` +} + +// NewSourceSystem instantiates a new SourceSystem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSourceSystem() *SourceSystem { + this := SourceSystem{} + return &this +} + +// NewSourceSystemWithDefaults instantiates a new SourceSystem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSourceSystemWithDefaults() *SourceSystem { + this := SourceSystem{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SourceSystem) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceSystem) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *SourceSystem) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *SourceSystem) SetType(v string) { + o.Type = &v +} + +func (o SourceSystem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableSourceSystem struct { + value *SourceSystem + isSet bool +} + +func (v NullableSourceSystem) Get() *SourceSystem { + return v.value +} + +func (v *NullableSourceSystem) Set(val *SourceSystem) { + v.value = val + v.isSet = true +} + +func (v NullableSourceSystem) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceSystem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceSystem(val *SourceSystem) *NullableSourceSystem { + return &NullableSourceSystem{value: val, isSet: true} +} + +func (v NullableSourceSystem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceSystem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_update_virtual_instance_request.go b/openapi/model_update_virtual_instance_request.go index ad5126de..a1246a07 100644 --- a/openapi/model_update_virtual_instance_request.go +++ b/openapi/model_update_virtual_instance_request.go @@ -16,14 +16,16 @@ import ( // UpdateVirtualInstanceRequest struct for UpdateVirtualInstanceRequest type UpdateVirtualInstanceRequest struct { + AutoScalingPolicy *AutoScalingPolicy `json:"auto_scaling_policy,omitempty"` // Whether auto-suspend should be enabled for this Virtual Instance. AutoSuspendEnabled *bool `json:"auto_suspend_enabled,omitempty"` // Number of seconds without queries after which the VI is suspended AutoSuspendSeconds *int32 `json:"auto_suspend_seconds,omitempty"` // New virtual instance description. Description *string `json:"description,omitempty"` - MonitoringEnabled *bool `json:"monitoring_enabled,omitempty"` - // Number of seconds between data refreshes for mounts on this Virtual Instance + // When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. + EnableRemountOnResume *bool `json:"enable_remount_on_resume,omitempty"` + // Number of seconds between data refreshes for mounts on this Virtual Instance. A value of 0 means continuous refresh and a value of null means never refresh. MountRefreshIntervalSeconds *int32 `json:"mount_refresh_interval_seconds,omitempty"` // New virtual instance name. Name *string `json:"name,omitempty"` @@ -48,6 +50,38 @@ func NewUpdateVirtualInstanceRequestWithDefaults() *UpdateVirtualInstanceRequest return &this } +// GetAutoScalingPolicy returns the AutoScalingPolicy field value if set, zero value otherwise. +func (o *UpdateVirtualInstanceRequest) GetAutoScalingPolicy() AutoScalingPolicy { + if o == nil || o.AutoScalingPolicy == nil { + var ret AutoScalingPolicy + return ret + } + return *o.AutoScalingPolicy +} + +// GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVirtualInstanceRequest) GetAutoScalingPolicyOk() (*AutoScalingPolicy, bool) { + if o == nil || o.AutoScalingPolicy == nil { + return nil, false + } + return o.AutoScalingPolicy, true +} + +// HasAutoScalingPolicy returns a boolean if a field has been set. +func (o *UpdateVirtualInstanceRequest) HasAutoScalingPolicy() bool { + if o != nil && o.AutoScalingPolicy != nil { + return true + } + + return false +} + +// SetAutoScalingPolicy gets a reference to the given AutoScalingPolicy and assigns it to the AutoScalingPolicy field. +func (o *UpdateVirtualInstanceRequest) SetAutoScalingPolicy(v AutoScalingPolicy) { + o.AutoScalingPolicy = &v +} + // GetAutoSuspendEnabled returns the AutoSuspendEnabled field value if set, zero value otherwise. func (o *UpdateVirtualInstanceRequest) GetAutoSuspendEnabled() bool { if o == nil || o.AutoSuspendEnabled == nil { @@ -144,36 +178,36 @@ func (o *UpdateVirtualInstanceRequest) SetDescription(v string) { o.Description = &v } -// GetMonitoringEnabled returns the MonitoringEnabled field value if set, zero value otherwise. -func (o *UpdateVirtualInstanceRequest) GetMonitoringEnabled() bool { - if o == nil || o.MonitoringEnabled == nil { +// GetEnableRemountOnResume returns the EnableRemountOnResume field value if set, zero value otherwise. +func (o *UpdateVirtualInstanceRequest) GetEnableRemountOnResume() bool { + if o == nil || o.EnableRemountOnResume == nil { var ret bool return ret } - return *o.MonitoringEnabled + return *o.EnableRemountOnResume } -// GetMonitoringEnabledOk returns a tuple with the MonitoringEnabled field value if set, nil otherwise +// GetEnableRemountOnResumeOk returns a tuple with the EnableRemountOnResume field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateVirtualInstanceRequest) GetMonitoringEnabledOk() (*bool, bool) { - if o == nil || o.MonitoringEnabled == nil { +func (o *UpdateVirtualInstanceRequest) GetEnableRemountOnResumeOk() (*bool, bool) { + if o == nil || o.EnableRemountOnResume == nil { return nil, false } - return o.MonitoringEnabled, true + return o.EnableRemountOnResume, true } -// HasMonitoringEnabled returns a boolean if a field has been set. -func (o *UpdateVirtualInstanceRequest) HasMonitoringEnabled() bool { - if o != nil && o.MonitoringEnabled != nil { +// HasEnableRemountOnResume returns a boolean if a field has been set. +func (o *UpdateVirtualInstanceRequest) HasEnableRemountOnResume() bool { + if o != nil && o.EnableRemountOnResume != nil { return true } return false } -// SetMonitoringEnabled gets a reference to the given bool and assigns it to the MonitoringEnabled field. -func (o *UpdateVirtualInstanceRequest) SetMonitoringEnabled(v bool) { - o.MonitoringEnabled = &v +// SetEnableRemountOnResume gets a reference to the given bool and assigns it to the EnableRemountOnResume field. +func (o *UpdateVirtualInstanceRequest) SetEnableRemountOnResume(v bool) { + o.EnableRemountOnResume = &v } // GetMountRefreshIntervalSeconds returns the MountRefreshIntervalSeconds field value if set, zero value otherwise. @@ -274,6 +308,9 @@ func (o *UpdateVirtualInstanceRequest) SetNewSize(v string) { func (o UpdateVirtualInstanceRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.AutoScalingPolicy != nil { + toSerialize["auto_scaling_policy"] = o.AutoScalingPolicy + } if o.AutoSuspendEnabled != nil { toSerialize["auto_suspend_enabled"] = o.AutoSuspendEnabled } @@ -283,8 +320,8 @@ func (o UpdateVirtualInstanceRequest) MarshalJSON() ([]byte, error) { if o.Description != nil { toSerialize["description"] = o.Description } - if o.MonitoringEnabled != nil { - toSerialize["monitoring_enabled"] = o.MonitoringEnabled + if o.EnableRemountOnResume != nil { + toSerialize["enable_remount_on_resume"] = o.EnableRemountOnResume } if o.MountRefreshIntervalSeconds != nil { toSerialize["mount_refresh_interval_seconds"] = o.MountRefreshIntervalSeconds diff --git a/openapi/model_view.go b/openapi/model_view.go index 4a258f42..4ba0dc9c 100644 --- a/openapi/model_view.go +++ b/openapi/model_view.go @@ -18,6 +18,8 @@ import ( type View struct { // ISO-8601 date. CreatedAt *string `json:"created_at,omitempty"` + // Name of the API key that was used to create this object if one was used. + CreatedByApikeyName *string `json:"created_by_apikey_name,omitempty"` // Email of the creator. CreatorEmail *string `json:"creator_email,omitempty"` // View description. @@ -88,6 +90,38 @@ func (o *View) SetCreatedAt(v string) { o.CreatedAt = &v } +// GetCreatedByApikeyName returns the CreatedByApikeyName field value if set, zero value otherwise. +func (o *View) GetCreatedByApikeyName() string { + if o == nil || o.CreatedByApikeyName == nil { + var ret string + return ret + } + return *o.CreatedByApikeyName +} + +// GetCreatedByApikeyNameOk returns a tuple with the CreatedByApikeyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *View) GetCreatedByApikeyNameOk() (*string, bool) { + if o == nil || o.CreatedByApikeyName == nil { + return nil, false + } + return o.CreatedByApikeyName, true +} + +// HasCreatedByApikeyName returns a boolean if a field has been set. +func (o *View) HasCreatedByApikeyName() bool { + if o != nil && o.CreatedByApikeyName != nil { + return true + } + + return false +} + +// SetCreatedByApikeyName gets a reference to the given string and assigns it to the CreatedByApikeyName field. +func (o *View) SetCreatedByApikeyName(v string) { + o.CreatedByApikeyName = &v +} + // GetCreatorEmail returns the CreatorEmail field value if set, zero value otherwise. func (o *View) GetCreatorEmail() string { if o == nil || o.CreatorEmail == nil { @@ -413,6 +447,9 @@ func (o View) MarshalJSON() ([]byte, error) { if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + if o.CreatedByApikeyName != nil { + toSerialize["created_by_apikey_name"] = o.CreatedByApikeyName + } if o.CreatorEmail != nil { toSerialize["creator_email"] = o.CreatorEmail } diff --git a/openapi/model_virtual_instance.go b/openapi/model_virtual_instance.go index c308ccf7..4f32b0d0 100644 --- a/openapi/model_virtual_instance.go +++ b/openapi/model_virtual_instance.go @@ -16,6 +16,7 @@ import ( // VirtualInstance struct for VirtualInstance type VirtualInstance struct { + AutoScalingPolicy *AutoScalingPolicy `json:"auto_scaling_policy,omitempty"` // Number of seconds without queries after which the VI is suspended AutoSuspendSeconds *int32 `json:"auto_suspend_seconds,omitempty"` // ISO-8601 date of when virtual instance was created. @@ -30,6 +31,8 @@ type VirtualInstance struct { Description *string `json:"description,omitempty"` // Virtual instance desired size. DesiredSize *string `json:"desired_size,omitempty"` + // When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. + EnableRemountOnResume *bool `json:"enable_remount_on_resume,omitempty"` // Unique identifier for virtual instance. Id *string `json:"id,omitempty"` MonitoringEnabled *bool `json:"monitoring_enabled,omitempty"` @@ -65,6 +68,38 @@ func NewVirtualInstanceWithDefaults() *VirtualInstance { return &this } +// GetAutoScalingPolicy returns the AutoScalingPolicy field value if set, zero value otherwise. +func (o *VirtualInstance) GetAutoScalingPolicy() AutoScalingPolicy { + if o == nil || o.AutoScalingPolicy == nil { + var ret AutoScalingPolicy + return ret + } + return *o.AutoScalingPolicy +} + +// GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualInstance) GetAutoScalingPolicyOk() (*AutoScalingPolicy, bool) { + if o == nil || o.AutoScalingPolicy == nil { + return nil, false + } + return o.AutoScalingPolicy, true +} + +// HasAutoScalingPolicy returns a boolean if a field has been set. +func (o *VirtualInstance) HasAutoScalingPolicy() bool { + if o != nil && o.AutoScalingPolicy != nil { + return true + } + + return false +} + +// SetAutoScalingPolicy gets a reference to the given AutoScalingPolicy and assigns it to the AutoScalingPolicy field. +func (o *VirtualInstance) SetAutoScalingPolicy(v AutoScalingPolicy) { + o.AutoScalingPolicy = &v +} + // GetAutoSuspendSeconds returns the AutoSuspendSeconds field value if set, zero value otherwise. func (o *VirtualInstance) GetAutoSuspendSeconds() int32 { if o == nil || o.AutoSuspendSeconds == nil { @@ -321,6 +356,38 @@ func (o *VirtualInstance) SetDesiredSize(v string) { o.DesiredSize = &v } +// GetEnableRemountOnResume returns the EnableRemountOnResume field value if set, zero value otherwise. +func (o *VirtualInstance) GetEnableRemountOnResume() bool { + if o == nil || o.EnableRemountOnResume == nil { + var ret bool + return ret + } + return *o.EnableRemountOnResume +} + +// GetEnableRemountOnResumeOk returns a tuple with the EnableRemountOnResume field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualInstance) GetEnableRemountOnResumeOk() (*bool, bool) { + if o == nil || o.EnableRemountOnResume == nil { + return nil, false + } + return o.EnableRemountOnResume, true +} + +// HasEnableRemountOnResume returns a boolean if a field has been set. +func (o *VirtualInstance) HasEnableRemountOnResume() bool { + if o != nil && o.EnableRemountOnResume != nil { + return true + } + + return false +} + +// SetEnableRemountOnResume gets a reference to the given bool and assigns it to the EnableRemountOnResume field. +func (o *VirtualInstance) SetEnableRemountOnResume(v bool) { + o.EnableRemountOnResume = &v +} + // GetId returns the Id field value if set, zero value otherwise. func (o *VirtualInstance) GetId() string { if o == nil || o.Id == nil { @@ -603,6 +670,9 @@ func (o *VirtualInstance) SetStats(v VirtualInstanceStats) { func (o VirtualInstance) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.AutoScalingPolicy != nil { + toSerialize["auto_scaling_policy"] = o.AutoScalingPolicy + } if o.AutoSuspendSeconds != nil { toSerialize["auto_suspend_seconds"] = o.AutoSuspendSeconds } @@ -627,6 +697,9 @@ func (o VirtualInstance) MarshalJSON() ([]byte, error) { if o.DesiredSize != nil { toSerialize["desired_size"] = o.DesiredSize } + if o.EnableRemountOnResume != nil { + toSerialize["enable_remount_on_resume"] = o.EnableRemountOnResume + } if o.Id != nil { toSerialize["id"] = o.Id } diff --git a/option/query.go b/option/query.go index 178bdc6d..4a75aee8 100644 --- a/option/query.go +++ b/option/query.go @@ -11,14 +11,6 @@ func WithWarnings() QueryOption { } } -// WithPaginationDocCount sets the number of documents to return in addition to paginating for -// this query call. Only relevant if WithPagination is also set. -func WithPaginationDocCount(limit int32) QueryOption { - return func(o *openapi.QueryRequest) { - o.Sql.InitialPaginateResponseDocCount = &limit - } -} - func WithRowLimit(limit int32) QueryOption { return func(o *openapi.QueryRequest) { o.Sql.DefaultRowLimit = &limit @@ -37,37 +29,38 @@ func WithParameter(name, valueType, value string) QueryOption { } } -// WithAsyncClientTimeout is maximum amount of time that the client is willing to wait for the query to complete. -// If the query is not complete by this timeout, a response will be returned with a query_id that can be used to -// check the status of the query and retrieve results once the query has completed. -func WithAsyncClientTimeout(timeout int64) QueryOption { +// WithAsync means that the query will run asynchronously so that queries can run with an extended timeout of 30 minutes. When set, the query request will return immediately with a query id that can be used to retrieve the status and results. +func WithAsync() QueryOption { return func(o *openapi.QueryRequest) { - if o.AsyncOptions == nil { - o.AsyncOptions = &openapi.AsyncQueryOptions{} - } - o.AsyncOptions.ClientTimeoutMs = &timeout + o.Async = openapi.PtrBool(true) } } -// WithAsyncTimeout maximum amount of time that Rockset will attempt to complete query execution before -// aborting the query and returning an error. -func WithAsyncTimeout(timeout int64) QueryOption { +// WithTimeout is the maximum amount of time that Rockset will attempt to complete query execution before +// aborting the query and returning an error. The query timeout defaults to a maximum of 2 minutes. +// If WithAsync is set, the query timeout defaults to a maximum of 30 minutes. +func WithTimeout(timeout int64) QueryOption { return func(o *openapi.QueryRequest) { - if o.AsyncOptions == nil { - o.AsyncOptions = &openapi.AsyncQueryOptions{} - } - o.AsyncOptions.TimeoutMs = &timeout + o.TimeoutMs = &timeout + } +} + +// WithMaxInitialResults is the maximum number of results you will receive as a client. If the query exceeds this limit, +// the remaining results can be requested using a returned pagination cursor. +func WithMaxInitialResults(maxInitialResults int64) QueryOption { + return func(o *openapi.QueryRequest) { + o.MaxInitialResults = &maxInitialResults } } -// WithAsyncMaxInitialResults maximum number of results you will receive as a client. If the query exceeds this limit, -// the remaining results can be requested using a returned pagination cursor. In addition, there is a maximum response -// size of 100MiB so fewer than max_results may be returned. -func WithAsyncMaxInitialResults(timeout int64) QueryOption { +// WithAsyncClientTimeout is maximum amount of time that the client is willing to wait for the query to complete. +// If the query is not complete by this timeout, a response will be returned with a query_id that can be used to +// check the status of the query and retrieve results once the query has completed. +func WithAsyncClientTimeout(timeout int64) QueryOption { return func(o *openapi.QueryRequest) { if o.AsyncOptions == nil { o.AsyncOptions = &openapi.AsyncQueryOptions{} } - o.AsyncOptions.MaxInitialResults = &timeout + o.AsyncOptions.ClientTimeoutMs = &timeout } } diff --git a/queries_test.go b/queries_test.go index f2c4fe3a..b5f470d7 100644 --- a/queries_test.go +++ b/queries_test.go @@ -1,11 +1,13 @@ package rockset_test import ( + "errors" "fmt" + "testing" + "github.com/rockset/rockset-go-client" "github.com/rockset/rockset-go-client/option" "github.com/stretchr/testify/suite" - "testing" ) // for anyone poking around in the code, rockset.sleep() only works for this test org as no sane person would want @@ -45,8 +47,24 @@ func (s *QueryIntegrationSuite) TestAsyncQuery() { ctx := testCtx() resp, err := s.rc.Query(ctx, slowQuery, + option.WithAsync(), + ) + s.Require().NoError(err) + + err = s.rc.WaitUntilQueryCompleted(ctx, *resp.QueryId) + s.Require().NoError(err) + + _, err = s.rc.GetQueryResults(ctx, *resp.QueryId) + s.Require().NoError(err) +} + +func (s *QueryIntegrationSuite) TestAsyncQueryWithClientTimeout() { + ctx := testCtx() + + resp, err := s.rc.Query(ctx, slowQuery, + option.WithAsync(), option.WithAsyncClientTimeout(100), - option.WithAsyncMaxInitialResults(10), + option.WithMaxInitialResults(10), ) s.Require().NoError(err) @@ -57,12 +75,26 @@ func (s *QueryIntegrationSuite) TestAsyncQuery() { s.Require().NoError(err) } +func (s *QueryIntegrationSuite) TestQueryWithTimeout() { + ctx := testCtx() + + _, err := s.rc.Query(ctx, slowQuery, + option.WithTimeout(1000), + ) + s.Require().Error(err) + + var re rockset.Error + s.Require().True(errors.As(err, &re)) + s.Assert().Equal("QUERY_TIMEOUT", *re.Type) +} + func (s *QueryIntegrationSuite) TestCancelQuery() { ctx := testCtx() resp, err := s.rc.Query(ctx, slowQuery, + option.WithAsync(), option.WithAsyncClientTimeout(100), - option.WithAsyncMaxInitialResults(10), + option.WithMaxInitialResults(10), ) s.Require().NoError(err) diff --git a/spec b/spec index 5173c335..84e76ed1 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 5173c335a1a355368baaee6f5e9af88ca8f47119 +Subproject commit 84e76ed1afd9c30c627b9d388807f1e4adf73730 diff --git a/vcr/QueryIntegrationSuite/TestAsyncQuery.cassette.gz b/vcr/QueryIntegrationSuite/TestAsyncQuery.cassette.gz index c5975467..aa13622e 100644 Binary files a/vcr/QueryIntegrationSuite/TestAsyncQuery.cassette.gz and b/vcr/QueryIntegrationSuite/TestAsyncQuery.cassette.gz differ diff --git a/vcr/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz b/vcr/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz new file mode 100644 index 00000000..9ae5e2e6 Binary files /dev/null and b/vcr/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz differ diff --git a/vcr/QueryIntegrationSuite/TestCancelQuery.cassette.gz b/vcr/QueryIntegrationSuite/TestCancelQuery.cassette.gz index 066300f8..aef6037f 100644 Binary files a/vcr/QueryIntegrationSuite/TestCancelQuery.cassette.gz and b/vcr/QueryIntegrationSuite/TestCancelQuery.cassette.gz differ diff --git a/vcr/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz b/vcr/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz new file mode 100644 index 00000000..5fa846c7 Binary files /dev/null and b/vcr/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz differ