From 16af846dbc6f86ebcef9930c9dbc2deb3aa72f03 Mon Sep 17 00:00:00 2001 From: Martin Englund Date: Thu, 5 Oct 2023 07:56:35 -0700 Subject: [PATCH] version 0.22.0 (#151) --- go.mod | 2 +- go.sum | 6 +- openapi/.openapi-generator/FILES | 22 + openapi/README.md | 16 +- openapi/api/openapi.yaml | 5215 ++++++++++++----- openapi/api_integrations.go | 283 + openapi/api_sources.go | 304 +- openapi/api_virtual_instances.go | 288 + openapi/configuration.go | 2 +- openapi/docs/Collection.md | 52 + openapi/docs/IntegrationsApi.md | 73 + openapi/docs/MongoDbIntegration.md | 26 + openapi/docs/Source.md | 26 + openapi/docs/SourceAzBlobStorageBase.md | 56 + openapi/docs/SourceAzBlobStorageSettings.md | 56 + openapi/docs/SourceAzureBlobStorage.md | 26 + openapi/docs/SourceBase.md | 134 + openapi/docs/SourceGcs.md | 26 + openapi/docs/SourceGcsBase.md | 56 + openapi/docs/SourceGcsSettings.md | 56 + openapi/docs/SourceS3.md | 26 + openapi/docs/SourceS3Base.md | 56 + openapi/docs/SourceS3Settings.md | 56 + openapi/docs/SourceSnapshot.md | 52 +- openapi/docs/SourcesApi.md | 87 +- openapi/docs/SuspendSourceRequest.md | 56 + openapi/docs/TLSConfig.md | 150 + openapi/docs/UpdateIntegrationRequest.md | 316 + openapi/docs/UpdateIntegrationResponse.md | 56 + openapi/docs/VirtualInstancesApi.md | 76 + openapi/model_collection.go | 74 + openapi/model_mongo_db_integration.go | 36 + openapi/model_source.go | 35 + openapi/model_source_az_blob_storage_base.go | 126 + .../model_source_az_blob_storage_settings.go | 127 + openapi/model_source_azure_blob_storage.go | 36 + openapi/model_source_base.go | 234 + openapi/model_source_gcs.go | 36 + openapi/model_source_gcs_base.go | 126 + openapi/model_source_gcs_settings.go | 127 + openapi/model_source_s3.go | 36 + openapi/model_source_s3_base.go | 126 + openapi/model_source_s3_settings.go | 127 + openapi/model_source_snapshot.go | 73 +- openapi/model_suspend_source_request.go | 127 + openapi/model_tls_config.go | 253 + openapi/model_update_integration_request.go | 487 ++ openapi/model_update_integration_response.go | 126 + spec | 2 +- version.go | 2 +- 50 files changed, 8306 insertions(+), 1666 deletions(-) create mode 100644 openapi/docs/SourceAzBlobStorageBase.md create mode 100644 openapi/docs/SourceAzBlobStorageSettings.md create mode 100644 openapi/docs/SourceBase.md create mode 100644 openapi/docs/SourceGcsBase.md create mode 100644 openapi/docs/SourceGcsSettings.md create mode 100644 openapi/docs/SourceS3Base.md create mode 100644 openapi/docs/SourceS3Settings.md create mode 100644 openapi/docs/SuspendSourceRequest.md create mode 100644 openapi/docs/TLSConfig.md create mode 100644 openapi/docs/UpdateIntegrationRequest.md create mode 100644 openapi/docs/UpdateIntegrationResponse.md create mode 100644 openapi/model_source_az_blob_storage_base.go create mode 100644 openapi/model_source_az_blob_storage_settings.go create mode 100644 openapi/model_source_base.go create mode 100644 openapi/model_source_gcs_base.go create mode 100644 openapi/model_source_gcs_settings.go create mode 100644 openapi/model_source_s3_base.go create mode 100644 openapi/model_source_s3_settings.go create mode 100644 openapi/model_suspend_source_request.go create mode 100644 openapi/model_tls_config.go create mode 100644 openapi/model_update_integration_request.go create mode 100644 openapi/model_update_integration_response.go diff --git a/go.mod b/go.mod index 87fd9ff8..34814707 100644 --- a/go.mod +++ b/go.mod @@ -66,7 +66,7 @@ require ( golang.org/x/crypto v0.12.0 // indirect golang.org/x/mod v0.12.0 // indirect golang.org/x/sys v0.12.0 // indirect - golang.org/x/tools v0.12.0 // indirect + golang.org/x/tools v0.13.0 // indirect gopkg.in/yaml.v2 v2.3.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 3c568571..12004a6a 100644 --- a/go.sum +++ b/go.sum @@ -310,7 +310,7 @@ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -359,8 +359,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= -golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/openapi/.openapi-generator/FILES b/openapi/.openapi-generator/FILES index 9949b718..c0b37b0c 100644 --- a/openapi/.openapi-generator/FILES +++ b/openapi/.openapi-generator/FILES @@ -163,16 +163,23 @@ docs/SchemaRegistryConfig.md docs/SharedLambdasApi.md docs/SnowflakeIntegration.md docs/Source.md +docs/SourceAzBlobStorageBase.md +docs/SourceAzBlobStorageSettings.md docs/SourceAzureBlobStorage.md docs/SourceAzureEventHubs.md docs/SourceAzureServiceBus.md +docs/SourceBase.md docs/SourceDynamoDb.md docs/SourceFileUpload.md docs/SourceGcs.md +docs/SourceGcsBase.md +docs/SourceGcsSettings.md docs/SourceKafka.md docs/SourceKinesis.md docs/SourceMongoDb.md docs/SourceS3.md +docs/SourceS3Base.md +docs/SourceS3Settings.md docs/SourceSnapshot.md docs/SourceSnowflake.md docs/SourceSystem.md @@ -190,12 +197,16 @@ docs/StatusKafka.md docs/StatusKafkaPartition.md docs/StatusMongoDb.md docs/StatusSnowflake.md +docs/SuspendSourceRequest.md docs/SuspendVirtualInstanceResponse.md +docs/TLSConfig.md docs/UnsubscribePreference.md docs/UpdateAliasRequest.md docs/UpdateApiKeyRequest.md docs/UpdateApiKeyResponse.md docs/UpdateCollectionRequest.md +docs/UpdateIntegrationRequest.md +docs/UpdateIntegrationResponse.md docs/UpdateQueryLambdaRequest.md docs/UpdateRoleRequest.md docs/UpdateUnsubscribePreferencesRequest.md @@ -353,16 +364,23 @@ model_s3_integration.go model_schema_registry_config.go model_snowflake_integration.go model_source.go +model_source_az_blob_storage_base.go +model_source_az_blob_storage_settings.go model_source_azure_blob_storage.go model_source_azure_event_hubs.go model_source_azure_service_bus.go +model_source_base.go model_source_dynamo_db.go model_source_file_upload.go model_source_gcs.go +model_source_gcs_base.go +model_source_gcs_settings.go model_source_kafka.go model_source_kinesis.go model_source_mongo_db.go model_source_s3.go +model_source_s3_base.go +model_source_s3_settings.go model_source_snapshot.go model_source_snowflake.go model_source_system.go @@ -379,12 +397,16 @@ model_status_kafka.go model_status_kafka_partition.go model_status_mongo_db.go model_status_snowflake.go +model_suspend_source_request.go model_suspend_virtual_instance_response.go +model_tls_config.go model_unsubscribe_preference.go model_update_alias_request.go model_update_api_key_request.go model_update_api_key_response.go model_update_collection_request.go +model_update_integration_request.go +model_update_integration_response.go model_update_query_lambda_request.go model_update_role_request.go model_update_unsubscribe_preferences_request.go diff --git a/openapi/README.md b/openapi/README.md index 3908754e..e307306a 100644 --- a/openapi/README.md +++ b/openapi/README.md @@ -15,7 +15,7 @@ Build something awesome! This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: v1 -- Package version: 0.21.2 +- Package version: 0.22.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -116,6 +116,7 @@ Class | Method | HTTP request | Description *IntegrationsApi* | [**DeleteIntegration**](docs/IntegrationsApi.md#deleteintegration) | **Delete** /v1/orgs/self/integrations/{integration} | Delete Integration *IntegrationsApi* | [**GetIntegration**](docs/IntegrationsApi.md#getintegration) | **Get** /v1/orgs/self/integrations/{integration} | Retrieve Integration *IntegrationsApi* | [**ListIntegrations**](docs/IntegrationsApi.md#listintegrations) | **Get** /v1/orgs/self/integrations | List Integrations +*IntegrationsApi* | [**UpdateIntegration**](docs/IntegrationsApi.md#updateintegration) | **Put** /v1/orgs/self/integrations/{integration} | Update Integration *OrganizationsApi* | [**GetOrganization**](docs/OrganizationsApi.md#getorganization) | **Get** /v1/orgs/self | Get Organization *QueriesApi* | [**CancelQuery**](docs/QueriesApi.md#cancelquery) | **Delete** /v1/orgs/self/queries/{queryId} | Cancel Query *QueriesApi* | [**GetQuery**](docs/QueriesApi.md#getquery) | **Get** /v1/orgs/self/queries/{queryId} | Retrieve Query @@ -144,6 +145,7 @@ Class | Method | HTTP request | Description *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 +*SourcesApi* | [**UpdateSource**](docs/SourcesApi.md#updatesource) | **Put** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source} | Update a collection source *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 @@ -161,6 +163,7 @@ Class | Method | HTTP request | Description *VirtualInstancesApi* | [**CreateVirtualInstance**](docs/VirtualInstancesApi.md#createvirtualinstance) | **Post** /v1/orgs/self/virtualinstances | Create Virtual Instance *VirtualInstancesApi* | [**DeleteVirtualInstance**](docs/VirtualInstancesApi.md#deletevirtualinstance) | **Delete** /v1/orgs/self/virtualinstances/{virtualInstanceId} | Delete Virtual Instance *VirtualInstancesApi* | [**GetCollectionMount**](docs/VirtualInstancesApi.md#getcollectionmount) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath} | Get Collection Mount +*VirtualInstancesApi* | [**GetMountOffsets**](docs/VirtualInstancesApi.md#getmountoffsets) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}/offsets/commit | Get Collection Commit *VirtualInstancesApi* | [**GetVirtualInstance**](docs/VirtualInstancesApi.md#getvirtualinstance) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId} | Retrieve Virtual Instance *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 @@ -313,16 +316,23 @@ Class | Method | HTTP request | Description - [SchemaRegistryConfig](docs/SchemaRegistryConfig.md) - [SnowflakeIntegration](docs/SnowflakeIntegration.md) - [Source](docs/Source.md) + - [SourceAzBlobStorageBase](docs/SourceAzBlobStorageBase.md) + - [SourceAzBlobStorageSettings](docs/SourceAzBlobStorageSettings.md) - [SourceAzureBlobStorage](docs/SourceAzureBlobStorage.md) - [SourceAzureEventHubs](docs/SourceAzureEventHubs.md) - [SourceAzureServiceBus](docs/SourceAzureServiceBus.md) + - [SourceBase](docs/SourceBase.md) - [SourceDynamoDb](docs/SourceDynamoDb.md) - [SourceFileUpload](docs/SourceFileUpload.md) - [SourceGcs](docs/SourceGcs.md) + - [SourceGcsBase](docs/SourceGcsBase.md) + - [SourceGcsSettings](docs/SourceGcsSettings.md) - [SourceKafka](docs/SourceKafka.md) - [SourceKinesis](docs/SourceKinesis.md) - [SourceMongoDb](docs/SourceMongoDb.md) - [SourceS3](docs/SourceS3.md) + - [SourceS3Base](docs/SourceS3Base.md) + - [SourceS3Settings](docs/SourceS3Settings.md) - [SourceSnapshot](docs/SourceSnapshot.md) - [SourceSnowflake](docs/SourceSnowflake.md) - [SourceSystem](docs/SourceSystem.md) @@ -339,12 +349,16 @@ Class | Method | HTTP request | Description - [StatusKafkaPartition](docs/StatusKafkaPartition.md) - [StatusMongoDb](docs/StatusMongoDb.md) - [StatusSnowflake](docs/StatusSnowflake.md) + - [SuspendSourceRequest](docs/SuspendSourceRequest.md) - [SuspendVirtualInstanceResponse](docs/SuspendVirtualInstanceResponse.md) + - [TLSConfig](docs/TLSConfig.md) - [UnsubscribePreference](docs/UnsubscribePreference.md) - [UpdateAliasRequest](docs/UpdateAliasRequest.md) - [UpdateApiKeyRequest](docs/UpdateApiKeyRequest.md) - [UpdateApiKeyResponse](docs/UpdateApiKeyResponse.md) - [UpdateCollectionRequest](docs/UpdateCollectionRequest.md) + - [UpdateIntegrationRequest](docs/UpdateIntegrationRequest.md) + - [UpdateIntegrationResponse](docs/UpdateIntegrationResponse.md) - [UpdateQueryLambdaRequest](docs/UpdateQueryLambdaRequest.md) - [UpdateRoleRequest](docs/UpdateRoleRequest.md) - [UpdateUnsubscribePreferencesRequest](docs/UpdateUnsubscribePreferencesRequest.md) diff --git a/openapi/api/openapi.yaml b/openapi/api/openapi.yaml index dc033dd9..a4ddff69 100644 --- a/openapi/api/openapi.yaml +++ b/openapi/api/openapi.yaml @@ -16,8 +16,8 @@ info: servers: - url: https://api.use1a1.rockset.com/ tags: -- name: API Keys - name: Aliases +- name: API Keys - name: Collections - name: Custom Roles - name: Documents @@ -32,17 +32,17 @@ tags: - name: Virtual Instances - name: Workspaces paths: - /v1/orgs/self: + /v1/orgs/self/aliases: get: - description: Retrieve information about current organization. - operationId: getOrganization + description: Retrieve all aliases in an organization + operationId: listAliases responses: "200": content: application/json: schema: - $ref: '#/components/schemas/OrganizationResponse' - description: organization retrieved successfully + $ref: '#/components/schemas/ListAliasesResponse' + description: aliases retrieved successfully "400": content: application/json: @@ -127,14 +127,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Get Organization + summary: List Aliases tags: - - Organizations - x-rename: get - /v1/orgs/self/aliases: + - Aliases + x-rename: list + /v1/orgs/self/ws/{workspace}/aliases: get: - description: Retrieve all aliases in an organization - operationId: listAliases + description: Retrieve all aliases in a workspace. + operationId: workspaceAliases + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string responses: "200": content: @@ -226,21 +234,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Aliases + summary: List Aliases in Workspace tags: - Aliases - x-rename: list - /v1/orgs/self/collections: - get: - description: Retrieve all collections in an organization. - operationId: listCollections + post: + description: Create new alias in a workspace. + operationId: createAlias + 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/CreateAliasRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListCollectionsResponse' - description: collections retrieved successfully + $ref: '#/components/schemas/CreateAliasResponse' + description: alias created successfully "400": content: application/json: @@ -325,21 +346,36 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Collections + summary: Create Alias tags: - - Collections - x-rename: list - /v1/orgs/self/integrations: - get: - description: List all integrations in an organization. - operationId: listIntegrations + - Aliases + x-rename: create + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/aliases/{alias}: + delete: + description: Delete an alias. + operationId: deleteAlias + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the alias + in: path + name: alias + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListIntegrationsResponse' - description: integrations retrieved successfully + $ref: '#/components/schemas/DeleteAliasResponse' + description: alias deleted successfully "400": content: application/json: @@ -424,27 +460,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Integrations + summary: Delete Alias tags: - - Integrations - x-rename: list - post: - description: Create a new integration. - operationId: createIntegration - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateIntegrationRequest' - description: integration credentials + - Aliases + x-rename: delete + get: + description: Get details about an alias + operationId: getAlias + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the alias + in: path + name: alias required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateIntegrationResponse' - description: integration created successfully + $ref: '#/components/schemas/GetAliasResponse' + description: alias retrieved successfully "400": content: application/json: @@ -529,28 +572,41 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Integration + summary: Retrieve Alias tags: - - Integrations - x-codegen-request-body-name: body - /v1/orgs/self/integrations/{integration}: - delete: - description: Remove an integration. - operationId: deleteIntegration + - Aliases + x-rename: get + post: + description: Update alias in a workspace. + operationId: updateAlias parameters: - - description: name of the integration + - description: name of the workspace in: path - name: integration + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the alias + in: path + name: alias required: true schema: type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateAliasRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeleteIntegrationResponse' - description: integration deleted successfully + $ref: '#/components/schemas/GetAliasResponse' + description: alias updated successfully "400": content: application/json: @@ -635,27 +691,29 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Integration + summary: Update Alias tags: - - Integrations - x-rename: delete - get: - description: Retrieve information about a single integration. - operationId: getIntegration - parameters: - - description: name of the integration - in: path - name: integration + - Aliases + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self/users/self/apikeys: + post: + description: Create a new API key for the authenticated user. + operationId: createApiKey + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateApiKeyRequest' + description: JSON object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetIntegrationResponse' - description: integration retrieved successfully + $ref: '#/components/schemas/CreateApiKeyResponse' + description: API key created successfully "400": content: application/json: @@ -740,21 +798,31 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Integration + summary: Create API Key tags: - - Integrations - x-rename: get - /v1/orgs/self/lambdas: + - API Keys + x-rename: create + x-codegen-request-body-name: body + /v1/orgs/self/users/{user}/apikeys: get: - description: List all Query Lambdas in an organization. - operationId: listAllQueryLambdas + description: List API key metadata for any user in your organization. + operationId: listApiKeys + parameters: + - description: Email of the API key owner. Use `self` to specify the currently + authenticated user. + example: admin@me.com + in: path + name: user + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListQueryLambdasResponse' - description: Query Lambdas listed successfully + $ref: '#/components/schemas/ListApiKeysResponse' + description: API keys retrieved successfully "400": content: application/json: @@ -839,20 +907,37 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Query Lambdas + summary: List API Keys tags: - - Query Lambdas - /v1/orgs/self/queries: - get: - description: Lists actively queued and running queries. - operationId: listActiveQueries + - API Keys + x-rename: list + /v1/orgs/self/users/{user}/apikeys/{name}: + delete: + description: Delete an API key for any user in your organization. + operationId: deleteApiKey + parameters: + - description: Name of the API key. + example: my-key + in: path + name: name + required: true + schema: + type: string + - description: Email of the API key owner. Use `self` to specify the currently + authenticated user. + example: admin@me.com + in: path + name: user + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListQueriesResponse' - description: successfully fetched queries + $ref: '#/components/schemas/DeleteApiKeyResponse' + description: API key deleted successfully "400": content: application/json: @@ -937,26 +1022,42 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Queries + summary: Delete API Key tags: - - Queries - post: - description: Make a SQL query to Rockset. - operationId: query - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/QueryRequest' - description: JSON object + - API Keys + x-rename: delete + get: + description: Retrieve a particular API key for any user in your organization. + operationId: getApiKey + parameters: + - description: Email of the API key owner. Use `self` to specify the currently + authenticated user. + example: admin@me.com + in: path + name: user + required: true + schema: + type: string + - description: Name of the API key. + example: my-key + in: path + name: name required: true + schema: + type: string + - description: Reveal full key. + example: true + in: query + name: reveal + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryResponse' - description: query executed successfully + $ref: '#/components/schemas/GetApiKeyResponse' + description: API key retrieved successfully "400": content: application/json: @@ -1041,19 +1142,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Execute SQL Query + summary: Retrieve API Key tags: - - Queries - x-codegen-request-body-name: body - /v1/orgs/self/queries/validations: + - API Keys + x-rename: get post: - description: Validate a SQL query with Rockset's parser and planner. - operationId: validate + description: Update the state of an API key for any user in your organization. + operationId: updateApiKey + parameters: + - description: Name of the API key. + example: my-key + in: path + name: name + required: true + schema: + type: string + - description: Email of the API key owner. Use `self` to specify the currently + authenticated user. + example: admin@me.com + in: path + name: user + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/QueryRequest' + $ref: '#/components/schemas/UpdateApiKeyRequest' description: JSON object required: true responses: @@ -1061,8 +1177,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ValidateQueryResponse' - description: query validated successfully + $ref: '#/components/schemas/UpdateApiKeyResponse' + description: API key successfully updated "400": content: application/json: @@ -1147,27 +1263,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Validate Query + summary: Update API Key State tags: - - Queries + - API Keys + x-rename: update x-codegen-request-body-name: body - /v1/orgs/self/queries/{queryId}: - delete: - description: Attempts to cancel an actively-running query. - operationId: cancelQuery - parameters: - - in: path - name: queryId - required: true - schema: - type: string + /v1/orgs/self/collections: + get: + description: Retrieve all collections in an organization. + operationId: listCollections responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CancelQueryResponse' - description: Successfully canceled query + $ref: '#/components/schemas/ListCollectionsResponse' + description: collections retrieved successfully "400": content: application/json: @@ -1252,25 +1363,29 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Cancel Query + summary: List Collections tags: - - Queries + - Collections + x-rename: list + /v1/orgs/self/ws/{workspace}/collections: get: - description: Returns information about a query. - operationId: getQuery + description: Retrieve all collections in a workspace. + operationId: workspaceCollections parameters: - - in: path - name: queryId + - 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/GetQueryResponse' - description: Successfully fetched query info + $ref: '#/components/schemas/ListCollectionsResponse' + description: collections retrieved successfully "400": content: application/json: @@ -1355,44 +1470,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Query + summary: List Collections in Workspace tags: - - Queries - /v1/orgs/self/queries/{queryId}/pages: - get: - description: Returns a page of query results. - operationId: getQueryResults + - Collections + post: + description: Create new collection in a workspace. + operationId: createCollection parameters: - - in: path - name: queryId + - description: name of the workspace + in: path + name: workspace required: true schema: + default: commons type: string - - description: "Cursor to current page. If unset, will default to the first\ - \ page." - in: query - name: cursor - schema: - type: string - - description: Number of documents to fetch. - in: query - name: docs - schema: - format: int32 - type: integer - - description: Offset from the cursor of the first document to be returned - in: query - name: offset - schema: - format: int32 - type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCollectionRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryPaginationResponse' - description: successfully fetched query results + $ref: '#/components/schemas/CreateCollectionResponse' + description: collection created successfully "400": content: application/json: @@ -1477,20 +1582,35 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Query Results Page + summary: Create Collection tags: - - Queries - /v1/orgs/self/roles: - get: - description: List all roles for your organization. - operationId: listRoles + - Collections + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/collections/{collection}: + delete: + description: Delete a collection and all its documents from Rockset. + operationId: deleteCollection + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + 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/ListRolesResponse' - description: roles retrieved successfully + $ref: '#/components/schemas/DeleteCollectionResponse' + description: collection deleted successfully "400": content: application/json: @@ -1575,27 +1695,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Roles + summary: Delete Collection tags: - - Custom Roles - x-rename: list - post: - description: Create a role for your organization. - operationId: createRole - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateRoleRequest' - description: JSON Object + - Collections + x-rename: delete + get: + description: Get details about a collection. + operationId: getCollection + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + 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/RoleResponse' - description: role created successfully + $ref: '#/components/schemas/GetCollectionResponse' + description: collection retrieved successfully "400": content: application/json: @@ -1680,30 +1807,43 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create a Role + summary: Retrieve Collection tags: - - Custom Roles - x-rename: create - x-codegen-request-body-name: body - /v1/orgs/self/roles/{roleName}: - delete: - description: Delete a role for your organization. - operationId: deleteRole + - Collections + x-rename: get + put: + description: Update details about a collection. + operationId: updateCollection parameters: - - in: path - name: roleName + - 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/RoleResponse' - description: role deleted successfully - "400": - content: + - description: name of the collection + in: path + name: collection + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateCollectionRequest' + description: JSON object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetCollectionResponse' + description: collection updated successfully + "400": + content: application/json: schema: $ref: '#/components/schemas/ErrorModel' @@ -1786,26 +1926,44 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete a Role + summary: Update Collection tags: - - Custom Roles - x-rename: delete - get: - description: Retrieve a role by name for your organization. - operationId: getRole + - Collections + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/collections/{collection}/offsets/commit: + post: + description: Determines if the collection includes data at or after the specified + fence(s) for close read-after-write semantics. + operationId: getCollectionOffsets parameters: - - in: path - name: roleName + - description: name of the workspace + in: path + name: workspace + required: true + 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/GetCollectionCommitRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RoleResponse' - description: role retrieved successfully + $ref: '#/components/schemas/GetCollectionCommit' + description: Successfully returned collection commit "400": content: application/json: @@ -1890,33 +2048,21 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve role + summary: Get Collection Commit tags: - - Custom Roles - x-rename: get - post: - description: Update a role for your organization. - operationId: updateRole - parameters: - - in: path - name: roleName - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateRoleRequest' - description: JSON Object - required: true + - Collections + x-codegen-request-body-name: body + /v1/orgs/self/roles: + get: + description: List all roles for your organization. + operationId: listRoles responses: "200": content: application/json: schema: - $ref: '#/components/schemas/RoleResponse' - description: role updated successfully + $ref: '#/components/schemas/ListRolesResponse' + description: roles retrieved successfully "400": content: application/json: @@ -2001,22 +2147,27 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update a Role + summary: List Roles tags: - Custom Roles - x-rename: update - x-codegen-request-body-name: body - /v1/orgs/self/users: - get: - description: Retrieve all users for an organization. - operationId: listUsers + x-rename: list + post: + description: Create a role for your organization. + operationId: createRole + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRoleRequest' + description: JSON Object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListUsersResponse' - description: users retrieved successfully + $ref: '#/components/schemas/RoleResponse' + description: role created successfully "400": content: application/json: @@ -2101,27 +2252,28 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Users + summary: Create a Role tags: - - Users - x-rename: list - post: - description: Create a new user for an organization. - operationId: createUser - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateUserRequest' - description: JSON object + - Custom Roles + x-rename: create + x-codegen-request-body-name: body + /v1/orgs/self/roles/{roleName}: + delete: + description: Delete a role for your organization. + operationId: deleteRole + parameters: + - in: path + name: roleName required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateUserResponse' - description: user created successfully + $ref: '#/components/schemas/RoleResponse' + description: role deleted successfully "400": content: application/json: @@ -2206,22 +2358,26 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create User + summary: Delete a Role tags: - - Users - x-rename: create - x-codegen-request-body-name: body - /v1/orgs/self/users/self: + - Custom Roles + x-rename: delete get: - description: Retrieve currently authenticated user. - operationId: getCurrentUser + description: Retrieve a role by name for your organization. + operationId: getRole + parameters: + - in: path + name: roleName + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/User' - description: user retrieved successfully + $ref: '#/components/schemas/RoleResponse' + description: role retrieved successfully "400": content: application/json: @@ -2306,27 +2462,33 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Current User + summary: Retrieve role tags: - - Users - /v1/orgs/self/users/self/apikeys: + - Custom Roles + x-rename: get post: - description: Create a new API key for the authenticated user. - operationId: createApiKey + description: Update a role for your organization. + operationId: updateRole + parameters: + - in: path + name: roleName + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateApiKeyRequest' - description: JSON object + $ref: '#/components/schemas/UpdateRoleRequest' + description: JSON Object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateApiKeyResponse' - description: API key created successfully + $ref: '#/components/schemas/RoleResponse' + description: role updated successfully "400": content: application/json: @@ -2411,22 +2573,43 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create API Key + summary: Update a Role tags: - - API Keys - x-rename: create + - Custom Roles + x-rename: update x-codegen-request-body-name: body - /v1/orgs/self/users/self/preferences: - get: - description: Get all notification preferences. - operationId: listUnsubscribePreferences + /v1/orgs/self/ws/{workspace}/collections/{collection}/docs: + delete: + description: Delete documents from a collection. + operationId: deleteDocuments + parameters: + - description: Name of the workspace. + in: path + name: workspace + required: true + 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/DeleteDocumentsRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListUnsubscribePreferencesResponse' - description: Notification preferences retrieved successfully + $ref: '#/components/schemas/DeleteDocumentsResponse' + description: documents deleted successfully "400": content: application/json: @@ -2469,12 +2652,6 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: request timeout - "409": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorModel' - description: conflict "415": content: application/json: @@ -2511,26 +2688,41 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Notification Preferences + summary: Delete Documents tags: - - Users - post: - description: Update notification preference. - operationId: updateUnsubscribePreferences - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateUnsubscribePreferencesRequest' - description: JSON Object + - Documents + x-codegen-request-body-name: body + patch: + description: Update existing documents in a collection. + operationId: patchDocuments + parameters: + - description: Name of the workspace. + in: path + name: workspace required: true - responses: - "200": + 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/PatchDocumentsRequest' + description: JSON Patch objects + required: true + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/UpdateUnsubscribePreferencesResponse' - description: Notification preference created successfully + $ref: '#/components/schemas/PatchDocumentsResponse' + description: Documents patched successfully "400": content: application/json: @@ -2573,12 +2765,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: request timeout - "409": + "413": content: application/json: schema: $ref: '#/components/schemas/ErrorModel' - description: conflict + description: content too large "415": content: application/json: @@ -2615,28 +2807,41 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update Notification Preferences + summary: Patch Documents tags: - - Users + - Documents x-codegen-request-body-name: body - /v1/orgs/self/users/{user}: - delete: - description: Delete a user from an organization. - operationId: deleteUser + post: + description: Add documents to a collection. + operationId: addDocuments parameters: - - description: user email + - description: Name of the workspace. in: path - name: user + name: workspace + required: true + 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/AddDocumentsRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeleteUserResponse' - description: user deleted successfully + $ref: '#/components/schemas/AddDocumentsResponse' + description: documents added successfully "400": content: application/json: @@ -2679,12 +2884,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: request timeout - "409": + "413": content: application/json: schema: $ref: '#/components/schemas/ErrorModel' - description: conflict + description: content too large "415": content: application/json: @@ -2721,27 +2926,21 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete User + summary: Add Documents tags: - - Users - x-rename: delete + - Documents + x-codegen-request-body-name: body + /v1/orgs/self/integrations: get: - description: Retrieve user by email. - operationId: getUser - parameters: - - description: user email - in: path - name: user - required: true - schema: - type: string + description: List all integrations in an organization. + operationId: listIntegrations responses: "200": content: application/json: schema: - $ref: '#/components/schemas/User' - description: user found + $ref: '#/components/schemas/ListIntegrationsResponse' + description: integrations retrieved successfully "400": content: application/json: @@ -2826,34 +3025,27 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve User + summary: List Integrations tags: - - Users - x-rename: get + - Integrations + x-rename: list post: - description: Update a user in an organization. - operationId: updateUser - parameters: - - description: email of the user to update - in: path - name: user - required: true - schema: - type: string + description: Create a new integration. + operationId: createIntegration requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateUserRequest' - description: JSON object + $ref: '#/components/schemas/CreateIntegrationRequest' + description: integration credentials required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/User' - description: user updated successfully + $ref: '#/components/schemas/CreateIntegrationResponse' + description: integration created successfully "400": content: application/json: @@ -2938,21 +3130,18 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update User + summary: Create Integration tags: - - Users - x-rename: update + - Integrations x-codegen-request-body-name: body - /v1/orgs/self/users/{user}/apikeys: - get: - description: List API key metadata for any user in your organization. - operationId: listApiKeys + /v1/orgs/self/integrations/{integration}: + delete: + description: Remove an integration. + operationId: deleteIntegration parameters: - - description: Email of the API key owner. Use `self` to specify the currently - authenticated user. - example: admin@me.com + - description: name of the integration in: path - name: user + name: integration required: true schema: type: string @@ -2961,8 +3150,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListApiKeysResponse' - description: API keys retrieved successfully + $ref: '#/components/schemas/DeleteIntegrationResponse' + description: integration deleted successfully "400": content: application/json: @@ -3047,27 +3236,17 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List API Keys + summary: Delete Integration tags: - - API Keys - x-rename: list - /v1/orgs/self/users/{user}/apikeys/{name}: - delete: - description: Delete an API key for any user in your organization. - operationId: deleteApiKey + - Integrations + x-rename: delete + get: + description: Retrieve information about a single integration. + operationId: getIntegration parameters: - - description: Name of the API key. - example: my-key - in: path - name: name - required: true - schema: - type: string - - description: Email of the API key owner. Use `self` to specify the currently - authenticated user. - example: admin@me.com + - description: name of the integration in: path - name: user + name: integration required: true schema: type: string @@ -3076,8 +3255,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteApiKeyResponse' - description: API key deleted successfully + $ref: '#/components/schemas/GetIntegrationResponse' + description: integration retrieved successfully "400": content: application/json: @@ -3162,42 +3341,33 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete API Key + summary: Retrieve Integration tags: - - API Keys - x-rename: delete - get: - description: Retrieve a particular API key for any user in your organization. - operationId: getApiKey + - Integrations + x-rename: get + put: + description: Update an existing integration. + operationId: updateIntegration parameters: - - description: Email of the API key owner. Use `self` to specify the currently - authenticated user. - example: admin@me.com - in: path - name: user + - in: path + name: integration required: true schema: type: string - - description: Name of the API key. - example: my-key - in: path - name: name + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateIntegrationRequest' + description: integration configuration required: true - schema: - type: string - - description: Reveal full key. - example: true - in: query - name: reveal - schema: - type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetApiKeyResponse' - description: API key retrieved successfully + $ref: '#/components/schemas/UpdateIntegrationResponse' + description: integration updated successfully "400": content: application/json: @@ -3282,43 +3452,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve API Key + summary: Update Integration tags: - - API Keys - x-rename: get - post: - description: Update the state of an API key for any user in your organization. - operationId: updateApiKey - parameters: - - description: Name of the API key. - example: my-key - in: path - name: name - required: true - schema: - type: string - - description: Email of the API key owner. Use `self` to specify the currently - authenticated user. - example: admin@me.com - in: path - name: user - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateApiKeyRequest' - description: JSON object - required: true + - Integrations + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self: + get: + description: Retrieve information about current organization. + operationId: getOrganization responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UpdateApiKeyResponse' - description: API key successfully updated + $ref: '#/components/schemas/OrganizationResponse' + description: organization retrieved successfully "400": content: application/json: @@ -3403,22 +3552,21 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update API Key State + summary: Get Organization tags: - - API Keys - x-rename: update - x-codegen-request-body-name: body - /v1/orgs/self/views: + - Organizations + x-rename: get + /v1/orgs/self/queries: get: - description: Retrieve all views in an organization - operationId: listViews + description: Lists actively queued and running queries. + operationId: listActiveQueries responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListViewsResponse' - description: views retrieved successfully + $ref: '#/components/schemas/ListQueriesResponse' + description: successfully fetched queries "400": content: application/json: @@ -3503,21 +3651,26 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Views + summary: List Queries tags: - - Views - x-rename: list - /v1/orgs/self/virtualinstances: - get: - description: Retrieve all virtual instances in an organization. - operationId: listVirtualInstances + - Queries + post: + description: Make a SQL query to Rockset. + operationId: query + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/QueryRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListVirtualInstancesResponse' - description: virtual instances retrieved successfully + $ref: '#/components/schemas/QueryResponse' + description: query executed successfully "400": content: application/json: @@ -3602,18 +3755,19 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Virtual Instances + summary: Execute SQL Query tags: - - Virtual Instances - x-rename: list + - Queries + x-codegen-request-body-name: body + /v1/orgs/self/queries/validations: post: - description: Create virtual instance - operationId: createVirtualInstance + description: Validate a SQL query with Rockset's parser and planner. + operationId: validate requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateVirtualInstanceRequest' + $ref: '#/components/schemas/QueryRequest' description: JSON object required: true responses: @@ -3621,8 +3775,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateVirtualInstanceResponse' - description: virtual instance created successfully + $ref: '#/components/schemas/ValidateQueryResponse' + description: query validated successfully "400": content: application/json: @@ -3707,19 +3861,17 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Virtual Instance + summary: Validate Query tags: - - Virtual Instances - x-rename: create + - Queries x-codegen-request-body-name: body - /v1/orgs/self/virtualinstances/{virtualInstanceId}: + /v1/orgs/self/queries/{queryId}: delete: - description: Delete a virtual instance. - operationId: deleteVirtualInstance + description: Attempts to cancel an actively-running query. + operationId: cancelQuery parameters: - - description: Virtual Instance RRN - in: path - name: virtualInstanceId + - in: path + name: queryId required: true schema: type: string @@ -3728,8 +3880,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteVirtualInstanceResponse' - description: virtual instance deleted successfully + $ref: '#/components/schemas/CancelQueryResponse' + description: Successfully canceled query "400": content: application/json: @@ -3814,17 +3966,15 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Virtual Instance + summary: Cancel Query tags: - - Virtual Instances - x-rename: delete + - Queries get: - description: Get details about a virtual instance. - operationId: getVirtualInstance + description: Returns information about a query. + operationId: getQuery parameters: - - description: Virtual Instance RRN - in: path - name: virtualInstanceId + - in: path + name: queryId required: true schema: type: string @@ -3833,8 +3983,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetVirtualInstanceResponse' - description: virtual instance retrieved successfully + $ref: '#/components/schemas/GetQueryResponse' + description: Successfully fetched query info "400": content: application/json: @@ -3919,34 +4069,44 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Virtual Instance + summary: Retrieve Query tags: - - Virtual Instances - x-rename: get - post: - description: Update the properties of a virtual instance. - operationId: setVirtualInstance + - Queries + /v1/orgs/self/queries/{queryId}/pages: + get: + description: Returns a page of query results. + operationId: getQueryResults parameters: - - description: Virtual Instance RRN - in: path - name: virtualInstanceId + - in: path + name: queryId required: true schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateVirtualInstanceRequest' - description: JSON object - required: true + - description: "Cursor to current page. If unset, will default to the first\ + \ page." + in: query + name: cursor + schema: + type: string + - description: Number of documents to fetch. + in: query + name: docs + schema: + format: int32 + type: integer + - description: Offset from the cursor of the first document to be returned + in: query + name: offset + schema: + format: int32 + type: integer responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UpdateVirtualInstanceResponse' - description: virtual instance updated successfully + $ref: '#/components/schemas/QueryPaginationResponse' + description: successfully fetched query results "400": content: application/json: @@ -4031,29 +4191,20 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update Virtual Instance + summary: Retrieve Query Results Page tags: - - Virtual Instances - x-rename: update - x-codegen-request-body-name: body - /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts: + - Queries + /v1/orgs/self/lambdas: get: - description: List collection mounts for a particular VI. - operationId: listCollectionMounts - parameters: - - description: Virtual Instance RRN - in: path - name: virtualInstanceId - required: true - schema: - type: string + description: List all Query Lambdas in an organization. + operationId: listAllQueryLambdas responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListCollectionMountsResponse' - description: resource mounted + $ref: '#/components/schemas/ListQueryLambdasResponse' + description: Query Lambdas listed successfully "400": content: application/json: @@ -4138,33 +4289,28 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Collection Mounts + summary: List Query Lambdas tags: - - Virtual Instances - post: - description: Mount a collection to this virtual instance. - operationId: mountCollection + - Query Lambdas + /v1/orgs/self/ws/{workspace}/lambdas: + get: + description: List all Query Lambdas under given workspace. + operationId: listQueryLambdasInWorkspace parameters: - - description: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + name: workspace required: true schema: + default: commons type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateCollectionMountRequest' - description: JSON object - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateCollectionMountsResponse' - description: collection mounted + $ref: '#/components/schemas/ListQueryLambdasResponse' + description: Query Lambdas listed successfully "400": content: application/json: @@ -4249,33 +4395,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Mount Collections + summary: List Query Lambdas in Workspace tags: - - Virtual Instances - x-codegen-request-body-name: body - /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}: - delete: - description: Unmount a collection from this virtual instance. - operationId: unmountCollection + - Query Lambdas + post: + description: Create a Query Lambda in given workspace. + operationId: createQueryLambda parameters: - - description: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + name: workspace required: true schema: + default: commons type: string - - in: path - name: collectionPath + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateQueryLambdaRequest' + description: JSON object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CollectionMountResponse' - description: collection unmounted + $ref: '#/components/schemas/QueryLambdaVersionResponse' + description: Query Lambda created successfully "400": content: application/json: @@ -4360,21 +4507,25 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Unmount Collection + summary: Create Query Lambda tags: - - Virtual Instances - get: - description: Retrieve a mount on this virtual instance. - operationId: getCollectionMount + - 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: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + name: workspace required: true schema: + default: commons type: string - - in: path - name: collectionPath + - description: name of the Query Lambda + in: path + name: queryLambda required: true schema: type: string @@ -4383,8 +4534,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CollectionMountResponse' - description: collection unmounted + $ref: '#/components/schemas/DeleteQueryLambdaResponse' + description: Query Lambda deleted successfully "400": content: application/json: @@ -4469,18 +4620,24 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Get Collection Mount + summary: Delete Query Lambda tags: - - Virtual Instances - /v1/orgs/self/virtualinstances/{virtualInstanceId}/queries: + - Query Lambdas + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags: get: - description: Lists actively queued and running queries for a particular Virtual - Instance. - operationId: getVirtualInstanceQueries + description: List all tags associated with a Query Lambda + operationId: listQueryLambdaTags parameters: - - description: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the Query Lambda + in: path + name: queryLambda required: true schema: type: string @@ -4489,8 +4646,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListQueriesResponse' - description: successfully fetched queries + $ref: '#/components/schemas/ListQueryLambdaTagsResponse' + description: tags listed successfully "400": content: application/json: @@ -4575,16 +4732,24 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Queries + summary: List Query Lambda Tags tags: - - Virtual Instances + - Query Lambdas post: - description: Make a SQL query to Rockset. - operationId: queryVirtualInstance + description: "Create a tag for a specific Query Lambda version, or update that\ + \ tag if it already exists." + operationId: createQueryLambdaTag parameters: - - description: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + name: workspace + required: true + schema: + default: commons + type: string + - description: name of the Query Lambda + in: path + name: queryLambda required: true schema: type: string @@ -4592,7 +4757,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryRequest' + $ref: '#/components/schemas/CreateQueryLambdaTagRequest' description: JSON object required: true responses: @@ -4600,8 +4765,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryResponse' - description: query executed successfully + $ref: '#/components/schemas/QueryLambdaTagResponse' + description: tag created successfully "400": content: application/json: @@ -4686,18 +4851,31 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Execute SQL Query + summary: Create Query Lambda Tag tags: - - Virtual Instances + - Query Lambdas x-codegen-request-body-name: body - /v1/orgs/self/virtualinstances/{virtualInstanceId}/resume: - post: - description: Resume a virtual instance. - operationId: resumeVirtualInstance + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags/{tag}: + delete: + description: Delete a tag for a specific Query Lambda + operationId: deleteQueryLambdaTag parameters: - - description: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + 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 @@ -4706,8 +4884,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResumeVirtualInstanceResponse' - description: virtual instance resumed successfully + $ref: '#/components/schemas/QueryLambdaTagResponse' + description: tag deleted successfully "400": content: application/json: @@ -4792,17 +4970,29 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Resume Virtual Instance + summary: Delete Query Lambda Tag Version tags: - - Virtual Instances - /v1/orgs/self/virtualinstances/{virtualInstanceId}/suspend: - post: - description: Suspend a virtual instance. - operationId: suspendVirtualInstance + - Query Lambdas + get: + description: Retrieve the Query Lambda version associated with a given tag. + operationId: getQueryLambdaTagVersion parameters: - - description: Virtual Instance RRN + - description: name of the workspace in: path - name: virtualInstanceId + 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 @@ -4811,8 +5001,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SuspendVirtualInstanceResponse' - description: virtual instance suspended successfully + $ref: '#/components/schemas/QueryLambdaTagResponse' + description: version retrieved successfully "400": content: application/json: @@ -4897,20 +5087,46 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Suspend Virtual Instance + summary: Retrieve Query Lambda Tag tags: - - Virtual Instances - /v1/orgs/self/ws: - get: - description: List all workspaces in an organization. - operationId: listWorkspaces + - Query Lambdas + post: + description: Execute the Query Lambda version associated with a given tag. + operationId: executeQueryLambdaByTag + 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: tag + in: path + name: tag + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExecuteQueryLambdaRequest' + description: JSON object + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListWorkspacesResponse' - description: workspaces retrieved successfully + $ref: '#/components/schemas/QueryResponse' + description: Query Lambda executed successfully "400": content: application/json: @@ -4995,27 +5211,41 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Workspaces + summary: Execute Query Lambda By Tag tags: - - Workspaces - x-rename: list - post: - description: Create a new workspace. - operationId: createWorkspace - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateWorkspaceRequest' - description: workspace details + - Query Lambdas + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/version/{version}: + delete: + description: Delete a Query Lambda version. + operationId: deleteQueryLambdaVersion + 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: version + in: path + name: version required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateWorkspaceResponse' - description: workspace created successfully + $ref: '#/components/schemas/QueryLambdaVersionResponse' + description: Query Lambda version deleted successfully "400": content: application/json: @@ -5100,15 +5330,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Workspace + summary: Delete Query Lambda Version tags: - - Workspaces - x-rename: create - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}: - delete: - description: Remove a workspace. - operationId: deleteWorkspace + - Query Lambdas + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/versions: + get: + description: List all versions of a Query Lambda. + operationId: listQueryLambdaVersions parameters: - description: name of the workspace in: path @@ -5117,13 +5345,19 @@ paths: 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/DeleteWorkspaceResponse' - description: workspace deleted successfully + $ref: '#/components/schemas/ListQueryLambdaVersionsResponse' + description: versions listed successfully "400": content: application/json: @@ -5208,13 +5442,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Workspace + summary: List Query Lambda Versions tags: - - Workspaces - x-rename: delete - get: - description: Get information about a single workspace. - operationId: getWorkspace + - Query Lambdas + post: + description: Create a new version of a Query Lambda in given workspace. + operationId: updateQueryLambda parameters: - description: name of the workspace in: path @@ -5223,13 +5456,31 @@ paths: schema: default: commons type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + - description: Create a new Query Lambda if one does not exist already. + in: query + name: create + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateQueryLambdaRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetWorkspaceResponse' - description: workspace retrieved successfully + $ref: '#/components/schemas/QueryLambdaVersionResponse' + description: Query Lambda updated successfully "400": content: application/json: @@ -5314,14 +5565,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Workspace + summary: Update Query Lambda tags: - - Workspaces - x-rename: get - /v1/orgs/self/ws/{workspace}/aliases: + - Query Lambdas + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/versions/{version}: get: - description: Retrieve all aliases in a workspace. - operationId: workspaceAliases + description: Retrieve details for a specified version of a Query Lambda. + operationId: getQueryLambdaVersion parameters: - description: name of the workspace in: path @@ -5330,13 +5581,25 @@ paths: schema: default: commons type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + - description: version + in: path + name: version + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListAliasesResponse' - description: aliases retrieved successfully + $ref: '#/components/schemas/QueryLambdaVersionResponse' + description: Query Lambda retrieved successfully "400": content: application/json: @@ -5421,12 +5684,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Aliases in Workspace + summary: Retrieve Query Lambda Version tags: - - Aliases + - Query Lambdas post: - description: Create new alias in a workspace. - operationId: createAlias + description: Execute a particular version of a Query Lambda. + operationId: executeQueryLambda parameters: - description: name of the workspace in: path @@ -5435,20 +5698,32 @@ paths: schema: default: commons type: string + - description: name of the Query Lambda + in: path + name: queryLambda + required: true + schema: + type: string + - description: version + in: path + name: version + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/CreateAliasRequest' + $ref: '#/components/schemas/ExecuteQueryLambdaRequest' description: JSON object - required: true + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateAliasResponse' - description: alias created successfully + $ref: '#/components/schemas/QueryResponse' + description: Query Lambda executed successfully "400": content: application/json: @@ -5533,36 +5808,35 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Alias + summary: Execute Query Lambda By Version tags: - - Aliases - x-rename: create + - Query Lambdas x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/aliases/{alias}: - delete: - description: Delete an alias. - operationId: deleteAlias + /v1/public/shared_lambdas/{public_access_id}: + post: + description: Execute a public query lambda (full version). + operationId: executePublicQueryLambdaWithParams parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the alias + - description: public access ID of the query lambda in: path - name: alias + name: public_access_id required: true schema: type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExecutePublicQueryLambdaRequest' + description: JSON object + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeleteAliasResponse' - description: alias deleted successfully + $ref: '#/components/schemas/QueryResponse' + description: Query Lambda executed successfully "400": content: application/json: @@ -5647,13 +5921,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Alias + summary: Execute a Public Query Lambda tags: - - Aliases - x-rename: delete + - Shared Lambdas + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources: get: - description: Get details about an alias - operationId: getAlias + description: Retrieve all sources in a collection. + operationId: listCollectionSources parameters: - description: name of the workspace in: path @@ -5662,9 +5937,9 @@ paths: schema: default: commons type: string - - description: name of the alias + - description: name of the collection in: path - name: alias + name: collection required: true schema: type: string @@ -5673,8 +5948,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetAliasResponse' - description: alias retrieved successfully + $ref: '#/components/schemas/ListSourcesResponse' + description: collection sources retrieved successfully "400": content: application/json: @@ -5759,13 +6034,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Alias + summary: List sources in collection tags: - - Aliases - x-rename: get + - Sources + x-rename: list post: - description: Update alias in a workspace. - operationId: updateAlias + description: Create new source in a collection. + operationId: createSource parameters: - description: name of the workspace in: path @@ -5774,9 +6049,9 @@ paths: schema: default: commons type: string - - description: name of the alias + - description: name of the collection in: path - name: alias + name: collection required: true schema: type: string @@ -5784,7 +6059,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateAliasRequest' + $ref: '#/components/schemas/Source' description: JSON object required: true responses: @@ -5792,8 +6067,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetAliasResponse' - description: alias updated successfully + $ref: '#/components/schemas/GetSourceResponse' + description: source created successfully "400": content: application/json: @@ -5878,15 +6153,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update Alias + summary: Create a source tags: - - Aliases - x-rename: update + - Sources x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/collections: - get: - description: Retrieve all collections in a workspace. - operationId: workspaceCollections + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}: + delete: + description: Delete a collection source + operationId: deleteSource parameters: - description: name of the workspace in: path @@ -5895,13 +6169,25 @@ paths: schema: default: commons type: string + - description: name of the collection + in: path + name: collection + required: true + schema: + type: string + - description: id of source + in: path + name: source + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListCollectionsResponse' - description: collections retrieved successfully + $ref: '#/components/schemas/DeleteSourceResponse' + description: source deleted successfully "400": content: application/json: @@ -5986,12 +6272,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Collections in Workspace + summary: Delete Collection source tags: - - Collections - post: - description: Create new collection in a workspace. - operationId: createCollection + - Sources + x-rename: delete + get: + description: Get details about a collection source. + operationId: getSource parameters: - description: name of the workspace in: path @@ -6000,20 +6287,25 @@ paths: schema: default: commons type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateCollectionRequest' - description: JSON object + - description: name of the collection + in: path + name: collection + required: true + schema: + type: string + - description: id of source + in: path + name: source required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateCollectionResponse' - description: collection created successfully + $ref: '#/components/schemas/GetSourceResponse' + description: collection retrieved successfully "400": content: application/json: @@ -6098,14 +6390,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Collection + summary: Retrieve source tags: - - Collections - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/collections/{collection}: - delete: - description: Delete a collection and all its documents from Rockset. - operationId: deleteCollection + - Sources + x-rename: get + put: + description: Update details about a collection source. + operationId: updateSource parameters: - description: name of the workspace in: path @@ -6120,13 +6411,26 @@ paths: required: true schema: type: string + - description: id of source + in: path + name: source + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SourceBase' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeleteCollectionResponse' - description: collection deleted successfully + $ref: '#/components/schemas/GetSourceResponse' + description: collection updated successfully "400": content: application/json: @@ -6211,13 +6515,15 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Collection + summary: Update a collection source tags: - - Collections - x-rename: delete - get: - description: Get details about a collection. - operationId: getCollection + - Sources + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/resume: + post: + description: Resume source ingest + operationId: resumeSource parameters: - description: name of the workspace in: path @@ -6232,13 +6538,19 @@ paths: required: true schema: type: string + - description: id of source + in: path + name: source + required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetCollectionResponse' - description: collection retrieved successfully + $ref: '#/components/schemas/GetSourceResponse' + description: source was resumed "400": content: application/json: @@ -6323,13 +6635,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Collection + summary: Resume source ingest tags: - - Collections - x-rename: get - put: - description: Update details about a collection. - operationId: updateCollection + - Sources + x-rename: resume + /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 @@ -6344,20 +6657,26 @@ paths: required: true schema: type: string + - description: id of source + in: path + name: source + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateCollectionRequest' + $ref: '#/components/schemas/SuspendSourceRequest' description: JSON object - required: true + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetCollectionResponse' - description: collection updated successfully + $ref: '#/components/schemas/GetSourceResponse' + description: source was suspended "400": content: application/json: @@ -6442,43 +6761,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update Collection + summary: Suspend source ingest tags: - - Collections - x-rename: update + - Sources + x-rename: suspend x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/collections/{collection}/docs: - delete: - description: Delete documents from a collection. - operationId: deleteDocuments - parameters: - - description: Name of the workspace. - in: path - name: workspace - required: true - 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/DeleteDocumentsRequest' - description: JSON object - required: true + /v1/orgs/self/users: + get: + description: Retrieve all users for an organization. + operationId: listUsers responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeleteDocumentsResponse' - description: documents deleted successfully + $ref: '#/components/schemas/ListUsersResponse' + description: users retrieved successfully "400": content: application/json: @@ -6521,6 +6819,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: request timeout + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: conflict "415": content: application/json: @@ -6557,41 +6861,27 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Documents + summary: List Users tags: - - Documents - x-codegen-request-body-name: body - patch: - description: Update existing documents in a collection. - operationId: patchDocuments - parameters: - - description: Name of the workspace. - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: Name of the collection. - in: path - name: collection - required: true - schema: - type: string + - Users + x-rename: list + post: + description: Create a new user for an organization. + operationId: createUser requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchDocumentsRequest' - description: JSON Patch objects + $ref: '#/components/schemas/CreateUserRequest' + description: JSON object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PatchDocumentsResponse' - description: Documents patched successfully + $ref: '#/components/schemas/CreateUserResponse' + description: user created successfully "400": content: application/json: @@ -6634,12 +6924,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: request timeout - "413": + "409": content: application/json: schema: $ref: '#/components/schemas/ErrorModel' - description: content too large + description: conflict "415": content: application/json: @@ -6676,41 +6966,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Patch Documents + summary: Create User tags: - - Documents + - Users + x-rename: create x-codegen-request-body-name: body - post: - description: Add documents to a collection. - operationId: addDocuments - parameters: - - description: Name of the workspace. - in: path - name: workspace - required: true - 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/AddDocumentsRequest' - description: JSON object - required: true + /v1/orgs/self/users/self: + get: + description: Retrieve currently authenticated user. + operationId: getCurrentUser responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddDocumentsResponse' - description: documents added successfully + $ref: '#/components/schemas/User' + description: user retrieved successfully "400": content: application/json: @@ -6753,12 +7024,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: request timeout - "413": + "409": content: application/json: schema: $ref: '#/components/schemas/ErrorModel' - description: content too large + description: conflict "415": content: application/json: @@ -6795,43 +7066,20 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Add Documents + summary: Retrieve Current User tags: - - Documents - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/collections/{collection}/offsets/commit: - post: - description: Determines if the collection includes data at or after the specified - fence(s) for close read-after-write semantics. - operationId: getCollectionOffsets - parameters: - - description: name of the workspace - in: path - name: workspace - required: true - 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/GetCollectionCommitRequest' - description: JSON object - required: true + - Users + /v1/orgs/self/users/self/preferences: + get: + description: Get all notification preferences. + operationId: listUnsubscribePreferences responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetCollectionCommit' - description: Successfully returned collection commit + $ref: '#/components/schemas/ListUnsubscribePreferencesResponse' + description: Notification preferences retrieved successfully "400": content: application/json: @@ -6916,35 +7164,26 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Get Collection Commit + summary: Retrieve Notification Preferences tags: - - Collections - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/collections/{collection}/sources: - get: - description: Retrieve all sources in a collection. - operationId: listCollectionSources - parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the collection - in: path - name: collection + - Users + post: + description: Update notification preference. + operationId: updateUnsubscribePreferences + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateUnsubscribePreferencesRequest' + description: JSON Object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListSourcesResponse' - description: collection sources retrieved successfully + $ref: '#/components/schemas/UpdateUnsubscribePreferencesResponse' + description: Notification preference created successfully "400": content: application/json: @@ -7029,41 +7268,28 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List sources in collection + summary: Update Notification Preferences tags: - - Sources - x-rename: list - post: - description: Create new source in a collection. - operationId: createSource + - Users + x-codegen-request-body-name: body + /v1/orgs/self/users/{user}: + delete: + description: Delete a user from an organization. + operationId: deleteUser parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the collection + - description: user email in: path - name: collection + name: user required: true schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Source' - description: JSON object - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetSourceResponse' - description: source created successfully + $ref: '#/components/schemas/DeleteUserResponse' + description: user deleted successfully "400": content: application/json: @@ -7148,31 +7374,17 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create a source + summary: Delete User tags: - - Sources - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}: - delete: - description: Delete a collection source - operationId: deleteSource + - Users + x-rename: delete + get: + description: Retrieve user by email. + operationId: getUser parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the collection - in: path - name: collection - required: true - schema: - type: string - - description: id of source + - description: user email in: path - name: source + name: user required: true schema: type: string @@ -7181,8 +7393,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteSourceResponse' - description: source deleted successfully + $ref: '#/components/schemas/User' + description: user found "400": content: application/json: @@ -7267,40 +7479,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Collection source + summary: Retrieve User tags: - - Sources - x-rename: delete - get: - description: Get details about a collection source. - operationId: getSource + - Users + x-rename: get + post: + description: Update a user in an organization. + operationId: updateUser parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the collection + - description: email of the user to update in: path - name: collection + name: user required: true schema: type: string - - description: id of source - in: path - name: source + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateUserRequest' + description: JSON object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetSourceResponse' - description: collection retrieved successfully + $ref: '#/components/schemas/User' + description: user updated successfully "400": content: application/json: @@ -7385,41 +7591,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve source + summary: Update User tags: - - Sources - x-rename: get - /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/resume: - post: - description: Resume source ingest - operationId: resumeSource - parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the collection - in: path - name: collection - required: true - schema: - type: string - - description: id of source - in: path - name: source - required: true - schema: - type: string + - Users + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self/views: + get: + description: Retrieve all views in an organization + operationId: listViews responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetSourceResponse' - description: source was resumed + $ref: '#/components/schemas/ListViewsResponse' + description: views retrieved successfully "400": content: application/json: @@ -7504,14 +7691,14 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Resume source ingest + summary: List Views tags: - - Sources - x-rename: resume - /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source}/suspend: - post: - description: Suspend source ingest - operationId: suspendSource + - Views + x-rename: list + /v1/orgs/self/ws/{workspace}/views: + get: + description: Retrieve all views in a workspace. + operationId: workspaceViews parameters: - description: name of the workspace in: path @@ -7520,25 +7707,13 @@ paths: schema: default: commons type: string - - description: name of the collection - in: path - name: collection - required: true - schema: - type: string - - description: id of source - in: path - name: source - required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GetSourceResponse' - description: source was suspended + $ref: '#/components/schemas/ListViewsResponse' + description: views retrieved successfully "400": content: application/json: @@ -7623,14 +7798,12 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Suspend source ingest + summary: List Views in Workspace tags: - - Sources - x-rename: suspend - /v1/orgs/self/ws/{workspace}/lambdas: - get: - description: List all Query Lambdas under given workspace. - operationId: listQueryLambdasInWorkspace + - Views + post: + description: Create a view + operationId: createView parameters: - description: name of the workspace in: path @@ -7639,13 +7812,20 @@ paths: schema: default: commons type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateViewRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListQueryLambdasResponse' - description: Query Lambdas listed successfully + $ref: '#/components/schemas/CreateViewResponse' + description: view created successfully "400": content: application/json: @@ -7730,12 +7910,15 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Query Lambdas in Workspace + summary: Create View tags: - - Query Lambdas - post: - description: Create a Query Lambda in given workspace. - operationId: createQueryLambda + - Views + x-rename: create + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}/views/{view}: + delete: + description: Delete a view + operationId: deleteView parameters: - description: name of the workspace in: path @@ -7744,20 +7927,19 @@ paths: schema: default: commons type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateQueryLambdaRequest' - description: JSON object + - description: name of the view + in: path + name: view required: true + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaVersionResponse' - description: Query Lambda created successfully + $ref: '#/components/schemas/DeleteViewResponse' + description: view deleted successfully "400": content: application/json: @@ -7842,14 +8024,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Query Lambda + summary: Delete View tags: - - Query Lambdas - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}: - delete: - description: Delete a Query Lambda. - operationId: deleteQueryLambda + - Views + x-rename: delete + get: + description: Get details about a view + operationId: getView parameters: - description: name of the workspace in: path @@ -7858,9 +8039,9 @@ paths: schema: default: commons type: string - - description: name of the Query Lambda + - description: name of the view in: path - name: queryLambda + name: view required: true schema: type: string @@ -7869,8 +8050,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeleteQueryLambdaResponse' - description: Query Lambda deleted successfully + $ref: '#/components/schemas/GetViewResponse' + description: view retrieved successfully "400": content: application/json: @@ -7955,13 +8136,13 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Query Lambda + summary: Retrieve View tags: - - Query Lambdas - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/tags: - get: - description: List all tags associated with a Query Lambda - operationId: listQueryLambdaTags + - Views + x-rename: get + post: + description: Update a view + operationId: updateView parameters: - description: name of the workspace in: path @@ -7970,19 +8151,26 @@ paths: schema: default: commons type: string - - description: name of the Query Lambda + - description: name of the view in: path - name: queryLambda + 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/ListQueryLambdaTagsResponse' - description: tags listed successfully + $ref: '#/components/schemas/UpdateViewResponse' + description: view updated successfully "400": content: application/json: @@ -8067,41 +8255,22 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Query Lambda Tags + summary: Update View 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 + - Views + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self/virtualinstances: + get: + description: Retrieve all virtual instances in an organization. + operationId: listVirtualInstances responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaTagResponse' - description: tag created successfully + $ref: '#/components/schemas/ListVirtualInstancesResponse' + description: virtual instances retrieved successfully "400": content: application/json: @@ -8186,41 +8355,27 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create Query Lambda Tag + summary: List Virtual Instances 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 + - Virtual Instances + x-rename: list + post: + description: Create virtual instance + operationId: createVirtualInstance + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateVirtualInstanceRequest' + description: JSON object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaTagResponse' - description: tag deleted successfully + $ref: '#/components/schemas/CreateVirtualInstanceResponse' + description: virtual instance created successfully "400": content: application/json: @@ -8305,29 +8460,19 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Query Lambda Tag Version + summary: Create Virtual Instance tags: - - Query Lambdas - get: - description: Retrieve the Query Lambda version associated with a given tag. - operationId: getQueryLambdaTagVersion + - Virtual Instances + x-rename: create + x-codegen-request-body-name: body + /v1/orgs/self/virtualinstances/{virtualInstanceId}: + delete: + description: Delete a virtual instance. + operationId: deleteVirtualInstance 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 + - description: Virtual Instance RRN in: path - name: tag + name: virtualInstanceId required: true schema: type: string @@ -8336,8 +8481,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaTagResponse' - description: version retrieved successfully + $ref: '#/components/schemas/DeleteVirtualInstanceResponse' + description: virtual instance deleted successfully "400": content: application/json: @@ -8422,46 +8567,27 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Query Lambda Tag + summary: Delete Virtual Instance tags: - - Query Lambdas - post: - description: Execute the Query Lambda version associated with a given tag. - operationId: executeQueryLambdaByTag + - Virtual Instances + x-rename: delete + get: + description: Get details about a virtual instance. + operationId: getVirtualInstance 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: tag + - description: Virtual Instance RRN in: path - name: tag + name: virtualInstanceId required: true schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExecuteQueryLambdaRequest' - description: JSON object - required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryResponse' - description: Query Lambda executed successfully + $ref: '#/components/schemas/GetVirtualInstanceResponse' + description: virtual instance retrieved successfully "400": content: application/json: @@ -8546,41 +8672,34 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Execute Query Lambda By Tag + summary: Retrieve Virtual Instance tags: - - Query Lambdas - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/version/{version}: - delete: - description: Delete a Query Lambda version. - operationId: deleteQueryLambdaVersion + - Virtual Instances + x-rename: get + post: + description: Update the properties of a virtual instance. + operationId: setVirtualInstance parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the Query Lambda + - description: Virtual Instance RRN in: path - name: queryLambda + name: virtualInstanceId required: true schema: type: string - - description: version - in: path - name: version + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateVirtualInstanceRequest' + description: JSON object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaVersionResponse' - description: Query Lambda version deleted successfully + $ref: '#/components/schemas/UpdateVirtualInstanceResponse' + description: virtual instance updated successfully "400": content: application/json: @@ -8665,24 +8784,19 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete Query Lambda Version + summary: Update Virtual Instance tags: - - Query Lambdas - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/versions: + - Virtual Instances + x-rename: update + x-codegen-request-body-name: body + /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts: get: - description: List all versions of a Query Lambda. - operationId: listQueryLambdaVersions + description: List collection mounts for a particular VI. + operationId: listCollectionMounts parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the Query Lambda + - description: Virtual Instance RRN in: path - name: queryLambda + name: virtualInstanceId required: true schema: type: string @@ -8691,8 +8805,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ListQueryLambdaVersionsResponse' - description: versions listed successfully + $ref: '#/components/schemas/ListCollectionMountsResponse' + description: resource mounted "400": content: application/json: @@ -8777,36 +8891,24 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Query Lambda Versions + summary: List Collection Mounts tags: - - Query Lambdas + - Virtual Instances post: - description: Create a new version of a Query Lambda in given workspace. - operationId: updateQueryLambda + description: Mount a collection to this virtual instance. + operationId: mountCollection parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the Query Lambda + - description: Virtual Instance RRN in: path - name: queryLambda + name: virtualInstanceId required: true schema: type: string - - description: Create a new Query Lambda if one does not exist already. - in: query - name: create - schema: - type: boolean requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateQueryLambdaRequest' + $ref: '#/components/schemas/CreateCollectionMountRequest' description: JSON object required: true responses: @@ -8814,8 +8916,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaVersionResponse' - description: Query Lambda updated successfully + $ref: '#/components/schemas/CreateCollectionMountsResponse' + description: collection mounted "400": content: application/json: @@ -8900,31 +9002,23 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update Query Lambda + summary: Mount Collections tags: - - Query Lambdas + - Virtual Instances x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/versions/{version}: - get: - description: Retrieve details for a specified version of a Query Lambda. - operationId: getQueryLambdaVersion + /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}: + delete: + description: Unmount a collection from this virtual instance. + operationId: unmountCollection parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the Query Lambda + - description: Virtual Instance RRN in: path - name: queryLambda + name: virtualInstanceId required: true schema: type: string - - description: version - in: path - name: version + - in: path + name: collectionPath required: true schema: type: string @@ -8933,8 +9027,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/QueryLambdaVersionResponse' - description: Query Lambda retrieved successfully + $ref: '#/components/schemas/CollectionMountResponse' + description: collection unmounted "400": content: application/json: @@ -9019,46 +9113,31 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve Query Lambda Version + summary: Unmount Collection tags: - - Query Lambdas - post: - description: Execute a particular version of a Query Lambda. - operationId: executeQueryLambda + - Virtual Instances + get: + description: Retrieve a mount on this virtual instance. + operationId: getCollectionMount parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the Query Lambda + - description: Virtual Instance RRN in: path - name: queryLambda + name: virtualInstanceId required: true schema: type: string - - description: version - in: path - name: version + - in: path + name: collectionPath required: true schema: type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExecuteQueryLambdaRequest' - description: JSON object - required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryResponse' - description: Query Lambda executed successfully + $ref: '#/components/schemas/CollectionMountResponse' + description: collection unmounted "400": content: application/json: @@ -9143,29 +9222,40 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Execute Query Lambda By Version + summary: Get Collection Mount tags: - - Query Lambdas - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/views: - get: - description: Retrieve all views in a workspace. - operationId: workspaceViews + - Virtual Instances + /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}/offsets/commit: + post: + description: Determines if the collection includes data at or after the specified + fence(s) for close read-after-write semantics. + operationId: getMountOffsets parameters: - - description: name of the workspace + - description: Virtual Instance RRN in: path - name: workspace + name: virtualInstanceId + required: true + schema: + type: string + - in: path + name: collectionPath required: true schema: - default: commons type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetCollectionCommitRequest' + description: JSON object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ListViewsResponse' - description: views retrieved successfully + $ref: '#/components/schemas/GetCollectionCommit' + description: Successfully returned collection commit "400": content: application/json: @@ -9250,34 +9340,29 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: List Views in Workspace + summary: Get Collection Commit tags: - - Views - post: - description: Create a view - operationId: createView + - Virtual Instances + x-codegen-request-body-name: body + /v1/orgs/self/virtualinstances/{virtualInstanceId}/queries: + get: + description: Lists actively queued and running queries for a particular Virtual + Instance. + operationId: getVirtualInstanceQueries parameters: - - description: name of the workspace + - description: Virtual Instance RRN in: path - name: workspace + name: virtualInstanceId required: true schema: - default: commons type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateViewRequest' - description: JSON object - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/CreateViewResponse' - description: view created successfully + $ref: '#/components/schemas/ListQueriesResponse' + description: successfully fetched queries "400": content: application/json: @@ -9362,36 +9447,33 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Create View + summary: List Queries tags: - - Views - x-rename: create - x-codegen-request-body-name: body - /v1/orgs/self/ws/{workspace}/views/{view}: - delete: - description: Delete a view - operationId: deleteView + - Virtual Instances + post: + description: Make a SQL query to Rockset. + operationId: queryVirtualInstance parameters: - - description: name of the workspace + - description: Virtual Instance RRN in: path - name: workspace + name: virtualInstanceId required: true schema: - default: commons type: string - - description: name of the view - in: path - name: view + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/QueryRequest' + description: JSON object required: true - schema: - type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/DeleteViewResponse' - description: view deleted successfully + $ref: '#/components/schemas/QueryResponse' + description: query executed successfully "400": content: application/json: @@ -9476,24 +9558,18 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Delete View + summary: Execute SQL Query tags: - - Views - x-rename: delete - get: - description: Get details about a view - operationId: getView + - Virtual Instances + x-codegen-request-body-name: body + /v1/orgs/self/virtualinstances/{virtualInstanceId}/resume: + post: + description: Resume a virtual instance. + operationId: resumeVirtualInstance parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the view + - description: Virtual Instance RRN in: path - name: view + name: virtualInstanceId required: true schema: type: string @@ -9502,8 +9578,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetViewResponse' - description: view retrieved successfully + $ref: '#/components/schemas/ResumeVirtualInstanceResponse' + description: virtual instance resumed successfully "400": content: application/json: @@ -9588,41 +9664,27 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Retrieve View + summary: Resume Virtual Instance tags: - - Views - x-rename: get + - Virtual Instances + /v1/orgs/self/virtualinstances/{virtualInstanceId}/suspend: post: - description: Update a view - operationId: updateView + description: Suspend a virtual instance. + operationId: suspendVirtualInstance parameters: - - description: name of the workspace - in: path - name: workspace - required: true - schema: - default: commons - type: string - - description: name of the view + - description: Virtual Instance RRN in: path - name: view + name: virtualInstanceId 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 + $ref: '#/components/schemas/SuspendVirtualInstanceResponse' + description: virtual instance suspended successfully "400": content: application/json: @@ -9707,36 +9769,20 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Update View + summary: Suspend Virtual Instance tags: - - Views - x-rename: update - x-codegen-request-body-name: body - /v1/public/shared_lambdas/{public_access_id}: - post: - description: Execute a public query lambda (full version). - operationId: executePublicQueryLambdaWithParams - parameters: - - description: public access ID of the query lambda - in: path - name: public_access_id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExecutePublicQueryLambdaRequest' - description: JSON object - required: false + - Virtual Instances + /v1/orgs/self/ws: + get: + description: List all workspaces in an organization. + operationId: listWorkspaces responses: "200": content: application/json: schema: - $ref: '#/components/schemas/QueryResponse' - description: Query Lambda executed successfully + $ref: '#/components/schemas/ListWorkspacesResponse' + description: workspaces retrieved successfully "400": content: application/json: @@ -9821,98 +9867,417 @@ paths: schema: $ref: '#/components/schemas/ErrorModel' description: not ready - summary: Execute a Public Query Lambda + summary: List Workspaces tags: - - Shared Lambdas - x-codegen-request-body-name: body -components: - schemas: - AddDocumentsRequest: - example: - data: "[{ \"field\": \"value\" }]" - properties: - data: - description: Array of documents to be added to the collection. - example: "[{ \"field\": \"value\" }]" - items: - properties: {} - type: object - type: array - required: - - data - type: object - AddDocumentsResponse: - example: - last_offset: f1:0:0:0:0 - data: - - patch_id: 486gsg8 - _collection: customers - _id: 2cd61e3b - error: - trace_id: trace_id - query_id: query_id - error_id: error_id - line: 6 - column: 0 - message: collection not found - type: INVALIDINPUT - status: ADDED - - patch_id: 486gsg8 - _collection: customers - _id: 2cd61e3b - error: - trace_id: trace_id - query_id: query_id - error_id: error_id - line: 6 - column: 0 - message: collection not found - type: INVALIDINPUT - status: ADDED - properties: - data: - description: Information about the added documents. - items: - $ref: '#/components/schemas/DocumentStatus' - type: array - last_offset: - description: A string representing the collection offset after completing - the write. - example: f1:0:0:0:0 - type: string - type: object - Alias: - example: - workspace: commons - collections: "[\"commons.foo\", \"prod.demo\"]" - creator_email: xyz@rockset.com - name: demo - created_at: 2001-08-28T00:23:41Z - 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. - example: "[\"commons.foo\", \"prod.demo\"]" - items: - type: string - type: array - 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. + - Workspaces + x-rename: list + post: + description: Create a new workspace. + operationId: createWorkspace + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateWorkspaceRequest' + description: workspace details + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CreateWorkspaceResponse' + description: workspace 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 + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: conflict + "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 Workspace + tags: + - Workspaces + x-rename: create + x-codegen-request-body-name: body + /v1/orgs/self/ws/{workspace}: + delete: + description: Remove a workspace. + operationId: deleteWorkspace + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons type: string - creator_email: - description: Email of the creator. - example: xyz@rockset.com + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteWorkspaceResponse' + description: workspace 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 + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: conflict + "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 Workspace + tags: + - Workspaces + x-rename: delete + get: + description: Get information about a single workspace. + operationId: getWorkspace + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons type: string - description: - description: Alias description. + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetWorkspaceResponse' + description: workspace 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 + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorModel' + description: conflict + "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 Workspace + tags: + - Workspaces + x-rename: get +components: + schemas: + AddDocumentsRequest: + example: + data: "[{ \"field\": \"value\" }]" + properties: + data: + description: Array of documents to be added to the collection. + example: "[{ \"field\": \"value\" }]" + items: + properties: {} + type: object + type: array + required: + - data + type: object + AddDocumentsResponse: + example: + last_offset: f1:0:0:0:0 + data: + - patch_id: 486gsg8 + _collection: customers + _id: 2cd61e3b + error: + trace_id: trace_id + query_id: query_id + error_id: error_id + line: 6 + column: 0 + message: collection not found + type: INVALIDINPUT + status: ADDED + - patch_id: 486gsg8 + _collection: customers + _id: 2cd61e3b + error: + trace_id: trace_id + query_id: query_id + error_id: error_id + line: 6 + column: 0 + message: collection not found + type: INVALIDINPUT + status: ADDED + properties: + data: + description: Information about the added documents. + items: + $ref: '#/components/schemas/DocumentStatus' + type: array + last_offset: + description: A string representing the collection offset after completing + the write. + example: f1:0:0:0:0 + type: string + type: object + Alias: + example: + workspace: commons + collections: "[\"commons.foo\", \"prod.demo\"]" + creator_email: xyz@rockset.com + name: demo + created_at: 2001-08-28T00:23:41Z + 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. + example: "[\"commons.foo\", \"prod.demo\"]" + items: + type: string + type: array + 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 + type: string + description: + description: Alias description. example: alias referencing collection in workspace type: string modified_at: @@ -10333,6 +10698,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -10370,6 +10737,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -10422,11 +10791,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -10483,6 +10855,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -10520,6 +10894,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -10572,11 +10948,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -10631,6 +11010,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -10642,6 +11022,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -10783,6 +11164,10 @@ components: example: 2592000 format: int64 type: integer + rrn: + description: Collection RRN. + example: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 + type: string sources: description: List of sources from which collection ingests. items: @@ -10807,6 +11192,13 @@ components: - UNKNOWN example: READY type: string + storage_compression_type: + description: RocksDB storage compression type. + enum: + - LZ4 + - ZSTD + - UNKNOWN + type: string workspace: description: Name of the workspace that the collection is in. example: commons @@ -11129,6 +11521,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -11166,6 +11560,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -11218,11 +11614,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -11279,6 +11678,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -11316,6 +11717,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -11368,11 +11771,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -11467,7 +11873,7 @@ components: \ time." example: 1000000 format: int64 - minimum: 1 + minimum: 3600 type: integer source_download_soft_limit_bytes: description: Soft ingest limit for this collection. @@ -11515,6 +11921,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -11552,6 +11960,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -11604,11 +12014,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -11665,6 +12078,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -11702,6 +12117,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -11754,11 +12171,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -11813,6 +12233,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -11824,6 +12245,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -11976,6 +12398,21 @@ components: aws_role_arn: arn:aws:iam::2378964092:role/rockset-role mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- dynamodb: s3_export_bucket_name: s3_export_bucket_name aws_access_key: @@ -12092,6 +12529,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -12129,6 +12568,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -12181,11 +12622,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -12242,6 +12686,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -12279,6 +12725,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -12331,11 +12779,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -12390,6 +12841,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -12401,6 +12853,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -12512,6 +12965,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -12549,6 +13004,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -12601,11 +13058,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -12662,6 +13122,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -12699,6 +13161,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -12751,11 +13215,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -12810,6 +13277,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -12821,6 +13289,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -12933,6 +13402,21 @@ components: name: event-logs mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- properties: data: $ref: '#/components/schemas/Integration' @@ -13326,6 +13810,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -13363,6 +13849,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -13415,11 +13903,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -13476,6 +13967,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -13513,6 +14006,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -13565,11 +14060,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -13624,6 +14122,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -13635,6 +14134,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -13865,6 +14365,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -13902,6 +14404,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -13954,11 +14458,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -14015,6 +14522,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -14052,6 +14561,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -14104,11 +14615,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -14163,6 +14677,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -14174,6 +14689,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -14285,6 +14801,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -14322,6 +14840,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -14374,11 +14894,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -14435,6 +14958,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -14472,6 +14997,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -14524,11 +15051,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -14583,6 +15113,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -14594,6 +15125,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -14706,6 +15238,21 @@ components: name: event-logs mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- properties: data: $ref: '#/components/schemas/Integration' @@ -14758,6 +15305,8 @@ components: s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -14795,6 +15344,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -14847,11 +15398,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -15457,6 +16011,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -15494,6 +16050,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -15546,11 +16104,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -15607,6 +16168,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -15644,6 +16207,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -15696,11 +16261,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -15755,6 +16323,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -15766,6 +16335,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -15931,6 +16501,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -15968,6 +16540,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -16020,11 +16594,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -16081,6 +16658,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -16118,6 +16697,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -16170,11 +16751,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -16229,6 +16813,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -16240,6 +16825,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -16351,6 +16937,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -16388,6 +16976,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -16440,11 +17030,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -16501,6 +17094,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -16538,6 +17133,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -16590,11 +17187,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -16649,6 +17249,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -16660,6 +17261,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -16772,6 +17374,21 @@ components: name: event-logs mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- properties: data: $ref: '#/components/schemas/Integration' @@ -16810,6 +17427,8 @@ components: s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -16847,6 +17466,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -16899,11 +17520,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -17127,6 +17751,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -17164,6 +17790,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -17216,11 +17844,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -17277,6 +17908,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -17314,6 +17947,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -17366,11 +18001,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -17425,6 +18063,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -17436,6 +18075,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -17547,6 +18187,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -17584,6 +18226,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -17636,11 +18280,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -17697,6 +18344,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -17734,6 +18383,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -17786,11 +18437,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -17845,6 +18499,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -17856,6 +18511,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -17968,6 +18624,21 @@ components: name: event-logs mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- properties: azure_blob_storage: $ref: '#/components/schemas/AzureBlobStorageIntegration' @@ -18220,6 +18891,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -18257,6 +18930,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -18309,11 +18984,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -18370,6 +19048,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -18407,6 +19087,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -18459,11 +19141,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -18518,6 +19203,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -18529,6 +19215,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -18640,6 +19327,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -18677,6 +19366,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -18729,11 +19420,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -18790,6 +19484,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -18827,6 +19523,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -18879,11 +19577,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -18938,6 +19639,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -18949,6 +19651,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -19117,6 +19820,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -19154,6 +19859,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -19206,11 +19913,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -19267,6 +19977,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -19304,6 +20016,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -19356,11 +20070,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -19415,6 +20132,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -19426,6 +20144,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -19537,6 +20256,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -19574,6 +20295,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -19626,11 +20349,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -19687,6 +20413,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -19724,6 +20452,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -19776,11 +20506,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -19835,6 +20568,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -19846,6 +20580,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -19958,6 +20693,21 @@ components: name: event-logs mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- - owner_email: abc@rockset.com s3: aws_access_key: @@ -20031,6 +20781,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -20068,6 +20820,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -20120,11 +20874,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -20181,6 +20938,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -20218,6 +20977,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -20270,11 +21031,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -20329,6 +21093,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -20340,6 +21105,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -20451,6 +21217,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -20488,6 +21256,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -20540,11 +21310,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -20601,6 +21374,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -20638,6 +21413,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -20690,11 +21467,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -20749,6 +21529,7 @@ components: message: error 403 forbidden suspended_at: 2019-01-15T21:48:23Z insert_only: true + storage_compression_type: LZ4 clustering_key: - keys: "[\"value1\", \"value2\"]" type: AUTO @@ -20760,6 +21541,7 @@ components: description: transactions from stores worldwide created_by: hello@rockset.com created_by_apikey_name: created_by_apikey_name + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 field_mappings: - output_field: on_error: SKIP @@ -20872,6 +21654,21 @@ components: name: event-logs mongodb: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- properties: data: description: List of integration objects. @@ -20930,11 +21727,13 @@ components: $ref: '#/components/schemas/QueryInfo' type: array type: object - ListQueryLambdaTagsResponse: + ListQueryLambdasResponse: example: data: - - tag_name: production - version: + - last_updated: 2001-08-28T00:23:41Z + last_updated_by: ..@rockset.com + workspace: commons + latest_version: workspace: commons public_access_id: public_access_id collections: @@ -20961,8 +21760,15 @@ components: type: string value: 85beb391 query: SELECT 'Foo' - - tag_name: production - version: + collections: + - collections + - collections + name: myQuery + version_count: 1 + - last_updated: 2001-08-28T00:23:41Z + last_updated_by: ..@rockset.com + workspace: commons + latest_version: workspace: commons public_access_id: public_access_id collections: @@ -20989,82 +21795,23 @@ components: type: string value: 85beb391 query: SELECT 'Foo' + collections: + - collections + - collections + name: myQuery + version_count: 1 properties: data: - description: List of all tags associated with a Query Lambda. + description: List of all Query Lambdas. items: - $ref: '#/components/schemas/QueryLambdaTag' + $ref: '#/components/schemas/QueryLambda' type: array type: object - ListQueryLambdaVersionsResponse: + ListQueryLambdaTagsResponse: example: data: - - workspace: commons - public_access_id: public_access_id - collections: - - collections - - collections - stats: - last_executed_by: '...@rockset.com' - last_execution_error_message: "[error message]" - last_execution_error: 2001-08-28T00:23:41Z - last_executed: 2001-08-28T00:23:41Z - name: myQuery - created_at: 2001-08-28T00:23:41Z - description: production version foo - state: ACTIVE - created_by: ..@rockset.com - version: acb99feg92bcaf - created_by_apikey_name: created_by_apikey_name - sql: - default_parameters: - - name: _id - type: string - value: 85beb391 - - name: _id - type: string - value: 85beb391 - query: SELECT 'Foo' - - workspace: commons - public_access_id: public_access_id - collections: - - collections - - collections - stats: - last_executed_by: '...@rockset.com' - last_execution_error_message: "[error message]" - last_execution_error: 2001-08-28T00:23:41Z - last_executed: 2001-08-28T00:23:41Z - name: myQuery - created_at: 2001-08-28T00:23:41Z - description: production version foo - state: ACTIVE - created_by: ..@rockset.com - version: acb99feg92bcaf - created_by_apikey_name: created_by_apikey_name - sql: - default_parameters: - - name: _id - type: string - value: 85beb391 - - name: _id - type: string - value: 85beb391 - query: SELECT 'Foo' - properties: - data: - description: List of all versions for a particular Query Lambda. - items: - $ref: '#/components/schemas/QueryLambdaVersion' - type: array - type: object - ListQueryLambdasResponse: - example: - data: - - last_updated: 2001-08-28T00:23:41Z - last_updated_by: ..@rockset.com - workspace: commons - latest_version: + - tag_name: production + version: workspace: commons public_access_id: public_access_id collections: @@ -21091,15 +21838,8 @@ components: type: string value: 85beb391 query: SELECT 'Foo' - collections: - - collections - - collections - name: myQuery - version_count: 1 - - last_updated: 2001-08-28T00:23:41Z - last_updated_by: ..@rockset.com - workspace: commons - latest_version: + - tag_name: production + version: workspace: commons public_access_id: public_access_id collections: @@ -21126,16 +21866,73 @@ components: type: string value: 85beb391 query: SELECT 'Foo' + properties: + data: + description: List of all tags associated with a Query Lambda. + items: + $ref: '#/components/schemas/QueryLambdaTag' + type: array + type: object + ListQueryLambdaVersionsResponse: + example: + data: + - workspace: commons + public_access_id: public_access_id collections: - collections - collections + stats: + last_executed_by: '...@rockset.com' + last_execution_error_message: "[error message]" + last_execution_error: 2001-08-28T00:23:41Z + last_executed: 2001-08-28T00:23:41Z name: myQuery - version_count: 1 + created_at: 2001-08-28T00:23:41Z + description: production version foo + state: ACTIVE + created_by: ..@rockset.com + version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name + sql: + default_parameters: + - name: _id + type: string + value: 85beb391 + - name: _id + type: string + value: 85beb391 + query: SELECT 'Foo' + - workspace: commons + public_access_id: public_access_id + collections: + - collections + - collections + stats: + last_executed_by: '...@rockset.com' + last_execution_error_message: "[error message]" + last_execution_error: 2001-08-28T00:23:41Z + last_executed: 2001-08-28T00:23:41Z + name: myQuery + created_at: 2001-08-28T00:23:41Z + description: production version foo + state: ACTIVE + created_by: ..@rockset.com + version: acb99feg92bcaf + created_by_apikey_name: created_by_apikey_name + sql: + default_parameters: + - name: _id + type: string + value: 85beb391 + - name: _id + type: string + value: 85beb391 + query: SELECT 'Foo' properties: data: - description: List of all Query Lambdas. + description: List of all versions for a particular Query Lambda. items: - $ref: '#/components/schemas/QueryLambda' + $ref: '#/components/schemas/QueryLambdaVersion' type: array type: object ListRolesResponse: @@ -21178,6 +21975,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -21215,6 +22014,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -21267,11 +22068,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -21328,6 +22132,8 @@ components: - s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -21365,6 +22171,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -21417,11 +22225,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -21631,11 +22442,28 @@ components: MongoDbIntegration: example: connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- properties: connection_uri: description: MongoDB connection URI string. example: mongodb+srv://:@server.example.com/ type: string + tls: + $ref: '#/components/schemas/TLSConfig' required: - connection_uri type: object @@ -21960,6 +22788,7 @@ components: - DELETE_COLLECTION_WS - CREATE_ALIAS_WS - DELETE_ALIAS_WS + - CREATE_SNAPSHOT_WS - LIST_RESOURCES_WS - CREATE_QUERY_LAMBDA_WS - DELETE_QUERY_LAMBDA_WS @@ -22826,6 +23655,8 @@ components: s3: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -22863,6 +23694,8 @@ components: avro: "{}" azure_blob_storage: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -22915,11 +23748,14 @@ components: gcs: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys pattern: prefix/to/**/keys/*.format object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z kafka: offset_reset_policy: EARLIEST consumer_group_id: org-collection @@ -23005,6 +23841,11 @@ components: $ref: '#/components/schemas/SourceKinesis' mongodb: $ref: '#/components/schemas/SourceMongoDb' + resume_at: + description: "ISO-8601 date when source would be auto resumed, if suspended" + example: 2019-01-15T21:48:23Z + readOnly: true + type: string s3: $ref: '#/components/schemas/SourceS3' snowflake: @@ -23019,9 +23860,32 @@ components: system: $ref: '#/components/schemas/SourceSystem' type: object + SourceAzBlobStorageBase: + example: + settings: + azblob_scan_frequency: 5min + properties: + settings: + $ref: '#/components/schemas/SourceAzBlobStorageSettings' + type: object + SourceAzBlobStorageSettings: + example: + azblob_scan_frequency: 5min + properties: + azblob_scan_frequency: + description: "Rockset scans an Azure blob Storage container based on a defined\ + \ time interval. The scan frequency determines the length of time between\ + \ a new scan and the previous scan. If the previous scan finds new objects\ + \ or updates to existing objects, Rockset immediately scans the bucket\ + \ again after processing changes from the previous scan." + example: 5min + type: string + type: object SourceAzureBlobStorage: example: container: server-logs + settings: + azblob_scan_frequency: 5min prefix: prefix/to/blobs pattern: prefix/to/**/keys/*.format blob_bytes_total: 0 @@ -23053,6 +23917,8 @@ components: description: Prefix that selects blobs to ingest. example: prefix/to/blobs type: string + settings: + $ref: '#/components/schemas/SourceAzBlobStorageSettings' type: object SourceAzureEventHubs: example: @@ -23107,6 +23973,43 @@ components: example: rockset-topic type: string type: object + SourceBase: + example: + s3: + settings: + s3_scan_frequency: 5min + gcs: + settings: + gcs_scan_frequency: 5min + azure_blob_storage: + settings: + azblob_scan_frequency: 5min + 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 + properties: + azure_blob_storage: + $ref: '#/components/schemas/SourceAzBlobStorageBase' + dynamodb: + $ref: '#/components/schemas/SourceDynamoDb' + gcs: + $ref: '#/components/schemas/SourceGcsBase' + s3: + $ref: '#/components/schemas/SourceS3Base' + type: object SourceDynamoDb: example: aws_region: us-east-2 @@ -23177,6 +24080,8 @@ components: example: bucket: server-logs object_count_downloaded: 2 + settings: + gcs_scan_frequency: 5min object_count_total: 7 object_bytes_downloaded: 5 prefix: prefix/to/keys @@ -23212,6 +24117,29 @@ components: description: Prefix that selects keys to ingest. example: prefix/to/keys type: string + settings: + $ref: '#/components/schemas/SourceGcsSettings' + type: object + SourceGcsBase: + example: + settings: + gcs_scan_frequency: 5min + properties: + settings: + $ref: '#/components/schemas/SourceGcsSettings' + type: object + SourceGcsSettings: + example: + gcs_scan_frequency: 5min + properties: + gcs_scan_frequency: + description: "Rockset scans a GCS bucket based on a defined time interval.\ + \ The scan frequency determines the length of time between a new scan\ + \ and the previous scan. If the previous scan finds new objects or updates\ + \ to existing objects, Rockset immediately scans the bucket again after\ + \ processing changes from the previous scan." + example: 5min + type: string type: object SourceKafka: example: @@ -23327,6 +24255,8 @@ components: example: bucket: s3://customer-account-info object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min object_count_total: 4 prefixes: "[\"/transactions\", \"/stores\"]" object_bytes_downloaded: 9 @@ -23375,18 +24305,38 @@ components: description: AWS region containing source bucket. example: us-west-2 type: string + settings: + $ref: '#/components/schemas/SourceS3Settings' required: - bucket type: object - SourceSnapshot: + SourceS3Base: + example: + settings: + s3_scan_frequency: 5min properties: - source_collection_path: - description: Path of source collection to restore the snapshot from. - example: commons.foo + settings: + $ref: '#/components/schemas/SourceS3Settings' + type: object + SourceS3Settings: + example: + s3_scan_frequency: 5min + properties: + s3_scan_frequency: + description: "Rockset scans an S3 bucket based on a defined time interval.\ + \ The scan frequency determines the length of time between a new scan\ + \ and the previous scan. If the previous scan finds new objects or updates\ + \ to existing objects, Rockset immediately scans the bucket again after\ + \ processing changes from the previous scan." + example: 5min type: string - source_snapshot_id: - description: Snapshot id of the snapshot that the new collection will be - created from. + type: object + SourceSnapshot: + properties: + source_snapshot_rrn: + description: RRN of the snapshot that the new collection will be created + from. + example: rrn:snap:use1a1:123e4567-e89b-12d3-a456-556642440000 type: string type: object SourceSnowflake: @@ -23818,6 +24768,15 @@ components: example: EXPORTING_TO_S3 type: string type: object + SuspendSourceRequest: + example: + resume_after_duration: 30min + properties: + resume_after_duration: + description: duration to suspend source; 1h is the default + example: 30min + type: string + type: object SuspendVirtualInstanceResponse: example: data: @@ -23848,6 +24807,63 @@ components: data: $ref: '#/components/schemas/VirtualInstance' type: object + TLSConfig: + example: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + properties: + ca_cert: + description: "PEM-formatted certificate chain of the Certificate Authority\ + \ used to verify remote server. If empty, Rockset, will use publicly trusted\ + \ CAs" + example: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + type: string + client_cert: + description: PEM-formatted certificate chain to use for client authentication + example: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + type: string + client_cert_expiry: + description: Expiration date of the client certificate (represented as number + of ms since epoch) + example: 1695426751 + format: int64 + readOnly: true + type: integer + client_cert_subject: + description: "Subject of the client certificate, containing common name\ + \ and other attributes" + example: "CN=Sample Cert, OU=R&D, O=Company Ltd." + readOnly: true + type: string + client_key: + description: PEM-formatted private key to be used for client authentication + example: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + type: string + required: + - client_cert + - client_key + type: object UnsubscribePreference: description: Notification preferences for the user. example: @@ -23904,20 +24920,1099 @@ components: last_access_time: 2001-08-28T00:23:41Z properties: data: - $ref: '#/components/schemas/ApiKey' - type: object - UpdateCollectionRequest: - example: - field_mapping_query: - sql: sql - description: transactions from stores worldwide - properties: - description: - description: Updated text describing the collection. - example: transactions from stores worldwide - type: string - field_mapping_query: - $ref: '#/components/schemas/FieldMappingQuery' + $ref: '#/components/schemas/ApiKey' + type: object + UpdateCollectionRequest: + example: + field_mapping_query: + sql: sql + description: transactions from stores worldwide + properties: + description: + description: Updated text describing the collection. + example: transactions from stores worldwide + type: string + field_mapping_query: + $ref: '#/components/schemas/FieldMappingQuery' + type: object + UpdateIntegrationRequest: + example: + s3: + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + snowflake: + user_role: user_role + password: password + snowflake_url: acme-marketing-test-account.snowflakecomputing.com + default_warehouse: default_warehouse + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + s3_export_path: s3://bucket/prefix + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + username: username + azure_event_hubs: + connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= + gcs: + gcp_service_account: + service_account_key_file_json: service_account_key_file_json + kafka: + source_status_by_topic: "{\"topic-a\": \"DORMANT\"}" + kafka_topic_names: + - kafka_topic_names + - kafka_topic_names + schema_registry_config: + secret: secret + key: key + url: url + security_config: + api_key: api_key + secret: secret + kafka_data_format: JSON + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + bootstrap_servers: localhost:9092 + connection_string: connection_string + use_v3: true + azure_blob_storage: + connection_string: |- + BlobEndpoint=https://.blob.core.windows.net; + SharedAccessSignature= + azure_service_bus: + connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= + description: AWS account with event data for the data science team. + kinesis: + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + mongodb: + connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + dynamodb: + s3_export_bucket_name: s3_export_bucket_name + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + properties: + azure_blob_storage: + $ref: '#/components/schemas/AzureBlobStorageIntegration' + azure_event_hubs: + $ref: '#/components/schemas/AzureEventHubsIntegration' + azure_service_bus: + $ref: '#/components/schemas/AzureServiceBusIntegration' + description: + description: Longer explanation for the integration. + example: AWS account with event data for the data science team. + type: string + dynamodb: + $ref: '#/components/schemas/DynamodbIntegration' + gcs: + $ref: '#/components/schemas/GcsIntegration' + kafka: + $ref: '#/components/schemas/KafkaIntegration' + kinesis: + $ref: '#/components/schemas/KinesisIntegration' + mongodb: + $ref: '#/components/schemas/MongoDbIntegration' + s3: + $ref: '#/components/schemas/S3Integration' + snowflake: + $ref: '#/components/schemas/SnowflakeIntegration' + type: object + UpdateIntegrationResponse: + example: + data: + owner_email: abc@rockset.com + s3: + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + snowflake: + user_role: user_role + password: password + snowflake_url: acme-marketing-test-account.snowflakecomputing.com + default_warehouse: default_warehouse + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + s3_export_path: s3://bucket/prefix + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + username: username + azure_blob_storage: + connection_string: |- + BlobEndpoint=https://.blob.core.windows.net; + SharedAccessSignature= + created_at: 2001-08-28T00:23:41Z + description: AWS account with event data for the data science team. + created_by: hello@rockset.com + kinesis: + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + dynamodb: + s3_export_bucket_name: s3_export_bucket_name + aws_access_key: + aws_access_key_id: AKIAIOSFODNN7EXAMPLE + aws_secret_access_key: wJal.... + 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: + - field_mapping_query: + sql: sql + workspace: commons + aliases: + - workspace: commons + collections: "[\"commons.foo\", \"prod.demo\"]" + creator_email: xyz@rockset.com + name: demo + created_at: 2001-08-28T00:23:41Z + 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 + name: demo + created_at: 2001-08-28T00:23:41Z + 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 + object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min + 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 + settings: + azblob_scan_frequency: 5min + 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 + settings: + gcs_scan_frequency: 5min + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z + 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 + ingest_transformation: + sql: sql + 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 + settings: + s3_scan_frequency: 5min + 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 + settings: + azblob_scan_frequency: 5min + 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 + settings: + gcs_scan_frequency: 5min + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z + 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 + ingest_transformation: + sql: sql + 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 + insert_only: true + storage_compression_type: LZ4 + clustering_key: + - keys: "[\"value1\", \"value2\"]" + type: AUTO + field_name: address.city.zipcode + - keys: "[\"value1\", \"value2\"]" + type: AUTO + field_name: address.city.zipcode + 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 + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 + field_mappings: + - output_field: + on_error: SKIP + value: + sql: SHA256() + field_name: zip_hash + name: myTestMapping + input_fields: + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + is_drop_all_fields: true + - output_field: + on_error: SKIP + value: + sql: SHA256() + field_name: zip_hash + name: myTestMapping + input_fields: + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + is_drop_all_fields: true + read_only: true + stats: + doc_count: 2145 + inverted_index_size: 123456 + last_updated_ms: 1535101094433 + total_size: 123456 + bulk_bytes_inserted: 1 + purged_doc_count: 2145 + purged_doc_size: 123456 + range_index_size: 123456 + fill_progress: 0.6 + bytes_overwritten: 123456 + bytes_inserted: 123456 + total_index_size: 123456 + column_index_size: 123456 + last_queried_ms: 1535101119334 + row_index_size: 123456 + bulk_bytes_overwritten: 1 + bulk_stats: + - transformation_compute_ms: 50000 + index_compute_ms: 100000 + indexing_stage_done_at: 2001-08-28T00:23:41Z + data_downloaded_bytes: 10000000 + pre_index_size_bytes: 8000000 + data_indexed_bytes: 8000000 + total_index_size_bytes: 10000000 + data_indexed_throughput_bytes: 800000.5 + downloading_stage_done_at: 2001-08-28T00:23:41Z + download_compute_ms: 50000 + provisioning_stage_done_at: 2001-08-28T00:23:41Z + started_at: 2001-08-28T00:23:41Z + documents_downloaded: 10000 + finalizing_stage_done_at: 2001-08-28T00:23:41Z + initializing_stage_done_at: 2001-08-28T00:23:41Z + - transformation_compute_ms: 50000 + index_compute_ms: 100000 + indexing_stage_done_at: 2001-08-28T00:23:41Z + data_downloaded_bytes: 10000000 + pre_index_size_bytes: 8000000 + data_indexed_bytes: 8000000 + total_index_size_bytes: 10000000 + data_indexed_throughput_bytes: 800000.5 + downloading_stage_done_at: 2001-08-28T00:23:41Z + download_compute_ms: 50000 + provisioning_stage_done_at: 2001-08-28T00:23:41Z + started_at: 2001-08-28T00:23:41Z + documents_downloaded: 10000 + finalizing_stage_done_at: 2001-08-28T00:23:41Z + initializing_stage_done_at: 2001-08-28T00:23:41Z + retention_secs: 2592000 + name: global-transactions + status: READY + - field_mapping_query: + sql: sql + workspace: commons + aliases: + - workspace: commons + collections: "[\"commons.foo\", \"prod.demo\"]" + creator_email: xyz@rockset.com + name: demo + created_at: 2001-08-28T00:23:41Z + 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 + name: demo + created_at: 2001-08-28T00:23:41Z + 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 + object_count_downloaded: 2 + settings: + s3_scan_frequency: 5min + 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 + settings: + azblob_scan_frequency: 5min + 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 + settings: + gcs_scan_frequency: 5min + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z + 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 + ingest_transformation: + sql: sql + 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 + settings: + s3_scan_frequency: 5min + 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 + settings: + azblob_scan_frequency: 5min + 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 + settings: + gcs_scan_frequency: 5min + object_count_total: 7 + object_bytes_downloaded: 5 + prefix: prefix/to/keys + pattern: prefix/to/**/keys/*.format + object_bytes_total: 5 + resume_at: 2019-01-15T21:48:23Z + 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 + ingest_transformation: + sql: sql + 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 + insert_only: true + storage_compression_type: LZ4 + clustering_key: + - keys: "[\"value1\", \"value2\"]" + type: AUTO + field_name: address.city.zipcode + - keys: "[\"value1\", \"value2\"]" + type: AUTO + field_name: address.city.zipcode + 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 + rrn: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000 + field_mappings: + - output_field: + on_error: SKIP + value: + sql: SHA256() + field_name: zip_hash + name: myTestMapping + input_fields: + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + is_drop_all_fields: true + - output_field: + on_error: SKIP + value: + sql: SHA256() + field_name: zip_hash + name: myTestMapping + input_fields: + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + - is_drop: true + if_missing: SKIP + param: zip + field_name: address.city.zipcode + is_drop_all_fields: true + read_only: true + stats: + doc_count: 2145 + inverted_index_size: 123456 + last_updated_ms: 1535101094433 + total_size: 123456 + bulk_bytes_inserted: 1 + purged_doc_count: 2145 + purged_doc_size: 123456 + range_index_size: 123456 + fill_progress: 0.6 + bytes_overwritten: 123456 + bytes_inserted: 123456 + total_index_size: 123456 + column_index_size: 123456 + last_queried_ms: 1535101119334 + row_index_size: 123456 + bulk_bytes_overwritten: 1 + bulk_stats: + - transformation_compute_ms: 50000 + index_compute_ms: 100000 + indexing_stage_done_at: 2001-08-28T00:23:41Z + data_downloaded_bytes: 10000000 + pre_index_size_bytes: 8000000 + data_indexed_bytes: 8000000 + total_index_size_bytes: 10000000 + data_indexed_throughput_bytes: 800000.5 + downloading_stage_done_at: 2001-08-28T00:23:41Z + download_compute_ms: 50000 + provisioning_stage_done_at: 2001-08-28T00:23:41Z + started_at: 2001-08-28T00:23:41Z + documents_downloaded: 10000 + finalizing_stage_done_at: 2001-08-28T00:23:41Z + initializing_stage_done_at: 2001-08-28T00:23:41Z + - transformation_compute_ms: 50000 + index_compute_ms: 100000 + indexing_stage_done_at: 2001-08-28T00:23:41Z + data_downloaded_bytes: 10000000 + pre_index_size_bytes: 8000000 + data_indexed_bytes: 8000000 + total_index_size_bytes: 10000000 + data_indexed_throughput_bytes: 800000.5 + downloading_stage_done_at: 2001-08-28T00:23:41Z + download_compute_ms: 50000 + provisioning_stage_done_at: 2001-08-28T00:23:41Z + started_at: 2001-08-28T00:23:41Z + documents_downloaded: 10000 + finalizing_stage_done_at: 2001-08-28T00:23:41Z + initializing_stage_done_at: 2001-08-28T00:23:41Z + retention_secs: 2592000 + name: global-transactions + status: READY + gcs: + gcp_service_account: + service_account_key_file_json: service_account_key_file_json + kafka: + source_status_by_topic: "{\"topic-a\": \"DORMANT\"}" + kafka_topic_names: + - kafka_topic_names + - kafka_topic_names + schema_registry_config: + secret: secret + key: key + url: url + security_config: + api_key: api_key + secret: secret + kafka_data_format: JSON + aws_role: + aws_external_id: external id of aws + aws_role_arn: arn:aws:iam::2378964092:role/rockset-role + bootstrap_servers: localhost:9092 + connection_string: connection_string + use_v3: true + azure_service_bus: + connection_string: Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= + name: event-logs + mongodb: + connection_uri: mongodb+srv://:@server.example.com/ + tls: + client_key: |- + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + client_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + client_cert_subject: "CN=Sample Cert, OU=R&D, O=Company Ltd." + client_cert_expiry: 1695426751 + ca_cert: |- + -----BEGIN CERTIFICATE----- + .... + -----END CERTIFICATE----- + properties: + data: + $ref: '#/components/schemas/Integration' type: object UpdateQueryLambdaRequest: example: diff --git a/openapi/api_integrations.go b/openapi/api_integrations.go index 68e037c2..d0112a4c 100644 --- a/openapi/api_integrations.go +++ b/openapi/api_integrations.go @@ -79,6 +79,21 @@ type IntegrationsApi interface { // ListIntegrationsExecute executes the request // @return ListIntegrationsResponse ListIntegrationsExecute(r ApiListIntegrationsRequest) (*ListIntegrationsResponse, *http.Response, error) + + /* + UpdateIntegration Update Integration + + Update an existing integration. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param integration + @return ApiUpdateIntegrationRequest + */ + UpdateIntegration(ctx context.Context, integration string) ApiUpdateIntegrationRequest + + // UpdateIntegrationExecute executes the request + // @return UpdateIntegrationResponse + UpdateIntegrationExecute(r ApiUpdateIntegrationRequest) (*UpdateIntegrationResponse, *http.Response, error) } // IntegrationsApiService IntegrationsApi service @@ -1111,3 +1126,271 @@ func (a *IntegrationsApiService) ListIntegrationsExecute(r ApiListIntegrationsRe return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiUpdateIntegrationRequest struct { + ctx context.Context + ApiService IntegrationsApi + integration string + body *UpdateIntegrationRequest +} + +// integration configuration +func (r ApiUpdateIntegrationRequest) Body(body UpdateIntegrationRequest) ApiUpdateIntegrationRequest { + r.body = &body + return r +} + +func (r ApiUpdateIntegrationRequest) Execute() (*UpdateIntegrationResponse, *http.Response, error) { + return r.ApiService.UpdateIntegrationExecute(r) +} + +/* +UpdateIntegration Update Integration + +Update an existing integration. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param integration + @return ApiUpdateIntegrationRequest +*/ +func (a *IntegrationsApiService) UpdateIntegration(ctx context.Context, integration string) ApiUpdateIntegrationRequest { + return ApiUpdateIntegrationRequest{ + ApiService: a, + ctx: ctx, + integration: integration, + } +} + +// Execute executes the request +// @return UpdateIntegrationResponse +func (a *IntegrationsApiService) UpdateIntegrationExecute(r ApiUpdateIntegrationRequest) (*UpdateIntegrationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateIntegrationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsApiService.UpdateIntegration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/integrations/{integration}" + localVarPath = strings.Replace(localVarPath, "{"+"integration"+"}", url.PathEscape(parameterValueToString(r.integration, "integration")), -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 := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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_sources.go b/openapi/api_sources.go index 27150374..9c25d777 100644 --- a/openapi/api_sources.go +++ b/openapi/api_sources.go @@ -121,6 +121,23 @@ type SourcesApi interface { // SuspendSourceExecute executes the request // @return GetSourceResponse SuspendSourceExecute(r ApiSuspendSourceRequest) (*GetSourceResponse, *http.Response, error) + + /* + UpdateSource Update a collection source + + Update 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 ApiUpdateSourceRequest + */ + UpdateSource(ctx context.Context, workspace string, collection string, source string) ApiUpdateSourceRequest + + // UpdateSourceExecute executes the request + // @return GetSourceResponse + UpdateSourceExecute(r ApiUpdateSourceRequest) (*GetSourceResponse, *http.Response, error) } // SourcesApiService SourcesApi service @@ -1456,6 +1473,13 @@ type ApiSuspendSourceRequest struct { workspace string collection string source string + body *SuspendSourceRequest +} + +// JSON object +func (r ApiSuspendSourceRequest) Body(body SuspendSourceRequest) ApiSuspendSourceRequest { + r.body = &body + return r } func (r ApiSuspendSourceRequest) Execute() (*GetSourceResponse, *http.Response, error) { @@ -1508,7 +1532,7 @@ func (a *SourcesApiService) SuspendSourceExecute(r ApiSuspendSourceRequest) (*Ge localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1524,6 +1548,284 @@ func (a *SourcesApiService) SuspendSourceExecute(r ApiSuspendSourceRequest) (*Ge 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 := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiUpdateSourceRequest struct { + ctx context.Context + ApiService SourcesApi + workspace string + collection string + source string + body *SourceBase +} + +// JSON object +func (r ApiUpdateSourceRequest) Body(body SourceBase) ApiUpdateSourceRequest { + r.body = &body + return r +} + +func (r ApiUpdateSourceRequest) Execute() (*GetSourceResponse, *http.Response, error) { + return r.ApiService.UpdateSourceExecute(r) +} + +/* +UpdateSource Update a collection source + +Update 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 ApiUpdateSourceRequest +*/ +func (a *SourcesApiService) UpdateSource(ctx context.Context, workspace string, collection string, source string) ApiUpdateSourceRequest { + return ApiUpdateSourceRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + collection: collection, + source: source, + } +} + +// Execute executes the request +// @return GetSourceResponse +func (a *SourcesApiService) UpdateSourceExecute(r ApiUpdateSourceRequest) (*GetSourceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetSourceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SourcesApiService.UpdateSource") + 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(parameterValueToString(r.workspace, "workspace")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collection"+"}", url.PathEscape(parameterValueToString(r.collection, "collection")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"source"+"}", url.PathEscape(parameterValueToString(r.source, "source")), -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 diff --git a/openapi/api_virtual_instances.go b/openapi/api_virtual_instances.go index 035f28c4..dfb3aba7 100644 --- a/openapi/api_virtual_instances.go +++ b/openapi/api_virtual_instances.go @@ -67,6 +67,22 @@ type VirtualInstancesApi interface { // @return CollectionMountResponse GetCollectionMountExecute(r ApiGetCollectionMountRequest) (*CollectionMountResponse, *http.Response, error) + /* + GetMountOffsets Get Collection Commit + + Determines if the collection includes data at or after the specified fence(s) for close read-after-write semantics. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualInstanceId Virtual Instance RRN + @param collectionPath + @return ApiGetMountOffsetsRequest + */ + GetMountOffsets(ctx context.Context, virtualInstanceId string, collectionPath string) ApiGetMountOffsetsRequest + + // GetMountOffsetsExecute executes the request + // @return GetCollectionCommit + GetMountOffsetsExecute(r ApiGetMountOffsetsRequest) (*GetCollectionCommit, *http.Response, error) + /* GetVirtualInstance Retrieve Virtual Instance @@ -1001,6 +1017,278 @@ func (a *VirtualInstancesApiService) GetCollectionMountExecute(r ApiGetCollectio return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetMountOffsetsRequest struct { + ctx context.Context + ApiService VirtualInstancesApi + virtualInstanceId string + collectionPath string + body *GetCollectionCommitRequest +} + +// JSON object +func (r ApiGetMountOffsetsRequest) Body(body GetCollectionCommitRequest) ApiGetMountOffsetsRequest { + r.body = &body + return r +} + +func (r ApiGetMountOffsetsRequest) Execute() (*GetCollectionCommit, *http.Response, error) { + return r.ApiService.GetMountOffsetsExecute(r) +} + +/* +GetMountOffsets Get Collection Commit + +Determines if the collection includes data at or after the specified fence(s) for close read-after-write semantics. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param virtualInstanceId Virtual Instance RRN + @param collectionPath + @return ApiGetMountOffsetsRequest +*/ +func (a *VirtualInstancesApiService) GetMountOffsets(ctx context.Context, virtualInstanceId string, collectionPath string) ApiGetMountOffsetsRequest { + return ApiGetMountOffsetsRequest{ + ApiService: a, + ctx: ctx, + virtualInstanceId: virtualInstanceId, + collectionPath: collectionPath, + } +} + +// Execute executes the request +// @return GetCollectionCommit +func (a *VirtualInstancesApiService) GetMountOffsetsExecute(r ApiGetMountOffsetsRequest) (*GetCollectionCommit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetCollectionCommit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualInstancesApiService.GetMountOffsets") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}/offsets/commit" + localVarPath = strings.Replace(localVarPath, "{"+"virtualInstanceId"+"}", url.PathEscape(parameterValueToString(r.virtualInstanceId, "virtualInstanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collectionPath"+"}", url.PathEscape(parameterValueToString(r.collectionPath, "collectionPath")), -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 := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + 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 ApiGetVirtualInstanceRequest struct { ctx context.Context ApiService VirtualInstancesApi diff --git a/openapi/configuration.go b/openapi/configuration.go index 2a6d1769..783650fd 100644 --- a/openapi/configuration.go +++ b/openapi/configuration.go @@ -86,7 +86,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.21.2/go", + UserAgent: "OpenAPI-Generator/0.22.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/openapi/docs/Collection.md b/openapi/docs/Collection.md index 8f0d5b5b..63967a04 100644 --- a/openapi/docs/Collection.md +++ b/openapi/docs/Collection.md @@ -17,9 +17,11 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | Unique identifer for collection, can contain alphanumeric or dash characters. | [optional] **ReadOnly** | Pointer to **bool** | Whether the collection is read-only or not. | [optional] **RetentionSecs** | Pointer to **int64** | Number of seconds after which data is purged based on event time. | [optional] +**Rrn** | Pointer to **string** | Collection RRN. | [optional] **Sources** | Pointer to [**[]Source**](Source.md) | List of sources from which collection ingests. | [optional] **Stats** | Pointer to [**CollectionStats**](CollectionStats.md) | | [optional] **Status** | Pointer to **string** | Current status of collection. | [optional] +**StorageCompressionType** | Pointer to **string** | RocksDB storage compression type. | [optional] **Workspace** | Pointer to **string** | Name of the workspace that the collection is in. | [optional] ## Methods @@ -366,6 +368,31 @@ SetRetentionSecs sets RetentionSecs field to given value. HasRetentionSecs returns a boolean if a field has been set. +### GetRrn + +`func (o *Collection) GetRrn() string` + +GetRrn returns the Rrn field if non-nil, zero value otherwise. + +### GetRrnOk + +`func (o *Collection) GetRrnOk() (*string, bool)` + +GetRrnOk returns a tuple with the Rrn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRrn + +`func (o *Collection) SetRrn(v string)` + +SetRrn sets Rrn field to given value. + +### HasRrn + +`func (o *Collection) HasRrn() bool` + +HasRrn returns a boolean if a field has been set. + ### GetSources `func (o *Collection) GetSources() []Source` @@ -441,6 +468,31 @@ SetStatus sets Status field to given value. HasStatus returns a boolean if a field has been set. +### GetStorageCompressionType + +`func (o *Collection) GetStorageCompressionType() string` + +GetStorageCompressionType returns the StorageCompressionType field if non-nil, zero value otherwise. + +### GetStorageCompressionTypeOk + +`func (o *Collection) GetStorageCompressionTypeOk() (*string, bool)` + +GetStorageCompressionTypeOk returns a tuple with the StorageCompressionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorageCompressionType + +`func (o *Collection) SetStorageCompressionType(v string)` + +SetStorageCompressionType sets StorageCompressionType field to given value. + +### HasStorageCompressionType + +`func (o *Collection) HasStorageCompressionType() bool` + +HasStorageCompressionType returns a boolean if a field has been set. + ### GetWorkspace `func (o *Collection) GetWorkspace() string` diff --git a/openapi/docs/IntegrationsApi.md b/openapi/docs/IntegrationsApi.md index a9735b5d..d655f248 100644 --- a/openapi/docs/IntegrationsApi.md +++ b/openapi/docs/IntegrationsApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**DeleteIntegration**](IntegrationsApi.md#DeleteIntegration) | **Delete** /v1/orgs/self/integrations/{integration} | Delete Integration [**GetIntegration**](IntegrationsApi.md#GetIntegration) | **Get** /v1/orgs/self/integrations/{integration} | Retrieve Integration [**ListIntegrations**](IntegrationsApi.md#ListIntegrations) | **Get** /v1/orgs/self/integrations | List Integrations +[**UpdateIntegration**](IntegrationsApi.md#UpdateIntegration) | **Put** /v1/orgs/self/integrations/{integration} | Update Integration @@ -277,3 +278,75 @@ No authorization required [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## UpdateIntegration + +> UpdateIntegrationResponse UpdateIntegration(ctx, integration).Body(body).Execute() + +Update Integration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/rockset/rockset-go-client" +) + +func main() { + integration := "integration_example" // string | + body := *openapiclient.NewUpdateIntegrationRequest() // UpdateIntegrationRequest | integration configuration + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IntegrationsApi.UpdateIntegration(context.Background(), integration).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IntegrationsApi.UpdateIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIntegration`: UpdateIntegrationResponse + fmt.Fprintf(os.Stdout, "Response from `IntegrationsApi.UpdateIntegration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**integration** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateIntegrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**UpdateIntegrationRequest**](UpdateIntegrationRequest.md) | integration configuration | + +### Return type + +[**UpdateIntegrationResponse**](UpdateIntegrationResponse.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) + diff --git a/openapi/docs/MongoDbIntegration.md b/openapi/docs/MongoDbIntegration.md index f8d87f88..9be06e72 100644 --- a/openapi/docs/MongoDbIntegration.md +++ b/openapi/docs/MongoDbIntegration.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConnectionUri** | **string** | MongoDB connection URI string. | +**Tls** | Pointer to [**TLSConfig**](TLSConfig.md) | | [optional] ## Methods @@ -45,6 +46,31 @@ and a boolean to check if the value has been set. SetConnectionUri sets ConnectionUri field to given value. +### GetTls + +`func (o *MongoDbIntegration) GetTls() TLSConfig` + +GetTls returns the Tls field if non-nil, zero value otherwise. + +### GetTlsOk + +`func (o *MongoDbIntegration) GetTlsOk() (*TLSConfig, bool)` + +GetTlsOk returns a tuple with the Tls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTls + +`func (o *MongoDbIntegration) SetTls(v TLSConfig)` + +SetTls sets Tls field to given value. + +### HasTls + +`func (o *MongoDbIntegration) HasTls() bool` + +HasTls 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/Source.md b/openapi/docs/Source.md index 857e4f2c..35886f2b 100644 --- a/openapi/docs/Source.md +++ b/openapi/docs/Source.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Kafka** | Pointer to [**SourceKafka**](SourceKafka.md) | | [optional] **Kinesis** | Pointer to [**SourceKinesis**](SourceKinesis.md) | | [optional] **Mongodb** | Pointer to [**SourceMongoDb**](SourceMongoDb.md) | | [optional] +**ResumeAt** | Pointer to **string** | ISO-8601 date when source would be auto resumed, if suspended | [optional] [readonly] **S3** | Pointer to [**SourceS3**](SourceS3.md) | | [optional] **Snowflake** | Pointer to [**SourceSnowflake**](SourceSnowflake.md) | | [optional] **Status** | Pointer to [**Status**](Status.md) | | [optional] @@ -367,6 +368,31 @@ SetMongodb sets Mongodb field to given value. HasMongodb returns a boolean if a field has been set. +### GetResumeAt + +`func (o *Source) GetResumeAt() string` + +GetResumeAt returns the ResumeAt field if non-nil, zero value otherwise. + +### GetResumeAtOk + +`func (o *Source) GetResumeAtOk() (*string, bool)` + +GetResumeAtOk returns a tuple with the ResumeAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResumeAt + +`func (o *Source) SetResumeAt(v string)` + +SetResumeAt sets ResumeAt field to given value. + +### HasResumeAt + +`func (o *Source) HasResumeAt() bool` + +HasResumeAt returns a boolean if a field has been set. + ### GetS3 `func (o *Source) GetS3() SourceS3` diff --git a/openapi/docs/SourceAzBlobStorageBase.md b/openapi/docs/SourceAzBlobStorageBase.md new file mode 100644 index 00000000..ba31b904 --- /dev/null +++ b/openapi/docs/SourceAzBlobStorageBase.md @@ -0,0 +1,56 @@ +# SourceAzBlobStorageBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Settings** | Pointer to [**SourceAzBlobStorageSettings**](SourceAzBlobStorageSettings.md) | | [optional] + +## Methods + +### NewSourceAzBlobStorageBase + +`func NewSourceAzBlobStorageBase() *SourceAzBlobStorageBase` + +NewSourceAzBlobStorageBase instantiates a new SourceAzBlobStorageBase 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 + +### NewSourceAzBlobStorageBaseWithDefaults + +`func NewSourceAzBlobStorageBaseWithDefaults() *SourceAzBlobStorageBase` + +NewSourceAzBlobStorageBaseWithDefaults instantiates a new SourceAzBlobStorageBase 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 + +### GetSettings + +`func (o *SourceAzBlobStorageBase) GetSettings() SourceAzBlobStorageSettings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *SourceAzBlobStorageBase) GetSettingsOk() (*SourceAzBlobStorageSettings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *SourceAzBlobStorageBase) SetSettings(v SourceAzBlobStorageSettings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *SourceAzBlobStorageBase) HasSettings() bool` + +HasSettings 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/SourceAzBlobStorageSettings.md b/openapi/docs/SourceAzBlobStorageSettings.md new file mode 100644 index 00000000..83c111ab --- /dev/null +++ b/openapi/docs/SourceAzBlobStorageSettings.md @@ -0,0 +1,56 @@ +# SourceAzBlobStorageSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AzblobScanFrequency** | Pointer to **string** | Rockset scans an Azure blob Storage container based on a defined time interval. The scan frequency determines the length of time between a new scan and the previous scan. If the previous scan finds new objects or updates to existing objects, Rockset immediately scans the bucket again after processing changes from the previous scan. | [optional] + +## Methods + +### NewSourceAzBlobStorageSettings + +`func NewSourceAzBlobStorageSettings() *SourceAzBlobStorageSettings` + +NewSourceAzBlobStorageSettings instantiates a new SourceAzBlobStorageSettings 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 + +### NewSourceAzBlobStorageSettingsWithDefaults + +`func NewSourceAzBlobStorageSettingsWithDefaults() *SourceAzBlobStorageSettings` + +NewSourceAzBlobStorageSettingsWithDefaults instantiates a new SourceAzBlobStorageSettings 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 + +### GetAzblobScanFrequency + +`func (o *SourceAzBlobStorageSettings) GetAzblobScanFrequency() string` + +GetAzblobScanFrequency returns the AzblobScanFrequency field if non-nil, zero value otherwise. + +### GetAzblobScanFrequencyOk + +`func (o *SourceAzBlobStorageSettings) GetAzblobScanFrequencyOk() (*string, bool)` + +GetAzblobScanFrequencyOk returns a tuple with the AzblobScanFrequency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzblobScanFrequency + +`func (o *SourceAzBlobStorageSettings) SetAzblobScanFrequency(v string)` + +SetAzblobScanFrequency sets AzblobScanFrequency field to given value. + +### HasAzblobScanFrequency + +`func (o *SourceAzBlobStorageSettings) HasAzblobScanFrequency() bool` + +HasAzblobScanFrequency 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/SourceAzureBlobStorage.md b/openapi/docs/SourceAzureBlobStorage.md index 435d571b..43eee24c 100644 --- a/openapi/docs/SourceAzureBlobStorage.md +++ b/openapi/docs/SourceAzureBlobStorage.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Container** | Pointer to **string** | Name of Azure blob Storage container you want to ingest from. | [optional] **Pattern** | Pointer to **string** | Glob-style pattern that selects keys to ingest. Only either prefix or pattern can be specified. | [optional] **Prefix** | Pointer to **string** | Prefix that selects blobs to ingest. | [optional] +**Settings** | Pointer to [**SourceAzBlobStorageSettings**](SourceAzBlobStorageSettings.md) | | [optional] ## Methods @@ -180,6 +181,31 @@ SetPrefix sets Prefix field to given value. HasPrefix returns a boolean if a field has been set. +### GetSettings + +`func (o *SourceAzureBlobStorage) GetSettings() SourceAzBlobStorageSettings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *SourceAzureBlobStorage) GetSettingsOk() (*SourceAzBlobStorageSettings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *SourceAzureBlobStorage) SetSettings(v SourceAzBlobStorageSettings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *SourceAzureBlobStorage) HasSettings() bool` + +HasSettings 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/SourceBase.md b/openapi/docs/SourceBase.md new file mode 100644 index 00000000..15540bed --- /dev/null +++ b/openapi/docs/SourceBase.md @@ -0,0 +1,134 @@ +# SourceBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AzureBlobStorage** | Pointer to [**SourceAzBlobStorageBase**](SourceAzBlobStorageBase.md) | | [optional] +**Dynamodb** | Pointer to [**SourceDynamoDb**](SourceDynamoDb.md) | | [optional] +**Gcs** | Pointer to [**SourceGcsBase**](SourceGcsBase.md) | | [optional] +**S3** | Pointer to [**SourceS3Base**](SourceS3Base.md) | | [optional] + +## Methods + +### NewSourceBase + +`func NewSourceBase() *SourceBase` + +NewSourceBase instantiates a new SourceBase 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 + +### NewSourceBaseWithDefaults + +`func NewSourceBaseWithDefaults() *SourceBase` + +NewSourceBaseWithDefaults instantiates a new SourceBase 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 + +### GetAzureBlobStorage + +`func (o *SourceBase) GetAzureBlobStorage() SourceAzBlobStorageBase` + +GetAzureBlobStorage returns the AzureBlobStorage field if non-nil, zero value otherwise. + +### GetAzureBlobStorageOk + +`func (o *SourceBase) GetAzureBlobStorageOk() (*SourceAzBlobStorageBase, bool)` + +GetAzureBlobStorageOk returns a tuple with the AzureBlobStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureBlobStorage + +`func (o *SourceBase) SetAzureBlobStorage(v SourceAzBlobStorageBase)` + +SetAzureBlobStorage sets AzureBlobStorage field to given value. + +### HasAzureBlobStorage + +`func (o *SourceBase) HasAzureBlobStorage() bool` + +HasAzureBlobStorage returns a boolean if a field has been set. + +### GetDynamodb + +`func (o *SourceBase) GetDynamodb() SourceDynamoDb` + +GetDynamodb returns the Dynamodb field if non-nil, zero value otherwise. + +### GetDynamodbOk + +`func (o *SourceBase) GetDynamodbOk() (*SourceDynamoDb, bool)` + +GetDynamodbOk returns a tuple with the Dynamodb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDynamodb + +`func (o *SourceBase) SetDynamodb(v SourceDynamoDb)` + +SetDynamodb sets Dynamodb field to given value. + +### HasDynamodb + +`func (o *SourceBase) HasDynamodb() bool` + +HasDynamodb returns a boolean if a field has been set. + +### GetGcs + +`func (o *SourceBase) GetGcs() SourceGcsBase` + +GetGcs returns the Gcs field if non-nil, zero value otherwise. + +### GetGcsOk + +`func (o *SourceBase) GetGcsOk() (*SourceGcsBase, bool)` + +GetGcsOk returns a tuple with the Gcs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcs + +`func (o *SourceBase) SetGcs(v SourceGcsBase)` + +SetGcs sets Gcs field to given value. + +### HasGcs + +`func (o *SourceBase) HasGcs() bool` + +HasGcs returns a boolean if a field has been set. + +### GetS3 + +`func (o *SourceBase) GetS3() SourceS3Base` + +GetS3 returns the S3 field if non-nil, zero value otherwise. + +### GetS3Ok + +`func (o *SourceBase) GetS3Ok() (*SourceS3Base, bool)` + +GetS3Ok returns a tuple with the S3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS3 + +`func (o *SourceBase) SetS3(v SourceS3Base)` + +SetS3 sets S3 field to given value. + +### HasS3 + +`func (o *SourceBase) HasS3() bool` + +HasS3 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/SourceGcs.md b/openapi/docs/SourceGcs.md index 81950019..35b07249 100644 --- a/openapi/docs/SourceGcs.md +++ b/openapi/docs/SourceGcs.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **ObjectCountTotal** | Pointer to **int64** | | [optional] [readonly] **Pattern** | Pointer to **string** | Glob-style pattern that selects keys to ingest. Only either prefix or pattern can be specified. | [optional] **Prefix** | Pointer to **string** | Prefix that selects keys to ingest. | [optional] +**Settings** | Pointer to [**SourceGcsSettings**](SourceGcsSettings.md) | | [optional] ## Methods @@ -206,6 +207,31 @@ SetPrefix sets Prefix field to given value. HasPrefix returns a boolean if a field has been set. +### GetSettings + +`func (o *SourceGcs) GetSettings() SourceGcsSettings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *SourceGcs) GetSettingsOk() (*SourceGcsSettings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *SourceGcs) SetSettings(v SourceGcsSettings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *SourceGcs) HasSettings() bool` + +HasSettings 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/SourceGcsBase.md b/openapi/docs/SourceGcsBase.md new file mode 100644 index 00000000..6c3802c5 --- /dev/null +++ b/openapi/docs/SourceGcsBase.md @@ -0,0 +1,56 @@ +# SourceGcsBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Settings** | Pointer to [**SourceGcsSettings**](SourceGcsSettings.md) | | [optional] + +## Methods + +### NewSourceGcsBase + +`func NewSourceGcsBase() *SourceGcsBase` + +NewSourceGcsBase instantiates a new SourceGcsBase 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 + +### NewSourceGcsBaseWithDefaults + +`func NewSourceGcsBaseWithDefaults() *SourceGcsBase` + +NewSourceGcsBaseWithDefaults instantiates a new SourceGcsBase 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 + +### GetSettings + +`func (o *SourceGcsBase) GetSettings() SourceGcsSettings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *SourceGcsBase) GetSettingsOk() (*SourceGcsSettings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *SourceGcsBase) SetSettings(v SourceGcsSettings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *SourceGcsBase) HasSettings() bool` + +HasSettings 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/SourceGcsSettings.md b/openapi/docs/SourceGcsSettings.md new file mode 100644 index 00000000..eef37dd8 --- /dev/null +++ b/openapi/docs/SourceGcsSettings.md @@ -0,0 +1,56 @@ +# SourceGcsSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GcsScanFrequency** | Pointer to **string** | Rockset scans a GCS bucket based on a defined time interval. The scan frequency determines the length of time between a new scan and the previous scan. If the previous scan finds new objects or updates to existing objects, Rockset immediately scans the bucket again after processing changes from the previous scan. | [optional] + +## Methods + +### NewSourceGcsSettings + +`func NewSourceGcsSettings() *SourceGcsSettings` + +NewSourceGcsSettings instantiates a new SourceGcsSettings 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 + +### NewSourceGcsSettingsWithDefaults + +`func NewSourceGcsSettingsWithDefaults() *SourceGcsSettings` + +NewSourceGcsSettingsWithDefaults instantiates a new SourceGcsSettings 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 + +### GetGcsScanFrequency + +`func (o *SourceGcsSettings) GetGcsScanFrequency() string` + +GetGcsScanFrequency returns the GcsScanFrequency field if non-nil, zero value otherwise. + +### GetGcsScanFrequencyOk + +`func (o *SourceGcsSettings) GetGcsScanFrequencyOk() (*string, bool)` + +GetGcsScanFrequencyOk returns a tuple with the GcsScanFrequency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcsScanFrequency + +`func (o *SourceGcsSettings) SetGcsScanFrequency(v string)` + +SetGcsScanFrequency sets GcsScanFrequency field to given value. + +### HasGcsScanFrequency + +`func (o *SourceGcsSettings) HasGcsScanFrequency() bool` + +HasGcsScanFrequency 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/SourceS3.md b/openapi/docs/SourceS3.md index a9917cd2..f066aec2 100644 --- a/openapi/docs/SourceS3.md +++ b/openapi/docs/SourceS3.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **Prefix** | Pointer to **string** | Prefix that selects keys to ingest. | [optional] **Prefixes** | Pointer to **[]string** | List of prefixes to paths from which data should be ingested. | [optional] [readonly] **Region** | Pointer to **string** | AWS region containing source bucket. | [optional] +**Settings** | Pointer to [**SourceS3Settings**](SourceS3Settings.md) | | [optional] ## Methods @@ -253,6 +254,31 @@ SetRegion sets Region field to given value. HasRegion returns a boolean if a field has been set. +### GetSettings + +`func (o *SourceS3) GetSettings() SourceS3Settings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *SourceS3) GetSettingsOk() (*SourceS3Settings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *SourceS3) SetSettings(v SourceS3Settings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *SourceS3) HasSettings() bool` + +HasSettings 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/SourceS3Base.md b/openapi/docs/SourceS3Base.md new file mode 100644 index 00000000..c53915a3 --- /dev/null +++ b/openapi/docs/SourceS3Base.md @@ -0,0 +1,56 @@ +# SourceS3Base + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Settings** | Pointer to [**SourceS3Settings**](SourceS3Settings.md) | | [optional] + +## Methods + +### NewSourceS3Base + +`func NewSourceS3Base() *SourceS3Base` + +NewSourceS3Base instantiates a new SourceS3Base 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 + +### NewSourceS3BaseWithDefaults + +`func NewSourceS3BaseWithDefaults() *SourceS3Base` + +NewSourceS3BaseWithDefaults instantiates a new SourceS3Base 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 + +### GetSettings + +`func (o *SourceS3Base) GetSettings() SourceS3Settings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *SourceS3Base) GetSettingsOk() (*SourceS3Settings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *SourceS3Base) SetSettings(v SourceS3Settings)` + +SetSettings sets Settings field to given value. + +### HasSettings + +`func (o *SourceS3Base) HasSettings() bool` + +HasSettings 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/SourceS3Settings.md b/openapi/docs/SourceS3Settings.md new file mode 100644 index 00000000..c317adb3 --- /dev/null +++ b/openapi/docs/SourceS3Settings.md @@ -0,0 +1,56 @@ +# SourceS3Settings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**S3ScanFrequency** | Pointer to **string** | Rockset scans an S3 bucket based on a defined time interval. The scan frequency determines the length of time between a new scan and the previous scan. If the previous scan finds new objects or updates to existing objects, Rockset immediately scans the bucket again after processing changes from the previous scan. | [optional] + +## Methods + +### NewSourceS3Settings + +`func NewSourceS3Settings() *SourceS3Settings` + +NewSourceS3Settings instantiates a new SourceS3Settings 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 + +### NewSourceS3SettingsWithDefaults + +`func NewSourceS3SettingsWithDefaults() *SourceS3Settings` + +NewSourceS3SettingsWithDefaults instantiates a new SourceS3Settings 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 + +### GetS3ScanFrequency + +`func (o *SourceS3Settings) GetS3ScanFrequency() string` + +GetS3ScanFrequency returns the S3ScanFrequency field if non-nil, zero value otherwise. + +### GetS3ScanFrequencyOk + +`func (o *SourceS3Settings) GetS3ScanFrequencyOk() (*string, bool)` + +GetS3ScanFrequencyOk returns a tuple with the S3ScanFrequency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS3ScanFrequency + +`func (o *SourceS3Settings) SetS3ScanFrequency(v string)` + +SetS3ScanFrequency sets S3ScanFrequency field to given value. + +### HasS3ScanFrequency + +`func (o *SourceS3Settings) HasS3ScanFrequency() bool` + +HasS3ScanFrequency 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 index a52c528f..e9e59495 100644 --- a/openapi/docs/SourceSnapshot.md +++ b/openapi/docs/SourceSnapshot.md @@ -4,8 +4,7 @@ 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] +**SourceSnapshotRrn** | Pointer to **string** | RRN of the snapshot that the new collection will be created from. | [optional] ## Methods @@ -26,55 +25,30 @@ 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 +### GetSourceSnapshotRrn -`func (o *SourceSnapshot) GetSourceCollectionPath() string` +`func (o *SourceSnapshot) GetSourceSnapshotRrn() string` -GetSourceCollectionPath returns the SourceCollectionPath field if non-nil, zero value otherwise. +GetSourceSnapshotRrn returns the SourceSnapshotRrn field if non-nil, zero value otherwise. -### GetSourceCollectionPathOk +### GetSourceSnapshotRrnOk -`func (o *SourceSnapshot) GetSourceCollectionPathOk() (*string, bool)` +`func (o *SourceSnapshot) GetSourceSnapshotRrnOk() (*string, bool)` -GetSourceCollectionPathOk returns a tuple with the SourceCollectionPath field if it's non-nil, zero value otherwise +GetSourceSnapshotRrnOk returns a tuple with the SourceSnapshotRrn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSourceCollectionPath +### SetSourceSnapshotRrn -`func (o *SourceSnapshot) SetSourceCollectionPath(v string)` +`func (o *SourceSnapshot) SetSourceSnapshotRrn(v string)` -SetSourceCollectionPath sets SourceCollectionPath field to given value. +SetSourceSnapshotRrn sets SourceSnapshotRrn field to given value. -### HasSourceCollectionPath +### HasSourceSnapshotRrn -`func (o *SourceSnapshot) HasSourceCollectionPath() bool` +`func (o *SourceSnapshot) HasSourceSnapshotRrn() 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. +HasSourceSnapshotRrn 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 index 2faacc6f..93666858 100644 --- a/openapi/docs/SourcesApi.md +++ b/openapi/docs/SourcesApi.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**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 +[**UpdateSource**](SourcesApi.md#UpdateSource) | **Put** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources/{source} | Update a collection source @@ -391,7 +392,7 @@ No authorization required ## SuspendSource -> GetSourceResponse SuspendSource(ctx, workspace, collection, source).Execute() +> GetSourceResponse SuspendSource(ctx, workspace, collection, source).Body(body).Execute() Suspend source ingest @@ -413,10 +414,11 @@ 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 + body := *openapiclient.NewSuspendSourceRequest() // SuspendSourceRequest | JSON object (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SourcesApi.SuspendSource(context.Background(), workspace, collection, source).Execute() + resp, r, err := apiClient.SourcesApi.SuspendSource(context.Background(), workspace, collection, source).Body(body).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) @@ -446,6 +448,7 @@ Name | Type | Description | Notes + **body** | [**SuspendSourceRequest**](SuspendSourceRequest.md) | JSON object | ### Return type @@ -457,7 +460,85 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **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) + + +## UpdateSource + +> GetSourceResponse UpdateSource(ctx, workspace, collection, source).Body(body).Execute() + +Update a collection source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/rockset/rockset-go-client" +) + +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 + body := *openapiclient.NewSourceBase() // SourceBase | JSON object + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SourcesApi.UpdateSource(context.Background(), workspace, collection, source).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesApi.UpdateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSource`: GetSourceResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesApi.UpdateSource`: %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 apiUpdateSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **body** | [**SourceBase**](SourceBase.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) diff --git a/openapi/docs/SuspendSourceRequest.md b/openapi/docs/SuspendSourceRequest.md new file mode 100644 index 00000000..54d91a5f --- /dev/null +++ b/openapi/docs/SuspendSourceRequest.md @@ -0,0 +1,56 @@ +# SuspendSourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResumeAfterDuration** | Pointer to **string** | duration to suspend source; 1h is the default | [optional] + +## Methods + +### NewSuspendSourceRequest + +`func NewSuspendSourceRequest() *SuspendSourceRequest` + +NewSuspendSourceRequest instantiates a new SuspendSourceRequest 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 + +### NewSuspendSourceRequestWithDefaults + +`func NewSuspendSourceRequestWithDefaults() *SuspendSourceRequest` + +NewSuspendSourceRequestWithDefaults instantiates a new SuspendSourceRequest 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 + +### GetResumeAfterDuration + +`func (o *SuspendSourceRequest) GetResumeAfterDuration() string` + +GetResumeAfterDuration returns the ResumeAfterDuration field if non-nil, zero value otherwise. + +### GetResumeAfterDurationOk + +`func (o *SuspendSourceRequest) GetResumeAfterDurationOk() (*string, bool)` + +GetResumeAfterDurationOk returns a tuple with the ResumeAfterDuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResumeAfterDuration + +`func (o *SuspendSourceRequest) SetResumeAfterDuration(v string)` + +SetResumeAfterDuration sets ResumeAfterDuration field to given value. + +### HasResumeAfterDuration + +`func (o *SuspendSourceRequest) HasResumeAfterDuration() bool` + +HasResumeAfterDuration 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/TLSConfig.md b/openapi/docs/TLSConfig.md new file mode 100644 index 00000000..df340919 --- /dev/null +++ b/openapi/docs/TLSConfig.md @@ -0,0 +1,150 @@ +# TLSConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaCert** | Pointer to **string** | PEM-formatted certificate chain of the Certificate Authority used to verify remote server. If empty, Rockset, will use publicly trusted CAs | [optional] +**ClientCert** | **string** | PEM-formatted certificate chain to use for client authentication | +**ClientCertExpiry** | Pointer to **int64** | Expiration date of the client certificate (represented as number of ms since epoch) | [optional] [readonly] +**ClientCertSubject** | Pointer to **string** | Subject of the client certificate, containing common name and other attributes | [optional] [readonly] +**ClientKey** | **string** | PEM-formatted private key to be used for client authentication | + +## Methods + +### NewTLSConfig + +`func NewTLSConfig(clientCert string, clientKey string, ) *TLSConfig` + +NewTLSConfig instantiates a new TLSConfig 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 + +### NewTLSConfigWithDefaults + +`func NewTLSConfigWithDefaults() *TLSConfig` + +NewTLSConfigWithDefaults instantiates a new TLSConfig 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 + +### GetCaCert + +`func (o *TLSConfig) GetCaCert() string` + +GetCaCert returns the CaCert field if non-nil, zero value otherwise. + +### GetCaCertOk + +`func (o *TLSConfig) GetCaCertOk() (*string, bool)` + +GetCaCertOk returns a tuple with the CaCert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaCert + +`func (o *TLSConfig) SetCaCert(v string)` + +SetCaCert sets CaCert field to given value. + +### HasCaCert + +`func (o *TLSConfig) HasCaCert() bool` + +HasCaCert returns a boolean if a field has been set. + +### GetClientCert + +`func (o *TLSConfig) GetClientCert() string` + +GetClientCert returns the ClientCert field if non-nil, zero value otherwise. + +### GetClientCertOk + +`func (o *TLSConfig) GetClientCertOk() (*string, bool)` + +GetClientCertOk returns a tuple with the ClientCert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientCert + +`func (o *TLSConfig) SetClientCert(v string)` + +SetClientCert sets ClientCert field to given value. + + +### GetClientCertExpiry + +`func (o *TLSConfig) GetClientCertExpiry() int64` + +GetClientCertExpiry returns the ClientCertExpiry field if non-nil, zero value otherwise. + +### GetClientCertExpiryOk + +`func (o *TLSConfig) GetClientCertExpiryOk() (*int64, bool)` + +GetClientCertExpiryOk returns a tuple with the ClientCertExpiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientCertExpiry + +`func (o *TLSConfig) SetClientCertExpiry(v int64)` + +SetClientCertExpiry sets ClientCertExpiry field to given value. + +### HasClientCertExpiry + +`func (o *TLSConfig) HasClientCertExpiry() bool` + +HasClientCertExpiry returns a boolean if a field has been set. + +### GetClientCertSubject + +`func (o *TLSConfig) GetClientCertSubject() string` + +GetClientCertSubject returns the ClientCertSubject field if non-nil, zero value otherwise. + +### GetClientCertSubjectOk + +`func (o *TLSConfig) GetClientCertSubjectOk() (*string, bool)` + +GetClientCertSubjectOk returns a tuple with the ClientCertSubject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientCertSubject + +`func (o *TLSConfig) SetClientCertSubject(v string)` + +SetClientCertSubject sets ClientCertSubject field to given value. + +### HasClientCertSubject + +`func (o *TLSConfig) HasClientCertSubject() bool` + +HasClientCertSubject returns a boolean if a field has been set. + +### GetClientKey + +`func (o *TLSConfig) GetClientKey() string` + +GetClientKey returns the ClientKey field if non-nil, zero value otherwise. + +### GetClientKeyOk + +`func (o *TLSConfig) GetClientKeyOk() (*string, bool)` + +GetClientKeyOk returns a tuple with the ClientKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientKey + +`func (o *TLSConfig) SetClientKey(v string)` + +SetClientKey sets ClientKey field to given value. + + + +[[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/UpdateIntegrationRequest.md b/openapi/docs/UpdateIntegrationRequest.md new file mode 100644 index 00000000..01dbf8d1 --- /dev/null +++ b/openapi/docs/UpdateIntegrationRequest.md @@ -0,0 +1,316 @@ +# UpdateIntegrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AzureBlobStorage** | Pointer to [**AzureBlobStorageIntegration**](AzureBlobStorageIntegration.md) | | [optional] +**AzureEventHubs** | Pointer to [**AzureEventHubsIntegration**](AzureEventHubsIntegration.md) | | [optional] +**AzureServiceBus** | Pointer to [**AzureServiceBusIntegration**](AzureServiceBusIntegration.md) | | [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] +**Kafka** | Pointer to [**KafkaIntegration**](KafkaIntegration.md) | | [optional] +**Kinesis** | Pointer to [**KinesisIntegration**](KinesisIntegration.md) | | [optional] +**Mongodb** | Pointer to [**MongoDbIntegration**](MongoDbIntegration.md) | | [optional] +**S3** | Pointer to [**S3Integration**](S3Integration.md) | | [optional] +**Snowflake** | Pointer to [**SnowflakeIntegration**](SnowflakeIntegration.md) | | [optional] + +## Methods + +### NewUpdateIntegrationRequest + +`func NewUpdateIntegrationRequest() *UpdateIntegrationRequest` + +NewUpdateIntegrationRequest instantiates a new UpdateIntegrationRequest 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 + +### NewUpdateIntegrationRequestWithDefaults + +`func NewUpdateIntegrationRequestWithDefaults() *UpdateIntegrationRequest` + +NewUpdateIntegrationRequestWithDefaults instantiates a new UpdateIntegrationRequest 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 + +### GetAzureBlobStorage + +`func (o *UpdateIntegrationRequest) GetAzureBlobStorage() AzureBlobStorageIntegration` + +GetAzureBlobStorage returns the AzureBlobStorage field if non-nil, zero value otherwise. + +### GetAzureBlobStorageOk + +`func (o *UpdateIntegrationRequest) GetAzureBlobStorageOk() (*AzureBlobStorageIntegration, bool)` + +GetAzureBlobStorageOk returns a tuple with the AzureBlobStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureBlobStorage + +`func (o *UpdateIntegrationRequest) SetAzureBlobStorage(v AzureBlobStorageIntegration)` + +SetAzureBlobStorage sets AzureBlobStorage field to given value. + +### HasAzureBlobStorage + +`func (o *UpdateIntegrationRequest) HasAzureBlobStorage() bool` + +HasAzureBlobStorage returns a boolean if a field has been set. + +### GetAzureEventHubs + +`func (o *UpdateIntegrationRequest) GetAzureEventHubs() AzureEventHubsIntegration` + +GetAzureEventHubs returns the AzureEventHubs field if non-nil, zero value otherwise. + +### GetAzureEventHubsOk + +`func (o *UpdateIntegrationRequest) GetAzureEventHubsOk() (*AzureEventHubsIntegration, bool)` + +GetAzureEventHubsOk returns a tuple with the AzureEventHubs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureEventHubs + +`func (o *UpdateIntegrationRequest) SetAzureEventHubs(v AzureEventHubsIntegration)` + +SetAzureEventHubs sets AzureEventHubs field to given value. + +### HasAzureEventHubs + +`func (o *UpdateIntegrationRequest) HasAzureEventHubs() bool` + +HasAzureEventHubs returns a boolean if a field has been set. + +### GetAzureServiceBus + +`func (o *UpdateIntegrationRequest) GetAzureServiceBus() AzureServiceBusIntegration` + +GetAzureServiceBus returns the AzureServiceBus field if non-nil, zero value otherwise. + +### GetAzureServiceBusOk + +`func (o *UpdateIntegrationRequest) GetAzureServiceBusOk() (*AzureServiceBusIntegration, bool)` + +GetAzureServiceBusOk returns a tuple with the AzureServiceBus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureServiceBus + +`func (o *UpdateIntegrationRequest) SetAzureServiceBus(v AzureServiceBusIntegration)` + +SetAzureServiceBus sets AzureServiceBus field to given value. + +### HasAzureServiceBus + +`func (o *UpdateIntegrationRequest) HasAzureServiceBus() bool` + +HasAzureServiceBus returns a boolean if a field has been set. + +### GetDescription + +`func (o *UpdateIntegrationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *UpdateIntegrationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *UpdateIntegrationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *UpdateIntegrationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDynamodb + +`func (o *UpdateIntegrationRequest) GetDynamodb() DynamodbIntegration` + +GetDynamodb returns the Dynamodb field if non-nil, zero value otherwise. + +### GetDynamodbOk + +`func (o *UpdateIntegrationRequest) GetDynamodbOk() (*DynamodbIntegration, bool)` + +GetDynamodbOk returns a tuple with the Dynamodb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDynamodb + +`func (o *UpdateIntegrationRequest) SetDynamodb(v DynamodbIntegration)` + +SetDynamodb sets Dynamodb field to given value. + +### HasDynamodb + +`func (o *UpdateIntegrationRequest) HasDynamodb() bool` + +HasDynamodb returns a boolean if a field has been set. + +### GetGcs + +`func (o *UpdateIntegrationRequest) GetGcs() GcsIntegration` + +GetGcs returns the Gcs field if non-nil, zero value otherwise. + +### GetGcsOk + +`func (o *UpdateIntegrationRequest) GetGcsOk() (*GcsIntegration, bool)` + +GetGcsOk returns a tuple with the Gcs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcs + +`func (o *UpdateIntegrationRequest) SetGcs(v GcsIntegration)` + +SetGcs sets Gcs field to given value. + +### HasGcs + +`func (o *UpdateIntegrationRequest) HasGcs() bool` + +HasGcs returns a boolean if a field has been set. + +### GetKafka + +`func (o *UpdateIntegrationRequest) GetKafka() KafkaIntegration` + +GetKafka returns the Kafka field if non-nil, zero value otherwise. + +### GetKafkaOk + +`func (o *UpdateIntegrationRequest) GetKafkaOk() (*KafkaIntegration, bool)` + +GetKafkaOk returns a tuple with the Kafka field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafka + +`func (o *UpdateIntegrationRequest) SetKafka(v KafkaIntegration)` + +SetKafka sets Kafka field to given value. + +### HasKafka + +`func (o *UpdateIntegrationRequest) HasKafka() bool` + +HasKafka returns a boolean if a field has been set. + +### GetKinesis + +`func (o *UpdateIntegrationRequest) GetKinesis() KinesisIntegration` + +GetKinesis returns the Kinesis field if non-nil, zero value otherwise. + +### GetKinesisOk + +`func (o *UpdateIntegrationRequest) GetKinesisOk() (*KinesisIntegration, bool)` + +GetKinesisOk returns a tuple with the Kinesis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKinesis + +`func (o *UpdateIntegrationRequest) SetKinesis(v KinesisIntegration)` + +SetKinesis sets Kinesis field to given value. + +### HasKinesis + +`func (o *UpdateIntegrationRequest) HasKinesis() bool` + +HasKinesis returns a boolean if a field has been set. + +### GetMongodb + +`func (o *UpdateIntegrationRequest) GetMongodb() MongoDbIntegration` + +GetMongodb returns the Mongodb field if non-nil, zero value otherwise. + +### GetMongodbOk + +`func (o *UpdateIntegrationRequest) GetMongodbOk() (*MongoDbIntegration, bool)` + +GetMongodbOk returns a tuple with the Mongodb field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMongodb + +`func (o *UpdateIntegrationRequest) SetMongodb(v MongoDbIntegration)` + +SetMongodb sets Mongodb field to given value. + +### HasMongodb + +`func (o *UpdateIntegrationRequest) HasMongodb() bool` + +HasMongodb returns a boolean if a field has been set. + +### GetS3 + +`func (o *UpdateIntegrationRequest) GetS3() S3Integration` + +GetS3 returns the S3 field if non-nil, zero value otherwise. + +### GetS3Ok + +`func (o *UpdateIntegrationRequest) GetS3Ok() (*S3Integration, bool)` + +GetS3Ok returns a tuple with the S3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS3 + +`func (o *UpdateIntegrationRequest) SetS3(v S3Integration)` + +SetS3 sets S3 field to given value. + +### HasS3 + +`func (o *UpdateIntegrationRequest) HasS3() bool` + +HasS3 returns a boolean if a field has been set. + +### GetSnowflake + +`func (o *UpdateIntegrationRequest) GetSnowflake() SnowflakeIntegration` + +GetSnowflake returns the Snowflake field if non-nil, zero value otherwise. + +### GetSnowflakeOk + +`func (o *UpdateIntegrationRequest) GetSnowflakeOk() (*SnowflakeIntegration, bool)` + +GetSnowflakeOk returns a tuple with the Snowflake field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSnowflake + +`func (o *UpdateIntegrationRequest) SetSnowflake(v SnowflakeIntegration)` + +SetSnowflake sets Snowflake field to given value. + +### HasSnowflake + +`func (o *UpdateIntegrationRequest) HasSnowflake() bool` + +HasSnowflake 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/UpdateIntegrationResponse.md b/openapi/docs/UpdateIntegrationResponse.md new file mode 100644 index 00000000..78709a02 --- /dev/null +++ b/openapi/docs/UpdateIntegrationResponse.md @@ -0,0 +1,56 @@ +# UpdateIntegrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**Integration**](Integration.md) | | [optional] + +## Methods + +### NewUpdateIntegrationResponse + +`func NewUpdateIntegrationResponse() *UpdateIntegrationResponse` + +NewUpdateIntegrationResponse instantiates a new UpdateIntegrationResponse 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 + +### NewUpdateIntegrationResponseWithDefaults + +`func NewUpdateIntegrationResponseWithDefaults() *UpdateIntegrationResponse` + +NewUpdateIntegrationResponseWithDefaults instantiates a new UpdateIntegrationResponse 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 *UpdateIntegrationResponse) GetData() Integration` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *UpdateIntegrationResponse) GetDataOk() (*Integration, 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 *UpdateIntegrationResponse) SetData(v Integration)` + +SetData sets Data field to given value. + +### HasData + +`func (o *UpdateIntegrationResponse) 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/VirtualInstancesApi.md b/openapi/docs/VirtualInstancesApi.md index 9b383408..4be3578c 100644 --- a/openapi/docs/VirtualInstancesApi.md +++ b/openapi/docs/VirtualInstancesApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**CreateVirtualInstance**](VirtualInstancesApi.md#CreateVirtualInstance) | **Post** /v1/orgs/self/virtualinstances | Create Virtual Instance [**DeleteVirtualInstance**](VirtualInstancesApi.md#DeleteVirtualInstance) | **Delete** /v1/orgs/self/virtualinstances/{virtualInstanceId} | Delete Virtual Instance [**GetCollectionMount**](VirtualInstancesApi.md#GetCollectionMount) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath} | Get Collection Mount +[**GetMountOffsets**](VirtualInstancesApi.md#GetMountOffsets) | **Post** /v1/orgs/self/virtualinstances/{virtualInstanceId}/mounts/{collectionPath}/offsets/commit | Get Collection Commit [**GetVirtualInstance**](VirtualInstancesApi.md#GetVirtualInstance) | **Get** /v1/orgs/self/virtualinstances/{virtualInstanceId} | Retrieve Virtual Instance [**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 @@ -229,6 +230,81 @@ No authorization required [[Back to README]](../README.md) +## GetMountOffsets + +> GetCollectionCommit GetMountOffsets(ctx, virtualInstanceId, collectionPath).Body(body).Execute() + +Get Collection Commit + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/rockset/rockset-go-client" +) + +func main() { + virtualInstanceId := "virtualInstanceId_example" // string | Virtual Instance RRN + collectionPath := "collectionPath_example" // string | + body := *openapiclient.NewGetCollectionCommitRequest() // GetCollectionCommitRequest | JSON object + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VirtualInstancesApi.GetMountOffsets(context.Background(), virtualInstanceId, collectionPath).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VirtualInstancesApi.GetMountOffsets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMountOffsets`: GetCollectionCommit + fmt.Fprintf(os.Stdout, "Response from `VirtualInstancesApi.GetMountOffsets`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**virtualInstanceId** | **string** | Virtual Instance RRN | +**collectionPath** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMountOffsetsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**GetCollectionCommitRequest**](GetCollectionCommitRequest.md) | JSON object | + +### Return type + +[**GetCollectionCommit**](GetCollectionCommit.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) + + ## GetVirtualInstance > GetVirtualInstanceResponse GetVirtualInstance(ctx, virtualInstanceId).Execute() diff --git a/openapi/model_collection.go b/openapi/model_collection.go index 3936e565..f0e09d0c 100644 --- a/openapi/model_collection.go +++ b/openapi/model_collection.go @@ -43,11 +43,15 @@ type Collection struct { ReadOnly *bool `json:"read_only,omitempty"` // Number of seconds after which data is purged based on event time. RetentionSecs *int64 `json:"retention_secs,omitempty"` + // Collection RRN. + Rrn *string `json:"rrn,omitempty"` // List of sources from which collection ingests. Sources []Source `json:"sources,omitempty"` Stats *CollectionStats `json:"stats,omitempty"` // Current status of collection. Status *string `json:"status,omitempty"` + // RocksDB storage compression type. + StorageCompressionType *string `json:"storage_compression_type,omitempty"` // Name of the workspace that the collection is in. Workspace *string `json:"workspace,omitempty"` } @@ -485,6 +489,38 @@ func (o *Collection) SetRetentionSecs(v int64) { o.RetentionSecs = &v } +// GetRrn returns the Rrn field value if set, zero value otherwise. +func (o *Collection) GetRrn() string { + if o == nil || IsNil(o.Rrn) { + var ret string + return ret + } + return *o.Rrn +} + +// GetRrnOk returns a tuple with the Rrn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Collection) GetRrnOk() (*string, bool) { + if o == nil || IsNil(o.Rrn) { + return nil, false + } + return o.Rrn, true +} + +// HasRrn returns a boolean if a field has been set. +func (o *Collection) HasRrn() bool { + if o != nil && !IsNil(o.Rrn) { + return true + } + + return false +} + +// SetRrn gets a reference to the given string and assigns it to the Rrn field. +func (o *Collection) SetRrn(v string) { + o.Rrn = &v +} + // GetSources returns the Sources field value if set, zero value otherwise. func (o *Collection) GetSources() []Source { if o == nil || IsNil(o.Sources) { @@ -581,6 +617,38 @@ func (o *Collection) SetStatus(v string) { o.Status = &v } +// GetStorageCompressionType returns the StorageCompressionType field value if set, zero value otherwise. +func (o *Collection) GetStorageCompressionType() string { + if o == nil || IsNil(o.StorageCompressionType) { + var ret string + return ret + } + return *o.StorageCompressionType +} + +// GetStorageCompressionTypeOk returns a tuple with the StorageCompressionType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Collection) GetStorageCompressionTypeOk() (*string, bool) { + if o == nil || IsNil(o.StorageCompressionType) { + return nil, false + } + return o.StorageCompressionType, true +} + +// HasStorageCompressionType returns a boolean if a field has been set. +func (o *Collection) HasStorageCompressionType() bool { + if o != nil && !IsNil(o.StorageCompressionType) { + return true + } + + return false +} + +// SetStorageCompressionType gets a reference to the given string and assigns it to the StorageCompressionType field. +func (o *Collection) SetStorageCompressionType(v string) { + o.StorageCompressionType = &v +} + // GetWorkspace returns the Workspace field value if set, zero value otherwise. func (o *Collection) GetWorkspace() string { if o == nil || IsNil(o.Workspace) { @@ -662,6 +730,9 @@ func (o Collection) ToMap() (map[string]interface{}, error) { if !IsNil(o.RetentionSecs) { toSerialize["retention_secs"] = o.RetentionSecs } + if !IsNil(o.Rrn) { + toSerialize["rrn"] = o.Rrn + } if !IsNil(o.Sources) { toSerialize["sources"] = o.Sources } @@ -671,6 +742,9 @@ func (o Collection) ToMap() (map[string]interface{}, error) { if !IsNil(o.Status) { toSerialize["status"] = o.Status } + if !IsNil(o.StorageCompressionType) { + toSerialize["storage_compression_type"] = o.StorageCompressionType + } if !IsNil(o.Workspace) { toSerialize["workspace"] = o.Workspace } diff --git a/openapi/model_mongo_db_integration.go b/openapi/model_mongo_db_integration.go index 54ade3c5..a7608cd5 100644 --- a/openapi/model_mongo_db_integration.go +++ b/openapi/model_mongo_db_integration.go @@ -21,6 +21,7 @@ var _ MappedNullable = &MongoDbIntegration{} type MongoDbIntegration struct { // MongoDB connection URI string. ConnectionUri string `json:"connection_uri"` + Tls *TLSConfig `json:"tls,omitempty"` } // NewMongoDbIntegration instantiates a new MongoDbIntegration object @@ -65,6 +66,38 @@ func (o *MongoDbIntegration) SetConnectionUri(v string) { o.ConnectionUri = v } +// GetTls returns the Tls field value if set, zero value otherwise. +func (o *MongoDbIntegration) GetTls() TLSConfig { + if o == nil || IsNil(o.Tls) { + var ret TLSConfig + return ret + } + return *o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MongoDbIntegration) GetTlsOk() (*TLSConfig, bool) { + if o == nil || IsNil(o.Tls) { + return nil, false + } + return o.Tls, true +} + +// HasTls returns a boolean if a field has been set. +func (o *MongoDbIntegration) HasTls() bool { + if o != nil && !IsNil(o.Tls) { + return true + } + + return false +} + +// SetTls gets a reference to the given TLSConfig and assigns it to the Tls field. +func (o *MongoDbIntegration) SetTls(v TLSConfig) { + o.Tls = &v +} + func (o MongoDbIntegration) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -76,6 +109,9 @@ func (o MongoDbIntegration) MarshalJSON() ([]byte, error) { func (o MongoDbIntegration) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["connection_uri"] = o.ConnectionUri + if !IsNil(o.Tls) { + toSerialize["tls"] = o.Tls + } return toSerialize, nil } diff --git a/openapi/model_source.go b/openapi/model_source.go index 9fc71119..eb209a05 100644 --- a/openapi/model_source.go +++ b/openapi/model_source.go @@ -34,6 +34,8 @@ type Source struct { Kafka *SourceKafka `json:"kafka,omitempty"` Kinesis *SourceKinesis `json:"kinesis,omitempty"` Mongodb *SourceMongoDb `json:"mongodb,omitempty"` + // ISO-8601 date when source would be auto resumed, if suspended + ResumeAt *string `json:"resume_at,omitempty"` S3 *SourceS3 `json:"s3,omitempty"` Snowflake *SourceSnowflake `json:"snowflake,omitempty"` Status *Status `json:"status,omitempty"` @@ -475,6 +477,38 @@ func (o *Source) SetMongodb(v SourceMongoDb) { o.Mongodb = &v } +// GetResumeAt returns the ResumeAt field value if set, zero value otherwise. +func (o *Source) GetResumeAt() string { + if o == nil || IsNil(o.ResumeAt) { + var ret string + return ret + } + return *o.ResumeAt +} + +// GetResumeAtOk returns a tuple with the ResumeAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Source) GetResumeAtOk() (*string, bool) { + if o == nil || IsNil(o.ResumeAt) { + return nil, false + } + return o.ResumeAt, true +} + +// HasResumeAt returns a boolean if a field has been set. +func (o *Source) HasResumeAt() bool { + if o != nil && !IsNil(o.ResumeAt) { + return true + } + + return false +} + +// SetResumeAt gets a reference to the given string and assigns it to the ResumeAt field. +func (o *Source) SetResumeAt(v string) { + o.ResumeAt = &v +} + // GetS3 returns the S3 field value if set, zero value otherwise. func (o *Source) GetS3() SourceS3 { if o == nil || IsNil(o.S3) { @@ -682,6 +716,7 @@ func (o Source) ToMap() (map[string]interface{}, error) { if !IsNil(o.Mongodb) { toSerialize["mongodb"] = o.Mongodb } + // skip: resume_at is readOnly if !IsNil(o.S3) { toSerialize["s3"] = o.S3 } diff --git a/openapi/model_source_az_blob_storage_base.go b/openapi/model_source_az_blob_storage_base.go new file mode 100644 index 00000000..e5842819 --- /dev/null +++ b/openapi/model_source_az_blob_storage_base.go @@ -0,0 +1,126 @@ +/* +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" +) + +// checks if the SourceAzBlobStorageBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceAzBlobStorageBase{} + +// SourceAzBlobStorageBase struct for SourceAzBlobStorageBase +type SourceAzBlobStorageBase struct { + Settings *SourceAzBlobStorageSettings `json:"settings,omitempty"` +} + +// NewSourceAzBlobStorageBase instantiates a new SourceAzBlobStorageBase 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 NewSourceAzBlobStorageBase() *SourceAzBlobStorageBase { + this := SourceAzBlobStorageBase{} + return &this +} + +// NewSourceAzBlobStorageBaseWithDefaults instantiates a new SourceAzBlobStorageBase 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 NewSourceAzBlobStorageBaseWithDefaults() *SourceAzBlobStorageBase { + this := SourceAzBlobStorageBase{} + return &this +} + +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *SourceAzBlobStorageBase) GetSettings() SourceAzBlobStorageSettings { + if o == nil || IsNil(o.Settings) { + var ret SourceAzBlobStorageSettings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceAzBlobStorageBase) GetSettingsOk() (*SourceAzBlobStorageSettings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *SourceAzBlobStorageBase) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given SourceAzBlobStorageSettings and assigns it to the Settings field. +func (o *SourceAzBlobStorageBase) SetSettings(v SourceAzBlobStorageSettings) { + o.Settings = &v +} + +func (o SourceAzBlobStorageBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceAzBlobStorageBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } + return toSerialize, nil +} + +type NullableSourceAzBlobStorageBase struct { + value *SourceAzBlobStorageBase + isSet bool +} + +func (v NullableSourceAzBlobStorageBase) Get() *SourceAzBlobStorageBase { + return v.value +} + +func (v *NullableSourceAzBlobStorageBase) Set(val *SourceAzBlobStorageBase) { + v.value = val + v.isSet = true +} + +func (v NullableSourceAzBlobStorageBase) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceAzBlobStorageBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceAzBlobStorageBase(val *SourceAzBlobStorageBase) *NullableSourceAzBlobStorageBase { + return &NullableSourceAzBlobStorageBase{value: val, isSet: true} +} + +func (v NullableSourceAzBlobStorageBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceAzBlobStorageBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_az_blob_storage_settings.go b/openapi/model_source_az_blob_storage_settings.go new file mode 100644 index 00000000..d7a9b4ac --- /dev/null +++ b/openapi/model_source_az_blob_storage_settings.go @@ -0,0 +1,127 @@ +/* +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" +) + +// checks if the SourceAzBlobStorageSettings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceAzBlobStorageSettings{} + +// SourceAzBlobStorageSettings struct for SourceAzBlobStorageSettings +type SourceAzBlobStorageSettings struct { + // Rockset scans an Azure blob Storage container based on a defined time interval. The scan frequency determines the length of time between a new scan and the previous scan. If the previous scan finds new objects or updates to existing objects, Rockset immediately scans the bucket again after processing changes from the previous scan. + AzblobScanFrequency *string `json:"azblob_scan_frequency,omitempty"` +} + +// NewSourceAzBlobStorageSettings instantiates a new SourceAzBlobStorageSettings 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 NewSourceAzBlobStorageSettings() *SourceAzBlobStorageSettings { + this := SourceAzBlobStorageSettings{} + return &this +} + +// NewSourceAzBlobStorageSettingsWithDefaults instantiates a new SourceAzBlobStorageSettings 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 NewSourceAzBlobStorageSettingsWithDefaults() *SourceAzBlobStorageSettings { + this := SourceAzBlobStorageSettings{} + return &this +} + +// GetAzblobScanFrequency returns the AzblobScanFrequency field value if set, zero value otherwise. +func (o *SourceAzBlobStorageSettings) GetAzblobScanFrequency() string { + if o == nil || IsNil(o.AzblobScanFrequency) { + var ret string + return ret + } + return *o.AzblobScanFrequency +} + +// GetAzblobScanFrequencyOk returns a tuple with the AzblobScanFrequency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceAzBlobStorageSettings) GetAzblobScanFrequencyOk() (*string, bool) { + if o == nil || IsNil(o.AzblobScanFrequency) { + return nil, false + } + return o.AzblobScanFrequency, true +} + +// HasAzblobScanFrequency returns a boolean if a field has been set. +func (o *SourceAzBlobStorageSettings) HasAzblobScanFrequency() bool { + if o != nil && !IsNil(o.AzblobScanFrequency) { + return true + } + + return false +} + +// SetAzblobScanFrequency gets a reference to the given string and assigns it to the AzblobScanFrequency field. +func (o *SourceAzBlobStorageSettings) SetAzblobScanFrequency(v string) { + o.AzblobScanFrequency = &v +} + +func (o SourceAzBlobStorageSettings) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceAzBlobStorageSettings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AzblobScanFrequency) { + toSerialize["azblob_scan_frequency"] = o.AzblobScanFrequency + } + return toSerialize, nil +} + +type NullableSourceAzBlobStorageSettings struct { + value *SourceAzBlobStorageSettings + isSet bool +} + +func (v NullableSourceAzBlobStorageSettings) Get() *SourceAzBlobStorageSettings { + return v.value +} + +func (v *NullableSourceAzBlobStorageSettings) Set(val *SourceAzBlobStorageSettings) { + v.value = val + v.isSet = true +} + +func (v NullableSourceAzBlobStorageSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceAzBlobStorageSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceAzBlobStorageSettings(val *SourceAzBlobStorageSettings) *NullableSourceAzBlobStorageSettings { + return &NullableSourceAzBlobStorageSettings{value: val, isSet: true} +} + +func (v NullableSourceAzBlobStorageSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceAzBlobStorageSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_azure_blob_storage.go b/openapi/model_source_azure_blob_storage.go index 74ae2517..fb57fa53 100644 --- a/openapi/model_source_azure_blob_storage.go +++ b/openapi/model_source_azure_blob_storage.go @@ -28,6 +28,7 @@ type SourceAzureBlobStorage struct { Pattern *string `json:"pattern,omitempty"` // Prefix that selects blobs to ingest. Prefix *string `json:"prefix,omitempty"` + Settings *SourceAzBlobStorageSettings `json:"settings,omitempty"` } // NewSourceAzureBlobStorage instantiates a new SourceAzureBlobStorage object @@ -239,6 +240,38 @@ func (o *SourceAzureBlobStorage) SetPrefix(v string) { o.Prefix = &v } +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *SourceAzureBlobStorage) GetSettings() SourceAzBlobStorageSettings { + if o == nil || IsNil(o.Settings) { + var ret SourceAzBlobStorageSettings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceAzureBlobStorage) GetSettingsOk() (*SourceAzBlobStorageSettings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *SourceAzureBlobStorage) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given SourceAzBlobStorageSettings and assigns it to the Settings field. +func (o *SourceAzureBlobStorage) SetSettings(v SourceAzBlobStorageSettings) { + o.Settings = &v +} + func (o SourceAzureBlobStorage) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -261,6 +294,9 @@ func (o SourceAzureBlobStorage) ToMap() (map[string]interface{}, error) { if !IsNil(o.Prefix) { toSerialize["prefix"] = o.Prefix } + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } return toSerialize, nil } diff --git a/openapi/model_source_base.go b/openapi/model_source_base.go new file mode 100644 index 00000000..735f64b2 --- /dev/null +++ b/openapi/model_source_base.go @@ -0,0 +1,234 @@ +/* +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" +) + +// checks if the SourceBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceBase{} + +// SourceBase struct for SourceBase +type SourceBase struct { + AzureBlobStorage *SourceAzBlobStorageBase `json:"azure_blob_storage,omitempty"` + Dynamodb *SourceDynamoDb `json:"dynamodb,omitempty"` + Gcs *SourceGcsBase `json:"gcs,omitempty"` + S3 *SourceS3Base `json:"s3,omitempty"` +} + +// NewSourceBase instantiates a new SourceBase 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 NewSourceBase() *SourceBase { + this := SourceBase{} + return &this +} + +// NewSourceBaseWithDefaults instantiates a new SourceBase 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 NewSourceBaseWithDefaults() *SourceBase { + this := SourceBase{} + return &this +} + +// GetAzureBlobStorage returns the AzureBlobStorage field value if set, zero value otherwise. +func (o *SourceBase) GetAzureBlobStorage() SourceAzBlobStorageBase { + if o == nil || IsNil(o.AzureBlobStorage) { + var ret SourceAzBlobStorageBase + return ret + } + return *o.AzureBlobStorage +} + +// GetAzureBlobStorageOk returns a tuple with the AzureBlobStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceBase) GetAzureBlobStorageOk() (*SourceAzBlobStorageBase, bool) { + if o == nil || IsNil(o.AzureBlobStorage) { + return nil, false + } + return o.AzureBlobStorage, true +} + +// HasAzureBlobStorage returns a boolean if a field has been set. +func (o *SourceBase) HasAzureBlobStorage() bool { + if o != nil && !IsNil(o.AzureBlobStorage) { + return true + } + + return false +} + +// SetAzureBlobStorage gets a reference to the given SourceAzBlobStorageBase and assigns it to the AzureBlobStorage field. +func (o *SourceBase) SetAzureBlobStorage(v SourceAzBlobStorageBase) { + o.AzureBlobStorage = &v +} + +// GetDynamodb returns the Dynamodb field value if set, zero value otherwise. +func (o *SourceBase) GetDynamodb() SourceDynamoDb { + if o == nil || IsNil(o.Dynamodb) { + var ret SourceDynamoDb + return ret + } + return *o.Dynamodb +} + +// GetDynamodbOk returns a tuple with the Dynamodb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceBase) GetDynamodbOk() (*SourceDynamoDb, bool) { + if o == nil || IsNil(o.Dynamodb) { + return nil, false + } + return o.Dynamodb, true +} + +// HasDynamodb returns a boolean if a field has been set. +func (o *SourceBase) HasDynamodb() bool { + if o != nil && !IsNil(o.Dynamodb) { + return true + } + + return false +} + +// SetDynamodb gets a reference to the given SourceDynamoDb and assigns it to the Dynamodb field. +func (o *SourceBase) SetDynamodb(v SourceDynamoDb) { + o.Dynamodb = &v +} + +// GetGcs returns the Gcs field value if set, zero value otherwise. +func (o *SourceBase) GetGcs() SourceGcsBase { + if o == nil || IsNil(o.Gcs) { + var ret SourceGcsBase + return ret + } + return *o.Gcs +} + +// GetGcsOk returns a tuple with the Gcs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceBase) GetGcsOk() (*SourceGcsBase, bool) { + if o == nil || IsNil(o.Gcs) { + return nil, false + } + return o.Gcs, true +} + +// HasGcs returns a boolean if a field has been set. +func (o *SourceBase) HasGcs() bool { + if o != nil && !IsNil(o.Gcs) { + return true + } + + return false +} + +// SetGcs gets a reference to the given SourceGcsBase and assigns it to the Gcs field. +func (o *SourceBase) SetGcs(v SourceGcsBase) { + o.Gcs = &v +} + +// GetS3 returns the S3 field value if set, zero value otherwise. +func (o *SourceBase) GetS3() SourceS3Base { + if o == nil || IsNil(o.S3) { + var ret SourceS3Base + return ret + } + return *o.S3 +} + +// GetS3Ok returns a tuple with the S3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceBase) GetS3Ok() (*SourceS3Base, bool) { + if o == nil || IsNil(o.S3) { + return nil, false + } + return o.S3, true +} + +// HasS3 returns a boolean if a field has been set. +func (o *SourceBase) HasS3() bool { + if o != nil && !IsNil(o.S3) { + return true + } + + return false +} + +// SetS3 gets a reference to the given SourceS3Base and assigns it to the S3 field. +func (o *SourceBase) SetS3(v SourceS3Base) { + o.S3 = &v +} + +func (o SourceBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AzureBlobStorage) { + toSerialize["azure_blob_storage"] = o.AzureBlobStorage + } + if !IsNil(o.Dynamodb) { + toSerialize["dynamodb"] = o.Dynamodb + } + if !IsNil(o.Gcs) { + toSerialize["gcs"] = o.Gcs + } + if !IsNil(o.S3) { + toSerialize["s3"] = o.S3 + } + return toSerialize, nil +} + +type NullableSourceBase struct { + value *SourceBase + isSet bool +} + +func (v NullableSourceBase) Get() *SourceBase { + return v.value +} + +func (v *NullableSourceBase) Set(val *SourceBase) { + v.value = val + v.isSet = true +} + +func (v NullableSourceBase) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceBase(val *SourceBase) *NullableSourceBase { + return &NullableSourceBase{value: val, isSet: true} +} + +func (v NullableSourceBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_gcs.go b/openapi/model_source_gcs.go index cbe08cc7..9720dd52 100644 --- a/openapi/model_source_gcs.go +++ b/openapi/model_source_gcs.go @@ -29,6 +29,7 @@ type SourceGcs struct { Pattern *string `json:"pattern,omitempty"` // Prefix that selects keys to ingest. Prefix *string `json:"prefix,omitempty"` + Settings *SourceGcsSettings `json:"settings,omitempty"` } // NewSourceGcs instantiates a new SourceGcs object @@ -272,6 +273,38 @@ func (o *SourceGcs) SetPrefix(v string) { o.Prefix = &v } +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *SourceGcs) GetSettings() SourceGcsSettings { + if o == nil || IsNil(o.Settings) { + var ret SourceGcsSettings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceGcs) GetSettingsOk() (*SourceGcsSettings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *SourceGcs) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given SourceGcsSettings and assigns it to the Settings field. +func (o *SourceGcs) SetSettings(v SourceGcsSettings) { + o.Settings = &v +} + func (o SourceGcs) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -295,6 +328,9 @@ func (o SourceGcs) ToMap() (map[string]interface{}, error) { if !IsNil(o.Prefix) { toSerialize["prefix"] = o.Prefix } + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } return toSerialize, nil } diff --git a/openapi/model_source_gcs_base.go b/openapi/model_source_gcs_base.go new file mode 100644 index 00000000..0860bacf --- /dev/null +++ b/openapi/model_source_gcs_base.go @@ -0,0 +1,126 @@ +/* +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" +) + +// checks if the SourceGcsBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceGcsBase{} + +// SourceGcsBase struct for SourceGcsBase +type SourceGcsBase struct { + Settings *SourceGcsSettings `json:"settings,omitempty"` +} + +// NewSourceGcsBase instantiates a new SourceGcsBase 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 NewSourceGcsBase() *SourceGcsBase { + this := SourceGcsBase{} + return &this +} + +// NewSourceGcsBaseWithDefaults instantiates a new SourceGcsBase 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 NewSourceGcsBaseWithDefaults() *SourceGcsBase { + this := SourceGcsBase{} + return &this +} + +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *SourceGcsBase) GetSettings() SourceGcsSettings { + if o == nil || IsNil(o.Settings) { + var ret SourceGcsSettings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceGcsBase) GetSettingsOk() (*SourceGcsSettings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *SourceGcsBase) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given SourceGcsSettings and assigns it to the Settings field. +func (o *SourceGcsBase) SetSettings(v SourceGcsSettings) { + o.Settings = &v +} + +func (o SourceGcsBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceGcsBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } + return toSerialize, nil +} + +type NullableSourceGcsBase struct { + value *SourceGcsBase + isSet bool +} + +func (v NullableSourceGcsBase) Get() *SourceGcsBase { + return v.value +} + +func (v *NullableSourceGcsBase) Set(val *SourceGcsBase) { + v.value = val + v.isSet = true +} + +func (v NullableSourceGcsBase) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceGcsBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceGcsBase(val *SourceGcsBase) *NullableSourceGcsBase { + return &NullableSourceGcsBase{value: val, isSet: true} +} + +func (v NullableSourceGcsBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceGcsBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_gcs_settings.go b/openapi/model_source_gcs_settings.go new file mode 100644 index 00000000..7339bdd9 --- /dev/null +++ b/openapi/model_source_gcs_settings.go @@ -0,0 +1,127 @@ +/* +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" +) + +// checks if the SourceGcsSettings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceGcsSettings{} + +// SourceGcsSettings struct for SourceGcsSettings +type SourceGcsSettings struct { + // Rockset scans a GCS bucket based on a defined time interval. The scan frequency determines the length of time between a new scan and the previous scan. If the previous scan finds new objects or updates to existing objects, Rockset immediately scans the bucket again after processing changes from the previous scan. + GcsScanFrequency *string `json:"gcs_scan_frequency,omitempty"` +} + +// NewSourceGcsSettings instantiates a new SourceGcsSettings 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 NewSourceGcsSettings() *SourceGcsSettings { + this := SourceGcsSettings{} + return &this +} + +// NewSourceGcsSettingsWithDefaults instantiates a new SourceGcsSettings 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 NewSourceGcsSettingsWithDefaults() *SourceGcsSettings { + this := SourceGcsSettings{} + return &this +} + +// GetGcsScanFrequency returns the GcsScanFrequency field value if set, zero value otherwise. +func (o *SourceGcsSettings) GetGcsScanFrequency() string { + if o == nil || IsNil(o.GcsScanFrequency) { + var ret string + return ret + } + return *o.GcsScanFrequency +} + +// GetGcsScanFrequencyOk returns a tuple with the GcsScanFrequency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceGcsSettings) GetGcsScanFrequencyOk() (*string, bool) { + if o == nil || IsNil(o.GcsScanFrequency) { + return nil, false + } + return o.GcsScanFrequency, true +} + +// HasGcsScanFrequency returns a boolean if a field has been set. +func (o *SourceGcsSettings) HasGcsScanFrequency() bool { + if o != nil && !IsNil(o.GcsScanFrequency) { + return true + } + + return false +} + +// SetGcsScanFrequency gets a reference to the given string and assigns it to the GcsScanFrequency field. +func (o *SourceGcsSettings) SetGcsScanFrequency(v string) { + o.GcsScanFrequency = &v +} + +func (o SourceGcsSettings) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceGcsSettings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GcsScanFrequency) { + toSerialize["gcs_scan_frequency"] = o.GcsScanFrequency + } + return toSerialize, nil +} + +type NullableSourceGcsSettings struct { + value *SourceGcsSettings + isSet bool +} + +func (v NullableSourceGcsSettings) Get() *SourceGcsSettings { + return v.value +} + +func (v *NullableSourceGcsSettings) Set(val *SourceGcsSettings) { + v.value = val + v.isSet = true +} + +func (v NullableSourceGcsSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceGcsSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceGcsSettings(val *SourceGcsSettings) *NullableSourceGcsSettings { + return &NullableSourceGcsSettings{value: val, isSet: true} +} + +func (v NullableSourceGcsSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceGcsSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_s3.go b/openapi/model_source_s3.go index 71231acd..cab50ee8 100644 --- a/openapi/model_source_s3.go +++ b/openapi/model_source_s3.go @@ -33,6 +33,7 @@ type SourceS3 struct { Prefixes []string `json:"prefixes,omitempty"` // AWS region containing source bucket. Region *string `json:"region,omitempty"` + Settings *SourceS3Settings `json:"settings,omitempty"` } // NewSourceS3 instantiates a new SourceS3 object @@ -333,6 +334,38 @@ func (o *SourceS3) SetRegion(v string) { o.Region = &v } +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *SourceS3) GetSettings() SourceS3Settings { + if o == nil || IsNil(o.Settings) { + var ret SourceS3Settings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceS3) GetSettingsOk() (*SourceS3Settings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *SourceS3) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given SourceS3Settings and assigns it to the Settings field. +func (o *SourceS3) SetSettings(v SourceS3Settings) { + o.Settings = &v +} + func (o SourceS3) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -358,6 +391,9 @@ func (o SourceS3) ToMap() (map[string]interface{}, error) { if !IsNil(o.Region) { toSerialize["region"] = o.Region } + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } return toSerialize, nil } diff --git a/openapi/model_source_s3_base.go b/openapi/model_source_s3_base.go new file mode 100644 index 00000000..0a372df8 --- /dev/null +++ b/openapi/model_source_s3_base.go @@ -0,0 +1,126 @@ +/* +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" +) + +// checks if the SourceS3Base type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceS3Base{} + +// SourceS3Base struct for SourceS3Base +type SourceS3Base struct { + Settings *SourceS3Settings `json:"settings,omitempty"` +} + +// NewSourceS3Base instantiates a new SourceS3Base 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 NewSourceS3Base() *SourceS3Base { + this := SourceS3Base{} + return &this +} + +// NewSourceS3BaseWithDefaults instantiates a new SourceS3Base 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 NewSourceS3BaseWithDefaults() *SourceS3Base { + this := SourceS3Base{} + return &this +} + +// GetSettings returns the Settings field value if set, zero value otherwise. +func (o *SourceS3Base) GetSettings() SourceS3Settings { + if o == nil || IsNil(o.Settings) { + var ret SourceS3Settings + return ret + } + return *o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceS3Base) GetSettingsOk() (*SourceS3Settings, bool) { + if o == nil || IsNil(o.Settings) { + return nil, false + } + return o.Settings, true +} + +// HasSettings returns a boolean if a field has been set. +func (o *SourceS3Base) HasSettings() bool { + if o != nil && !IsNil(o.Settings) { + return true + } + + return false +} + +// SetSettings gets a reference to the given SourceS3Settings and assigns it to the Settings field. +func (o *SourceS3Base) SetSettings(v SourceS3Settings) { + o.Settings = &v +} + +func (o SourceS3Base) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceS3Base) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Settings) { + toSerialize["settings"] = o.Settings + } + return toSerialize, nil +} + +type NullableSourceS3Base struct { + value *SourceS3Base + isSet bool +} + +func (v NullableSourceS3Base) Get() *SourceS3Base { + return v.value +} + +func (v *NullableSourceS3Base) Set(val *SourceS3Base) { + v.value = val + v.isSet = true +} + +func (v NullableSourceS3Base) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceS3Base) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceS3Base(val *SourceS3Base) *NullableSourceS3Base { + return &NullableSourceS3Base{value: val, isSet: true} +} + +func (v NullableSourceS3Base) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceS3Base) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_s3_settings.go b/openapi/model_source_s3_settings.go new file mode 100644 index 00000000..936e5d9a --- /dev/null +++ b/openapi/model_source_s3_settings.go @@ -0,0 +1,127 @@ +/* +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" +) + +// checks if the SourceS3Settings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SourceS3Settings{} + +// SourceS3Settings struct for SourceS3Settings +type SourceS3Settings struct { + // Rockset scans an S3 bucket based on a defined time interval. The scan frequency determines the length of time between a new scan and the previous scan. If the previous scan finds new objects or updates to existing objects, Rockset immediately scans the bucket again after processing changes from the previous scan. + S3ScanFrequency *string `json:"s3_scan_frequency,omitempty"` +} + +// NewSourceS3Settings instantiates a new SourceS3Settings 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 NewSourceS3Settings() *SourceS3Settings { + this := SourceS3Settings{} + return &this +} + +// NewSourceS3SettingsWithDefaults instantiates a new SourceS3Settings 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 NewSourceS3SettingsWithDefaults() *SourceS3Settings { + this := SourceS3Settings{} + return &this +} + +// GetS3ScanFrequency returns the S3ScanFrequency field value if set, zero value otherwise. +func (o *SourceS3Settings) GetS3ScanFrequency() string { + if o == nil || IsNil(o.S3ScanFrequency) { + var ret string + return ret + } + return *o.S3ScanFrequency +} + +// GetS3ScanFrequencyOk returns a tuple with the S3ScanFrequency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SourceS3Settings) GetS3ScanFrequencyOk() (*string, bool) { + if o == nil || IsNil(o.S3ScanFrequency) { + return nil, false + } + return o.S3ScanFrequency, true +} + +// HasS3ScanFrequency returns a boolean if a field has been set. +func (o *SourceS3Settings) HasS3ScanFrequency() bool { + if o != nil && !IsNil(o.S3ScanFrequency) { + return true + } + + return false +} + +// SetS3ScanFrequency gets a reference to the given string and assigns it to the S3ScanFrequency field. +func (o *SourceS3Settings) SetS3ScanFrequency(v string) { + o.S3ScanFrequency = &v +} + +func (o SourceS3Settings) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SourceS3Settings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.S3ScanFrequency) { + toSerialize["s3_scan_frequency"] = o.S3ScanFrequency + } + return toSerialize, nil +} + +type NullableSourceS3Settings struct { + value *SourceS3Settings + isSet bool +} + +func (v NullableSourceS3Settings) Get() *SourceS3Settings { + return v.value +} + +func (v *NullableSourceS3Settings) Set(val *SourceS3Settings) { + v.value = val + v.isSet = true +} + +func (v NullableSourceS3Settings) IsSet() bool { + return v.isSet +} + +func (v *NullableSourceS3Settings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSourceS3Settings(val *SourceS3Settings) *NullableSourceS3Settings { + return &NullableSourceS3Settings{value: val, isSet: true} +} + +func (v NullableSourceS3Settings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSourceS3Settings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_source_snapshot.go b/openapi/model_source_snapshot.go index d6ca938d..8332c0d6 100644 --- a/openapi/model_source_snapshot.go +++ b/openapi/model_source_snapshot.go @@ -19,10 +19,8 @@ var _ MappedNullable = &SourceSnapshot{} // 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"` + // RRN of the snapshot that the new collection will be created from. + SourceSnapshotRrn *string `json:"source_snapshot_rrn,omitempty"` } // NewSourceSnapshot instantiates a new SourceSnapshot object @@ -42,68 +40,36 @@ func NewSourceSnapshotWithDefaults() *SourceSnapshot { return &this } -// GetSourceCollectionPath returns the SourceCollectionPath field value if set, zero value otherwise. -func (o *SourceSnapshot) GetSourceCollectionPath() string { - if o == nil || IsNil(o.SourceCollectionPath) { +// GetSourceSnapshotRrn returns the SourceSnapshotRrn field value if set, zero value otherwise. +func (o *SourceSnapshot) GetSourceSnapshotRrn() string { + if o == nil || IsNil(o.SourceSnapshotRrn) { var ret string return ret } - return *o.SourceCollectionPath + return *o.SourceSnapshotRrn } -// GetSourceCollectionPathOk returns a tuple with the SourceCollectionPath field value if set, nil otherwise +// GetSourceSnapshotRrnOk returns a tuple with the SourceSnapshotRrn 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 || IsNil(o.SourceCollectionPath) { +func (o *SourceSnapshot) GetSourceSnapshotRrnOk() (*string, bool) { + if o == nil || IsNil(o.SourceSnapshotRrn) { return nil, false } - return o.SourceCollectionPath, true + return o.SourceSnapshotRrn, true } -// HasSourceCollectionPath returns a boolean if a field has been set. -func (o *SourceSnapshot) HasSourceCollectionPath() bool { - if o != nil && !IsNil(o.SourceCollectionPath) { +// HasSourceSnapshotRrn returns a boolean if a field has been set. +func (o *SourceSnapshot) HasSourceSnapshotRrn() bool { + if o != nil && !IsNil(o.SourceSnapshotRrn) { 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 || IsNil(o.SourceSnapshotId) { - 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 || IsNil(o.SourceSnapshotId) { - 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 && !IsNil(o.SourceSnapshotId) { - 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 +// SetSourceSnapshotRrn gets a reference to the given string and assigns it to the SourceSnapshotRrn field. +func (o *SourceSnapshot) SetSourceSnapshotRrn(v string) { + o.SourceSnapshotRrn = &v } func (o SourceSnapshot) MarshalJSON() ([]byte, error) { @@ -116,11 +82,8 @@ func (o SourceSnapshot) MarshalJSON() ([]byte, error) { func (o SourceSnapshot) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.SourceCollectionPath) { - toSerialize["source_collection_path"] = o.SourceCollectionPath - } - if !IsNil(o.SourceSnapshotId) { - toSerialize["source_snapshot_id"] = o.SourceSnapshotId + if !IsNil(o.SourceSnapshotRrn) { + toSerialize["source_snapshot_rrn"] = o.SourceSnapshotRrn } return toSerialize, nil } diff --git a/openapi/model_suspend_source_request.go b/openapi/model_suspend_source_request.go new file mode 100644 index 00000000..bfd93ae6 --- /dev/null +++ b/openapi/model_suspend_source_request.go @@ -0,0 +1,127 @@ +/* +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" +) + +// checks if the SuspendSourceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SuspendSourceRequest{} + +// SuspendSourceRequest struct for SuspendSourceRequest +type SuspendSourceRequest struct { + // duration to suspend source; 1h is the default + ResumeAfterDuration *string `json:"resume_after_duration,omitempty"` +} + +// NewSuspendSourceRequest instantiates a new SuspendSourceRequest 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 NewSuspendSourceRequest() *SuspendSourceRequest { + this := SuspendSourceRequest{} + return &this +} + +// NewSuspendSourceRequestWithDefaults instantiates a new SuspendSourceRequest 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 NewSuspendSourceRequestWithDefaults() *SuspendSourceRequest { + this := SuspendSourceRequest{} + return &this +} + +// GetResumeAfterDuration returns the ResumeAfterDuration field value if set, zero value otherwise. +func (o *SuspendSourceRequest) GetResumeAfterDuration() string { + if o == nil || IsNil(o.ResumeAfterDuration) { + var ret string + return ret + } + return *o.ResumeAfterDuration +} + +// GetResumeAfterDurationOk returns a tuple with the ResumeAfterDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SuspendSourceRequest) GetResumeAfterDurationOk() (*string, bool) { + if o == nil || IsNil(o.ResumeAfterDuration) { + return nil, false + } + return o.ResumeAfterDuration, true +} + +// HasResumeAfterDuration returns a boolean if a field has been set. +func (o *SuspendSourceRequest) HasResumeAfterDuration() bool { + if o != nil && !IsNil(o.ResumeAfterDuration) { + return true + } + + return false +} + +// SetResumeAfterDuration gets a reference to the given string and assigns it to the ResumeAfterDuration field. +func (o *SuspendSourceRequest) SetResumeAfterDuration(v string) { + o.ResumeAfterDuration = &v +} + +func (o SuspendSourceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SuspendSourceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ResumeAfterDuration) { + toSerialize["resume_after_duration"] = o.ResumeAfterDuration + } + return toSerialize, nil +} + +type NullableSuspendSourceRequest struct { + value *SuspendSourceRequest + isSet bool +} + +func (v NullableSuspendSourceRequest) Get() *SuspendSourceRequest { + return v.value +} + +func (v *NullableSuspendSourceRequest) Set(val *SuspendSourceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSuspendSourceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSuspendSourceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSuspendSourceRequest(val *SuspendSourceRequest) *NullableSuspendSourceRequest { + return &NullableSuspendSourceRequest{value: val, isSet: true} +} + +func (v NullableSuspendSourceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSuspendSourceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_tls_config.go b/openapi/model_tls_config.go new file mode 100644 index 00000000..dc05f03c --- /dev/null +++ b/openapi/model_tls_config.go @@ -0,0 +1,253 @@ +/* +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" +) + +// checks if the TLSConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TLSConfig{} + +// TLSConfig struct for TLSConfig +type TLSConfig struct { + // PEM-formatted certificate chain of the Certificate Authority used to verify remote server. If empty, Rockset, will use publicly trusted CAs + CaCert *string `json:"ca_cert,omitempty"` + // PEM-formatted certificate chain to use for client authentication + ClientCert string `json:"client_cert"` + // Expiration date of the client certificate (represented as number of ms since epoch) + ClientCertExpiry *int64 `json:"client_cert_expiry,omitempty"` + // Subject of the client certificate, containing common name and other attributes + ClientCertSubject *string `json:"client_cert_subject,omitempty"` + // PEM-formatted private key to be used for client authentication + ClientKey string `json:"client_key"` +} + +// NewTLSConfig instantiates a new TLSConfig 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 NewTLSConfig(clientCert string, clientKey string) *TLSConfig { + this := TLSConfig{} + this.ClientCert = clientCert + this.ClientKey = clientKey + return &this +} + +// NewTLSConfigWithDefaults instantiates a new TLSConfig 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 NewTLSConfigWithDefaults() *TLSConfig { + this := TLSConfig{} + return &this +} + +// GetCaCert returns the CaCert field value if set, zero value otherwise. +func (o *TLSConfig) GetCaCert() string { + if o == nil || IsNil(o.CaCert) { + var ret string + return ret + } + return *o.CaCert +} + +// GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TLSConfig) GetCaCertOk() (*string, bool) { + if o == nil || IsNil(o.CaCert) { + return nil, false + } + return o.CaCert, true +} + +// HasCaCert returns a boolean if a field has been set. +func (o *TLSConfig) HasCaCert() bool { + if o != nil && !IsNil(o.CaCert) { + return true + } + + return false +} + +// SetCaCert gets a reference to the given string and assigns it to the CaCert field. +func (o *TLSConfig) SetCaCert(v string) { + o.CaCert = &v +} + +// GetClientCert returns the ClientCert field value +func (o *TLSConfig) GetClientCert() string { + if o == nil { + var ret string + return ret + } + + return o.ClientCert +} + +// GetClientCertOk returns a tuple with the ClientCert field value +// and a boolean to check if the value has been set. +func (o *TLSConfig) GetClientCertOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientCert, true +} + +// SetClientCert sets field value +func (o *TLSConfig) SetClientCert(v string) { + o.ClientCert = v +} + +// GetClientCertExpiry returns the ClientCertExpiry field value if set, zero value otherwise. +func (o *TLSConfig) GetClientCertExpiry() int64 { + if o == nil || IsNil(o.ClientCertExpiry) { + var ret int64 + return ret + } + return *o.ClientCertExpiry +} + +// GetClientCertExpiryOk returns a tuple with the ClientCertExpiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TLSConfig) GetClientCertExpiryOk() (*int64, bool) { + if o == nil || IsNil(o.ClientCertExpiry) { + return nil, false + } + return o.ClientCertExpiry, true +} + +// HasClientCertExpiry returns a boolean if a field has been set. +func (o *TLSConfig) HasClientCertExpiry() bool { + if o != nil && !IsNil(o.ClientCertExpiry) { + return true + } + + return false +} + +// SetClientCertExpiry gets a reference to the given int64 and assigns it to the ClientCertExpiry field. +func (o *TLSConfig) SetClientCertExpiry(v int64) { + o.ClientCertExpiry = &v +} + +// GetClientCertSubject returns the ClientCertSubject field value if set, zero value otherwise. +func (o *TLSConfig) GetClientCertSubject() string { + if o == nil || IsNil(o.ClientCertSubject) { + var ret string + return ret + } + return *o.ClientCertSubject +} + +// GetClientCertSubjectOk returns a tuple with the ClientCertSubject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TLSConfig) GetClientCertSubjectOk() (*string, bool) { + if o == nil || IsNil(o.ClientCertSubject) { + return nil, false + } + return o.ClientCertSubject, true +} + +// HasClientCertSubject returns a boolean if a field has been set. +func (o *TLSConfig) HasClientCertSubject() bool { + if o != nil && !IsNil(o.ClientCertSubject) { + return true + } + + return false +} + +// SetClientCertSubject gets a reference to the given string and assigns it to the ClientCertSubject field. +func (o *TLSConfig) SetClientCertSubject(v string) { + o.ClientCertSubject = &v +} + +// GetClientKey returns the ClientKey field value +func (o *TLSConfig) GetClientKey() string { + if o == nil { + var ret string + return ret + } + + return o.ClientKey +} + +// GetClientKeyOk returns a tuple with the ClientKey field value +// and a boolean to check if the value has been set. +func (o *TLSConfig) GetClientKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientKey, true +} + +// SetClientKey sets field value +func (o *TLSConfig) SetClientKey(v string) { + o.ClientKey = v +} + +func (o TLSConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TLSConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CaCert) { + toSerialize["ca_cert"] = o.CaCert + } + toSerialize["client_cert"] = o.ClientCert + // skip: client_cert_expiry is readOnly + // skip: client_cert_subject is readOnly + toSerialize["client_key"] = o.ClientKey + return toSerialize, nil +} + +type NullableTLSConfig struct { + value *TLSConfig + isSet bool +} + +func (v NullableTLSConfig) Get() *TLSConfig { + return v.value +} + +func (v *NullableTLSConfig) Set(val *TLSConfig) { + v.value = val + v.isSet = true +} + +func (v NullableTLSConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableTLSConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTLSConfig(val *TLSConfig) *NullableTLSConfig { + return &NullableTLSConfig{value: val, isSet: true} +} + +func (v NullableTLSConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTLSConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_update_integration_request.go b/openapi/model_update_integration_request.go new file mode 100644 index 00000000..dbfe048d --- /dev/null +++ b/openapi/model_update_integration_request.go @@ -0,0 +1,487 @@ +/* +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" +) + +// checks if the UpdateIntegrationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateIntegrationRequest{} + +// UpdateIntegrationRequest struct for UpdateIntegrationRequest +type UpdateIntegrationRequest struct { + AzureBlobStorage *AzureBlobStorageIntegration `json:"azure_blob_storage,omitempty"` + AzureEventHubs *AzureEventHubsIntegration `json:"azure_event_hubs,omitempty"` + AzureServiceBus *AzureServiceBusIntegration `json:"azure_service_bus,omitempty"` + // Longer explanation for the integration. + Description *string `json:"description,omitempty"` + Dynamodb *DynamodbIntegration `json:"dynamodb,omitempty"` + Gcs *GcsIntegration `json:"gcs,omitempty"` + Kafka *KafkaIntegration `json:"kafka,omitempty"` + Kinesis *KinesisIntegration `json:"kinesis,omitempty"` + Mongodb *MongoDbIntegration `json:"mongodb,omitempty"` + S3 *S3Integration `json:"s3,omitempty"` + Snowflake *SnowflakeIntegration `json:"snowflake,omitempty"` +} + +// NewUpdateIntegrationRequest instantiates a new UpdateIntegrationRequest 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 NewUpdateIntegrationRequest() *UpdateIntegrationRequest { + this := UpdateIntegrationRequest{} + return &this +} + +// NewUpdateIntegrationRequestWithDefaults instantiates a new UpdateIntegrationRequest 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 NewUpdateIntegrationRequestWithDefaults() *UpdateIntegrationRequest { + this := UpdateIntegrationRequest{} + return &this +} + +// GetAzureBlobStorage returns the AzureBlobStorage field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetAzureBlobStorage() AzureBlobStorageIntegration { + if o == nil || IsNil(o.AzureBlobStorage) { + var ret AzureBlobStorageIntegration + return ret + } + return *o.AzureBlobStorage +} + +// GetAzureBlobStorageOk returns a tuple with the AzureBlobStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetAzureBlobStorageOk() (*AzureBlobStorageIntegration, bool) { + if o == nil || IsNil(o.AzureBlobStorage) { + return nil, false + } + return o.AzureBlobStorage, true +} + +// HasAzureBlobStorage returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasAzureBlobStorage() bool { + if o != nil && !IsNil(o.AzureBlobStorage) { + return true + } + + return false +} + +// SetAzureBlobStorage gets a reference to the given AzureBlobStorageIntegration and assigns it to the AzureBlobStorage field. +func (o *UpdateIntegrationRequest) SetAzureBlobStorage(v AzureBlobStorageIntegration) { + o.AzureBlobStorage = &v +} + +// GetAzureEventHubs returns the AzureEventHubs field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetAzureEventHubs() AzureEventHubsIntegration { + if o == nil || IsNil(o.AzureEventHubs) { + var ret AzureEventHubsIntegration + return ret + } + return *o.AzureEventHubs +} + +// GetAzureEventHubsOk returns a tuple with the AzureEventHubs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetAzureEventHubsOk() (*AzureEventHubsIntegration, bool) { + if o == nil || IsNil(o.AzureEventHubs) { + return nil, false + } + return o.AzureEventHubs, true +} + +// HasAzureEventHubs returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasAzureEventHubs() bool { + if o != nil && !IsNil(o.AzureEventHubs) { + return true + } + + return false +} + +// SetAzureEventHubs gets a reference to the given AzureEventHubsIntegration and assigns it to the AzureEventHubs field. +func (o *UpdateIntegrationRequest) SetAzureEventHubs(v AzureEventHubsIntegration) { + o.AzureEventHubs = &v +} + +// GetAzureServiceBus returns the AzureServiceBus field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetAzureServiceBus() AzureServiceBusIntegration { + if o == nil || IsNil(o.AzureServiceBus) { + var ret AzureServiceBusIntegration + return ret + } + return *o.AzureServiceBus +} + +// GetAzureServiceBusOk returns a tuple with the AzureServiceBus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetAzureServiceBusOk() (*AzureServiceBusIntegration, bool) { + if o == nil || IsNil(o.AzureServiceBus) { + return nil, false + } + return o.AzureServiceBus, true +} + +// HasAzureServiceBus returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasAzureServiceBus() bool { + if o != nil && !IsNil(o.AzureServiceBus) { + return true + } + + return false +} + +// SetAzureServiceBus gets a reference to the given AzureServiceBusIntegration and assigns it to the AzureServiceBus field. +func (o *UpdateIntegrationRequest) SetAzureServiceBus(v AzureServiceBusIntegration) { + o.AzureServiceBus = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateIntegrationRequest) SetDescription(v string) { + o.Description = &v +} + +// GetDynamodb returns the Dynamodb field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetDynamodb() DynamodbIntegration { + if o == nil || IsNil(o.Dynamodb) { + var ret DynamodbIntegration + return ret + } + return *o.Dynamodb +} + +// GetDynamodbOk returns a tuple with the Dynamodb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetDynamodbOk() (*DynamodbIntegration, bool) { + if o == nil || IsNil(o.Dynamodb) { + return nil, false + } + return o.Dynamodb, true +} + +// HasDynamodb returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasDynamodb() bool { + if o != nil && !IsNil(o.Dynamodb) { + return true + } + + return false +} + +// SetDynamodb gets a reference to the given DynamodbIntegration and assigns it to the Dynamodb field. +func (o *UpdateIntegrationRequest) SetDynamodb(v DynamodbIntegration) { + o.Dynamodb = &v +} + +// GetGcs returns the Gcs field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetGcs() GcsIntegration { + if o == nil || IsNil(o.Gcs) { + var ret GcsIntegration + return ret + } + return *o.Gcs +} + +// GetGcsOk returns a tuple with the Gcs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetGcsOk() (*GcsIntegration, bool) { + if o == nil || IsNil(o.Gcs) { + return nil, false + } + return o.Gcs, true +} + +// HasGcs returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasGcs() bool { + if o != nil && !IsNil(o.Gcs) { + return true + } + + return false +} + +// SetGcs gets a reference to the given GcsIntegration and assigns it to the Gcs field. +func (o *UpdateIntegrationRequest) SetGcs(v GcsIntegration) { + o.Gcs = &v +} + +// GetKafka returns the Kafka field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetKafka() KafkaIntegration { + if o == nil || IsNil(o.Kafka) { + var ret KafkaIntegration + return ret + } + return *o.Kafka +} + +// GetKafkaOk returns a tuple with the Kafka field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetKafkaOk() (*KafkaIntegration, bool) { + if o == nil || IsNil(o.Kafka) { + return nil, false + } + return o.Kafka, true +} + +// HasKafka returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasKafka() bool { + if o != nil && !IsNil(o.Kafka) { + return true + } + + return false +} + +// SetKafka gets a reference to the given KafkaIntegration and assigns it to the Kafka field. +func (o *UpdateIntegrationRequest) SetKafka(v KafkaIntegration) { + o.Kafka = &v +} + +// GetKinesis returns the Kinesis field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetKinesis() KinesisIntegration { + if o == nil || IsNil(o.Kinesis) { + var ret KinesisIntegration + return ret + } + return *o.Kinesis +} + +// GetKinesisOk returns a tuple with the Kinesis field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetKinesisOk() (*KinesisIntegration, bool) { + if o == nil || IsNil(o.Kinesis) { + return nil, false + } + return o.Kinesis, true +} + +// HasKinesis returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasKinesis() bool { + if o != nil && !IsNil(o.Kinesis) { + return true + } + + return false +} + +// SetKinesis gets a reference to the given KinesisIntegration and assigns it to the Kinesis field. +func (o *UpdateIntegrationRequest) SetKinesis(v KinesisIntegration) { + o.Kinesis = &v +} + +// GetMongodb returns the Mongodb field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetMongodb() MongoDbIntegration { + if o == nil || IsNil(o.Mongodb) { + var ret MongoDbIntegration + return ret + } + return *o.Mongodb +} + +// GetMongodbOk returns a tuple with the Mongodb field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetMongodbOk() (*MongoDbIntegration, bool) { + if o == nil || IsNil(o.Mongodb) { + return nil, false + } + return o.Mongodb, true +} + +// HasMongodb returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasMongodb() bool { + if o != nil && !IsNil(o.Mongodb) { + return true + } + + return false +} + +// SetMongodb gets a reference to the given MongoDbIntegration and assigns it to the Mongodb field. +func (o *UpdateIntegrationRequest) SetMongodb(v MongoDbIntegration) { + o.Mongodb = &v +} + +// GetS3 returns the S3 field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetS3() S3Integration { + if o == nil || IsNil(o.S3) { + var ret S3Integration + return ret + } + return *o.S3 +} + +// GetS3Ok returns a tuple with the S3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetS3Ok() (*S3Integration, bool) { + if o == nil || IsNil(o.S3) { + return nil, false + } + return o.S3, true +} + +// HasS3 returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasS3() bool { + if o != nil && !IsNil(o.S3) { + return true + } + + return false +} + +// SetS3 gets a reference to the given S3Integration and assigns it to the S3 field. +func (o *UpdateIntegrationRequest) SetS3(v S3Integration) { + o.S3 = &v +} + +// GetSnowflake returns the Snowflake field value if set, zero value otherwise. +func (o *UpdateIntegrationRequest) GetSnowflake() SnowflakeIntegration { + if o == nil || IsNil(o.Snowflake) { + var ret SnowflakeIntegration + return ret + } + return *o.Snowflake +} + +// GetSnowflakeOk returns a tuple with the Snowflake field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateIntegrationRequest) GetSnowflakeOk() (*SnowflakeIntegration, bool) { + if o == nil || IsNil(o.Snowflake) { + return nil, false + } + return o.Snowflake, true +} + +// HasSnowflake returns a boolean if a field has been set. +func (o *UpdateIntegrationRequest) HasSnowflake() bool { + if o != nil && !IsNil(o.Snowflake) { + return true + } + + return false +} + +// SetSnowflake gets a reference to the given SnowflakeIntegration and assigns it to the Snowflake field. +func (o *UpdateIntegrationRequest) SetSnowflake(v SnowflakeIntegration) { + o.Snowflake = &v +} + +func (o UpdateIntegrationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateIntegrationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AzureBlobStorage) { + toSerialize["azure_blob_storage"] = o.AzureBlobStorage + } + if !IsNil(o.AzureEventHubs) { + toSerialize["azure_event_hubs"] = o.AzureEventHubs + } + if !IsNil(o.AzureServiceBus) { + toSerialize["azure_service_bus"] = o.AzureServiceBus + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Dynamodb) { + toSerialize["dynamodb"] = o.Dynamodb + } + if !IsNil(o.Gcs) { + toSerialize["gcs"] = o.Gcs + } + if !IsNil(o.Kafka) { + toSerialize["kafka"] = o.Kafka + } + if !IsNil(o.Kinesis) { + toSerialize["kinesis"] = o.Kinesis + } + if !IsNil(o.Mongodb) { + toSerialize["mongodb"] = o.Mongodb + } + if !IsNil(o.S3) { + toSerialize["s3"] = o.S3 + } + if !IsNil(o.Snowflake) { + toSerialize["snowflake"] = o.Snowflake + } + return toSerialize, nil +} + +type NullableUpdateIntegrationRequest struct { + value *UpdateIntegrationRequest + isSet bool +} + +func (v NullableUpdateIntegrationRequest) Get() *UpdateIntegrationRequest { + return v.value +} + +func (v *NullableUpdateIntegrationRequest) Set(val *UpdateIntegrationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateIntegrationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateIntegrationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateIntegrationRequest(val *UpdateIntegrationRequest) *NullableUpdateIntegrationRequest { + return &NullableUpdateIntegrationRequest{value: val, isSet: true} +} + +func (v NullableUpdateIntegrationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateIntegrationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_update_integration_response.go b/openapi/model_update_integration_response.go new file mode 100644 index 00000000..e426bd25 --- /dev/null +++ b/openapi/model_update_integration_response.go @@ -0,0 +1,126 @@ +/* +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" +) + +// checks if the UpdateIntegrationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateIntegrationResponse{} + +// UpdateIntegrationResponse struct for UpdateIntegrationResponse +type UpdateIntegrationResponse struct { + Data *Integration `json:"data,omitempty"` +} + +// NewUpdateIntegrationResponse instantiates a new UpdateIntegrationResponse 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 NewUpdateIntegrationResponse() *UpdateIntegrationResponse { + this := UpdateIntegrationResponse{} + return &this +} + +// NewUpdateIntegrationResponseWithDefaults instantiates a new UpdateIntegrationResponse 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 NewUpdateIntegrationResponseWithDefaults() *UpdateIntegrationResponse { + this := UpdateIntegrationResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *UpdateIntegrationResponse) GetData() Integration { + if o == nil || IsNil(o.Data) { + var ret Integration + 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 *UpdateIntegrationResponse) GetDataOk() (*Integration, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *UpdateIntegrationResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given Integration and assigns it to the Data field. +func (o *UpdateIntegrationResponse) SetData(v Integration) { + o.Data = &v +} + +func (o UpdateIntegrationResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateIntegrationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableUpdateIntegrationResponse struct { + value *UpdateIntegrationResponse + isSet bool +} + +func (v NullableUpdateIntegrationResponse) Get() *UpdateIntegrationResponse { + return v.value +} + +func (v *NullableUpdateIntegrationResponse) Set(val *UpdateIntegrationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateIntegrationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateIntegrationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateIntegrationResponse(val *UpdateIntegrationResponse) *NullableUpdateIntegrationResponse { + return &NullableUpdateIntegrationResponse{value: val, isSet: true} +} + +func (v NullableUpdateIntegrationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateIntegrationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/spec b/spec index 649cfb62..21e4730d 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 649cfb620987a9971929d0516d589e4e7bad3cc5 +Subproject commit 21e4730d74cc3afb946ad6bcf4f380b6f3d1d52b diff --git a/version.go b/version.go index c0fc1491..c3fc563f 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package rockset // Version is the Rockset client version -const Version = "0.21.2" +const Version = "0.22.0"