From b1d0130f213581ee3b3b39813cbb913bf3968044 Mon Sep 17 00:00:00 2001 From: Kristie Lim Date: Thu, 4 Apr 2024 00:46:46 -0700 Subject: [PATCH] updated api spec (#222) * submodule update * record vcr * update version --- openapi/.openapi-generator/FILES | 8 + openapi/README.md | 8 +- openapi/api/openapi.yaml | 411 ++++++++++++- openapi/api_deployment_settings.go | 570 ++++++++++++++++++ openapi/api_scheduled_lambdas.go | 276 +++++++++ openapi/client.go | 3 + openapi/configuration.go | 2 +- openapi/docs/CreateScheduledLambdaRequest.md | 13 +- openapi/docs/CreateVirtualInstanceRequest.md | 2 +- openapi/docs/DeploymentSettings.md | 56 ++ openapi/docs/DeploymentSettingsApi.md | 137 +++++ openapi/docs/DeploymentSettingsResponse.md | 56 ++ openapi/docs/ErrorModel.md | 26 + openapi/docs/QueryInfo.md | 26 + openapi/docs/ScheduledLambda.md | 26 + openapi/docs/ScheduledLambdasApi.md | 76 ++- .../docs/UpdateDeploymentSettingsRequest.md | 56 ++ openapi/docs/UpdateVirtualInstanceRequest.md | 2 +- openapi/docs/VirtualInstance.md | 54 +- .../model_create_scheduled_lambda_request.go | 39 +- .../model_create_virtual_instance_request.go | 2 +- openapi/model_deployment_settings.go | 127 ++++ openapi/model_deployment_settings_response.go | 126 ++++ openapi/model_error_model.go | 37 ++ openapi/model_query_info.go | 37 ++ openapi/model_scheduled_lambda.go | 36 ++ ...odel_update_deployment_settings_request.go | 127 ++++ .../model_update_virtual_instance_request.go | 2 +- openapi/model_virtual_instance.go | 74 +-- spec | 2 +- ...stCreateSampleCitiesCollection.cassette.gz | 4 +- ...stCreateSampleMoviesCollection.cassette.gz | 4 +- .../TestGetCollection.cassette.gz | 4 +- .../TestListAllCollections.cassette.gz | 4 +- ...TestListCollectionsInWorkspace.cassette.gz | 4 +- .../TestUpdateCollection.cassette.gz | 4 +- .../TestCreateGCSIntegration.cassette.gz | 4 +- .../TestCreateS3Integration.cassette.gz | 4 +- .../TestGetIntegration.cassette.gz | 4 +- .../TestListIntegrations.cassette.gz | 4 +- .../TestAsyncQuery.cassette.gz | 4 +- ...estAsyncQueryWithClientTimeout.cassette.gz | 4 +- .../TestCancelQuery.cassette.gz | 4 +- .../TestListQueries.cassette.gz | 4 +- .../TestQuery.cassette.gz | 4 +- .../TestQueryWithTimeout.cassette.gz | 4 +- .../TestQueryWithVirtualInstance.cassette.gz | 4 +- .../TestValidateQuery.cassette.gz | 4 +- .../cassettes/TestAliases_CRUD.cassette.gz | 4 +- .../TestAliases_getAlias.cassette.gz | 2 +- .../TestAliases_listAliases.cassette.gz | 4 +- ...liases_listAliasesForWorkspace.cassette.gz | 2 +- .../TestAzureIntegrations.cassette.gz | 4 +- ...TestCollectionIntegrationSuite.cassette.gz | 4 +- .../cassettes/TestDocumentSuite.cassette.gz | 4 +- .../TestAddDocument.cassette.gz | 2 +- .../TestAddDocumentWithFence.cassette.gz | 4 +- .../TestPatchDocument.cassette.gz | 4 +- .../TestRemoveDocument.cassette.gz | 4 +- testdata/cassettes/TestListViews.cassette.gz | 4 +- .../TestQueryLambdaSuite.cassette.gz | 4 +- ...TestRockClient_GetOrganization.cassette.gz | 4 +- .../cassettes/TestRockClient_Ping.cassette.gz | 4 +- .../cassettes/TestRoleIntegration.cassette.gz | 4 +- .../cassettes/TestSuiteAPIKey.cassette.gz | 4 +- .../cassettes/TestSuiteWorkspace.cassette.gz | 4 +- testdata/cassettes/TestTemplate.cassette.gz | 4 +- .../cassettes/TestUserIntegration.cassette.gz | 4 +- testdata/cassettes/TestViewCRUD.cassette.gz | 4 +- .../cassettes/TestVirtualInstance.cassette.gz | 4 +- ...TestVirtualInstanceAutoScaling.cassette.gz | 4 +- ...TestVirtualInstanceIntegration.cassette.gz | 4 +- .../TestVirtualInstance_0_Create.cassette.gz | 4 +- ...stVirtualInstance_1_Collection.cassette.gz | 4 +- .../TestVirtualInstance_2_Mount.cassette.gz | 4 +- .../TestVirtualInstance_3_Query.cassette.gz | 4 +- .../TestVirtualInstance_4_Unmount.cassette.gz | 4 +- .../TestVirtualInstance_5_Suspend.cassette.gz | 4 +- testdata/cassettes/example_s3.cassette.gz | 4 +- version.go | 2 +- 80 files changed, 2317 insertions(+), 292 deletions(-) create mode 100644 openapi/api_deployment_settings.go create mode 100644 openapi/docs/DeploymentSettings.md create mode 100644 openapi/docs/DeploymentSettingsApi.md create mode 100644 openapi/docs/DeploymentSettingsResponse.md create mode 100644 openapi/docs/UpdateDeploymentSettingsRequest.md create mode 100644 openapi/model_deployment_settings.go create mode 100644 openapi/model_deployment_settings_response.go create mode 100644 openapi/model_update_deployment_settings_request.go diff --git a/openapi/.openapi-generator/FILES b/openapi/.openapi-generator/FILES index a6b66e39..4761de16 100644 --- a/openapi/.openapi-generator/FILES +++ b/openapi/.openapi-generator/FILES @@ -6,6 +6,7 @@ api_aliases.go api_api_keys.go api_collections.go api_custom_roles.go +api_deployment_settings.go api_documents.go api_integrations.go api_organizations.go @@ -79,6 +80,9 @@ docs/DeleteUserResponse.md docs/DeleteViewResponse.md docs/DeleteVirtualInstanceResponse.md docs/DeleteWorkspaceResponse.md +docs/DeploymentSettings.md +docs/DeploymentSettingsApi.md +docs/DeploymentSettingsResponse.md docs/DocumentStatus.md docs/DocumentsApi.md docs/DynamodbIntegration.md @@ -213,6 +217,7 @@ docs/UpdateAliasRequest.md docs/UpdateApiKeyRequest.md docs/UpdateApiKeyResponse.md docs/UpdateCollectionRequest.md +docs/UpdateDeploymentSettingsRequest.md docs/UpdateIntegrationRequest.md docs/UpdateIntegrationResponse.md docs/UpdateQueryLambdaRequest.md @@ -294,6 +299,8 @@ model_delete_user_response.go model_delete_view_response.go model_delete_virtual_instance_response.go model_delete_workspace_response.go +model_deployment_settings.go +model_deployment_settings_response.go model_document_status.go model_dynamodb_integration.go model_error_model.go @@ -420,6 +427,7 @@ model_update_alias_request.go model_update_api_key_request.go model_update_api_key_response.go model_update_collection_request.go +model_update_deployment_settings_request.go model_update_integration_request.go model_update_integration_response.go model_update_query_lambda_request.go diff --git a/openapi/README.md b/openapi/README.md index 42351d50..90b5eb73 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.24.1 +- Package version: 0.24.2 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -109,6 +109,8 @@ Class | Method | HTTP request | Description *CustomRolesApi* | [**GetRole**](docs/CustomRolesApi.md#getrole) | **Get** /v1/orgs/self/roles/{roleName} | Retrieve role *CustomRolesApi* | [**ListRoles**](docs/CustomRolesApi.md#listroles) | **Get** /v1/orgs/self/roles | List Roles *CustomRolesApi* | [**UpdateRole**](docs/CustomRolesApi.md#updaterole) | **Post** /v1/orgs/self/roles/{roleName} | Update a Role +*DeploymentSettingsApi* | [**GetDeploymentSettings**](docs/DeploymentSettingsApi.md#getdeploymentsettings) | **Get** /v1/orgs/self/deploymentsettings | Retrieve Deployment Settings +*DeploymentSettingsApi* | [**UpdateDeploymentSettings**](docs/DeploymentSettingsApi.md#updatedeploymentsettings) | **Put** /v1/orgs/self/deploymentsettings | Update Deployment Settings *DocumentsApi* | [**AddDocuments**](docs/DocumentsApi.md#adddocuments) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/docs | Add Documents *DocumentsApi* | [**DeleteDocuments**](docs/DocumentsApi.md#deletedocuments) | **Delete** /v1/orgs/self/ws/{workspace}/collections/{collection}/docs | Delete Documents *DocumentsApi* | [**PatchDocuments**](docs/DocumentsApi.md#patchdocuments) | **Patch** /v1/orgs/self/ws/{workspace}/collections/{collection}/docs | Patch Documents @@ -140,6 +142,7 @@ Class | Method | HTTP request | Description *QueryLambdasApi* | [**UpdateQueryLambda**](docs/QueryLambdasApi.md#updatequerylambda) | **Post** /v1/orgs/self/ws/{workspace}/lambdas/{queryLambda}/versions | Update Query Lambda *ScheduledLambdasApi* | [**CreateScheduledLambda**](docs/ScheduledLambdasApi.md#createscheduledlambda) | **Post** /v1/orgs/self/ws/{workspace}/scheduled_lambdas | Create a Scheduled Lambda mapping *ScheduledLambdasApi* | [**DeleteScheduledLambda**](docs/ScheduledLambdasApi.md#deletescheduledlambda) | **Delete** /v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId} | Delete a Scheduled Lambda mapping +*ScheduledLambdasApi* | [**GetScheduledLambda**](docs/ScheduledLambdasApi.md#getscheduledlambda) | **Get** /v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId} | Retrieve a Scheduled Lambda mapping *ScheduledLambdasApi* | [**UpdateScheduledLambda**](docs/ScheduledLambdasApi.md#updatescheduledlambda) | **Post** /v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId} | Update a Scheduled Lambda mapping *SharedLambdasApi* | [**ExecutePublicQueryLambdaWithParams**](docs/SharedLambdasApi.md#executepublicquerylambdawithparams) | **Post** /v1/public/shared_lambdas/{public_access_id} | Execute a Public Query Lambda *SourcesApi* | [**CreateSource**](docs/SourcesApi.md#createsource) | **Post** /v1/orgs/self/ws/{workspace}/collections/{collection}/sources | Create a source @@ -240,6 +243,8 @@ Class | Method | HTTP request | Description - [DeleteViewResponse](docs/DeleteViewResponse.md) - [DeleteVirtualInstanceResponse](docs/DeleteVirtualInstanceResponse.md) - [DeleteWorkspaceResponse](docs/DeleteWorkspaceResponse.md) + - [DeploymentSettings](docs/DeploymentSettings.md) + - [DeploymentSettingsResponse](docs/DeploymentSettingsResponse.md) - [DocumentStatus](docs/DocumentStatus.md) - [DynamodbIntegration](docs/DynamodbIntegration.md) - [ErrorModel](docs/ErrorModel.md) @@ -366,6 +371,7 @@ Class | Method | HTTP request | Description - [UpdateApiKeyRequest](docs/UpdateApiKeyRequest.md) - [UpdateApiKeyResponse](docs/UpdateApiKeyResponse.md) - [UpdateCollectionRequest](docs/UpdateCollectionRequest.md) + - [UpdateDeploymentSettingsRequest](docs/UpdateDeploymentSettingsRequest.md) - [UpdateIntegrationRequest](docs/UpdateIntegrationRequest.md) - [UpdateIntegrationResponse](docs/UpdateIntegrationResponse.md) - [UpdateQueryLambdaRequest](docs/UpdateQueryLambdaRequest.md) diff --git a/openapi/api/openapi.yaml b/openapi/api/openapi.yaml index 27a1cb3a..526741a4 100644 --- a/openapi/api/openapi.yaml +++ b/openapi/api/openapi.yaml @@ -2580,6 +2580,210 @@ paths: - Custom Roles x-rename: update x-codegen-request-body-name: body + /v1/orgs/self/deploymentsettings: + get: + description: Retrieve settings for the current deployment. + operationId: getDeploymentSettings + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentSettingsResponse' + description: Deployment settings 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 Deployment Settings + tags: + - Deployment Settings + put: + description: Update settings for the current deployment. + operationId: updateDeploymentSettings + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateDeploymentSettingsRequest' + description: JSON object + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentSettingsResponse' + description: Deployment settings updated successfully. Settings may take + up to 1 minute to take effect + "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: Update Deployment Settings + tags: + - Deployment Settings + x-codegen-request-body-name: body /v1/orgs/self/ws/{workspace}/collections/{collection}/docs: delete: description: Delete documents from a collection. @@ -6043,6 +6247,118 @@ paths: tags: - Scheduled Lambdas x-rename: delete + get: + description: Retrieve a scheduled lambda mapping for your organization. + operationId: getScheduledLambda + parameters: + - description: name of the workspace + in: path + name: workspace + required: true + schema: + default: commons + type: string + - description: Scheduled Lambda RRN + in: path + name: scheduledLambdaId + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScheduledLambdaResponse' + description: scheduled lambda mapping 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 a Scheduled Lambda mapping + tags: + - Scheduled Lambdas + x-rename: get post: description: Update a scheduled lambda mapping for your organization. operationId: updateScheduledLambda @@ -10572,6 +10888,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED - patch_id: 486gsg8 _collection: customers @@ -10584,6 +10901,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED properties: data: @@ -10989,6 +11307,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + destination_uri: destination_uri sql: sql status: RUNNING properties: @@ -13978,7 +14297,8 @@ components: example: ql_name type: string tag: - description: The QL tag to use for scheduled execution. + description: The QL tag to use for scheduled execution. One of either the + QL tag or version must be specified example: production type: string total_times_to_execute: @@ -13989,7 +14309,8 @@ components: format: int64 type: integer version: - description: The version of the QL to use for scheduled execution. + description: The version of the QL to use for scheduled execution. One of + either the QL version or tag must be specified. example: abcdef1234 type: string webhook_auth_header: @@ -14006,6 +14327,7 @@ components: example: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX type: string required: + - apikey - cron_string - ql_name type: object @@ -14137,7 +14459,7 @@ components: mount_type: description: The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection - in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration + in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration enum: - LIVE - STATIC @@ -14186,9 +14508,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -14820,6 +15140,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED - patch_id: 486gsg8 _collection: customers @@ -14832,6 +15153,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED properties: data: @@ -16115,9 +16437,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -16143,6 +16463,24 @@ components: data: $ref: '#/components/schemas/Workspace' type: object + DeploymentSettings: + example: + default_query_vi: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 + properties: + default_query_vi: + description: RRN of the Virtual Instance that all queries will be routed + to by default + example: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 + type: string + type: object + DeploymentSettingsResponse: + example: + data: + default_query_vi: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 + properties: + data: + $ref: '#/components/schemas/DeploymentSettings' + type: object DocumentStatus: example: patch_id: 486gsg8 @@ -16156,6 +16494,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED properties: _collection: @@ -16211,6 +16550,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 properties: column: description: Column where the error happened (if applicable). @@ -16263,6 +16603,11 @@ components: - CLIENT_CONNECTION_ERROR example: INVALIDINPUT type: string + virtual_instance_rrn: + description: Virtual Instance RRN for the Virtual Instance that the query + was run on (if applicable). + example: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 + type: string type: object EventTimeInfo: example: @@ -18095,6 +18440,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + destination_uri: destination_uri sql: sql status: RUNNING properties: @@ -18311,9 +18657,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -22541,6 +22885,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + destination_uri: destination_uri sql: sql status: RUNNING - last_offset: last_offset @@ -22563,6 +22908,7 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + destination_uri: destination_uri sql: sql status: RUNNING properties: @@ -23242,9 +23588,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -23268,9 +23612,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -23544,6 +23886,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED - patch_id: 486gsg8 _collection: customers @@ -23556,6 +23899,7 @@ components: column: 0 message: collection not found type: INVALIDINPUT + virtual_instance_rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 status: ADDED properties: data: @@ -23754,9 +24098,14 @@ components: elapsed_time_ms: 128 result_set_document_count: 1235 submitted_at: 2001-08-28T00:23:41Z + destination_uri: destination_uri sql: sql status: RUNNING properties: + destination_uri: + description: destination for query results. Only populated for Insert INTO + s3 queries. + type: string executed_by: description: User ID who executed the query. example: xyz@rockset.com @@ -24372,9 +24721,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -24480,6 +24827,9 @@ components: cron_string: '* * * * *' tag: production next_execution_date: 2001-08-28T00:23:41Z + webhook_execution_status: + state: ERROR + message: message webhook_payload: "{\"text\": \"A scheduled query lambda completed execution.\ \ Query ID: {{QUERY_ID}}, Initial results: {{QUERY_RESULTS}}\"" properties: @@ -24535,6 +24885,8 @@ components: description: The version of the associated query lambda. example: abcde1234 type: string + webhook_execution_status: + $ref: '#/components/schemas/ExecutionStatus' webhook_payload: description: The payload that should be sent to the webhook. example: "{\"text\": \"A scheduled query lambda completed execution. Query\ @@ -24569,6 +24921,9 @@ components: cron_string: '* * * * *' tag: production next_execution_date: 2001-08-28T00:23:41Z + webhook_execution_status: + state: ERROR + message: message webhook_payload: "{\"text\": \"A scheduled query lambda completed execution.\ \ Query ID: {{QUERY_ID}}, Initial results: {{QUERY_RESULTS}}\"" properties: @@ -25853,9 +26208,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -26008,6 +26361,16 @@ components: field_mapping_query: $ref: '#/components/schemas/FieldMappingQuery' type: object + UpdateDeploymentSettingsRequest: + example: + default_query_vi: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 + properties: + default_query_vi: + description: RRN of the Virtual Instance that all queries will be routed + to by default + example: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 + type: string + type: object UpdateIntegrationRequest: example: s3: @@ -27348,7 +27711,7 @@ components: mount_type: description: The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection - in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration + in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration enum: - LIVE - STATIC @@ -27394,9 +27757,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -27556,9 +27917,7 @@ components: enabled: true max_size: XLARGE2 current_instance_class: MO_IL - default_pod_count: 0 rrn: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 - scaled_pod_count: 6 desired_instance_class: MO_IL monitoring_enabled: true stats: @@ -27612,9 +27971,6 @@ components: example: MEDIUM readOnly: true type: string - default_pod_count: - format: int32 - type: integer default_vi: type: boolean description: @@ -27668,7 +28024,7 @@ components: mount_type: description: The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection - in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration + in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration enum: - LIVE - STATIC @@ -27686,9 +28042,6 @@ components: description: Virtual Instance RRN. example: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000 type: string - scaled_pod_count: - format: int32 - type: integer state: description: Virtual instance state. enum: diff --git a/openapi/api_deployment_settings.go b/openapi/api_deployment_settings.go new file mode 100644 index 00000000..65db3f02 --- /dev/null +++ b/openapi/api_deployment_settings.go @@ -0,0 +1,570 @@ +/* +REST API + +Rockset's REST API allows for creating and managing all resources in Rockset. Each supported endpoint is documented below. All requests must be authorized with a Rockset API key, which can be created in the [Rockset console](https://console.rockset.com). The API key must be provided as `ApiKey ` in the `Authorization` request header. For example: ``` Authorization: ApiKey aB35kDjg93J5nsf4GjwMeErAVd832F7ad4vhsW1S02kfZiab42sTsfW5Sxt25asT ``` All endpoints are only accessible via https. Build something awesome! + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +type DeploymentSettingsApi interface { + + /* + GetDeploymentSettings Retrieve Deployment Settings + + Retrieve settings for the current deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetDeploymentSettingsRequest + */ + GetDeploymentSettings(ctx context.Context) ApiGetDeploymentSettingsRequest + + // GetDeploymentSettingsExecute executes the request + // @return DeploymentSettingsResponse + GetDeploymentSettingsExecute(r ApiGetDeploymentSettingsRequest) (*DeploymentSettingsResponse, *http.Response, error) + + /* + UpdateDeploymentSettings Update Deployment Settings + + Update settings for the current deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateDeploymentSettingsRequest + */ + UpdateDeploymentSettings(ctx context.Context) ApiUpdateDeploymentSettingsRequest + + // UpdateDeploymentSettingsExecute executes the request + // @return DeploymentSettingsResponse + UpdateDeploymentSettingsExecute(r ApiUpdateDeploymentSettingsRequest) (*DeploymentSettingsResponse, *http.Response, error) +} + +// DeploymentSettingsApiService DeploymentSettingsApi service +type DeploymentSettingsApiService service + +type ApiGetDeploymentSettingsRequest struct { + ctx context.Context + ApiService DeploymentSettingsApi +} + +func (r ApiGetDeploymentSettingsRequest) Execute() (*DeploymentSettingsResponse, *http.Response, error) { + return r.ApiService.GetDeploymentSettingsExecute(r) +} + +/* +GetDeploymentSettings Retrieve Deployment Settings + +Retrieve settings for the current deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetDeploymentSettingsRequest +*/ +func (a *DeploymentSettingsApiService) GetDeploymentSettings(ctx context.Context) ApiGetDeploymentSettingsRequest { + return ApiGetDeploymentSettingsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeploymentSettingsResponse +func (a *DeploymentSettingsApiService) GetDeploymentSettingsExecute(r ApiGetDeploymentSettingsRequest) (*DeploymentSettingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentSettingsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeploymentSettingsApiService.GetDeploymentSettings") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/deploymentsettings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := 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 ApiUpdateDeploymentSettingsRequest struct { + ctx context.Context + ApiService DeploymentSettingsApi + body *UpdateDeploymentSettingsRequest +} + +// JSON object +func (r ApiUpdateDeploymentSettingsRequest) Body(body UpdateDeploymentSettingsRequest) ApiUpdateDeploymentSettingsRequest { + r.body = &body + return r +} + +func (r ApiUpdateDeploymentSettingsRequest) Execute() (*DeploymentSettingsResponse, *http.Response, error) { + return r.ApiService.UpdateDeploymentSettingsExecute(r) +} + +/* +UpdateDeploymentSettings Update Deployment Settings + +Update settings for the current deployment. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateDeploymentSettingsRequest +*/ +func (a *DeploymentSettingsApiService) UpdateDeploymentSettings(ctx context.Context) ApiUpdateDeploymentSettingsRequest { + return ApiUpdateDeploymentSettingsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DeploymentSettingsResponse +func (a *DeploymentSettingsApiService) UpdateDeploymentSettingsExecute(r ApiUpdateDeploymentSettingsRequest) (*DeploymentSettingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeploymentSettingsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DeploymentSettingsApiService.UpdateDeploymentSettings") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/deploymentsettings" + + 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_scheduled_lambdas.go b/openapi/api_scheduled_lambdas.go index bbe46437..5a88a358 100644 --- a/openapi/api_scheduled_lambdas.go +++ b/openapi/api_scheduled_lambdas.go @@ -53,6 +53,22 @@ type ScheduledLambdasApi interface { // @return ScheduledLambdaResponse DeleteScheduledLambdaExecute(r ApiDeleteScheduledLambdaRequest) (*ScheduledLambdaResponse, *http.Response, error) + /* + GetScheduledLambda Retrieve a Scheduled Lambda mapping + + Retrieve a scheduled lambda mapping for your organization. + + @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 scheduledLambdaId Scheduled Lambda RRN + @return ApiGetScheduledLambdaRequest + */ + GetScheduledLambda(ctx context.Context, workspace string, scheduledLambdaId string) ApiGetScheduledLambdaRequest + + // GetScheduledLambdaExecute executes the request + // @return ScheduledLambdaResponse + GetScheduledLambdaExecute(r ApiGetScheduledLambdaRequest) (*ScheduledLambdaResponse, *http.Response, error) + /* UpdateScheduledLambda Update a Scheduled Lambda mapping @@ -601,6 +617,266 @@ func (a *ScheduledLambdasApiService) DeleteScheduledLambdaExecute(r ApiDeleteSch return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetScheduledLambdaRequest struct { + ctx context.Context + ApiService ScheduledLambdasApi + workspace string + scheduledLambdaId string +} + +func (r ApiGetScheduledLambdaRequest) Execute() (*ScheduledLambdaResponse, *http.Response, error) { + return r.ApiService.GetScheduledLambdaExecute(r) +} + +/* +GetScheduledLambda Retrieve a Scheduled Lambda mapping + +Retrieve a scheduled lambda mapping for your organization. + + @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 scheduledLambdaId Scheduled Lambda RRN + @return ApiGetScheduledLambdaRequest +*/ +func (a *ScheduledLambdasApiService) GetScheduledLambda(ctx context.Context, workspace string, scheduledLambdaId string) ApiGetScheduledLambdaRequest { + return ApiGetScheduledLambdaRequest{ + ApiService: a, + ctx: ctx, + workspace: workspace, + scheduledLambdaId: scheduledLambdaId, + } +} + +// Execute executes the request +// @return ScheduledLambdaResponse +func (a *ScheduledLambdasApiService) GetScheduledLambdaExecute(r ApiGetScheduledLambdaRequest) (*ScheduledLambdaResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScheduledLambdaResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduledLambdasApiService.GetScheduledLambda") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId}" + localVarPath = strings.Replace(localVarPath, "{"+"workspace"+"}", url.PathEscape(parameterValueToString(r.workspace, "workspace")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scheduledLambdaId"+"}", url.PathEscape(parameterValueToString(r.scheduledLambdaId, "scheduledLambdaId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := 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 ApiUpdateScheduledLambdaRequest struct { ctx context.Context ApiService ScheduledLambdasApi diff --git a/openapi/client.go b/openapi/client.go index 0f636911..4ce1bdfc 100644 --- a/openapi/client.go +++ b/openapi/client.go @@ -57,6 +57,8 @@ type APIClient struct { CustomRolesApi CustomRolesApi + DeploymentSettingsApi DeploymentSettingsApi + DocumentsApi DocumentsApi IntegrationsApi IntegrationsApi @@ -102,6 +104,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AliasesApi = (*AliasesApiService)(&c.common) c.CollectionsApi = (*CollectionsApiService)(&c.common) c.CustomRolesApi = (*CustomRolesApiService)(&c.common) + c.DeploymentSettingsApi = (*DeploymentSettingsApiService)(&c.common) c.DocumentsApi = (*DocumentsApiService)(&c.common) c.IntegrationsApi = (*IntegrationsApiService)(&c.common) c.OrganizationsApi = (*OrganizationsApiService)(&c.common) diff --git a/openapi/configuration.go b/openapi/configuration.go index 05d3b411..e1a60dc9 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.24.1/go", + UserAgent: "OpenAPI-Generator/0.24.2/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/openapi/docs/CreateScheduledLambdaRequest.md b/openapi/docs/CreateScheduledLambdaRequest.md index 728c9393..92b20c6e 100644 --- a/openapi/docs/CreateScheduledLambdaRequest.md +++ b/openapi/docs/CreateScheduledLambdaRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Apikey** | Pointer to **string** | The apikey to use when triggering execution of the associated query lambda. | [optional] +**Apikey** | **string** | The apikey to use when triggering execution of the associated query lambda. | **CronString** | **string** | The UNIX-formatted cron string for this scheduled query lambda. | **QlName** | **string** | The name of the QL to use for scheduled execution. | -**Tag** | Pointer to **string** | The QL tag to use for scheduled execution. | [optional] +**Tag** | Pointer to **string** | The QL tag to use for scheduled execution. One of either the QL tag or version must be specified | [optional] **TotalTimesToExecute** | Pointer to **int64** | The number of times to execute this scheduled query lambda. Once this scheduled query lambda has been executed this many times, it will no longer be executed. | [optional] -**Version** | Pointer to **string** | The version of the QL to use for scheduled execution. | [optional] +**Version** | Pointer to **string** | The version of the QL to use for scheduled execution. One of either the QL version or tag must be specified. | [optional] **WebhookAuthHeader** | Pointer to **string** | The value to use as the authorization header when hitting the webhook. | [optional] **WebhookPayload** | Pointer to **string** | The payload that should be sent to the webhook. JSON format. | [optional] **WebhookUrl** | Pointer to **string** | The URL of the webhook that should be triggered after this scheduled query lambda completes. | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewCreateScheduledLambdaRequest -`func NewCreateScheduledLambdaRequest(cronString string, qlName string, ) *CreateScheduledLambdaRequest` +`func NewCreateScheduledLambdaRequest(apikey string, cronString string, qlName string, ) *CreateScheduledLambdaRequest` NewCreateScheduledLambdaRequest instantiates a new CreateScheduledLambdaRequest object This constructor will assign default values to properties that have it defined, @@ -52,11 +52,6 @@ and a boolean to check if the value has been set. SetApikey sets Apikey field to given value. -### HasApikey - -`func (o *CreateScheduledLambdaRequest) HasApikey() bool` - -HasApikey returns a boolean if a field has been set. ### GetCronString diff --git a/openapi/docs/CreateVirtualInstanceRequest.md b/openapi/docs/CreateVirtualInstanceRequest.md index 439ec43b..9fc93d84 100644 --- a/openapi/docs/CreateVirtualInstanceRequest.md +++ b/openapi/docs/CreateVirtualInstanceRequest.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **EnableRemountOnResume** | Pointer to **bool** | When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. | [optional] **InstanceClass** | Pointer to **string** | Virtual Instance Class. Use `MO_IL` for Memory Optimized and `GP_IL` for General Purpose instance class. | [optional] **MountRefreshIntervalSeconds** | Pointer to **int32** | DEPRECATED. Use `mount_type` instead. Number of seconds between data refreshes for mounts on this Virtual Instance. The only valid values are 0 and null. 0 means the data will be refreshed continuously and null means the data will never refresh. | [optional] -**MountType** | Pointer to **string** | The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration | [optional] +**MountType** | Pointer to **string** | The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration | [optional] **Name** | **string** | Unique identifier for virtual instance, can contain alphanumeric or dash characters. | **Type** | Pointer to **string** | Requested virtual instance type. | [optional] diff --git a/openapi/docs/DeploymentSettings.md b/openapi/docs/DeploymentSettings.md new file mode 100644 index 00000000..ea271eac --- /dev/null +++ b/openapi/docs/DeploymentSettings.md @@ -0,0 +1,56 @@ +# DeploymentSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultQueryVi** | Pointer to **string** | RRN of the Virtual Instance that all queries will be routed to by default | [optional] + +## Methods + +### NewDeploymentSettings + +`func NewDeploymentSettings() *DeploymentSettings` + +NewDeploymentSettings instantiates a new DeploymentSettings 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 + +### NewDeploymentSettingsWithDefaults + +`func NewDeploymentSettingsWithDefaults() *DeploymentSettings` + +NewDeploymentSettingsWithDefaults instantiates a new DeploymentSettings 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 + +### GetDefaultQueryVi + +`func (o *DeploymentSettings) GetDefaultQueryVi() string` + +GetDefaultQueryVi returns the DefaultQueryVi field if non-nil, zero value otherwise. + +### GetDefaultQueryViOk + +`func (o *DeploymentSettings) GetDefaultQueryViOk() (*string, bool)` + +GetDefaultQueryViOk returns a tuple with the DefaultQueryVi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultQueryVi + +`func (o *DeploymentSettings) SetDefaultQueryVi(v string)` + +SetDefaultQueryVi sets DefaultQueryVi field to given value. + +### HasDefaultQueryVi + +`func (o *DeploymentSettings) HasDefaultQueryVi() bool` + +HasDefaultQueryVi 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/DeploymentSettingsApi.md b/openapi/docs/DeploymentSettingsApi.md new file mode 100644 index 00000000..2600c00b --- /dev/null +++ b/openapi/docs/DeploymentSettingsApi.md @@ -0,0 +1,137 @@ +# \DeploymentSettingsApi + +All URIs are relative to *https://api.use1a1.rockset.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetDeploymentSettings**](DeploymentSettingsApi.md#GetDeploymentSettings) | **Get** /v1/orgs/self/deploymentsettings | Retrieve Deployment Settings +[**UpdateDeploymentSettings**](DeploymentSettingsApi.md#UpdateDeploymentSettings) | **Put** /v1/orgs/self/deploymentsettings | Update Deployment Settings + + + +## GetDeploymentSettings + +> DeploymentSettingsResponse GetDeploymentSettings(ctx).Execute() + +Retrieve Deployment Settings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/rockset/rockset-go-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeploymentSettingsApi.GetDeploymentSettings(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeploymentSettingsApi.GetDeploymentSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeploymentSettings`: DeploymentSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `DeploymentSettingsApi.GetDeploymentSettings`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDeploymentSettingsRequest struct via the builder pattern + + +### Return type + +[**DeploymentSettingsResponse**](DeploymentSettingsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateDeploymentSettings + +> DeploymentSettingsResponse UpdateDeploymentSettings(ctx).Body(body).Execute() + +Update Deployment Settings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/rockset/rockset-go-client" +) + +func main() { + body := *openapiclient.NewUpdateDeploymentSettingsRequest() // UpdateDeploymentSettingsRequest | JSON object + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeploymentSettingsApi.UpdateDeploymentSettings(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeploymentSettingsApi.UpdateDeploymentSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateDeploymentSettings`: DeploymentSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `DeploymentSettingsApi.UpdateDeploymentSettings`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateDeploymentSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**UpdateDeploymentSettingsRequest**](UpdateDeploymentSettingsRequest.md) | JSON object | + +### Return type + +[**DeploymentSettingsResponse**](DeploymentSettingsResponse.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/DeploymentSettingsResponse.md b/openapi/docs/DeploymentSettingsResponse.md new file mode 100644 index 00000000..e39f29d9 --- /dev/null +++ b/openapi/docs/DeploymentSettingsResponse.md @@ -0,0 +1,56 @@ +# DeploymentSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**DeploymentSettings**](DeploymentSettings.md) | | [optional] + +## Methods + +### NewDeploymentSettingsResponse + +`func NewDeploymentSettingsResponse() *DeploymentSettingsResponse` + +NewDeploymentSettingsResponse instantiates a new DeploymentSettingsResponse 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 + +### NewDeploymentSettingsResponseWithDefaults + +`func NewDeploymentSettingsResponseWithDefaults() *DeploymentSettingsResponse` + +NewDeploymentSettingsResponseWithDefaults instantiates a new DeploymentSettingsResponse 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 *DeploymentSettingsResponse) GetData() DeploymentSettings` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DeploymentSettingsResponse) GetDataOk() (*DeploymentSettings, 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 *DeploymentSettingsResponse) SetData(v DeploymentSettings)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DeploymentSettingsResponse) 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/ErrorModel.md b/openapi/docs/ErrorModel.md index e4622f61..2cf365b6 100644 --- a/openapi/docs/ErrorModel.md +++ b/openapi/docs/ErrorModel.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **QueryId** | Pointer to **string** | ID of the query (if applicable). | [optional] **TraceId** | Pointer to **string** | Internal trace ID to help with debugging. | [optional] **Type** | Pointer to **string** | Category of the error. | [optional] +**VirtualInstanceRrn** | Pointer to **string** | Virtual Instance RRN for the Virtual Instance that the query was run on (if applicable). | [optional] ## Methods @@ -206,6 +207,31 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetVirtualInstanceRrn + +`func (o *ErrorModel) GetVirtualInstanceRrn() string` + +GetVirtualInstanceRrn returns the VirtualInstanceRrn field if non-nil, zero value otherwise. + +### GetVirtualInstanceRrnOk + +`func (o *ErrorModel) GetVirtualInstanceRrnOk() (*string, bool)` + +GetVirtualInstanceRrnOk returns a tuple with the VirtualInstanceRrn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualInstanceRrn + +`func (o *ErrorModel) SetVirtualInstanceRrn(v string)` + +SetVirtualInstanceRrn sets VirtualInstanceRrn field to given value. + +### HasVirtualInstanceRrn + +`func (o *ErrorModel) HasVirtualInstanceRrn() bool` + +HasVirtualInstanceRrn returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/docs/QueryInfo.md b/openapi/docs/QueryInfo.md index c3ffeacd..59ee51b0 100644 --- a/openapi/docs/QueryInfo.md +++ b/openapi/docs/QueryInfo.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DestinationUri** | Pointer to **string** | destination for query results. Only populated for Insert INTO s3 queries. | [optional] **ExecutedBy** | Pointer to **string** | User ID who executed the query. | [optional] **ExpiresAt** | Pointer to **string** | Time (UTC) that query results expire. Only populated if `status` is `COMPLETE`. | [optional] **LastOffset** | Pointer to **string** | The log offset that query results were written to in the destination collection. Only populated for INSERT INTO queries. | [optional] @@ -34,6 +35,31 @@ NewQueryInfoWithDefaults instantiates a new QueryInfo 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 +### GetDestinationUri + +`func (o *QueryInfo) GetDestinationUri() string` + +GetDestinationUri returns the DestinationUri field if non-nil, zero value otherwise. + +### GetDestinationUriOk + +`func (o *QueryInfo) GetDestinationUriOk() (*string, bool)` + +GetDestinationUriOk returns a tuple with the DestinationUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinationUri + +`func (o *QueryInfo) SetDestinationUri(v string)` + +SetDestinationUri sets DestinationUri field to given value. + +### HasDestinationUri + +`func (o *QueryInfo) HasDestinationUri() bool` + +HasDestinationUri returns a boolean if a field has been set. + ### GetExecutedBy `func (o *QueryInfo) GetExecutedBy() string` diff --git a/openapi/docs/ScheduledLambda.md b/openapi/docs/ScheduledLambda.md index 2710fed0..0a239c9b 100644 --- a/openapi/docs/ScheduledLambda.md +++ b/openapi/docs/ScheduledLambda.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **Tag** | Pointer to **string** | The query lambda tag. | [optional] **TotalTimesToExecute** | Pointer to **int64** | The number of times to execute this scheduled query lambda. Once this scheduled query lambda has been executed this many times, it will no longer be executed. | [optional] **Version** | Pointer to **string** | The version of the associated query lambda. | [optional] +**WebhookExecutionStatus** | Pointer to [**ExecutionStatus**](ExecutionStatus.md) | | [optional] **WebhookPayload** | Pointer to **string** | The payload that should be sent to the webhook. | [optional] **WebhookUrl** | Pointer to **string** | The URL of the webhook that should be triggered after this scheduled query lambda completes. | [optional] **Workspace** | Pointer to **string** | Workspace of the associated query lambda. | [optional] @@ -339,6 +340,31 @@ SetVersion sets Version field to given value. HasVersion returns a boolean if a field has been set. +### GetWebhookExecutionStatus + +`func (o *ScheduledLambda) GetWebhookExecutionStatus() ExecutionStatus` + +GetWebhookExecutionStatus returns the WebhookExecutionStatus field if non-nil, zero value otherwise. + +### GetWebhookExecutionStatusOk + +`func (o *ScheduledLambda) GetWebhookExecutionStatusOk() (*ExecutionStatus, bool)` + +GetWebhookExecutionStatusOk returns a tuple with the WebhookExecutionStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebhookExecutionStatus + +`func (o *ScheduledLambda) SetWebhookExecutionStatus(v ExecutionStatus)` + +SetWebhookExecutionStatus sets WebhookExecutionStatus field to given value. + +### HasWebhookExecutionStatus + +`func (o *ScheduledLambda) HasWebhookExecutionStatus() bool` + +HasWebhookExecutionStatus returns a boolean if a field has been set. + ### GetWebhookPayload `func (o *ScheduledLambda) GetWebhookPayload() string` diff --git a/openapi/docs/ScheduledLambdasApi.md b/openapi/docs/ScheduledLambdasApi.md index d822f5c6..a80a6202 100644 --- a/openapi/docs/ScheduledLambdasApi.md +++ b/openapi/docs/ScheduledLambdasApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateScheduledLambda**](ScheduledLambdasApi.md#CreateScheduledLambda) | **Post** /v1/orgs/self/ws/{workspace}/scheduled_lambdas | Create a Scheduled Lambda mapping [**DeleteScheduledLambda**](ScheduledLambdasApi.md#DeleteScheduledLambda) | **Delete** /v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId} | Delete a Scheduled Lambda mapping +[**GetScheduledLambda**](ScheduledLambdasApi.md#GetScheduledLambda) | **Get** /v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId} | Retrieve a Scheduled Lambda mapping [**UpdateScheduledLambda**](ScheduledLambdasApi.md#UpdateScheduledLambda) | **Post** /v1/orgs/self/ws/{workspace}/scheduled_lambdas/{scheduledLambdaId} | Update a Scheduled Lambda mapping @@ -32,7 +33,7 @@ import ( func main() { workspace := "workspace_example" // string | name of the workspace (default to "commons") - body := *openapiclient.NewCreateScheduledLambdaRequest("* * * * *", "ql_name") // CreateScheduledLambdaRequest | JSON Object + body := *openapiclient.NewCreateScheduledLambdaRequest("qoiwkjndksd", "* * * * *", "ql_name") // CreateScheduledLambdaRequest | JSON Object configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -137,6 +138,79 @@ Name | Type | Description | Notes +### Return type + +[**ScheduledLambdaResponse**](ScheduledLambdaResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetScheduledLambda + +> ScheduledLambdaResponse GetScheduledLambda(ctx, workspace, scheduledLambdaId).Execute() + +Retrieve a Scheduled Lambda mapping + + + +### 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") + scheduledLambdaId := "scheduledLambdaId_example" // string | Scheduled Lambda RRN + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ScheduledLambdasApi.GetScheduledLambda(context.Background(), workspace, scheduledLambdaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledLambdasApi.GetScheduledLambda``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetScheduledLambda`: ScheduledLambdaResponse + fmt.Fprintf(os.Stdout, "Response from `ScheduledLambdasApi.GetScheduledLambda`: %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"] +**scheduledLambdaId** | **string** | Scheduled Lambda RRN | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetScheduledLambdaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + ### Return type [**ScheduledLambdaResponse**](ScheduledLambdaResponse.md) diff --git a/openapi/docs/UpdateDeploymentSettingsRequest.md b/openapi/docs/UpdateDeploymentSettingsRequest.md new file mode 100644 index 00000000..de590e26 --- /dev/null +++ b/openapi/docs/UpdateDeploymentSettingsRequest.md @@ -0,0 +1,56 @@ +# UpdateDeploymentSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultQueryVi** | Pointer to **string** | RRN of the Virtual Instance that all queries will be routed to by default | [optional] + +## Methods + +### NewUpdateDeploymentSettingsRequest + +`func NewUpdateDeploymentSettingsRequest() *UpdateDeploymentSettingsRequest` + +NewUpdateDeploymentSettingsRequest instantiates a new UpdateDeploymentSettingsRequest 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 + +### NewUpdateDeploymentSettingsRequestWithDefaults + +`func NewUpdateDeploymentSettingsRequestWithDefaults() *UpdateDeploymentSettingsRequest` + +NewUpdateDeploymentSettingsRequestWithDefaults instantiates a new UpdateDeploymentSettingsRequest 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 + +### GetDefaultQueryVi + +`func (o *UpdateDeploymentSettingsRequest) GetDefaultQueryVi() string` + +GetDefaultQueryVi returns the DefaultQueryVi field if non-nil, zero value otherwise. + +### GetDefaultQueryViOk + +`func (o *UpdateDeploymentSettingsRequest) GetDefaultQueryViOk() (*string, bool)` + +GetDefaultQueryViOk returns a tuple with the DefaultQueryVi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultQueryVi + +`func (o *UpdateDeploymentSettingsRequest) SetDefaultQueryVi(v string)` + +SetDefaultQueryVi sets DefaultQueryVi field to given value. + +### HasDefaultQueryVi + +`func (o *UpdateDeploymentSettingsRequest) HasDefaultQueryVi() bool` + +HasDefaultQueryVi 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/UpdateVirtualInstanceRequest.md b/openapi/docs/UpdateVirtualInstanceRequest.md index a6a98561..f47e13a0 100644 --- a/openapi/docs/UpdateVirtualInstanceRequest.md +++ b/openapi/docs/UpdateVirtualInstanceRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **EnableRemountOnResume** | Pointer to **bool** | When a Virtual Instance is resumed, it will remount all collections that were mounted when the Virtual Instance was suspended. | [optional] **InstanceClass** | Pointer to **string** | Virtual Instance Class. Use `MO_IL` for Memory Optimized and `GP_IL` for General Purpose instance class. | [optional] **MountRefreshIntervalSeconds** | Pointer to **int32** | DEPRECATED. Use `mount_type` instead. Number of seconds between data refreshes for mounts on this Virtual Instance. The only valid values are 0 and null. 0 means the data will be refreshed continuously and null means the data will never refresh. | [optional] -**MountType** | Pointer to **string** | The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration | [optional] +**MountType** | Pointer to **string** | The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration | [optional] **Name** | Pointer to **string** | New virtual instance name. | [optional] **NewSize** | Pointer to **string** | Requested virtual instance size. | [optional] diff --git a/openapi/docs/VirtualInstance.md b/openapi/docs/VirtualInstance.md index 3f887599..2089d5d1 100644 --- a/openapi/docs/VirtualInstance.md +++ b/openapi/docs/VirtualInstance.md @@ -10,7 +10,6 @@ Name | Type | Description | Notes **CreatedBy** | Pointer to **string** | Creator of requested virtual instance. | [optional] **CurrentInstanceClass** | Pointer to **string** | Virtual Instance Class. `MO_IL` represents Memory Optimized and `GP_IL` represents General Purpose instance class. | [optional] **CurrentSize** | Pointer to **string** | Virtual instance current size. | [optional] [readonly] -**DefaultPodCount** | Pointer to **int32** | | [optional] **DefaultVi** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | Virtual instance description. | [optional] **DesiredInstanceClass** | Pointer to **string** | Virtual Instance Class. | [optional] @@ -19,11 +18,10 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | Unique identifier for virtual instance. | [optional] **MonitoringEnabled** | Pointer to **bool** | | [optional] **MountRefreshIntervalSeconds** | Pointer to **int32** | DEPRECATED. Number of seconds between data refreshes for mounts on this Virtual Instance | [optional] -**MountType** | Pointer to **string** | The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration | [optional] +**MountType** | Pointer to **string** | The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration | [optional] **Name** | **string** | Virtual instance name. | **ResumedAt** | Pointer to **string** | ISO-8601 date of when virtual instance was created. | [optional] **Rrn** | Pointer to **string** | Virtual Instance RRN. | [optional] -**ScaledPodCount** | Pointer to **int32** | | [optional] **State** | Pointer to **string** | Virtual instance state. | [optional] **Stats** | Pointer to [**VirtualInstanceStats**](VirtualInstanceStats.md) | | [optional] @@ -196,31 +194,6 @@ SetCurrentSize sets CurrentSize field to given value. HasCurrentSize returns a boolean if a field has been set. -### GetDefaultPodCount - -`func (o *VirtualInstance) GetDefaultPodCount() int32` - -GetDefaultPodCount returns the DefaultPodCount field if non-nil, zero value otherwise. - -### GetDefaultPodCountOk - -`func (o *VirtualInstance) GetDefaultPodCountOk() (*int32, bool)` - -GetDefaultPodCountOk returns a tuple with the DefaultPodCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultPodCount - -`func (o *VirtualInstance) SetDefaultPodCount(v int32)` - -SetDefaultPodCount sets DefaultPodCount field to given value. - -### HasDefaultPodCount - -`func (o *VirtualInstance) HasDefaultPodCount() bool` - -HasDefaultPodCount returns a boolean if a field has been set. - ### GetDefaultVi `func (o *VirtualInstance) GetDefaultVi() bool` @@ -516,31 +489,6 @@ SetRrn sets Rrn field to given value. HasRrn returns a boolean if a field has been set. -### GetScaledPodCount - -`func (o *VirtualInstance) GetScaledPodCount() int32` - -GetScaledPodCount returns the ScaledPodCount field if non-nil, zero value otherwise. - -### GetScaledPodCountOk - -`func (o *VirtualInstance) GetScaledPodCountOk() (*int32, bool)` - -GetScaledPodCountOk returns a tuple with the ScaledPodCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScaledPodCount - -`func (o *VirtualInstance) SetScaledPodCount(v int32)` - -SetScaledPodCount sets ScaledPodCount field to given value. - -### HasScaledPodCount - -`func (o *VirtualInstance) HasScaledPodCount() bool` - -HasScaledPodCount returns a boolean if a field has been set. - ### GetState `func (o *VirtualInstance) GetState() string` diff --git a/openapi/model_create_scheduled_lambda_request.go b/openapi/model_create_scheduled_lambda_request.go index 75e7d993..9ff8aca3 100644 --- a/openapi/model_create_scheduled_lambda_request.go +++ b/openapi/model_create_scheduled_lambda_request.go @@ -20,16 +20,16 @@ var _ MappedNullable = &CreateScheduledLambdaRequest{} // CreateScheduledLambdaRequest struct for CreateScheduledLambdaRequest type CreateScheduledLambdaRequest struct { // The apikey to use when triggering execution of the associated query lambda. - Apikey *string `json:"apikey,omitempty"` + Apikey string `json:"apikey"` // The UNIX-formatted cron string for this scheduled query lambda. CronString string `json:"cron_string"` // The name of the QL to use for scheduled execution. QlName string `json:"ql_name"` - // The QL tag to use for scheduled execution. + // The QL tag to use for scheduled execution. One of either the QL tag or version must be specified Tag *string `json:"tag,omitempty"` // The number of times to execute this scheduled query lambda. Once this scheduled query lambda has been executed this many times, it will no longer be executed. TotalTimesToExecute *int64 `json:"total_times_to_execute,omitempty"` - // The version of the QL to use for scheduled execution. + // The version of the QL to use for scheduled execution. One of either the QL version or tag must be specified. Version *string `json:"version,omitempty"` // The value to use as the authorization header when hitting the webhook. WebhookAuthHeader *string `json:"webhook_auth_header,omitempty"` @@ -43,8 +43,9 @@ type CreateScheduledLambdaRequest struct { // 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 NewCreateScheduledLambdaRequest(cronString string, qlName string) *CreateScheduledLambdaRequest { +func NewCreateScheduledLambdaRequest(apikey string, cronString string, qlName string) *CreateScheduledLambdaRequest { this := CreateScheduledLambdaRequest{} + this.Apikey = apikey this.CronString = cronString this.QlName = qlName return &this @@ -58,36 +59,28 @@ func NewCreateScheduledLambdaRequestWithDefaults() *CreateScheduledLambdaRequest return &this } -// GetApikey returns the Apikey field value if set, zero value otherwise. +// GetApikey returns the Apikey field value func (o *CreateScheduledLambdaRequest) GetApikey() string { - if o == nil || IsNil(o.Apikey) { + if o == nil { var ret string return ret } - return *o.Apikey + + return o.Apikey } -// GetApikeyOk returns a tuple with the Apikey field value if set, nil otherwise +// GetApikeyOk returns a tuple with the Apikey field value // and a boolean to check if the value has been set. func (o *CreateScheduledLambdaRequest) GetApikeyOk() (*string, bool) { - if o == nil || IsNil(o.Apikey) { + if o == nil { return nil, false } - return o.Apikey, true -} - -// HasApikey returns a boolean if a field has been set. -func (o *CreateScheduledLambdaRequest) HasApikey() bool { - if o != nil && !IsNil(o.Apikey) { - return true - } - - return false + return &o.Apikey, true } -// SetApikey gets a reference to the given string and assigns it to the Apikey field. +// SetApikey sets field value func (o *CreateScheduledLambdaRequest) SetApikey(v string) { - o.Apikey = &v + o.Apikey = v } // GetCronString returns the CronString field value @@ -340,9 +333,7 @@ func (o CreateScheduledLambdaRequest) MarshalJSON() ([]byte, error) { func (o CreateScheduledLambdaRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Apikey) { - toSerialize["apikey"] = o.Apikey - } + toSerialize["apikey"] = o.Apikey toSerialize["cron_string"] = o.CronString toSerialize["ql_name"] = o.QlName if !IsNil(o.Tag) { diff --git a/openapi/model_create_virtual_instance_request.go b/openapi/model_create_virtual_instance_request.go index aa2f2ef3..7f85b119 100644 --- a/openapi/model_create_virtual_instance_request.go +++ b/openapi/model_create_virtual_instance_request.go @@ -29,7 +29,7 @@ type CreateVirtualInstanceRequest struct { InstanceClass *string `json:"instance_class,omitempty"` // DEPRECATED. Use `mount_type` instead. Number of seconds between data refreshes for mounts on this Virtual Instance. The only valid values are 0 and null. 0 means the data will be refreshed continuously and null means the data will never refresh. MountRefreshIntervalSeconds *int32 `json:"mount_refresh_interval_seconds,omitempty"` - // The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration + // The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration MountType *string `json:"mount_type,omitempty"` // Unique identifier for virtual instance, can contain alphanumeric or dash characters. Name string `json:"name"` diff --git a/openapi/model_deployment_settings.go b/openapi/model_deployment_settings.go new file mode 100644 index 00000000..b018d17b --- /dev/null +++ b/openapi/model_deployment_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 DeploymentSettings type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentSettings{} + +// DeploymentSettings struct for DeploymentSettings +type DeploymentSettings struct { + // RRN of the Virtual Instance that all queries will be routed to by default + DefaultQueryVi *string `json:"default_query_vi,omitempty"` +} + +// NewDeploymentSettings instantiates a new DeploymentSettings 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 NewDeploymentSettings() *DeploymentSettings { + this := DeploymentSettings{} + return &this +} + +// NewDeploymentSettingsWithDefaults instantiates a new DeploymentSettings 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 NewDeploymentSettingsWithDefaults() *DeploymentSettings { + this := DeploymentSettings{} + return &this +} + +// GetDefaultQueryVi returns the DefaultQueryVi field value if set, zero value otherwise. +func (o *DeploymentSettings) GetDefaultQueryVi() string { + if o == nil || IsNil(o.DefaultQueryVi) { + var ret string + return ret + } + return *o.DefaultQueryVi +} + +// GetDefaultQueryViOk returns a tuple with the DefaultQueryVi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeploymentSettings) GetDefaultQueryViOk() (*string, bool) { + if o == nil || IsNil(o.DefaultQueryVi) { + return nil, false + } + return o.DefaultQueryVi, true +} + +// HasDefaultQueryVi returns a boolean if a field has been set. +func (o *DeploymentSettings) HasDefaultQueryVi() bool { + if o != nil && !IsNil(o.DefaultQueryVi) { + return true + } + + return false +} + +// SetDefaultQueryVi gets a reference to the given string and assigns it to the DefaultQueryVi field. +func (o *DeploymentSettings) SetDefaultQueryVi(v string) { + o.DefaultQueryVi = &v +} + +func (o DeploymentSettings) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentSettings) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultQueryVi) { + toSerialize["default_query_vi"] = o.DefaultQueryVi + } + return toSerialize, nil +} + +type NullableDeploymentSettings struct { + value *DeploymentSettings + isSet bool +} + +func (v NullableDeploymentSettings) Get() *DeploymentSettings { + return v.value +} + +func (v *NullableDeploymentSettings) Set(val *DeploymentSettings) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentSettings(val *DeploymentSettings) *NullableDeploymentSettings { + return &NullableDeploymentSettings{value: val, isSet: true} +} + +func (v NullableDeploymentSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_deployment_settings_response.go b/openapi/model_deployment_settings_response.go new file mode 100644 index 00000000..52bea59f --- /dev/null +++ b/openapi/model_deployment_settings_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 DeploymentSettingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeploymentSettingsResponse{} + +// DeploymentSettingsResponse struct for DeploymentSettingsResponse +type DeploymentSettingsResponse struct { + Data *DeploymentSettings `json:"data,omitempty"` +} + +// NewDeploymentSettingsResponse instantiates a new DeploymentSettingsResponse 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 NewDeploymentSettingsResponse() *DeploymentSettingsResponse { + this := DeploymentSettingsResponse{} + return &this +} + +// NewDeploymentSettingsResponseWithDefaults instantiates a new DeploymentSettingsResponse 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 NewDeploymentSettingsResponseWithDefaults() *DeploymentSettingsResponse { + this := DeploymentSettingsResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DeploymentSettingsResponse) GetData() DeploymentSettings { + if o == nil || IsNil(o.Data) { + var ret DeploymentSettings + 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 *DeploymentSettingsResponse) GetDataOk() (*DeploymentSettings, 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 *DeploymentSettingsResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given DeploymentSettings and assigns it to the Data field. +func (o *DeploymentSettingsResponse) SetData(v DeploymentSettings) { + o.Data = &v +} + +func (o DeploymentSettingsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeploymentSettingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableDeploymentSettingsResponse struct { + value *DeploymentSettingsResponse + isSet bool +} + +func (v NullableDeploymentSettingsResponse) Get() *DeploymentSettingsResponse { + return v.value +} + +func (v *NullableDeploymentSettingsResponse) Set(val *DeploymentSettingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDeploymentSettingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDeploymentSettingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeploymentSettingsResponse(val *DeploymentSettingsResponse) *NullableDeploymentSettingsResponse { + return &NullableDeploymentSettingsResponse{value: val, isSet: true} +} + +func (v NullableDeploymentSettingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeploymentSettingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_error_model.go b/openapi/model_error_model.go index 8e78b102..cbc10721 100644 --- a/openapi/model_error_model.go +++ b/openapi/model_error_model.go @@ -33,6 +33,8 @@ type ErrorModel struct { TraceId *string `json:"trace_id,omitempty"` // Category of the error. Type *string `json:"type,omitempty"` + // Virtual Instance RRN for the Virtual Instance that the query was run on (if applicable). + VirtualInstanceRrn *string `json:"virtual_instance_rrn,omitempty"` } // NewErrorModel instantiates a new ErrorModel object @@ -276,6 +278,38 @@ func (o *ErrorModel) SetType(v string) { o.Type = &v } +// GetVirtualInstanceRrn returns the VirtualInstanceRrn field value if set, zero value otherwise. +func (o *ErrorModel) GetVirtualInstanceRrn() string { + if o == nil || IsNil(o.VirtualInstanceRrn) { + var ret string + return ret + } + return *o.VirtualInstanceRrn +} + +// GetVirtualInstanceRrnOk returns a tuple with the VirtualInstanceRrn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorModel) GetVirtualInstanceRrnOk() (*string, bool) { + if o == nil || IsNil(o.VirtualInstanceRrn) { + return nil, false + } + return o.VirtualInstanceRrn, true +} + +// HasVirtualInstanceRrn returns a boolean if a field has been set. +func (o *ErrorModel) HasVirtualInstanceRrn() bool { + if o != nil && !IsNil(o.VirtualInstanceRrn) { + return true + } + + return false +} + +// SetVirtualInstanceRrn gets a reference to the given string and assigns it to the VirtualInstanceRrn field. +func (o *ErrorModel) SetVirtualInstanceRrn(v string) { + o.VirtualInstanceRrn = &v +} + func (o ErrorModel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -307,6 +341,9 @@ func (o ErrorModel) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.VirtualInstanceRrn) { + toSerialize["virtual_instance_rrn"] = o.VirtualInstanceRrn + } return toSerialize, nil } diff --git a/openapi/model_query_info.go b/openapi/model_query_info.go index c9d7acf4..4cec427b 100644 --- a/openapi/model_query_info.go +++ b/openapi/model_query_info.go @@ -19,6 +19,8 @@ var _ MappedNullable = &QueryInfo{} // QueryInfo struct for QueryInfo type QueryInfo struct { + // destination for query results. Only populated for Insert INTO s3 queries. + DestinationUri *string `json:"destination_uri,omitempty"` // User ID who executed the query. ExecutedBy *string `json:"executed_by,omitempty"` // Time (UTC) that query results expire. Only populated if `status` is `COMPLETE`. @@ -56,6 +58,38 @@ func NewQueryInfoWithDefaults() *QueryInfo { return &this } +// GetDestinationUri returns the DestinationUri field value if set, zero value otherwise. +func (o *QueryInfo) GetDestinationUri() string { + if o == nil || IsNil(o.DestinationUri) { + var ret string + return ret + } + return *o.DestinationUri +} + +// GetDestinationUriOk returns a tuple with the DestinationUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryInfo) GetDestinationUriOk() (*string, bool) { + if o == nil || IsNil(o.DestinationUri) { + return nil, false + } + return o.DestinationUri, true +} + +// HasDestinationUri returns a boolean if a field has been set. +func (o *QueryInfo) HasDestinationUri() bool { + if o != nil && !IsNil(o.DestinationUri) { + return true + } + + return false +} + +// SetDestinationUri gets a reference to the given string and assigns it to the DestinationUri field. +func (o *QueryInfo) SetDestinationUri(v string) { + o.DestinationUri = &v +} + // GetExecutedBy returns the ExecutedBy field value if set, zero value otherwise. func (o *QueryInfo) GetExecutedBy() string { if o == nil || IsNil(o.ExecutedBy) { @@ -386,6 +420,9 @@ func (o QueryInfo) MarshalJSON() ([]byte, error) { func (o QueryInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.DestinationUri) { + toSerialize["destination_uri"] = o.DestinationUri + } if !IsNil(o.ExecutedBy) { toSerialize["executed_by"] = o.ExecutedBy } diff --git a/openapi/model_scheduled_lambda.go b/openapi/model_scheduled_lambda.go index 662de5ad..5ab49253 100644 --- a/openapi/model_scheduled_lambda.go +++ b/openapi/model_scheduled_lambda.go @@ -42,6 +42,7 @@ type ScheduledLambda struct { TotalTimesToExecute *int64 `json:"total_times_to_execute,omitempty"` // The version of the associated query lambda. Version *string `json:"version,omitempty"` + WebhookExecutionStatus *ExecutionStatus `json:"webhook_execution_status,omitempty"` // The payload that should be sent to the webhook. WebhookPayload *string `json:"webhook_payload,omitempty"` // The URL of the webhook that should be triggered after this scheduled query lambda completes. @@ -451,6 +452,38 @@ func (o *ScheduledLambda) SetVersion(v string) { o.Version = &v } +// GetWebhookExecutionStatus returns the WebhookExecutionStatus field value if set, zero value otherwise. +func (o *ScheduledLambda) GetWebhookExecutionStatus() ExecutionStatus { + if o == nil || IsNil(o.WebhookExecutionStatus) { + var ret ExecutionStatus + return ret + } + return *o.WebhookExecutionStatus +} + +// GetWebhookExecutionStatusOk returns a tuple with the WebhookExecutionStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScheduledLambda) GetWebhookExecutionStatusOk() (*ExecutionStatus, bool) { + if o == nil || IsNil(o.WebhookExecutionStatus) { + return nil, false + } + return o.WebhookExecutionStatus, true +} + +// HasWebhookExecutionStatus returns a boolean if a field has been set. +func (o *ScheduledLambda) HasWebhookExecutionStatus() bool { + if o != nil && !IsNil(o.WebhookExecutionStatus) { + return true + } + + return false +} + +// SetWebhookExecutionStatus gets a reference to the given ExecutionStatus and assigns it to the WebhookExecutionStatus field. +func (o *ScheduledLambda) SetWebhookExecutionStatus(v ExecutionStatus) { + o.WebhookExecutionStatus = &v +} + // GetWebhookPayload returns the WebhookPayload field value if set, zero value otherwise. func (o *ScheduledLambda) GetWebhookPayload() string { if o == nil || IsNil(o.WebhookPayload) { @@ -593,6 +626,9 @@ func (o ScheduledLambda) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } + if !IsNil(o.WebhookExecutionStatus) { + toSerialize["webhook_execution_status"] = o.WebhookExecutionStatus + } if !IsNil(o.WebhookPayload) { toSerialize["webhook_payload"] = o.WebhookPayload } diff --git a/openapi/model_update_deployment_settings_request.go b/openapi/model_update_deployment_settings_request.go new file mode 100644 index 00000000..ed80f9b7 --- /dev/null +++ b/openapi/model_update_deployment_settings_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 UpdateDeploymentSettingsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateDeploymentSettingsRequest{} + +// UpdateDeploymentSettingsRequest struct for UpdateDeploymentSettingsRequest +type UpdateDeploymentSettingsRequest struct { + // RRN of the Virtual Instance that all queries will be routed to by default + DefaultQueryVi *string `json:"default_query_vi,omitempty"` +} + +// NewUpdateDeploymentSettingsRequest instantiates a new UpdateDeploymentSettingsRequest 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 NewUpdateDeploymentSettingsRequest() *UpdateDeploymentSettingsRequest { + this := UpdateDeploymentSettingsRequest{} + return &this +} + +// NewUpdateDeploymentSettingsRequestWithDefaults instantiates a new UpdateDeploymentSettingsRequest 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 NewUpdateDeploymentSettingsRequestWithDefaults() *UpdateDeploymentSettingsRequest { + this := UpdateDeploymentSettingsRequest{} + return &this +} + +// GetDefaultQueryVi returns the DefaultQueryVi field value if set, zero value otherwise. +func (o *UpdateDeploymentSettingsRequest) GetDefaultQueryVi() string { + if o == nil || IsNil(o.DefaultQueryVi) { + var ret string + return ret + } + return *o.DefaultQueryVi +} + +// GetDefaultQueryViOk returns a tuple with the DefaultQueryVi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateDeploymentSettingsRequest) GetDefaultQueryViOk() (*string, bool) { + if o == nil || IsNil(o.DefaultQueryVi) { + return nil, false + } + return o.DefaultQueryVi, true +} + +// HasDefaultQueryVi returns a boolean if a field has been set. +func (o *UpdateDeploymentSettingsRequest) HasDefaultQueryVi() bool { + if o != nil && !IsNil(o.DefaultQueryVi) { + return true + } + + return false +} + +// SetDefaultQueryVi gets a reference to the given string and assigns it to the DefaultQueryVi field. +func (o *UpdateDeploymentSettingsRequest) SetDefaultQueryVi(v string) { + o.DefaultQueryVi = &v +} + +func (o UpdateDeploymentSettingsRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateDeploymentSettingsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultQueryVi) { + toSerialize["default_query_vi"] = o.DefaultQueryVi + } + return toSerialize, nil +} + +type NullableUpdateDeploymentSettingsRequest struct { + value *UpdateDeploymentSettingsRequest + isSet bool +} + +func (v NullableUpdateDeploymentSettingsRequest) Get() *UpdateDeploymentSettingsRequest { + return v.value +} + +func (v *NullableUpdateDeploymentSettingsRequest) Set(val *UpdateDeploymentSettingsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateDeploymentSettingsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateDeploymentSettingsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateDeploymentSettingsRequest(val *UpdateDeploymentSettingsRequest) *NullableUpdateDeploymentSettingsRequest { + return &NullableUpdateDeploymentSettingsRequest{value: val, isSet: true} +} + +func (v NullableUpdateDeploymentSettingsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateDeploymentSettingsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/model_update_virtual_instance_request.go b/openapi/model_update_virtual_instance_request.go index 79dce8ed..8d60f02d 100644 --- a/openapi/model_update_virtual_instance_request.go +++ b/openapi/model_update_virtual_instance_request.go @@ -32,7 +32,7 @@ type UpdateVirtualInstanceRequest struct { InstanceClass *string `json:"instance_class,omitempty"` // DEPRECATED. Use `mount_type` instead. Number of seconds between data refreshes for mounts on this Virtual Instance. The only valid values are 0 and null. 0 means the data will be refreshed continuously and null means the data will never refresh. MountRefreshIntervalSeconds *int32 `json:"mount_refresh_interval_seconds,omitempty"` - // The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration + // The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration MountType *string `json:"mount_type,omitempty"` // New virtual instance name. Name *string `json:"name,omitempty"` diff --git a/openapi/model_virtual_instance.go b/openapi/model_virtual_instance.go index 8a0ca093..9562b8f4 100644 --- a/openapi/model_virtual_instance.go +++ b/openapi/model_virtual_instance.go @@ -30,7 +30,6 @@ type VirtualInstance struct { CurrentInstanceClass *string `json:"current_instance_class,omitempty"` // Virtual instance current size. CurrentSize *string `json:"current_size,omitempty"` - DefaultPodCount *int32 `json:"default_pod_count,omitempty"` DefaultVi *bool `json:"default_vi,omitempty"` // Virtual instance description. Description *string `json:"description,omitempty"` @@ -45,7 +44,7 @@ type VirtualInstance struct { MonitoringEnabled *bool `json:"monitoring_enabled,omitempty"` // DEPRECATED. Number of seconds between data refreshes for mounts on this Virtual Instance MountRefreshIntervalSeconds *int32 `json:"mount_refresh_interval_seconds,omitempty"` - // The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/virtual-instances#virtual-instance-configuration + // The mount type of collections that this Virtual Instance will query. Live mounted collections stay up-to-date with the underlying collection in real-time. Static mounted collections do not stay up-to-date. See https://docs.rockset.com/documentation/docs/using-virtual-instances#virtual-instance-configuration MountType *string `json:"mount_type,omitempty"` // Virtual instance name. Name string `json:"name"` @@ -53,7 +52,6 @@ type VirtualInstance struct { ResumedAt *string `json:"resumed_at,omitempty"` // Virtual Instance RRN. Rrn *string `json:"rrn,omitempty"` - ScaledPodCount *int32 `json:"scaled_pod_count,omitempty"` // Virtual instance state. State *string `json:"state,omitempty"` Stats *VirtualInstanceStats `json:"stats,omitempty"` @@ -269,38 +267,6 @@ func (o *VirtualInstance) SetCurrentSize(v string) { o.CurrentSize = &v } -// GetDefaultPodCount returns the DefaultPodCount field value if set, zero value otherwise. -func (o *VirtualInstance) GetDefaultPodCount() int32 { - if o == nil || IsNil(o.DefaultPodCount) { - var ret int32 - return ret - } - return *o.DefaultPodCount -} - -// GetDefaultPodCountOk returns a tuple with the DefaultPodCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualInstance) GetDefaultPodCountOk() (*int32, bool) { - if o == nil || IsNil(o.DefaultPodCount) { - return nil, false - } - return o.DefaultPodCount, true -} - -// HasDefaultPodCount returns a boolean if a field has been set. -func (o *VirtualInstance) HasDefaultPodCount() bool { - if o != nil && !IsNil(o.DefaultPodCount) { - return true - } - - return false -} - -// SetDefaultPodCount gets a reference to the given int32 and assigns it to the DefaultPodCount field. -func (o *VirtualInstance) SetDefaultPodCount(v int32) { - o.DefaultPodCount = &v -} - // GetDefaultVi returns the DefaultVi field value if set, zero value otherwise. func (o *VirtualInstance) GetDefaultVi() bool { if o == nil || IsNil(o.DefaultVi) { @@ -677,38 +643,6 @@ func (o *VirtualInstance) SetRrn(v string) { o.Rrn = &v } -// GetScaledPodCount returns the ScaledPodCount field value if set, zero value otherwise. -func (o *VirtualInstance) GetScaledPodCount() int32 { - if o == nil || IsNil(o.ScaledPodCount) { - var ret int32 - return ret - } - return *o.ScaledPodCount -} - -// GetScaledPodCountOk returns a tuple with the ScaledPodCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualInstance) GetScaledPodCountOk() (*int32, bool) { - if o == nil || IsNil(o.ScaledPodCount) { - return nil, false - } - return o.ScaledPodCount, true -} - -// HasScaledPodCount returns a boolean if a field has been set. -func (o *VirtualInstance) HasScaledPodCount() bool { - if o != nil && !IsNil(o.ScaledPodCount) { - return true - } - - return false -} - -// SetScaledPodCount gets a reference to the given int32 and assigns it to the ScaledPodCount field. -func (o *VirtualInstance) SetScaledPodCount(v int32) { - o.ScaledPodCount = &v -} - // GetState returns the State field value if set, zero value otherwise. func (o *VirtualInstance) GetState() string { if o == nil || IsNil(o.State) { @@ -799,9 +733,6 @@ func (o VirtualInstance) ToMap() (map[string]interface{}, error) { toSerialize["current_instance_class"] = o.CurrentInstanceClass } // skip: current_size is readOnly - if !IsNil(o.DefaultPodCount) { - toSerialize["default_pod_count"] = o.DefaultPodCount - } if !IsNil(o.DefaultVi) { toSerialize["default_vi"] = o.DefaultVi } @@ -834,9 +765,6 @@ func (o VirtualInstance) ToMap() (map[string]interface{}, error) { if !IsNil(o.Rrn) { toSerialize["rrn"] = o.Rrn } - if !IsNil(o.ScaledPodCount) { - toSerialize["scaled_pod_count"] = o.ScaledPodCount - } if !IsNil(o.State) { toSerialize["state"] = o.State } diff --git a/spec b/spec index c55e78f9..ca42a235 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit c55e78f9620c16ef29219a0b775cb5bd556c009a +Subproject commit ca42a235b3383aca5043e423e4e5dfe686cae918 diff --git a/testdata/cassettes/CollectionTestSuite/TestCreateSampleCitiesCollection.cassette.gz b/testdata/cassettes/CollectionTestSuite/TestCreateSampleCitiesCollection.cassette.gz index c3a124b3..ab75ac48 100644 --- a/testdata/cassettes/CollectionTestSuite/TestCreateSampleCitiesCollection.cassette.gz +++ b/testdata/cassettes/CollectionTestSuite/TestCreateSampleCitiesCollection.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cdb55c1ac3509ded5017e63ebd8389546387f547322dbe72d4826c2f66f8905b -size 7703 +oid sha256:25612249d6ff93f8b877a6c61e3d5b70dd08f6ca5695cc0ecaa90a62ec645634 +size 7116 diff --git a/testdata/cassettes/CollectionTestSuite/TestCreateSampleMoviesCollection.cassette.gz b/testdata/cassettes/CollectionTestSuite/TestCreateSampleMoviesCollection.cassette.gz index ccc74ac0..5819789c 100644 --- a/testdata/cassettes/CollectionTestSuite/TestCreateSampleMoviesCollection.cassette.gz +++ b/testdata/cassettes/CollectionTestSuite/TestCreateSampleMoviesCollection.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f0c4c806ff8a601e784498b8c9ad555a5f1db5666e4eddce8cf3f1106a9adee3 -size 6329 +oid sha256:3f0e02cf6e83312f51165cedd7c531f1891afb65dbd44da7a34e425e74d6cf36 +size 6764 diff --git a/testdata/cassettes/CollectionTestSuite/TestGetCollection.cassette.gz b/testdata/cassettes/CollectionTestSuite/TestGetCollection.cassette.gz index becdb539..b2ce8539 100644 --- a/testdata/cassettes/CollectionTestSuite/TestGetCollection.cassette.gz +++ b/testdata/cassettes/CollectionTestSuite/TestGetCollection.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:75980cfacf1b5684657c04171a19566442d66ac622e42aca03da3137457015b9 -size 2963 +oid sha256:c65015463cd3f73ac6b5bdfbdf29d10e46562e5549781f14a6eca834f4b61c84 +size 2959 diff --git a/testdata/cassettes/CollectionTestSuite/TestListAllCollections.cassette.gz b/testdata/cassettes/CollectionTestSuite/TestListAllCollections.cassette.gz index b487de67..5cee6328 100644 --- a/testdata/cassettes/CollectionTestSuite/TestListAllCollections.cassette.gz +++ b/testdata/cassettes/CollectionTestSuite/TestListAllCollections.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:286d77e11ec37b16f862babbfe37ec306eac3a4210cce35e90228ed3649f89da -size 10174 +oid sha256:cb625b2cba340bf008ecfb3bb710cdf356f6c7a285a2068cbab3aae80f47209d +size 12731 diff --git a/testdata/cassettes/CollectionTestSuite/TestListCollectionsInWorkspace.cassette.gz b/testdata/cassettes/CollectionTestSuite/TestListCollectionsInWorkspace.cassette.gz index 6a77ef9f..7c38b656 100644 --- a/testdata/cassettes/CollectionTestSuite/TestListCollectionsInWorkspace.cassette.gz +++ b/testdata/cassettes/CollectionTestSuite/TestListCollectionsInWorkspace.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:38a465b8163183d787e1d5f1181323dae144bf3bea7157542f3415dfbf25e74a -size 3357 +oid sha256:105971f64faca04cb94ff97e0cb36fec6ea22eab50d1beaf589788a6d781531f +size 3358 diff --git a/testdata/cassettes/CollectionTestSuite/TestUpdateCollection.cassette.gz b/testdata/cassettes/CollectionTestSuite/TestUpdateCollection.cassette.gz index 7482cb6e..95c45622 100644 --- a/testdata/cassettes/CollectionTestSuite/TestUpdateCollection.cassette.gz +++ b/testdata/cassettes/CollectionTestSuite/TestUpdateCollection.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1c118a4d6f4f007bd6ef3650d0a1c426b7fbac31dba3c4371771c6ae3b04bc69 -size 7010 +oid sha256:39a32182f3b1fbc8a0f3eeec983bf38c88e2b857494bcd5d17aa14264ebd276a +size 6833 diff --git a/testdata/cassettes/IntegrationTestSuite/TestCreateGCSIntegration.cassette.gz b/testdata/cassettes/IntegrationTestSuite/TestCreateGCSIntegration.cassette.gz index 85aca1dc..576acca0 100644 --- a/testdata/cassettes/IntegrationTestSuite/TestCreateGCSIntegration.cassette.gz +++ b/testdata/cassettes/IntegrationTestSuite/TestCreateGCSIntegration.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:381218d891ed6a428bb1d78829ec1f99a751b85d0e689d14d4a71ae0faafa673 -size 4475 +oid sha256:4eaab8a03c6c6e9cfa8a9a7ee6fbf0434785a395fe813de38aab80fdf672d70e +size 4473 diff --git a/testdata/cassettes/IntegrationTestSuite/TestCreateS3Integration.cassette.gz b/testdata/cassettes/IntegrationTestSuite/TestCreateS3Integration.cassette.gz index 3c57b306..6d7f0450 100644 --- a/testdata/cassettes/IntegrationTestSuite/TestCreateS3Integration.cassette.gz +++ b/testdata/cassettes/IntegrationTestSuite/TestCreateS3Integration.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e3b6d39f576b486a21463953ac20410ead01e807dd89511eddb98ee7b913307b -size 1819 +oid sha256:f60ddf16b3fd2d3463faaccfc2e61a7e051622855905b737d2af194e90094d06 +size 1817 diff --git a/testdata/cassettes/IntegrationTestSuite/TestGetIntegration.cassette.gz b/testdata/cassettes/IntegrationTestSuite/TestGetIntegration.cassette.gz index fe493a70..cde4c25d 100644 --- a/testdata/cassettes/IntegrationTestSuite/TestGetIntegration.cassette.gz +++ b/testdata/cassettes/IntegrationTestSuite/TestGetIntegration.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5b45c64b3ab566b7c3cab3369a4060d244058a9f3c8256d7d21bf349dd745066 -size 4114 +oid sha256:6bc459c85d62f924df0f8676246aa37ae2d925ef70dc87468f951f6e164ccb90 +size 4113 diff --git a/testdata/cassettes/IntegrationTestSuite/TestListIntegrations.cassette.gz b/testdata/cassettes/IntegrationTestSuite/TestListIntegrations.cassette.gz index fde6ca85..fbd772bc 100644 --- a/testdata/cassettes/IntegrationTestSuite/TestListIntegrations.cassette.gz +++ b/testdata/cassettes/IntegrationTestSuite/TestListIntegrations.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ea8ac033db54eee380ea9bfa02db600e7f40c574d558ffd2ef272b7526e63676 -size 4602 +oid sha256:159409a70e8a0423067e0ab03b1349509b9b13d90302a1542d412111cdb5fe9f +size 8226 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestAsyncQuery.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestAsyncQuery.cassette.gz index 3f983149..bdd52de8 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestAsyncQuery.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestAsyncQuery.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:805b19b0f0af34b92f9a8d2f61ebff21b5f01e8df6876a0ec5f63334866f68ed -size 2451 +oid sha256:78dce359eaf3f0c2239db22cfcd199c2e397bc664a3a0a73b9d28b66dcfdf788 +size 2555 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz index 78102924..191843fd 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestAsyncQueryWithClientTimeout.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:22dc34ec806d2247d137c16420f88533ffe9d640de620df6fcc6a93d2dfe30d0 -size 2515 +oid sha256:bd1bdb5d3b1a90ca4bbd90e6d4b5141e0e4a56e740dd4de2ebfb2ba7e8b2ab36 +size 2524 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestCancelQuery.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestCancelQuery.cassette.gz index b2173719..c439f0a7 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestCancelQuery.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestCancelQuery.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9216cddcbc408d138f46ac6c4ff3d0694d7e43073ea6bfa4d9e997e0ef5055cf -size 1817 +oid sha256:2cbc9d15b582c2a7b27fd8e713a0dc5ffcfff6d0eb78c8161e121e3b005943e9 +size 1818 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestListQueries.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestListQueries.cassette.gz index a8512e70..24aa4f53 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestListQueries.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestListQueries.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c884958c754d1a4d7b3d53e6ec1df01bc07ea4b4dc0882714f1fab0b49ba8b58 -size 1285 +oid sha256:290da1c2a9883133966dfcc0335ce06948df6592036d06bc44e5bef447d0a3c8 +size 897 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestQuery.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestQuery.cassette.gz index ca0db527..046ac09c 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestQuery.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestQuery.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:34b2cc0a7a1df89f5fe4753b73ff689163f7b4159540e1a14c938287d5017e91 -size 1189 +oid sha256:0a5807f4462d19159253b5d64baf411f365bfcb1ed640ebe7d52ffce85cac35c +size 1188 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz index 2a5d6d6e..72757af6 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestQueryWithTimeout.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:183bece83e571101cf70d30170a1dc2c25bc95f65dbeeccc0ff49c532a4eb5e0 -size 1566 +oid sha256:92441d8985fe3187f13e53075ec1fb32bddcd9af5a737133a8fdb22b8c0f2035 +size 1686 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestQueryWithVirtualInstance.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestQueryWithVirtualInstance.cassette.gz index 25c99367..7e64fd90 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestQueryWithVirtualInstance.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestQueryWithVirtualInstance.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f5a99c0f38a17a40c103cf9cdc21b3d7348caf66e8b190844ca5258e130fbeb1 -size 2076 +oid sha256:b11c162d66f3ba4577f48b0a1baada870a2ebb0746e98b1e2da66d4dcd09342e +size 2038 diff --git a/testdata/cassettes/QueryIntegrationSuite/TestValidateQuery.cassette.gz b/testdata/cassettes/QueryIntegrationSuite/TestValidateQuery.cassette.gz index 2bb37678..3dfa9b98 100644 --- a/testdata/cassettes/QueryIntegrationSuite/TestValidateQuery.cassette.gz +++ b/testdata/cassettes/QueryIntegrationSuite/TestValidateQuery.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:915ace1ca45085c7127f5225da2e4d3f2738eed633811c3b6a72794bab1b3651 -size 1006 +oid sha256:11954bfb93e4465be595aa4da44844d739e923c16da754b98fda5bc53a5bf16a +size 1009 diff --git a/testdata/cassettes/TestAliases_CRUD.cassette.gz b/testdata/cassettes/TestAliases_CRUD.cassette.gz index 06de5834..5b1dc5c8 100644 --- a/testdata/cassettes/TestAliases_CRUD.cassette.gz +++ b/testdata/cassettes/TestAliases_CRUD.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9bf40c3252acb0b85146abeeb19bc09cfc0ebf7e190c8f5a0d7d51d5cccf2800 -size 1766 +oid sha256:316effe7e965659aca70626e725ca64d22f05e4ef34abe301852b9f5c63b241c +size 1807 diff --git a/testdata/cassettes/TestAliases_getAlias.cassette.gz b/testdata/cassettes/TestAliases_getAlias.cassette.gz index 5d3935e0..15449c69 100644 --- a/testdata/cassettes/TestAliases_getAlias.cassette.gz +++ b/testdata/cassettes/TestAliases_getAlias.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:93895cdbdcc6714a3f309ccc5b5b6eebb3798d646bd165c219e561507966cbc6 +oid sha256:9c22e753e3f7c0cf49705f47f7ee932f25ef24a4c4ccf0b6749b6eed6da20f33 size 1171 diff --git a/testdata/cassettes/TestAliases_listAliases.cassette.gz b/testdata/cassettes/TestAliases_listAliases.cassette.gz index 0694fa2a..c75e9875 100644 --- a/testdata/cassettes/TestAliases_listAliases.cassette.gz +++ b/testdata/cassettes/TestAliases_listAliases.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e47dd05a52720cec0cab26687bf243beb045ac34bcbf169b9df77abcdcca3705 -size 1261 +oid sha256:68c2a63980aefbaa87b729993624d853e1a17c6222d665a26165769d0b855f2b +size 1262 diff --git a/testdata/cassettes/TestAliases_listAliasesForWorkspace.cassette.gz b/testdata/cassettes/TestAliases_listAliasesForWorkspace.cassette.gz index afe74a3c..9948b087 100644 --- a/testdata/cassettes/TestAliases_listAliasesForWorkspace.cassette.gz +++ b/testdata/cassettes/TestAliases_listAliasesForWorkspace.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f582507750f57ecee4a107fd076bb38ac6fa9b105036e9a65ccbdde706295681 +oid sha256:2ee13116a7e53caca97ca74f2a51befad8094b620f7d6ce423403bc630020440 size 1272 diff --git a/testdata/cassettes/TestAzureIntegrations.cassette.gz b/testdata/cassettes/TestAzureIntegrations.cassette.gz index 51396fa4..820f0a98 100644 --- a/testdata/cassettes/TestAzureIntegrations.cassette.gz +++ b/testdata/cassettes/TestAzureIntegrations.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1fd58063d0b12c898608a30a0db2681cc53618e98c3d45c615d905e1c0a425d -size 2519 +oid sha256:9b32df7d50cf574abac6a852323753d71cf5e0ff74e96f87be57fed3db71635c +size 2551 diff --git a/testdata/cassettes/TestCollectionIntegrationSuite.cassette.gz b/testdata/cassettes/TestCollectionIntegrationSuite.cassette.gz index 42133b72..cd6e2ec7 100644 --- a/testdata/cassettes/TestCollectionIntegrationSuite.cassette.gz +++ b/testdata/cassettes/TestCollectionIntegrationSuite.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3c5c707623e1062494b10cbd8c1beaed40e192cb19eb7d23f4c06e5da06b1073 -size 1155 +oid sha256:565a063fb67ab414f6dc41e448d653c8226a1663614857d996b029f7845fab29 +size 1152 diff --git a/testdata/cassettes/TestDocumentSuite.cassette.gz b/testdata/cassettes/TestDocumentSuite.cassette.gz index 7e344f35..c51607bd 100644 --- a/testdata/cassettes/TestDocumentSuite.cassette.gz +++ b/testdata/cassettes/TestDocumentSuite.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a368f6afe50f7e2ca170115f8226edcb4cf21452372132197087170841a4a7b9 -size 4576 +oid sha256:f0139e15c1f038ee51a8da259e531f618e7f41520a7858af912a81b2c4266454 +size 5016 diff --git a/testdata/cassettes/TestDocumentSuite/TestAddDocument.cassette.gz b/testdata/cassettes/TestDocumentSuite/TestAddDocument.cassette.gz index 91374560..6488e99b 100644 --- a/testdata/cassettes/TestDocumentSuite/TestAddDocument.cassette.gz +++ b/testdata/cassettes/TestDocumentSuite/TestAddDocument.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7523c2c92edb9cf3c4f37a16a45d34af3ec75bea30eec093f1f52e89b4f9e401 +oid sha256:9160861e1bfb6e1734c5a1035e6c4ce780d37b4a17ff9703ac13057bc6e37049 size 1099 diff --git a/testdata/cassettes/TestDocumentSuite/TestAddDocumentWithFence.cassette.gz b/testdata/cassettes/TestDocumentSuite/TestAddDocumentWithFence.cassette.gz index ae463798..401ab4ce 100644 --- a/testdata/cassettes/TestDocumentSuite/TestAddDocumentWithFence.cassette.gz +++ b/testdata/cassettes/TestDocumentSuite/TestAddDocumentWithFence.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:76283220b80c373042fc62816d80e91c53695f13cbcbf68f8c1c9f155726d293 -size 1475 +oid sha256:c9f245dfab1391c5164759f09e639ad01467edb02eac51eceaf39133e401ce35 +size 1476 diff --git a/testdata/cassettes/TestDocumentSuite/TestPatchDocument.cassette.gz b/testdata/cassettes/TestDocumentSuite/TestPatchDocument.cassette.gz index 194a54e8..ff3279f6 100644 --- a/testdata/cassettes/TestDocumentSuite/TestPatchDocument.cassette.gz +++ b/testdata/cassettes/TestDocumentSuite/TestPatchDocument.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aa0384cc82dc04a7caa91936668b15786eb4eb83b68bf42b5cb37c8b771aff4d -size 1223 +oid sha256:be16624aeddb3ef96bb79da7bd735850716019ca0f5c73a522ad438a9fa21f07 +size 1225 diff --git a/testdata/cassettes/TestDocumentSuite/TestRemoveDocument.cassette.gz b/testdata/cassettes/TestDocumentSuite/TestRemoveDocument.cassette.gz index caf245da..aa461369 100644 --- a/testdata/cassettes/TestDocumentSuite/TestRemoveDocument.cassette.gz +++ b/testdata/cassettes/TestDocumentSuite/TestRemoveDocument.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c8972051ce5b69ac959676cd0f4a36b6735119833c9de03e4263a897242e7468 -size 1123 +oid sha256:09d7121f8e2dff02666d766462d2914d3e14ee4f63c101fc031a06d71c615b5d +size 1125 diff --git a/testdata/cassettes/TestListViews.cassette.gz b/testdata/cassettes/TestListViews.cassette.gz index 8dfc6645..8b8c4c3e 100644 --- a/testdata/cassettes/TestListViews.cassette.gz +++ b/testdata/cassettes/TestListViews.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2638ad18929802d3e4e79bfd4a588e7605b1bfc44406b59674429b3d9c79ee38 -size 1537 +oid sha256:b2a158de77c8eca98616d694e20962520cfc4b58ec1e21ace98a46c33510e557 +size 1542 diff --git a/testdata/cassettes/TestQueryLambdaSuite.cassette.gz b/testdata/cassettes/TestQueryLambdaSuite.cassette.gz index 8d013a1e..e9b944c1 100644 --- a/testdata/cassettes/TestQueryLambdaSuite.cassette.gz +++ b/testdata/cassettes/TestQueryLambdaSuite.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f5938696b33622ebb926caeafb7295149d40946f6241fbb0dc5d1e07b7a9c481 -size 6564 +oid sha256:1151284991ce978d9f0cd99ea80a0dc9073da093f8fb04ea3643a58e1f5f241b +size 7302 diff --git a/testdata/cassettes/TestRockClient_GetOrganization.cassette.gz b/testdata/cassettes/TestRockClient_GetOrganization.cassette.gz index d001473e..e2edf3c9 100644 --- a/testdata/cassettes/TestRockClient_GetOrganization.cassette.gz +++ b/testdata/cassettes/TestRockClient_GetOrganization.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:431f3a157ebfefb7b6e8509e9757fb8cfecd0b4940d9735fe764665c353e28e3 -size 2334 +oid sha256:713ac14a6235cde11febba37b9b7474b0d06712a295dbf5b8701067e18824f6f +size 2237 diff --git a/testdata/cassettes/TestRockClient_Ping.cassette.gz b/testdata/cassettes/TestRockClient_Ping.cassette.gz index c9c9ac5c..52c679f6 100644 --- a/testdata/cassettes/TestRockClient_Ping.cassette.gz +++ b/testdata/cassettes/TestRockClient_Ping.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:69af68fdcf0eb783eadd450715b09d9e72b78435f281c14ac547ef87487d8105 -size 856 +oid sha256:1bc7c9eaba656056791e6be5d25e093fcc7aaca34966c2c42a0b41d79f54225b +size 858 diff --git a/testdata/cassettes/TestRoleIntegration.cassette.gz b/testdata/cassettes/TestRoleIntegration.cassette.gz index 34d05a44..deab3821 100644 --- a/testdata/cassettes/TestRoleIntegration.cassette.gz +++ b/testdata/cassettes/TestRoleIntegration.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6ea36053a6ba9a0a1a621c255b804cf5c25735fbd7f7a9d2f6b77b575142d770 -size 3383 +oid sha256:526b8e25ea7c1e72dd49b986e2679797484a0872be7298e457d101727dc9e134 +size 3538 diff --git a/testdata/cassettes/TestSuiteAPIKey.cassette.gz b/testdata/cassettes/TestSuiteAPIKey.cassette.gz index 46296f76..1226790a 100644 --- a/testdata/cassettes/TestSuiteAPIKey.cassette.gz +++ b/testdata/cassettes/TestSuiteAPIKey.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8075536934d121dcd70a85cab29be6012dded18eb07c3bd9c54b3018e72d68b3 -size 1868 +oid sha256:370bf97e74d337c9bbe127b3b5986a370eff9f1f6584674f40322826fa4d8779 +size 1879 diff --git a/testdata/cassettes/TestSuiteWorkspace.cassette.gz b/testdata/cassettes/TestSuiteWorkspace.cassette.gz index 6db77caf..9289b08a 100644 --- a/testdata/cassettes/TestSuiteWorkspace.cassette.gz +++ b/testdata/cassettes/TestSuiteWorkspace.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a67f588fc266298998fe0843c20cf430066042c45c47d84771c9b7ae5092146b -size 2838 +oid sha256:3428e53c42c312b4652baae8ef92bf84c25fe469ebf8786f4287e5432b09cba2 +size 3138 diff --git a/testdata/cassettes/TestTemplate.cassette.gz b/testdata/cassettes/TestTemplate.cassette.gz index 02f5ca42..ad7dcaf2 100644 --- a/testdata/cassettes/TestTemplate.cassette.gz +++ b/testdata/cassettes/TestTemplate.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:26e3117ebb1f4f53e3385d4e29355b0119aa818a0ccb23039fdb163ea15f7e27 -size 2335 +oid sha256:ec12b3bd5bfc97943a06914e035b46fc2e54ab660fbcf3f7fa77715aa7d51496 +size 2236 diff --git a/testdata/cassettes/TestUserIntegration.cassette.gz b/testdata/cassettes/TestUserIntegration.cassette.gz index 5c456054..3f60bc06 100644 --- a/testdata/cassettes/TestUserIntegration.cassette.gz +++ b/testdata/cassettes/TestUserIntegration.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:180079538ea6f37100ebe6347d128dccb1e4b85dac66ccbe789a1a04861bac38 -size 7849 +oid sha256:aabb1e2be389bf18be017e7c81ac8896d65ad58e0d7db54a0ea7362749c36956 +size 7635 diff --git a/testdata/cassettes/TestViewCRUD.cassette.gz b/testdata/cassettes/TestViewCRUD.cassette.gz index b510a23e..cb60dbbe 100644 --- a/testdata/cassettes/TestViewCRUD.cassette.gz +++ b/testdata/cassettes/TestViewCRUD.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:71ad80d8c384546107837f4c93f6e16b1f66d67829fe1802c222bb84a22f6bf5 -size 1940 +oid sha256:408c75950b9194f6378245bc4278baf2f67b94de2e74d1a09dff9499159dd72d +size 1932 diff --git a/testdata/cassettes/TestVirtualInstance.cassette.gz b/testdata/cassettes/TestVirtualInstance.cassette.gz index 6b0d9907..cbd48250 100644 --- a/testdata/cassettes/TestVirtualInstance.cassette.gz +++ b/testdata/cassettes/TestVirtualInstance.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ef754f1377684e68e16a606ae99f9c4c79fc0968a7234157ad2a21c91696898d -size 107110 +oid sha256:78ad69b55b9c5694e15e949b299cdb43e02dbdb5e98fbb4ad8cb0651c54dd2d9 +size 113869 diff --git a/testdata/cassettes/TestVirtualInstanceAutoScaling.cassette.gz b/testdata/cassettes/TestVirtualInstanceAutoScaling.cassette.gz index c2bd9a70..bc3ed8e2 100644 --- a/testdata/cassettes/TestVirtualInstanceAutoScaling.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceAutoScaling.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8645b7c6c788b22f9d1358c31d4dbd2346765ce8ed39026f71d43e52c52fb2e3 -size 2095 +oid sha256:faf782eb341650b40e39de059ce1660ea0dd69fc8a3d23365a11b8b4442e8cb6 +size 2067 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration.cassette.gz index 946bde21..291aae4a 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:36e39674a4a58569462aaabb549480c2be72ab1a6938d54b0d792024f365d214 -size 16018 +oid sha256:f93791a6912e47a1b74cf15108cbe27ddd753c10893a5d291ab6b03e2615ac49 +size 14133 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_0_Create.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_0_Create.cassette.gz index 2c38f93d..94cd2723 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_0_Create.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_0_Create.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e6ab6333343c1c86a360318ed6c158abb61a5c0e5370d2412796a11d3493fac3 -size 1695 +oid sha256:da42e42bd4108750f9c6bdf4109c911d75f49b4a24b6a5d60bb9d929497c5a77 +size 1671 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_1_Collection.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_1_Collection.cassette.gz index 18151eba..4e41eab9 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_1_Collection.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_1_Collection.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e41376564d33dae7b685d1d89eff7f9ad540c4121cb711b05b1043a4c538aac1 -size 2185 +oid sha256:e0b45ee8a15c8b17f12cd3f3166e95a7fbae492c167ed0b43897353a6685c90f +size 2171 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_2_Mount.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_2_Mount.cassette.gz index 17fe4c9a..119c75cc 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_2_Mount.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_2_Mount.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:96c491fa584c5d4f8cb94d78b80cf021235f0e38f98ad37b0ea6aea9b56b3ab2 -size 1410 +oid sha256:56e6585c8079d8fdd960de91ddb093a6b14cb1c2c07b72d093bec838614fe3e1 +size 1409 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_3_Query.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_3_Query.cassette.gz index d5bb2b2c..2b8199e3 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_3_Query.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_3_Query.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8320550aa71bc8cc0878c0c07b680ccde94cbebf3b52fa1551beb8c1a8d1292c -size 1108211 +oid sha256:988d45a042a30fb1ab6d301a190a3a3c6cab52945e17779f242e70091c2ed7b9 +size 1107764 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_4_Unmount.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_4_Unmount.cassette.gz index 82362fb4..fce2396d 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_4_Unmount.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_4_Unmount.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:86d69fe275e020ccef41b3915946ea1722b262eb23d0e28eef7518cff8696ae3 -size 1878 +oid sha256:dd766b061913b8f37930a23626e9e5b226f0dce3638f17c3e5812c005d2bf421 +size 1874 diff --git a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_5_Suspend.cassette.gz b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_5_Suspend.cassette.gz index 68b0878a..94f251c7 100644 --- a/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_5_Suspend.cassette.gz +++ b/testdata/cassettes/TestVirtualInstanceIntegration/TestVirtualInstance_5_Suspend.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3a0e93612a41f788b87eb60b17302948b45985444f6a3a4a61c5e0a4c541f4bb -size 2472 +oid sha256:99737c0eff4a7989d786a53f1fc39b8f6a2d8ac1c9a13c16a1aa1f199fcaa857 +size 2420 diff --git a/testdata/cassettes/example_s3.cassette.gz b/testdata/cassettes/example_s3.cassette.gz index 1d71713c..fe4f3328 100644 --- a/testdata/cassettes/example_s3.cassette.gz +++ b/testdata/cassettes/example_s3.cassette.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ac7e7c7802cd6dc833632720521f3a530a711ee2e46fead856f35f7d6fa2da8f -size 12476 +oid sha256:68444063627027965971134184e61f76425c409b2e947b596305502aeabe5fff +size 11561 diff --git a/version.go b/version.go index 79f0ba85..1b968d9f 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package rockset // Version is the Rockset client version -const Version = "0.24.1" +const Version = "0.24.2"