From c8dbb2b2efb94af536d4e3748823015cc23c0965 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 14 Jun 2021 17:41:30 +0000 Subject: [PATCH] CodeGen from PR 14627 in Azure/azure-rest-api-specs Merge da9fd94161c9870017321a375ea7f68154734053 into 3b84377154da23b8b5a011a7c0344f36f56ced16 --- sdk/cosmosdb/arm-cosmosdb/README.md | 106 +- sdk/cosmosdb/arm-cosmosdb/package.json | 7 +- .../src/cosmosDBManagementClient.ts | 139 +- .../src/cosmosDBManagementClientContext.ts | 29 +- .../src/models/cassandraClustersMappers.ts | 157 - .../src/models/cassandraDataCentersMappers.ts | 153 - .../src/models/cassandraResourcesMappers.ts | 22 +- .../src/models/databaseAccountsMappers.ts | 22 +- .../src/models/gremlinResourcesMappers.ts | 22 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 6063 +++++++---------- .../arm-cosmosdb/src/models/mappers.ts | 1993 ++---- .../src/models/mongoDBResourcesMappers.ts | 22 +- .../src/models/notebookWorkspacesMappers.ts | 22 +- .../arm-cosmosdb/src/models/parameters.ts | 101 +- .../privateEndpointConnectionsMappers.ts | 22 +- .../src/models/privateLinkResourcesMappers.ts | 22 +- .../arm-cosmosdb/src/models/serviceMappers.ts | 153 - .../src/models/sqlResourcesMappers.ts | 22 +- .../src/models/tableResourcesMappers.ts | 22 +- .../src/operations/cassandraClusters.ts | 696 -- .../src/operations/cassandraDataCenters.ts | 431 -- .../src/operations/cassandraResources.ts | 685 +- .../src/operations/gremlinResources.ts | 681 +- .../arm-cosmosdb/src/operations/index.ts | 9 +- .../src/operations/mongoDBResources.ts | 685 +- .../operations/restorableDatabaseAccounts.ts | 118 +- .../restorableMongodbCollections.ts | 49 +- .../operations/restorableMongodbDatabases.ts | 48 +- .../operations/restorableMongodbResources.ts | 44 +- .../src/operations/restorableSqlContainers.ts | 44 +- .../src/operations/restorableSqlDatabases.ts | 48 +- .../src/operations/restorableSqlResources.ts | 44 +- .../arm-cosmosdb/src/operations/service.ts | 337 - .../src/operations/sqlResources.ts | 1766 ++--- .../src/operations/tableResources.ts | 330 +- 35 files changed, 4572 insertions(+), 10542 deletions(-) delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts diff --git a/sdk/cosmosdb/arm-cosmosdb/README.md b/sdk/cosmosdb/arm-cosmosdb/README.md index 49e09733ceb6..73e3db480ef7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/README.md +++ b/sdk/cosmosdb/arm-cosmosdb/README.md @@ -1,93 +1,101 @@ ## Azure CosmosDBManagementClient SDK for JavaScript -This package contains an isomorphic SDK for CosmosDBManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for CosmosDBManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-cosmosdb` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-cosmosdb +npm install --save @azure/arm-cosmosdb @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - client creation and get databaseAccounts as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and get databaseAccounts as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new CosmosDBManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - client.databaseAccounts.get(resourceGroupName, accountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new CosmosDBManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const accountName = "testaccountName"; +client.databaseAccounts.get(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get databaseAccounts as an example written in JavaScript. +#### browser - Authentication, client creation, and get databaseAccounts as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-cosmosdb sample - - + diff --git a/sdk/cosmosdb/arm-cosmosdb/package.json b/sdk/cosmosdb/arm-cosmosdb/package.json index 71ccc5cc4a9e..2e0d0751d3ae 100644 --- a/sdk/cosmosdb/arm-cosmosdb/package.json +++ b/sdk/cosmosdb/arm-cosmosdb/package.json @@ -4,8 +4,9 @@ "description": "CosmosDBManagementClient Library with typescript type definitions for node.js and browser.", "version": "13.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/cosmosDBManagementClient.js", "types": "./esm/cosmosDBManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 21d46d89a9ef..bb1862208b62 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -8,12 +8,13 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; -import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { CosmosDBManagementClientContext } from "./cosmosDBManagementClientContext"; + class CosmosDBManagementClient extends CosmosDBManagementClientContext { // Operation groups databaseAccounts: operations.DatabaseAccounts; @@ -34,31 +35,29 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { tableResources: operations.TableResources; cassandraResources: operations.CassandraResources; gremlinResources: operations.GremlinResources; - restorableDatabaseAccounts: operations.RestorableDatabaseAccounts; notebookWorkspaces: operations.NotebookWorkspaces; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; + restorableDatabaseAccounts: operations.RestorableDatabaseAccounts; restorableSqlDatabases: operations.RestorableSqlDatabases; restorableSqlContainers: operations.RestorableSqlContainers; restorableSqlResources: operations.RestorableSqlResources; restorableMongodbDatabases: operations.RestorableMongodbDatabases; restorableMongodbCollections: operations.RestorableMongodbCollections; restorableMongodbResources: operations.RestorableMongodbResources; - cassandraClusters: operations.CassandraClusters; - cassandraDataCenters: operations.CassandraDataCenters; - privateLinkResources: operations.PrivateLinkResources; - privateEndpointConnections: operations.PrivateEndpointConnections; - service: operations.Service; /** * Initializes a new instance of the CosmosDBManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - subscriptionId: string, - options?: Models.CosmosDBManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.CosmosDBManagementClientOptions) { super(credentials, subscriptionId, options); this.databaseAccounts = new operations.DatabaseAccounts(this); this.operations = new operations.Operations(this); @@ -78,128 +77,20 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { this.tableResources = new operations.TableResources(this); this.cassandraResources = new operations.CassandraResources(this); this.gremlinResources = new operations.GremlinResources(this); - this.restorableDatabaseAccounts = new operations.RestorableDatabaseAccounts(this); this.notebookWorkspaces = new operations.NotebookWorkspaces(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.restorableDatabaseAccounts = new operations.RestorableDatabaseAccounts(this); this.restorableSqlDatabases = new operations.RestorableSqlDatabases(this); this.restorableSqlContainers = new operations.RestorableSqlContainers(this); this.restorableSqlResources = new operations.RestorableSqlResources(this); this.restorableMongodbDatabases = new operations.RestorableMongodbDatabases(this); this.restorableMongodbCollections = new operations.RestorableMongodbCollections(this); this.restorableMongodbResources = new operations.RestorableMongodbResources(this); - this.cassandraClusters = new operations.CassandraClusters(this); - this.cassandraDataCenters = new operations.CassandraDataCenters(this); - this.privateLinkResources = new operations.PrivateLinkResources(this); - this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); - this.service = new operations.Service(this); - } - - /** - * List Cosmos DB locations and their properties - * @param [options] The optional parameters - * @returns Promise - */ - locationList(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - locationList(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - locationList( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - locationList( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.sendOperationRequest( - { - options - }, - locationListOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of an existing Cosmos DB location - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param [options] The optional parameters - * @returns Promise - */ - locationGet( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param callback The callback - */ - locationGet(location: string, callback: msRest.ServiceCallback): void; - /** - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param options The optional parameters - * @param callback The callback - */ - locationGet( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - locationGet( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.sendOperationRequest( - { - location, - options - }, - locationGetOperationSpec, - callback - ) as Promise; } } // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const locationListOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.LocationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const locationGetOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.LocationGetResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; export { CosmosDBManagementClient, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index d86495da1fe1..22944136c4ab 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -10,31 +10,33 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-cosmosdb"; const packageVersion = "13.0.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the CosmosDBManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - subscriptionId: string, - options?: Models.CosmosDBManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.CosmosDBManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { @@ -47,8 +49,8 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli super(credentials, options); - this.apiVersion = "2021-04-01-preview"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-06-15'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -58,10 +60,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts deleted file mode 100644 index 9e67fdfb9e8f..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BackupResource, - BackupResourceProperties, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - Certificate, - CloudError, - ClusterKey, - ClusterNodeStatus, - ClusterNodeStatusNodesItem, - ClusterResource, - ClusterResourceProperties, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - ListBackups, - ListClusters, - Location, - LocationGetResult, - LocationProperties, - ManagedServiceIdentity, - ManagedServiceIdentityUserAssignedIdentitiesValue, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - Permission, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RegionalServiceResource, - RepairPostBody, - Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, - SqlRoleAssignmentGetResults, - SqlRoleDefinitionGetResults, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts deleted file mode 100644 index d57558e9a0f3..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BackupResource, - BackupResourceProperties, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - Certificate, - CloudError, - ClusterKey, - ClusterResource, - ClusterResourceProperties, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - ListDataCenters, - Location, - LocationGetResult, - LocationProperties, - ManagedServiceIdentity, - ManagedServiceIdentityUserAssignedIdentitiesValue, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - Permission, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RegionalServiceResource, - Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, - SqlRoleAssignmentGetResults, - SqlRoleDefinitionGetResults, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index c591def4958d..74398ce35f03 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -34,11 +34,8 @@ export { CassandraTableGetResults, CassandraTableListResult, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -48,14 +45,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -73,8 +64,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +90,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +103,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index f649a0bbf516..daf8a890c4d4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +32,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -47,7 +44,6 @@ export { CreateUpdateOptions, DatabaseAccountConnectionString, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseAccountListConnectionStringsResult, DatabaseAccountListKeysResult, @@ -56,11 +52,6 @@ export { DatabaseAccountsListResult, DatabaseAccountUpdateParameters, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicies, @@ -80,8 +71,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, Metric, @@ -118,14 +107,9 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, RegionForOnlineOffline, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -137,8 +121,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index 6729f9193f42..c950ad92168e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +32,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +43,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -73,8 +64,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +90,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +103,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index 363ffc4e526a..957f3666b2df 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -11,6 +11,53 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Identity for the resource. + */ +export interface ManagedServiceIdentity { + /** + * The principal id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes + * both an implicitly created identity and a set of user assigned identities. The type 'None' + * will remove any identities from the service. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + */ + type?: ResourceIdentityType; + /** + * The list of user identities associated with resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; +} + /** * IpAddressOrRange object */ @@ -186,7 +233,8 @@ export interface Resource extends BaseResource { * and a location * @summary Proxy Resource */ -export interface ProxyResource extends Resource {} +export interface ProxyResource extends Resource { +} /** * A private endpoint connection @@ -221,6 +269,16 @@ export interface ApiProperties { serverVersion?: ServerVersion; } +/** + * Analytical storage specific properties. + */ +export interface AnalyticalStorageConfiguration { + /** + * Possible values include: 'WellDefined', 'FullFidelity' + */ + schemaType?: AnalyticalStorageSchemaType; +} + /** * Specific Databases to restore. */ @@ -259,13 +317,30 @@ export interface RestoreParameters { databasesToRestore?: DatabaseRestoreResource[]; } +/** + * The object representing the state of the migration between the backup policies. + */ +export interface BackupPolicyMigrationState { + /** + * Describes the status of migration between backup policy types. Possible values include: + * 'Invalid', 'InProgress', 'Completed', 'Failed' + */ + status?: BackupPolicyMigrationStatus; + /** + * Describes the target backup policy type of the backup policy migration. Possible values + * include: 'Periodic', 'Continuous' + */ + targetType?: BackupPolicyType; + /** + * Time at which the backup policy migration started (ISO-8601 format). + */ + startTime?: Date; +} + /** * Contains the possible cases for BackupPolicy. */ -export type BackupPolicyUnion = - | BackupPolicy - | PeriodicModeBackupPolicy - | ContinuousModeBackupPolicy; +export type BackupPolicyUnion = BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; /** * The object representing the policy for taking backups on an account. @@ -275,6 +350,10 @@ export interface BackupPolicy { * Polymorphic Discriminator */ type: "BackupPolicy"; + /** + * The object representing the state of the migration between the backup policies. + */ + migrationState?: BackupPolicyMigrationState; } /** @@ -360,7 +439,6 @@ export interface ARMResourceProperties extends BaseResource { */ location?: string; tags?: { [propertyName: string]: string }; - identity?: ManagedServiceIdentity; } /** @@ -373,6 +451,7 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * 'GlobalDocumentDB'. */ kind?: DatabaseAccountKind; + identity?: ManagedServiceIdentity; provisioningState?: string; /** * The connection endpoint for the Cosmos DB database account. @@ -481,6 +560,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; /** * A unique identifier assigned to the database account * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -512,6 +595,11 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * The system meta data relating to this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -571,7 +659,8 @@ export interface OptionsResource { /** * An interface representing SqlDatabaseGetPropertiesOptions. */ -export interface SqlDatabaseGetPropertiesOptions extends OptionsResource {} +export interface SqlDatabaseGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB SQL database. @@ -811,7 +900,8 @@ export interface SqlContainerGetPropertiesResource { /** * An interface representing SqlContainerGetPropertiesOptions. */ -export interface SqlContainerGetPropertiesOptions extends OptionsResource {} +export interface SqlContainerGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB container. @@ -970,7 +1060,8 @@ export interface MongoDBDatabaseGetPropertiesResource { /** * An interface representing MongoDBDatabaseGetPropertiesOptions. */ -export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource {} +export interface MongoDBDatabaseGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB MongoDB database. @@ -1059,7 +1150,8 @@ export interface MongoDBCollectionGetPropertiesResource { /** * An interface representing MongoDBCollectionGetPropertiesOptions. */ -export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource {} +export interface MongoDBCollectionGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB MongoDB collection. @@ -1098,7 +1190,8 @@ export interface TableGetPropertiesResource { /** * An interface representing TableGetPropertiesOptions. */ -export interface TableGetPropertiesOptions extends OptionsResource {} +export interface TableGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Table. @@ -1137,7 +1230,8 @@ export interface CassandraKeyspaceGetPropertiesResource { /** * An interface representing CassandraKeyspaceGetPropertiesOptions. */ -export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource {} +export interface CassandraKeyspaceGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Cassandra keyspace. @@ -1244,7 +1338,8 @@ export interface CassandraTableGetPropertiesResource { /** * An interface representing CassandraTableGetPropertiesOptions. */ -export interface CassandraTableGetPropertiesOptions extends OptionsResource {} +export interface CassandraTableGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Cassandra table. @@ -1283,7 +1378,8 @@ export interface GremlinDatabaseGetPropertiesResource { /** * An interface representing GremlinDatabaseGetPropertiesOptions. */ -export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource {} +export interface GremlinDatabaseGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Gremlin database. @@ -1345,7 +1441,8 @@ export interface GremlinGraphGetPropertiesResource { /** * An interface representing GremlinGraphGetPropertiesOptions. */ -export interface GremlinGraphGetPropertiesOptions extends OptionsResource {} +export interface GremlinGraphGetPropertiesOptions extends OptionsResource { +} /** * An Azure Cosmos DB Gremlin graph. @@ -1389,55 +1486,6 @@ export interface RegionForOnlineOffline { region: string; } -/** - * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. - */ -export interface ManagedServiceIdentityUserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly clientId?: string; -} - -/** - * Identity for the resource. - */ -export interface ManagedServiceIdentity { - /** - * The principal id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - /** - * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes - * both an implicitly created identity and a set of user assigned identities. The type 'None' - * will remove any identities from the service. Possible values include: 'SystemAssigned', - * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - */ - type?: ResourceIdentityType; - /** - * The list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { - [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue; - }; -} - /** * The resource model definition for a ARM proxy resource. It will have everything other than * required location and tags @@ -1578,21 +1626,16 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { } /** - * Contains the possible cases for DatabaseAccountCreateUpdateProperties. - */ -export type DatabaseAccountCreateUpdatePropertiesUnion = - | DatabaseAccountCreateUpdateProperties - | DefaultRequestDatabaseAccountCreateUpdateProperties - | RestoreReqeustDatabaseAccountCreateUpdateProperties; - -/** - * Properties to create and update Azure Cosmos DB database accounts. + * Parameters to create and update Cosmos DB database accounts. */ -export interface DatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { /** - * Polymorphic Discriminator + * Indicates the type of database account. This can only be set at database account creation. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: + * 'GlobalDocumentDB'. */ - createMode: "DatabaseAccountCreateUpdateProperties"; + kind?: DatabaseAccountKind; + identity?: ManagedServiceIdentity; /** * The consistency policy for the Cosmos DB account. */ @@ -1668,6 +1711,15 @@ export interface DatabaseAccountCreateUpdateProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; + /** + * Enum to indicate the mode of account creation. Possible values include: 'Default', 'Restore'. + * Default value: 'Default'. + */ + createMode?: CreateMode; /** * The object representing the policy for taking backups on an account. */ @@ -1685,16 +1737,27 @@ export interface DatabaseAccountCreateUpdateProperties { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for + * authentication. + */ + disableLocalAuth?: boolean; + /** + * Parameters to indicate the information about the restore. + */ + restoreParameters?: RestoreParameters; } /** - * Properties for non-restore Azure Cosmos DB database account requests. + * Parameters for patching Azure Cosmos DB database account properties. */ -export interface DefaultRequestDatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountUpdateParameters { + tags?: { [propertyName: string]: string }; /** - * Polymorphic Discriminator + * The location of the resource group to which the resource belongs. */ - createMode: "Default"; + location?: string; + identity?: ManagedServiceIdentity; /** * The consistency policy for the Cosmos DB account. */ @@ -1702,7 +1765,7 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { /** * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - locations: Location[]; + locations?: Location[]; /** * List of IpRules. */ @@ -1770,6 +1833,10 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; + /** + * Analytical storage specific properties. + */ + analyticalStorageConfiguration?: AnalyticalStorageConfiguration; /** * The object representing the policy for taking backups on an account. */ @@ -1787,323 +1854,105 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for + * authentication. + */ + disableLocalAuth?: boolean; } /** - * Properties to restore Azure Cosmos DB database account. + * The read-only access keys for the given database account. */ -export interface RestoreReqeustDatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountListReadOnlyKeysResult { /** - * Polymorphic Discriminator + * Base 64 encoded value of the primary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createMode: "Restore"; + readonly primaryReadonlyMasterKey?: string; /** - * The consistency policy for the Cosmos DB account. + * Base 64 encoded value of the secondary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - consistencyPolicy?: ConsistencyPolicy; + readonly secondaryReadonlyMasterKey?: string; +} + +/** + * The access keys for the given database account. + */ +export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { /** - * An array that contains the georeplication locations enabled for the Cosmos DB account. + * Base 64 encoded value of the primary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - locations: Location[]; + readonly primaryMasterKey?: string; /** - * List of IpRules. + * Base 64 encoded value of the secondary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ipRules?: IpAddressOrRange[]; + readonly secondaryMasterKey?: string; +} + +/** + * Connection string for the Cosmos DB account + */ +export interface DatabaseAccountConnectionString { /** - * Flag to indicate whether to enable/disable Virtual Network ACL rules. + * Value of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isVirtualNetworkFilterEnabled?: boolean; + readonly connectionString?: string; /** - * Enables automatic failover of the write region in the rare event that the region is - * unavailable due to an outage. Automatic failover will result in a new write region for the - * account and is chosen based on the failover priorities configured for the account. + * Description of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enableAutomaticFailover?: boolean; + readonly description?: string; +} + +/** + * The connection strings for the given database account. + */ +export interface DatabaseAccountListConnectionStringsResult { /** - * List of Cosmos DB capabilities for the account + * An array that contains the connection strings for the Cosmos DB account. */ - capabilities?: Capability[]; + connectionStrings?: DatabaseAccountConnectionString[]; +} + +/** + * Parameters to regenerate the keys within the database account. + */ +export interface DatabaseAccountRegenerateKeyParameters { /** - * List of Virtual Network ACL rules configured for the Cosmos DB account. + * The access key to regenerate. Possible values include: 'primary', 'secondary', + * 'primaryReadonly', 'secondaryReadonly' */ - virtualNetworkRules?: VirtualNetworkRule[]; + keyKind: KeyKind; +} + +/** + * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is + * required, but not both. + */ +export interface ThroughputSettingsResource { /** - * Enables the account to write in multiple locations + * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings + * is required, but not both. */ - enableMultipleWriteLocations?: boolean; + throughput?: number; /** - * Enables the cassandra connector on the Cosmos DB C* account + * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings + * is required, but not both. */ - enableCassandraConnector?: boolean; + autoscaleSettings?: AutoscaleSettingsResource; /** - * The cassandra connector offer type for the Cosmos DB database C* account. Possible values - * include: 'Small' + * The minimum throughput of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - connectorOffer?: ConnectorOffer; + readonly minimumThroughput?: string; /** - * Disable write operations on metadata resources (databases, containers, throughput) via account - * keys - */ - disableKeyBasedMetadataWriteAccess?: boolean; - /** - * The URI of the key vault - */ - keyVaultKeyUri?: string; - /** - * The default identity for accessing key vault used in features like customer managed keys. The - * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", - * "SystemAssignedIdentity" and more. - */ - defaultIdentity?: string; - /** - * Whether requests from Public Network are allowed. Possible values include: 'Enabled', - * 'Disabled' - */ - publicNetworkAccess?: PublicNetworkAccess; - /** - * Flag to indicate whether Free Tier is enabled. - */ - enableFreeTier?: boolean; - /** - * API specific properties. Currently, supported only for MongoDB API. - */ - apiProperties?: ApiProperties; - /** - * Flag to indicate whether to enable storage analytics. - */ - enableAnalyticalStorage?: boolean; - /** - * The object representing the policy for taking backups on an account. - */ - backupPolicy?: BackupPolicyUnion; - /** - * The CORS policy for the Cosmos DB database account. - */ - cors?: CorsPolicy[]; - /** - * Indicates what services are allowed to bypass firewall checks. Possible values include: - * 'None', 'AzureServices' - */ - networkAclBypass?: NetworkAclBypass; - /** - * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. - */ - networkAclBypassResourceIds?: string[]; - /** - * Parameters to indicate the information about the restore. - */ - restoreParameters?: RestoreParameters; -} - -/** - * Parameters to create and update Cosmos DB database accounts. - */ -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { - /** - * Indicates the type of database account. This can only be set at database account creation. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: - * 'GlobalDocumentDB'. - */ - kind?: DatabaseAccountKind; - properties: DatabaseAccountCreateUpdatePropertiesUnion; -} - -/** - * Parameters for patching Azure Cosmos DB database account properties. - */ -export interface DatabaseAccountUpdateParameters { - tags?: { [propertyName: string]: string }; - /** - * The location of the resource group to which the resource belongs. - */ - location?: string; - /** - * The consistency policy for the Cosmos DB account. - */ - consistencyPolicy?: ConsistencyPolicy; - /** - * An array that contains the georeplication locations enabled for the Cosmos DB account. - */ - locations?: Location[]; - /** - * List of IpRules. - */ - ipRules?: IpAddressOrRange[]; - /** - * Flag to indicate whether to enable/disable Virtual Network ACL rules. - */ - isVirtualNetworkFilterEnabled?: boolean; - /** - * Enables automatic failover of the write region in the rare event that the region is - * unavailable due to an outage. Automatic failover will result in a new write region for the - * account and is chosen based on the failover priorities configured for the account. - */ - enableAutomaticFailover?: boolean; - /** - * List of Cosmos DB capabilities for the account - */ - capabilities?: Capability[]; - /** - * List of Virtual Network ACL rules configured for the Cosmos DB account. - */ - virtualNetworkRules?: VirtualNetworkRule[]; - /** - * Enables the account to write in multiple locations - */ - enableMultipleWriteLocations?: boolean; - /** - * Enables the cassandra connector on the Cosmos DB C* account - */ - enableCassandraConnector?: boolean; - /** - * The cassandra connector offer type for the Cosmos DB database C* account. Possible values - * include: 'Small' - */ - connectorOffer?: ConnectorOffer; - /** - * Disable write operations on metadata resources (databases, containers, throughput) via account - * keys - */ - disableKeyBasedMetadataWriteAccess?: boolean; - /** - * The URI of the key vault - */ - keyVaultKeyUri?: string; - /** - * The default identity for accessing key vault used in features like customer managed keys. The - * default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", - * "SystemAssignedIdentity" and more. - */ - defaultIdentity?: string; - /** - * Whether requests from Public Network are allowed. Possible values include: 'Enabled', - * 'Disabled' - */ - publicNetworkAccess?: PublicNetworkAccess; - /** - * Flag to indicate whether Free Tier is enabled. - */ - enableFreeTier?: boolean; - /** - * API specific properties. Currently, supported only for MongoDB API. - */ - apiProperties?: ApiProperties; - /** - * Flag to indicate whether to enable storage analytics. - */ - enableAnalyticalStorage?: boolean; - /** - * The object representing the policy for taking backups on an account. - */ - backupPolicy?: BackupPolicyUnion; - /** - * The CORS policy for the Cosmos DB database account. - */ - cors?: CorsPolicy[]; - /** - * Indicates what services are allowed to bypass firewall checks. Possible values include: - * 'None', 'AzureServices' - */ - networkAclBypass?: NetworkAclBypass; - /** - * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. - */ - networkAclBypassResourceIds?: string[]; - identity?: ManagedServiceIdentity; -} - -/** - * The read-only access keys for the given database account. - */ -export interface DatabaseAccountListReadOnlyKeysResult { - /** - * Base 64 encoded value of the primary read-only key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly primaryReadonlyMasterKey?: string; - /** - * Base 64 encoded value of the secondary read-only key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly secondaryReadonlyMasterKey?: string; -} - -/** - * The access keys for the given database account. - */ -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { - /** - * Base 64 encoded value of the primary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly primaryMasterKey?: string; - /** - * Base 64 encoded value of the secondary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly secondaryMasterKey?: string; -} - -/** - * Connection string for the Cosmos DB account - */ -export interface DatabaseAccountConnectionString { - /** - * Value of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly connectionString?: string; - /** - * Description of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; -} - -/** - * The connection strings for the given database account. - */ -export interface DatabaseAccountListConnectionStringsResult { - /** - * An array that contains the connection strings for the Cosmos DB account. - */ - connectionStrings?: DatabaseAccountConnectionString[]; -} - -/** - * Parameters to regenerate the keys within the database account. - */ -export interface DatabaseAccountRegenerateKeyParameters { - /** - * The access key to regenerate. Possible values include: 'primary', 'secondary', - * 'primaryReadonly', 'secondaryReadonly' - */ - keyKind: KeyKind; -} - -/** - * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is - * required, but not both. - */ -export interface ThroughputSettingsResource { - /** - * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings - * is required, but not both. - */ - throughput?: number; - /** - * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings - * is required, but not both. - */ - autoscaleSettings?: AutoscaleSettingsResource; - /** - * The minimum throughput of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly minimumThroughput?: string; - /** - * The throughput replace is pending - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The throughput replace is pending + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly offerReplacePending?: string; } @@ -2862,10 +2711,6 @@ export interface PeriodicModeProperties { * An integer representing the time (in hours) that each backup is retained */ backupRetentionIntervalInHours?: number; - /** - * Enum to indicate type of backup residency. Possible values include: 'Geo', 'Local', 'Zone' - */ - backupStorageRedundancy?: BackupStorageRedundancy; } /** @@ -2876,6 +2721,10 @@ export interface PeriodicModeBackupPolicy { * Polymorphic Discriminator */ type: "Periodic"; + /** + * The object representing the state of the migration between the backup policies. + */ + migrationState?: BackupPolicyMigrationState; /** * Configuration values for periodic mode backup */ @@ -2890,143 +2739,10 @@ export interface ContinuousModeBackupPolicy { * Polymorphic Discriminator */ type: "Continuous"; -} - -/** - * Properties of the regional restorable account. - */ -export interface RestorableLocationResource { /** - * The location of the regional restorable account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The object representing the state of the migration between the backup policies. */ - readonly locationName?: string; - /** - * The instance id of the regional restorable account. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly regionalDatabaseAccountInstanceId?: string; - /** - * The creation time of the regional restorable database account (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; - /** - * The time at which the regional restorable database account has been deleted (ISO-8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly deletionTime?: Date; -} - -/** - * A Azure Cosmos DB restorable database account. - */ -export interface RestorableDatabaseAccountGetResult { - /** - * The name of the global database account - */ - accountName?: string; - /** - * The creation time of the restorable database account (ISO-8601 format). - */ - creationTime?: Date; - /** - * The time at which the restorable database account has been deleted (ISO-8601 format). - */ - deletionTime?: Date; - /** - * The API type of the restorable database account. Possible values include: 'MongoDB', - * 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly apiType?: ApiType; - /** - * List of regions where the of the database account can be restored from. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorableLocations?: RestorableLocationResource[]; - /** - * The unique resource identifier of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The name of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The type of Azure resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The location of the resource group to which the resource belongs. - */ - location?: string; -} - -/** - * Cosmos DB location metadata - */ -export interface LocationProperties { - /** - * The current status of location in Azure. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: string; - /** - * Flag indicating whether the location supports availability zones or not. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly supportsAvailabilityZone?: boolean; - /** - * Flag indicating whether the location is residency sensitive. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isResidencyRestricted?: boolean; - /** - * The properties of available backup storage redundancies. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly backupStorageRedundancies?: BackupStorageRedundancy[]; -} - -/** - * Cosmos DB location get result - */ -export interface LocationGetResult extends ARMProxyResource { - /** - * Cosmos DB location metadata - */ - properties?: LocationProperties; -} - -/** - * Properties of the regional restorable account. - */ -export interface ContinuousBackupRestoreLocation { - /** - * The name of the continuous backup restore location. - */ - location?: string; -} - -/** - * Continuous backup description. - */ -export interface ContinuousBackupInformation { - /** - * The latest restorable timestamp for a resource. - */ - latestRestorableTimestamp?: string; -} - -/** - * Backup information of a resource. - */ -export interface BackupInformation { - continuousBackupInformation?: ContinuousBackupInformation; + migrationState?: BackupPolicyMigrationState; } /** @@ -3060,7 +2776,8 @@ export interface AzureEntityResource extends Resource { /** * Parameters to create a notebook workspace resource */ -export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource {} +export interface NotebookWorkspaceCreateUpdateParameters extends ARMProxyResource { +} /** * A notebook workspace resource @@ -3092,7 +2809,28 @@ export interface NotebookWorkspaceConnectionInfoResult { * Specifies the endpoint of Notebook server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly notebookServerEndpoint?: string; + readonly notebookServerEndpoint?: string; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ARMProxyResource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource required zone names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredZoneNames?: string[]; } /** @@ -3186,343 +2924,78 @@ export interface SqlRoleAssignmentCreateUpdateParameters { /** * An Azure Cosmos DB Role Assignment */ -export interface SqlRoleAssignmentGetResults extends ARMProxyResource { - /** - * The unique identifier for the associated Role Definition. - */ - roleDefinitionId?: string; - /** - * The data plane resource path for which access is being granted through this Role Assignment. - */ - scope?: string; - /** - * The unique identifier for the associated AAD principal in the AAD graph to which access is - * being granted through this Role Assignment. Tenant ID for the principal is inferred using the - * tenant associated with the subscription. - */ - principalId?: string; -} - -/** - * Cosmos DB SQL database resource object - */ -export interface RestorableSqlDatabasePropertiesResourceDatabase { - /** - * Name of the Cosmos DB SQL database - */ - id: string; - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * A system generated property that denotes the last updated timestamp of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _ts?: number; - /** - * A system generated property representing the resource etag required for optimistic concurrency - * control. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _etag?: string; - /** - * A system generated property that specified the addressable path of the collections resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _colls?: string; - /** - * A system generated property that specifies the addressable path of the users resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _users?: string; - /** - * A system generated property that specifies the addressable path of the database resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _self?: string; -} - -/** - * The resource of an Azure Cosmos DB SQL database event - */ -export interface RestorableSqlDatabasePropertiesResource { - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * The operation type of this database event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationType?: OperationType; - /** - * The time when this database event happened. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly eventTimestamp?: string; - /** - * The name of the SQL database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerId?: string; - /** - * The resource ID of the SQL database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerResourceId?: string; - /** - * Cosmos DB SQL database resource object - */ - database?: RestorableSqlDatabasePropertiesResourceDatabase; -} - -/** - * An Azure Cosmos DB SQL database event - */ -export interface RestorableSqlDatabaseGetResult { - /** - * The resource of an Azure Cosmos DB SQL database event - */ - resource?: RestorableSqlDatabasePropertiesResource; - /** - * The unique resource Identifier of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The name of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The type of Azure resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - -/** - * Cosmos DB SQL container resource object - */ -export interface RestorableSqlContainerPropertiesResourceContainer { - /** - * Name of the Cosmos DB SQL container - */ - id: string; - /** - * The configuration of the indexing policy. By default, the indexing is automatic for all - * document paths within the container - */ - indexingPolicy?: IndexingPolicy; - /** - * The configuration of the partition key to be used for partitioning data into multiple - * partitions - */ - partitionKey?: ContainerPartitionKey; - /** - * Default time to live - */ - defaultTtl?: number; - /** - * The unique key policy configuration for specifying uniqueness constraints on documents in the - * collection in the Azure Cosmos DB service. - */ - uniqueKeyPolicy?: UniqueKeyPolicy; - /** - * The conflict resolution policy for the container. - */ - conflictResolutionPolicy?: ConflictResolutionPolicy; - /** - * Analytical TTL. - */ - analyticalStorageTtl?: number; - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * A system generated property that denotes the last updated timestamp of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _ts?: number; - /** - * A system generated property representing the resource etag required for optimistic concurrency - * control. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _etag?: string; - /** - * A system generated property that specifies the addressable path of the container resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _self?: string; -} - -/** - * The resource of an Azure Cosmos DB SQL container event - */ -export interface RestorableSqlContainerPropertiesResource { - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * The operation type of this container event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationType?: OperationType; - /** - * The when this container event happened. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly eventTimestamp?: string; - /** - * The name of this SQL container. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerId?: string; - /** - * The resource ID of this SQL container. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly ownerResourceId?: string; - /** - * Cosmos DB SQL container resource object - */ - container?: RestorableSqlContainerPropertiesResourceContainer; -} - -/** - * An Azure Cosmos DB SQL container event - */ -export interface RestorableSqlContainerGetResult { - /** - * The resource of an Azure Cosmos DB SQL container event - */ - resource?: RestorableSqlContainerPropertiesResource; - /** - * The unique resource Identifier of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The name of the ARM resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The type of Azure resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - -/** - * The resource of an Azure Cosmos DB MongoDB database event - */ -export interface RestorableMongodbDatabasePropertiesResource { - /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly _rid?: string; - /** - * The operation type of this database event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationType?: OperationType; +export interface SqlRoleAssignmentGetResults extends ARMProxyResource { /** - * The time when this database event happened. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique identifier for the associated Role Definition. */ - readonly eventTimestamp?: string; + roleDefinitionId?: string; /** - * The name of this MongoDB database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The data plane resource path for which access is being granted through this Role Assignment. */ - readonly ownerId?: string; + scope?: string; /** - * The resource ID of this MongoDB database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The unique identifier for the associated AAD principal in the AAD graph to which access is + * being granted through this Role Assignment. Tenant ID for the principal is inferred using the + * tenant associated with the subscription. */ - readonly ownerResourceId?: string; + principalId?: string; } /** - * An Azure Cosmos DB MongoDB database event + * Properties of the regional restorable account. */ -export interface RestorableMongodbDatabaseGetResult { +export interface RestorableLocationResource { /** - * The resource of an Azure Cosmos DB MongoDB database event + * The location of the regional restorable account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource?: RestorableMongodbDatabasePropertiesResource; + readonly locationName?: string; /** - * The unique resource Identifier of the ARM resource. + * The instance id of the regional restorable account. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly regionalDatabaseAccountInstanceId?: string; /** - * The name of the ARM resource. + * The creation time of the regional restorable database account (ISO-8601 format). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly creationTime?: Date; /** - * The type of Azure resource. + * The time at which the regional restorable database account has been deleted (ISO-8601 format). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly deletionTime?: Date; } /** - * The resource of an Azure Cosmos DB MongoDB collection event + * A Azure Cosmos DB restorable database account. */ -export interface RestorableMongodbCollectionPropertiesResource { +export interface RestorableDatabaseAccountGetResult { /** - * A system generated property. A unique identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the global database account */ - readonly _rid?: string; + accountName?: string; /** - * The operation type of this collection event. Possible values include: 'Create', 'Replace', - * 'Delete', 'SystemOperation' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The creation time of the restorable database account (ISO-8601 format). */ - readonly operationType?: OperationType; + creationTime?: Date; /** - * The time when this collection event happened. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the restorable database account has been deleted (ISO-8601 format). */ - readonly eventTimestamp?: string; + deletionTime?: Date; /** - * The name of this MongoDB collection. + * The API type of the restorable database account. Possible values include: 'MongoDB', + * 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly ownerId?: string; + readonly apiType?: ApiType; /** - * The resource ID of this MongoDB collection. + * List of regions where the of the database account can be restored from. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly ownerResourceId?: string; -} - -/** - * An Azure Cosmos DB MongoDB collection event - */ -export interface RestorableMongodbCollectionGetResult { - /** - * The resource of an Azure Cosmos DB MongoDB collection event - */ - resource?: RestorableMongodbCollectionPropertiesResource; + readonly restorableLocations?: RestorableLocationResource[]; /** - * The unique resource Identifier of the ARM resource. + * The unique resource identifier of the ARM resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; @@ -3536,458 +3009,375 @@ export interface RestorableMongodbCollectionGetResult { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; -} - -/** - * An interface representing SeedNode. - */ -export interface SeedNode { - /** - * IP address of this seed node. - */ - ipAddress?: string; -} - -/** - * An interface representing Certificate. - */ -export interface Certificate { /** - * PEM formatted public key. + * The location of the resource group to which the resource belongs. */ - pem?: string; + location?: string; } /** - * Properties of a managed Cassandra cluster. + * Cosmos DB SQL database resource object */ -export interface ClusterResourceProperties { - /** - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - */ - provisioningState?: ManagedCassandraProvisioningState; - /** - * To create an empty cluster, omit this field or set it to null. To restore a backup into a new - * cluster, set this field to the resource id of the backup. - */ - restoreFromBackupId?: string; +export interface RestorableSqlDatabasePropertiesResourceDatabase { /** - * Resource id of a subnet that this cluster's management service should have its network - * interface attached to. The subnet must be routable to all subnets that will be delegated to - * data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/' + * Name of the Cosmos DB SQL database */ - delegatedManagementSubnetId?: string; + id: string; /** - * Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, - * the cluster may take some time to migrate to the new version. + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - cassandraVersion?: string; + readonly _rid?: string; /** - * If you need to set the clusterName property in cassandra.yaml to something besides the - * resource name of the cluster, set the value to use on this property. + * A system generated property that denotes the last updated timestamp of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - clusterNameOverride?: string; + readonly _ts?: number; /** - * Which authentication method Cassandra should use to authenticate clients. 'None' turns off - * authentication, so should not be used except in emergencies. 'Cassandra' is the default - * password based authentication. The default is 'Cassandra'. Possible values include: 'None', - * 'Cassandra' + * A system generated property representing the resource etag required for optimistic concurrency + * control. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - authenticationMethod?: AuthenticationMethod; + readonly _etag?: string; /** - * Initial password for clients connecting as admin to the cluster. Should be changed after - * cluster creation. Returns null on GET. This field only applies when the authenticationMethod - * field is 'Cassandra'. + * A system generated property that specified the addressable path of the collections resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - initialCassandraAdminPassword?: string; + readonly _colls?: string; /** - * Number of hours to wait between taking a backup of the cluster. To disable backups, set this - * property to 0. + * A system generated property that specifies the addressable path of the users resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hoursBetweenBackups?: number; + readonly _users?: string; /** - * Hostname or IP address where the Prometheus endpoint containing data about the managed - * Cassandra nodes can be reached. + * A system generated property that specifies the addressable path of the database resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - prometheusEndpoint?: SeedNode; + readonly _self?: string; +} + +/** + * The resource of an Azure Cosmos DB SQL database event + */ +export interface RestorableSqlDatabasePropertiesResource { /** - * Should automatic repairs run on this cluster? If omitted, this is true, and should stay true - * unless you are running a hybrid cluster where you are already doing your own repairs. + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - repairEnabled?: boolean; + readonly _rid?: string; /** - * List of TLS certificates used to authorize clients connecting to the cluster. All connections - * are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, - * the managed Cassandra cluster will reject all connections not bearing a TLS client certificate - * that can be validated from one or more of the public certificates in this property. + * The operation type of this database event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - clientCertificates?: Certificate[]; + readonly operationType?: OperationType; /** - * List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS - * certificates of all nodes in unmanaged data centers must be verifiable using one of the - * certificates provided in this property. + * The time when this database event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - externalGossipCertificates?: Certificate[]; + readonly eventTimestamp?: string; /** - * List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All - * managed nodes will present TLS client certificates that are verifiable using one of the - * certificates provided in this property. + * The name of the SQL database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly gossipCertificates?: Certificate[]; + readonly ownerId?: string; /** - * List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed - * node lists of all managed nodes. + * The resource ID of the SQL database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - externalSeedNodes?: SeedNode[]; + readonly ownerResourceId?: string; /** - * List of IP addresses of seed nodes in the managed data centers. These should be added to the - * seed node lists of all unmanaged nodes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Cosmos DB SQL database resource object */ - readonly seedNodes?: SeedNode[]; + database?: RestorableSqlDatabasePropertiesResourceDatabase; } /** - * Representation of a managed Cassandra cluster. + * An Azure Cosmos DB SQL database event */ -export interface ClusterResource extends ARMResourceProperties { +export interface RestorableSqlDatabaseGetResult { /** - * Properties of a managed Cassandra cluster. + * The resource of an Azure Cosmos DB SQL database event */ - properties?: ClusterResourceProperties; -} - -/** - * Specification of the keyspaces and tables to run repair on. - */ -export interface RepairPostBody { + resource?: RestorableSqlDatabasePropertiesResource; + /** + * The unique resource Identifier of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; /** - * The name of the keyspace that repair should be run on. + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - keyspace: string; + readonly name?: string; /** - * List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace. + * The type of Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tables?: string[]; + readonly type?: string; } /** - * An interface representing ClusterNodeStatusNodesItem. + * Cosmos DB SQL container resource object */ -export interface ClusterNodeStatusNodesItem { +export interface RestorableSqlContainerPropertiesResourceContainer { /** - * The Cassandra data center this node resides in. + * Name of the Cosmos DB SQL container */ - datacenter?: string; + id: string; /** - * Indicates whether the node is functioning or not. Possible values include: 'Up', 'Down' + * The configuration of the indexing policy. By default, the indexing is automatic for all + * document paths within the container */ - status?: NodeStatus; + indexingPolicy?: IndexingPolicy; /** - * The state of the node in relation to the cluster. Possible values include: 'Normal', - * 'Leaving', 'Joining', 'Moving', 'Stopped' + * The configuration of the partition key to be used for partitioning data into multiple + * partitions */ - state?: NodeState; + partitionKey?: ContainerPartitionKey; /** - * The node's URL. + * Default time to live */ - address?: string; + defaultTtl?: number; /** - * The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content - * in the snapshots subdirectories. Because all SSTable data files are included, any data that is - * not cleaned up (such as TTL-expired cell or tombstoned data) is counted. + * The unique key policy configuration for specifying uniqueness constraints on documents in the + * collection in the Azure Cosmos DB service. */ - load?: string; + uniqueKeyPolicy?: UniqueKeyPolicy; /** - * List of tokens. + * The conflict resolution policy for the container. */ - tokens?: string[]; + conflictResolutionPolicy?: ConflictResolutionPolicy; /** - * The percentage of the data owned by the node per datacenter times the replication factor - * (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the - * ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint - * percentage ownership information is shown. + * Analytical TTL. */ - owns?: number; + analyticalStorageTtl?: number; /** - * The network ID of the node. + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hostId?: string; + readonly _rid?: string; /** - * The rack this node is part of. + * A system generated property that denotes the last updated timestamp of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - rack?: string; -} - -/** - * The status of all nodes in the cluster (as returned by 'nodetool status'). - */ -export interface ClusterNodeStatus { + readonly _ts?: number; /** - * Information about nodes in the cluster (corresponds to what is returned from nodetool info). + * A system generated property representing the resource etag required for optimistic concurrency + * control. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nodes?: ClusterNodeStatusNodesItem[]; -} - -/** - * An interface representing BackupResourceProperties. - */ -export interface BackupResourceProperties { + readonly _etag?: string; /** - * The time this backup was taken, formatted like 2021-01-21T17:35:21 + * A system generated property that specifies the addressable path of the container resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - timestamp?: Date; -} - -/** - * A restorable backup of a Cassandra cluster. - */ -export interface BackupResource extends ARMProxyResource { - properties?: BackupResourceProperties; + readonly _self?: string; } /** - * Properties of a managed Cassandra data center. + * The resource of an Azure Cosmos DB SQL container event */ -export interface DataCenterResourceProperties { +export interface RestorableSqlContainerPropertiesResource { /** - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - provisioningState?: ManagedCassandraProvisioningState; + readonly _rid?: string; /** - * The region this data center should be created in. + * The operation type of this container event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataCenterLocation?: string; + readonly operationType?: OperationType; /** - * Resource id of a subnet the nodes in this data center should have their network interfaces - * connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must - * be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' - * property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'. + * The when this container event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - delegatedSubnetId?: string; + readonly eventTimestamp?: string; /** - * The number of nodes the data center should have. This is the desired number. After it is set, - * it may take some time for the data center to be scaled to match. To monitor the number of - * nodes and their status, use the fetchNodeStatus method on the cluster. + * The name of this SQL container. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nodeCount?: number; + readonly ownerId?: string; /** - * IP addresses for seed nodes in this data center. This is for reference. Generally you will - * want to use the seedNodes property on the cluster, which aggregates the seed nodes from all - * data centers in the cluster. + * The resource ID of this SQL container. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly seedNodes?: SeedNode[]; + readonly ownerResourceId?: string; /** - * A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all - * nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys - * are allowed. + * Cosmos DB SQL container resource object */ - base64EncodedCassandraYamlFragment?: string; + container?: RestorableSqlContainerPropertiesResourceContainer; } /** - * A managed Cassandra data center. + * An Azure Cosmos DB SQL container event */ -export interface DataCenterResource extends ARMProxyResource { +export interface RestorableSqlContainerGetResult { /** - * Properties of a managed Cassandra data center. + * The resource of an Azure Cosmos DB SQL container event */ - properties?: DataCenterResourceProperties; -} - -/** - * A private link resource - */ -export interface PrivateLinkResource extends ARMProxyResource { + resource?: RestorableSqlContainerPropertiesResource; /** - * The private link resource group id. + * The unique resource Identifier of the ARM resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly groupId?: string; + readonly id?: string; /** - * The private link resource required member names. + * The name of the ARM resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requiredMembers?: string[]; + readonly name?: string; /** - * The private link resource required zone names. + * The type of Azure resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requiredZoneNames?: string[]; + readonly type?: string; } /** - * Contains the possible cases for ServiceResourceProperties. - */ -export type ServiceResourcePropertiesUnion = - | ServiceResourceProperties - | DataTransferServiceResourceProperties - | SqlDedicatedGatewayServiceResourceProperties; - -/** - * Services response resource. + * The resource of an Azure Cosmos DB MongoDB database event */ -export interface ServiceResourceProperties { - /** - * Polymorphic Discriminator - */ - serviceType: "ServiceResourceProperties"; +export interface RestorableMongodbDatabasePropertiesResource { /** - * Time of the last state change (ISO-8601 format). + * A system generated property. A unique identifier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationTime?: Date; + readonly _rid?: string; /** - * Possible values include: 'Cosmos.D4s', 'Cosmos.D8s', 'Cosmos.D16s' + * The operation type of this database event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceSize?: ServiceSize; + readonly operationType?: OperationType; /** - * Instance count for the service. + * The time when this database event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceCount?: number; + readonly eventTimestamp?: string; /** - * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * The name of this MongoDB database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: ServiceStatus; + readonly ownerId?: string; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * The resource ID of this MongoDB database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - [property: string]: any; -} - -/** - * Properties for the database account. - */ -export interface ServiceResource extends ARMProxyResource { - properties?: ServiceResourcePropertiesUnion; + readonly ownerResourceId?: string; } /** - * Resource for a regional service location. + * An Azure Cosmos DB MongoDB database event */ -export interface RegionalServiceResource { +export interface RestorableMongodbDatabaseGetResult { + /** + * The resource of an Azure Cosmos DB MongoDB database event + */ + resource?: RestorableMongodbDatabasePropertiesResource; /** - * The regional service name. + * The unique resource Identifier of the ARM resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly id?: string; /** - * The location name. + * The name of the ARM resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly name?: string; /** - * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * The type of Azure resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: ServiceStatus; + readonly type?: string; } /** - * Resource for a regional service location. - */ -export interface DataTransferRegionalServiceResource extends RegionalServiceResource {} - -/** - * Properties for DataTransferServiceResource. + * The resource of an Azure Cosmos DB MongoDB collection event */ -export interface DataTransferServiceResourceProperties { - /** - * Polymorphic Discriminator - */ - serviceType: "DataTransferServiceResourceProperties"; +export interface RestorableMongodbCollectionPropertiesResource { /** - * Time of the last state change (ISO-8601 format). + * A system generated property. A unique identifier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationTime?: Date; - /** - * Possible values include: 'Cosmos.D4s', 'Cosmos.D8s', 'Cosmos.D16s' - */ - instanceSize?: ServiceSize; + readonly _rid?: string; /** - * Instance count for the service. + * The operation type of this collection event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceCount?: number; + readonly operationType?: OperationType; /** - * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * The time when this collection event happened. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: ServiceStatus; + readonly eventTimestamp?: string; /** - * An array that contains all of the locations for the service. + * The name of this MongoDB collection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly locations?: DataTransferRegionalServiceResource[]; -} - -/** - * Describes the service response property. - */ -export interface DataTransferServiceResource { - properties?: DataTransferServiceResourceProperties; -} - -/** - * Resource for a regional service location. - */ -export interface SqlDedicatedGatewayRegionalServiceResource extends RegionalServiceResource { + readonly ownerId?: string; /** - * The regional endpoint for SqlDedicatedGateway. + * The resource ID of this MongoDB collection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly sqlDedicatedGatewayEndpoint?: string; + readonly ownerResourceId?: string; } /** - * Properties for SqlDedicatedGatewayServiceResource. + * An Azure Cosmos DB MongoDB collection event */ -export interface SqlDedicatedGatewayServiceResourceProperties { +export interface RestorableMongodbCollectionGetResult { /** - * Polymorphic Discriminator + * The resource of an Azure Cosmos DB MongoDB collection event */ - serviceType: "SqlDedicatedGatewayServiceResourceProperties"; + resource?: RestorableMongodbCollectionPropertiesResource; /** - * Time of the last state change (ISO-8601 format). + * The unique resource Identifier of the ARM resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationTime?: Date; - /** - * Possible values include: 'Cosmos.D4s', 'Cosmos.D8s', 'Cosmos.D16s' - */ - instanceSize?: ServiceSize; + readonly id?: string; /** - * Instance count for the service. + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instanceCount?: number; + readonly name?: string; /** - * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * The type of Azure resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: ServiceStatus; + readonly type?: string; +} + +/** + * Properties of the regional restorable account. + */ +export interface ContinuousBackupRestoreLocation { /** - * SqlDedicatedGateway endpoint for the service. + * The name of the continuous backup restore location. */ - sqlDedicatedGatewayEndpoint?: string; + location?: string; +} + +/** + * Information about the status of continuous backups. + */ +export interface ContinuousBackupInformation { /** - * An array that contains all of the locations for the service. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The latest restorable timestamp for a resource. */ - readonly locations?: SqlDedicatedGatewayRegionalServiceResource[]; + latestRestorableTimestamp?: string; } /** - * Describes the service response property for SqlDedicatedGateway. + * Backup information of a resource. */ -export interface SqlDedicatedGatewayServiceResource { - properties?: SqlDedicatedGatewayServiceResourceProperties; +export interface BackupInformation { + /** + * Information about the status of continuous backups. + */ + continuousBackupInformation?: ContinuousBackupInformation; } /** @@ -4102,28 +3492,32 @@ export interface CosmosDBManagementClientOptions extends AzureServiceClientOptio * The List operation response, that contains the database accounts and their properties. * @extends Array */ -export interface DatabaseAccountsListResult extends Array {} +export interface DatabaseAccountsListResult extends Array { +} /** * @interface * The response to a list metrics request. * @extends Array */ -export interface MetricListResult extends Array {} +export interface MetricListResult extends Array { +} /** * @interface * The response to a list usage request. * @extends Array */ -export interface UsagesResult extends Array {} +export interface UsagesResult extends Array { +} /** * @interface * The response to a list metric definitions request. * @extends Array */ -export interface MetricDefinitionsListResult extends Array {} +export interface MetricDefinitionsListResult extends Array { +} /** * @interface @@ -4143,236 +3537,233 @@ export interface OperationListResult extends Array { * The response to a list percentile metrics request. * @extends Array */ -export interface PercentileMetricListResult extends Array {} +export interface PercentileMetricListResult extends Array { +} /** * @interface * The response to a list partition metrics request. * @extends Array */ -export interface PartitionMetricListResult extends Array {} +export interface PartitionMetricListResult extends Array { +} /** * @interface * The response to a list partition level usage request. * @extends Array */ -export interface PartitionUsagesResult extends Array {} +export interface PartitionUsagesResult extends Array { +} /** * @interface * The List operation response, that contains the SQL databases and their properties. * @extends Array */ -export interface SqlDatabaseListResult extends Array {} +export interface SqlDatabaseListResult extends Array { +} /** * @interface * The List operation response, that contains the containers and their properties. * @extends Array */ -export interface SqlContainerListResult extends Array {} +export interface SqlContainerListResult extends Array { +} /** * @interface * The List operation response, that contains the storedProcedures and their properties. * @extends Array */ -export interface SqlStoredProcedureListResult extends Array {} +export interface SqlStoredProcedureListResult extends Array { +} /** * @interface * The List operation response, that contains the userDefinedFunctions and their properties. * @extends Array */ -export interface SqlUserDefinedFunctionListResult extends Array {} +export interface SqlUserDefinedFunctionListResult extends Array { +} /** * @interface * The List operation response, that contains the triggers and their properties. * @extends Array */ -export interface SqlTriggerListResult extends Array {} +export interface SqlTriggerListResult extends Array { +} /** * @interface * The relevant Role Definitions. * @extends Array */ -export interface SqlRoleDefinitionListResult extends Array {} +export interface SqlRoleDefinitionListResult extends Array { +} /** * @interface * The relevant Role Assignments. * @extends Array */ -export interface SqlRoleAssignmentListResult extends Array {} +export interface SqlRoleAssignmentListResult extends Array { +} /** * @interface * The List operation response, that contains the MongoDB databases and their properties. * @extends Array */ -export interface MongoDBDatabaseListResult extends Array {} +export interface MongoDBDatabaseListResult extends Array { +} /** * @interface * The List operation response, that contains the MongoDB collections and their properties. * @extends Array */ -export interface MongoDBCollectionListResult extends Array {} +export interface MongoDBCollectionListResult extends Array { +} /** * @interface * The List operation response, that contains the Table and their properties. * @extends Array */ -export interface TableListResult extends Array {} +export interface TableListResult extends Array { +} /** * @interface * The List operation response, that contains the Cassandra keyspaces and their properties. * @extends Array */ -export interface CassandraKeyspaceListResult extends Array {} +export interface CassandraKeyspaceListResult extends Array { +} /** * @interface * The List operation response, that contains the Cassandra tables and their properties. * @extends Array */ -export interface CassandraTableListResult extends Array {} +export interface CassandraTableListResult extends Array { +} /** * @interface * The List operation response, that contains the Gremlin databases and their properties. * @extends Array */ -export interface GremlinDatabaseListResult extends Array {} +export interface GremlinDatabaseListResult extends Array { +} /** * @interface * The List operation response, that contains the graphs and their properties. * @extends Array */ -export interface GremlinGraphListResult extends Array {} +export interface GremlinGraphListResult extends Array { +} /** * @interface - * The List operation response, that contains the restorable database accounts and their - * properties. - * @extends Array + * A list of notebook workspace resources + * @extends Array + */ +export interface NotebookWorkspaceListResult extends Array { +} + +/** + * @interface + * A list of private endpoint connections + * @extends Array */ -export interface RestorableDatabaseAccountsListResult - extends Array {} +export interface PrivateEndpointConnectionListResult extends Array { +} /** * @interface - * The List operation response, that contains Cosmos DB locations and their properties. - * @extends Array + * A list of private link resources + * @extends Array */ -export interface LocationListResult extends Array {} +export interface PrivateLinkResourceListResult extends Array { +} /** * @interface - * A list of notebook workspace resources - * @extends Array + * The List operation response, that contains the restorable database accounts and their + * properties. + * @extends Array */ -export interface NotebookWorkspaceListResult extends Array {} +export interface RestorableDatabaseAccountsListResult extends Array { +} /** * @interface * The List operation response, that contains the SQL database events and their properties. * @extends Array */ -export interface RestorableSqlDatabasesListResult extends Array {} +export interface RestorableSqlDatabasesListResult extends Array { +} /** * @interface * The List operation response, that contains the SQL container events and their properties. * @extends Array */ -export interface RestorableSqlContainersListResult extends Array {} +export interface RestorableSqlContainersListResult extends Array { +} /** * @interface * The List operation response, that contains the restorable SQL resources. * @extends Array */ -export interface RestorableSqlResourcesListResult extends Array {} +export interface RestorableSqlResourcesListResult extends Array { +} /** * @interface * The List operation response, that contains the MongoDB database events and their properties. * @extends Array */ -export interface RestorableMongodbDatabasesListResult - extends Array {} +export interface RestorableMongodbDatabasesListResult extends Array { +} /** * @interface * The List operation response, that contains the MongoDB collection events and their properties. * @extends Array */ -export interface RestorableMongodbCollectionsListResult - extends Array {} +export interface RestorableMongodbCollectionsListResult extends Array { +} /** * @interface * The List operation response, that contains the restorable MongoDB resources. * @extends Array */ -export interface RestorableMongodbResourcesListResult extends Array {} - -/** - * @interface - * List of managed Cassandra clusters. - * @extends Array - */ -export interface ListClusters extends Array {} - -/** - * @interface - * List of restorable backups for a Cassandra cluster. - * @extends Array - */ -export interface ListBackups extends Array {} - -/** - * @interface - * List of managed Cassandra data centers and their properties. - * @extends Array - */ -export interface ListDataCenters extends Array {} - -/** - * @interface - * A list of private link resources - * @extends Array - */ -export interface PrivateLinkResourceListResult extends Array {} - -/** - * @interface - * A list of private endpoint connections - * @extends Array - */ -export interface PrivateEndpointConnectionListResult extends Array {} +export interface RestorableMongodbResourcesListResult extends Array { +} /** - * @interface - * The List operation response, that contains the Service Resource and their properties. - * @extends Array + * Defines values for DatabaseAccountKind. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + * @readonly + * @enum {string} */ -export interface ServiceResourceListResult extends Array {} +export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; /** - * Defines values for DatabaseAccountKind. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' * @readonly * @enum {string} */ -export type DatabaseAccountKind = "GlobalDocumentDB" | "MongoDB" | "Parse"; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; /** * Defines values for DatabaseAccountOfferType. @@ -4380,7 +3771,7 @@ export type DatabaseAccountKind = "GlobalDocumentDB" | "MongoDB" | "Parse"; * @readonly * @enum {string} */ -export type DatabaseAccountOfferType = "Standard"; +export type DatabaseAccountOfferType = 'Standard'; /** * Defines values for DefaultConsistencyLevel. @@ -4388,12 +3779,7 @@ export type DatabaseAccountOfferType = "Standard"; * @readonly * @enum {string} */ -export type DefaultConsistencyLevel = - | "Eventual" - | "Session" - | "BoundedStaleness" - | "Strong" - | "ConsistentPrefix"; +export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness' | 'Strong' | 'ConsistentPrefix'; /** * Defines values for ConnectorOffer. @@ -4401,7 +3787,7 @@ export type DefaultConsistencyLevel = * @readonly * @enum {string} */ -export type ConnectorOffer = "Small"; +export type ConnectorOffer = 'Small'; /** * Defines values for PublicNetworkAccess. @@ -4409,7 +3795,7 @@ export type ConnectorOffer = "Small"; * @readonly * @enum {string} */ -export type PublicNetworkAccess = "Enabled" | "Disabled"; +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; /** * Defines values for ServerVersion. @@ -4417,7 +3803,15 @@ export type PublicNetworkAccess = "Enabled" | "Disabled"; * @readonly * @enum {string} */ -export type ServerVersion = "3.2" | "3.6" | "4.0"; +export type ServerVersion = '3.2' | '3.6' | '4.0'; + +/** + * Defines values for AnalyticalStorageSchemaType. + * Possible values include: 'WellDefined', 'FullFidelity' + * @readonly + * @enum {string} + */ +export type AnalyticalStorageSchemaType = 'WellDefined' | 'FullFidelity'; /** * Defines values for CreateMode. @@ -4425,7 +3819,7 @@ export type ServerVersion = "3.2" | "3.6" | "4.0"; * @readonly * @enum {string} */ -export type CreateMode = "Default" | "Restore"; +export type CreateMode = 'Default' | 'Restore'; /** * Defines values for RestoreMode. @@ -4433,7 +3827,23 @@ export type CreateMode = "Default" | "Restore"; * @readonly * @enum {string} */ -export type RestoreMode = "PointInTime"; +export type RestoreMode = 'PointInTime'; + +/** + * Defines values for BackupPolicyMigrationStatus. + * Possible values include: 'Invalid', 'InProgress', 'Completed', 'Failed' + * @readonly + * @enum {string} + */ +export type BackupPolicyMigrationStatus = 'Invalid' | 'InProgress' | 'Completed' | 'Failed'; + +/** + * Defines values for BackupPolicyType. + * Possible values include: 'Periodic', 'Continuous' + * @readonly + * @enum {string} + */ +export type BackupPolicyType = 'Periodic' | 'Continuous'; /** * Defines values for NetworkAclBypass. @@ -4441,7 +3851,7 @@ export type RestoreMode = "PointInTime"; * @readonly * @enum {string} */ -export type NetworkAclBypass = "None" | "AzureServices"; +export type NetworkAclBypass = 'None' | 'AzureServices'; /** * Defines values for CreatedByType. @@ -4449,7 +3859,7 @@ export type NetworkAclBypass = "None" | "AzureServices"; * @readonly * @enum {string} */ -export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key"; +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** * Defines values for IndexingMode. @@ -4457,7 +3867,7 @@ export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key"; * @readonly * @enum {string} */ -export type IndexingMode = "consistent" | "lazy" | "none"; +export type IndexingMode = 'consistent' | 'lazy' | 'none'; /** * Defines values for DataType. @@ -4465,7 +3875,7 @@ export type IndexingMode = "consistent" | "lazy" | "none"; * @readonly * @enum {string} */ -export type DataType = "String" | "Number" | "Point" | "Polygon" | "LineString" | "MultiPolygon"; +export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; /** * Defines values for IndexKind. @@ -4473,7 +3883,7 @@ export type DataType = "String" | "Number" | "Point" | "Polygon" | "LineString" * @readonly * @enum {string} */ -export type IndexKind = "Hash" | "Range" | "Spatial"; +export type IndexKind = 'Hash' | 'Range' | 'Spatial'; /** * Defines values for CompositePathSortOrder. @@ -4481,7 +3891,7 @@ export type IndexKind = "Hash" | "Range" | "Spatial"; * @readonly * @enum {string} */ -export type CompositePathSortOrder = "ascending" | "descending"; +export type CompositePathSortOrder = 'ascending' | 'descending'; /** * Defines values for SpatialType. @@ -4489,7 +3899,7 @@ export type CompositePathSortOrder = "ascending" | "descending"; * @readonly * @enum {string} */ -export type SpatialType = "Point" | "LineString" | "Polygon" | "MultiPolygon"; +export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; /** * Defines values for PartitionKind. @@ -4497,7 +3907,7 @@ export type SpatialType = "Point" | "LineString" | "Polygon" | "MultiPolygon"; * @readonly * @enum {string} */ -export type PartitionKind = "Hash" | "Range" | "MultiHash"; +export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; /** * Defines values for ConflictResolutionMode. @@ -4505,7 +3915,7 @@ export type PartitionKind = "Hash" | "Range" | "MultiHash"; * @readonly * @enum {string} */ -export type ConflictResolutionMode = "LastWriterWins" | "Custom"; +export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; /** * Defines values for TriggerType. @@ -4513,7 +3923,7 @@ export type ConflictResolutionMode = "LastWriterWins" | "Custom"; * @readonly * @enum {string} */ -export type TriggerType = "Pre" | "Post"; +export type TriggerType = 'Pre' | 'Post'; /** * Defines values for TriggerOperation. @@ -4521,19 +3931,7 @@ export type TriggerType = "Pre" | "Post"; * @readonly * @enum {string} */ -export type TriggerOperation = "All" | "Create" | "Update" | "Delete" | "Replace"; - -/** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} - */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned,UserAssigned" - | "None"; +export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; /** * Defines values for KeyKind. @@ -4541,7 +3939,7 @@ export type ResourceIdentityType = * @readonly * @enum {string} */ -export type KeyKind = "primary" | "secondary" | "primaryReadonly" | "secondaryReadonly"; +export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; /** * Defines values for UnitType. @@ -4550,14 +3948,7 @@ export type KeyKind = "primary" | "secondary" | "primaryReadonly" | "secondaryRe * @readonly * @enum {string} */ -export type UnitType = - | "Count" - | "Bytes" - | "Seconds" - | "Percent" - | "CountPerSecond" - | "BytesPerSecond" - | "Milliseconds"; +export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; /** * Defines values for PrimaryAggregationType. @@ -4565,31 +3956,7 @@ export type UnitType = * @readonly * @enum {string} */ -export type PrimaryAggregationType = "None" | "Average" | "Total" | "Minimum" | "Maximum" | "Last"; - -/** - * Defines values for BackupPolicyType. - * Possible values include: 'Periodic', 'Continuous' - * @readonly - * @enum {string} - */ -export type BackupPolicyType = "Periodic" | "Continuous"; - -/** - * Defines values for BackupStorageRedundancy. - * Possible values include: 'Geo', 'Local', 'Zone' - * @readonly - * @enum {string} - */ -export type BackupStorageRedundancy = "Geo" | "Local" | "Zone"; - -/** - * Defines values for ApiType. - * Possible values include: 'MongoDB', 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' - * @readonly - * @enum {string} - */ -export type ApiType = "MongoDB" | "Gremlin" | "Cassandra" | "Table" | "Sql" | "GremlinV2"; +export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; /** * Defines values for RoleDefinitionType. @@ -4597,77 +3964,23 @@ export type ApiType = "MongoDB" | "Gremlin" | "Cassandra" | "Table" | "Sql" | "G * @readonly * @enum {string} */ -export type RoleDefinitionType = "BuiltInRole" | "CustomRole"; - -/** - * Defines values for OperationType. - * Possible values include: 'Create', 'Replace', 'Delete', 'SystemOperation' - * @readonly - * @enum {string} - */ -export type OperationType = "Create" | "Replace" | "Delete" | "SystemOperation"; - -/** - * Defines values for ManagedCassandraProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * @readonly - * @enum {string} - */ -export type ManagedCassandraProvisioningState = - | "Creating" - | "Updating" - | "Deleting" - | "Succeeded" - | "Failed" - | "Canceled"; - -/** - * Defines values for AuthenticationMethod. - * Possible values include: 'None', 'Cassandra' - * @readonly - * @enum {string} - */ -export type AuthenticationMethod = "None" | "Cassandra"; +export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; /** - * Defines values for NodeStatus. - * Possible values include: 'Up', 'Down' - * @readonly - * @enum {string} - */ -export type NodeStatus = "Up" | "Down"; - -/** - * Defines values for NodeState. - * Possible values include: 'Normal', 'Leaving', 'Joining', 'Moving', 'Stopped' - * @readonly - * @enum {string} - */ -export type NodeState = "Normal" | "Leaving" | "Joining" | "Moving" | "Stopped"; - -/** - * Defines values for ServiceSize. - * Possible values include: 'Cosmos.D4s', 'Cosmos.D8s', 'Cosmos.D16s' - * @readonly - * @enum {string} - */ -export type ServiceSize = "Cosmos.D4s" | "Cosmos.D8s" | "Cosmos.D16s"; - -/** - * Defines values for ServiceStatus. - * Possible values include: 'Creating', 'Running', 'Updating', 'Deleting', 'Error', 'Stopped' + * Defines values for ApiType. + * Possible values include: 'MongoDB', 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' * @readonly * @enum {string} */ -export type ServiceStatus = "Creating" | "Running" | "Updating" | "Deleting" | "Error" | "Stopped"; +export type ApiType = 'MongoDB' | 'Gremlin' | 'Cassandra' | 'Table' | 'Sql' | 'GremlinV2'; /** - * Defines values for ServiceType. - * Possible values include: 'SqlDedicatedGateway', 'DataTransfer' + * Defines values for OperationType. + * Possible values include: 'Create', 'Replace', 'Delete', 'SystemOperation' * @readonly * @enum {string} */ -export type ServiceType = "SqlDedicatedGateway" | "DataTransfer"; +export type OperationType = 'Create' | 'Replace' | 'Delete' | 'SystemOperation'; /** * Contains response data for the get operation. @@ -4677,16 +3990,16 @@ export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** @@ -4697,16 +4010,16 @@ export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** @@ -4717,16 +4030,16 @@ export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** @@ -4737,16 +4050,16 @@ export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; }; /** @@ -4757,16 +4070,16 @@ export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListRe * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; }; /** @@ -4777,16 +4090,16 @@ export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountListKeysResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListKeysResult; + }; }; /** @@ -4797,16 +4110,16 @@ export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListC * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountListConnectionStringsResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListConnectionStringsResult; + }; }; /** @@ -4817,16 +4130,16 @@ export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnl * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListReadOnlyKeysResult; + }; }; /** @@ -4837,16 +4150,16 @@ export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOn * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListReadOnlyKeysResult; + }; }; /** @@ -4862,16 +4175,16 @@ export type DatabaseAccountsCheckNameExistsResponse = { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: boolean; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: boolean; + }; }; /** @@ -4882,16 +4195,16 @@ export type DatabaseAccountsListMetricsResponse = MetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** @@ -4902,16 +4215,16 @@ export type DatabaseAccountsListUsagesResponse = UsagesResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: UsagesResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; }; /** @@ -4922,16 +4235,16 @@ export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsLis * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricDefinitionsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; }; /** @@ -4942,16 +4255,16 @@ export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** @@ -4962,16 +4275,16 @@ export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DatabaseAccountGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; }; /** @@ -4982,16 +4295,16 @@ export type OperationsListResponse = OperationListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -5002,16 +4315,16 @@ export type OperationsListNextResponse = OperationListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -5022,16 +4335,16 @@ export type DatabaseListMetricsResponse = MetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** @@ -5042,16 +4355,16 @@ export type DatabaseListUsagesResponse = UsagesResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: UsagesResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; }; /** @@ -5062,16 +4375,16 @@ export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricDefinitionsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; }; /** @@ -5082,16 +4395,16 @@ export type CollectionListMetricsResponse = MetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** @@ -5102,16 +4415,16 @@ export type CollectionListUsagesResponse = UsagesResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: UsagesResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; }; /** @@ -5122,16 +4435,16 @@ export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResul * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricDefinitionsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; }; /** @@ -5142,16 +4455,16 @@ export type CollectionRegionListMetricsResponse = MetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** @@ -5162,16 +4475,16 @@ export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; }; /** @@ -5182,16 +4495,16 @@ export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PercentileMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; }; /** @@ -5202,16 +4515,16 @@ export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PercentileMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; }; /** @@ -5222,16 +4535,16 @@ export type PercentileListMetricsResponse = PercentileMetricListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PercentileMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; }; /** @@ -5242,16 +4555,16 @@ export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListRe * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PartitionMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** @@ -5262,16 +4575,16 @@ export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PartitionMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** @@ -5282,16 +4595,16 @@ export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PartitionUsagesResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionUsagesResult; + }; }; /** @@ -5302,16 +4615,16 @@ export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PartitionMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** @@ -5322,16 +4635,16 @@ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListRe * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PartitionMetricListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; }; /** @@ -5342,16 +4655,16 @@ export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlDatabaseListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseListResult; + }; }; /** @@ -5362,16 +4675,16 @@ export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; }; /** @@ -5382,3234 +4695,2774 @@ export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; }; /** * Contains response data for the getSqlDatabaseThroughput operation. */ -export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the updateSqlDatabaseThroughput operation. - */ -export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the migrateSqlDatabaseToAutoscale operation. - */ -export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the migrateSqlDatabaseToManualThroughput operation. - */ -export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the listSqlContainers operation. - */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlContainerListResult; - }; -}; - -/** - * Contains response data for the getSqlContainer operation. - */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlContainerGetResults; - }; -}; - -/** - * Contains response data for the createUpdateSqlContainer operation. - */ -export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlContainerGetResults; - }; -}; - -/** - * Contains response data for the getSqlContainerThroughput operation. - */ -export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the updateSqlContainerThroughput operation. - */ -export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the migrateSqlContainerToAutoscale operation. - */ -export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the migrateSqlContainerToManualThroughput operation. - */ -export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; -}; - -/** - * Contains response data for the listSqlStoredProcedures operation. - */ -export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlStoredProcedureListResult; - }; -}; - -/** - * Contains response data for the getSqlStoredProcedure operation. - */ -export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlStoredProcedureGetResults; - }; -}; - -/** - * Contains response data for the createUpdateSqlStoredProcedure operation. - */ -export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlStoredProcedureGetResults; - }; -}; - -/** - * Contains response data for the listSqlUserDefinedFunctions operation. - */ -export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlUserDefinedFunctionListResult; - }; -}; - -/** - * Contains response data for the getSqlUserDefinedFunction operation. - */ -export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlUserDefinedFunctionGetResults; - }; -}; - -/** - * Contains response data for the createUpdateSqlUserDefinedFunction operation. - */ -export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlUserDefinedFunctionGetResults; - }; -}; - -/** - * Contains response data for the listSqlTriggers operation. - */ -export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlTriggerListResult; - }; -}; - -/** - * Contains response data for the getSqlTrigger operation. - */ -export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlTriggerGetResults; - }; -}; - -/** - * Contains response data for the createUpdateSqlTrigger operation. - */ -export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlTriggerGetResults; - }; -}; - -/** - * Contains response data for the retrieveContinuousBackupInformation operation. - */ -export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupInformation; - }; -}; - -/** - * Contains response data for the getSqlRoleDefinition operation. - */ -export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleDefinitionGetResults; - }; -}; - -/** - * Contains response data for the createUpdateSqlRoleDefinition operation. - */ -export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleDefinitionGetResults; - }; -}; - -/** - * Contains response data for the listSqlRoleDefinitions operation. - */ -export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { +export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleDefinitionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getSqlRoleAssignment operation. + * Contains response data for the updateSqlDatabaseThroughput operation. */ -export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleAssignmentGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the createUpdateSqlRoleAssignment operation. + * Contains response data for the migrateSqlDatabaseToAutoscale operation. */ -export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleAssignmentGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listSqlRoleAssignments operation. + * Contains response data for the migrateSqlDatabaseToManualThroughput operation. */ -export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { +export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleAssignmentListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlDatabase operation. + * Contains response data for the listSqlContainers operation. */ -export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerListResult; + }; }; /** - * Contains response data for the beginUpdateSqlDatabaseThroughput operation. + * Contains response data for the getSqlContainer operation. */ -export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. + * Contains response data for the createUpdateSqlContainer operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** - * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. + * Contains response data for the getSqlContainerThroughput operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlContainer operation. + * Contains response data for the updateSqlContainerThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlContainerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateSqlContainerThroughput operation. + * Contains response data for the migrateSqlContainerToAutoscale operation. */ -export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateSqlContainerToAutoscale operation. + * Contains response data for the migrateSqlContainerToManualThroughput operation. */ -export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. + * Contains response data for the listSqlStoredProcedures operation. */ -export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureListResult; + }; }; /** - * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. + * Contains response data for the getSqlStoredProcedure operation. */ -export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlStoredProcedureGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. + * Contains response data for the createUpdateSqlStoredProcedure operation. */ -export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlUserDefinedFunctionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlTrigger operation. + * Contains response data for the listSqlUserDefinedFunctions operation. */ -export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlTriggerGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionListResult; + }; }; /** - * Contains response data for the beginRetrieveContinuousBackupInformation operation. + * Contains response data for the getSqlUserDefinedFunction operation. */ -export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = BackupInformation & { +export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupInformation; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. + * Contains response data for the createUpdateSqlUserDefinedFunction operation. */ -export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { +export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleDefinitionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. + * Contains response data for the listSqlTriggers operation. */ -export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { +export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlRoleAssignmentGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerListResult; + }; }; /** - * Contains response data for the listMongoDBDatabases operation. + * Contains response data for the getSqlTrigger operation. */ -export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { +export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** - * Contains response data for the getMongoDBDatabase operation. + * Contains response data for the createUpdateSqlTrigger operation. */ -export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** - * Contains response data for the createUpdateMongoDBDatabase operation. + * Contains response data for the getSqlRoleDefinition operation. */ -export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionGetResults; + }; }; /** - * Contains response data for the getMongoDBDatabaseThroughput operation. + * Contains response data for the createUpdateSqlRoleDefinition operation. */ -export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionGetResults; + }; }; /** - * Contains response data for the updateMongoDBDatabaseThroughput operation. + * Contains response data for the listSqlRoleDefinitions operation. */ -export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionListResult; + }; }; /** - * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the getSqlRoleAssignment operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentGetResults; + }; }; /** - * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the createUpdateSqlRoleAssignment operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentGetResults; + }; }; /** - * Contains response data for the listMongoDBCollections operation. + * Contains response data for the listSqlRoleAssignments operation. */ -export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { +export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentListResult; + }; }; /** - * Contains response data for the getMongoDBCollection operation. + * Contains response data for the retrieveContinuousBackupInformation operation. */ -export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type SqlResourcesRetrieveContinuousBackupInformationResponse = BackupInformation & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupInformation; + }; }; /** - * Contains response data for the createUpdateMongoDBCollection operation. + * Contains response data for the beginCreateUpdateSqlDatabase operation. */ -export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlDatabaseGetResults; + }; }; /** - * Contains response data for the getMongoDBCollectionThroughput operation. + * Contains response data for the beginUpdateSqlDatabaseThroughput operation. */ -export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateMongoDBCollectionThroughput operation. + * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. */ -export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateMongoDBCollectionToAutoscale operation. + * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the beginCreateUpdateSqlContainer operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateMongoDBDatabase operation. + * Contains response data for the beginUpdateSqlContainerThroughput operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. + * Contains response data for the beginMigrateSqlContainerToAutoscale operation. */ -export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlStoredProcedureGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateMongoDBCollection operation. + * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MongoDBCollectionGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlUserDefinedFunctionGetResults; + }; }; /** - * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. + * Contains response data for the beginCreateUpdateSqlTrigger operation. */ -export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlTriggerGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. + * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleDefinitionGetResults; + }; }; /** - * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlRoleAssignmentGetResults; + }; }; /** - * Contains response data for the listTables operation. + * Contains response data for the beginRetrieveContinuousBackupInformation operation. */ -export type TableResourcesListTablesResponse = TableListResult & { +export type SqlResourcesBeginRetrieveContinuousBackupInformationResponse = BackupInformation & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupInformation; + }; }; /** - * Contains response data for the getTable operation. + * Contains response data for the listMongoDBDatabases operation. */ -export type TableResourcesGetTableResponse = TableGetResults & { +export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseListResult; + }; }; /** - * Contains response data for the createUpdateTable operation. + * Contains response data for the getMongoDBDatabase operation. */ -export type TableResourcesCreateUpdateTableResponse = TableGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseGetResults; + }; }; /** - * Contains response data for the getTableThroughput operation. + * Contains response data for the createUpdateMongoDBDatabase operation. */ -export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseGetResults; + }; }; /** - * Contains response data for the updateTableThroughput operation. + * Contains response data for the getMongoDBDatabaseThroughput operation. */ -export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateTableToAutoscale operation. + * Contains response data for the updateMongoDBDatabaseThroughput operation. */ -export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateTableToManualThroughput operation. + * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. */ -export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateTable operation. + * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ -export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateTableThroughput operation. + * Contains response data for the listMongoDBCollections operation. */ -export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionListResult; + }; }; /** - * Contains response data for the beginMigrateTableToAutoscale operation. + * Contains response data for the getMongoDBCollection operation. */ -export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionGetResults; + }; }; /** - * Contains response data for the beginMigrateTableToManualThroughput operation. + * Contains response data for the createUpdateMongoDBCollection operation. */ -export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionGetResults; + }; }; /** - * Contains response data for the listCassandraKeyspaces operation. + * Contains response data for the getMongoDBCollectionThroughput operation. */ -export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { +export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getCassandraKeyspace operation. + * Contains response data for the updateMongoDBCollectionThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the createUpdateCassandraKeyspace operation. + * Contains response data for the migrateMongoDBCollectionToAutoscale operation. */ -export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getCassandraKeyspaceThroughput operation. + * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateCassandraKeyspaceThroughput operation. + * Contains response data for the beginCreateUpdateMongoDBDatabase operation. */ -export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBDatabaseGetResults; + }; }; /** - * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listCassandraTables operation. + * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. */ -export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getCassandraTable operation. + * Contains response data for the beginCreateUpdateMongoDBCollection operation. */ -export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MongoDBCollectionGetResults; + }; }; /** - * Contains response data for the createUpdateCassandraTable operation. + * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getCassandraTableThroughput operation. + * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. */ -export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the updateCassandraTableThroughput operation. + * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. */ -export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateCassandraTableToAutoscale operation. + * Contains response data for the listTables operation. */ -export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesListTablesResponse = TableListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableListResult; + }; }; /** - * Contains response data for the migrateCassandraTableToManualThroughput operation. + * Contains response data for the getTable operation. */ -export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesGetTableResponse = TableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateCassandraKeyspace operation. + * Contains response data for the createUpdateTable operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraKeyspaceGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** - * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. + * Contains response data for the getTableThroughput operation. */ -export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the updateTableThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the migrateTableToAutoscale operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateCassandraTable operation. + * Contains response data for the migrateTableToManualThroughput operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: CassandraTableGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateCassandraTableThroughput operation. + * Contains response data for the beginCreateUpdateTable operation. */ -export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TableGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraTableToAutoscale operation. + * Contains response data for the beginUpdateTableThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. + * Contains response data for the beginMigrateTableToAutoscale operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listGremlinDatabases operation. + * Contains response data for the beginMigrateTableToManualThroughput operation. */ -export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { +export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinDatabaseListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getGremlinDatabase operation. + * Contains response data for the listCassandraKeyspaces operation. */ -export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceListResult; + }; }; /** - * Contains response data for the createUpdateGremlinDatabase operation. + * Contains response data for the getCassandraKeyspace operation. */ -export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceGetResults; + }; }; /** - * Contains response data for the getGremlinDatabaseThroughput operation. + * Contains response data for the createUpdateCassandraKeyspace operation. */ -export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceGetResults; + }; }; /** - * Contains response data for the updateGremlinDatabaseThroughput operation. + * Contains response data for the getCassandraKeyspaceThroughput operation. */ -export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateGremlinDatabaseToAutoscale operation. + * Contains response data for the updateCassandraKeyspaceThroughput operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listGremlinGraphs operation. + * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. */ -export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { +export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getGremlinGraph operation. + * Contains response data for the listCassandraTables operation. */ -export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableListResult; + }; }; /** - * Contains response data for the createUpdateGremlinGraph operation. + * Contains response data for the getCassandraTable operation. */ -export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableGetResults; + }; }; /** - * Contains response data for the getGremlinGraphThroughput operation. + * Contains response data for the createUpdateCassandraTable operation. */ -export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableGetResults; + }; }; /** - * Contains response data for the updateGremlinGraphThroughput operation. + * Contains response data for the getCassandraTableThroughput operation. */ -export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateGremlinGraphToAutoscale operation. + * Contains response data for the updateCassandraTableThroughput operation. */ -export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the migrateGremlinGraphToManualThroughput operation. + * Contains response data for the migrateCassandraTableToAutoscale operation. */ -export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateGremlinDatabase operation. + * Contains response data for the migrateCassandraTableToManualThroughput operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinDatabaseGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. + * Contains response data for the beginCreateUpdateCassandraKeyspace operation. */ -export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraKeyspaceGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. + * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginCreateUpdateGremlinGraph operation. + * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GremlinGraphGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginUpdateGremlinGraphThroughput operation. + * Contains response data for the beginCreateUpdateCassandraTable operation. */ -export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CassandraTableGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. + * Contains response data for the beginUpdateCassandraTableThroughput operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. + * Contains response data for the beginMigrateCassandraTableToAutoscale operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ThroughputSettingsGetResults; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. */ -export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { +export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDatabaseAccountsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the listGremlinDatabases operation. */ -export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { +export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDatabaseAccountsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseListResult; + }; }; /** - * Contains response data for the getByLocation operation. + * Contains response data for the getGremlinDatabase operation. */ -export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { +export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDatabaseAccountGetResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseGetResults; + }; }; /** - * Contains response data for the locationList operation. + * Contains response data for the createUpdateGremlinDatabase operation. */ -export type LocationListResponse = LocationListResult & { +export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LocationListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseGetResults; + }; }; /** - * Contains response data for the locationGet operation. + * Contains response data for the getGremlinDatabaseThroughput operation. */ -export type LocationGetResponse = LocationGetResult & { +export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LocationGetResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the updateGremlinDatabaseThroughput operation. */ -export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { +export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspaceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the migrateGremlinDatabaseToAutoscale operation. */ -export type NotebookWorkspacesGetResponse = NotebookWorkspace & { +export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. */ -export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { +export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listConnectionInfo operation. + * Contains response data for the listGremlinGraphs operation. */ -export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { +export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspaceConnectionInfoResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphListResult; + }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the getGremlinGraph operation. */ -export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { +export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookWorkspace; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the createUpdateGremlinGraph operation. */ -export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { +export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableSqlDatabasesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the getGremlinGraphThroughput operation. */ -export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { +export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableSqlContainersListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the updateGremlinGraphThroughput operation. */ -export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { +export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableSqlResourcesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the migrateGremlinGraphToAutoscale operation. */ -export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { +export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableMongodbDatabasesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the migrateGremlinGraphToManualThroughput operation. */ -export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { +export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableMongodbCollectionsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateUpdateGremlinDatabase operation. */ -export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { +export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableMongodbResourcesListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinDatabaseGetResults; + }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. */ -export type CassandraClustersListBySubscriptionResponse = ListClusters & { +export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListClusters; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. */ -export type CassandraClustersListByResourceGroupResponse = ListClusters & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListClusters; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraClustersGetResponse = ClusterResource & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the createUpdate operation. + * Contains response data for the beginCreateUpdateGremlinGraph operation. */ -export type CassandraClustersCreateUpdateResponse = ClusterResource & { +export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GremlinGraphGetResults; + }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginUpdateGremlinGraphThroughput operation. */ -export type CassandraClustersUpdateResponse = ClusterResource & { +export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the fetchNodeStatus operation. + * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. */ -export type CassandraClustersFetchNodeStatusResponse = ClusterNodeStatus & { +export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterNodeStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the listBackupsMethod operation. + * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. */ -export type CassandraClustersListBackupsMethodResponse = ListBackups & { +export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListBackups; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; }; /** - * Contains response data for the getBackup operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type CassandraClustersGetBackupResponse = BackupResource & { +export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspaceListResult; + }; }; /** - * Contains response data for the beginCreateUpdate operation. + * Contains response data for the get operation. */ -export type CassandraClustersBeginCreateUpdateResponse = ClusterResource & { +export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type CassandraClustersBeginUpdateResponse = ClusterResource & { +export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** - * Contains response data for the beginFetchNodeStatus operation. + * Contains response data for the listConnectionInfo operation. */ -export type CassandraClustersBeginFetchNodeStatusResponse = ClusterNodeStatus & { +export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ClusterNodeStatus; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspaceConnectionInfoResult; + }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type CassandraDataCentersListResponse = ListDataCenters & { +export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListDataCenters; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookWorkspace; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type CassandraDataCentersGetResponse = DataCenterResource & { +export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnectionListResult; + }; }; /** - * Contains response data for the createUpdate operation. + * Contains response data for the get operation. */ -export type CassandraDataCentersCreateUpdateResponse = DataCenterResource & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type CassandraDataCentersUpdateResponse = DataCenterResource & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; /** - * Contains response data for the beginCreateUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type CassandraDataCentersBeginCreateUpdateResponse = DataCenterResource & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type CassandraDataCentersBeginUpdateResponse = DataCenterResource & { +export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataCenterResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourceListResult; + }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the get operation. */ -export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResource; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByLocation operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableDatabaseAccountsListResult; + }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { +export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnectionListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableDatabaseAccountsListResult; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the getByLocation operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableDatabaseAccountGetResult; + }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableSqlDatabasesListResult; + }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableSqlContainersListResult; + }; }; /** * Contains response data for the list operation. */ -export type ServiceListResponse = ServiceResourceListResult & { +export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResourceListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableSqlResourcesListResult; + }; }; /** - * Contains response data for the create operation. + * Contains response data for the list operation. */ -export type ServiceCreateResponse = ServiceResource & { +export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableMongodbDatabasesListResult; + }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ServiceGetResponse = ServiceResource & { +export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableMongodbCollectionsListResult; + }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the list operation. */ -export type ServiceBeginCreateResponse = ServiceResource & { +export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServiceResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorableMongodbResourcesListResult; + }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 6d0310fa7afe..4d862a5d91bb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -12,6 +12,78 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; +export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServiceIdentity: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue" + } + } + } + } + } + } +}; + export const IpAddressOrRange: msRest.CompositeMapper = { serializedName: "IpAddressOrRange", type: { @@ -39,7 +111,13 @@ export const ConsistencyPolicy: msRest.CompositeMapper = { serializedName: "defaultConsistencyLevel", type: { name: "Enum", - allowedValues: ["Eventual", "Session", "BoundedStaleness", "Strong", "ConsistentPrefix"] + allowedValues: [ + "Eventual", + "Session", + "BoundedStaleness", + "Strong", + "ConsistentPrefix" + ] } }, maxStalenessPrefix: { @@ -327,6 +405,22 @@ export const ApiProperties: msRest.CompositeMapper = { } }; +export const AnalyticalStorageConfiguration: msRest.CompositeMapper = { + serializedName: "AnalyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration", + modelProperties: { + schemaType: { + serializedName: "schemaType", + type: { + name: "String" + } + } + } + } +}; + export const DatabaseRestoreResource: msRest.CompositeMapper = { serializedName: "DatabaseRestoreResource", type: { @@ -394,6 +488,34 @@ export const RestoreParameters: msRest.CompositeMapper = { } }; +export const BackupPolicyMigrationState: msRest.CompositeMapper = { + serializedName: "BackupPolicyMigrationState", + type: { + name: "Composite", + className: "BackupPolicyMigrationState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + targetType: { + serializedName: "targetType", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + } + } + } +}; + export const BackupPolicy: msRest.CompositeMapper = { serializedName: "BackupPolicy", type: { @@ -405,6 +527,13 @@ export const BackupPolicy: msRest.CompositeMapper = { uberParent: "BackupPolicy", className: "BackupPolicy", modelProperties: { + migrationState: { + serializedName: "migrationState", + type: { + name: "Composite", + className: "BackupPolicyMigrationState" + } + }, type: { required: true, serializedName: "type", @@ -550,13 +679,6 @@ export const ARMResourceProperties: msRest.CompositeMapper = { } } } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } } } } @@ -571,11 +693,18 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { ...ARMResourceProperties.type.modelProperties, kind: { serializedName: "kind", - defaultValue: "GlobalDocumentDB", + defaultValue: 'GlobalDocumentDB', type: { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -594,7 +723,9 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { serializedName: "properties.databaseAccountOfferType", type: { name: "Enum", - allowedValues: ["Standard"] + allowedValues: [ + "Standard" + ] } }, ipRules: { @@ -778,6 +909,13 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "Boolean" } }, + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration" + } + }, instanceId: { readOnly: true, serializedName: "properties.instanceId", @@ -787,7 +925,7 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { }, createMode: { serializedName: "properties.createMode", - defaultValue: "Default", + defaultValue: 'Default', type: { name: "String" } @@ -822,7 +960,10 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: ["None", "AzureServices"] + allowedValues: [ + "None", + "AzureServices" + ] } }, networkAclBypassResourceIds: { @@ -836,6 +977,12 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, systemData: { readOnly: true, serializedName: "systemData", @@ -965,7 +1112,7 @@ export const Indexes: msRest.CompositeMapper = { modelProperties: { dataType: { serializedName: "dataType", - defaultValue: "String", + defaultValue: 'String', type: { name: "String" } @@ -978,7 +1125,7 @@ export const Indexes: msRest.CompositeMapper = { }, kind: { serializedName: "kind", - defaultValue: "Hash", + defaultValue: 'Hash', type: { name: "String" } @@ -1094,7 +1241,7 @@ export const IndexingPolicy: msRest.CompositeMapper = { }, indexingMode: { serializedName: "indexingMode", - defaultValue: "consistent", + defaultValue: 'consistent', type: { name: "String" } @@ -1175,7 +1322,7 @@ export const ContainerPartitionKey: msRest.CompositeMapper = { }, kind: { serializedName: "kind", - defaultValue: "Hash", + defaultValue: 'Hash', type: { name: "String" } @@ -1252,7 +1399,7 @@ export const ConflictResolutionPolicy: msRest.CompositeMapper = { modelProperties: { mode: { serializedName: "mode", - defaultValue: "LastWriterWins", + defaultValue: 'LastWriterWins', type: { name: "String" } @@ -2420,73 +2567,6 @@ export const RegionForOnlineOffline: msRest.CompositeMapper = { } }; -export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - readOnly: true, - serializedName: "clientId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedServiceIdentity: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None"] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } -}; - export const ARMProxyResource: msRest.CompositeMapper = { serializedName: "ARMProxyResource", type: { @@ -2695,19 +2775,29 @@ export const ThroughputSettingsGetResults: msRest.CompositeMapper = { } }; -export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateProperties", +export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateParameters", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "createMode", - clientName: "createMode" - }, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "DatabaseAccountCreateUpdateProperties", + className: "DatabaseAccountCreateUpdateParameters", modelProperties: { + ...ARMResourceProperties.type.modelProperties, + kind: { + serializedName: "kind", + defaultValue: 'GlobalDocumentDB', + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, consistencyPolicy: { - serializedName: "consistencyPolicy", + serializedName: "properties.consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy" @@ -2715,7 +2805,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { }, locations: { required: true, - serializedName: "locations", + serializedName: "properties.locations", type: { name: "Sequence", element: { @@ -2729,14 +2819,14 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { databaseAccountOfferType: { required: true, isConstant: true, - serializedName: "databaseAccountOfferType", - defaultValue: "Standard", + serializedName: "properties.databaseAccountOfferType", + defaultValue: 'Standard', type: { name: "String" } }, ipRules: { - serializedName: "ipRules", + serializedName: "properties.ipRules", type: { name: "Sequence", element: { @@ -2748,19 +2838,19 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, isVirtualNetworkFilterEnabled: { - serializedName: "isVirtualNetworkFilterEnabled", + serializedName: "properties.isVirtualNetworkFilterEnabled", type: { name: "Boolean" } }, enableAutomaticFailover: { - serializedName: "enableAutomaticFailover", + serializedName: "properties.enableAutomaticFailover", type: { name: "Boolean" } }, capabilities: { - serializedName: "capabilities", + serializedName: "properties.capabilities", type: { name: "Sequence", element: { @@ -2772,7 +2862,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, virtualNetworkRules: { - serializedName: "virtualNetworkRules", + serializedName: "properties.virtualNetworkRules", type: { name: "Sequence", element: { @@ -2784,75 +2874,89 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, enableMultipleWriteLocations: { - serializedName: "enableMultipleWriteLocations", + serializedName: "properties.enableMultipleWriteLocations", type: { name: "Boolean" } }, enableCassandraConnector: { - serializedName: "enableCassandraConnector", + serializedName: "properties.enableCassandraConnector", type: { name: "Boolean" } }, connectorOffer: { - serializedName: "connectorOffer", + serializedName: "properties.connectorOffer", type: { name: "String" } }, disableKeyBasedMetadataWriteAccess: { - serializedName: "disableKeyBasedMetadataWriteAccess", + serializedName: "properties.disableKeyBasedMetadataWriteAccess", type: { name: "Boolean" } }, keyVaultKeyUri: { - serializedName: "keyVaultKeyUri", + serializedName: "properties.keyVaultKeyUri", type: { name: "String" } }, defaultIdentity: { - serializedName: "defaultIdentity", + serializedName: "properties.defaultIdentity", type: { name: "String" } }, publicNetworkAccess: { - serializedName: "publicNetworkAccess", + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, enableFreeTier: { - serializedName: "enableFreeTier", + serializedName: "properties.enableFreeTier", type: { name: "Boolean" } }, apiProperties: { - serializedName: "apiProperties", + serializedName: "properties.apiProperties", type: { name: "Composite", className: "ApiProperties" } }, enableAnalyticalStorage: { - serializedName: "enableAnalyticalStorage", + serializedName: "properties.enableAnalyticalStorage", type: { name: "Boolean" } }, + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration" + } + }, + createMode: { + serializedName: "properties.createMode", + defaultValue: 'Default', + type: { + name: "String" + } + }, backupPolicy: { - serializedName: "backupPolicy", + serializedName: "properties.backupPolicy", type: { name: "Composite", className: "BackupPolicy" } }, cors: { - serializedName: "cors", + serializedName: "properties.cors", type: { name: "Sequence", element: { @@ -2864,14 +2968,17 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, networkAclBypass: { - serializedName: "networkAclBypass", + serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: ["None", "AzureServices"] + allowedValues: [ + "None", + "AzureServices" + ] } }, networkAclBypassResourceIds: { - serializedName: "networkAclBypassResourceIds", + serializedName: "properties.networkAclBypassResourceIds", type: { name: "Sequence", element: { @@ -2881,79 +2988,25 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } } }, - createMode: { - required: true, - serializedName: "createMode", + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", type: { - name: "String" + name: "Boolean" + } + }, + restoreParameters: { + serializedName: "properties.restoreParameters", + type: { + name: "Composite", + className: "RestoreParameters" } } } } }; -export const DefaultRequestDatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "Default", - type: { - name: "Composite", - polymorphicDiscriminator: DatabaseAccountCreateUpdateProperties.type.polymorphicDiscriminator, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "DefaultRequestDatabaseAccountCreateUpdateProperties", - modelProperties: { - ...DatabaseAccountCreateUpdateProperties.type.modelProperties - } - } -}; - -export const RestoreReqeustDatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "Restore", - type: { - name: "Composite", - polymorphicDiscriminator: DatabaseAccountCreateUpdateProperties.type.polymorphicDiscriminator, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "RestoreReqeustDatabaseAccountCreateUpdateProperties", - modelProperties: { - ...DatabaseAccountCreateUpdateProperties.type.modelProperties, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "RestoreParameters" - } - } - } - } -}; - -export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateParameters", - type: { - name: "Composite", - className: "DatabaseAccountCreateUpdateParameters", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - kind: { - serializedName: "kind", - defaultValue: "GlobalDocumentDB", - type: { - name: "String" - } - }, - properties: { - required: true, - serializedName: "properties", - defaultValue: {}, - type: { - name: "Composite", - className: "DatabaseAccountCreateUpdateProperties" - } - } - } - } -}; - -export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountUpdateParameters", +export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { + serializedName: "DatabaseAccountUpdateParameters", type: { name: "Composite", className: "DatabaseAccountUpdateParameters", @@ -2975,6 +3028,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -3103,6 +3163,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + analyticalStorageConfiguration: { + serializedName: "properties.analyticalStorageConfiguration", + type: { + name: "Composite", + className: "AnalyticalStorageConfiguration" + } + }, backupPolicy: { serializedName: "properties.backupPolicy", type: { @@ -3126,7 +3193,10 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.networkAclBypass", type: { name: "Enum", - allowedValues: ["None", "AzureServices"] + allowedValues: [ + "None", + "AzureServices" + ] } }, networkAclBypassResourceIds: { @@ -3140,11 +3210,10 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } } }, - identity: { - serializedName: "identity", + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "Boolean" } } } @@ -4528,12 +4597,6 @@ export const PeriodicModeProperties: msRest.CompositeMapper = { type: { name: "Number" } - }, - backupStorageRedundancy: { - serializedName: "backupStorageRedundancy", - type: { - name: "String" - } } } } @@ -4572,111 +4635,105 @@ export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { } }; -export const RestorableLocationResource: msRest.CompositeMapper = { - serializedName: "RestorableLocationResource", +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", type: { name: "Composite", - className: "RestorableLocationResource", + className: "TrackedResource", modelProperties: { - locationName: { - readOnly: true, - serializedName: "locationName", + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - regionalDatabaseAccountInstanceId: { - readOnly: true, - serializedName: "regionalDatabaseAccountInstanceId", + location: { + required: true, + serializedName: "location", type: { name: "String" } - }, - creationTime: { - readOnly: true, - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - deletionTime: { - readOnly: true, - serializedName: "deletionTime", - type: { - name: "DateTime" - } } } } }; -export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { - serializedName: "RestorableDatabaseAccountGetResult", +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", type: { name: "Composite", - className: "RestorableDatabaseAccountGetResult", + className: "AzureEntityResource", modelProperties: { - accountName: { - serializedName: "properties.accountName", - type: { - name: "String" - } - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - deletionTime: { - serializedName: "properties.deletionTime", - type: { - name: "DateTime" - } - }, - apiType: { + ...Resource.type.modelProperties, + etag: { readOnly: true, - serializedName: "properties.apiType", + serializedName: "etag", type: { name: "String" } - }, - restorableLocations: { - readOnly: true, - serializedName: "properties.restorableLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableLocationResource" - } - } - } - }, - id: { + } + } + } +}; + +export const NotebookWorkspaceCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "NotebookWorkspaceCreateUpdateParameters", + type: { + name: "Composite", + className: "NotebookWorkspaceCreateUpdateParameters", + modelProperties: { + ...ARMProxyResource.type.modelProperties + } + } +}; + +export const NotebookWorkspace: msRest.CompositeMapper = { + serializedName: "NotebookWorkspace", + type: { + name: "Composite", + className: "NotebookWorkspace", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + notebookServerEndpoint: { readOnly: true, - serializedName: "id", + serializedName: "properties.notebookServerEndpoint", type: { name: "String" } }, - name: { + status: { readOnly: true, - serializedName: "name", + serializedName: "properties.status", type: { name: "String" } - }, - type: { + } + } + } +}; + +export const NotebookWorkspaceConnectionInfoResult: msRest.CompositeMapper = { + serializedName: "NotebookWorkspaceConnectionInfoResult", + type: { + name: "Composite", + className: "NotebookWorkspaceConnectionInfoResult", + modelProperties: { + authToken: { readOnly: true, - serializedName: "type", + serializedName: "authToken", type: { name: "String" } }, - location: { - serializedName: "location", + notebookServerEndpoint: { + readOnly: true, + serializedName: "notebookServerEndpoint", type: { name: "String" } @@ -4685,36 +4742,35 @@ export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { } }; -export const LocationProperties: msRest.CompositeMapper = { - serializedName: "LocationProperties", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "LocationProperties", + className: "PrivateLinkResource", modelProperties: { - status: { + ...ARMProxyResource.type.modelProperties, + groupId: { readOnly: true, - serializedName: "status", + serializedName: "properties.groupId", type: { name: "String" } }, - supportsAvailabilityZone: { - readOnly: true, - serializedName: "supportsAvailabilityZone", - type: { - name: "Boolean" - } - }, - isResidencyRestricted: { + requiredMembers: { readOnly: true, - serializedName: "isResidencyRestricted", + serializedName: "properties.requiredMembers", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - backupStorageRedundancies: { + requiredZoneNames: { readOnly: true, - serializedName: "backupStorageRedundancies", + serializedName: "properties.requiredZoneNames", type: { name: "Sequence", element: { @@ -4728,220 +4784,46 @@ export const LocationProperties: msRest.CompositeMapper = { } }; -export const LocationGetResult: msRest.CompositeMapper = { - serializedName: "LocationGetResult", +export const Permission: msRest.CompositeMapper = { + serializedName: "Permission", type: { name: "Composite", - className: "LocationGetResult", + className: "Permission", modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", + dataActions: { + serializedName: "dataActions", type: { - name: "Composite", - className: "LocationProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + notDataActions: { + serializedName: "notDataActions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ContinuousBackupRestoreLocation: msRest.CompositeMapper = { - serializedName: "ContinuousBackupRestoreLocation", +export const SqlRoleDefinitionCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "SqlRoleDefinitionCreateUpdateParameters", type: { name: "Composite", - className: "ContinuousBackupRestoreLocation", + className: "SqlRoleDefinitionCreateUpdateParameters", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const ContinuousBackupInformation: msRest.CompositeMapper = { - serializedName: "ContinuousBackupInformation", - type: { - name: "Composite", - className: "ContinuousBackupInformation", - modelProperties: { - latestRestorableTimestamp: { - serializedName: "latestRestorableTimestamp", - type: { - name: "String" - } - } - } - } -}; - -export const BackupInformation: msRest.CompositeMapper = { - serializedName: "BackupInformation", - type: { - name: "Composite", - className: "BackupInformation", - modelProperties: { - continuousBackupInformation: { - serializedName: "continuousBackupInformation", - type: { - name: "Composite", - className: "ContinuousBackupInformation" - } - } - } - } -}; - -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", - type: { - name: "Composite", - className: "AzureEntityResource", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const NotebookWorkspaceCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "NotebookWorkspaceCreateUpdateParameters", - type: { - name: "Composite", - className: "NotebookWorkspaceCreateUpdateParameters", - modelProperties: { - ...ARMProxyResource.type.modelProperties - } - } -}; - -export const NotebookWorkspace: msRest.CompositeMapper = { - serializedName: "NotebookWorkspace", - type: { - name: "Composite", - className: "NotebookWorkspace", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - notebookServerEndpoint: { - readOnly: true, - serializedName: "properties.notebookServerEndpoint", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - } - } - } -}; - -export const NotebookWorkspaceConnectionInfoResult: msRest.CompositeMapper = { - serializedName: "NotebookWorkspaceConnectionInfoResult", - type: { - name: "Composite", - className: "NotebookWorkspaceConnectionInfoResult", - modelProperties: { - authToken: { - readOnly: true, - serializedName: "authToken", - type: { - name: "String" - } - }, - notebookServerEndpoint: { - readOnly: true, - serializedName: "notebookServerEndpoint", - type: { - name: "String" - } - } - } - } -}; - -export const Permission: msRest.CompositeMapper = { - serializedName: "Permission", - type: { - name: "Composite", - className: "Permission", - modelProperties: { - dataActions: { - serializedName: "dataActions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - notDataActions: { - serializedName: "notDataActions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const SqlRoleDefinitionCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "SqlRoleDefinitionCreateUpdateParameters", - type: { - name: "Composite", - className: "SqlRoleDefinitionCreateUpdateParameters", - modelProperties: { - roleName: { - serializedName: "properties.roleName", + roleName: { + serializedName: "properties.roleName", type: { name: "String" } @@ -4950,7 +4832,10 @@ export const SqlRoleDefinitionCreateUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.type", type: { name: "Enum", - allowedValues: ["BuiltInRole", "CustomRole"] + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] } }, assignableScopes: { @@ -4997,7 +4882,10 @@ export const SqlRoleDefinitionGetResults: msRest.CompositeMapper = { serializedName: "properties.type", type: { name: "Enum", - allowedValues: ["BuiltInRole", "CustomRole"] + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] } }, assignableScopes: { @@ -5084,88 +4972,201 @@ export const SqlRoleAssignmentGetResults: msRest.CompositeMapper = { } }; -export const RestorableSqlDatabasePropertiesResourceDatabase: msRest.CompositeMapper = { - serializedName: "RestorableSqlDatabaseProperties_resource_database", +export const RestorableLocationResource: msRest.CompositeMapper = { + serializedName: "RestorableLocationResource", type: { name: "Composite", - className: "RestorableSqlDatabasePropertiesResourceDatabase", + className: "RestorableLocationResource", modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - _rid: { - readOnly: true, - serializedName: "_rid", - type: { - name: "String" - } - }, - _ts: { - readOnly: true, - serializedName: "_ts", - type: { - name: "Number" - } - }, - _etag: { + locationName: { readOnly: true, - serializedName: "_etag", + serializedName: "locationName", type: { name: "String" } }, - _colls: { + regionalDatabaseAccountInstanceId: { readOnly: true, - serializedName: "_colls", + serializedName: "regionalDatabaseAccountInstanceId", type: { name: "String" } }, - _users: { + creationTime: { readOnly: true, - serializedName: "_users", + serializedName: "creationTime", type: { - name: "String" + name: "DateTime" } }, - _self: { + deletionTime: { readOnly: true, - serializedName: "_self", + serializedName: "deletionTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const RestorableSqlDatabasePropertiesResource: msRest.CompositeMapper = { - serializedName: "RestorableSqlDatabaseProperties_resource", +export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { + serializedName: "RestorableDatabaseAccountGetResult", type: { name: "Composite", - className: "RestorableSqlDatabasePropertiesResource", + className: "RestorableDatabaseAccountGetResult", modelProperties: { - _rid: { - readOnly: true, - serializedName: "_rid", + accountName: { + serializedName: "properties.accountName", type: { name: "String" } }, - operationType: { - readOnly: true, - serializedName: "operationType", + creationTime: { + serializedName: "properties.creationTime", type: { - name: "String" + name: "DateTime" } }, - eventTimestamp: { - readOnly: true, - serializedName: "eventTimestamp", + deletionTime: { + serializedName: "properties.deletionTime", + type: { + name: "DateTime" + } + }, + apiType: { + readOnly: true, + serializedName: "properties.apiType", + type: { + name: "String" + } + }, + restorableLocations: { + readOnly: true, + serializedName: "properties.restorableLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableLocationResource" + } + } + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlDatabasePropertiesResourceDatabase: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabaseProperties_resource_database", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResourceDatabase", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + _ts: { + readOnly: true, + serializedName: "_ts", + type: { + name: "Number" + } + }, + _etag: { + readOnly: true, + serializedName: "_etag", + type: { + name: "String" + } + }, + _colls: { + readOnly: true, + serializedName: "_colls", + type: { + name: "String" + } + }, + _users: { + readOnly: true, + serializedName: "_users", + type: { + name: "String" + } + }, + _self: { + readOnly: true, + serializedName: "_self", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlDatabasePropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabaseProperties_resource", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResource", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + operationType: { + readOnly: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + eventTimestamp: { + readOnly: true, + serializedName: "eventTimestamp", type: { name: "String" } @@ -5509,622 +5510,25 @@ export const RestorableMongodbCollectionPropertiesResource: msRest.CompositeMapp serializedName: "operationType", type: { name: "String" - } - }, - eventTimestamp: { - readOnly: true, - serializedName: "eventTimestamp", - type: { - name: "String" - } - }, - ownerId: { - readOnly: true, - serializedName: "ownerId", - type: { - name: "String" - } - }, - ownerResourceId: { - readOnly: true, - serializedName: "ownerResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const RestorableMongodbCollectionGetResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbCollectionGetResult", - type: { - name: "Composite", - className: "RestorableMongodbCollectionGetResult", - modelProperties: { - resource: { - serializedName: "properties.resource", - type: { - name: "Composite", - className: "RestorableMongodbCollectionPropertiesResource" - } - }, - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const SeedNode: msRest.CompositeMapper = { - serializedName: "SeedNode", - type: { - name: "Composite", - className: "SeedNode", - modelProperties: { - ipAddress: { - serializedName: "ipAddress", - type: { - name: "String" - } - } - } - } -}; - -export const Certificate: msRest.CompositeMapper = { - serializedName: "Certificate", - type: { - name: "Composite", - className: "Certificate", - modelProperties: { - pem: { - serializedName: "pem", - type: { - name: "String" - } - } - } - } -}; - -export const ClusterResourceProperties: msRest.CompositeMapper = { - serializedName: "ClusterResource_properties", - type: { - name: "Composite", - className: "ClusterResourceProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String" - } - }, - restoreFromBackupId: { - serializedName: "restoreFromBackupId", - type: { - name: "String" - } - }, - delegatedManagementSubnetId: { - serializedName: "delegatedManagementSubnetId", - type: { - name: "String" - } - }, - cassandraVersion: { - serializedName: "cassandraVersion", - type: { - name: "String" - } - }, - clusterNameOverride: { - serializedName: "clusterNameOverride", - type: { - name: "String" - } - }, - authenticationMethod: { - serializedName: "authenticationMethod", - type: { - name: "String" - } - }, - initialCassandraAdminPassword: { - serializedName: "initialCassandraAdminPassword", - type: { - name: "String" - } - }, - hoursBetweenBackups: { - serializedName: "hoursBetweenBackups", - type: { - name: "Number" - } - }, - prometheusEndpoint: { - serializedName: "prometheusEndpoint", - type: { - name: "Composite", - className: "SeedNode" - } - }, - repairEnabled: { - serializedName: "repairEnabled", - type: { - name: "Boolean" - } - }, - clientCertificates: { - serializedName: "clientCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate" - } - } - } - }, - externalGossipCertificates: { - serializedName: "externalGossipCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate" - } - } - } - }, - gossipCertificates: { - readOnly: true, - serializedName: "gossipCertificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Certificate" - } - } - } - }, - externalSeedNodes: { - serializedName: "externalSeedNodes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SeedNode" - } - } - } - }, - seedNodes: { - readOnly: true, - serializedName: "seedNodes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SeedNode" - } - } - } - } - } - } -}; - -export const ClusterResource: msRest.CompositeMapper = { - serializedName: "ClusterResource", - type: { - name: "Composite", - className: "ClusterResource", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ClusterResourceProperties" - } - } - } - } -}; - -export const RepairPostBody: msRest.CompositeMapper = { - serializedName: "RepairPostBody", - type: { - name: "Composite", - className: "RepairPostBody", - modelProperties: { - keyspace: { - required: true, - serializedName: "keyspace", - type: { - name: "String" - } - }, - tables: { - serializedName: "tables", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ClusterNodeStatusNodesItem: msRest.CompositeMapper = { - serializedName: "ClusterNodeStatus_nodesItem", - type: { - name: "Composite", - className: "ClusterNodeStatusNodesItem", - modelProperties: { - datacenter: { - serializedName: "datacenter", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - address: { - serializedName: "address", - type: { - name: "String" - } - }, - load: { - serializedName: "load", - type: { - name: "String" - } - }, - tokens: { - serializedName: "tokens", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - owns: { - serializedName: "owns", - type: { - name: "Number" - } - }, - hostId: { - serializedName: "hostId", - type: { - name: "String" - } - }, - rack: { - serializedName: "rack", - type: { - name: "String" - } - } - } - } -}; - -export const ClusterNodeStatus: msRest.CompositeMapper = { - serializedName: "ClusterNodeStatus", - type: { - name: "Composite", - className: "ClusterNodeStatus", - modelProperties: { - nodes: { - serializedName: "nodes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClusterNodeStatusNodesItem" - } - } - } - } - } - } -}; - -export const BackupResourceProperties: msRest.CompositeMapper = { - serializedName: "BackupResource_properties", - type: { - name: "Composite", - className: "BackupResourceProperties", - modelProperties: { - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - } - } - } -}; - -export const BackupResource: msRest.CompositeMapper = { - serializedName: "BackupResource", - type: { - name: "Composite", - className: "BackupResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "BackupResourceProperties" - } - } - } - } -}; - -export const DataCenterResourceProperties: msRest.CompositeMapper = { - serializedName: "DataCenterResource_properties", - type: { - name: "Composite", - className: "DataCenterResourceProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String" - } - }, - dataCenterLocation: { - serializedName: "dataCenterLocation", - type: { - name: "String" - } - }, - delegatedSubnetId: { - serializedName: "delegatedSubnetId", - type: { - name: "String" - } - }, - nodeCount: { - serializedName: "nodeCount", - type: { - name: "Number" - } - }, - seedNodes: { - readOnly: true, - serializedName: "seedNodes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SeedNode" - } - } - } - }, - base64EncodedCassandraYamlFragment: { - serializedName: "base64EncodedCassandraYamlFragment", - type: { - name: "String" - } - } - } - } -}; - -export const DataCenterResource: msRest.CompositeMapper = { - serializedName: "DataCenterResource", - type: { - name: "Composite", - className: "DataCenterResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DataCenterResourceProperties" - } - } - } - } -}; - -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - groupId: { - readOnly: true, - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - requiredMembers: { - readOnly: true, - serializedName: "properties.requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - readOnly: true, - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ServiceResourceProperties: msRest.CompositeMapper = { - serializedName: "ServiceResourceProperties", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "serviceType", - clientName: "serviceType" - }, - uberParent: "ServiceResourceProperties", - className: "ServiceResourceProperties", - modelProperties: { - creationTime: { - readOnly: true, - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - instanceSize: { - serializedName: "instanceSize", - type: { - name: "String" - } - }, - instanceCount: { - serializedName: "instanceCount", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "String" - } - }, - serviceType: { - required: true, - serializedName: "serviceType", - type: { - name: "String" - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const ServiceResource: msRest.CompositeMapper = { - serializedName: "ServiceResource", - type: { - name: "Composite", - className: "ServiceResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ServiceResourceProperties", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } -}; - -export const RegionalServiceResource: msRest.CompositeMapper = { - serializedName: "RegionalServiceResource", - type: { - name: "Composite", - className: "RegionalServiceResource", - modelProperties: { - name: { + } + }, + eventTimestamp: { readOnly: true, - serializedName: "name", + serializedName: "eventTimestamp", type: { name: "String" } }, - location: { + ownerId: { readOnly: true, - serializedName: "location", + serializedName: "ownerId", type: { name: "String" } }, - status: { + ownerResourceId: { readOnly: true, - serializedName: "status", + serializedName: "ownerResourceId", type: { name: "String" } @@ -6133,72 +5537,52 @@ export const RegionalServiceResource: msRest.CompositeMapper = { } }; -export const DataTransferRegionalServiceResource: msRest.CompositeMapper = { - serializedName: "DataTransferRegionalServiceResource", - type: { - name: "Composite", - className: "DataTransferRegionalServiceResource", - modelProperties: { - ...RegionalServiceResource.type.modelProperties - } - } -}; - -export const DataTransferServiceResourceProperties: msRest.CompositeMapper = { - serializedName: "DataTransferServiceResourceProperties", +export const RestorableMongodbCollectionGetResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionGetResult", type: { name: "Composite", - polymorphicDiscriminator: ServiceResourceProperties.type.polymorphicDiscriminator, - uberParent: "ServiceResourceProperties", - className: "DataTransferServiceResourceProperties", + className: "RestorableMongodbCollectionGetResult", modelProperties: { - ...ServiceResourceProperties.type.modelProperties, - locations: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableMongodbCollectionPropertiesResource" + } + }, + id: { readOnly: true, - serializedName: "locations", + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataTransferRegionalServiceResource" - } - } + name: "String" } - } - }, - additionalProperties: ServiceResourceProperties.type.additionalProperties - } -}; - -export const DataTransferServiceResource: msRest.CompositeMapper = { - serializedName: "DataTransferServiceResource", - type: { - name: "Composite", - className: "DataTransferServiceResource", - modelProperties: { - properties: { - serializedName: "properties", + }, + name: { + readOnly: true, + serializedName: "name", type: { - name: "Composite", - className: "DataTransferServiceResourceProperties", - additionalProperties: ServiceResourceProperties.type.additionalProperties + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" } } } } }; -export const SqlDedicatedGatewayRegionalServiceResource: msRest.CompositeMapper = { - serializedName: "SqlDedicatedGatewayRegionalServiceResource", +export const ContinuousBackupRestoreLocation: msRest.CompositeMapper = { + serializedName: "ContinuousBackupRestoreLocation", type: { name: "Composite", - className: "SqlDedicatedGatewayRegionalServiceResource", + className: "ContinuousBackupRestoreLocation", modelProperties: { - ...RegionalServiceResource.type.modelProperties, - sqlDedicatedGatewayEndpoint: { - readOnly: true, - serializedName: "sqlDedicatedGatewayEndpoint", + location: { + serializedName: "location", type: { name: "String" } @@ -6207,51 +5591,33 @@ export const SqlDedicatedGatewayRegionalServiceResource: msRest.CompositeMapper } }; -export const SqlDedicatedGatewayServiceResourceProperties: msRest.CompositeMapper = { - serializedName: "SqlDedicatedGatewayServiceResourceProperties", +export const ContinuousBackupInformation: msRest.CompositeMapper = { + serializedName: "ContinuousBackupInformation", type: { name: "Composite", - polymorphicDiscriminator: ServiceResourceProperties.type.polymorphicDiscriminator, - uberParent: "ServiceResourceProperties", - className: "SqlDedicatedGatewayServiceResourceProperties", + className: "ContinuousBackupInformation", modelProperties: { - ...ServiceResourceProperties.type.modelProperties, - sqlDedicatedGatewayEndpoint: { - serializedName: "sqlDedicatedGatewayEndpoint", + latestRestorableTimestamp: { + serializedName: "latestRestorableTimestamp", type: { name: "String" } - }, - locations: { - readOnly: true, - serializedName: "locations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlDedicatedGatewayRegionalServiceResource" - } - } - } } - }, - additionalProperties: ServiceResourceProperties.type.additionalProperties + } } }; -export const SqlDedicatedGatewayServiceResource: msRest.CompositeMapper = { - serializedName: "SqlDedicatedGatewayServiceResource", +export const BackupInformation: msRest.CompositeMapper = { + serializedName: "BackupInformation", type: { name: "Composite", - className: "SqlDedicatedGatewayServiceResource", + className: "BackupInformation", modelProperties: { - properties: { - serializedName: "properties", + continuousBackupInformation: { + serializedName: "continuousBackupInformation", type: { name: "Composite", - className: "SqlDedicatedGatewayServiceResourceProperties", - additionalProperties: ServiceResourceProperties.type.additionalProperties + className: "ContinuousBackupInformation" } } } @@ -6769,52 +6135,6 @@ export const GremlinGraphListResult: msRest.CompositeMapper = { } }; -export const RestorableDatabaseAccountsListResult: msRest.CompositeMapper = { - serializedName: "RestorableDatabaseAccountsListResult", - type: { - name: "Composite", - className: "RestorableDatabaseAccountsListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDatabaseAccountGetResult" - } - } - } - } - } - } -}; - -export const LocationListResult: msRest.CompositeMapper = { - serializedName: "LocationListResult", - type: { - name: "Composite", - className: "LocationListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LocationGetResult" - } - } - } - } - } - } -}; - export const NotebookWorkspaceListResult: msRest.CompositeMapper = { serializedName: "NotebookWorkspaceListResult", type: { @@ -6837,21 +6157,20 @@ export const NotebookWorkspaceListResult: msRest.CompositeMapper = { } }; -export const RestorableSqlDatabasesListResult: msRest.CompositeMapper = { - serializedName: "RestorableSqlDatabasesListResult", +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", type: { name: "Composite", - className: "RestorableSqlDatabasesListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableSqlDatabaseGetResult" + className: "PrivateEndpointConnection" } } } @@ -6860,21 +6179,20 @@ export const RestorableSqlDatabasesListResult: msRest.CompositeMapper = { } }; -export const RestorableSqlContainersListResult: msRest.CompositeMapper = { - serializedName: "RestorableSqlContainersListResult", +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", type: { name: "Composite", - className: "RestorableSqlContainersListResult", + className: "PrivateLinkResourceListResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableSqlContainerGetResult" + className: "PrivateLinkResource" } } } @@ -6883,11 +6201,11 @@ export const RestorableSqlContainersListResult: msRest.CompositeMapper = { } }; -export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { - serializedName: "RestorableSqlResourcesListResult", +export const RestorableDatabaseAccountsListResult: msRest.CompositeMapper = { + serializedName: "RestorableDatabaseAccountsListResult", type: { name: "Composite", - className: "RestorableSqlResourcesListResult", + className: "RestorableDatabaseAccountsListResult", modelProperties: { value: { readOnly: true, @@ -6897,7 +6215,7 @@ export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseRestoreResource" + className: "RestorableDatabaseAccountGetResult" } } } @@ -6906,11 +6224,11 @@ export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { } }; -export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbDatabasesListResult", +export const RestorableSqlDatabasesListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabasesListResult", type: { name: "Composite", - className: "RestorableMongodbDatabasesListResult", + className: "RestorableSqlDatabasesListResult", modelProperties: { value: { readOnly: true, @@ -6920,7 +6238,7 @@ export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorableMongodbDatabaseGetResult" + className: "RestorableSqlDatabaseGetResult" } } } @@ -6929,11 +6247,11 @@ export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { } }; -export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbCollectionsListResult", +export const RestorableSqlContainersListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainersListResult", type: { name: "Composite", - className: "RestorableMongodbCollectionsListResult", + className: "RestorableSqlContainersListResult", modelProperties: { value: { readOnly: true, @@ -6943,7 +6261,7 @@ export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorableMongodbCollectionGetResult" + className: "RestorableSqlContainerGetResult" } } } @@ -6952,11 +6270,11 @@ export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { } }; -export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { - serializedName: "RestorableMongodbResourcesListResult", +export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlResourcesListResult", type: { name: "Composite", - className: "RestorableMongodbResourcesListResult", + className: "RestorableSqlResourcesListResult", modelProperties: { value: { readOnly: true, @@ -6975,33 +6293,11 @@ export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { } }; -export const ListClusters: msRest.CompositeMapper = { - serializedName: "ListClusters", - type: { - name: "Composite", - className: "ListClusters", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClusterResource" - } - } - } - } - } - } -}; - -export const ListBackups: msRest.CompositeMapper = { - serializedName: "ListBackups", +export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabasesListResult", type: { name: "Composite", - className: "ListBackups", + className: "RestorableMongodbDatabasesListResult", modelProperties: { value: { readOnly: true, @@ -7011,7 +6307,7 @@ export const ListBackups: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupResource" + className: "RestorableMongodbDatabaseGetResult" } } } @@ -7020,11 +6316,11 @@ export const ListBackups: msRest.CompositeMapper = { } }; -export const ListDataCenters: msRest.CompositeMapper = { - serializedName: "ListDataCenters", +export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionsListResult", type: { name: "Composite", - className: "ListDataCenters", + className: "RestorableMongodbCollectionsListResult", modelProperties: { value: { readOnly: true, @@ -7034,51 +6330,7 @@ export const ListDataCenters: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DataCenterResource" - } - } - } - } - } - } -}; - -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } -}; - -export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionListResult", - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" + className: "RestorableMongodbCollectionGetResult" } } } @@ -7087,11 +6339,11 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } }; -export const ServiceResourceListResult: msRest.CompositeMapper = { - serializedName: "ServiceResourceListResult", +export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbResourcesListResult", type: { name: "Composite", - className: "ServiceResourceListResult", + className: "RestorableMongodbResourcesListResult", modelProperties: { value: { readOnly: true, @@ -7101,7 +6353,7 @@ export const ServiceResourceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceResource" + className: "DatabaseRestoreResource" } } } @@ -7111,13 +6363,8 @@ export const ServiceResourceListResult: msRest.CompositeMapper = { }; export const discriminators = { - BackupPolicy: BackupPolicy, - DatabaseAccountCreateUpdateProperties: DatabaseAccountCreateUpdateProperties, - "DatabaseAccountCreateUpdateProperties.Default": DefaultRequestDatabaseAccountCreateUpdateProperties, - "DatabaseAccountCreateUpdateProperties.Restore": RestoreReqeustDatabaseAccountCreateUpdateProperties, - "BackupPolicy.Periodic": PeriodicModeBackupPolicy, - "BackupPolicy.Continuous": ContinuousModeBackupPolicy, - ServiceResourceProperties: ServiceResourceProperties, - "ServiceResourceProperties.DataTransferServiceResourceProperties": DataTransferServiceResourceProperties, - "ServiceResourceProperties.SqlDedicatedGatewayServiceResourceProperties": SqlDedicatedGatewayServiceResourceProperties + 'BackupPolicy' : BackupPolicy, + 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, + 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy + }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 68f5e03df3da..c73facb9d248 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +32,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +43,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -71,8 +62,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +90,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +103,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts index 55409fedee67..45263a69395d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,10 +32,7 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -45,14 +42,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -71,8 +62,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +90,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +103,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index d0afe7fcb0b7..4f855d9c9c7d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: 'en-US', type: { name: "String" } @@ -47,36 +47,6 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; -export const backupId: msRest.OperationURLParameter = { - parameterPath: "backupId", - mapper: { - required: true, - serializedName: "backupId", - constraints: { - MaxLength: 15, - MinLength: 1, - Pattern: /^[0-9]+$/ - }, - type: { - name: "String" - } - } -}; -export const clusterName: msRest.OperationURLParameter = { - parameterPath: "clusterName", - mapper: { - required: true, - serializedName: "clusterName", - constraints: { - MaxLength: 100, - MinLength: 1, - Pattern: /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*/ - }, - type: { - name: "String" - } - } -}; export const collectionName: msRest.OperationURLParameter = { parameterPath: "collectionName", mapper: { @@ -127,23 +97,11 @@ export const databaseRid: msRest.OperationURLParameter = { } } }; -export const dataCenterName: msRest.OperationURLParameter = { - parameterPath: "dataCenterName", - mapper: { - required: true, - serializedName: "dataCenterName", - constraints: { - MaxLength: 100, - MinLength: 1, - Pattern: /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*/ - }, - type: { - name: "String" - } - } -}; export const endTime: msRest.OperationQueryParameter = { - parameterPath: ["options", "endTime"], + parameterPath: [ + "options", + "endTime" + ], mapper: { serializedName: "endTime", type: { @@ -162,7 +120,10 @@ export const filter0: msRest.OperationQueryParameter = { } }; export const filter1: msRest.OperationQueryParameter = { - parameterPath: ["options", "filter"], + parameterPath: [ + "options", + "filter" + ], mapper: { serializedName: "$filter", type: { @@ -237,7 +198,7 @@ export const notebookWorkspaceName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "notebookWorkspaceName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } @@ -280,8 +241,7 @@ export const resourceGroupName: msRest.OperationURLParameter = { serializedName: "resourceGroupName", constraints: { MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ + MinLength: 1 }, type: { name: "String" @@ -289,7 +249,10 @@ export const resourceGroupName: msRest.OperationURLParameter = { } }; export const restorableMongodbDatabaseRid: msRest.OperationQueryParameter = { - parameterPath: ["options", "restorableMongodbDatabaseRid"], + parameterPath: [ + "options", + "restorableMongodbDatabaseRid" + ], mapper: { serializedName: "restorableMongodbDatabaseRid", type: { @@ -298,7 +261,10 @@ export const restorableMongodbDatabaseRid: msRest.OperationQueryParameter = { } }; export const restorableSqlDatabaseRid: msRest.OperationQueryParameter = { - parameterPath: ["options", "restorableSqlDatabaseRid"], + parameterPath: [ + "options", + "restorableSqlDatabaseRid" + ], mapper: { serializedName: "restorableSqlDatabaseRid", type: { @@ -307,7 +273,10 @@ export const restorableSqlDatabaseRid: msRest.OperationQueryParameter = { } }; export const restoreLocation: msRest.OperationQueryParameter = { - parameterPath: ["options", "restoreLocation"], + parameterPath: [ + "options", + "restoreLocation" + ], mapper: { serializedName: "restoreLocation", type: { @@ -316,7 +285,10 @@ export const restoreLocation: msRest.OperationQueryParameter = { } }; export const restoreTimestampInUtc: msRest.OperationQueryParameter = { - parameterPath: ["options", "restoreTimestampInUtc"], + parameterPath: [ + "options", + "restoreTimestampInUtc" + ], mapper: { serializedName: "restoreTimestampInUtc", type: { @@ -344,20 +316,6 @@ export const roleDefinitionId: msRest.OperationURLParameter = { } } }; -export const serviceName: msRest.OperationURLParameter = { - parameterPath: "serviceName", - mapper: { - required: true, - serializedName: "serviceName", - constraints: { - MaxLength: 50, - MinLength: 3 - }, - type: { - name: "String" - } - } -}; export const sourceRegion: msRest.OperationURLParameter = { parameterPath: "sourceRegion", mapper: { @@ -369,7 +327,10 @@ export const sourceRegion: msRest.OperationURLParameter = { } }; export const startTime: msRest.OperationQueryParameter = { - parameterPath: ["options", "startTime"], + parameterPath: [ + "options", + "startTime" + ], mapper: { serializedName: "startTime", type: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index 3d0aa6b1596c..500f1515fa90 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +32,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +43,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -72,8 +63,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -101,13 +90,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -119,8 +103,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts index 152c9cd2b84f..c8112dbedc58 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +32,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +43,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -71,8 +62,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -100,13 +89,8 @@ export { PrivateLinkResourceListResult, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -118,8 +102,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts deleted file mode 100644 index 48068ec49b90..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/serviceMappers.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BackupResource, - BackupResourceProperties, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - Certificate, - CloudError, - ClusterKey, - ClusterResource, - ClusterResourceProperties, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - Location, - LocationGetResult, - LocationProperties, - ManagedServiceIdentity, - ManagedServiceIdentityUserAssignedIdentitiesValue, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - Permission, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RegionalServiceResource, - Resource, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceListResult, - ServiceResourceProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, - SqlRoleAssignmentGetResults, - SqlRoleDefinitionGetResults, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 8662633bf668..3f3a227e7c40 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -17,8 +18,7 @@ export { AzureEntityResource, BackupInformation, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -33,11 +33,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -49,14 +46,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -74,8 +65,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -102,13 +91,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -122,8 +106,6 @@ export { SqlDatabaseGetResults, SqlDatabaseListResult, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentCreateUpdateParameters, SqlRoleAssignmentGetResults, SqlRoleAssignmentListResult, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index dca9439fe106..5637ba10e4b3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AnalyticalStorageConfiguration, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -16,8 +17,7 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, - BackupResource, - BackupResourceProperties, + BackupPolicyMigrationState, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,11 +32,8 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, - Certificate, CloudError, ClusterKey, - ClusterResource, - ClusterResourceProperties, Column, CompositePath, ConflictResolutionPolicy, @@ -46,14 +43,8 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseRestoreResource, - DataCenterResource, - DataCenterResourceProperties, - DataTransferRegionalServiceResource, - DataTransferServiceResourceProperties, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -71,8 +62,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - LocationGetResult, - LocationProperties, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue, MongoDBCollectionCreateUpdateParameters, @@ -99,13 +88,8 @@ export { PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RegionalServiceResource, Resource, RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SeedNode, - ServiceResource, - ServiceResourceProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -117,8 +101,6 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, - SqlDedicatedGatewayRegionalServiceResource, - SqlDedicatedGatewayServiceResourceProperties, SqlRoleAssignmentGetResults, SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts deleted file mode 100644 index 81f23ee93f35..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts +++ /dev/null @@ -1,696 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/cassandraClustersMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a CassandraClusters. */ -export class CassandraClusters { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a CassandraClusters. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * List all managed Cassandra clusters in this subscription. - * @param [options] The optional parameters - * @returns Promise - */ - listBySubscription( - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param callback The callback - */ - listBySubscription(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listBySubscription( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBySubscription( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - listBySubscriptionOperationSpec, - callback - ) as Promise; - } - - /** - * List all managed Cassandra clusters in this resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param callback The callback - */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The optional parameters - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - options - }, - getOperationSpec, - callback - ) as Promise; - } - - /** - * Deletes a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); - } - - /** - * Create or update a managed Cassandra cluster. When updating, you must specify all writable - * properties. To update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body The properties specifying the desired state of the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - createUpdate( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdate(resourceGroupName, clusterName, body, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; - } - - /** - * Updates some of the properties of a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Parameters to provide for specifying the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - update( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate(resourceGroupName, clusterName, body, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; - } - - /** - * Request that repair begin on this cluster as soon as possible. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification of what keyspaces and tables to run repair on. - * @param [options] The optional parameters - * @returns Promise - */ - requestRepair( - resourceGroupName: string, - clusterName: string, - body: Models.RepairPostBody, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRequestRepair( - resourceGroupName, - clusterName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Request the status of all nodes in the cluster (as returned by 'nodetool status'). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - fetchNodeStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginFetchNodeStatus(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; - } - - /** - * List the backups of this cluster that are available to restore. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param callback The callback - */ - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The optional parameters - * @param callback The callback - */ - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBackupsMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - options - }, - listBackupsMethodOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of an individual backup of this cluster that is available to restore. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param backupId Id of a restorable backup of a Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param backupId Id of a restorable backup of a Cassandra cluster. - * @param callback The callback - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param backupId Id of a restorable backup of a Cassandra cluster. - * @param options The optional parameters - * @param callback The callback - */ - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getBackup( - resourceGroupName: string, - clusterName: string, - backupId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - backupId, - options - }, - getBackupOperationSpec, - callback - ) as Promise; - } - - /** - * Deletes a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - options - }, - beginDeleteMethodOperationSpec, - options - ); - } - - /** - * Create or update a managed Cassandra cluster. When updating, you must specify all writable - * properties. To update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body The properties specifying the desired state of the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateUpdate( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - body, - options - }, - beginCreateUpdateOperationSpec, - options - ); - } - - /** - * Updates some of the properties of a managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Parameters to provide for specifying the managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate( - resourceGroupName: string, - clusterName: string, - body: Models.ClusterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - body, - options - }, - beginUpdateOperationSpec, - options - ); - } - - /** - * Request that repair begin on this cluster as soon as possible. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param body Specification of what keyspaces and tables to run repair on. - * @param [options] The optional parameters - * @returns Promise - */ - beginRequestRepair( - resourceGroupName: string, - clusterName: string, - body: Models.RepairPostBody, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - body, - options - }, - beginRequestRepairOperationSpec, - options - ); - } - - /** - * Request the status of all nodes in the cluster (as returned by 'nodetool status'). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - beginFetchNodeStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - options - }, - beginFetchNodeStatusOperationSpec, - options - ); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListClusters - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListClusters - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ClusterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBackupsMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListBackups - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getBackupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.backupId - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.BackupResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.ClusterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ClusterResource - }, - 201: { - bodyMapper: Mappers.ClusterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.ClusterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ClusterResource - }, - 202: { - bodyMapper: Mappers.ClusterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRequestRepairOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.RepairPostBody, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginFetchNodeStatusOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ClusterNodeStatus - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts deleted file mode 100644 index e084c5afd55c..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/cassandraDataCentersMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a CassandraDataCenters. */ -export class CassandraDataCenters { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a CassandraDataCenters. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * List all data centers in a particular managed Cassandra cluster. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param [options] The optional parameters - * @returns Promise - */ - list( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param callback The callback - */ - list( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param options The optional parameters - * @param callback The callback - */ - list( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - options - }, - listOperationSpec, - callback - ) as Promise; - } - - /** - * Get the properties of a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param options The optional parameters - * @param callback The callback - */ - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - clusterName, - dataCenterName, - options - }, - getOperationSpec, - callback - ) as Promise; - } - - /** - * Delete a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - clusterName, - dataCenterName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Create or update a managed Cassandra data center. When updating, overwrite all properties. To - * update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - createUpdate( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdate( - resourceGroupName, - clusterName, - dataCenterName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraDataCentersCreateUpdateResponse - >; - } - - /** - * Update some of the properties of a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters to provide for specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - update( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - clusterName, - dataCenterName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraDataCentersUpdateResponse - >; - } - - /** - * Delete a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - dataCenterName, - options - }, - beginDeleteMethodOperationSpec, - options - ); - } - - /** - * Create or update a managed Cassandra data center. When updating, overwrite all properties. To - * update only some properties, use PATCH. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateUpdate( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - dataCenterName, - body, - options - }, - beginCreateUpdateOperationSpec, - options - ); - } - - /** - * Update some of the properties of a managed Cassandra data center. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName Managed Cassandra cluster name. - * @param dataCenterName Data center name in a managed Cassandra cluster. - * @param body Parameters to provide for specifying the managed Cassandra data center. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate( - resourceGroupName: string, - clusterName: string, - dataCenterName: string, - body: Models.DataCenterResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - clusterName, - dataCenterName, - body, - options - }, - beginUpdateOperationSpec, - options - ); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ListDataCenters - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.DataCenterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.DataCenterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataCenterResource - }, - 201: { - bodyMapper: Mappers.DataCenterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - Parameters.dataCenterName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.DataCenterResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataCenterResource - }, - 202: { - bodyMapper: Mappers.DataCenterResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 59be05478d6e..cc3d315664f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -33,41 +33,21 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listCassandraKeyspaces(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listCassandraKeyspaces(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listCassandraKeyspaces( - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listCassandraKeyspaces(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCassandraKeyspaces(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -75,8 +55,7 @@ export class CassandraResources { options }, listCassandraKeyspacesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -88,24 +67,14 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param keyspaceName Cosmos DB keyspace name. * @param callback The callback */ - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -113,22 +82,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -137,8 +92,7 @@ export class CassandraResources { options }, getCassandraKeyspaceOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -151,22 +105,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateCassandraKeyspace( - resourceGroupName, - accountName, - keyspaceName, - createUpdateCassandraKeyspaceParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesCreateUpdateCassandraKeyspaceResponse - >; + createUpdateCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateCassandraKeyspace(resourceGroupName,accountName,keyspaceName,createUpdateCassandraKeyspaceParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -177,18 +118,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - deleteCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteCassandraKeyspace( - resourceGroupName, - accountName, - keyspaceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteCassandraKeyspace(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -200,24 +132,14 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param keyspaceName Cosmos DB keyspace name. * @param callback The callback */ - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -225,22 +147,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -249,8 +157,7 @@ export class CassandraResources { options }, getCassandraKeyspaceThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -263,22 +170,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - updateCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateCassandraKeyspaceThroughput( - resourceGroupName, - accountName, - keyspaceName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesUpdateCassandraKeyspaceThroughputResponse - >; + updateCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateCassandraKeyspaceThroughput(resourceGroupName,accountName,keyspaceName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -289,20 +183,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraKeyspaceToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraKeyspaceToAutoscale( - resourceGroupName, - accountName, - keyspaceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse - >; + migrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -313,20 +196,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraKeyspaceToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraKeyspaceToManualThroughput( - resourceGroupName, - accountName, - keyspaceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse - >; + migrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -337,24 +209,14 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param keyspaceName Cosmos DB keyspace name. * @param callback The callback */ - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - callback: msRest.ServiceCallback - ): void; + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -362,20 +224,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listCassandraTables( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCassandraTables(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -384,8 +234,7 @@ export class CassandraResources { options }, listCassandraTablesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -397,13 +246,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -411,13 +254,7 @@ export class CassandraResources { * @param tableName Cosmos DB table name. * @param callback The callback */ - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -426,22 +263,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -451,8 +274,7 @@ export class CassandraResources { options }, getCassandraTableOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -466,24 +288,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateCassandraTable( - resourceGroupName, - accountName, - keyspaceName, - tableName, - createUpdateCassandraTableParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesCreateUpdateCassandraTableResponse - >; + createUpdateCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateCassandraTable(resourceGroupName,accountName,keyspaceName,tableName,createUpdateCassandraTableParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -495,20 +302,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - deleteCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteCassandraTable( - resourceGroupName, - accountName, - keyspaceName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteCassandraTable(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -521,13 +317,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -535,13 +325,7 @@ export class CassandraResources { * @param tableName Cosmos DB table name. * @param callback The callback */ - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -550,24 +334,8 @@ export class CassandraResources { * @param options The optional parameters * @param callback The callback */ - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -577,8 +345,7 @@ export class CassandraResources { options }, getCassandraTableThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -592,24 +359,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - updateCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateCassandraTableThroughput( - resourceGroupName, - accountName, - keyspaceName, - tableName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesUpdateCassandraTableThroughputResponse - >; + updateCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateCassandraTableThroughput(resourceGroupName,accountName,keyspaceName,tableName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -621,22 +373,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraTableToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraTableToAutoscale( - resourceGroupName, - accountName, - keyspaceName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraTableToAutoscaleResponse - >; + migrateCassandraTableToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraTableToAutoscale(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -648,22 +387,9 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - migrateCassandraTableToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateCassandraTableToManualThroughput( - resourceGroupName, - accountName, - keyspaceName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CassandraResourcesMigrateCassandraTableToManualThroughputResponse - >; + migrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraTableToManualThroughput(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -676,13 +402,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, createUpdateCassandraKeyspaceParameters: Models.CassandraKeyspaceCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -692,8 +412,7 @@ export class CassandraResources { options }, beginCreateUpdateCassandraKeyspaceOperationSpec, - options - ); + options); } /** @@ -704,12 +423,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteCassandraKeyspace( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteCassandraKeyspace(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -718,8 +432,7 @@ export class CassandraResources { options }, beginDeleteCassandraKeyspaceOperationSpec, - options - ); + options); } /** @@ -732,13 +445,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateCassandraKeyspaceThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateCassandraKeyspaceThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -748,8 +455,7 @@ export class CassandraResources { options }, beginUpdateCassandraKeyspaceThroughputOperationSpec, - options - ); + options); } /** @@ -760,12 +466,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraKeyspaceToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -774,8 +475,7 @@ export class CassandraResources { options }, beginMigrateCassandraKeyspaceToAutoscaleOperationSpec, - options - ); + options); } /** @@ -786,12 +486,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraKeyspaceToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -800,8 +495,7 @@ export class CassandraResources { options }, beginMigrateCassandraKeyspaceToManualThroughputOperationSpec, - options - ); + options); } /** @@ -815,14 +509,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, createUpdateCassandraTableParameters: Models.CassandraTableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -833,8 +520,7 @@ export class CassandraResources { options }, beginCreateUpdateCassandraTableOperationSpec, - options - ); + options); } /** @@ -846,13 +532,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteCassandraTable( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteCassandraTable(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -862,8 +542,7 @@ export class CassandraResources { options }, beginDeleteCassandraTableOperationSpec, - options - ); + options); } /** @@ -877,14 +556,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateCassandraTableThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateCassandraTableThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -895,8 +567,7 @@ export class CassandraResources { options }, beginUpdateCassandraTableThroughputOperationSpec, - options - ); + options); } /** @@ -908,13 +579,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraTableToAutoscale( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraTableToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -924,8 +589,7 @@ export class CassandraResources { options }, beginMigrateCassandraTableToAutoscaleOperationSpec, - options - ); + options); } /** @@ -937,13 +601,7 @@ export class CassandraResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateCassandraTableToManualThroughput( - resourceGroupName: string, - accountName: string, - keyspaceName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -953,8 +611,7 @@ export class CassandraResources { options }, beginMigrateCassandraTableToManualThroughputOperationSpec, - options - ); + options); } } @@ -962,11 +619,18 @@ export class CassandraResources { const serializer = new msRest.Serializer(Mappers); const listCassandraKeyspacesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraKeyspaceListResult @@ -980,16 +644,19 @@ const listCassandraKeyspacesOperationSpec: msRest.OperationSpec = { const getCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraKeyspaceGetResults @@ -1003,16 +670,19 @@ const getCassandraKeyspaceOperationSpec: msRest.OperationSpec = { const getCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1026,16 +696,19 @@ const getCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { const listCassandraTablesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraTableListResult @@ -1049,8 +722,7 @@ const listCassandraTablesOperationSpec: msRest.OperationSpec = { const getCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1058,8 +730,12 @@ const getCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CassandraTableGetResults @@ -1073,8 +749,7 @@ const getCassandraTableOperationSpec: msRest.OperationSpec = { const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1082,8 +757,12 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1097,16 +776,19 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateCassandraKeyspaceParameters", mapper: { @@ -1128,16 +810,19 @@ const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { const beginDeleteCassandraKeyspaceOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1150,16 +835,19 @@ const beginDeleteCassandraKeyspaceOperationSpec: msRest.OperationSpec = { const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1181,16 +869,19 @@ const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1205,16 +896,19 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.keyspaceName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1229,8 +923,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1238,8 +931,12 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateCassandraTableParameters", mapper: { @@ -1261,8 +958,7 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1270,8 +966,12 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1284,8 +984,7 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1293,8 +992,12 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1316,8 +1019,7 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1325,8 +1027,12 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1341,8 +1047,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1350,8 +1055,12 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio Parameters.keyspaceName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 642c17104a8a..68c437ee319b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -33,39 +33,21 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listGremlinDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listGremlinDatabases(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listGremlinDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listGremlinDatabases(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGremlinDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class GremlinResources { options }, listGremlinDatabasesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -86,24 +67,14 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -111,20 +82,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +92,7 @@ export class GremlinResources { options }, getGremlinDatabaseOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -147,22 +105,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateGremlinDatabase( - resourceGroupName, - accountName, - databaseName, - createUpdateGremlinDatabaseParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesCreateUpdateGremlinDatabaseResponse - >; + createUpdateGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateGremlinDatabase(resourceGroupName,accountName,databaseName,createUpdateGremlinDatabaseParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -173,18 +118,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - deleteGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteGremlinDatabase( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteGremlinDatabase(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -196,24 +132,14 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -221,22 +147,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -245,8 +157,7 @@ export class GremlinResources { options }, getGremlinDatabaseThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -259,22 +170,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - updateGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateGremlinDatabaseThroughput( - resourceGroupName, - accountName, - databaseName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesUpdateGremlinDatabaseThroughputResponse - >; + updateGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGremlinDatabaseThroughput(resourceGroupName,accountName,databaseName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -285,20 +183,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinDatabaseToAutoscale( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse - >; + migrateGremlinDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -309,20 +196,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinDatabaseToManualThroughput( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse - >; + migrateGremlinDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -333,24 +209,14 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -358,20 +224,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listGremlinGraphs( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGremlinGraphs(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -380,8 +234,7 @@ export class GremlinResources { options }, listGremlinGraphsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -393,13 +246,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -407,13 +254,7 @@ export class GremlinResources { * @param graphName Cosmos DB graph name. * @param callback The callback */ - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -422,22 +263,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -447,8 +274,7 @@ export class GremlinResources { options }, getGremlinGraphOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -462,24 +288,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateGremlinGraph( - resourceGroupName, - accountName, - databaseName, - graphName, - createUpdateGremlinGraphParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesCreateUpdateGremlinGraphResponse - >; + createUpdateGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateGremlinGraph(resourceGroupName,accountName,databaseName,graphName,createUpdateGremlinGraphParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -491,20 +302,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - deleteGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteGremlinGraph( - resourceGroupName, - accountName, - databaseName, - graphName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteGremlinGraph(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -517,13 +317,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -531,13 +325,7 @@ export class GremlinResources { * @param graphName Cosmos DB graph name. * @param callback The callback */ - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - callback: msRest.ServiceCallback - ): void; + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -546,24 +334,8 @@ export class GremlinResources { * @param options The optional parameters * @param callback The callback */ - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -573,8 +345,7 @@ export class GremlinResources { options }, getGremlinGraphThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -588,24 +359,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - updateGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateGremlinGraphThroughput( - resourceGroupName, - accountName, - databaseName, - graphName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesUpdateGremlinGraphThroughputResponse - >; + updateGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGremlinGraphThroughput(resourceGroupName,accountName,databaseName,graphName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -617,22 +373,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinGraphToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinGraphToAutoscale( - resourceGroupName, - accountName, - databaseName, - graphName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinGraphToAutoscaleResponse - >; + migrateGremlinGraphToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinGraphToAutoscale(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -644,22 +387,9 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - migrateGremlinGraphToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateGremlinGraphToManualThroughput( - resourceGroupName, - accountName, - databaseName, - graphName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GremlinResourcesMigrateGremlinGraphToManualThroughputResponse - >; + migrateGremlinGraphToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinGraphToManualThroughput(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -672,13 +402,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateGremlinDatabaseParameters: Models.GremlinDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -688,8 +412,7 @@ export class GremlinResources { options }, beginCreateUpdateGremlinDatabaseOperationSpec, - options - ); + options); } /** @@ -700,12 +423,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteGremlinDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteGremlinDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -714,8 +432,7 @@ export class GremlinResources { options }, beginDeleteGremlinDatabaseOperationSpec, - options - ); + options); } /** @@ -728,13 +445,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateGremlinDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateGremlinDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -744,8 +455,7 @@ export class GremlinResources { options }, beginUpdateGremlinDatabaseThroughputOperationSpec, - options - ); + options); } /** @@ -756,12 +466,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -770,8 +475,7 @@ export class GremlinResources { options }, beginMigrateGremlinDatabaseToAutoscaleOperationSpec, - options - ); + options); } /** @@ -782,12 +486,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -796,8 +495,7 @@ export class GremlinResources { options }, beginMigrateGremlinDatabaseToManualThroughputOperationSpec, - options - ); + options); } /** @@ -811,14 +509,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, createUpdateGremlinGraphParameters: Models.GremlinGraphCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -829,8 +520,7 @@ export class GremlinResources { options }, beginCreateUpdateGremlinGraphOperationSpec, - options - ); + options); } /** @@ -842,13 +532,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteGremlinGraph( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteGremlinGraph(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -858,8 +542,7 @@ export class GremlinResources { options }, beginDeleteGremlinGraphOperationSpec, - options - ); + options); } /** @@ -873,14 +556,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateGremlinGraphThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateGremlinGraphThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -891,8 +567,7 @@ export class GremlinResources { options }, beginUpdateGremlinGraphThroughputOperationSpec, - options - ); + options); } /** @@ -904,13 +579,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinGraphToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinGraphToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -920,8 +589,7 @@ export class GremlinResources { options }, beginMigrateGremlinGraphToAutoscaleOperationSpec, - options - ); + options); } /** @@ -933,13 +601,7 @@ export class GremlinResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateGremlinGraphToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - graphName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateGremlinGraphToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -949,8 +611,7 @@ export class GremlinResources { options }, beginMigrateGremlinGraphToManualThroughputOperationSpec, - options - ); + options); } } @@ -958,11 +619,18 @@ export class GremlinResources { const serializer = new msRest.Serializer(Mappers); const listGremlinDatabasesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinDatabaseListResult @@ -976,16 +644,19 @@ const listGremlinDatabasesOperationSpec: msRest.OperationSpec = { const getGremlinDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinDatabaseGetResults @@ -999,16 +670,19 @@ const getGremlinDatabaseOperationSpec: msRest.OperationSpec = { const getGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1022,16 +696,19 @@ const getGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { const listGremlinGraphsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinGraphListResult @@ -1045,8 +722,7 @@ const listGremlinGraphsOperationSpec: msRest.OperationSpec = { const getGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1054,8 +730,12 @@ const getGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GremlinGraphGetResults @@ -1069,8 +749,7 @@ const getGremlinGraphOperationSpec: msRest.OperationSpec = { const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1078,8 +757,12 @@ const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1093,16 +776,19 @@ const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateGremlinDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateGremlinDatabaseParameters", mapper: { @@ -1124,16 +810,19 @@ const beginCreateUpdateGremlinDatabaseOperationSpec: msRest.OperationSpec = { const beginDeleteGremlinDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1146,16 +835,19 @@ const beginDeleteGremlinDatabaseOperationSpec: msRest.OperationSpec = { const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1177,16 +869,19 @@ const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1201,16 +896,19 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1225,8 +923,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1234,8 +931,12 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateGremlinGraphParameters", mapper: { @@ -1257,8 +958,7 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1266,8 +966,12 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1280,8 +984,7 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1289,8 +992,12 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1312,8 +1019,7 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1321,8 +1027,12 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1337,8 +1047,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1346,8 +1055,12 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS Parameters.databaseName, Parameters.graphName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index 13447e20cb95..3641d33ef32a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -25,16 +25,13 @@ export * from "./mongoDBResources"; export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; -export * from "./restorableDatabaseAccounts"; export * from "./notebookWorkspaces"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./restorableDatabaseAccounts"; export * from "./restorableSqlDatabases"; export * from "./restorableSqlContainers"; export * from "./restorableSqlResources"; export * from "./restorableMongodbDatabases"; export * from "./restorableMongodbCollections"; export * from "./restorableMongodbResources"; -export * from "./cassandraClusters"; -export * from "./cassandraDataCenters"; -export * from "./privateLinkResources"; -export * from "./privateEndpointConnections"; -export * from "./service"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index 2597d4823fa8..11847cee69eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -33,39 +33,21 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listMongoDBDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listMongoDBDatabases(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listMongoDBDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listMongoDBDatabases(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMongoDBDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class MongoDBResources { options }, listMongoDBDatabasesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -86,24 +67,14 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -111,20 +82,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +92,7 @@ export class MongoDBResources { options }, getMongoDBDatabaseOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -147,22 +105,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateMongoDBDatabase( - resourceGroupName, - accountName, - databaseName, - createUpdateMongoDBDatabaseParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesCreateUpdateMongoDBDatabaseResponse - >; + createUpdateMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateMongoDBDatabase(resourceGroupName,accountName,databaseName,createUpdateMongoDBDatabaseParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -173,18 +118,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - deleteMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMongoDBDatabase( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMongoDBDatabase(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -196,24 +132,14 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -221,22 +147,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -245,8 +157,7 @@ export class MongoDBResources { options }, getMongoDBDatabaseThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -259,22 +170,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - updateMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateMongoDBDatabaseThroughput( - resourceGroupName, - accountName, - databaseName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse - >; + updateMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateMongoDBDatabaseThroughput(resourceGroupName,accountName,databaseName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -285,20 +183,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBDatabaseToAutoscale( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse - >; + migrateMongoDBDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -309,20 +196,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBDatabaseToManualThroughput( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse - >; + migrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -333,24 +209,14 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -358,22 +224,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listMongoDBCollections( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listMongoDBCollections(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -382,8 +234,7 @@ export class MongoDBResources { options }, listMongoDBCollectionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -395,13 +246,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -409,13 +254,7 @@ export class MongoDBResources { * @param collectionName Cosmos DB collection name. * @param callback The callback */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -424,24 +263,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -451,8 +274,7 @@ export class MongoDBResources { options }, getMongoDBCollectionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -466,24 +288,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateMongoDBCollection( - resourceGroupName, - accountName, - databaseName, - collectionName, - createUpdateMongoDBCollectionParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesCreateUpdateMongoDBCollectionResponse - >; + createUpdateMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateMongoDBCollection(resourceGroupName,accountName,databaseName,collectionName,createUpdateMongoDBCollectionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -495,20 +302,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - deleteMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMongoDBCollection( - resourceGroupName, - accountName, - databaseName, - collectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMongoDBCollection(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -521,13 +317,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -535,13 +325,7 @@ export class MongoDBResources { * @param collectionName Cosmos DB collection name. * @param callback The callback */ - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - callback: msRest.ServiceCallback - ): void; + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -550,24 +334,8 @@ export class MongoDBResources { * @param options The optional parameters * @param callback The callback */ - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -577,8 +345,7 @@ export class MongoDBResources { options }, getMongoDBCollectionThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -592,24 +359,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - updateMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateMongoDBCollectionThroughput( - resourceGroupName, - accountName, - databaseName, - collectionName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesUpdateMongoDBCollectionThroughputResponse - >; + updateMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateMongoDBCollectionThroughput(resourceGroupName,accountName,databaseName,collectionName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -621,22 +373,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBCollectionToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBCollectionToAutoscale( - resourceGroupName, - accountName, - databaseName, - collectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse - >; + migrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBCollectionToAutoscale(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -648,22 +387,9 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - migrateMongoDBCollectionToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateMongoDBCollectionToManualThroughput( - resourceGroupName, - accountName, - databaseName, - collectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse - >; + migrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -676,13 +402,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateMongoDBDatabaseParameters: Models.MongoDBDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -692,8 +412,7 @@ export class MongoDBResources { options }, beginCreateUpdateMongoDBDatabaseOperationSpec, - options - ); + options); } /** @@ -704,12 +423,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMongoDBDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMongoDBDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -718,8 +432,7 @@ export class MongoDBResources { options }, beginDeleteMongoDBDatabaseOperationSpec, - options - ); + options); } /** @@ -732,13 +445,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateMongoDBDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateMongoDBDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -748,8 +455,7 @@ export class MongoDBResources { options }, beginUpdateMongoDBDatabaseThroughputOperationSpec, - options - ); + options); } /** @@ -760,12 +466,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -774,8 +475,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBDatabaseToAutoscaleOperationSpec, - options - ); + options); } /** @@ -786,12 +486,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -800,8 +495,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBDatabaseToManualThroughputOperationSpec, - options - ); + options); } /** @@ -815,14 +509,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, createUpdateMongoDBCollectionParameters: Models.MongoDBCollectionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -833,8 +520,7 @@ export class MongoDBResources { options }, beginCreateUpdateMongoDBCollectionOperationSpec, - options - ); + options); } /** @@ -846,13 +532,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMongoDBCollection( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMongoDBCollection(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -862,8 +542,7 @@ export class MongoDBResources { options }, beginDeleteMongoDBCollectionOperationSpec, - options - ); + options); } /** @@ -877,14 +556,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateMongoDBCollectionThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateMongoDBCollectionThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -895,8 +567,7 @@ export class MongoDBResources { options }, beginUpdateMongoDBCollectionThroughputOperationSpec, - options - ); + options); } /** @@ -908,13 +579,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBCollectionToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -924,8 +589,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBCollectionToAutoscaleOperationSpec, - options - ); + options); } /** @@ -937,13 +601,7 @@ export class MongoDBResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateMongoDBCollectionToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - collectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -953,8 +611,7 @@ export class MongoDBResources { options }, beginMigrateMongoDBCollectionToManualThroughputOperationSpec, - options - ); + options); } } @@ -962,11 +619,18 @@ export class MongoDBResources { const serializer = new msRest.Serializer(Mappers); const listMongoDBDatabasesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBDatabaseListResult @@ -980,16 +644,19 @@ const listMongoDBDatabasesOperationSpec: msRest.OperationSpec = { const getMongoDBDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBDatabaseGetResults @@ -1003,16 +670,19 @@ const getMongoDBDatabaseOperationSpec: msRest.OperationSpec = { const getMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1026,16 +696,19 @@ const getMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { const listMongoDBCollectionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBCollectionListResult @@ -1049,8 +722,7 @@ const listMongoDBCollectionsOperationSpec: msRest.OperationSpec = { const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1058,8 +730,12 @@ const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.MongoDBCollectionGetResults @@ -1073,8 +749,7 @@ const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1082,8 +757,12 @@ const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1097,16 +776,19 @@ const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateMongoDBDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateMongoDBDatabaseParameters", mapper: { @@ -1128,16 +810,19 @@ const beginCreateUpdateMongoDBDatabaseOperationSpec: msRest.OperationSpec = { const beginDeleteMongoDBDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1150,16 +835,19 @@ const beginDeleteMongoDBDatabaseOperationSpec: msRest.OperationSpec = { const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1181,16 +869,19 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1205,16 +896,19 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1229,8 +923,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1238,8 +931,12 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateMongoDBCollectionParameters", mapper: { @@ -1261,8 +958,7 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1270,8 +966,12 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -1284,8 +984,7 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1293,8 +992,12 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -1316,8 +1019,7 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1325,8 +1027,12 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -1341,8 +1047,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -1350,8 +1055,12 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera Parameters.databaseName, Parameters.collectionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts index 364e09f1883b..196125de93ea 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts @@ -33,43 +33,26 @@ export class RestorableDatabaseAccounts { * @param [options] The optional parameters * @returns Promise */ - listByLocation( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param callback The callback */ - listByLocation( - location: string, - callback: msRest.ServiceCallback - ): void; + listByLocation(location: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param options The optional parameters * @param callback The callback */ - listByLocation( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByLocation( - location: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listByLocationOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,23 +70,14 @@ export class RestorableDatabaseAccounts { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -114,41 +88,21 @@ export class RestorableDatabaseAccounts { * @param [options] The optional parameters * @returns Promise */ - getByLocation( - location: string, - instanceId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getByLocation(location: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - getByLocation( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + getByLocation(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - getByLocation( - location: string, - instanceId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getByLocation( - location: string, - instanceId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getByLocation(location: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByLocation(location: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -156,8 +110,7 @@ export class RestorableDatabaseAccounts { options }, getByLocationOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -165,11 +118,17 @@ export class RestorableDatabaseAccounts { const serializer = new msRest.Serializer(Mappers); const listByLocationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableDatabaseAccountsListResult @@ -184,9 +143,15 @@ const listByLocationOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableDatabaseAccountsListResult @@ -200,11 +165,18 @@ const listOperationSpec: msRest.OperationSpec = { const getByLocationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableDatabaseAccountGetResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts index 2395844f84d6..0fe490a4c3e3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts @@ -34,41 +34,21 @@ export class RestorableMongodbCollections { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - instanceId: string, - options?: Models.RestorableMongodbCollectionsListOptionalParams - ): Promise; + list(location: string, instanceId: string, options?: Models.RestorableMongodbCollectionsListOptionalParams): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - list( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - instanceId: string, - options: Models.RestorableMongodbCollectionsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - instanceId: string, - options?: - | Models.RestorableMongodbCollectionsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, instanceId: string, options: Models.RestorableMongodbCollectionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableMongodbCollectionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,8 +56,7 @@ export class RestorableMongodbCollections { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -85,11 +64,19 @@ export class RestorableMongodbCollections { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], - queryParameters: [Parameters.apiVersion, Parameters.restorableMongodbDatabaseRid], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restorableMongodbDatabaseRid + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableMongodbCollectionsListResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts index aa5b26b47e8e..5144f20e34df 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts @@ -35,41 +35,21 @@ export class RestorableMongodbDatabases { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - instanceId: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(location: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - list( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - instanceId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - instanceId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -77,8 +57,7 @@ export class RestorableMongodbDatabases { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -86,11 +65,18 @@ export class RestorableMongodbDatabases { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableMongodbDatabasesListResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts index fb3476425279..5d4f07933664 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts @@ -35,41 +35,21 @@ export class RestorableMongodbResources { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - instanceId: string, - options?: Models.RestorableMongodbResourcesListOptionalParams - ): Promise; + list(location: string, instanceId: string, options?: Models.RestorableMongodbResourcesListOptionalParams): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - list( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - instanceId: string, - options: Models.RestorableMongodbResourcesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - instanceId: string, - options?: - | Models.RestorableMongodbResourcesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, instanceId: string, options: Models.RestorableMongodbResourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableMongodbResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -77,8 +57,7 @@ export class RestorableMongodbResources { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -86,15 +65,20 @@ export class RestorableMongodbResources { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], queryParameters: [ Parameters.apiVersion, Parameters.restoreLocation, Parameters.restoreTimestampInUtc ], - headerParameters: [Parameters.acceptLanguage], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableMongodbResourcesListResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts index caa3a87402f2..b193a249a6b0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts @@ -34,41 +34,21 @@ export class RestorableSqlContainers { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - instanceId: string, - options?: Models.RestorableSqlContainersListOptionalParams - ): Promise; + list(location: string, instanceId: string, options?: Models.RestorableSqlContainersListOptionalParams): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - list( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - instanceId: string, - options: Models.RestorableSqlContainersListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - instanceId: string, - options?: - | Models.RestorableSqlContainersListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, instanceId: string, options: Models.RestorableSqlContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableSqlContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,8 +56,7 @@ export class RestorableSqlContainers { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -85,16 +64,21 @@ export class RestorableSqlContainers { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], queryParameters: [ Parameters.apiVersion, Parameters.restorableSqlDatabaseRid, Parameters.startTime, Parameters.endTime ], - headerParameters: [Parameters.acceptLanguage], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableSqlContainersListResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts index 10f3e4e137c3..49eb4039b1d9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts @@ -35,41 +35,21 @@ export class RestorableSqlDatabases { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - instanceId: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(location: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - list( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - instanceId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - instanceId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -77,8 +57,7 @@ export class RestorableSqlDatabases { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -86,11 +65,18 @@ export class RestorableSqlDatabases { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableSqlDatabasesListResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts index f60e04f80dd7..da5a23fb80d4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts @@ -35,41 +35,21 @@ export class RestorableSqlResources { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - instanceId: string, - options?: Models.RestorableSqlResourcesListOptionalParams - ): Promise; + list(location: string, instanceId: string, options?: Models.RestorableSqlResourcesListOptionalParams): Promise; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param callback The callback */ - list( - location: string, - instanceId: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, instanceId: string, callback: msRest.ServiceCallback): void; /** * @param location Cosmos DB region, with spaces between words and each word capitalized. * @param instanceId The instanceId GUID of a restorable database account. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - instanceId: string, - options: Models.RestorableSqlResourcesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - instanceId: string, - options?: - | Models.RestorableSqlResourcesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, instanceId: string, options: Models.RestorableSqlResourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableSqlResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -77,8 +57,7 @@ export class RestorableSqlResources { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -86,15 +65,20 @@ export class RestorableSqlResources { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.instanceId], + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], queryParameters: [ Parameters.apiVersion, Parameters.restoreLocation, Parameters.restoreTimestampInUtc ], - headerParameters: [Parameters.acceptLanguage], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorableSqlResourcesListResult diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts deleted file mode 100644 index 10582f113afd..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/service.ts +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serviceMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a Service. */ -export class Service { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a Service. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * Gets the status of service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param [options] The optional parameters - * @returns Promise - */ - list( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param callback The callback - */ - list( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The optional parameters - * @param callback The callback - */ - list( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - options - }, - listOperationSpec, - callback - ) as Promise; - } - - /** - * Creates a service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param createUpdateParameters The Service resource parameters. - * @param [options] The optional parameters - * @returns Promise - */ - create( - resourceGroupName: string, - accountName: string, - serviceName: string, - createUpdateParameters: Models.ServiceResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - accountName, - serviceName, - createUpdateParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Gets the status of service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param [options] The optional parameters - * @returns Promise - */ - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param callback The callback - */ - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param options The optional parameters - * @param callback The callback - */ - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - serviceName, - options - }, - getOperationSpec, - callback - ) as Promise; - } - - /** - * Deletes service with the given serviceName. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - accountName, - serviceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Creates a service. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param createUpdateParameters The Service resource parameters. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate( - resourceGroupName: string, - accountName: string, - serviceName: string, - createUpdateParameters: Models.ServiceResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - serviceName, - createUpdateParameters, - options - }, - beginCreateOperationSpec, - options - ); - } - - /** - * Deletes service with the given serviceName. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param serviceName Cosmos DB service name. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod( - resourceGroupName: string, - accountName: string, - serviceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - serviceName, - options - }, - beginDeleteMethodOperationSpec, - options - ); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ServiceResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.serviceName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: { - bodyMapper: Mappers.ServiceResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.serviceName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "createUpdateParameters", - mapper: { - ...Mappers.ServiceResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServiceResource - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.serviceName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 1c2415ee7d52..94c069d835b7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -33,39 +33,21 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listSqlDatabases( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listSqlDatabases(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listSqlDatabases( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlDatabases( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlDatabases(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlDatabases(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class SqlResources { options }, listSqlDatabasesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -110,20 +81,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class SqlResources { options }, getSqlDatabaseOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,22 +103,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlDatabase( - resourceGroupName, - accountName, - databaseName, - createUpdateSqlDatabaseParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlDatabaseResponse - >; + createUpdateSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlDatabase(resourceGroupName,accountName,databaseName,createUpdateSqlDatabaseParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -171,18 +116,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlDatabase( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlDatabase(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -194,24 +130,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -219,22 +145,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -243,8 +155,7 @@ export class SqlResources { options }, getSqlDatabaseThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -257,22 +168,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - updateSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateSqlDatabaseThroughput( - resourceGroupName, - accountName, - databaseName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesUpdateSqlDatabaseThroughputResponse - >; + updateSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateSqlDatabaseThroughput(resourceGroupName,accountName,databaseName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -283,20 +181,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlDatabaseToAutoscale( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlDatabaseToAutoscaleResponse - >; + migrateSqlDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -307,20 +194,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlDatabaseToManualThroughput( - resourceGroupName, - accountName, - databaseName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlDatabaseToManualThroughputResponse - >; + migrateSqlDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -331,24 +207,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param callback The callback */ - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - callback: msRest.ServiceCallback - ): void; + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -356,20 +222,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlContainers( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlContainers(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -378,8 +232,7 @@ export class SqlResources { options }, listSqlContainersOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -391,13 +244,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -405,13 +252,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -420,22 +261,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -445,8 +272,7 @@ export class SqlResources { options }, getSqlContainerOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -460,24 +286,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlContainer( - resourceGroupName, - accountName, - databaseName, - containerName, - createUpdateSqlContainerParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlContainerResponse - >; + createUpdateSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlContainer(resourceGroupName,accountName,databaseName,containerName,createUpdateSqlContainerParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -489,20 +300,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlContainer( - resourceGroupName, - accountName, - databaseName, - containerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlContainer(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -514,13 +314,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -528,13 +322,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -543,24 +331,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -570,8 +342,7 @@ export class SqlResources { options }, getSqlContainerThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -585,24 +356,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - updateSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateSqlContainerThroughput( - resourceGroupName, - accountName, - databaseName, - containerName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesUpdateSqlContainerThroughputResponse - >; + updateSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateSqlContainerThroughput(resourceGroupName,accountName,databaseName,containerName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -614,22 +370,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlContainerToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlContainerToAutoscale( - resourceGroupName, - accountName, - databaseName, - containerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlContainerToAutoscaleResponse - >; + migrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlContainerToAutoscale(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -641,22 +384,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - migrateSqlContainerToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateSqlContainerToManualThroughput( - resourceGroupName, - accountName, - databaseName, - containerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesMigrateSqlContainerToManualThroughputResponse - >; + migrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlContainerToManualThroughput(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -668,13 +398,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -682,13 +406,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -697,24 +415,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlStoredProcedures( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlStoredProcedures(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -724,8 +426,7 @@ export class SqlResources { options }, listSqlStoredProceduresOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -738,14 +439,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -754,14 +448,7 @@ export class SqlResources { * @param storedProcedureName Cosmos DB storedProcedure name. * @param callback The callback */ - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - callback: msRest.ServiceCallback - ): void; + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -771,26 +458,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -801,8 +470,7 @@ export class SqlResources { options }, getSqlStoredProcedureOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -817,26 +485,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlStoredProcedure( - resourceGroupName, - accountName, - databaseName, - containerName, - storedProcedureName, - createUpdateSqlStoredProcedureParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlStoredProcedureResponse - >; + createUpdateSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlStoredProcedure(resourceGroupName,accountName,databaseName,containerName,storedProcedureName,createUpdateSqlStoredProcedureParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -849,22 +500,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlStoredProcedure( - resourceGroupName, - accountName, - databaseName, - containerName, - storedProcedureName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlStoredProcedure(resourceGroupName,accountName,databaseName,containerName,storedProcedureName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -876,13 +514,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -890,13 +522,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -905,24 +531,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlUserDefinedFunctions( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlUserDefinedFunctions(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -932,8 +542,7 @@ export class SqlResources { options }, listSqlUserDefinedFunctionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -946,14 +555,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -962,14 +564,7 @@ export class SqlResources { * @param userDefinedFunctionName Cosmos DB userDefinedFunction name. * @param callback The callback */ - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - callback: msRest.ServiceCallback - ): void; + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -979,26 +574,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1009,8 +586,7 @@ export class SqlResources { options }, getSqlUserDefinedFunctionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1025,26 +601,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlUserDefinedFunction( - resourceGroupName, - accountName, - databaseName, - containerName, - userDefinedFunctionName, - createUpdateSqlUserDefinedFunctionParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse - >; + createUpdateSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlUserDefinedFunction(resourceGroupName,accountName,databaseName,containerName,userDefinedFunctionName,createUpdateSqlUserDefinedFunctionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1057,22 +616,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlUserDefinedFunction( - resourceGroupName, - accountName, - databaseName, - containerName, - userDefinedFunctionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlUserDefinedFunction(resourceGroupName,accountName,databaseName,containerName,userDefinedFunctionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1084,13 +630,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1098,13 +638,7 @@ export class SqlResources { * @param containerName Cosmos DB container name. * @param callback The callback */ - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1113,22 +647,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlTriggers( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlTriggers(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1138,8 +658,7 @@ export class SqlResources { options }, listSqlTriggersOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1152,14 +671,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1168,14 +680,7 @@ export class SqlResources { * @param triggerName Cosmos DB trigger name. * @param callback The callback */ - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - callback: msRest.ServiceCallback - ): void; + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -1185,24 +690,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1213,8 +702,7 @@ export class SqlResources { options }, getSqlTriggerOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1228,26 +716,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlTrigger( - resourceGroupName, - accountName, - databaseName, - containerName, - triggerName, - createUpdateSqlTriggerParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlTriggerResponse - >; + createUpdateSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlTrigger(resourceGroupName,accountName,databaseName,containerName,triggerName,createUpdateSqlTriggerParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1260,52 +731,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlTrigger( - resourceGroupName, - accountName, - databaseName, - containerName, - triggerName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); - } - - /** - * Retrieves continuous backup information for a container resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param location The name of the continuous backup restore location. - * @param [options] The optional parameters - * @returns Promise - */ - retrieveContinuousBackupInformation( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - location: Models.ContinuousBackupRestoreLocation, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRetrieveContinuousBackupInformation( - resourceGroupName, - accountName, - databaseName, - containerName, - location, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesRetrieveContinuousBackupInformationResponse - >; + deleteSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlTrigger(resourceGroupName,accountName,databaseName,containerName,triggerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1316,24 +744,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param roleDefinitionId The GUID for the Role Definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1341,22 +759,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleDefinitionId, @@ -1365,8 +769,7 @@ export class SqlResources { options }, getSqlRoleDefinitionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1379,22 +782,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlRoleDefinition( - roleDefinitionId, - resourceGroupName, - accountName, - createUpdateSqlRoleDefinitionParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlRoleDefinitionResponse - >; + createUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlRoleDefinition(roleDefinitionId,resourceGroupName,accountName,createUpdateSqlRoleDefinitionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1405,18 +795,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlRoleDefinition( - roleDefinitionId, - resourceGroupName, - accountName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlRoleDefinition(roleDefinitionId,resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1426,41 +807,21 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlRoleDefinitions( - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1468,8 +829,7 @@ export class SqlResources { options }, listSqlRoleDefinitionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1480,24 +840,14 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleAssignmentId The GUID for the Role Assignment. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param roleAssignmentId The GUID for the Role Assignment. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1505,22 +855,8 @@ export class SqlResources { * @param options The optional parameters * @param callback The callback */ - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleAssignmentId, @@ -1529,8 +865,7 @@ export class SqlResources { options }, getSqlRoleAssignmentOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1543,22 +878,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateSqlRoleAssignment( - roleAssignmentId, - resourceGroupName, - accountName, - createUpdateSqlRoleAssignmentParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SqlResourcesCreateUpdateSqlRoleAssignmentResponse - >; + createUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlRoleAssignment(roleAssignmentId,resourceGroupName,accountName,createUpdateSqlRoleAssignmentParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1569,18 +891,9 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - deleteSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteSqlRoleAssignment( - roleAssignmentId, - resourceGroupName, - accountName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlRoleAssignment(roleAssignmentId,resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -1590,41 +903,21 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSqlRoleAssignments( - resourceGroupName: string, - accountName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -1632,8 +925,22 @@ export class SqlResources { options }, listSqlRoleAssignmentsOperationSpec, - callback - ) as Promise; + callback) as Promise; + } + + /** + * Retrieves continuous backup information for a container resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. + * @param location The name of the continuous backup restore location. + * @param [options] The optional parameters + * @returns Promise + */ + retrieveContinuousBackupInformation(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, location: Models.ContinuousBackupRestoreLocation, options?: msRest.RequestOptionsBase): Promise { + return this.beginRetrieveContinuousBackupInformation(resourceGroupName,accountName,databaseName,containerName,location,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -1645,13 +952,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, createUpdateSqlDatabaseParameters: Models.SqlDatabaseCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1661,8 +962,7 @@ export class SqlResources { options }, beginCreateUpdateSqlDatabaseOperationSpec, - options - ); + options); } /** @@ -1673,12 +973,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlDatabase( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlDatabase(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1687,8 +982,7 @@ export class SqlResources { options }, beginDeleteSqlDatabaseOperationSpec, - options - ); + options); } /** @@ -1701,13 +995,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateSqlDatabaseThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateSqlDatabaseThroughput(resourceGroupName: string, accountName: string, databaseName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1717,8 +1005,7 @@ export class SqlResources { options }, beginUpdateSqlDatabaseThroughputOperationSpec, - options - ); + options); } /** @@ -1729,12 +1016,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlDatabaseToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1743,8 +1025,7 @@ export class SqlResources { options }, beginMigrateSqlDatabaseToAutoscaleOperationSpec, - options - ); + options); } /** @@ -1755,12 +1036,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlDatabaseToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1769,8 +1045,7 @@ export class SqlResources { options }, beginMigrateSqlDatabaseToManualThroughputOperationSpec, - options - ); + options); } /** @@ -1784,14 +1059,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, createUpdateSqlContainerParameters: Models.SqlContainerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1802,8 +1070,7 @@ export class SqlResources { options }, beginCreateUpdateSqlContainerOperationSpec, - options - ); + options); } /** @@ -1815,13 +1082,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlContainer( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlContainer(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1831,8 +1092,7 @@ export class SqlResources { options }, beginDeleteSqlContainerOperationSpec, - options - ); + options); } /** @@ -1846,14 +1106,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateSqlContainerThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateSqlContainerThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1864,8 +1117,7 @@ export class SqlResources { options }, beginUpdateSqlContainerThroughputOperationSpec, - options - ); + options); } /** @@ -1877,13 +1129,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlContainerToAutoscale( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1893,8 +1139,7 @@ export class SqlResources { options }, beginMigrateSqlContainerToAutoscaleOperationSpec, - options - ); + options); } /** @@ -1906,13 +1151,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateSqlContainerToManualThroughput( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1922,8 +1161,7 @@ export class SqlResources { options }, beginMigrateSqlContainerToManualThroughputOperationSpec, - options - ); + options); } /** @@ -1938,15 +1176,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, createUpdateSqlStoredProcedureParameters: Models.SqlStoredProcedureCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1958,8 +1188,7 @@ export class SqlResources { options }, beginCreateUpdateSqlStoredProcedureOperationSpec, - options - ); + options); } /** @@ -1972,14 +1201,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlStoredProcedure( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - storedProcedureName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlStoredProcedure(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, storedProcedureName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1990,8 +1212,7 @@ export class SqlResources { options }, beginDeleteSqlStoredProcedureOperationSpec, - options - ); + options); } /** @@ -2006,15 +1227,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, createUpdateSqlUserDefinedFunctionParameters: Models.SqlUserDefinedFunctionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2026,8 +1239,7 @@ export class SqlResources { options }, beginCreateUpdateSqlUserDefinedFunctionOperationSpec, - options - ); + options); } /** @@ -2040,14 +1252,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlUserDefinedFunction( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - userDefinedFunctionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlUserDefinedFunction(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, userDefinedFunctionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2058,8 +1263,7 @@ export class SqlResources { options }, beginDeleteSqlUserDefinedFunctionOperationSpec, - options - ); + options); } /** @@ -2073,15 +1277,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, createUpdateSqlTriggerParameters: Models.SqlTriggerCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2093,8 +1289,7 @@ export class SqlResources { options }, beginCreateUpdateSqlTriggerOperationSpec, - options - ); + options); } /** @@ -2107,14 +1302,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlTrigger( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - triggerName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlTrigger(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -2125,40 +1313,7 @@ export class SqlResources { options }, beginDeleteSqlTriggerOperationSpec, - options - ); - } - - /** - * Retrieves continuous backup information for a container resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param databaseName Cosmos DB database name. - * @param containerName Cosmos DB container name. - * @param location The name of the continuous backup restore location. - * @param [options] The optional parameters - * @returns Promise - */ - beginRetrieveContinuousBackupInformation( - resourceGroupName: string, - accountName: string, - databaseName: string, - containerName: string, - location: Models.ContinuousBackupRestoreLocation, - options?: msRest.RequestOptionsBase - ): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - databaseName, - containerName, - location, - options - }, - beginRetrieveContinuousBackupInformationOperationSpec, - options - ); + options); } /** @@ -2171,13 +1326,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleDefinitionId, @@ -2187,8 +1336,7 @@ export class SqlResources { options }, beginCreateUpdateSqlRoleDefinitionOperationSpec, - options - ); + options); } /** @@ -2199,12 +1347,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlRoleDefinition( - roleDefinitionId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleDefinitionId, @@ -2213,8 +1356,7 @@ export class SqlResources { options }, beginDeleteSqlRoleDefinitionOperationSpec, - options - ); + options); } /** @@ -2227,13 +1369,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleAssignmentId, @@ -2243,8 +1379,7 @@ export class SqlResources { options }, beginCreateUpdateSqlRoleAssignmentOperationSpec, - options - ); + options); } /** @@ -2255,12 +1390,7 @@ export class SqlResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteSqlRoleAssignment( - roleAssignmentId: string, - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleAssignmentId, @@ -2269,8 +1399,31 @@ export class SqlResources { options }, beginDeleteSqlRoleAssignmentOperationSpec, - options - ); + options); + } + + /** + * Retrieves continuous backup information for a container resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. + * @param location The name of the continuous backup restore location. + * @param [options] The optional parameters + * @returns Promise + */ + beginRetrieveContinuousBackupInformation(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, location: Models.ContinuousBackupRestoreLocation, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + containerName, + location, + options + }, + beginRetrieveContinuousBackupInformationOperationSpec, + options); } } @@ -2278,11 +1431,18 @@ export class SqlResources { const serializer = new msRest.Serializer(Mappers); const listSqlDatabasesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlDatabaseListResult @@ -2296,16 +1456,19 @@ const listSqlDatabasesOperationSpec: msRest.OperationSpec = { const getSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlDatabaseGetResults @@ -2319,16 +1482,19 @@ const getSqlDatabaseOperationSpec: msRest.OperationSpec = { const getSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2342,16 +1508,19 @@ const getSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { const listSqlContainersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlContainerListResult @@ -2365,8 +1534,7 @@ const listSqlContainersOperationSpec: msRest.OperationSpec = { const getSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2374,8 +1542,12 @@ const getSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlContainerGetResults @@ -2389,8 +1561,7 @@ const getSqlContainerOperationSpec: msRest.OperationSpec = { const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2398,8 +1569,12 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2413,8 +1588,7 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2422,8 +1596,12 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlStoredProcedureListResult @@ -2437,8 +1615,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2447,8 +1624,12 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlStoredProcedureGetResults @@ -2462,8 +1643,7 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2471,8 +1651,12 @@ const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlUserDefinedFunctionListResult @@ -2486,8 +1670,7 @@ const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2496,8 +1679,12 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlUserDefinedFunctionGetResults @@ -2511,8 +1698,7 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { const listSqlTriggersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2520,8 +1706,12 @@ const listSqlTriggersOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlTriggerListResult @@ -2535,8 +1725,7 @@ const listSqlTriggersOperationSpec: msRest.OperationSpec = { const getSqlTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2545,8 +1734,12 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlTriggerGetResults @@ -2560,16 +1753,19 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { const getSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", urlParameters: [ Parameters.roleDefinitionId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleDefinitionGetResults @@ -2583,11 +1779,18 @@ const getSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { const listSqlRoleDefinitionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleDefinitionListResult @@ -2601,16 +1804,19 @@ const listSqlRoleDefinitionsOperationSpec: msRest.OperationSpec = { const getSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", urlParameters: [ Parameters.roleAssignmentId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleAssignmentGetResults @@ -2624,11 +1830,18 @@ const getSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { const listSqlRoleAssignmentsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SqlRoleAssignmentListResult @@ -2642,16 +1855,19 @@ const listSqlRoleAssignmentsOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlDatabaseParameters", mapper: { @@ -2673,16 +1889,19 @@ const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { const beginDeleteSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2695,16 +1914,19 @@ const beginDeleteSqlDatabaseOperationSpec: msRest.OperationSpec = { const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -2726,16 +1948,19 @@ const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2750,16 +1975,19 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.databaseName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2774,8 +2002,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2783,8 +2010,12 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlContainerParameters", mapper: { @@ -2806,8 +2037,7 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2815,8 +2045,12 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2829,8 +2063,7 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2838,8 +2071,12 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -2861,8 +2098,7 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2870,8 +2106,12 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2886,8 +2126,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2895,8 +2134,12 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS Parameters.databaseName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -2911,8 +2154,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2921,8 +2163,12 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlStoredProcedureParameters", mapper: { @@ -2944,8 +2190,7 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2954,8 +2199,12 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.storedProcedureName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -2968,8 +2217,7 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -2978,8 +2226,12 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlUserDefinedFunctionParameters", mapper: { @@ -3001,8 +2253,7 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -3011,8 +2262,12 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.userDefinedFunctionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -3025,8 +2280,7 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -3035,8 +2289,12 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlTriggerParameters", mapper: { @@ -3058,8 +2316,7 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -3068,43 +2325,15 @@ const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.triggerName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.databaseName, - Parameters.containerName + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "location", - mapper: { - ...Mappers.ContinuousBackupRestoreLocation, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.BackupInformation - }, 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -3114,16 +2343,19 @@ const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpe const beginCreateUpdateSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", urlParameters: [ Parameters.roleDefinitionId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlRoleDefinitionParameters", mapper: { @@ -3145,16 +2377,19 @@ const beginCreateUpdateSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { const beginDeleteSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", urlParameters: [ Parameters.roleDefinitionId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -3168,16 +2403,19 @@ const beginDeleteSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { const beginCreateUpdateSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", urlParameters: [ Parameters.roleAssignmentId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateSqlRoleAssignmentParameters", mapper: { @@ -3199,16 +2437,19 @@ const beginCreateUpdateSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { const beginDeleteSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", urlParameters: [ Parameters.roleAssignmentId, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -3219,3 +2460,38 @@ const beginDeleteSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginRetrieveContinuousBackupInformationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.containerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "location", + mapper: { + ...Mappers.ContinuousBackupRestoreLocation, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupInformation + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index 2c51037b59b0..b0ccec17248b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -33,39 +33,21 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - listTables( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listTables(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param callback The callback */ - listTables( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + listTables(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param options The optional parameters * @param callback The callback */ - listTables( - resourceGroupName: string, - accountName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listTables( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listTables(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTables(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class TableResources { options }, listTablesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param tableName Cosmos DB table name. * @param callback The callback */ - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getTable(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -110,20 +81,8 @@ export class TableResources { * @param options The optional parameters * @param callback The callback */ - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getTable(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class TableResources { options }, getTableOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,22 +103,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - createUpdateTable( - resourceGroupName: string, - accountName: string, - tableName: string, - createUpdateTableParameters: Models.TableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateUpdateTable( - resourceGroupName, - accountName, - tableName, - createUpdateTableParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesCreateUpdateTableResponse - >; + createUpdateTable(resourceGroupName: string, accountName: string, tableName: string, createUpdateTableParameters: Models.TableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateTable(resourceGroupName,accountName,tableName,createUpdateTableParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -171,18 +116,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - deleteTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteTable( - resourceGroupName, - accountName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteTable(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -194,24 +130,14 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param tableName Cosmos DB table name. * @param callback The callback */ - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - callback: msRest.ServiceCallback - ): void; + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. @@ -219,22 +145,8 @@ export class TableResources { * @param options The optional parameters * @param callback The callback */ - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -243,8 +155,7 @@ export class TableResources { options }, getTableThroughputOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -257,22 +168,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - updateTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateTableThroughput( - resourceGroupName, - accountName, - tableName, - updateThroughputParameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesUpdateTableThroughputResponse - >; + updateTableThroughput(resourceGroupName: string, accountName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTableThroughput(resourceGroupName,accountName,tableName,updateThroughputParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -283,20 +181,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - migrateTableToAutoscale( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateTableToAutoscale( - resourceGroupName, - accountName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesMigrateTableToAutoscaleResponse - >; + migrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateTableToAutoscale(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -307,20 +194,9 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - migrateTableToManualThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMigrateTableToManualThroughput( - resourceGroupName, - accountName, - tableName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.TableResourcesMigrateTableToManualThroughputResponse - >; + migrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateTableToManualThroughput(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -332,13 +208,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginCreateUpdateTable( - resourceGroupName: string, - accountName: string, - tableName: string, - createUpdateTableParameters: Models.TableCreateUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateUpdateTable(resourceGroupName: string, accountName: string, tableName: string, createUpdateTableParameters: Models.TableCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -348,8 +218,7 @@ export class TableResources { options }, beginCreateUpdateTableOperationSpec, - options - ); + options); } /** @@ -360,12 +229,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginDeleteTable( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteTable(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -374,8 +238,7 @@ export class TableResources { options }, beginDeleteTableOperationSpec, - options - ); + options); } /** @@ -388,13 +251,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginUpdateTableThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateTableThroughput(resourceGroupName: string, accountName: string, tableName: string, updateThroughputParameters: Models.ThroughputSettingsUpdateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -404,8 +261,7 @@ export class TableResources { options }, beginUpdateTableThroughputOperationSpec, - options - ); + options); } /** @@ -416,12 +272,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateTableToAutoscale( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -430,8 +281,7 @@ export class TableResources { options }, beginMigrateTableToAutoscaleOperationSpec, - options - ); + options); } /** @@ -442,12 +292,7 @@ export class TableResources { * @param [options] The optional parameters * @returns Promise */ - beginMigrateTableToManualThroughput( - resourceGroupName: string, - accountName: string, - tableName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginMigrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -456,8 +301,7 @@ export class TableResources { options }, beginMigrateTableToManualThroughputOperationSpec, - options - ); + options); } } @@ -465,11 +309,18 @@ export class TableResources { const serializer = new msRest.Serializer(Mappers); const listTablesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TableListResult @@ -483,16 +334,19 @@ const listTablesOperationSpec: msRest.OperationSpec = { const getTableOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TableGetResults @@ -506,16 +360,19 @@ const getTableOperationSpec: msRest.OperationSpec = { const getTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -529,16 +386,19 @@ const getTableThroughputOperationSpec: msRest.OperationSpec = { const beginCreateUpdateTableOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "createUpdateTableParameters", mapper: { @@ -560,16 +420,19 @@ const beginCreateUpdateTableOperationSpec: msRest.OperationSpec = { const beginDeleteTableOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, @@ -582,16 +445,19 @@ const beginDeleteTableOperationSpec: msRest.OperationSpec = { const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "updateThroughputParameters", mapper: { @@ -613,16 +479,19 @@ const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults @@ -637,16 +506,19 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.tableName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ThroughputSettingsGetResults